query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
003b432592858c01fa777fd617c9708b
Checks if a retry can be attempted.
[ { "docid": "f3f7d990b7412bcd49bc4d84fccbbf39", "score": "0.61467916", "text": "public function canAttmpt()\n {\n return $this->attempts < $this->maxAttempts;\n }", "title": "" } ]
[ { "docid": "84de6fc290f59bf06ef8565faf169f30", "score": "0.82642317", "text": "public function check_can_retry()\n {\n return $this->try_num < 3 && !$this->check_is_deleted();\n }", "title": "" }, { "docid": "68146d66a593103e8b1266a2d9be5537", "score": "0.8219648", "text": "public function isRetryAllowed();", "title": "" }, { "docid": "0914443556bfee669d56671a0f391a79", "score": "0.7948151", "text": "public function isRetriesAllowed() {\n return ($this->PelecardStatusCode != '000' && !$this->isUserInputError() && !$this->isTimeoutError());\n }", "title": "" }, { "docid": "ef1c4f2eb6ea5287b0a32d26ef386d92", "score": "0.76989657", "text": "public function canRetry(int $attempt, $error): bool;", "title": "" }, { "docid": "954a4ae9023bb06ecb1f1428cced092d", "score": "0.720958", "text": "public function canRetry() {\n return $this->status == \\CentryPs\\enums\\system\\PendingTaskStatus::Failed ||\n (\n $this->status == \\CentryPs\\enums\\system\\PendingTaskStatus::Running &&\n $this->date_upd < date('Y-m-d H:i:s', strtotime(\"-5 minutes\"))\n );\n }", "title": "" }, { "docid": "3add52b5f20eb853496cfc7cab9f4716", "score": "0.7036373", "text": "public function getRetry(): bool\n {\n return false;\n }", "title": "" }, { "docid": "704c2b2c25888200ffcbb0128bf85a49", "score": "0.7035779", "text": "public function attempts(): bool;", "title": "" }, { "docid": "288032bd2e3f4caf03223d4271313d48", "score": "0.6936846", "text": "public function isRetry()\n {\n return ($this->status === self::STATUS_RETRY);\n }", "title": "" }, { "docid": "2e73c48cc68a606bdcddb2672d60452d", "score": "0.69077486", "text": "public function shouldRetry(Exception $exception): bool;", "title": "" }, { "docid": "16d724329fb468171ee6a17eabce4b16", "score": "0.67763114", "text": "public function allowedRetries();", "title": "" }, { "docid": "6a92759c571dc4c290de624fdcd80387", "score": "0.67385954", "text": "public function shouldRetry(Exception $exception, int $retryCount): bool;", "title": "" }, { "docid": "dce563ec55743ffaa90ba09afa1141c1", "score": "0.64294785", "text": "public function hasMasterConnectRetry(){\n return $this->_has(7);\n }", "title": "" }, { "docid": "47bbd54d7d5533a8c47abbdfff1d63f2", "score": "0.6354589", "text": "public function can_retry_course( int $course_id = 0 ): int {\n\t\t$flag = 0;\n\n\t\ttry {\n\t\t\t$course = learn_press_get_course( $course_id );\n\n\t\t\tif ( ! $course ) {\n\t\t\t\tthrow new Exception( 'Course is not available' );\n\t\t\t}\n\n\t\t\t$retake_option = (int) $course->get_data( 'retake_count' );\n\n\t\t\tif ( $retake_option > 0 ) {\n\t\t\t\t/**\n\t\t\t\t * Check course is finished\n\t\t\t\t * Check duration is blocked\n\t\t\t\t */\n\t\t\t\tif ( ! $this->has_finished_course( $course->get_id() ) ) {\n\t\t\t\t\tif ( 0 !== $course->timestamp_remaining_duration() ) {\n\t\t\t\t\t\tthrow new Exception();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$user_course_data = $this->get_course_data( $course_id );\n\n\t\t\t\tif ( $user_course_data instanceof LP_User_Item_Course ) {\n\t\t\t\t\t$retaken = $user_course_data->get_retaken_count();\n\t\t\t\t\t$can_retake_times = $retake_option - $retaken;\n\n\t\t\t\t\tif ( $can_retake_times > 0 ) {\n\t\t\t\t\t\t$flag = $can_retake_times;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch ( Exception $e ) {\n\n\t\t}\n\n\t\treturn apply_filters( 'learn-press/user/course/can-retry', $flag, $this->get_id(), $course_id );\n\t}", "title": "" }, { "docid": "35305db56999ebfe84987d06395c6148", "score": "0.63336444", "text": "public function has_attempt() {\n global $CFG;\n require_once($CFG->dirroot . '/mod/readaloud/lib.php');\n return $this->attemptdata ? true : false;\n }", "title": "" }, { "docid": "32ab17e8355172fe2a4328b4e1ef6108", "score": "0.62848496", "text": "public function setRetryAllowed($allowed = TRUE);", "title": "" }, { "docid": "305399e9dd560b25788acc06c77d5915", "score": "0.62464935", "text": "protected function isRetry(callable $run)\n {\n if ($run instanceof Closure) {\n return false;\n }\n return is_object($run) && isset($run->tries) && isset($run->run) && is_callable($run->run);\n }", "title": "" }, { "docid": "8e832cde083e8920a1d7784e99cf3274", "score": "0.6146282", "text": "public function recupere_retry() {\n\t\tif (! $this->valide_donnees_existe ()) {\n\t\t\treturn $this->onError ( \"Pas de donnees de backup session\" );\n\t\t}\n\t\treturn ( string ) $this->getDonnees ()->IsRetry;\n\t}", "title": "" }, { "docid": "59d873fe73bb64338dc8d8a9ee2e3e4b", "score": "0.6144793", "text": "abstract public function attempts(array $credentials): bool;", "title": "" }, { "docid": "6ce2d28b1a8b481dc5c4d50e318b13ae", "score": "0.6079501", "text": "public function retryFailed()\n\t{\n\t\t$failed = 0;\n\n\t\t/**\n\t\t * @var $instance Curl\n\t\t */\n\t\tforeach ($this->curlInstances as $instance)\n\t\t{\n\t\t\tif ($instance->retryIfFailed())\n\t\t\t{\n\t\t\t\t$failed++;\n\t\t\t}\n\t\t}\n\n\t\treturn $failed;\n\t}", "title": "" }, { "docid": "b87f8c27985bbbe66ec68ea5b6a59138", "score": "0.60589015", "text": "public function is_retryable_error( $error ) {\n return (\n 'invalid_request_error' === $error->type ||\n 'idempotency_error' === $error->type ||\n 'rate_limit_error' === $error->type ||\n 'api_connection_error' === $error->type ||\n 'api_error' === $error->type\n );\n }", "title": "" }, { "docid": "ea6123b22b0a38266d57ce405658e2ea", "score": "0.6032901", "text": "public function isFailed(): bool;", "title": "" }, { "docid": "3b02f6acde1130edebfd340ff37dc874", "score": "0.6018662", "text": "public function hasFailed(): bool\n {\n return $this->status !== self::RESULT_OK;\n }", "title": "" }, { "docid": "3acc3d3f74018c7007fba11b4d5ac438", "score": "0.5980323", "text": "function enabled_wrong_login_attempts() {\n $settings = $this->settings( 'security' );\n return wpdk_is_bool( $settings['enabled_wrong_login_attempts'] );\n }", "title": "" }, { "docid": "4b175ac51c23fa5b9e66c5a11445e966", "score": "0.5966123", "text": "public function hasFailed() {\n return $this->failed == true;\n }", "title": "" }, { "docid": "179d8b7717278eb4f6b1a7ef21c898a1", "score": "0.59558684", "text": "public function allowedRetries()\n {\n if (isset($this->retryMap[$this->code])) {\n return $this->retryMap[$this->code];\n }\n\n return 0;\n }", "title": "" }, { "docid": "7f08e05ae485eaefd3c825983a69a127", "score": "0.5954576", "text": "abstract public function hasConnectionOrFail();", "title": "" }, { "docid": "36e15b46c275fbfa08f9d0652673355f", "score": "0.5895042", "text": "public function shouldRetry(Exception $exception): bool\n {\n $message = $exception->getMessage();\n\n foreach (static::$causes as $cause) {\n if (strstr($message, $cause) !== false) {\n return $this->reconnect();\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "b6a103eb200e9d90be29675fc35f1764", "score": "0.58934164", "text": "function is_locked()\n {\n if (empty($this->data['failed_login'])) {\n return false;\n }\n\n if ($rate = (int) $this->rc->config->get('login_rate_limit', 3)) {\n $last_failed = new DateTime($this->data['failed_login']);\n $threshold = new DateTime('- 60 seconds');\n\n if ($last_failed > $threshold && $this->data['failed_login_counter'] >= $rate) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "4d9590a558a64481ddaa743bde36cde9", "score": "0.5872628", "text": "public function tryToReviewCase($retry = 0)\n {\n $this->retryCaseJob->execute();\n\n $case = $this->getCase();\n\n $guarantee = $case->getGuarantee();\n $score = $case->getScore();\n\n if (empty($guarantee) == false && $guarantee != 'N/A' && empty($score) == false) {\n return true;\n } elseif ($retry < 2) {\n // Avoid do not process on cron because of exponential timeouts\n $this->updateCaseForRetry($case);\n\n // Give Signifyd some time to review case\n sleep(20);\n\n return $this->tryToReviewCase($retry+1);\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "8317598608d7b5131b52d03af312eb2f", "score": "0.5859127", "text": "public function attempt()\n {\n if (!$this->canAttmpt()) {\n return false;\n }\n\n if ($this->attempts > 0) {\n $this->backOff();\n }\n\n $this->attempts++;\n return true;\n }", "title": "" }, { "docid": "d2cc0b61608fc99d0db24c06201af72a", "score": "0.5841555", "text": "public function hasMaxAttempts()\n {\n $total = $this->session->get( $this->key.\".info.fail_total\", 0 );\n\n if( $this->max_attempts > 0 && $this->max_attempts <= $total )\n {\n return true; // locked period\n }\n return false;\n }", "title": "" }, { "docid": "89ae2d734a1323d5f389509dd34bda1d", "score": "0.5833367", "text": "public function hasFailed() {\n return $this->getStatus() === self::STATUS_FAILED;\n }", "title": "" }, { "docid": "bc8745619e50d4ceca994311cc535820", "score": "0.5812253", "text": "public function canContinue() : bool\n {\n $last = end($this->valuesDiceRolls);\n $canContinue = in_array(1, $last) ? false : true;\n\n return $canContinue;\n }", "title": "" }, { "docid": "c25632fb2f16076aa85d9c24254bbceb", "score": "0.58094305", "text": "public function allowedRetries()\n {\n if (isset($this->retryMap[$this->code])) {\n return $this->retryMap[$this->code];\n }\n\n $errors = $this->getErrors();\n\n if (!empty($errors) && isset($errors[0]['reason']) &&\n isset($this->retryMap[$errors[0]['reason']])) {\n return $this->retryMap[$errors[0]['reason']];\n }\n\n return 0;\n }", "title": "" }, { "docid": "c6162eca4f521dec41ee708044aa6239", "score": "0.5791564", "text": "public function shouldRetry(string $requestMethod, string $requestUrl, array $requestOptions, ResponseInterface $partialResponse, \\Throwable $throwable = null): bool;", "title": "" }, { "docid": "22ea135f0186350c167374a5d82b99df", "score": "0.57718134", "text": "protected function _isAllowed()\n {\n return $this->_authorization->isAllowed('Wyomind_Watchlog::attempts');\n }", "title": "" }, { "docid": "b0b55257fa162a1e5b69dddb8f1dfe8c", "score": "0.5693994", "text": "public function requestAttemptsAuthentication(Request $request): bool;", "title": "" }, { "docid": "b48c0fde4edc202c05dfc55736252975", "score": "0.5685249", "text": "public function attempts()\n\t{\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "f92cce8e09e80d5fb35c4c69d35aea47", "score": "0.5677872", "text": "private function _checkConnection() {\n\n\t\t\tif (empty($this->_conn)) {\n\t\t\t\t$this->connect();\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$now = time();\n\t\t\t\tif (($now-$this->_connetedTime) > ($this->_reconnectionTimeout - 2)) {\n\t\t\t\t\t$this->reconnect();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "04ffdea135db139eb487aa7cdbdc224c", "score": "0.5676448", "text": "function lib_login_test_bad_attempts($username)\n{\n\tGLOBAL\t$BAD_ATTEMPTS_MAX;\n\tGLOBAL \t$gDB;\n\t$db = \t$gDB;\n\t\n\t// if this is not a valid username then there's no point\n\t// in continuing...\n\tif(!lib_login_account_exists($username))\n\t\t{return 1;}\n\t\t\n\t$sql_test =<<<SQL\n\t\tSELECT\ttries\n\t\tFROM\ttbl_users\n\t\tWHERE\tusername='$username'\nSQL;\n\n\t$result = $db->Execute($sql_test);\n\t\t\n\tif($result->fields[0] >= $BAD_ATTEMPTS_MAX)\n\t\t{return true;}\n\t\t\n\treturn false;\n}", "title": "" }, { "docid": "6a63d93ace0ad378293691aeb224d86c", "score": "0.5669544", "text": "private function checkAttempts()\n {\n if (isset($_SESSION['login-attempts'])) {\n $this->loginAttempts = $_SESSION['login-attempts'][$this->userIP] + 1;\n\n } else {\n $this->loginAttempts = 1;\n }\n\n $this->setLoginAttempts($this->loginAttempts);\n }", "title": "" }, { "docid": "4faf95bf3e4a65d0415afdbe2d5eb694", "score": "0.55900913", "text": "protected function checkCommandFailed(ScheduledCommand $command)\n {\n $executionTime = $command->getLastExecution();\n\n $executionTimestamp = $executionTime->getTimestamp();\n\n $timedOut = (($executionTimestamp + $this->timeoutValue) < $this->now);\n\n return ($command->getLastReturnCode() != 0) || // last return code not OK\n (\n $command->getLocked() &&\n (\n ($this->timeoutValue === false) || // don't check for timeouts -> locked is bad\n $timedOut // check for timeouts, but (starttime + timeout) is in the past\n )\n );\n }", "title": "" }, { "docid": "4ffe9cf4b7da6db03f2ab944f814a8f6", "score": "0.55851644", "text": "private function check_permissions() {\n global $USER;\n\n require_login();\n\n if (is_siteadmin()) {\n return true;\n }\n\n $cohortids = array(\n 73, // ID of the teachersALL cohort.\n 114, // ID of the secretariesALL cohort.\n );\n foreach ($cohortids as $cohortid) {\n if (cohort_is_member($cohortid, $USER->id)) {\n return true;\n }\n }\n\n throw new Exception(\"You don't have permission to do that.\");\n }", "title": "" }, { "docid": "66662db3f7d7cb24b7d136f9a7d9bf6e", "score": "0.55808204", "text": "public function isLimitExceeded()\n {\n return $this->isInTimeout() || $this->getCounter() >= $this->getLimit();\n }", "title": "" }, { "docid": "11b56fac82c0889f99fb87fcfd8b70b7", "score": "0.5570747", "text": "public function hasFailed(): bool\n {\n return $this->failed;\n }", "title": "" }, { "docid": "748214aeae86626e07e8d655bc082db6", "score": "0.55551493", "text": "public function isFailed()\n\t{\n\t\treturn $this->state == self::SKIP;\n\t}", "title": "" }, { "docid": "64f7adb2eb5cec31f223b918e8a9b9bc", "score": "0.55529207", "text": "static function retryDecider(\n\t\t $retries,\n\t\t Request $request,\n\t\t Response $response = null,\n\t\t RequestException $exception = null\n\t) {\n\t\tif ($retries >= 5) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Retry connection exceptions\n\t\tif ($exception instanceof ConnectException) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif ($response) {\n\t\t\t// Retry on server errors\n\t\t\tif ($response->getStatusCode() >= 500) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t// Retry on rate limits\n\t\t\tif ($response->getStatusCode() == 429) {\n\t\t\t\t$retryDelay = $response->getHeaderLine('Retry-After');\n\n\t\t\t\tif (strlen($retryDelay)) {\n\t\t\t\t\tprintf(\" retry delay: %d secs\\n\", (int)$retryDelay);\n\t\t\t\t\tsleep((int)$retryDelay);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "c15aa6e54503c50ece9ab6ec06c63f8f", "score": "0.55469346", "text": "protected function canProceed()\n {\n $fp = fopen($this->lockFilePath, 'a+');\n\n if (!$fp) {\n throw new PhealException(\n 'Cannot open rate limiter lock file ' .\n $this->lockFilePath .\n ': ' .\n error_get_last()\n );\n }\n\n if (flock($fp, LOCK_EX)) {\n fseek($fp, 0);\n $bucketSize = trim(fgets($fp));\n $lastRequest = trim(fgets($fp));\n\n $now = microtime(true);\n\n // Empty out slots based on time since last request\n $bucketsToFree = floor(($now - $lastRequest) * $this->requestsPerSecond);\n $bucketSize = max(0, $bucketSize - $bucketsToFree);\n\n if ($bucketSize < $this->maxBurst) {\n $bucketSize++;\n $lastRequest = microtime(true);\n\n ftruncate($fp, 0); // truncate file\n fwrite($fp, $bucketSize . \"\\n\");\n fputs($fp, $lastRequest . \"\\n\");\n fflush($fp); // flush output before releasing the lock\n flock($fp, LOCK_UN); // release the lock\n fclose($fp);\n\n return true;\n } else {\n fclose($fp);\n\n return false;\n }\n } else {\n fclose($fp);\n\n return false;\n }\n }", "title": "" }, { "docid": "3a3c1186d066ce1d28df71cbf8f9ad39", "score": "0.55407554", "text": "protected function canRoll()\n {\n return $this->hasRestrictionsForCalendar()\n ? $this->verifyVehicleCirculationByTime()\n : true;\n }", "title": "" }, { "docid": "1770527c6511759418aa82dc0722a432", "score": "0.5530698", "text": "public function canContinue(): bool\n {\n $limit =\n (int) ($this->configRepository->get('fibonacci.max_fibonacci_elements')\n ?? $this->redisSchemaDictionary->getRedisElementsMax());\n\n return $this->getSequenceLength() < $limit;\n }", "title": "" }, { "docid": "f4698fced3ba981851231f5c87b370da", "score": "0.5517657", "text": "public function fails()\n\t\t{\n\t\t\treturn $this->errorHandler->hasErrors();\n\t\t}", "title": "" }, { "docid": "093d17c7f85de0aa14f81c597fdd194c", "score": "0.54938394", "text": "public function failed(): bool\n {\n return ! $this->successful();\n }", "title": "" }, { "docid": "d1f29edd73e22f96d6ec419f7e804256", "score": "0.5485059", "text": "public function check()\n\t{\n\t\tif (parent::check() === False)\n\t\t\treturn False;\n\n\t\tif ($this->connect() === False)\n\t\t\treturn False;\n\n\t\t$ret = $this->check_pgq_last_batch();\n\n\t\tif ($ret && $this->table != NULL) {\n\t\t\t$ret = $this->check_pgq_trigger();\n\t\t}\n\t\t$this->disconnect();\n\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "79b8fec98904a33a90e91c18ee245969", "score": "0.54648", "text": "function checkbrute($mysqli) {\n $now = time();\n \n // All login attempts are counted from the past 15 minutes. \n $valid_attempts = $now - (15 * 60);\n \n if ($queryRes = $mysqli->query('SELECT time\n FROM login_attempts\n WHERE time > ' . $valid_attempts . ';')) {\n \n // If there have been more than 15 failed logins \n if ($queryRes->num_rows > 15) {\n return true;\n } else {\n return false;\n }\n }\n }", "title": "" }, { "docid": "1c0ffb81cf234a68523ded5183d40565", "score": "0.5450946", "text": "public function attempts()\n {\n return 1;\n }", "title": "" }, { "docid": "69508bd40c24a8acac99ec1c5e705ad5", "score": "0.5424506", "text": "public function needsCheck()\n {\n return !$this->isValid();\n }", "title": "" }, { "docid": "ad7f0c32eb2928c467e0d276c3fd57ec", "score": "0.54226077", "text": "function is_limit_login_ok() {\n\t/* Test that there is not a (still valid) lockout on ip in lockouts array */\n\treturn !limit_login_check_time(limit_login_get_array('lockouts'));\n}", "title": "" }, { "docid": "cfde6ce72da842bc76be12f0b34d2ff0", "score": "0.541522", "text": "public function attempt(array $credentials): bool;", "title": "" }, { "docid": "49b747213952c255a9bf2e4fbc890980", "score": "0.541167", "text": "public function retry() {\n $this->retries++;\n $this->errors = 0;\n $this->uncalled();\n }", "title": "" }, { "docid": "34d956f4f2a55abcb54c4ed521e3e528", "score": "0.5411601", "text": "private function areRequestsAllowedBy($results)\n {\n return $results['allowed'] == 't';\n }", "title": "" }, { "docid": "efc8f0c6ba655ca1e8c7c3a7ce4f3bff", "score": "0.5373522", "text": "public function retryDecider(int $retries, RequestInterface $request, ResponseInterface $response = null, RequestException $exception = null): bool\n {\n // Retry connection exceptions\n if ($exception instanceof ConnectException) {\n return true;\n }\n\n $statusCode = $response->getStatusCode();\n\n // 503 being \"Service unavailable\", we retry in case it become available again. We also retry on 500 as we've found out that\n // TradeGecko API is quite unreliable and often returns 500\n\n if ($response && ($statusCode === 503 || $statusCode === 500)) {\n return true;\n }\n\n // Otherwise, if we're having a 429, we sleep until our quota reset\n if ($response && $statusCode === 429) {\n sleep((int) $response->getHeaderLine('X-Rate-Limit-Reset') - time());\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "31d1d6fc7af681510415cffe0544f7fe", "score": "0.53633773", "text": "protected function canBeRejudged(): bool\n {\n if($this->judged && !config('judge0.resubmit_judged_submission'))\n {\n if(config('judge0.throw_error_on_resubmit')){\n throw new Exception(\"This submission has already been judged, and can not be rejudged\");\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "3c50646f2083395f7cdc27de2b8c25d9", "score": "0.5340624", "text": "public function checkValidity()\n {\n \tif (empty($this->channelId))\n {\n $this->lastErrorMsg = _BIZ_ERROR_CHANNELID_IS_MANDATORY;\n //return false;\n }\n \n return true;\n }", "title": "" }, { "docid": "3e49b07cccd65923dc0d9ad13328981f", "score": "0.5338685", "text": "public function checkRights()\n {\n // no requirements assigned -> execute always\n if (!$this->rights) {\n return true;\n }\n\n $result = true;\n\n $requiredUser = $this->rights->getUser();\n $requiredHost = $this->rights->getHost();\n\n $excludedUser = $this->rights->getUserExcluded();\n $excludedHost = $this->rights->getHostExcluded();\n\n $user = getenv('USERNAME') ?: getenv('USER');\n $host = gethostname();\n\n // check user requirements\n if($requiredUser) {\n $result = (\n $result && // not yet invalidated\n preg_match(\"{\" . $requiredUser . \"}\", $user) // requirement does match executing user\n );\n }\n\n // check excluded user requirements\n if($excludedUser) {\n $result = (\n $result && // not yet invalidated\n !preg_match(\"{\" . $excludedUser . \"}\", $user) // requirement must not match executing user\n );\n }\n\n // check host requirements\n if($requiredHost) {\n $result = (\n $result && // not yet invalidated\n preg_match(\"{\" . $requiredHost . \"}\", $host) // requirement does match hostname\n );\n }\n\n // check excluded host requirements\n if($excludedHost) {\n $result = (\n $result && // not yet invalidated\n !preg_match(\"{\" . $excludedHost . \"}\", $host) // requirement must not match hostname\n );\n }\n\n return $result;\n }", "title": "" }, { "docid": "fc4d48ee093a437c0865b675b45ec648", "score": "0.5333035", "text": "protected function autoRetry()\n {\n if ($this->attempts() <= $this->config['retry']) {\n return $this->connector->release($this, $this->config['delay']);\n }\n }", "title": "" }, { "docid": "3a85c5829728370a709f74bc286ea3a0", "score": "0.5327159", "text": "public function fails()\n\t{\n\t\treturn (!empty($this->failed)) ? true : false;\n\t}", "title": "" }, { "docid": "b57289a4ece8ee8238f8e3fc118480a2", "score": "0.532639", "text": "public function isFailed()\n {\n return self::STATUS_NEW_FAILED == $this->getStatusCode();\n }", "title": "" }, { "docid": "6da504e8b0c01d215d793a4f633495fb", "score": "0.53204274", "text": "public function isFailsafe(): bool\n {\n return $this->failsafe;\n }", "title": "" }, { "docid": "225de9d0f396f1beb2e97f02963cb063", "score": "0.53150445", "text": "public function isTimeoutError() {\n return static::isTimeoutErrorCode($this->PelecardStatusCode);\n }", "title": "" }, { "docid": "216a59e4d1a0132097dfe8c551353f58", "score": "0.53144556", "text": "public function checkError(){\n\n\t if ($this->error != 0){\n\t throw new \\Exception('Error');\n }\n else{\n\t return true;\n }\n }", "title": "" }, { "docid": "5c7886ec8cbba9a4b75f13e202d3889c", "score": "0.5312407", "text": "protected static function _check_login_attempts($email = '')\n {\n $ci =& get_instance();\n\n // load the resources\n $ci->load->model('users_model', 'user');\n $ci->load->model('system_model', 'sys');\n\n $attempts = $ci->sys->count_login_attempts($email);\n\n if ($attempts < self::$allowed_login_attempts) {\n return true;\n } else {\n $item = $ci->sys->get_last_login_attempt($email);\n\n $timeframe = now() - $item->login_time;\n\n if ($timeframe > self::$lockout_time) {\n // clear the login attempts if there are any\n $ci->sys->delete_login_attempts($email);\n\n return true;\n }\n\n return false;\n }\n }", "title": "" }, { "docid": "c875b9187bc108951fa6286dd7ba5b13", "score": "0.5309392", "text": "abstract public function getAttempts();", "title": "" }, { "docid": "fbadea4e6fab59f42e5f09ec81ba9b6c", "score": "0.5303192", "text": "public function isValid() {\n $hasReachedMaxUsage = $this->timesUsed() >= $this->max_times_used;\n\n // Check expiration\n $isExpired = $this->expires_at < Carbon::now();\n\n // Check whether it is active\n $isActive = $this->active;\n\n return !$hasReachedMaxUsage && !$isExpired && $isActive;\n }", "title": "" }, { "docid": "5bc85040d396afffd6d6ab48931baacc", "score": "0.5300128", "text": "protected function check() {\n\t\t$attackedPlayer = $this->params['enemyPlayerUsername'];\n\t\tif ($this->loggedUser['username'] != $attackedPlayer) {\n\t\t\tforeach ($this->players as $player) {\n\t\t\t\t$user = $player->getUser();\n\t\t\t\tif ($user['username'] == $attackedPlayer) {\n\t\t\t\t\t$this->attackedPlayer = $player;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->attackedPlayer) {\n\t\t\t\tif ($this->attackedPlayer->getRoleObject()->getIsSheriff()) {\n\t\t\t\t\t$this->check = self::CANNOT_PLAY_JAIL_AGAINST_SHERIFF;\n\t\t\t\t} elseif ($this->attackedPlayer->getHasJailOnTheTable()) {\n\t\t\t\t\t$this->check = self::ALREADY_IN_JAIL;\n\t\t\t\t} elseif ($this->attackedPlayer['actual_lifes'] <= 0) {\n\t\t\t\t\t$this->check = self::CANNOT_PLAY_JAIL_AGAINST_DEAD_PLAYER;\n\t\t\t\t} else {\n\t\t\t\t\t$this->check = self::OK;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->check = self::PLAYER_IS_NOT_IN_GAME;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->check = self::CANNOT_PLAY_JAIL_AGAINST_YOURSELF;\n\t\t}\n\t}", "title": "" }, { "docid": "3e30dd3fe1d15c9483500bace3cb47e8", "score": "0.5294108", "text": "public function check(): bool\n {\n if (0 == $this->limit) {\n return false;\n }\n\n $key = $this->parseKey();\n\n if ($this->limit > $this->count($key, $this->time)) {\n $this->hit($key, $this->time);\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "05ea25ba2ace3518b5c84128b08c9960", "score": "0.5293642", "text": "public function is_limit_login_ok() {\n\n\t\t$ip = $this->get_address();\n\n\t\t/* Check external whitelist filter */\n\t\tif ( $this->is_ip_whitelisted( $ip ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t/* lockout active? */\n\t\t$lockouts = $this->get_option( 'lockouts' );\n\n\t\treturn ( !is_array( $lockouts ) || !isset( $lockouts[ $ip ] ) || time() >= $lockouts[$ip] );\n\t}", "title": "" }, { "docid": "d0daa2a607857eafad5c365dbc83ff55", "score": "0.5286341", "text": "public function checkRatingsEnabled()\n {\n $enableRatings = ($this->owner->EnableRatings || $this->owner->config()->rateable_config_enabled);\n return $enableRatings && $this->owner->exists() && $this->owner->ClassName != ErrorPage::class;\n }", "title": "" }, { "docid": "aba5ad10672be62e3c32ee744fbbdcde", "score": "0.5283514", "text": "public function canContinue() { \n \treturn true;\n }", "title": "" }, { "docid": "52a198024359da795fe9a08ecaf88c61", "score": "0.52749574", "text": "protected function attemptsTimeout(){\n\t\treturn 3*60;\n\t}", "title": "" }, { "docid": "4bf4aafe732136aae4b77d3c203585d9", "score": "0.5272988", "text": "public function ip_login_attempts_exceeded()\n\t{\n\t\treturn $this->CI->flexi_auth_model->ip_login_attempts_exceeded();\n\t}", "title": "" }, { "docid": "9c2d3f4206996c0d97c678837b67c9f0", "score": "0.52721995", "text": "private function isConnectionError(): bool\n {\n return is_null($this->getResponse());\n }", "title": "" }, { "docid": "83eb84b1efc84d96306bda60e5501500", "score": "0.5271224", "text": "public function isSuccessful()\n {\n return in_array(substr($this->getHttpCode(), 0, 1), array(2, 3));\n }", "title": "" }, { "docid": "c69f15beca4b8182a1c81ad2a6b6aa56", "score": "0.52642506", "text": "public function is_preflight_check_required($attemptid) {\n return empty($attemptid);\n }", "title": "" }, { "docid": "ae699e443d1731df633454ef640e73a4", "score": "0.5262628", "text": "public function isRepeatable()\n {\n $max = (int) $this->getConfigurationValue('repeat_max');\n\n return $max > 1;\n }", "title": "" }, { "docid": "61c52d169b7ccd0f71dac108d656940d", "score": "0.5261892", "text": "protected function actionHasFailedMethod(Actionable $action): bool\n {\n return method_exists($action, 'failed');\n }", "title": "" }, { "docid": "e59c35315fc6aa02992f96de5c7ab32b", "score": "0.52607346", "text": "public static function rejected()\n {\n return self::get() == -1;\n }", "title": "" }, { "docid": "ab815d1e09a512b9c0f0875532bba602", "score": "0.52538246", "text": "public function isUnsuccessful(): bool\n {\n return $this->isOneOf([self::ABANDONED, self::STOPPED, self::FAILED]);\n }", "title": "" }, { "docid": "76239a9259eccade32df12cf653f25d7", "score": "0.5250909", "text": "public function check_availability() {\n \n return true;\n \n }", "title": "" }, { "docid": "5d790d01d4214c6caa159d848ad0fbdc", "score": "0.5247178", "text": "protected function _isBot()\n {\n if (Mage::app()->getRequest()->getParam('fail_key')) {\n // Auth by fail key\n if ($lc = Mage::getSingleton('customer/session')->getLastBotCheck()) {\n if ((time() - $lc) < 15) {\n Mage::getSingleton('customer/session')->setLastBotCheck(time());\n return true;\n } else {\n Mage::getSingleton('customer/session')->setLastBotCheck(time());\n }\n }\n $failKey = Mage::app()->getRequest()->getParam('fail_key');\n $failKeyHash = Mage::app()->getRequest()->getParam('fail_key_hash');\n return !Mage::getSingleton('helpdeskultimate/antibot')->checkFailKey($failKey, $failKeyHash);\n } else {\n $hduSeed = Mage::app()->getRequest()->getParam('hdu_seed');\n return !Mage::getSingleton('helpdeskultimate/antibot')->checkSeed($hduSeed);\n }\n }", "title": "" }, { "docid": "850c7cb9b6f20a417dbfdeed0f3f71ce", "score": "0.52381516", "text": "public function ip_login_attempts_exceeded()\r\n\t{\r\n\t\treturn $this->CI->flexi_auth_model->ip_login_attempts_exceeded();\r\n\t}", "title": "" }, { "docid": "ebc1ad1c1eab1871b507d58507035179", "score": "0.5237564", "text": "public function check(): bool\n {\n static $checked = null;\n\n if (isset($checked)) {\n return $checked; // Make sure its executed only once during the request\n }\n\n $checked = true;\n\n try {\n if ($this->checkExpiredPrivateKey()) {\n $this->requestVerification();\n }\n } catch (Throwable $exception) {\n $this->shutdown($exception);\n }\n\n return $checked;\n }", "title": "" }, { "docid": "e2a00098516b9578c085573beddda5e9", "score": "0.5236651", "text": "public function fails()\n {\n return !empty($this->errors);\n }", "title": "" }, { "docid": "d0438f58cabb5757f781f23efaad9055", "score": "0.5228318", "text": "public function fails(): bool\n {\n return !$this->passes();\n }", "title": "" }, { "docid": "1412d24d58a32a5392ef696f26dffed7", "score": "0.5227327", "text": "public function is_pipl_error()\r\n {\r\n return !$this->is_user_error();\r\n }", "title": "" }, { "docid": "371de1b8bd394a363ecbf57ec47396a5", "score": "0.52257437", "text": "public function attempt(ContainerInterface $container): bool;", "title": "" }, { "docid": "66ad45f305426320752faf35b7697ba3", "score": "0.5222735", "text": "protected function shouldEscalateFromNoResults()\n {\n $triesBeforeEscalation = $this->conf->get('chat.triesBeforeEscalation');\n return $this->chatEnabled() && $triesBeforeEscalation && $this->session->get('noResultsCount') >= $triesBeforeEscalation;\n }", "title": "" }, { "docid": "66ad45f305426320752faf35b7697ba3", "score": "0.5222735", "text": "protected function shouldEscalateFromNoResults()\n {\n $triesBeforeEscalation = $this->conf->get('chat.triesBeforeEscalation');\n return $this->chatEnabled() && $triesBeforeEscalation && $this->session->get('noResultsCount') >= $triesBeforeEscalation;\n }", "title": "" }, { "docid": "7e0ae7ecad1606ac1a104ae43b5f2c99", "score": "0.5218161", "text": "protected function exceedMaxFailedAttempts($count) {\n $max = variable_get('queue_item_max_failed_attempts_' . $this->name, 2);\n if ($max == 0 || $count < $max) {\n return FALSE;\n }\n return TRUE;\n }", "title": "" }, { "docid": "1d76bdc456a356a27f8c88efb83b0a8c", "score": "0.5218077", "text": "protected function _check_limit($controller_method)\n {\n // They are special, or it might not even have a limit\n if (!empty($this->rest->ignore_limits) OR !isset($this->methods[$controller_method]['limit'])) {\n // On your way sonny-jim.\n return TRUE;\n }\n\n // How many times can you get to this method an hour?\n $limit = $this->methods[$controller_method]['limit'];\n\n // Get data on a keys usage\n $result = $this->rest->db\n ->where('uri', $this->uri->uri_string())\n ->where('api_key', $this->rest->key)\n ->get(config_item('rest_limits_table'))\n ->row();\n\n // No calls yet, or been an hour since they called\n if (!$result OR $result->hour_started < time() - (60 * 60)) {\n // Right, set one up from scratch\n $this->rest->db->insert(config_item('rest_limits_table'), array(\n 'uri' => $this->uri->uri_string(),\n 'api_key' => isset($this->rest->key) ? $this->rest->key : '',\n 'count' => 1,\n 'hour_started' => time()\n ));\n } // They have called within the hour, so lets update\n else {\n // Your luck is out, you've called too many times!\n if ($result->count >= $limit) {\n return FALSE;\n }\n\n $this->rest->db\n ->where('uri', $this->uri->uri_string())\n ->where('api_key', $this->rest->key)\n ->set('count', 'count + 1', FALSE)\n ->update(config_item('rest_limits_table'));\n }\n\n return TRUE;\n }", "title": "" }, { "docid": "4e6a0c11d3097b651c98051bc24a886a", "score": "0.5216195", "text": "public function tries()\n {\n return $this->triesLeft;\n }", "title": "" } ]
e3f357a3369cc611e8834b8d823bc67d
Class constructor, destructor etc ... Constructor.
[ { "docid": "eaa51997be64143d7e484e12730520d9", "score": "0.0", "text": "public function __construct(SessionHandlerInterface $handler, $sessionName, array $cookieParams)\n\t{\n\t\t$this->handler = $handler;\n\n\t\t// Set the session handler, set the session name and start the session\n\n\t\tsession_set_save_handler($handler, false);\n\n\t\tsession_name($sessionName);\n\n\t\tsession_set_cookie_params(0, $cookieParams['path'], $cookieParams['domain'], $cookieParams['secure'], $cookieParams['httponly']);\n\n\t\tsession_start();\n\t}", "title": "" } ]
[ { "docid": "d95065509cc1d0b4a6050f28f4592eed", "score": "0.8026631", "text": "function __constructor(){}", "title": "" }, { "docid": "e66cb980f78f9e2b9174b4faf17224d2", "score": "0.7989457", "text": "private function __contructor() {}", "title": "" }, { "docid": "303c6463401e09821159820390808780", "score": "0.77372926", "text": "final private function __construct()\n\t{\n\t}", "title": "" }, { "docid": "303c6463401e09821159820390808780", "score": "0.77372926", "text": "final private function __construct()\n\t{\n\t}", "title": "" }, { "docid": "0666b14e1490be036701bc5d0a2f0c47", "score": "0.7734345", "text": "final private function __construct() {\r\n\t}", "title": "" }, { "docid": "0666b14e1490be036701bc5d0a2f0c47", "score": "0.7734345", "text": "final private function __construct() {\r\n\t}", "title": "" }, { "docid": "15f695115c2c735a8c346788b6cb2511", "score": "0.76904994", "text": "private function __construct (){}", "title": "" }, { "docid": "4fcf3b0247f5496c801c094660f227bd", "score": "0.7660273", "text": "private function __construct()\n {\n // this class cannot be instantiated\n \n }", "title": "" }, { "docid": "236d0b9a9f6746fec3fd59ead5fa9d9c", "score": "0.7651145", "text": "final private function __construct() {}", "title": "" }, { "docid": "fb4c3f07ec66dc085096bd8483bf3da6", "score": "0.7608738", "text": "private final function __construct(){}", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.756807", "text": "final private function __construct() {}", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.756807", "text": "final private function __construct() {}", "title": "" }, { "docid": "365fa1d285830c92f43002a58f01718f", "score": "0.7562234", "text": "private function _construct() {}", "title": "" }, { "docid": "abafabb2e6139e8d44ba1c18cfac7358", "score": "0.7560725", "text": "final private function __construct() { }", "title": "" }, { "docid": "abafabb2e6139e8d44ba1c18cfac7358", "score": "0.7560725", "text": "final private function __construct() { }", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.7557835", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.7557835", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.7557835", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.7557835", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.7557835", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.7557835", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.7557835", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.7557835", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.7557835", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.7557835", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.7557835", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.7557835", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.7557835", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.7557835", "text": "private function __construct(){}", "title": "" }, { "docid": "e604ffabb18dce83ee0f86419a830df1", "score": "0.7554482", "text": "final private function __construct()\n {\n }", "title": "" }, { "docid": "e604ffabb18dce83ee0f86419a830df1", "score": "0.7554482", "text": "final private function __construct()\n {\n }", "title": "" }, { "docid": "e604ffabb18dce83ee0f86419a830df1", "score": "0.7554482", "text": "final private function __construct()\n {\n }", "title": "" }, { "docid": "625e1f14faaedc67311bb1e0f23a6267", "score": "0.75076145", "text": "public function __construct() {\n\t\t\t// leave empty, see singleton below\n\t\t}", "title": "" }, { "docid": "8112e1736694c034d5fbd690856f6de1", "score": "0.7466939", "text": "final private function __construct()\n {\n //\n }", "title": "" }, { "docid": "2bd40717790f916a84e46bdc8dbb5d4e", "score": "0.7429634", "text": "private function __construct() {\n\t\t//\n\t}", "title": "" }, { "docid": "75cbdff6a1596b5f423793bff4e5f098", "score": "0.74275607", "text": "function __construct() {\n\t\t// Do nothing\t\n\t}", "title": "" }, { "docid": "3de72ddf803612736597629fa638a5b2", "score": "0.74171966", "text": "protected function __construct() {\n // class (singleton pattern).\n }", "title": "" }, { "docid": "33aa0ae49523e1185cfd7e7403f1089e", "score": "0.74115574", "text": "private function __construct()\r\n\t\t{\r\n\t\t \r\n\t\t\t/* Do Nothing */\r\n\t\t\r\n\t\t}", "title": "" }, { "docid": "4a5ab4b4934430cb2df9367c59c77890", "score": "0.7408126", "text": "private function\n\t__construct() { \n\t}", "title": "" }, { "docid": "61517b0213f429081ad6d27b3598bebb", "score": "0.7398089", "text": "private function __construct() {\n\t\t}", "title": "" }, { "docid": "61517b0213f429081ad6d27b3598bebb", "score": "0.7398089", "text": "private function __construct() {\n\t\t}", "title": "" }, { "docid": "4d3ec4d120da4f4ba73783b84248d6ac", "score": "0.7393557", "text": "private final function __construct() {}", "title": "" }, { "docid": "23be43034bea655228e30b10f3ed8519", "score": "0.73909026", "text": "function __construct()\n {\n //default constructor for this class\n }", "title": "" }, { "docid": "58a6b5d6e8112e6dc08d193908d46ed4", "score": "0.73786074", "text": "public final function __construct()\n {\n // Empty on purpose.\n }", "title": "" }, { "docid": "42d48a64aec06772020f837c1da0b7d6", "score": "0.7377856", "text": "private function __construct()\r\n\t{\r\n\t}", "title": "" }, { "docid": "81427cb81edc6995521f24ea70c130e3", "score": "0.7366235", "text": "function __construct()\n\t{\n\t\t// so this one is just a dummy one until it needs something to do.\n\t}", "title": "" }, { "docid": "b87a56dc9ff97e30b3f1bc3d1cc25495", "score": "0.7359578", "text": "private function __construct() {}", "title": "" }, { "docid": "b87a56dc9ff97e30b3f1bc3d1cc25495", "score": "0.7359578", "text": "private function __construct() {}", "title": "" }, { "docid": "7ba74cf80319857b879252eb0e239339", "score": "0.7355836", "text": "private function __construct()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "7ba74cf80319857b879252eb0e239339", "score": "0.7355836", "text": "private function __construct()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "7ba74cf80319857b879252eb0e239339", "score": "0.7355836", "text": "private function __construct()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7349675", "text": "private function __construct() {}", "title": "" } ]
2e640b2819e0e2483ca2c8015eacce77
Show the application dashboard.
[ { "docid": "0f706b6f7541f400d7f48cb55b2dc64a", "score": "0.0", "text": "public function index()\n {\n try {\n $locale = app()->getLocale();\n\n $count = News::where('lang', $locale)->get()->count();\n\n $data['count'] = $count;\n } catch (QueryException $e) {\n Log::error($e->getMessage());\n }\n return view('news', $data);\n }", "title": "" } ]
[ { "docid": "ff5aa3df7490e4de8d2b4b28031fb1d4", "score": "0.83087254", "text": "function dashboard() {\n\n //TODO: Display dashboard.\n }", "title": "" }, { "docid": "660797d3b6b5358f9704019dcad4d4e5", "score": "0.7608298", "text": "public function showDashboard()\n {\n set_meta('title', trans('antares/foundation::title.home'));\n $this->app->make('events')->fire('version.check');\n if (auth()->user()->hasRoles('member')) {\n return view('antares/foundation::dashboard.member');\n }\n\n return view('antares/foundation::dashboard.index');\n }", "title": "" }, { "docid": "b8212be2b703596842e347cadd62638d", "score": "0.75665504", "text": "public function dashboard()\n {\n return View::make('admin.admin.dashboard')\n ->with('title', 'Painel');\n }", "title": "" }, { "docid": "ab70063921daaef931379976030c8aa0", "score": "0.7505035", "text": "public function index()\n {\n $dashboard = SAdminDash::all();\n return view('superadmin.dashboard', compact('dashboard'));\n }", "title": "" }, { "docid": "ce00a0a446d8b60ab6e1e2af5c6d62e5", "score": "0.75019586", "text": "public function ShowDashboard()\n {\n return view('backend.backend-pages.admin-dashboard');\n }", "title": "" }, { "docid": "972748835ed0ffbff28389def9aa2cf1", "score": "0.74990976", "text": "public function getDashboard()\n\t{\t\t\n\t\treturn view('agent.dashboard.index' );\n\t}", "title": "" }, { "docid": "097c5e267a0b5129ec807abf44a7dea2", "score": "0.7449723", "text": "public function dashboard()\n {\n return view(\"admin_pages/dashboard\");\n }", "title": "" }, { "docid": "dbdc990664b1b4ad15419b10a80e156a", "score": "0.74173534", "text": "public function showDashboard() {\n return view('dashboard/dashboard', ['user' => Auth::user()]);\n }", "title": "" }, { "docid": "e1462d91e3afd228baa867b72c7d770e", "score": "0.7410559", "text": "public function index()\n {\n Inertia::setRootView('layouts/app');\n\n return Inertia::render('Dashboard', ['data' => [],]);\n }", "title": "" }, { "docid": "eaad744ae4a80f1c1b23d80620b5aafb", "score": "0.7402524", "text": "public function index()\n {\n Utils::ResolveStuff();\n return view('backend.home.dashboard');\n }", "title": "" }, { "docid": "779109492679d5f10c30f5d58d0f3d04", "score": "0.74020934", "text": "public function index()\n {\n $this->instantDashboard();\n }", "title": "" }, { "docid": "29746963063c962bc6a315ffc0736351", "score": "0.73958474", "text": "public function index()\n {\n abort_if(Gate::denies('access_admin_panel'), Response::HTTP_FORBIDDEN, '403 Forbidden');\n\n $dependencies_admin_panel = $this->ComposerJsonRequire(base_path('vendor/viropanel/admin-laravel/composer.json'));\n\n $dependencies_app = $this->ComposerJsonRequire(base_path('composer.json'));\n\n\n return view('admin::admin.dashboard', [\n 'dependencies_admin_panel' => $dependencies_admin_panel,\n 'dependencies_app' => $dependencies_app,\n ]);\n }", "title": "" }, { "docid": "20126b0f7e7a05c57f543bbb237b6b38", "score": "0.7357348", "text": "public function actionDashboard()\n {\n $data['dashboardTotals'] = Advisers::get_dashboard_admin();\n $data['coordinators'] = Advisers::getCoordinadores();\n $data['campanasNoAsignadas'] = Advisers::campanas_sin_asignar();\n $data['campanasXclientes'] = [];\n $this->layout = 'layout_dashboad_profile_admin';\n $this->render('dashboard', $data);\n }", "title": "" }, { "docid": "1a8925153d4fdf57b36c041ec5d7a890", "score": "0.7350788", "text": "public function dashboard()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "1a8925153d4fdf57b36c041ec5d7a890", "score": "0.7350788", "text": "public function dashboard()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "05753ae7d7fc17660047e9674f8f008d", "score": "0.73420244", "text": "public function dashboard()\n {\n return view('dashboard.index');\n }", "title": "" }, { "docid": "bba402e00b4d832fc147463ea74a410e", "score": "0.73206705", "text": "public function index() {\n return View::make('admin.dashboard');\n }", "title": "" }, { "docid": "00a922fd63b37374711b91a8147c4d88", "score": "0.73170435", "text": "public function dashboard()\n {\n return view(\"strategy.dashboard\");\n }", "title": "" }, { "docid": "62df312ad11e3d2ce6123adb1bd136ab", "score": "0.73069507", "text": "public function showDashboard()\n {\n return view('backend.dashboard', ['users' => User::all()]);\n }", "title": "" }, { "docid": "417709752a4f6b7a1bd1dc55e3a40066", "score": "0.730049", "text": "public function dashboard()\n {\n //\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "a3d6f4a639371f70a7db19c5453f7d9f", "score": "0.7290255", "text": "public function index()\n {\n return view('admin.dashboard.dashboard');\n }", "title": "" }, { "docid": "e868f721d7d439e18195a9b3f0b73161", "score": "0.7290247", "text": "public function dashboard()\n {\n return view(\"Brand::dashboard\");\n }", "title": "" }, { "docid": "a20d9d4028c8f63afe4bee3ec6ee1c4d", "score": "0.7288744", "text": "protected function indexAction()\n {\n $this->render(\n 'admin/dashboard/index.html',\n [\n 'nav_switcher' => $this->repo->getNavSwitcher(),\n 'main_cards' => $this->repo->mainCards(),\n 'todays_datetime' => date(\"F j, Y, g:i a\"),\n 'progress_bar_data' => $this->repo->getProgressBarData(),\n 'money_card_data' => $this->repo->getMoneyCardData(),\n ]\n );\n }", "title": "" }, { "docid": "09a12ce77154be48c8e2152ad791a756", "score": "0.7287326", "text": "public function index()\n {\n $this->fb_ex_admin_dashboard();\n }", "title": "" }, { "docid": "b090cbe86b3df44f4bb238f14e9542f2", "score": "0.72789633", "text": "public function index()\n {\n return view('backend.dashboard');\n }", "title": "" }, { "docid": "ebe549b3778de7529b834e99dbf33f29", "score": "0.7273674", "text": "public function index()\n {\n return view('Backend.Admin.dashboard');\n }", "title": "" }, { "docid": "979df6f8245a87c8084d6a419248f035", "score": "0.727347", "text": "public function dashboard()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "979df6f8245a87c8084d6a419248f035", "score": "0.727347", "text": "public function dashboard()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "979df6f8245a87c8084d6a419248f035", "score": "0.727347", "text": "public function dashboard()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "df853bc3338af355eb407ce1700a97ef", "score": "0.7269054", "text": "public function index()\n\t{\n\t\t$this->template->admin('contents/dashboard_v1');\n\t}", "title": "" }, { "docid": "f662b6da7beee2fd412c22c140837a87", "score": "0.7253305", "text": "public function index()\n {\n return view('admin.a_dashboard');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "f5cb326acefa26accd5b7518dece5c2f", "score": "0.7250891", "text": "public function dashboard(){\n return view('dashboard-admin.index');\n }", "title": "" }, { "docid": "e9ed3409e973808b722ed8e99e1ba4f4", "score": "0.7248802", "text": "public function index()\n {\n \t\n return view('admin::admin.dashboard');\n }", "title": "" }, { "docid": "4e873321cf591943538866c8d730c75d", "score": "0.7239856", "text": "public function dashboard()\n {\n return view('home.dashboard');\n }", "title": "" }, { "docid": "6ea832699e188ff699a0520a19c8393a", "score": "0.72379035", "text": "public function index()\n {\n //\n // echo 'Welcome to Client Dashboard';\n\n return view('client.dashboard');\n }", "title": "" }, { "docid": "ba4d8a05b3a7765ee9739727eaa5dfb4", "score": "0.7237793", "text": "public function index()\n {\n $this->authorize('dashboard');\n \n return view('admin.pages.dashboard');\n }", "title": "" }, { "docid": "07677c91c06fb8b57e695e3780a0ed43", "score": "0.7235562", "text": "public function show()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "a0e071ed3ebf4b11b4f07e2a0efb7a8e", "score": "0.72334594", "text": "public function dashboard()\n {\n return view('dashboard.dashboard');\n }", "title": "" }, { "docid": "f0de11e2e8cf4257f515ae45c4961154", "score": "0.72234786", "text": "public function index()\n\t{\n\n\t\t$this->theme->set_title('Dashboard - Application')\n\t\t->add_style('component.css')\n\t\t->add_style('kendo/css/kendo.common-bootstrap.min.css')\n\t\t->add_style('kendo/css/kendo.bootstrap.min.css')\n\t\t->add_script('controllers/collector.js');\n\n\n\t\t$data['user_info'] = $this->user_session;\t\n\t\t$data['left_sidebar'] = $this->theme->set_sidebar('left',$data);\n\t\t$data['theme'] = $this->theme->get_image_path();\n\t\t$this->theme->set_view('collector/collector',$data,true);\n\t}", "title": "" }, { "docid": "55362b51d853dd657a3ab3039fe7f6da", "score": "0.72129864", "text": "public function index()\n {\n $data = $this->service->dashboardView(new Profile(), Auth::user()->is_admin);\n return view('dashboard', [\n 'datas' => $data\n ]);\n }", "title": "" }, { "docid": "e60887d79adeb1a68ebe19e6dff1e9a0", "score": "0.72123057", "text": "public function dashboard()\n {\n if (!Services::modules()->hasMemberDashboard()) {\n return $this->showError();\n }\n\n $this->data['dashboards'] = Services::modules()->getMemberDashboards();\n\n $this->data['title'] = _l(\"Dashboard\", $this);\n $this->data['breadcrumb'] = array(\n array('title'=>_l(\"Dashboard\", $this))\n );\n $this->data['keyword'] = \"\";\n $this->data['page'] = \"dashboard\";\n return $this->viewRender(\"dashboards\");\n }", "title": "" }, { "docid": "d2f22c22072073fc14c1976103b67439", "score": "0.719724", "text": "public function index()\n {\n return view('superdashboard');\n }", "title": "" }, { "docid": "2c42ccbc579287e2a1b207eee308b5c3", "score": "0.7181056", "text": "public function dashboard(){\n \treturn view('admin.dashboard');\n\t}", "title": "" }, { "docid": "078066c91854b1c24cdb00c2309dc331", "score": "0.7179255", "text": "public function index()\n\t{\n\t\treturn view('dashboard');\n\t}", "title": "" }, { "docid": "5f7a51d944b82cb6465b283e7012d38a", "score": "0.7175844", "text": "public function index()\n {\n $return_data = array();\n\n $this->data['title'] = trans('master.label_dashboard_page');\n $this->data['meta_title'] = trans('master.label_dashboard_page');\n return View('admin.dashboard.dashboard', array_merge($this->data, $return_data))->render();\n }", "title": "" }, { "docid": "95699c793d5eb027cf6ad037997a9538", "score": "0.717528", "text": "public function dashboard()\n {\n return view('dashboard.theme.starter');\n }", "title": "" }, { "docid": "fb056c0b3b80a9835b08833ffe9aef25", "score": "0.71748364", "text": "public function index()\r\n {\r\n $this->global['pageTitle'] = 'Dashboard';\r\n \r\n $this->loadViews(\"dashboard\", $this->global, NULL , NULL);\r\n }", "title": "" }, { "docid": "9fa76e731d835661ab8950666dd95813", "score": "0.7173133", "text": "public function showDashboard()\n {\n // Fonction qui redirige sur une page\n // Affiche le dashboard vendeur\n\n\n return $this -> render('vendeur/dashboard_vendeur.html.twig');\n\n }", "title": "" }, { "docid": "22d7aac59810c524d13b6eb791fad80f", "score": "0.7160188", "text": "public function index()\n {\n return view('backend.dashboard.index');\n }", "title": "" }, { "docid": "f96c4755910ebc6e329cfeb6de4af5ee", "score": "0.7149166", "text": "public function show()\n {\n return view('user.dashboard');\n }", "title": "" }, { "docid": "148ae98b8a2cf5d38c8da7898ac2b6b8", "score": "0.7146072", "text": "public function getDashboard()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "5ba175db176292443f99f6c4d6d5f936", "score": "0.7143234", "text": "public function index()\n {\n return view('admin.adminDashboard');\n }", "title": "" }, { "docid": "416fa1e63145163faa152614318666fd", "score": "0.7135716", "text": "public function index()\n\t{\n\t\treturn view('backend.home.home')->withTitle('Dashboard');\n\t}", "title": "" }, { "docid": "b2b75974886ee4085a4792ed174528da", "score": "0.71222126", "text": "public function admin_dashboard()\n {\n return view('backend.dashboard');\n }", "title": "" }, { "docid": "87a8560d0dc04bd9d9bc6747a2038606", "score": "0.7121867", "text": "public function dashboard()\n {\n return view('admins.dashboard');\n }", "title": "" }, { "docid": "121c1f4e0b0e237a5d8ef19be0c6c2e7", "score": "0.71178484", "text": "public function index()\n {\n return view('admindashboard.index');\n }", "title": "" }, { "docid": "de2ef92d598929ed01573e27c7cc177a", "score": "0.71168417", "text": "public function indexDashboard()\n\t{\n\t\treturn view(\"blog.dashboard.home\", $this->data);\n\t}", "title": "" }, { "docid": "c79689ebe54bfcc920257e2bfbcb48e8", "score": "0.71097565", "text": "public function dashboard()\n {\n return view('admins.dashboard');\n }", "title": "" }, { "docid": "6ed169903f2464f5a32c72dda7cd0ae7", "score": "0.7109038", "text": "public function dashboard()\n {\n return view('layouts.dashboard');\n }", "title": "" }, { "docid": "213e176c9d9befde9d95590052be400f", "score": "0.7100173", "text": "public function dashboard(){\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "cd1b57d2dc5d3e2c11b47e542ffcf755", "score": "0.7093425", "text": "public function index()\n\t{\n\t\t// Extend it the way you need here...\n $data['page_header'] \t\t= \"Activity\";\n $data['page_description'] \t= \"Graphs, charts and logs of your organization\";\n\t\treturn view('backend.superadmin.pages.dashboard',$data);\n\t}", "title": "" }, { "docid": "07d52f7b1ea4ee50c7592fe576ea896b", "score": "0.708061", "text": "public function index()\n {\n return view('admin::settings.development.dashboard');\n }", "title": "" }, { "docid": "c72a53a4fbf931852a0dec81fe0da394", "score": "0.7070299", "text": "public function index()\n {\n $title = \"Admin Dashboard\";\n\n return view('/admin/dashboard', compact('title'));\n }", "title": "" }, { "docid": "8f467f2a8919e53c7e462e1eb150725d", "score": "0.7066416", "text": "public function index()\n {\n return view('backend.dashboard.home');\n }", "title": "" }, { "docid": "7a0c2d00192ef94e49beef78e95691af", "score": "0.70638144", "text": "public function index()\n {\n\n return view('admin.dashboard');\n\n }", "title": "" }, { "docid": "6286c50fbd2fafeb3acf211f6be51899", "score": "0.70591563", "text": "public function dashboard(){\n return view('author.dashboard');\n }", "title": "" }, { "docid": "69a6266d51b2ad37a87203f49982128f", "score": "0.7048414", "text": "public function indexAction()\n\t{\n\t\tif (!Library_Registry::loggedUser())\n\t\t\t$this->_helper->redirector->gotoRouteAndExit(array(), 'auth-login');\n\t\t\n\t\tZend_Layout::getMvcInstance()->setLayout('app');\n\t\t\n\t\t$this->setTitle('CurrencyFair - Dashboard');\n\n\t\t$session = new Zend_Session_Namespace();\n\t\t$this->view->api = $session->api;\n\t}", "title": "" }, { "docid": "5dd04cedcc389bd35b72387c99a1930f", "score": "0.704066", "text": "public function showAdminDashboard()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "82da5bcd7d2cabe091b48e94e1e59f00", "score": "0.7033378", "text": "public function dashboard()\n {\n $users = new User();\n $orders = $users->getUserWithOrder();\n $product = new Product();\n $popularProduct = $product->getPopularProduct();\n return view('admin.home', compact('orders', 'popularProduct'));\n }", "title": "" }, { "docid": "944e4d2ab87007825240114a732fa915", "score": "0.7021604", "text": "public function index()\n {\n if (!Cookie::has(\"Dashboard\"))\n return view(\"dashboard.login\");\n\n if (!session()->has(\"dashboard.token\")) {\n $admin = Admin::where(\"token\", Cookie::get(\"Dashboard\"))->first();\n\n if ($admin)\n LoginController::generateSession($admin);\n else {\n ProfileController::removeCookie();\n return view(\"dashboard.login\");\n }\n }\n\n return view(\"dashboard.main\");\n }", "title": "" }, { "docid": "73d3ef8587266656ccbeb8a2be6c31e5", "score": "0.70203567", "text": "public function dashboard()\n\t{\n\t\treturn view('users.dashboard');\n\n\t}", "title": "" }, { "docid": "d8559229bdf4bd3e99c9c8660d2b67d4", "score": "0.70138043", "text": "public function adminDashboard()\n {\n return view('admin.adminDashboard');\n }", "title": "" }, { "docid": "d252c97080f508e9643a205cdb6d6877", "score": "0.70128304", "text": "public function dashboard()\n {\n //\n return view('inventory.index');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "8acc4d13e17e8e3f5820dcd47abd980c", "score": "0.70057154", "text": "public function home ()\n {\n $films = Films::orderBy('id', 'DESC')->limit(3)->get();\n // Retornando as series cadastradas\n $series = Series::orderBy('id', 'DESC')->limit(10)->get();\n\n return view('admin.dashboard', [\n 'films' => $films,\n 'series' => $series\n ]);\n }", "title": "" }, { "docid": "db06561fc6bcccb8bdb943c06382ecfd", "score": "0.70001274", "text": "public function getDashboard()\n {\n $boards = $this->board->getUserBoards(Auth::id());\n $starredBoards = $this->board->getUserStarredBoards(Auth::id());\n\n return view('user.home', compact('boards', 'starredBoards'));\n }", "title": "" }, { "docid": "984a34e198c24ec3fa8403388baac6a8", "score": "0.69986457", "text": "public function dashboard()\n {\n return view('cms.dashboard');\n }", "title": "" }, { "docid": "1f3a66e81f13b64b37be49787340ffe1", "score": "0.69945675", "text": "public function index()\n {\n return view(dashboard_path($this->section . '.index'));\n }", "title": "" }, { "docid": "bdea1877590dd37fbc8fe5013a9309e0", "score": "0.69857174", "text": "public function index()\n {\n $view = $this->_getDashboardView('@Dashboard/index');\n $view->dashboardSettingsControl = new DashboardManagerControl();\n $view->dashboards = array();\n if (!Piwik::isUserIsAnonymous()) {\n $login = Piwik::getCurrentUserLogin();\n\n $view->dashboards = $this->dashboard->getAllDashboards($login);\n }\n return $view->render();\n }", "title": "" }, { "docid": "f75df894b22e71d4336a8b744bd1a076", "score": "0.6981548", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "559d5b7b7581bf5a38588f4337184e04", "score": "0.69784886", "text": "public function dashboard()\n {\n $page = 'dashboard';\n\t\t$title = 'hello one';\n return view('home', compact('page'));\n }", "title": "" }, { "docid": "750a68da1dd5fb440c4f70c6de90e1e0", "score": "0.6971236", "text": "public function index()\n {\n $activeChampionships = $this->activeChampionships();\n $oldChampionships = $this->oldChampionships();\n $joins = Auth::user()->joins;\n\n return $this->view('admin.dashboard', compact('activeChampionships', 'oldChampionships', 'joins'));\n }", "title": "" }, { "docid": "849a3557e392e13d8a1fa6378d0b076c", "score": "0.6963212", "text": "public function index()\n {\n \n return view('dashboard.index');\n }", "title": "" }, { "docid": "2b127c9cdce4e625458756e003a75059", "score": "0.69594705", "text": "public function index()\n {\n $project = Project::all();\n $client = Client::all();\n $user = User::all();\n return view('dashboard')->with('project', $project, 'client', $client, 'user', $user);\n }", "title": "" }, { "docid": "e2b2c23402946c3cea3dfc60e0d4ad42", "score": "0.6954188", "text": "public function getDashboard()\n {\n return view('admin.pages.dashboard');\n }", "title": "" }, { "docid": "0c1d254fbffed8dc3469de2a9bfb633c", "score": "0.6954149", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "835ca1c245b9b761732655e1d8d5a28a", "score": "0.6951439", "text": "public function index()\n {\n $stats = $this->logViewer->statsTable();\n $reports = $stats->totalsJson();\n $percents = $this->calcPercentages($stats->footer(), $stats->header());\n\n return $this->view('dashboard', compact('reports', 'percents'));\n }", "title": "" }, { "docid": "aa79850e5222227b2c7d0d61490348e8", "score": "0.6940876", "text": "public function index()\n {\n return View('admin.dashbord');\n }", "title": "" } ]
b7aac901ee96c06b3af9569969c2a44c
Get a full schema by reference
[ { "docid": "c247789483aedf9bb77babce9cee471e", "score": "0.7330035", "text": "private function getFullSchemaByReference(string $reference)\n {\n return array_merge(\n [\n \"\\$type\" => Populator::TYPE_OBJECT,\n \"\\$ref\" => sprintf('HarmSmits\\BolComClient\\Models\\%s', $this->getObjectName($reference)),\n ],\n $this->getFullSchema($reference)\n );\n }", "title": "" } ]
[ { "docid": "8493caac9866cf0fcf39babcc299a6df", "score": "0.7213447", "text": "public function loadSchema($ref);", "title": "" }, { "docid": "2c1bbc14cc6668cfd9d4d058fae23c8d", "score": "0.7177671", "text": "private function getFullSchema(string $reference)\n {\n return array_map(function ($property) {\n $is_array = isset($property[\"items\"]);\n $reference = $is_array ? $property[\"items\"][\"\\$ref\"] : $property[\"\\$ref\"];\n\n return array_merge([\n \"\\$type\" => $is_array ? Populator::TYPE_ARRAY_OF_OBJECTS : Populator::TYPE_OBJECT,\n \"\\$ref\" => sprintf('HarmSmits\\BolComClient\\Models\\%s', $this->getObjectName($reference)),\n ], $this->getFullSchema($reference));\n\n }, array_filter($this->getSchemaProperties($reference), function ($item) {\n return ((isset($item[\"items\"]) && isset($item[\"items\"][\"\\$ref\"])) || isset($item[\"\\$ref\"]));\n }));\n }", "title": "" }, { "docid": "ebd2feb064a140863a92fe9c136bea95", "score": "0.7135408", "text": "public function getSchema();", "title": "" }, { "docid": "b731b3c7904a192c1438079facd6ab3b", "score": "0.6985393", "text": "abstract public function getSchema();", "title": "" }, { "docid": "ee44f30b0b2ca37c546284dbd68ff2b7", "score": "0.6929596", "text": "function get_schema()\n\t{\n\t\tif (isset($this->schema)) {\n\t\t\treturn $this->schema;\n\t\t}\n\t}", "title": "" }, { "docid": "d9bf3c311e4c1c44610c73b9fb829fc8", "score": "0.6927735", "text": "protected function getInlineSchema($ref)\n {\n $relpath = ltrim($ref, '#/');\n $definition = ltrim(strstr($relpath, '/'), '/');\n return $this->schemaAccessor->getDefinition($definition);\n }", "title": "" }, { "docid": "651ba6d687578178983d0ec55e9825ed", "score": "0.67859817", "text": "private function get_schema()\n {\n }", "title": "" }, { "docid": "fb976bb10d6013a7017963265672b800", "score": "0.6749016", "text": "public function schema();", "title": "" }, { "docid": "09b18a5a3655a7cdba2ff2871c28c818", "score": "0.67365724", "text": "public function getSchema($schema = ''){\n\t\treturn $this->schema;\n\t}", "title": "" }, { "docid": "2feb864f0519acf6db5b38d749ecefe9", "score": "0.6700262", "text": "public function get_schema()\n {\n return $this->schema;\n }", "title": "" }, { "docid": "a082e5c400479e2d88225369a56bd50c", "score": "0.65695167", "text": "public function schema() {\n\t\tif (!empty($this->_schema)) {\n\t\t\treturn $this->_schema;\n\t\t}\n\n\t\t$this->_schema = $this->getDocumentMetaData()->fieldMappings;\n\t\treturn $this->_schema;\n\t}", "title": "" }, { "docid": "7b030d83cfe7752fc23d1fbaefd295fb", "score": "0.6548794", "text": "public function getSchema() {\n\t\tif (empty($this->mSchema['liberty_edge'])) {\n\n\t \t\t/* Schema for head_content_id */\n\t\t\t$this->mSchema['liberty_edge']['head_content_id'] = array(\n\t\t\t\t'name' => 'head_content_id',\n\t\t\t\t'type' => 'reference',\n\t\t\t\t'label' => 'Head Content Reference',\n\t\t\t\t'help' => '',\n\t\t\t\t'table' => 'liberty_content',\n\t\t\t\t'column' => 'content_id',\n\t\t\t\t'required' => '1'\n\t\t\t);\n\t \t\t/* Schema for tail_content_id */\n\t\t\t$this->mSchema['liberty_edge']['tail_content_id'] = array(\n\t\t\t\t'name' => 'tail_content_id',\n\t\t\t\t'type' => 'reference',\n\t\t\t\t'label' => 'Tail Content Reference',\n\t\t\t\t'help' => '',\n\t\t\t\t'table' => 'liberty_content',\n\t\t\t\t'column' => 'content_id'\n\t\t\t);\n\t \t\t/* Schema for weight */\n\t\t\t$this->mSchema['liberty_edge']['weight'] = array(\n\t\t\t\t'name' => 'weight',\n\t\t\t\t'type' => 'int',\n\t\t\t\t'label' => 'Edge Weight',\n\t\t\t\t'help' => '',\n\t\t\t);\n\t\t}\n\n\n\t\treturn $this->mSchema;\n\t}", "title": "" }, { "docid": "4dd54ef6b1515858d483c66492e0fe67", "score": "0.6508762", "text": "public function getSchemaUri(): string;", "title": "" }, { "docid": "befc0132f4645cd08a610495bda17e73", "score": "0.6427235", "text": "abstract protected function schema(): Schema;", "title": "" }, { "docid": "e10648a8466fbb6d17a48863441df407", "score": "0.6417035", "text": "protected function schema()\n {\n if ($this->schema !== null) {\n return $this->schema;\n }\n\n return $this->connection()->schema();\n }", "title": "" }, { "docid": "f5d45af1143b8d4e128fd205d1d46768", "score": "0.6416476", "text": "public function getSchema()\n {\n return $this->schema;\n }", "title": "" }, { "docid": "f5d45af1143b8d4e128fd205d1d46768", "score": "0.6416476", "text": "public function getSchema()\n {\n return $this->schema;\n }", "title": "" }, { "docid": "f5d45af1143b8d4e128fd205d1d46768", "score": "0.6416476", "text": "public function getSchema()\n {\n return $this->schema;\n }", "title": "" }, { "docid": "f5d45af1143b8d4e128fd205d1d46768", "score": "0.6416476", "text": "public function getSchema()\n {\n return $this->schema;\n }", "title": "" }, { "docid": "f5d45af1143b8d4e128fd205d1d46768", "score": "0.6416476", "text": "public function getSchema()\n {\n return $this->schema;\n }", "title": "" }, { "docid": "4c4236ac8306521b5ea7c5d1437a2732", "score": "0.63788205", "text": "public function &getFullSchemaDefinition(): array\n {\n if (is_null($this->fullSchemaDefinition)) {\n // These are the configuration options to work with the \"full schema\"\n $fieldArgs = [\n 'deep' => true,\n 'shape' => SchemaDefinition::ARGVALUE_SCHEMA_SHAPE_FLAT,\n 'compressed' => true,\n 'useTypeName' => true,\n ];\n\n // Attempt to retrieve from the cache, if enabled\n if ($useCache = APIComponentConfiguration::useSchemaDefinitionCache()) {\n $persistentCache = PersistentCacheFacade::getInstance();\n // Use different caches for the normal and namespaced schemas,\n // or it throws exception if switching without deleting the cache (eg: when passing ?use_namespace=1)\n $vars = ApplicationState::getVars();\n $cacheType = CacheTypes::GRAPHQL_SCHEMA_DEFINITION;\n $cacheKeyComponents = array_merge(\n $fieldArgs,\n CacheUtils::getSchemaCacheKeyComponents(),\n [\n 'edit-schema' => $vars['edit-schema'],\n ]\n );\n // For the persistentCache, use a hash to remove invalid characters (such as \"()\")\n $cacheKey = hash('md5', json_encode($cacheKeyComponents));\n }\n if ($useCache) {\n if ($persistentCache->hasCache($cacheKey, $cacheType)) {\n $this->fullSchemaDefinition = $persistentCache->getCache($cacheKey, $cacheType);\n }\n }\n\n // If either not using cache, or using but the value had not been cached, then calculate the value\n if (!$this->fullSchemaDefinition) {\n // Get the schema definitions\n $schemaDefinitionRegistry = SchemaDefinitionRegistryFacade::getInstance();\n $this->fullSchemaDefinition = $schemaDefinitionRegistry->getSchemaDefinition($fieldArgs);\n\n // Convert the schema from PoP's format to what GraphQL needs to work with\n $this->prepareSchemaDefinitionForGraphQL();\n\n // Store in the cache\n if ($useCache) {\n $persistentCache->storeCache($cacheKey, $cacheType, $this->fullSchemaDefinition);\n }\n }\n }\n\n return $this->fullSchemaDefinition;\n }", "title": "" }, { "docid": "ae1b9182c320c3663a66731b5aae0617", "score": "0.637731", "text": "abstract function schema();", "title": "" }, { "docid": "bc17712abf24b028feda740e2c1b710f", "score": "0.6350606", "text": "public function getSchema() {\n return $this->schema;\n }", "title": "" }, { "docid": "e8b0b17aa822dc6a0d81c9d5b1453a42", "score": "0.63406086", "text": "protected function schema()\n {\n return $this->connection()->getSchemaBuilder();\n }", "title": "" }, { "docid": "e8b0b17aa822dc6a0d81c9d5b1453a42", "score": "0.63406086", "text": "protected function schema()\n {\n return $this->connection()->getSchemaBuilder();\n }", "title": "" }, { "docid": "e59340e3d5d98f65b5bc80a331adcded", "score": "0.631235", "text": "public function getSchema(): Schema|string|null\n {\n return $this->schema;\n }", "title": "" }, { "docid": "6a2e84b11ae8f1c7fd2837c51db56949", "score": "0.6301082", "text": "public function getSchema(): Schema\n {\n return new Schema($this, $this->schemaCache);\n }", "title": "" }, { "docid": "140810b4821db395267df1018b665f67", "score": "0.6300193", "text": "protected function _schema() {\n\t\tif ($this->_Schema) {\n\t\t\treturn $this->_Schema;\n\t\t}\n\n\t\t$db = ConnectionManager::getDataSource($this->useDbConfig);\n\t\t$this->_Schema = new CakeSchema(array('connection' => $db));\n\t\t$this->_Schema->build(array($this->_tableName() => $this->_schema));\n\t\tCache::drop('_cake_model_');\n\t\t$db->cacheSources = false;\n\t\t$db->reconnect();\n\t\treturn $this->_Schema;\n\t}", "title": "" }, { "docid": "6923a6f16220a88523809ace9a20bfb9", "score": "0.6251024", "text": "public function getDbalSchema(): Schema\n {\n return $this->schema;\n }", "title": "" }, { "docid": "6f416b58a9cf51efc7c8f2d7f4a6acf3", "score": "0.6248937", "text": "public function get(string $schema): string;", "title": "" }, { "docid": "4692447e62b6f9a5d4875396c1587fbb", "score": "0.6209266", "text": "public function getSchema()\n {\n return new SchemaWrapper($this->getParameter()->schema);\n }", "title": "" }, { "docid": "22bd5e2f8db1dbe5898eb05c16835732", "score": "0.6193361", "text": "public function getSchema()\n {\n if ($this->schema) {\n return $this->schema;\n }\n\n $this->schema(\n $this->schema = new Schema($this->model)\n );\n\n return $this->schema;\n }", "title": "" }, { "docid": "1e2e834325adc77b2b3e8f3c1fdf6487", "score": "0.6186318", "text": "protected function schema($connection = 'default')\n {\n return $this->connection($connection)->getSchemaBuilder();\n }", "title": "" }, { "docid": "092f8bee5d79d4a858f2d3ab105a7996", "score": "0.61802334", "text": "public function getSchema()\n\t{\n\t\tif ($db = $this->getActiveDb())\n\t\t{\n\t\t\treturn $db->getSchema();\n\t\t}\n\t\treturn NULL;\n\t}", "title": "" }, { "docid": "e3c5b7c97106c3add73d0c8f584ef075", "score": "0.61322445", "text": "public function schema() {\r\n if (empty($this->schema)) {\r\n $class = $this->getDriverClass('DatabaseSchema', array('schema.php'));\r\n if (class_exists($class)) {\r\n $this->schema = new $class($this);\r\n }\r\n }\r\n return $this->schema;\r\n }", "title": "" }, { "docid": "c65cc428f315de7d4401ad88e3178e27", "score": "0.6080766", "text": "public function getDBSchema()\n {\n $files = glob($this->config->datadir . DIRECTORY_SEPARATOR . 'schema.*');\n return !empty($files) ? $files[0] : null;\n }", "title": "" }, { "docid": "5639b91fe57c3c05ed557f195c66bc61", "score": "0.6079543", "text": "protected function _getSchema(): \\Yana\\Db\\Ddl\\Database\n {\n return $this->_schema;\n }", "title": "" }, { "docid": "c47b7f7ae3fdf5a95840e4f6250045a7", "score": "0.6062574", "text": "function getSchema()\n {\n return $this->_view_schema;\n }", "title": "" }, { "docid": "c1e01cf994d76b04bd391a77642f5e2a", "score": "0.6049762", "text": "public function getSchema()\n {\n return $this->_server->getSchema();\n }", "title": "" }, { "docid": "0c795ea5db09849a3d12ad059f798153", "score": "0.6018046", "text": "public function getSchema() {\n\t\tif ( ! $this->schema ) {\n\t\t\t$this->schema = Core\\strip_namespace( get_parent_class( $this ) );\n\t\t}\n\n\t\treturn parent::getSchema();\n\t}", "title": "" }, { "docid": "64bde1fe4d028ad38182ae8fca0b80e5", "score": "0.59882903", "text": "public function get_swagger_schema() {\n\t\t$schema = json_decode(file_get_contents(dirname(__FILE__).'/schema.json'),1);\n\t\treturn $schema;\n\t}", "title": "" }, { "docid": "43b10c8f1fcb77e862e833a6b07484c7", "score": "0.5951698", "text": "function reftable() {\n return $this->dbase->get_table($this->reftname);\n }", "title": "" }, { "docid": "9bb4d45ba9c954e2af4af0e4a915ce5a", "score": "0.5934166", "text": "public function action_schema($params) {\n\t\treturn $this->getStructureDefinition();\n\t}", "title": "" }, { "docid": "d223ae8c7aa38b2fbb186acf6fef7f80", "score": "0.5917704", "text": "public function getSchema(): SchemaElement\n {\n return $this->schemaElement;\n }", "title": "" }, { "docid": "c6c5bf87781ce6fc86a62f5efd2cb316", "score": "0.58825725", "text": "public static function getDefaultSchema()\n {\n return self::$defaultSchema;\n }", "title": "" }, { "docid": "b336309b0f9bfb9f266ee477cbb0c1aa", "score": "0.5874582", "text": "public function getSchemaName();", "title": "" }, { "docid": "2a472e6d6c35199eeaacd41b2d170698", "score": "0.58615136", "text": "public function getSchema() {\n $schema = array();\n \n $schema['fields'] = array(\n 'entity_type' => array(\n 'type' => 'varchar',\n 'length' => 64,\n 'not null' => TRUE,\n 'description' => 'The entity type.',\n ),\n 'entity_id' => array(\n 'type' => 'int',\n 'not null' => TRUE,\n 'default' => 0,\n 'unsigned' => TRUE,\n 'description' => 'The entity ID.',\n ),\n );\n\n // Add dynamic filter columns\n foreach ($this->dynamic_filters as $dynamic_filter) {\n $schema['fields'][$dynamic_filter->column->getName()] = $dynamic_filter->column->getSchema();\n }\n\n // Add sort columns\n foreach ($this->sort_sets as $sort_set) {\n foreach ($sort_set->getSorts() as $sort) {\n $schema['fields'][$sort->column->getName()] = $sort->column->getSchema();\n }\n }\n\n // Add extra columns\n foreach ($this->extra_columns as $extra_column) {\n $schema['fields'][$extra_column->getName()] = $extra_column->getSchema();\n }\n \n $schema['description'] = 'Materialized view storage for ' . $this->name . '.';\n $schema['indexes'] = $this->getIndexes();\n $schema['primary key'] = $this->getPrimaryKey();\n \n return $schema;\n }", "title": "" }, { "docid": "de4101fcf5773435105fc57f4b409d1a", "score": "0.5808686", "text": "protected function getSchema()\n {\n $schema = null;\n $readerClass = ezcDbSchemaHandlerManager::getReaderByFormat( $this->schemaFormat );\n $reader = new $readerClass();\n\n switch ( true )\n {\n case ( $reader instanceof ezcDbSchemaDbReader ):\n $db = ezcDbFactory::create( $this->pathSchema );\n $schema = ezcDbSchema::createFromDb( $db );\n break;\n case ( $reader instanceof ezcDbSchemaFileReader ):\n $schema = ezcDbSchema::createFromFile( $this->schemaFormat, $this->pathSchema );\n break;\n default:\n $this->raiseError( \"Reader class not supported: '{$readerClass}'.\" );\n break;\n }\n return $schema;\n }", "title": "" }, { "docid": "2f67fc3cc61e1ca05861b3062d4b6693", "score": "0.58000606", "text": "protected function buildSchema()\n {\n return null;\n }", "title": "" }, { "docid": "533fe4e8f3367d634cb89e76943316e0", "score": "0.57886046", "text": "public function getAlias()\n\t{\n\t\treturn 'schema';\n\t}", "title": "" }, { "docid": "96609841bdd0132d8467c6ae93ab9057", "score": "0.57751554", "text": "function SchemaRouter_AllSchemas(){\n //TODO this could be json\n //TODO or the contents of a dom object\n //TODO default to a full page with template\n}", "title": "" }, { "docid": "83372275218a48487fab311a6dc6199d", "score": "0.5747598", "text": "protected function getCurrentSchema()\n {\n return $this->getConnection()->getSchemaManager()->createSchema();\n }", "title": "" }, { "docid": "3b31b428f9c712eaa04dcd14728a02cc", "score": "0.5730367", "text": "public function getSchema()\n {\n return $this->table;\n }", "title": "" }, { "docid": "332156c5c822d5a0ed97428a084a1a2c", "score": "0.5694207", "text": "public function getSchema(): Schema\n {\n $table = $this->getTable();\n $columns = $this->getColumns();\n\n return new Schema($table, $columns);\n }", "title": "" }, { "docid": "477f53e6613a8c9f7219508a3c491081", "score": "0.5685279", "text": "public function schema()\n {\n $this->useRecordSchema();\n }", "title": "" }, { "docid": "b60c55b097aba29570374c0c96e5ebf9", "score": "0.5672106", "text": "protected function schema()\n {\n return (object)[\n 'additionalProperties' => false,\n 'type' => 'object',\n 'properties' => (object)[\n 'Culture' => (object)[\n 'type' => 'string'\n ],\n 'Domain' => (object)[\n 'type' => 'string'\n ],\n 'Description' => (object)[\n 'type' => 'string'\n ],\n 'InitialVersionId' => (object)[\n 'type' => 'string'\n ],\n 'UsageScenario' => (object)[\n 'type' => 'string'\n ],\n 'Name' => (object)[\n 'type' => 'string'\n ]\n ]\n ];\n }", "title": "" }, { "docid": "240dfb1283ca0deace2520e79aa09718", "score": "0.5663077", "text": "public function getSchema() {\n $table_name = $this->getTableName();\n $schema = [\n $table_name => [\n 'fields' => [\n 'id' => [\n 'type' => 'serial',\n 'size' => 'big',\n 'unsigned' => TRUE,\n 'not null' => TRUE,\n ],\n 'name' => [\n 'type' => 'varchar',\n 'length' => 255,\n 'not null' => FALSE,\n ],\n 'entityId' => [\n 'type' => 'int',\n 'size' => 'big',\n 'not null' => TRUE,\n ],\n 'entityTypeId' => [\n 'type' => 'varchar',\n 'length' => 100,\n 'not null' => TRUE,\n ],\n 'sourceLanguage' => [\n 'type' => 'varchar',\n 'length' => 100,\n 'not null' => TRUE,\n ],\n 'targetLanguage' => [\n 'type' => 'varchar',\n 'length' => 255,\n 'not null' => TRUE,\n ],\n 'status' => [\n 'type' => 'varchar',\n 'length' => 255,\n 'not null' => TRUE,\n ],\n 'externalExportId' => [\n 'type' => 'varchar',\n 'length' => 255,\n 'not null' => FALSE,\n ],\n 'externalProjectId' => [\n 'type' => 'varchar',\n 'length' => 100,\n 'not null' => TRUE,\n ],\n 'externalDocumentId' => [\n 'type' => 'varchar',\n 'length' => 100,\n 'not null' => TRUE,\n ],\n ],\n 'primary key' => ['id'],\n ],\n ];\n return $schema;\n }", "title": "" }, { "docid": "42db7a70ef3d148cec75ea92a443d4ad", "score": "0.563839", "text": "protected function getPhpSchema($ref)\n {\n $reflectionClass = new \\ReflectionClass($ref);\n\n if ($reflectionClass->isSubclassOf(Dto::class)) {\n $properties = $reflectionClass->getDefaultProperties();\n return (array_key_exists('schema', $properties)) ? $properties['schema'] : [];\n }\n\n throw new InvalidReferenceException('Referenced classnames must implement DtoInterface');\n }", "title": "" }, { "docid": "58716a5c85a65ea56b371a8cb4af9264", "score": "0.5638083", "text": "public function getSchemaString(): string;", "title": "" }, { "docid": "58716a5c85a65ea56b371a8cb4af9264", "score": "0.5638083", "text": "public function getSchemaString(): string;", "title": "" }, { "docid": "da8d9b756f83bcf262220b7f8e810160", "score": "0.5626743", "text": "public static function forRdfaLite() : SchemaReader\n {\n return new SchemaReader(new RdfaLiteReader());\n }", "title": "" }, { "docid": "b8a883110cf7ed53e5531707bf14cd6b", "score": "0.5626351", "text": "public function getSchema():string\n {\n return $this->_driver->schema();\n }", "title": "" }, { "docid": "e7db42bd9625919d07169dc05182f219", "score": "0.5619086", "text": "public function draft(): ?Schema;", "title": "" }, { "docid": "2777db5e4b096ef7f93bfca0e1d310e4", "score": "0.5613742", "text": "public function schema($schema)\n {\n $this->schema = $schema;\n\n return $this;\n }", "title": "" }, { "docid": "07a1bd199f8d3f4720777e081a32defd", "score": "0.560512", "text": "private function getExpectedSchema()\n\t{\n\t\tif (is_array($this->table_schema)) {\n\t\t\treturn $this->table_schema;\n\t\t}\n\t\t$queries = array();\n\t\trequire(IEM_PATH . '/install/schema.' . SENDSTUDIO_DATABASE_TYPE . '.php');\n\t\t$this->table_schema = $this->processTableQueries($queries);\n\t\treturn $this->table_schema;\n\t}", "title": "" }, { "docid": "d55227e54ecb4bee900c3ea66b9e83a4", "score": "0.5585191", "text": "public static function schemaBuilder() : SchemaBuilder\n {\n return self::getInstance()->getSchemaBuilder();\n }", "title": "" }, { "docid": "607008c9204dd6b34293c9fa99b56fee", "score": "0.5569266", "text": "public function getSchemaBuilder()\n {\n return new Schema\\Builder($this);\n }", "title": "" }, { "docid": "607008c9204dd6b34293c9fa99b56fee", "score": "0.5569266", "text": "public function getSchemaBuilder()\n {\n return new Schema\\Builder($this);\n }", "title": "" }, { "docid": "9f67db10a81280d5d5364f77084a6e3b", "score": "0.556286", "text": "public function getSchemaString(): string\n {\n return self::gatherSchemaImportsRecursively($this->rootSchemaPath);\n }", "title": "" }, { "docid": "2a11a31facf4348437189160002108e1", "score": "0.55338746", "text": "public function resolveSchema($schema = null, $path_prefix = '')\n {\n $schema = $this->convertToArray($schema);\n $this->schemaAccessor = $this->serviceContainer->make(JsonSchemaAccessorInterface::class)->factory($schema);\n\n return $this->resolveReference($schema, $path_prefix);\n }", "title": "" }, { "docid": "2f1aa42acd27c9109b91b16e0c5e1772", "score": "0.55254716", "text": "function tripal_db_chado_dbxref_schema() {\n $description = array();\n\n $description['foreign keys']['db'] = array(\n 'table' => 'db',\n 'columns' => array(\n 'db_id' => 'db_id',\n ),\n ); \n\n return $description;\n}", "title": "" }, { "docid": "674c9eeaf3573a2aea6b685deb8cfeb4", "score": "0.55179906", "text": "abstract public function getSchema($page);", "title": "" }, { "docid": "a4c064f1bc7a6fdb9c168ce2e41e1468", "score": "0.5517586", "text": "function Xsy_Sql_GetRefTableData($SQL_DATABASE, $fieldName){\n\n $refTable = null;\n\n // just check but supposed to be a ref id field\n if (strstr($fieldName, \"Id\") != false){\n // -- get reference table name\n $split = explode(\"_\", $fieldName);\n $ref_field_Name = \"\";\n for($i = 1; $i < count($split); $i++){\n $ref_field_Name .= $split[$i].\"_\";\n }\n $ref_field_Name = substr($ref_field_Name, 0, -1);\n $ref_table_Array = Xsy_Sql_FetchAll(\"\n SELECT `TABLE_NAME` FROM `information_schema`.`TABLES` \n WHERE `TABLE_SCHEMA` = '$SQL_DATABASE' AND INSTR(`TABLE_NAME`,'_$ref_field_Name') != 0\n LIMIT 0,1\");\n $ref_table_Name = $ref_table_Array[0]['TABLE_NAME'];\n\n // --- get field name\n $ref_field_Array = Xsy_Sql_FetchAll(\"SHOW COLUMNS FROM `$SQL_DATABASE`.`$ref_table_Name` WHERE INSTR(field,'name') != 0\");\n $ref_field_Name = $ref_field_Array[0]['Field'];\n $ref_id_Array = Xsy_Sql_FetchAll(\"SHOW COLUMNS FROM `$SQL_DATABASE`.`$ref_table_Name` WHERE INSTR(field,'id') != 0\");\n $ref_id_Name = $ref_id_Array[0]['Field'];\n $ref_field_Name = ($ref_field_Name != \"\") ? $ref_field_Name : $ref_id_Name;\n\n $refTable['RefTableName'] = $ref_table_Name;\n $refTable['RefIdField'] = $ref_id_Name;\n $refTable['RefNameField'] = $ref_field_Name;\n }\n\n return $refTable;\n}", "title": "" }, { "docid": "4803876a8c72533b91f6eb47b8d928a5", "score": "0.5476313", "text": "public function load(string $schema): ?array;", "title": "" }, { "docid": "3efef56ab2f5484f278647d09544bda7", "score": "0.54755425", "text": "static function getSchema()\n {\n return json_decode(file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'bot.schema.json'));\n }", "title": "" }, { "docid": "fb6fb060bd41d1deb3fa3187f56b9dab", "score": "0.5470892", "text": "public function attachSchema( $schema = null ) {\n\t\tif ( !is_null( $schema ) ) {\n\t\t\t$this->schemaindex = new JsonSchemaIndex( $schema );\n\t\t\t$this->nodename =\n\t\t\t\tisset( $schema['title'] ) ? $schema['title'] : \"Root node\";\n\t\t\t$this->schemaref = $this->schemaindex->newRef( $schema, null, null, $this->nodename );\n\t\t}\n\t\telseif ( !is_null( $this->parent ) ) {\n\t\t\t$this->schemaindex = $this->parent->schemaindex;\n\t\t}\n\t}", "title": "" }, { "docid": "975ad25a70d3163057dec3fff6dd26a5", "score": "0.54478747", "text": "public function getSchema()\n {\n $backup = array();\n $tables = $this->getTables();\n foreach ($tables as $table) {\n $backup[] = $this->getBackup();\n }\n \n return implode(\"\\n\\n\", $backup);\n }", "title": "" }, { "docid": "4f9a9af7777c92467c2094afc9d33b0d", "score": "0.54458064", "text": "protected function fullSchema() {\n return Schema::parse([\n 'discussionID:i' => 'The ID of the discussion.',\n 'type:s|n' => [\n //'enum' => [] // Let's find a way to fill that properly.\n 'description' => 'The type of this discussion if any.',\n ],\n 'name:s' => 'The title of the discussion.',\n 'body:s' => 'The body of the discussion.',\n 'categoryID:i' => 'The category the discussion is in.',\n 'category?' => $this->getCategoryFragmentSchema(),\n 'dateInserted:dt' => 'When the discussion was created.',\n 'dateUpdated:dt|n' => 'When the discussion was last updated.',\n 'insertUserID:i' => 'The user that created the discussion.',\n 'insertUser?' => $this->getUserFragmentSchema(),\n 'lastUser?' => $this->getUserFragmentSchema(),\n 'pinned:b?' => 'Whether or not the discussion has been pinned.',\n 'pinLocation:s|n' => [\n 'enum' => ['category', 'recent'],\n 'description' => 'The location for the discussion, if pinned. \"category\" are pinned to their own category. \"recent\" are pinned to the recent discussions list, as well as their own category.'\n ],\n 'closed:b' => 'Whether the discussion is closed or open.',\n 'sink:b' => 'Whether or not the discussion has been sunk.',\n 'countComments:i' => 'The number of comments on the discussion.',\n 'countViews:i' => 'The number of views on the discussion.',\n 'score:i|n' => 'Total points associated with this post.',\n 'url:s?' => 'The full URL to the discussion.',\n 'canonicalUrl:s' => 'The full canonical URL to the discussion.',\n 'lastPost?' => $this->getPostFragmentSchema(),\n 'bookmarked:b' => 'Whether or not the discussion is bookmarked by the current user.',\n 'unread:b' => 'Whether or not the discussion should have an unread indicator.',\n 'countUnread:i?' => 'The number of unread comments.',\n ]);\n }", "title": "" }, { "docid": "55a97e3cedc982d82bea2436c0610168", "score": "0.54447734", "text": "public function getReferredTable(): string;", "title": "" }, { "docid": "964d5a353a506e756b4c4e3248f3eddd", "score": "0.543637", "text": "public function getSchemasCollection(): array\n {\n return $this->marketingCloud->request('GET', '/contacts/v1/schema');\n }", "title": "" }, { "docid": "d497725ffbc4a6fdbe8a09742a0f515b", "score": "0.5432391", "text": "public function get_item_schema() {\n\t\treturn $this->add_additional_fields_schema( array() );\n\t}", "title": "" }, { "docid": "397eacf2b9dd1079736f67e66fb93055", "score": "0.54295343", "text": "function tripal_get_schema_name($schema = 'chado') {\n\n // First we will set our default. This is what will be returned in most cases.\n if ($schema == 'chado') {\n $schema_name = 'chado';\n }\n else {\n $schema_name = 'public';\n }\n\n // There are cases where modules or admin might need to change the default\n // names for the schema. Thus we provide an alter hook here to allow\n // the names to be changed and ensure that schema names are never hardcoded\n // directly into queries.\n $context = array('schema' => $schema);\n drupal_alter('tripal_get_schema_name', $schema_name, $context);\n\n return $schema_name;\n}", "title": "" }, { "docid": "dd60e1e78a89d6e12d5003385d1b9617", "score": "0.542783", "text": "function cubrid_schema($conn_identifier, $schema_type, $class_name = NULL, $attr_name = NULL)\n{\n}", "title": "" }, { "docid": "0053933c4ac5c4df32b6e52f2b315cd4", "score": "0.54172343", "text": "public static function get()\n {\n $fields = array();\n $entities = self::getExpressEntities();\n foreach ($entities as $entity) {\n $fields['get'.app('helper/text')->camelcase($entity->getPluralHandle())] = self::getEntitySchemaType($entity);\n }\n\n $query = new ObjectType([\n 'name' => 'Query',\n 'fields' => $fields\n ]);\n\n return new Schema(['query' => $query]);\n }", "title": "" }, { "docid": "c60e236c658454a19dafa941c15ed4e7", "score": "0.54169506", "text": "protected function resolveReference(array $schema, $path_prefix)\n {\n if (!$ref = $this->schemaAccessor->getRef()) {\n return $schema;\n }\n\n // 1. local definition\n if ('#' === substr($ref, 0, 1)) {\n $schema = $this->getInlineSchema($ref);\n return $this->resolveSchema($schema);\n }\n // 2. Fully qualified classname\n elseif (class_exists($ref)) {\n $schema = $this->getPhpSchema($ref);\n return $this->resolveSchema($schema);\n }\n // 3. \"Remote\" JSON file (anything with a protocol scheme)\n elseif (parse_url($ref, PHP_URL_SCHEME)) {\n $schema = $this->getRemoteSchema($ref);\n return $this->resolveSchema($schema);\n }\n // 4. Absolute local path\n elseif ('/' === substr($ref, 0, 1)) {\n $fullpath = $this->getFullPath($ref);\n $schema = $this->getRemoteSchema($fullpath);\n $this->storeWorkingBaseDirectoryFromFullPath($fullpath);\n return $this->resolveSchema($schema, $this->workingBaseDir);\n }\n // 5. Relative path\n else {\n $fullpath = $this->getFullPath($ref, $path_prefix);\n $schema = $this->getRemoteSchema($fullpath);\n $this->storeWorkingBaseDirectoryFromFullPath($fullpath);\n return $this->resolveSchema($schema, $this->workingBaseDir);\n }\n }", "title": "" }, { "docid": "ed6a61bb1ce4dc0412aed6db3c24e016", "score": "0.5411079", "text": "public function schemas(): HasMany\n {\n return $this->hasMany(Schema::class)->orderBy('id');\n }", "title": "" }, { "docid": "a12cbfaeb8e0e6375d506e98af20d92c", "score": "0.5387161", "text": "public function defineSchema() {\n if (!isset($this->Schema)) {\n $this->Schema = new Gdn_Schema($this->Name, $this->Database);\n $this->PrimaryKey = $this->Schema->primaryKey($this->Name, $this->Database);\n if (is_array($this->PrimaryKey)) {\n $this->PrimaryKey = $this->PrimaryKey[0];\n }\n\n $this->Validation->setSchema($this->Schema);\n }\n return $this->Schema;\n }", "title": "" }, { "docid": "58734470d3b14de2984188f66cd4077f", "score": "0.53787535", "text": "protected function _getSchema()\n {\n $source = ConnectionManager::get($this->params['connection']);\n if (!method_exists($source, 'schemaCollection')) {\n $msg = sprintf(\n 'The \"%s\" connection is not compatible with CounterCache Behavior, ' .\n 'as it does not implement a \"schemaCollection()\" method.',\n $this->params['connection']\n );\n $this->error($msg);\n\n return false;\n }\n\n return $source->schemaCollection();\n }", "title": "" }, { "docid": "fcf0482596fe2e7338a7e132ad4d20eb", "score": "0.5373154", "text": "public static function getSchema()\n {\n return [\n '$id' => route('zzgo.api.sys-db-table-definitions.schema'),\n '$schema' => 'http://json-schema.org/draft-07/schema#',\n 'title' => 'SysDbTableDefinition',\n 'description' => 'Definition of tables in application',\n 'type' => 'object',\n 'required' => ['name'],\n 'properties' => [\n 'id' => [\n 'title' => 'ID',\n 'type' => 'integer',\n \"readOnly\" => true,\n 'description' => 'ID of the table definition',\n ],\n 'name' => [\n 'title' => 'Name',\n 'type' => 'string',\n 'description' => 'Base name of the table',\n ],\n 'use_timestamps' => [\n 'title' => 'Use Timestamps',\n 'type' => 'boolean',\n 'default' => true,\n 'description' => 'Use timestamp columns in table',\n ],\n 'use_soft_deletes' => [\n 'title' => 'Use Soft Deletes',\n 'type' => 'boolean',\n 'default' => true,\n 'description' => 'Use soft delete feature',\n ],\n 'created_at' => [\n 'title' => 'Creation Date',\n 'type' => 'string',\n 'format' => 'date-time',\n \"readOnly\" => true,\n 'description' => 'Date/Time when object was created',\n ],\n 'updated_at' => [\n 'title' => 'Update Date',\n 'type' => 'string',\n 'format' => 'date-time',\n \"readOnly\" => true,\n 'description' => 'Date/Time when object was last updated',\n ],\n ],\n ];\n }", "title": "" }, { "docid": "e17ac0b8fcb83f6124012842f5802f5b", "score": "0.53711456", "text": "public function getSchemaIndexResource() {\r\n\t\treturn $this->SchemaIndexResource;\r\n\t}", "title": "" }, { "docid": "e87952fb0cd35de8a3862b0e6e91f75c", "score": "0.53653795", "text": "public function getReferenceTable()\n {\n return $this->_referenceTable;\n }", "title": "" }, { "docid": "468e8a72544c106d69d557089ab3783b", "score": "0.53427345", "text": "private function getBaseSchema()\n {\n $schema = new Schema();\n $role = $schema->createTable('role');\n $role->addColumn('id', 'integer', array('unsigned' => true));\n $role->addColumn('label', 'string', array('length' => 32));\n\n $right = $schema->createTable('right');\n $right->addColumn('id', 'integer', array('unsigned' => true));\n $right->addColumn('label', 'string', array('length' => 32));\n\n return $schema;\n }", "title": "" }, { "docid": "c0b0cea8c13bbe977bd126912d08c4c4", "score": "0.5337893", "text": "private function schemaIntoDefinition($schema){\n\t\tif(!empty($schema['$schema']))unset($schema['$schema']);\n\t\tif(!empty($schema['title']))unset($schema['title']);\n\t\tforeach($schema['properties'] as $name=>&$prop){\n\t\t\t\t\t\t\n\t\t\tif(!empty($prop['properties'])){\n\t\t\t\t$prop = $this->schemaIntoDefinition($prop);\n\t\t\t} else if(isset($prop['properties'])){\n\t\t\t\t$prop['properties'] = new stdClass();\n\t\t\t}\n\t\t\t\n\t\t\t//-- Changes by Richi\n\t\t\tif(!empty($prop['enum'])){\n\t\t\t\tif($prop['enum'][0] == \"\"){\n\t\t\t\t\tif(count($prop['enum']) > 1){\n\t\t\t\t\t\tarray_shift($prop['enum']);\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$prop['enum'][0] = \"NONE\";\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tif(!empty($prop['default']) && $prop['default'] == null){\n\t\t\t\tunset($prop['default']);\n\t\t\t}\n//--\n\n\t\t\tif (array_key_exists('type', $prop)) {\n\t\t\t\tif($prop['type']=='array' && !array_key_exists('items', $prop)){\n\t\t\t\t\t$prop['items']=array('type'=>'string');\n\t\t\t\t}else\t\t\t\n\t\t\t\tif($prop['type']=='date-time'){\n\t\t\t\t\t$prop['type']='string';\n\t\t\t\t\t$prop['format']='date-time';\n\t\t\t\t}\n\t\t\t}\n//\t\t\telse if(!empty($prop['context']) && $prop['format']!='date-time'){\n//\t\t\t\t//$prop['enum']=$prop['context'];\n//\t\t\t\t\n//\t\t\t}\n\t\t\tif(isset($prop['required']))unset($prop['required']);\n\t\t\tif(isset($prop['readonly']))unset($prop['readonly']);\n\t\t\tif(isset($prop['context']))unset($prop['context']);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\treturn $schema;\n\t}", "title": "" }, { "docid": "6ca9270bf160a55b5911be9405e18527", "score": "0.53344786", "text": "public function createSchema()\n {\n $schema = new Schema();\n $this->extendSchema($schema);\n\n return $schema;\n }", "title": "" }, { "docid": "24d78ae470d60cf51588220e8bdd7fdf", "score": "0.53325284", "text": "public function getDefaultTableSchema(): ?string;", "title": "" }, { "docid": "9bea95aa8b04949ca5eb3b01c68e96ff", "score": "0.5328561", "text": "public function getSchemaBuilder() : SchemaBuilder\n {\n return new SchemaBuilder(\n Config::getInstance(),\n $this->getBuilder(),\n Config::get('felicity.architect.prefix', '')\n );\n }", "title": "" }, { "docid": "8f4c92690d996efd960c75830e6cc1e7", "score": "0.53230226", "text": "protected function fetchSchema()\n {\n $tables = $this->db->query( \"SELECT table_name FROM user_tables ORDER BY table_name\" )->fetchAll();\n return $this->processSchema( $tables );\n }", "title": "" }, { "docid": "de16a72f06dde20f03797abde88d90e1", "score": "0.53188354", "text": "static function schemaDef()\n {\n return array(\n 'fields' => array(\n 'uri' => array('type' => 'varchar', 'length' => 255, 'not null' => true),\n 'profile_id' => array('type' => 'integer'),\n 'group_id' => array('type' => 'integer'),\n 'peopletag_id' => array('type' => 'integer'),\n 'feeduri' => array('type' => 'varchar', 'length' => 255),\n 'salmonuri' => array('type' => 'varchar', 'length' => 255),\n 'avatar' => array('type' => 'text'),\n 'created' => array('type' => 'datetime', 'not null' => true),\n 'modified' => array('type' => 'datetime', 'not null' => true),\n ),\n 'primary key' => array('uri'),\n 'unique keys' => array(\n 'ostatus_profile_profile_id_idx' => array('profile_id'),\n 'ostatus_profile_group_id_idx' => array('group_id'),\n 'ostatus_profile_peopletag_id_idx' => array('peopletag_id'),\n 'ostatus_profile_feeduri_idx' => array('feeduri'),\n ),\n 'foreign keys' => array(\n 'ostatus_profile_profile_id_fkey' => array('profile', array('profile_id' => 'id')),\n 'ostatus_profile_group_id_fkey' => array('user_group', array('group_id' => 'id')),\n 'ostatus_profile_peopletag_id_fkey' => array('profile_list', array('peopletag_id' => 'id')),\n ),\n );\n }", "title": "" }, { "docid": "5d27686e0805c86432c0ba32ff1c31fb", "score": "0.53085214", "text": "function mts_wp_review_get_schema( $output, $review ) {\n\t// Modify the $output.\n\treturn $output;\n}", "title": "" }, { "docid": "a239d6538a24b5ab25325dc265957e03", "score": "0.52905667", "text": "function hunter_get_module_schema($module, $table = NULL) {\n // Load the .install file to get hook_schema.\n module_load_install($module);\n $schema = \\hunter::moduleHandler()->invoke($module, 'schema');\n\n if (isset($table)) {\n if (isset($schema[$table])) {\n return $schema[$table];\n }\n return array();\n }\n elseif (!empty($schema)) {\n return $schema;\n }\n return array();\n}", "title": "" } ]
fd382831a7944aa3089e391f94d016ed
Generates the PDF from the HTML File
[ { "docid": "b637c7c0cd9754862b7a41b4655d3a89", "score": "0.66124374", "text": "public function generate()\n\t{\n\t\t// Inject our print framework\n\t\tif ($this->printFramework !== false)\n\t\t{\n\t\t\t$this->document->setContents\n\t\t\t(\n\t\t\t\tStr::s($this->document->getContents())->replace\n\t\t\t\t(\n\t\t\t\t\t'</head>',\n\t\t\t\t\t$this->printFramework.'</head>'\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\n\t\t// Create a new temp file for the generated pdf\n\t\t$output_document = $this->tempFile();\n\n\t\t// Build the cmd to run\n\t\t$cmd =\n\t\t\t$this->binary.' '.\n\t\t\t$this->runner.' '.\n\t\t\t'--url \"file://'.$this->document->getPathname().'\" '.\n\t\t\t'--output \"'.$output_document->getPathname().'\" '\n\t\t;\n\n\t\tif (isset($this->paperSize['width']))\n\t\t{\n\t\t\t$cmd .= '--width \"'.$this->paperSize['width'].'\" ';\n\t\t}\n\n\t\tif (isset($this->paperSize['height']))\n\t\t{\n\t\t\t$cmd .= '--height \"'.$this->paperSize['height'].'\" ';\n\t\t}\n\n\t\t// Run the command\n\t\t$process = $this->process($cmd);\n\t\t$process->run();\n\n\t\t// Check for errors\n\t\tif (!$process->isSuccessful())\n\t\t{\n\t\t\tthrow new RuntimeException\n\t\t\t(\n\t\t\t\t$process->getErrorOutput()\n\t\t\t);\n\t\t}\n\n\t\t// Return the pdf\n\t\treturn $output_document->getContents();\n\t}", "title": "" } ]
[ { "docid": "e62e13a27be92855f7be55c7d1bc7ccd", "score": "0.7664394", "text": "public function generatePDF()\n {\n $pdf = new Pdf(array(\n 'no-outline', // Make Chrome not complain\n 'margin-top' => 0,\n 'margin-right' => 0,\n 'margin-bottom' => 0,\n 'margin-left' => 0,\n \n // Default page options\n 'disable-smart-shrinking',\n ));\n\n $pdf->binary = 'C:\\Program Files\\wkhtmltopdf\\bin\\wkhtmltopdf.exe';\n $pdf->setOptions(array('orientation' => 'landscape'));\n $pdf->addPage($this->convertDataToHTML());\n\n if (!$pdf->send()) {\n $error = $pdf->getError();\n // ... handle error here\n }\n }", "title": "" }, { "docid": "4907ffe2a88da3af50f807bffe6163b1", "score": "0.7476974", "text": "private function renderPdf($html)\n {\n $html2pdf = $this->get('html2pdf_factory')->create('P', 'A4', 'en', true, 'UTF-8', array(10, 15, 10, 15));\n $html2pdf->WriteHTML($html);\n $html2pdf->Output('exemple.pdf');\n exit;\n }", "title": "" }, { "docid": "0fe50e3e7442b88f2cc25bc530f97ef2", "score": "0.7419129", "text": "function generate_pdf($html, $filename)\n{\n// define('DOMPDF_ENABLE_AUTOLOAD', false);\n// require_once(\"./vendor/dompdf/dompdf/dompdf_config.inc.php\");\n require_once(\"./vendor/mpdf/mpdf/mpdf.php\");\n\n $mpdf = new Mpdf();\n $mpdf->WriteHTML($html);\n $mpdf->Output();\n}", "title": "" }, { "docid": "c90ac156d182c2824542225df0a95203", "score": "0.73911816", "text": "public function create_pdf($_html){\n $this->autoRender = FALSE;\n set_time_limit(0);\n// define(\"MPDF_ENABLE_REMOTE\",true);\n $this->Mpdf->init();\n $base_url = WWW_ROOT . 'css' . DS . 'style.css';\n $stylesheet = file_get_contents(\"{$base_url}\");\n $this->Mpdf->WriteHTML($stylesheet, 1);\n $this->Mpdf->WriteHTML($_html);\n $this->Mpdf->SetWatermarkText(\"Draft\");\n $this->Mpdf->_init = FALSE;\n $this->Mpdf->Output(\"files/atiq.pdf\", 'F');\n }", "title": "" }, { "docid": "05518c537c35ccf9744b69be17bce740", "score": "0.7304577", "text": "public function html_to_pdf($html) {\n $dompdf = new Dompdf();\n $dompdf->loadHtml($html);\n\n // (Optional) Setup the paper size and orientation\n $dompdf->setPaper('A4', 'portrait');\n\n // Render the HTML as PDF\n $dompdf->render();\n\n // Output the generated PDF to Browser\n $dompdf->stream();\n }", "title": "" }, { "docid": "b05f04fb7fad4114abe03bee3a5258b2", "score": "0.7221232", "text": "public function GenerateHTML2PDF(){\n\n echo 'GenerateHTML2PDF';\n\n }", "title": "" }, { "docid": "3e8fdf52f345d8923890c6be9547ab28", "score": "0.71652675", "text": "protected function buildPdf(string $htmlPath) : void\n {\n $pdf = new Html2Pdf();\n $pdf->writeHTML(file_get_contents($htmlPath));\n $pdf->output(storage_path('app/html2pdf_result.pdf'));\n }", "title": "" }, { "docid": "9fe6fa62d1916150c8cf42d2f4296423", "score": "0.70910347", "text": "public function html_to_pdf($html, $ref_number) {\n $dompdf = new Dompdf();\n $dompdf->loadHtml($html);\n\n // (Optional) Setup the paper size and orientation\n $dompdf->setPaper('Letter', 'portrait');\n\n // Render the HTML as PDF\n $dompdf->render();\n\n // Output the generated PDF to Browser\n\n $file_name = \"Insertion-Order-\". $ref_number;\n $dompdf->stream($file_name);\n }", "title": "" }, { "docid": "d029ada3ffb99e0263f6377eb2778f51", "score": "0.69137025", "text": "public function asPdf();", "title": "" }, { "docid": "2d6162275dce03c054869d69c62d6770", "score": "0.6902629", "text": "public function generate($html, $options = [], $filename = null)\n {\n // Instantiate Dom-pdf\n if (is_array($options) && !empty($options)) {\n // Set options\n $options = new Options($options);\n $dompdf = new Dompdf($options);\n } else {\n $dompdf = new Dompdf();\n }\n\n // Set HTML\n $dompdf->loadHtml($html);\n\n // Render the HTML as PDF\n $dompdf->render();\n\n // Generate PDF-data\n $data = $dompdf->output();\n\n if (!empty($filename)) {\n // Save PDF-document\n $result = file_put_contents($filename, $data);\n\n // Return\n if ($result !== false) $result = true;\n return $result;\n } else {\n // Return\n return $data;\n }\n }", "title": "" }, { "docid": "6f1fd045ab2f9244d7b2219005466392", "score": "0.6892102", "text": "public function convertpdf()\n {\n\n $this->load->view('generatepdf');\n\n // Get output html\n $html = $this->output->get_output();\n\n // Load pdf library\n $this->load->library('pdf');\n // Load HTML content\n $this->pdf->loadHtml($html);\n\n // (Optional) Setup the paper size and orientation\n $this->pdf->setPaper('A4', 'landscape');\n\n // Render the HTML as PDF\n $this->pdf->render();\n\n // Output the generated PDF (1 = download and 0 = preview)\n $this->pdf->stream(\"welcome.pdf\", array(\"Attachment\"=>0));\n }", "title": "" }, { "docid": "3b45fbf1be675d2772c973edabf1e53c", "score": "0.6825473", "text": "public function outputHtml()\n {\n echo $this->html2pdf->Output('linkedin-application.pdf');\n }", "title": "" }, { "docid": "7974a33aab13c756184c0e34d9704e16", "score": "0.6798972", "text": "public function indexPdf()\n\t{\n\t\t$id = (int)$this->url->get('id');\n\t\tif (empty($id) || !is_int($id)) { $this->url->redirect('quotes'); }\n\n\t\t$this->createPDFHTML($id);\n\t}", "title": "" }, { "docid": "a9cb0a26d1642568055edefc601f97d2", "score": "0.67881316", "text": "public function generate($html, $filename='', $stream=TRUE, $paper = 'A4', $orientation = \"portrait\")\n \t{\n\t $dompdf = new DOMPDF();\n\t $dompdf->set_base_path('');\n\t $html = $html.'/public';\n\t $dompdf->loadHtml($html);\n\n\t $dompdf->setPaper($paper, $orientation);\n\t $dompdf->render();\n\t\tif ($stream)\n\t\t\t$dompdf->stream($filename.\".pdf\", array(\"Attachment\" => 1));\n\t\telse \n\t\t\treturn $dompdf->output();\n\t}", "title": "" }, { "docid": "719595acc2ddd23386de2620c8712771", "score": "0.67361945", "text": "function pdf($html, $filename)\n{\n $pdfarr = [\n 'title' => $filename,\n 'data' => $html, // render file blade with content html\n 'header' => ['show' => false], // header content\n 'footer' => ['show' => false], // Footer content\n 'font' => 'aealarabiya', // dejavusans, aefurat ,aealarabiya ,times\n 'font-size' => 12, // font-size\n 'text' => '', //Write\n 'rtl' => (lang() == 'ar') ? true : false, //true or false\n // 'creator'=>'phpanonymous', // creator file - you can remove this key\n // 'keywords'=>'phpanonymous keywords', // keywords file - you can remove this key\n // 'subject'=>'phpanonymous subject', // subject file - you can remove this key\n 'filename' => $filename . '.pdf', // filename example - invoice.pdf\n 'display' => 'download', // stream , download , print\n ];\n return \\PDFAnony::HTML($pdfarr);\n}", "title": "" }, { "docid": "60e1104a3199e00ae8067e6a3f684e3a", "score": "0.67191434", "text": "function create_pdf($str,$file_path,$filename) {\n\n@include_once ($inc_path.'resources/php/mpdf/mpdf.php');\n$mpdf=new mPDF('');\n$mpdf->debug = true;\n$mpdf->setFooter('{PAGENO}');\n \nif (($_REQUEST['html'])) { echo $str; exit; }\nif (($_REQUEST['source'])) {\n$filename = __FILE__;\n$filename='dmplan';\nheader(\"Content-Type: text/plain\");\nheader(\"Content-Length: \". filesize($filename));\nheader(\"Content-Disposition: attachment; filename='\".$file.\"'\");\nreadfile($filename);\nexit;\n}\n\n$mpdf->WriteHTML($str);\n$mpdf->Output($file_path.$filename.'.pdf','F'); \nexit;\n}", "title": "" }, { "docid": "68f9a43aea05d13100d5439c2b67ba7a", "score": "0.6707485", "text": "Public function __printPDF($filename){\n\t\tob_start();\t\t\n\t\tinclude($_SERVER['DOCUMENT_ROOT'].'/app/webroot/View/'.$filename.'');\t\t\n\t\t$content = ob_get_clean();\t\t\n\t\t// convert in PDF\n\t\trequire_once($_SERVER['DOCUMENT_ROOT'].'/app/Vendor/htmltopdf/html2pdf.class.php');\n\t\ttry {\n\t\t\t$html2pdf = new HTML2PDF('P', 'A4', 'en');\n\t\t\t//$html2pdf->setModeDebug();\n\t\t\t$html2pdf->setDefaultFont('Arial');\n\t\t\t$html2pdf->writeHTML($content, isset($_GET['vuehtml']));\n\t\t\t//$html2pdf->Output(''.$file_name.'.pdf');\n\t\t\t$html2pdf->Output(''.$file_name.'.pdf','d');\n\t\t} catch(HTML2PDF_exception $e) {\n\t\t\techo $e;\n\t\t\texit;\n\t\t}\n\t}", "title": "" }, { "docid": "e45d9a96941654842d3beb5da8a758be", "score": "0.6619627", "text": "function gerarPDF($html, $horientacao=\"retrato\")\n {\n $mpdf = new \\Mpdf\\Mpdf();\n $mpdf->WriteHTML($html);\n $mpdf->Output(\"relatorio_\". date('m-d-Y_h-i') .\".pdf\", 'D');\n \n exit();\n }", "title": "" }, { "docid": "6f5ae0a086c76c75f83be9de942af8c4", "score": "0.65553045", "text": "public function pdf_settlement() {\n\t\t$this->load->view('applications/settlement');\n\n\t\t// Get output html\n\t\t$html = $this->output->get_output();\n\t\t\n\t\t// Load library\n \n\t\t$this->load->library('dompdf_gen');\n\n\t\t// Convert to PDF\n\t\t$this->dompdf->load_html($html);\n\t\t$this->dompdf->render();\n\n\t\t$this->dompdf->stream(\"Settlement.pdf\");\n\t}", "title": "" }, { "docid": "920b4d315b2949392afff14c44764e04", "score": "0.6550561", "text": "function pdftohtml($path){\ninclude 'vendor/autoload.php';\n// initiate\n$pdf = new \\TonchikTm\\PdfToHtml\\Pdf($path, [\n 'pdftohtml_path' => __DIR__.'/poppler-0.68.0/bin/pdftohtml.exe',\n 'pdfinfo_path' => __DIR__.'/poppler-0.68.0/bin/pdfinfo.exe'\n]);\n\n// example for windows\n// $pdf = new \\TonchikTm\\PdfToHtml\\Pdf('test.pdf', [\n// 'pdftohtml_path' => '/path/to/poppler/bin/pdftohtml.exe',\n// 'pdfinfo_path' => '/path/to/poppler/bin/pdfinfo.exe'\n// ]);\n\n// get pdf info\n$pdfInfo = $pdf->getInfo();\n\n// get count pages\n$countPages = $pdf->countPages();\n\n// get content from one page\n$contentFirstPage = $pdf->getHtml()->getPage(1);\n$html = '';\n// get content from all pages and loop for they\nforeach ($pdf->getHtml()->getAllPages() as $page) {\n $html .= $page . '<br/>';\n}\necho $html;\n}", "title": "" }, { "docid": "630d13bd2b2eb2dc6abca74aa7d40567", "score": "0.65195143", "text": "public function htmlFromPdfFile($filename, $saveToFile = null);", "title": "" }, { "docid": "77a3cee24b48effd4dc2d40fae8daac3", "score": "0.65072393", "text": "public function html2pdf($html, $params = array())\n {\n $this->checkParams($params);\n\n $params['html'] = $html;\n\n return $this->call('POST', '/html/pdf', true, $params, true);\n }", "title": "" }, { "docid": "d11db3753d2f87a3337ff2cf459abb23", "score": "0.64948416", "text": "public function generate_report(){\n\t\t$dompdf = new Dompdf\\Dompdf();\n\t\t$data[\"rows\"] = \"\"; //contains the query results\n\n\t\t$html = $this->load->view('',$data, true); // replace '' with your view that is used in displaying the html for generating PDF\n\n\t\t$dompdf->loadHtml($html);\n\n\t\t// (Optional) Setup the paper size and orientation\n\t\t$dompdf->setPaper(\"A4\", \"landscape\"); //Paper Size: legal, letter, a4, etc,.\n\n\t\t// Render the HTML as PDF\n\t\t$dompdf->render();\n\n\t\t// Get the generated PDF file contents\n\t\t$pdf = $dompdf->output();\n\n\t\t// Output the generated PDF to Browser\n\t\t//$dompdf->stream();\n\t\t$dompdf->stream(\"T\" .md5(time()). \".pdf\", array(\"Attachment\" => 0)); //output filename\n\n\t}", "title": "" }, { "docid": "3453668eefdbf08bf827d9a6c1f63e5d", "score": "0.6459118", "text": "public function printreport()\n {\n // $pdf =PDF::loadHTML($html)->setPaper('a4')->setOrientation('landscape')->setOption('margin-bottom', 0)->save('1.pdf');\n // return $pdf->stream('1.pdf');\n // // $html = \"ge\";\n // // $pdf = PDF::loadHTML($html)->setPaper('a4')->setOrientation('landscape')->setOption('margin-bottom', 0)->save('test.pdf');\n // // $pdf->setTemporaryFolder(\"C:/xampp/htdocs/mlqu2/public/pdf\");\n // // return $pdf->stream('test.pdf');\n\n return view('layouts/pdf/professor/report/enlistment');\n\n }", "title": "" }, { "docid": "f14d8c8b72398ad19bac26b2aaa86782", "score": "0.64421356", "text": "public function convert($html, int $tableNumber, string $projectDirectory)\n {\n // Configure Dompdf according to your needs\n $pdfOptions = new Options();\n $pdfOptions->set('defaultFont', 'Arial');\n\n // Instantiate Dompdf with our options\n $dompdf = new Dompdf($pdfOptions);\n\n // Load HTML to Dompdf\n $dompdf->loadHtml($html);\n\n // (Optional) Setup the paper size and orientation 'portrait' or 'portrait'\n $dompdf->setPaper('A4', 'portrait');\n\n // Render the HTML as PDF\n $dompdf->render();\n\n // Store PDF Binary Data\n $output = $dompdf->output();\n\n // In this case, we want to write the file in the public directory\n $publicDirectory = $projectDirectory . '/SavedDocuments';\n // e.g /var/www/project/public/mypdf.pdf\n $pdfFilepath = sprintf('%s/%s-%s.pdf',$publicDirectory, \"Tabel Nominal\", $tableNumber);\n\n // Write file to the desired path\n file_put_contents($pdfFilepath, $output);\n }", "title": "" }, { "docid": "a359fda43661b0d91a2bf58559268d1b", "score": "0.64384985", "text": "public function generatePDF($html1 = NULL, $html2 = NULL, $name = 'PDF', $path = null, $action = 'D') {\n ob_start();\n ob_clean();\n ini_set('memory_limit', '-1');\n require_once(APPPATH . 'third_party/tcpdf/tcpdf.php');\n\n\n // create new PDF document\n $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n\n $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\n\n $pdf->SetPrintHeader(false);\n // set auto page breaks\n $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\n\n // set image scale factor\n $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\n\n $pdf->SetFont('dejavusans', '', 10);\n\n // add a page\n $pdf->AddPage();\n\n $pdf->Line(5, 5, $pdf->getPageWidth() - 5, 5);\n $pdf->Line($pdf->getPageWidth() - 5, 5, $pdf->getPageWidth() - 5, $pdf->getPageHeight() - 5);\n $pdf->Line(5, $pdf->getPageHeight() - 5, $pdf->getPageWidth() - 5, $pdf->getPageHeight() - 5);\n $pdf->Line(5, 5, 5, $pdf->getPageHeight() - 5);\n\n // output the HTML content\n $pdf->writeHTML($html1, true, false, true, false, '');\n\n $pdf->AddPage();\n\n $pdf->Line(5, 5, $pdf->getPageWidth() - 5, 5);\n $pdf->Line($pdf->getPageWidth() - 5, 5, $pdf->getPageWidth() - 5, $pdf->getPageHeight() - 5);\n $pdf->Line(5, $pdf->getPageHeight() - 5, $pdf->getPageWidth() - 5, $pdf->getPageHeight() - 5);\n $pdf->Line(5, 5, 5, $pdf->getPageHeight() - 5);\n $pdf->writeHTML($html2, true, false, true, false, '');\n\n $pdf->Output($name . '.pdf', $action);\n }", "title": "" }, { "docid": "5812aee33beca83ba272ccafb90f4069", "score": "0.6413139", "text": "public function createPDF()\n {\n $data = CoursePurchased::all();\n\n // share data to view\n view()->share('purchases', $data);\n $pdf = PDF::loadView('pdf_view3', $data);\n\n // download PDF file with download method\n return $pdf->download('pdf_file.pdf');\n }", "title": "" }, { "docid": "3e599b1d433cbcf201cc7f000d2d90b0", "score": "0.63926834", "text": "function generarPDF($html, $path) {\n $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n\n// set document information\n $pdf->SetCreator(PDF_CREATOR);\n $pdf->SetAuthor('Marcial');\n $pdf->SetTitle('BSD Servicios');\n $pdf->SetSubject('Contrato');\n $pdf->SetKeywords('');\n\n// set default header data\n $pdf->SetHeaderData(\"\", \"\", \"\", \"\", array(0, 64, 255), array(255, 255, 255));\n $pdf->setFooterData(array(187, 187, 191), array(212, 212, 212));\n\n// set header and footer fonts\n $pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));\n $pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));\n\n// set default monospaced font\n $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\n\n// set margins\n $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);\n $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\n $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\n\n// set auto page breaks\n $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\n\n// set image scale factor\n $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\n\n// set some language-dependent strings (optional)\n if (@file_exists(dirname(__FILE__) . '/lang/eng.php')) {\n require_once(dirname(__FILE__) . '/lang/eng.php');\n $pdf->setLanguageArray($l);\n }\n\n// ---------------------------------------------------------\n// set default font subsetting mode\n $pdf->setFontSubsetting(true);\n\n// Set font\n// dejavusans is a UTF-8 Unicode font, if you only need to\n// print standard ASCII chars, you can use core fonts like\n// helvetica or times to reduce file size.\n//$pdf->SetFont('dejavusans', '', 14, '', true);\n// Add a page\n// This method has several options, check the source code documentation for more information.\n $pdf->AddPage();\n\n// set text shadow effect\n//$pdf->setTextShadow(array('enabled'=>true, 'depth_w'=>0.2, 'depth_h'=>0.2, 'color'=>array(196,196,196), 'opacity'=>1, 'blend_mode'=>'Normal'));\n// Set some content to print\n//$html = $cad;\n// Print text using writeHTMLCell()\n//$pdf->writeHTMLCell(0, 0, '', '', $html, 0, 1, 0, true, '', true);\n// output the HTML content\n $pdf->writeHTML($html, true, 0, true, true);\n\n $pdf->Ln();\n\n// set UTF-8 Unicode font\n $pdf->SetFont('cid0jp', '', 10);\n\n// output the HTML content\n//$pdf->writeHTML($cad, true, 0, true, true);\n// reset pointer to the last page\n $pdf->lastPage();\n// ---------------------------------------------------------\n// Close and output PDF document\n// This method has several options, check the source code documentation for more information. \n $pdf->Output($path, 'F');\n// $pdf->Output('example_001.pdf', 'I');\n//============================================================+\n// END OF FILE\n//============================================================+\n}", "title": "" }, { "docid": "23a7fe1e4a2b31b90ef765ed94510bfa", "score": "0.63922507", "text": "public function HTMLToPDF($html, GrabzItPDFOptions $options = null)\n\t{\n\t\tif ($options == null)\n\t\t{\n\t\t\t$options = new GrabzItPDFOptions();\t\t\t\n\t\t}\n\n\t\t$this->request = new GrabzItRequest($this->getRootUrl() . GrabzItClient::TakePDF, true, $options, $html);\n\t}", "title": "" }, { "docid": "b9b11f63d5f37646884c4317f14a6ec8", "score": "0.638335", "text": "public function generate($html, $fileName = null)\n {\n // Write down view HTML so PhantomJS can access it\n $this->files->put($this->path = __DIR__.'/work/'.($fileName ?: md5($html)).'.pdf', $html);\n\n $this->getPhantomProcess()->setTimeout(10)->run();\n\n return $this->path;\n }", "title": "" }, { "docid": "dda4bae8b8b64978239653bc40b0526e", "score": "0.630872", "text": "function geraPDF($nomeDoArquivo, $html, $tipo, DOMPDF $dompdf, $pastaDestino) {\n $dompdf = $dompdf; // objeto - DOMPDF.\n // Altera o papel para modo paisagem.\n if ($tipo == \"L\") :\n $dompdf->set_paper(\"481x680\", \"landscape\");\n\n\n endif;\n // Carrega o HTML para a classe.\n $dompdf->load_html(utf8_decode($html));\n $dompdf->render();\n $pdf = $dompdf->output(); // Cria o pdf.\n // Tenta salvar o pdf gerado.\n $arquivo = $pastaDestino;\n if (file_put_contents($arquivo, $pdf)) :\n // Salvo com sucesso.\n return true;\n else :\n // Erro ao salvar o arquivo.\n return false;\n endif;\n}", "title": "" }, { "docid": "c10957c36547fc952203d8e5573d2a0f", "score": "0.6296246", "text": "function createPdfForReport($fileName, $htmlForPdfs, $footerHtml = \"\", $required = \"\", $defaultMarginBottom = '20mm'){\n ini_set('max_execution_time', 0);\n set_time_limit(0);\n ini_set('memory_limit', -1);\n\n //****Start Clean Directory\n $dir = public_path('data/reports/');\n if (!file_exists('data/reports/')) {\n mkdir('data/reports/', 0777, true);\n }\n // deleteOldPdfFile($dir);\n //****End Clean Directory\n $options1 = array(\n 'encoding' => 'UTF-8', // option with argument\n 'page-size' => 'A3', // option with argument\n //'user-style-sheet' => public_path('assets/css/style.css'),\n 'use-xserver',\n 'commandOptions' => array(\n 'enableXvfb' => true,\n 'procEnv' => array(\n 'LANG' => 'en_US.utf-8',\n ),\n 'xvfbRunOptions' => '--auto-servernum',\n ),\n // 'margin-right' => '15mm',\n 'margin-bottom' => $defaultMarginBottom,\n // 'margin-left' => '14mm',\n // 'header-spacing' => 15,\n // 'footer-spacing' => 5,\n 'disable-smart-shrinking',\n 'no-outline'\n );\n $options = array(\n 'javascript-delay' => 2000,\n 'encoding' => 'UTF-8',\n 'footer-line',\n 'footer-font-size' => 10,\n 'footer-spacing' => 10,\n 'margin-bottom' => '25mm',\n 'header-spacing' => 15,\n ); \n if (!empty($footerHtml)) {\n $options['footer-html'] = $footerHtml;\n }\n $pdf = new Pdf($options);\n $pdf->binary = 'wkhtmltopdf';\n // $pdf = new Pdf(array(\n // 'use-xserver',\n // 'commandOptions' => array(\n // 'enableXvfb' => true,\n // )));\n //***On some systems you may have to set the binary path.\n// $footer = view('reports::detailpages.pdf-templates.footer')->render();\n// $page_options = [\n// 'footer-html' => \"\".str_replace(\"\\n\", ' ', $footer).\"\"\n// ];\n if (is_array($htmlForPdfs)) {\n foreach ($htmlForPdfs as $htmlForPdf) {\n $pdf->addPage($htmlForPdf);\n }\n } else {\n $pdf->addPage($htmlForPdfs);\n }\n\n $fileName = $fileName . '-' . uniqid() . '-'. time() . '.pdf';\n $fileFullPathWithName = $dir . $fileName;\n // dd($fileFullPathWithName);\n $pdf->saveAs($fileFullPathWithName);\n //dd($pdf);\n $fileFullUrl = url('data/reports/' . $fileName);\n //dd($fileFullUrl);\n //dd($fileFullPathWithName);\n if (file_exists($fileFullPathWithName)) {\n //dd($fileFullPathWithName);\n if (!empty($required)) {\n return $fileName;\n } else {\n return $fileFullUrl;\n }\n } else {\n // dd(\"else\");\n //return 'Error: ' . $pdf->getError();\n return url('data/error.pdf');\n }\n}", "title": "" }, { "docid": "d4f2b4907cec4baa8f5fe4d91db9eafa", "score": "0.6248907", "text": "protected function fnGeneratePDF($dompdf, $viewHtml, $config = null)\n {\n if (is_null($config)) {\n $config = [\n 'attachment' => '0',\n 'hoja' => 'A4',\n 'filename' => 'test.pdf',\n 'orientation' => 'P',\n ];\n }\n $dompdf->loadHtml($viewHtml->render());\n $dompdf->setPaper($config['hoja'], $config['orientation'] == 'P' ? 'portrait' : 'landscape');\n $dompdf->render();\n $dompdf->stream($config['filename'], ['Attachment' => $config['attachment']]);\n }", "title": "" }, { "docid": "2e25808600f397ba73bb9309e58e5198", "score": "0.6204375", "text": "public function GenerarPDF()\n {\n $this->load->library('generarpdf');\n $filename = 'PerfilSistemaAdministrativo';\n $html = $this->CuerpoPDF();\n $this->generarpdf->generate($html, $filename);\n }", "title": "" }, { "docid": "707463f337b1ae8008c6d86b3d8c10e9", "score": "0.62037116", "text": "public function makePDF(){\n $product = Product::join('categories', 'categories.id', '=', 'products.category_id')\n ->orderBy('products.id', 'desc')->get();\n\n $no = 0;\n $pdf = PDF::loadView('product.pdf', compact('product', 'no'));\n $pdf->setPaper('a4', 'Potrait');\n\n return $pdf->stream();\n }", "title": "" }, { "docid": "5c7346f787006d130359906673864f6b", "score": "0.6190778", "text": "public function viewPDF(){\n\t\t$parser = new \\Smalot\\PdfParser\\Parser();\n\t\t$pdf = $parser->parseFile(URL.'/public/tariffs/document.pdf');\n\t\t \n\t\t$text = $pdf->getText();\n\t\techo \"<code>\";\n\t\techo \"<pre>\";\n\t\techo $text;\n\t\techo \"</pre>\";\n\t\techo \"</code>\";\n\t}", "title": "" }, { "docid": "6e1bf2e37558dd38403ba3f88abf614a", "score": "0.6184172", "text": "public function pdf()\n\t{\n\t\t$record = InfoRequest::find('1')->toArray();\n\n\t\t$html[] = '\n\t\t<html>\n\t\t<head>\n\t\t<style>\n\t\t\tbody {\n\t\t\t\tfont-family: sans-serif;\n\t\t\t\tcolor: #333;\n\t\t\t}\n\t\t\th1 {\n\t\t\t\tcolor: darkgray;\n\t\t\t\tborder-bottom: 4px solid #ddd;\n\t\t\t}\n\t\t\t.box {\n\t\t\t\tborder:1px solid #ddd;\n\t\t\t\tbackground-color:#eee;\n\t\t\t\tpadding: 1rem;\n\t\t\t}\n\t\t</style>\n\t\t</head>\n\t\t<body>\n\n\t\t<h1>Solicitud recibida</h1>\n\t\t';\n\n\t\t$html[] = '<div class=\"box\">';\n\t\tforeach($record as $key=>$value) {\n\t\t\t$html[] = \"<p><b>{$key}</b>:<br> {$value}</p>\";\n\t\t}\n\t\t$html[] = '</div>';\n\n\t\t$html[] = '</html>';\n\n\t\t$path = storage_path(\"app/info_request_{$record['id']}.pdf\");\n\t\t$pdf = App::make('dompdf.wrapper');\n\t\t$done = $pdf->loadHTML( implode(\"\\n\", $html) )->save($path);\n\t\t//dd(__METHOD__, $done);\n\t\t//return $pdf->stream();\n\t}", "title": "" }, { "docid": "20c09868b5c83805768b4da2120609d4", "score": "0.6179024", "text": "public function generatePDF()\n {\n $pdf = PDF::loadView('test');\n return $pdf->download('timetable.pdf');\n\n //return redirect('admin.generated subject');\n }", "title": "" }, { "docid": "b5b5a6636c9b51a1e1b2761078fa7e53", "score": "0.6137144", "text": "public function makePdf()\n { \n $pickup = $this->tender->locations->where('type', 'pickup')->first();\n $delivery = $this->tender->locations->where('type', 'delivery')->first(); \n \n // Make PDF For Shipper\n $shipperPdf =$this->createPdf('pdf.order', [\n 'order' => $this, \n 'pickup' => $pickup,\n 'delivery' => $delivery, \n 'receiver' => $this->tenderer->company \n ], 'shipper'); \n // Make PDF For Carrier\n $carrierPdf = $this->createPdf('pdf.order', [\n 'order' => $this, \n 'pickup' => $pickup,\n 'delivery' => $delivery, \n 'receiver' => $this->carrier->company\n ], 'carrier'); \n\n return isset($shipperPdf) && isset($carrierPdf);\n }", "title": "" }, { "docid": "c655665883510c9e696e8a05a85751ae", "score": "0.6125918", "text": "public function download_pdf($file_name=''){\n \n $file_name = ( empty($file_name) ) ? 'pdf' : $file_name;\n \n if( empty($this->pdf) ){\n \n throw new Exception('No PDF has been generated');\n \n }\n \n header('Content-Type: application/pdf');\n header('Content-Disposition: attachment; filename=\"'.$file_name.'\"');\n header('Content-Transfer-Encoding: binary');\n \n echo $this->pdf;\n \n }", "title": "" }, { "docid": "5f645ace1eb88450f6719b1545640c66", "score": "0.6117689", "text": "public function reviewPDF()\r\n {\r\n $id = Input::get('ID');\r\n $price = Input::get('PRICE');\r\n $type = Input::get('TYPE');\r\n $project = Project::find($id);\r\n if($project!=null)\r\n {\r\n $pdf = App::make('dompdf.wrapper');\r\n switch($type)\r\n {\r\n case \"IMG\":\r\n {\r\n $content = view('templates.mail_img_template_pdf',array('project'=>$project,'price'=>$price));\r\n $name=\"contract_img\";\r\n break;\r\n }\r\n case \"IIG\":\r\n {\r\n $content = view('templates.mail_iig_template_pdf',array('project'=>$project,'price'=>$price));\r\n $name=\"contract_iig\";\r\n break;\r\n }\r\n case \"IGUP\":\r\n {\r\n $content = view('templates.mail_upgrade_template_pdf',array('project'=>$project,'price'=>$price));\r\n $name=\"contract_upgrade\";\r\n break;\r\n }\r\n case \"WP\":\r\n {\r\n $data = ToolsFunctions::obtainWPInfo($project->id);\r\n $showMore = 0;\r\n $contractIIG = $project->contracts()->where('type',\"IIG\")->first();\r\n $contractIGUP = $project->contracts()->where('type',\"IGUP\")->first();\r\n if($contractIIG!=null && $contractIIG->paid == $contractIIG->price)\r\n $showMore = 1;\r\n if($contractIGUP!=null && $contractIGUP->paid == $contractIGUP->price)\r\n $showMore = 1;\r\n $content = view('templates.wp_template_pdf',array('project'=>$project,'showMore'=>$showMore,'dataSF'=>$data));\r\n $name=\"contract_wp\";\r\n $price=\"-1\";\r\n break;\r\n }\r\n }\r\n if(!File::exists(\"files/projects/\".$project->lead->fileno.\"/\".$project->id)) {\r\n File::makeDirectory(\"files/projects/\".$project->lead->fileno.\"/\".$project->id, 0755, true);\r\n }\r\n $pdf->loadHTML($content);\r\n $pdf->save(\"files/projects/\".$project->lead->fileno.\"/\".$project->id.\"/$name.pdf\");\r\n //Create Transaction\r\n Transaction::createTransaction($project->consultant_id, $project->lead->id, '',\"GENERATED-CONTRACT\", $price, $id, $project->lead->email, $type, '', $project->lead->phone, '');\r\n return $pdf->stream();\r\n }\r\n return \"-1\";\r\n }", "title": "" }, { "docid": "0bf0c60138ea615682b7d47e185e70e3", "score": "0.61158085", "text": "public function html2pdfAsync($html, $params = array())\n {\n $this->checkParams($params);\n\n $params['html'] = $html;\n\n return $this->call('POST', '/html/pdf', false, $params, false);\n }", "title": "" }, { "docid": "292701e85f492fd855bd311c495c61a9", "score": "0.6115158", "text": "public function pdf($id){\n $kardex = Kardex::findOrFail($id);\n $pubs = Pub::all();\n $detalles = $this->getDetalles($kardex->id);\n $detallesBares = $this->getPubs($kardex->id);\n $pdf = \\PDF::setOptions([\n 'logOutputFile' => storage_path('logs/log.htm'),\n 'tempDir' => storage_path('logs/')\n ])->loadView('pdf.kardex',['detalles'=>$detalles,\n 'kardex'=>$kardex,\n 'pubs'=>$pubs,\n 'detallesBares'=>$detallesBares])\n ->setPaper('a4', 'landscape');\n return $pdf->stream('kardex'.$id.'.pdf');\n }", "title": "" }, { "docid": "239e1e9526da458759288ad6465bd884", "score": "0.6108385", "text": "static function mpdfGenerator_Html2PDF($params = array()) {\n $translate = Zend_Registry::get('Zend_Translate');\n //-----------------------------\n if ((!$params['pdfReport']) || (!$params['html'])) {\n throw new Exception($translate->_('ERR_CREATE_PDF_REPORT'));\n }\n\n $mode = '';\n // Получим URLLogoReport\n $config = Zend_Registry::get('config');\n $urlLogoReport = $config['user']['main']['logo_report'];\n $urlLogoReport = self::getFullURL_Res($urlLogoReport);\n //------------------------------------------------------\n // Установим значения по умолчанию\n $defaults = array(\n 'pdfReport' => '',\n 'html' => '',\n 'isCommonFont' => FALSE,\n 'pathStylesheet' => 'css/report/mpdf-style.css',\n 'isHeaders' => TRUE,\n 'isFooters' => TRUE,\n 'mirrorMargins' => TRUE,\n 'headerLeftMargin' => '',\n 'headerCentreMargin' => $urlLogoReport,\n 'headerRightMargin' => '{PAGENO}/{nbpg}',\n 'footerLeftMargin' => '{DATE Y-m-j}',\n 'footerCentreMargin' => '',\n 'footerRightMargin' => '',\n 'pageFormat' => 'A4', //Возможные форматы: пр. A3, A3-L, A4, A4-L ...\n );\n\n // Обьединим два массива\n $params = array_merge($defaults, $params);\n\n if (!$params['footerRightMargin']) {\n $params['footerRightMargin'] = self::getFullUrl_For_FilePDF($params['pdfReport']);\n }\n\n // Установим значения переменных из массива\n// extract($params, EXTR_OVERWRITE);\n\n\n try {\n // Изменим параметры PHP \n self::iniSetConfig_PHP(array(\n \"memory_limit\" => \"500M\", //\"256M\",\n \"max_execution_time\" => \"300\"//\"240\"\n ));\n\n// require_once(\"mpdf_source.php\");\n require_once(\"mpdf.php\");\n\n if ($params['isCommonFont']) {\n $mode = 'c';\n }\n\n $isHeaders = (bool) $params['isHeaders'];\n $isFooters = (bool) $params['isFooters'];\n\n if ($isHeaders || $isFooters) {\n $mpdf = new mPDF($mode, $params['pageFormat'], '', '', 15, 15, 32, 20, 10, 10);\n } else {\n $mpdf = new mPDF($mode, $params['pageFormat']);\n }\n\n // Установим параметры для оптимизации (уменьшим время испольнения и используемую память)\n $mpdf->useOnlyCoreFonts = true;\n $mpdf->useSubstitutions = false;\n $mpdf->simpleTables = true; // Уменьшает время выполнения\n $mpdf->packTableData = true; // Уменьшает используемую память\n $mpdf->use_kwt = true; //Keep-with-table Оставить заголовок таблицы вместе с маблицей на одной странице\n// $mpdf->shrink_tables_to_fit=0;\n// $mpdf->hyphenate = true;\n// $mpdf->SHYlang = 'ru';\n// $mpdf->SHYleftmin = 3;\n // Определим заголовок страницы\n $header = \" \n <table width=\\\"100%\\\" style=\\\"border-bottom: 1px solid #000000; vertical-align: bottom; font-weight: bold; font-size: 14pt; color: #000088;\\\"><tr>\n <td width=\\\"33%\\\"><span style=\\\"\\\">{$params['headerLeftMargin']}</span></td>\n <td width=\\\"33%\\\" align=\\\"center\\\"><img src=\\\"{$params['headerCentreMargin']}\\\" /></td>\n <td width=\\\"33%\\\" style=\\\"text-align: right;\\\"><span style=\\\"\\\">{$params['headerRightMargin']}</span></td>\n </tr></table>\n \";\n // Определим подвал страницы\n $footer = \"\n <table width=\\\"100%\\\" style=\\\"vertical-align: bottom; font-size: 14pt; color: #000088; font-weight: bold; font-style: italic;\\\"><tr>\n <td width=\\\"33%\\\"><span style=\\\"\\\">{$params['footerLeftMargin']}</span></td>\n <td width=\\\"33%\\\" align=\\\"center\\\" style=\\\"\\\">{$params['footerCentreMargin']}</td>\n <td width=\\\"33%\\\" style=\\\"text-align: right; \\\">{$params['footerRightMargin']}</td>\n </tr></table>\n \";\n\n if ($mirrorMargins) {\n\n $headerE = \"\n <table width=\\\"100%\\\" style=\\\"border-bottom: 1px solid #000000; vertical-align: bottom; font-weight: bold; font-size: 14pt; color: #000088;\\\"><tr>\n <td width=\\\"33%\\\"><span style=\\\"\\\"><span style=\\\"\\\">{$params['headerRightMargin']}</span></span></td>\n <td width=\\\"33%\\\" align=\\\"center\\\"><img src=\\\"{$params['headerCentreMargin']}\\\" /></td>\n <td width=\\\"33%\\\" style=\\\"text-align: right;\\\"><span style=\\\"\\\">{$params['headerLeftMargin']}</span></td>\n </tr></table>\n \";\n\n $footerE = \"\n <table width=\\\"100%\\\" style=\\\"vertical-align: bottom; font-size: 14pt; color: #000088; font-weight: bold; font-style: italic;\\\"><tr>\n <td width=\\\"33%\\\"><span style=\\\"\\\">{$params['footerRightMargin']}</span></td>\n <td width=\\\"33%\\\" align=\\\"center\\\" style=\\\"\\\">{$params['footerCentreMargin']}</td>\n <td width=\\\"33%\\\" style=\\\"text-align: right; \\\">{$params['footerLeftMargin']}</td>\n </tr></table>\n \";\n if ($isHeaders) {\n $mpdf->mirrorMargins = TRUE; // Use different Odd/Even headers and footers and mirror margins\n $mpdf->SetHTMLHeader($headerE, 'E');\n }\n\n if ($isFooters) {\n $mpdf->mirrorMargins = TRUE; // Use different Odd/Even headers and footers and mirror margins\n $mpdf->SetHTMLFooter($footerE, 'E');\n }\n }\n\n if ($isHeaders) {\n $mpdf->SetHTMLHeader($header);\n }\n\n if ($isFooters) {\n $mpdf->SetHTMLFooter($footer);\n }\n\n\n $html = $params['html'];\n //$html = '';\n //$params['pathStylesheet'] = '';\n\n if ($params['pathStylesheet']) {\n $stylesheet = file_get_contents($params['pathStylesheet']);\n $mpdf->WriteHTML($stylesheet, 1);\n $mpdf->WriteHTML($html, 2);\n } else {\n $mpdf->WriteHTML($html);\n }\n\n // Получим директорию сохранения файлов\n $dirFilePDF = self::getPath_For_FilePDF($params['pdfReport']);\n\n // Сохраним файл на серверном ресурсе пользователя \n $mpdf->Output($dirFilePDF, 'F');\n } catch (Exception $exc) {\n throw new Exception($exc->getMessage());\n }\n // Возвратим URL путь, полученного файла PDF\n return Default_Plugin_SysBox::getFullUrl_For_FilePDF($params['pdfReport']);\n }", "title": "" }, { "docid": "cfca40bd745e239724ac8fcd4fa0afbf", "score": "0.61045754", "text": "public function createPDF($document_body)\n {\n // reference the Dompdf namespace\n use Dompdf\\Dompdf;\n\n // instantiate and use the dompdf class\n $dompdf = new Dompdf();\n $dompdf->loadHtml($document_body);\n\n // (Optional) Setup the paper size and orientation\n $dompdf->setPaper('letter', 'landscape');\n\n // Render the HTML as PDF\n $dompdf->render();\n\n // Output the generated PDF to Browser\n echo $dompdf->stream();\n }", "title": "" }, { "docid": "a67c9f782549a909b9cfb68b13a439fa", "score": "0.60938513", "text": "public function sspdf()\n {\n \t$html = HtmlDomParser::file_get_html('http://licitacoes.ssp.df.gov.br./index.php/licitacoes/cat_view/1-licitacoes/4-concorrencia');\n\t \n\t foreach ($html->find('div.dm_row') as $title) {\n\t \t$item['name'] = $title->find('h3.dm_title', 0)->plaintext;\n\t \t$item['title'] = $title->find('a', 0)->title;\n\t \t$item['file'] = $title->find('a', 1)->href;\n\t \t$item['object'] = $title->find('p', 0)->plaintext;\n\t \t$item['starting_date'] = $title->find('td', 1)->plaintext;\n\n\t \t$data[] = $item;\n\t }\n\t \n $domain = \"http://licitacoes.ssp.df.gov.br.\";\n \t\n \treturn view('sspdf', compact('data', 'domain'));\n }", "title": "" }, { "docid": "d49095710ef2d9ac1591abead4f36ae7", "score": "0.6086048", "text": "public function getPDF()\n {\n\n $fpdf = new PDF();\n $docentes = Docente::all();\n $columnas = ['NRO','CODIGO','APELLIDOS Y NOMBRES'];\n $fpdf->AddPage();\n $fpdf->Cell(80);\n $fpdf->Cell(30,5,'Lista de Docentes',0,1,'C');\n $fpdf->SetFont('Arial','B',9);\n $fpdf->Ln(2);\n $fpdf->SetFont('Arial','B',16);\n\n $fpdf->docentes($columnas,$docentes);\n $fpdf->Output();\n exit;\n }", "title": "" }, { "docid": "cbf3974e55928d4ab4a20e03cea0cdd0", "score": "0.607108", "text": "public function toPdf()\n {\n $this->setTemplate('paynova/paynovapayment/pdf/info.phtml');\n return $this->toHtml();\n }", "title": "" }, { "docid": "4848fe8367126b9ac6970b8706db23a5", "score": "0.60615987", "text": "public function display_pdf(){\n \n if( empty($this->pdf) ){\n \n throw new Exception('No PDF has been generated');\n \n }\n \n header('Content-Type: application/pdf');\n \n echo $this->pdf;\n \n }", "title": "" }, { "docid": "f4eab4c74e1ee4638c4204a6b3878d39", "score": "0.60564536", "text": "public function generate_pdf_content() {\n if ($this->isgrouping) {\n return $this->generate_grouping_pdf();\n }\n return $this->generate_group_pdf();\n }", "title": "" }, { "docid": "18f6453ca1be318da6dd0c81d467e222", "score": "0.6054844", "text": "public function print()\n {\n $html = $this->input->get('table');\n $pdf = new FPDF('P', 'mm', 'A4');\n $pdf->SetFont('Arial', 'B', 16);\n $pdf->WriteHTML($html);\n $pdf->output();\n }", "title": "" }, { "docid": "d6d5fe6d57e5171716f53a98d8ac49db", "score": "0.6029816", "text": "public function Pdf($mode = false)\n {\n $pdfOptions = new Options();\n $pdfOptions->set('defaultFont', 'Arial');\n\n // Instantiate Dompdf with our options\n $dompdf = new Dompdf($pdfOptions);\n\n // Retrieve the HTML generated in our twig file\n $html = $this->buildHtml();\n\n // Load HTML to Dompdf\n $html = \\Drupal::service('renderer')->render($html);\n\n\n if ($mode === 'test') {\n return new Response($html);\n\n } else {\n\n $dompdf->loadHtml($html);\n\n // (Optional) Setup the paper size and orientation 'portrait' or 'portrait'\n $dompdf->setPaper('A4', 'portrait');\n\n // Render the HTML as PDF\n $dompdf->render();\n\n // Store PDF Binary Data\n $output = $dompdf->output();\n\n\n $filename = 'mypdf.pdf';\n\n $publicDirectory = \\Drupal::service('file_system')->realpath(\n file_default_scheme() . '://'\n );\n\n $filepath = $publicDirectory . '/' . $filename;\n\n // Write file to the desired path\n file_put_contents($filepath, $output);\n $save_file = true;\n\n return (new BinaryFileResponse(\n $filepath,\n 200,\n $this->getHeaders($filename, $save_file)\n ))->deleteFileAfterSend(true);\n }\n }", "title": "" }, { "docid": "0bcd3d96c836c08d81f365e64bede4c4", "score": "0.60296583", "text": "public function pdf()\n {\n\n $data = [\n 'title' => 'Data Pegawai',\n 'table' => $this->ajaxModel->findAll()\n ];\n $html = view('export/pdf', $data);\n\n $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n $pdf->SetCreator(PDF_CREATOR);\n $pdf->SetAuthor('Lukmanul Hakim');\n $pdf->SetTitle('Data Pegawai');\n $pdf->SetSubject('Data Pegawai');\n\n $pdf->setPrintHeader(false);\n $pdf->setPrintFooter(false);\n\n $pdf->AddPage();\n\n $pdf->writeHTML($html, true, false, true, false, '');\n\n $this->response->setContentType('application/pdf');\n\n $pdf->Output('DataPegawai.pdf', 'I');\n }", "title": "" }, { "docid": "eaeae9e144c60d94c51e2e3eac5c90a4", "score": "0.6023914", "text": "public function generatePDF()\n\n {\n $surat_masuk= SuratMasuk::all();\n $pdf = PDF::loadView('surat_masuk_pdf', ['surat_masuk' => $surat_masuk]);\n return $pdf->download('laporan-surat-masuk.pdf');\n }", "title": "" }, { "docid": "d2f02ef898a8aa0023f7bd4243e0497e", "score": "0.60165083", "text": "public function Process()\n\t{\n\n\n\t\t// create new PDF document\n#FIXME use config\n\n\t\t$pdf = new \\tcpdf(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n\n\n\n\t\t//set margins\n\t\t$pdf->SetMargins(0, 0, 0);\n\t\t$pdf->SetHeaderMargin(0);\n\t\t$pdf->SetFooterMargin(0);\n\n\n#FIXME should not be needed\n\t\trequire_once(K_PATH_MAIN . 'config/lang/eng.php');\n\t\tglobal $l;\n\t\t//set some language-dependent strings\n\t\t$pdf->setLanguageArray($l);\n\n\t\t// ---------------------------------------------------------\n\n\n\t\t/* example\n\n\t\t$strContent =\n\t\t\"<style>\n\t\t\t// defines the content box itself\n\t\t\t// font family and font size must be defined here too!\n\t\t\tbody {\n\t\t color: #000;\n\t\t font-family: dejavusans;\n\t\t font-size: 11pt;\n\t\t\t\tline-height: 120%;\n\t\t\t\ttop:220mm;\n\t\t\t\tleft:120mm;\n\t\t\t\twidth:70mm;\n\t\t\t\theight:40mm;\n\t\t\t}\n\t\t p {\n\t\t color: #000;\n\t\t font-family: dejavusans;\n\t\t font-size: 11pt;\n\t\t\t\tline-height: 120%;\n\t\t\t\tmargin:0 0 0.3em 0;\n\t\t }\n\t\t p.a {\n\t\t\t\tmargin:0 0 1em 0;\n\t\t }\n\t\t</style>\n\t\t<p class=\\\"a\\\"><b>Bitmotion GmbH</b></p>\n\t\t<p>René Fritz</p>\n\t\t<p>Immengarten 16-18<br />\n\t\t30177 Hannover</p>\n\t\t<p>Telefon: +49 (0)511/62 62 93-12<br />\n\t\tEmail: r.fritz@bitmotion.de</p>\";\n\n\t\t*/\n\n\n\n\n\t\t// create content for writeHTMLCell()\n\t\t$strContent =\n\t\t\"<style>\n\t\t\t{$this->objConfig->styles}\n\t\t</style>\n\t\t{$this->objConfig->html}\";\n\n\t\t// parse css and get some values from it\n\t\t$objCss = new \\Cmp3\\Css\\Css($this->objConfig->styles);\n\t\t$bodyStyles = $objCss->GetProperties('body');\n\n\t\t$pdf->SetFont($bodyStyles['font-family'], $bodyStyles['font-style'], $bodyStyles['font-size']);\n\n\t\t// add a page\n\t\t$pdf->AddPage();\n\n\n\n\t\t/*\n\t\t TCPDF::writeHTMLCell \t(\n\t\t \t\t$ \tw,\n\t\t \t\t$ \th,\n\t\t \t\t$ \tx,\n\t\t \t\t$ \ty,\n\t\t \t\t$ \thtml = '',\n\t\t \t\t$ \tborder = 0,\n\t\t \t\t$ \tln = 0,\n\t\t \t\t$ \tfill = false,\n\t\t \t\t$ \treseth = true,\n\t\t \t\t$ \talign = '',\n\t\t \t\t$ \tautopadding = true\n\t\t ) \t\t*/\n\n\t\t// write the first column\n\t\t$pdf->writeHTMLCell(intval($bodyStyles['width']), intval($bodyStyles['height']), intval($bodyStyles['left']), intval($bodyStyles['top']), $strContent, 0, 0, false, true, '', false);\n\n\t\tif ($this->objLogger) $this->objLogger->Info(__CLASS__ . ' Writing content at coordinates (x,y,w,h): ' . intval($body['style']['left']) .','. intval($body['style']['top']) .','. intval($body['width']) .','. intval($body['height']));\n\n\t\t// reset pointer to the last page\n\t\t$pdf->lastPage();\n\n\t\t// ---------------------------------------------------------\n\n\n\t\t$objSourceFile = \\Cmp3\\System\\Files::GetTemp(str_replace('\\\\', '_', __CLASS__), '.pdf', \\Cmp3\\Cmp3::$TempPath);\n\n\t\t//Close and output PDF document\n\t\t$pdf->Output($objSourceFile->AbsolutePath, 'F');\n\n\t\t$objSourceFile->Changed();\n\n\t\t$objProperties = array();\n\t\t$objProperties['Logger'] = $this->objLogger;\n\t\t$this->objContent = new \\Cmp3\\Content\\Content($objProperties);\n\t\t$this->objContent->SetData($objSourceFile, \\Cmp3\\Content\\ContentType::PDF);\n\n\t\t$this->blnIsProcessed = true;\n\n\t\tif (!$this->Processor) {\n\t\t\tif ($this->objLogger) $this->objLogger->Info(__CLASS__ . ' No processing defined for source');\n\t\t\treturn $this->objContent;\n\t\t}\n\n\t\t$this->ProcessContent($this->objContent);\n\n\t\treturn $this->objContent;\n\t}", "title": "" }, { "docid": "06f524400b23928889919b2dbd6d190e", "score": "0.6011165", "text": "public function pdfNelson() {\n //$url = $this->view('Pdf');\n \n //$html = $this->contents_curl($url);\n $html = \"\n <style>\n * {\n color:#000;\n }\n p {\n margin:0px;\n padding:0px;\n }\n .letraPeque{\n min-height: 40px; \n max-height: 40px; \n font-size: 13px; \n line-height: 80%;\n }\n </style>\n <div style='width: 490px; margin-top: 0px; border: 0px solid; margin-top: -7px;'>\n <p style='margin: 20px 0 -10px; text-align: right; font-weight: bold;'>465</p>\n <br />\n <br />\n <p style='margin-left: 400px;color: red;'>018061</p>\n <br />\n <br />\n <p style='margin-left: 110px; margin-top: -15px; '>04 de Marzo del 2021 al 12 de Marzo del 2021</p>\n <p style='margin-left: 125px; margin-top: 5px; '>Luz Florez</p>\n <p style='margin-left: 125px; margin-top: 0px; width: 215px; display: block; float: left;' class='letraPeque'>Call 39 D 68 J 53 Sur 2 Piso Bar: New York</p>\n <p style='margin-left: 30px; margin-top: 0px; width: 115px; display: block; float: left;' class='letraPeque'>30012345678 - 3101234567</p>\n <br />\n <br />\n <br />\n <div style='display: block; margin: 10px 0px 0px;'>\n <label style='margin-left: 30px;'></label>\n <label style='margin-left: 60px;'></label>\n <label style='margin-left: 60px;'></label>\n <label style='margin-left: 75px;'></label>\n <label style='margin-left: 75px;'></label>\n <label style='margin-left: 60px;'></label>\n </div>\n <p style='margin-left: 100px; display: block; float: left;'>$ 200.000</p>\n <br>\n <p style='margin-left: 100px; display: block; float: left;'>$ 20.000</p>\n <p style='margin-left: 220px; display: block; float: left;'>3</p>\n <br>\n <p style='margin-left: 100px; display: block; float: left;'>$ 140.000</p>\n <br>\n <br>\n <p style='margin-left: 30px; display: block; margin-top: 0px; width: auto; line-height: 100%;' class='letraPeque'>Cliente indica que quiere pagar $ 20.000 el día 04/03/2021.pasar ch deja la cuota hijo</p>\n </div>\";\n \n \n for ($i = 1; $i <= 100; $i++) {\n echo $html;\n }\n // // Instanciamos un objeto de la clase DOMPDF.\n // $pdf = new DOMPDF();\n \n // // Definimos el tamaño y orientación del papel que queremos.\n // $pdf->set_paper(\"A6\", \"landscape\");\n // //$pdf->set_paper(array(0,0,104,250));\n \n // // Cargamos el contenido HTML.\n // $pdf->load_html(utf8_decode($html));\n \n // // Renderizamos el documento PDF.\n // $pdf->render();\n \n // // Enviamos el fichero PDF al navegador.\n // $pdf->stream('reportePdf.pdf');\n }", "title": "" }, { "docid": "104950897031ca96448bf6d2b6b0ba4e", "score": "0.60055315", "text": "public function pdf(){\n\t \t\tif($this->session->userdata(\"loggedin\") == true || $this->session->userdata(\"adminLoggedin\") == true)\n\t \t\t$a = $this->abstracts->view_where($this->uri->segment(3), $this->session->userdata(\"conferenceID\"));\n\t \t\tif($a->num_rows() > 0){\n\t \t\t\t$res = $a->result();\n\t \t\t\t$content = json_decode($res[0]->abstractContent, true);\n\t \t\t\t$bursary = json_decode($res[0]->bursary, true);\n\t \t\t\tif($bursary['bursary_for'] == \"\"){\n\t \t\t\t\t$b_f = \"NIL\";\n\t \t\t\t}\n\t \t\t\telse{\n\t \t\t\t\t$b_f = $bursary['bursary_for'];\n\t \t\t\t}\n\t \t\t\tif($bursary['bursary_why'] == \"\"){\n\t \t\t\t\t$b_y = \"NIL\";\n\t \t\t\t}\n\t \t\t\telse{\n\t \t\t\t\t$b_y = $bursary['bursary_why'];\n\t \t\t\t}\n\t \t\t\t$abs_name = str_replace(\" \", \"_\", $res[0]->abstractTitle);\n\t \t\t\t$this->load->library('html2pdf');\n\t\t \t\t$this->html2pdf->folder(\"uploads/\");\n\t\t \t\t$this->html2pdf->filename($abs_name);\n\t\t \t\t$this->html2pdf->paper('a4', 'portrait');\n\t\t \t\t$this->html2pdf->html(\"<h2>\".$res[0]->abstractTitle.\"</h2>\n\t\t \t\t\t<p>By \".$res[0]->attendeeFirstName.\" \".$res[0]->attendeeLastName.\"</p><p>Authors: \".$res[0]->abstractAuthors.\"</p>\n\t\t \t\t\t<p><img src='\".base_url().\"uploads/\".$res[0]->abstractImageFolder.\"' width='99%'/></p>\n\t\t \t\t\t<p>What conservation problem or question does your talk/poster address?</p>\n\t\t \t\t\t<p>\".$content['aim'].\"</p>\n\t\t \t\t\t<p>What were the main research methods you used?</p>\n\t\t \t\t\t<p>\".$content['methods'].\"</p>\n\t\t \t\t\t<p>What are your most important results?</p>\n\t\t \t\t\t<p>\".$content['results'].\"</p>\n\t\t \t\t\t<p>What is the relevance of your results to conservation?</p>\n\t\t \t\t\t<p>\".$content['conservation'].\"</p>\n\t\t \t\t\t<hr>\n\t\t \t\t\t<h4>Bursary(if any)</h4>\n\t\t \t\t\t<p>For: \".$b_f.\"</p>\n\t\t \t\t\t<p>Reason: \".$b_y.\"</p>\n\t\t \t\t\t\");\n\t\t \t\t$this->html2pdf->create('download');\n\t \t\t}\n\t \t\telse{\n\t \t\t\tshow_404();\t\n\t \t\t}\n\t \t}", "title": "" }, { "docid": "4d62b9906fa5ba0196e718f19afeea1c", "score": "0.5994822", "text": "public function output()\r\n\t{\r\n\t\t$this->pdf->WriteHTML($this->template);\r\n\t\t$this->pdf->Output();\r\n\t}", "title": "" }, { "docid": "5f621825e102ebd44ce7c751fa5ace51", "score": "0.59856355", "text": "function createDoc($html,$file,$download=false)\r\n\t\t{\r\n\t\t\t//echo 'createDoc Entered.<br>';\r\n\t\t\tif(@is_file($html))\r\n\t\t\t\t$html=@file_get_contents($html);\r\n\t\t\t\r\n\t\t\t$this->_parseHtml($html);\r\n\t\t\t$this->setDocFileName($file);\r\n\t\t\t$doc=$this->getHeader();\r\n\t\t\t$doc.=$this->htmlBody;\r\n\t\t\t$doc.=$this->getFotter();\r\n\t\t\t\t\t\t\t\r\n\t\t\tif($download)\r\n\t\t\t{\r\n\t\t\t\t//$this->write_file($this->docFile,$doc);\r\n\t\t\t\t@header(\"Cache-Control: \");// leave blank to avoid IE errors\r\n\t\t\t\t@header(\"Pragma: \");// leave blank to avoid IE errors\r\n\t\t\t\t@header(\"Content-type: application/octet-stream\");\r\n\t\t\t\t@header(\"Content-Disposition: attachment; filename=\\\"$this->docFile\\\"\");\r\n\t\t\t\techo $doc;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\treturn $this->write_file($this->docFile,$doc);\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "1d3cd9d4ab95505e0d7e6c5a83b98561", "score": "0.59824854", "text": "public function generatePDF()\n {\n $report_type = \"UNKNOWN\";\n\n switch ($this->report_type){\n case ReportType::DAY:\n $report_type = \"Giornaliero\";\n break;\n case ReportType::WEEK:\n $report_type = \"Settimanale\";\n break;\n case ReportType::MONTH:\n $report_type = \"Mensile\";\n break;\n case ReportType::YEAR:\n $report_type = \"Annuale\";\n break;\n case ReportType::ALL:\n $report_type = \"Tutto\";\n break;\n }\n\n // Create PDF object with custom header\n $pdf = new PDF(\"Report aula riunioni\");\n // Add page to PDF\n $pdf->AddPage();\n\n $date = new DateTime();\n $pdf->SetTitle(\"Report CPTMRS \" . $date->format(\"d/m/Y H:i\"));\n\n // Add info related to the report\n $pdf->SetFont('Arial','',18);\n $pdf->Cell(100, 5, \"Data: \" . $date->format(\"d/m/Y\"));\n $pdf->Ln(10);\n $pdf->Cell(100, 5, \"Generato da: \" . $_SESSION[\"user\"]->getUsername());\n $pdf->Ln(10);\n $pdf->Cell(100, 5, \"Tipo: \" . $report_type);\n $pdf->Ln(30);\n\n // Create Table\n $pdf->Table(DB::get(),$this->_generate_query());\n\n // Show output\n $pdf->Output(\"I\", $date->format(\"Y_m_d_H_i\") . \"_Report_CPTMRS\");\n }", "title": "" }, { "docid": "cd6515b2ea90a799b2f8cda278201f4c", "score": "0.59814614", "text": "function generatePDF() {\n // TODO: you want a cache and not generate the pdf every time someone\n // is pressing a button\n $meeting = 'meeting.pdf';\n\n /*\n * because we are using pstricks to generate the seating order,\n * we need to generate DVI->PS->PDF. Using pdflatex would just\n * scramble the output\n */\n shell_exec(\"latex -interaction=batchmode meeting.tex\");\n shell_exec(\"dvips -P pdf meeting.dvi\");\n shell_exec(\"ps2pdf meeting.ps\");\n // cleanup\n shell_exec(\"rm meeting.aux meeting.dvi meeting.log meeting.ps attendees.tex\");\n // show the generated PDF File and exit\n if (file_exists($meeting)) {\n header(\"Content-Type: application/pdf\");\n header('Content-Length: ' . filesize($meeting));\n header(\"Content-Disposition:inline;filename=$meeting\");\n readfile($meeting);\n exit();\n }\n else {\n report(\"PDF does not exist after LaTeX run\");\n exit (\"Fatal Error: PDF could not be created. Check your LaTeX System.\");\n }\n}", "title": "" }, { "docid": "0b696027c5308f83b3e5cc932dda9252", "score": "0.5968978", "text": "public function pdfPage($burn_project_id)\n {\n\n $permissions = checkFunctionPermissionsAll($_SESSION['user']['id'], array('user','user_district','user_agency'));\n $burn_permissions = $this->checkBurnPermissions($_SESSION['user']['id'], $burn_project_id, $permissions);\n\n if ($burn_permissions['allow']) {\n // Get the daily burn.\n $burn_project = $this->get($burn_project_id);\n $district_id = $burn_project['district_id'];\n\n // Static fields.\n $project_name = $burn_project['project_name'];\n $project_number = $burn_project['project_number'];\n $contact_name = $burn_project['manager_name'];\n $contact_number = $burn_project['manager_number'];\n\n // Build the map.\n $location = str_replace(array('(',')',' '), '', $burn_project['location']);\n $color = str_replace('#', '0x', $this->retrieveStatus($burn_project['status_id'])['color']);\n $label = substr($this->retrieveStatus($burn_project['status_id'])['title'], 0, 1);\n $static_map = \"http://maps.googleapis.com/maps/api/staticmap?size=640x360&zoom=16&center=$location&markers=color:$color%7Clabel:$label%7C$location\";\n\n // Get HTML blocks.\n $info = $this->tablifyFields($burn_project, 'project_info', true);\n $unit = $this->tablifyFields($burn_project, 'detail_info', true);\n $fuels = $this->tablifyFuels($burn_project_id, true);\n $contacts = $this->getContacts($burn_project_id);\n $reviews = $this->getReviews($burn_project_id, true);\n\n $html = \"\n <table style=\\\"width: 100%; vertical-align: top; font-size: 9pt;\\\">\n <col width=\\\"50%\\\">\n <col width=\\\"49%\\\">\n <tr style=\\\"border: 0.15em solid black;\\\">\n <td style=\\\"width: 50%\\\">Form 2: Burn Project</td>\n <td style=\\\"width: 50%\\\"><strong>$project_number</strong> - $project_name</td>\n </tr>\n <tr style=\\\"border: 0.15em solid black; padding: 0.3em;\\\">\n <td style=\\\"width: 50%\\\">\n $info\n <img width=\\\"28%\\\" src=\\\"$static_map\\\"/>\n </td>\n <td style=\\\"width: 50%\\\">\n $unit\n </td>\n </tr>\n </table>\n <table style=\\\"width: 100%; vertical-align: top; font-size: 9pt;\\\">\n <tr style=\\\"\\\">\n <td style=\\\"width: 99%\\\">\n $fuels\n </td>\n </tr>\n </table>\n <pagebreak />\n <div class=\\\"col-sm-4\\\">\n $contacts\n $reviews\n </div>\n </div>\";\n } else {\n $html = \"<div>\n <h1 class=\\\"\\\" style=\\\"color: #bbb\\\">You do not have permission to view this PDF.</h1>\n </div>\";\n }\n\n return $html;\n }", "title": "" }, { "docid": "e5becbccedbaaf1fdd9f2082c8174fdf", "score": "0.5965555", "text": "public function pdfReport($value)\n {\n\n /** page settings */\n $mpdf = new \\Mpdf\\Mpdf([\n 'mode' => 'utf-8',\n 'format' => 'A4',\n 'margin_left' => 15,\n 'margin_right' => 15,\n 'margin_top' => 15,\n 'margin_bottom' => 10,\n 'margin_header' => 5,\n 'margin_footer' => 5\n ]);\n $mpdf->SetDisplayMode('fullpage');\n\n /** set header and footer */\n $mpdf->SetHTMLHeader($this->getHeader());\n $mpdf->SetHTMLFooter($this->getFooter());\n\n /*\n * Set final content \n */\n // load a stylesheet\n $stylesheet = file_get_contents('./css/pdf.css');\n $mpdf->WriteHTML($stylesheet, 1); // The parameter 1 tells that this is css/style only and no body/html/text\n\n // create final PDF content and file name\n $mpdf->WriteHTML($this->getContent($value), 2);\n $mpdf->Output('Filename_'. date(\"Ymd_His\", time()) .'.pdf','I');\n\n }", "title": "" }, { "docid": "434598b39273ee678b006b96cec01ea6", "score": "0.59560895", "text": "public function pdf()\n {\n $data = $this->getDataForPrint();\n $pdf = PDF::loadView($this->printPreview, compact('data'));\n return $pdf->download($this->filename() . '.pdf');\n }", "title": "" }, { "docid": "c03bcb76ab6f34abece37b7a6678be84", "score": "0.59060436", "text": "public function actionPdf()\n {\n $html2pdf = Yii::app()->ePdf->HTML2PDF();\n\n $html2pdf->WriteHTML($this->renderPartial('attentancepdf', array('model'=>$this->loadModel($_REQUEST['id'])), true));\n $html2pdf->Output();\n \n ////////////////////////////////////////////////////////////////////////////////////\n\t}", "title": "" }, { "docid": "c92f90a53c24ee7feff27622585fdf65", "score": "0.5891281", "text": "public function exportToPdf($title, $html, $options = [])\n {\n $pdf = new \\Dompdf\\Dompdf(['isHtml5ParserEnabled' => true, 'isPhpEnabled' => true]);\n\n if(empty($html)) {\n $options['data']['pdf'] = $pdf;\n $pdf->loadHtml($this->load->view($options['view'], $options['data'], true));\n } else {\n $pdf->loadHtml($html);\n }\n\n if (key_exists('paper', $options) && !empty($options['paper'])) {\n if (key_exists('orientation', $options) && !empty($options['orientation'])) {\n $pdf->setPaper($options['paper'], $options['orientation']);\n } else {\n $pdf->setPaper($options['paper'], 'portrait');\n }\n } else {\n $pdf->setPaper('A4', 'portrait');\n }\n\n $buffer = get_if_exist($options, 'buffer', false);\n\n $pdf->render();\n\n if ($buffer) {\n return $pdf->output();\n }\n\n $pdf->stream($title . \".pdf\", [\"Attachment\" => false]);\n }", "title": "" }, { "docid": "02050f70904dd66b44cfd26e6b1e7910", "score": "0.58860725", "text": "function HTML_print_start() {\n print \"\n<!DOCTYPE html>\n<html lang=\\\"en\\\">\n <head>\n <meta charset=\\\"utf-8\\\">\n <meta http-equiv=\\\"X-UA-Compatible\\\" content=\\\"IE=edge\\\">\n <meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1\\\">\n <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->\n \n <title>XeTeX for Booktype PDF</title>\n\n <!-- Latest compiled and minified CSS -->\n <link rel=\\\"stylesheet\\\" href=\\\"_assets/bootstrap/css/bootstrap3.3.6.min.css\\\">\n \n <!-- Latest compiled and minified JavaScript -->\n <script src=\\\"_assets/js/jquery-1.11.3.min.js\\\"></script>\n <script src=\\\"_assets/bootstrap/js/bootstrap3.3.6.min.js\\\"></script>\n \n <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->\n <!--[if lt IE 9]>\n <script src=\\\"_assets/bootstrap/js/html5shiv3.7.2.min.js\\\"></script>\n <script src=\\\"_assets/bootstrap/js/respond1.4.2.min.js\\\"></script>\n <![endif]-->\n </head>\n <body>\n <div class=\\\"container\\\">\n <div class=\\\"row\\\">\n <div class=\\\"col-lg-8\\\">\n \";\n}", "title": "" }, { "docid": "436635ce793786a13567208b2f5830ee", "score": "0.5876929", "text": "public function generatePDF($id)\n {\n $rentals=Rental::find($id);\n $data = [\n 'name' => $rentals->customerName,\n 'start' => $rentals->start,\n 'destination' => $rentals->destination,\n 'dateTaken' => $rentals->dateTaken,\n 'dueDate' => $rentals->dueDate,\n 'distance' => $rentals->distance,\n 'price' => $rentals->price,\n ];\n \n $pdf = PDF::loadView('myPDF', $data);\n \n return $pdf->download('zineX.pdf');\n }", "title": "" }, { "docid": "8dc58fc778cd87a47a708ece7573471d", "score": "0.586485", "text": "function htmltopdf($html, $option = array())\n{\n $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n\n // set document information\n $pdf->SetCreator(PDF_CREATOR);\n// $pdf->SetAuthor('通州区');\n// $pdf->SetTitle('通州区申报');\n// $pdf->SetSubject('通州区申报');\n// $pdf->SetKeywords('消费券');\n\n // set default header data\n //$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 038', PDF_HEADER_STRING);\n // set header and footer fonts\n $pdf->setPrintHeader(false);\n $pdf->setPrintFooter(false);\n $pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));\n $pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));\n\n // $pdf->SetHeaderData('1.png', 30, 'quliantrip.com', '', array(0, 64, 255), array(0, 64, 128));\n //\n // $pdf->setFooterData('2.png', array(0, 64, 0), array(0, 64, 128));\n\n // set default monospaced font\n $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\n\n // set margins\n// $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);\n // $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\n // $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\n\n // set auto page breaks\n $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\n\n // set image scale factor\n $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\n\n // ---------------------------------------------------------\n // add a page\n $pdf->AddPage();\n $pdf->SetFont('droidsansfallback', '', 10);\n $pdf->writeHTML($html);\n\n $pdf->Output('download_' . time() . '.pdf', 'I');\n}", "title": "" }, { "docid": "8dc58fc778cd87a47a708ece7573471d", "score": "0.586485", "text": "function htmltopdf($html, $option = array())\n{\n $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n\n // set document information\n $pdf->SetCreator(PDF_CREATOR);\n// $pdf->SetAuthor('通州区');\n// $pdf->SetTitle('通州区申报');\n// $pdf->SetSubject('通州区申报');\n// $pdf->SetKeywords('消费券');\n\n // set default header data\n //$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 038', PDF_HEADER_STRING);\n // set header and footer fonts\n $pdf->setPrintHeader(false);\n $pdf->setPrintFooter(false);\n $pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));\n $pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));\n\n // $pdf->SetHeaderData('1.png', 30, 'quliantrip.com', '', array(0, 64, 255), array(0, 64, 128));\n //\n // $pdf->setFooterData('2.png', array(0, 64, 0), array(0, 64, 128));\n\n // set default monospaced font\n $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\n\n // set margins\n// $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);\n // $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\n // $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\n\n // set auto page breaks\n $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\n\n // set image scale factor\n $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\n\n // ---------------------------------------------------------\n // add a page\n $pdf->AddPage();\n $pdf->SetFont('droidsansfallback', '', 10);\n $pdf->writeHTML($html);\n\n $pdf->Output('download_' . time() . '.pdf', 'I');\n}", "title": "" }, { "docid": "09a93097f27d6f1d24cf6b9d02137391", "score": "0.586297", "text": "public function export_report_all_format($file_type, $filename, $html)\n { \n $date=date('d/M/Y_H:i:s ');\n \n if($file_type == 'pdf')\n {\n \n App::import('Vendor', 'dompdf', array('file' => 'dompdf' . DS . 'dompdf_config.inc.php'));\n $this->dompdf = new DOMPDF(); \n $papersize = \"legal\";\n $orientation = 'landscape'; \n $this->dompdf->load_html($html);\n $this->dompdf->set_paper($papersize, $orientation); \n $this->dompdf->render();\n $this->dompdf->stream(\"$filename.pdf\");\n $this->dompdf->output();\n die();\n \n } \n else if($file_type == 'xls')\n { \n $file = $filename.\".xls\";\n header('Content-Type: text/html');\n header(\"Content-type: application/x-msexcel\"); //tried adding charset='utf-8' into header\n header(\"Content-Disposition: attachment; filename=$file\");\n echo $html;\n \n }\n else if($file_type == 'doc')\n { \n $file = $filename.\".doc\";\n header(\"Content-type: application/vnd.ms-word\");\n header(\"Content-Disposition: attachment;Filename=Orders.doc\");\n echo $html;\n \n }\n\t\t\n }", "title": "" }, { "docid": "7f8af3f0d46349bc358876e24b47c9db", "score": "0.58532816", "text": "public function convertHtml(string $html, ?string $path = null): File\n {\n $path ??= self::getRandomPath();\n touch($path);\n\n $this->log->debug(sprintf('Generated a PDF file at %s from this HTML:%s%s', $path, PHP_EOL, $html));\n\n return new File($path);\n }", "title": "" }, { "docid": "e15033478c9579d5f565b67fb0c88b8c", "score": "0.5848362", "text": "public function pdfHelp()\n {\n //$dompdf->load_html( file_get_contents( 'http://erm.local/public' ) );\n //$dompdf->render();\n //$dompdf->stream(\"mi_archivo.pdf\");\n\n \n $pdf = PDF::loadView('help');\n return $pdf->download('invoice.pdf');\n //pdf = PDF::loadView('help');\n //return $pdf->download('pruebapdf.pdf');\n }", "title": "" }, { "docid": "607bf406682528005b9ef8eab401123b", "score": "0.5844756", "text": "function createPDF($content, $paper, $orientation, $filename){\n\t\t$dompdf = new DOMPDF();\n\t\t$dompdf->load_html($content);\n\t\t$dompdf->set_paper($paper,$orientation);\n\t\t$dompdf->render();\n\t\t$dompdf->stream($filename,array('Attachment' => 0));\t\n\t}", "title": "" }, { "docid": "fbe2d627686a6e1d66da6c53c8b64626", "score": "0.5833404", "text": "public function pdf_holiday() {\n\t\t$this->load->view('applications/pdf_holiday');\n\n\t\t// Get output html\n\t\t$html = $this->output->get_output();\n\t\t\n\t\t// Load library\n \n\t\t$this->load->library('dompdf_gen');\n\n\t\t// Convert to PDF\n\t\t$this->dompdf->load_html($html);\n\t\t$this->dompdf->render();\n\n\t\t$this->dompdf->stream(\"Holidays.pdf\");\n\t}", "title": "" }, { "docid": "5617951b62af810edc237e09ec7c53b8", "score": "0.5816788", "text": "function getHtmlToPDF($products) {\n $sum = 0;\n $html = '<!DOCTYPE html>';\n $html .= '<html>';\n $html .= '<head>';\n $html .= '<script src=\"https://code.jquery.com/jquery-3.4.1.slim.min.js\" integrity=\"sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n\" crossorigin=\"anonymous\"></script>';\n $html .= '<script src=\"https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js\" integrity=\"sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo\" crossorigin=\"anonymous\"></script>';\n $html .= '<script src=\"https://kit.fontawesome.com/788922d05d.js\" crossorigin=\"anonymous\"></script>';\n $html .= '<link rel=\"stylesheet\" href=\"../lib/bootstrap/css/bootstrap.min.css\">';\n $html .= '</head>';\n $html .= '<body>';\n $html .= '<h1 style=\"font-size: 50px\">';\n $html .= '<img src=\"../assets/img/logo_nba.png\" style=\"margin-right:20px\" width=\"60\" height=\"60\" class=\"d-inline-block align-top\" alt=\"\">T-shop';\n $html .= '</h1>';\n $html .= '<h6 style=\"font-size: 20px\" class=\"mt-5 ml-3\">';\n $html .= 'Factura de compra realizada el ' . $date = date('d/m/Y H:i');\n $html .= '</h6>';\n $html .= '<table class=\"table container mt-2\">';\n $html .= '<thead class=\"thead-dark\">';\n $html .= '<tr style:\"width: 100%; height:50px;\">';\n $html .= '<th scope=\"col\" style=\"text-align:center\">Producto</th>';\n $html .= '<th scope=\"col\" style=\"text-align:center\">Cantidad</th>';\n $html .= '<th scope=\"col\" style=\"text-align:center\">Precio unitario</th>';\n $html .= '</tr>';\n $html .= '</thead>';\n $html .= '<tbody>';\n foreach ($products as $product) :\n $sum += ($product->productPrice * $product->quantity);\n $html .='<tr style:\"height:50px;\">';\n $html .= '<td style=\"text-align:center\">' . $product->productName . '</td>';\n $html .= '<td style=\"text-align:center\">' . $product->quantity . '</td>';\n $html .= '<td style=\"text-align:center\">' . $product->productPrice . '&euro;</td>';\n $html .='</tr>';\n endforeach;\n $html .= '<tr>';\n $html .= '<td></td>';\n $html .= '<td></td>';\n $html .= '<td style=\"text-align:center;\"><strong>Precio total: ' . $sum . '&euro;</strong></td>';\n $html .= '</tr>';\n $html .= '</tbody>';\n $html .= '</table>';\n $html .= '</body>';\n $html .= '</html>';\n\n return $html;\n}", "title": "" }, { "docid": "d4e28c0897a7def2ca5779b0be95f5a7", "score": "0.5811046", "text": "function returnPDFBasics()\n{\n $pdf = new FPDI();\n $pageCount = $pdf->setSourceFile('template.pdf');\n $tplIdx = $pdf->importPage(1);\n $pdf->AddFont('Roboto-Regular', '', 'Roboto-Regular.php');\n $pdf->AddPage();\n $pdf->SetFont('Roboto-Regular', '', 10);\n $pdf->useTemplate($tplIdx, 0, 0, 210, 297);\n\n return $pdf;\n}", "title": "" }, { "docid": "b5dee9a96a076a87963d70e8c5fd0290", "score": "0.5809781", "text": "public function cetaklaporanaktehari(){\n ob_start();\n $data=array(\n \"d\"=>$this->model->getperhari(),\n \"tabel\"=>\"cetak_akte_perhari.php\",\n \"judul_lap\"=>\"LAPORAN PENDAFTARAN AKTE PERHARI\",\n );\n $this->load->view('layout_cetak_fix.php', $data);\n $html = ob_get_contents();\n ob_end_clean(); \n require_once('./assets/html2pdf/html2pdf.class.php');\n $pdf = new HTML2PDF('P','A4','en');\n $pdf->WriteHTML($html);\n $pdf->Output('Laporan Pendaftaran Akte Perhari.pdf', 'I');\n }", "title": "" }, { "docid": "f4db9f28507bf46a3d4545e1511c2cb5", "score": "0.58074194", "text": "public function pdf($id)\n {\n $contactInfo = Contact::whereLanguage(App::getLocale())->get()->first();\n $order = Order::find($id);\n $logo = Logo::whereType('proforma')->whereLanguage(locale())->get()->first();\n if ($order != null)\n {\n $headerHtml = view()->make('admin.partials.orders.proforma.header', compact('logo','order', 'contactInfo'))->render();\n $footerHtml = view()->make('admin.partials.orders.proforma.footer', compact('logo','order', 'contactInfo'))->render();\n $pdf = PDF::loadView('admin.layouts.proforma', compact('logo','order', 'contactInfo'))\n ->setPaper('a4')\n ->setOption('margin-top', '30mm')\n ->setOption('margin-bottom', '30mm')\n ->setOption('header-html', $headerHtml)\n ->setOption('footer-html', $footerHtml);\n return $pdf->download(trans('admin/orders.proforma').'-'.$order->id.'.pdf');\n }\n }", "title": "" }, { "docid": "69f8f0b1e9500663f3ee8e53b66912bf", "score": "0.5804571", "text": "protected function createPdf($strContent = '',$fileName='')\n\t{\n\t\t// TCPDF configuration\n\t\t$l['a_meta_dir'] = 'ltr';\n\t\t$l['a_meta_charset'] = $GLOBALS['TL_CONFIG']['characterSet'];\n\t\t$l['a_meta_language'] = $GLOBALS['TL_LANGUAGE'];\n\t\t$l['w_page'] = 'page';\n\n\t\t// Include library\n\t\trequire_once TL_ROOT . '/system/config/tcpdf.php';\n\n\t\t// Create new PDF document\n\t\t$pdf = new \\TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true);\n\n\t\tif(!$fileName) $fileName = date('Ymdhis').'-Stockkarte';\n\n\t\t// Set document information\n\t\t$pdf->SetCreator(PDF_CREATOR);\n\t\t$pdf->SetAuthor(PDF_AUTHOR);\n\t\t$pdf->SetTitle($fileName);\n\t\t$pdf->SetSubject($fileName);\n\t\t$pdf->SetKeywords($fileName);\n\n\t\t// Prevent font subsetting (huge speed improvement)\n\t\t$pdf->setFontSubsetting(false);\n\n\t\t// Remove default header/footer\n\t\t$pdf->setPrintHeader(false);\n\t\t$pdf->setPrintFooter(false);\n\n\t\t// Set margins\n\t\t$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);\n\n\t\t// Set auto page breaks\n\t\t$pdf->SetAutoPageBreak(true, PDF_MARGIN_BOTTOM);\n\n\t\t// Set image scale factor\n\t\t$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\n\n\t\t// Set some language-dependent strings\n\t\t$pdf->setLanguageArray($l);\n\n\t\t// Initialize document and add a page\n\t\t$pdf->AddPage();\n\n\t\t// Set font\n\t\t$pdf->SetFont(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN);\n\n\t\t// Write the HTML content\n\t\t$pdf->writeHTML($strContent, true, 0, true, 0);\n\n\t\t// Close and output PDF document\n\t\t$pdf->lastPage();\n\t\t$pdf->Output(standardize(ampersand($fileName, false)) . '.pdf', 'D');\n\n\t\t// Stop script execution\n\t\texit;\n\t}", "title": "" }, { "docid": "a4baa6225ee63ddb787ca8680cd24dd6", "score": "0.5774502", "text": "public function barcode_pdf(){\n $this->load->helper('dompdf');\n\n $view_file = $this->load->view('admin/product/barcode_pdf','', true);\n $file_name = pdf_create($view_file, 'Barcode');\n echo $file_name;\n }", "title": "" }, { "docid": "445f6e777779f7b26e6391996134dd35", "score": "0.57633007", "text": "public function printPDF()\n {\n\n try {\n $data = [\n 'title' => 'First PDF for Medium',\n 'heading' => 'Hello from 99Points.info',\n 'content' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.'\n ];\n\n $pdf = PDF::loadView('pdf_view', $data);\n return $pdf->download('medium.pdf');\n } catch (\\Exception $e) {\n return response()->json(['success' => false, 'error' => ['code' => 500, 'message' => $e->getMessage()]], 400);\n }\n\n }", "title": "" }, { "docid": "7df1acf1ee89f226c7790928606b5e7d", "score": "0.5758068", "text": "public function generatePDF($id)\n {\n $recipe = Recipe::findOrFail($id);\n if (\\Lang::getLocale() == 'en') {\n $data = ['title_en' => $recipe->title_en,\n ];\n $pdf = PDF::loadView('pdf', $data);\n \n return $pdf->download('Edbakh.pdf');\n } else {\n # code...\n }\n \n \n }", "title": "" }, { "docid": "bbd75ecd36aa5a87f3232b18a10fc53b", "score": "0.57359993", "text": "public function generatePdf(array $urls, $fileName) {\n\n\t\t$wkhtmltopdf = CommandUtility::getCommand($this->webkitExecutable);\n\n\t\tif (!$wkhtmltopdf) {\n\t\t\tthrow new \\RuntimeException(sprintf('The path to %s could not be determined. Please check your path configuration.', $this->webkitExecutable), 1438182639);\n\t\t}\n\n\t\t$scriptCall = $wkhtmltopdf . ' ' .\n\t\t\t$this->buildScriptOptions() . ' ' .\n\t\t\t$this->getUrlsParameter($urls) . ' ' .\n\t\t\tescapeshellarg($fileName);\n\n\t\t$this->dispatchPdfGeneration($scriptCall);\n\t}", "title": "" }, { "docid": "c95663886da56a02d944a7066db42cc5", "score": "0.57335967", "text": "public function generatePDF($id){\n $conv = $this->convenzioneRepo->findById($id)->toArray();\n $pdf = $this->pdfFromView($conv);\n \n return $pdf->download(); \n }", "title": "" }, { "docid": "70ea43b2a0e95c381c42347b291db933", "score": "0.5732931", "text": "function cetakpemesanan()\n {\n\n $pdf = new FPDF('p', 'mm', 'A4');\n // membuat halaman baru\n // setting jenis font yang akan digunakan\n $html = $this->load->view('admin/tampil_pemesanan');\n $pdf->AddPage();\n $pdf->WriteHTML($html);\n $pdf->Output();\n }", "title": "" }, { "docid": "b079e2ebea71df91d5f875b54cda3655", "score": "0.5729152", "text": "public function test()\n\t\t{\n\t\t$this->load->view('test');\n\t\t// Get output html\n\t\t$html = $this->output->get_output();\n\t\t\n\t\t// Load library\n\t\t$this->load->library('dompdf_gen');\n\t\t\n\t\t// Convert to PDF\n\t\t$this->dompdf->load_html($html);\n\t\t$this->dompdf->render();\n\t\t$data['Attachment'] = FALSE;\n\t\t$this->dompdf->stream(\"ShareFoodBill.pdf\",$data);\n\t\t\n\t\t}", "title": "" }, { "docid": "872ceefb822347f0b8aaaefbdb9c669c", "score": "0.57287896", "text": "function crearPDF($fecha_actual){\n\t\t// instantiate and use the dompdf class\n\t\t$dompdf = new Dompdf();\n\t\t$dompdf->loadHtml(ob_get_clean());\n\n\t\t// (Optional) Setup the paper size and orientation\n\t\t$dompdf->setPaper('A4', 'portrait');\n\n\t\t// Render the HTML as PDF\n\t\t$dompdf->render();\n\n\t\t// Output the generated PDF to Browser\n\t\t//$dompdf->stream(); //LINEA QUE PERMITE DESCARGAR EL PDF GENERADO\n\n\t\tob_end_flush();\n\n\t\t$file_to_save = \"../reportes/reporte_\".$fecha_actual.\".pdf\";\n\t\tmkdir(dirname($file_to_save), 0777, true); //esta linea es para crear el directorio si no existe\n\t\tfile_put_contents($file_to_save, $dompdf->output());\n\t\t/*========================================================================\n\t\t* VAMOS A ENVIAR EL REPORTE POR CORREO\n\t\t*========================================================================*/\n\t\tenviarReporteCorreo($fecha_actual);\n\t}", "title": "" }, { "docid": "9bf1c495ee27b04737b7f1297ef1b725", "score": "0.5726017", "text": "public function actionPdfGenerate($allProposals, $discussionDetail) {\n try {\n $pdf = Yii::createComponent('application.extensions.tcpdf.tcpdf',\n 'P', 'mm', 'A4', true, 'UTF-8', false);\n $pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));\n $pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));\n $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\n $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);\n $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\n $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\n $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\n $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\n $pdf->SetPrintHeader(false);\n $pdf->SetPrintFooter(false);\n if (@file_exists(dirname(__FILE__) . '/lang/eng.php')) {\n require_once(dirname(__FILE__) . '/lang/eng.php');\n $pdf->setLanguageArray($l);\n }\n $pdf->setFontSubsetting(true);\n $pdf->SetFont('helvetica', '', 10, '', true);\n $pdf->AddPage();\n\n $headings = array(\n Yii::t('discussion', 'Discussion Title'),\n Yii::t('discussion', 'Proposal Title'),\n Yii::t('discussion', 'Proposal Summary'),\n Yii::t('discussion', 'Description'),\n Yii::t('discussion', 'Author'),\n Yii::t('discussion', 'Creation Date'),\n Yii::t('discussion', 'Status'),\n Yii::t('discussion', 'Vote on triangle'),\n Yii::t('discussion', 'Number of Opinions'),\n Yii::t('discussion', 'Number of Links')\n );\n\n $allProposalsForSingleDiscussion = $this->createDataForExport($allProposals,\n $discussionDetail);\n $html = $this->renderPartial('//admin/pdfReport',\n array(\n 'allProposals' => $allProposalsForSingleDiscussion,\n 'headings' => $headings\n ), true);\n $pdf->writeHTMLCell(0, 0, '', '', $html, 0, 1, 0, true, '', true);\n ob_get_clean();\n $pdf->Output('report_' . date(\"Ymd\") . '.pdf', 'D');\n exit();\n } catch(Exception $exception) {\n Yii::log('Error in PDF Generation.', ERROR, $exception->getMessage());\n }\n }", "title": "" }, { "docid": "c8a20baaf390818607c5bb4e3f056c34", "score": "0.5719066", "text": "public function export_pdf()\n {\n $this->force_login();\n\n $this->load->library('ems/pdf_content');\n $this->pdf_content->output_full_content_pdf();\n }", "title": "" }, { "docid": "a069c6a485694a37453c1358a212b424", "score": "0.5718646", "text": "public function actionPdf($id)\n {\n $project = $this->findModel($id);\n $mpdf = new \\Mpdf\\Mpdf(['tempDir' => Yii::getAlias('@runtime/mpdf')]); \n \n $html = $this->renderPartial('pdf', ['project' => $project]);\n $mpdf->WriteHTML($html); \n $mpdf->Output($project->name, \\Mpdf\\Output\\Destination::DOWNLOAD); // Output a PDF file directly to the browser\n \n }", "title": "" }, { "docid": "39af88971126fcb465605b0dc70399b2", "score": "0.57151866", "text": "public function index()\n {\n //si no existen las creamos y damos permisos\n $this->createFolder();\n \n //importante el slash del final o no funcionará correctamente\n $this->html2pdf->folder('./files/pdfs/');\n \n //establecemos el nombre del archivo\n $this->html2pdf->filename('Materias.pdf');\n \n //establecemos el tipo de papel\n $this->html2pdf->paper('a4', 'portrait');\n \n //datos que queremos enviar a la vista, lo mismo de siempre\n $data = array(\n \n 'materia' => $this->mnMaterias->consultarmateriasf(),\n );\n \n //hacemos que coja la vista como datos a imprimir\n //importante utf8_decode para mostrar bien las tildes, ñ y demás\n $this->html2pdf->html(utf8_decode($this->load->view('Frontend/pdf', $data, true)));\n \n //si el pdf se guarda correctamente lo mostramos en pantalla\n if($this->html2pdf->create('save')) \n {\n $this->show();\n }\n }", "title": "" }, { "docid": "57da851239826c111fd431831cccddd8", "score": "0.5708151", "text": "public function pdf($id)\n {\n $event = $this->events->find($id);\n\n $template = 'events.' . $event->template . '.pdf';\n\n if (!View::exists('events.' . $event->template . '.pdf')) {\n $template = 'events.default.pdf';\n }\n\n if ($event->language == 'en') {\n App::setLocale('en');\n }\n\n $mpdf = new \\mPDF();\n $mpdf->WriteHTML(view($template, [\n 'event' => $event,\n 'sections' => $event->getSectionsList(),\n 'images' => $event->getImagesList(),\n 'copyright' => Auth::user()->copyright,\n 'total' => $event->weight_person ? $event->getTotal(true) : $event->getTotal()\n ]));\n $mpdf->Output($event->name . '.pdf', 'D');\n }", "title": "" }, { "docid": "e437b27ef8fb8d2fbc3f2f5ea459ad73", "score": "0.57004875", "text": "function generate_pdf($document, $url, $action, $paperSetting=array('size'=>'A4','orientation'=>'portrait'))\n{\n\t# get the external library that generates the PDF\n\trequire_once(HOME_URL.\"external_libraries/dompdf/dompdf_config.inc.php\");\n\n\t# Strip slashes if this PHP version supports get_magic_quotes\n\t$document = get_magic_quotes_gpc()? stripslashes($document): $document;\n\t\t\n\t$dompdf = new DOMPDF();\n\t$dompdf->load_html($document);\n\t$dompdf->set_paper($paperSetting['size'], $paperSetting['orientation']);\n\t$dompdf->render();\n\t\n\t# Store the entire PDF as a string in $pdf\n\t$pdf = $dompdf->output();\n\t# Write $pdf to disk\n\tfile_put_contents($url, $pdf);\n\n\t# If the user wants to download the file, then stream it; otherwise display it in the browser as is.\n\tif($action == 'download')\n\t{\n\t\t$dompdf->stream($filename, array(\"Attachment\" => true));\n\t\texit(0);\n\t}\n}", "title": "" }, { "docid": "eaf25ce7757eaf8a644b3039219b632f", "score": "0.56941086", "text": "public function buat_pdf(){\n \n /*$pdf = new FPDF('L', 'mm','Letter');\n \n $pdf->AddPage();\n \n $pdf->SetFont('Arial','B',16);\n $pdf->Cell(0,7,'DAFTAR PEGAWAI AYONGODING.COM',0,1,'C');\n $pdf->Cell(10,7,'',0,1);\n \n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(10,6,'No',1,0,'C');\n $pdf->Cell(90,6,'Nama Pegawai',1,0,'C');\n $pdf->Cell(120,6,'Alamat',1,0,'C');\n $pdf->Cell(40,6,'Telp',1,1,'C');\n \n $pdf->SetFont('Arial','',10);\n \n $pdf->AddPage();\n $pdf->Image('assets/img/home-bg-01.jpg');*/\n //\n\n $pdf = new AlphaPDF();\n $pdf->AddPage();\n $pdf->Image('assets/img/member-card.jpg',30,30);\n $pdf->SetAlpha(1);\n\n $pdf->SetFont('Arial', 'B', 14);\n $pdf->setTextColor(254, 254, 254);\n $pdf->Cell(148);\n $pdf->Cell( 1, 177, '10-1001', 0, 0, 'R' );\n $pdf->SetFont('Arial', '', 12);\n $pdf->Cell( 1, 188, 'Fitri Oktavia Sakinah', 0, 0, 'R' ); \n\n $path = $_SERVER[\"DOCUMENT_ROOT\"].'/uploads/cards/';\n $pdf->Output($path.'xyz.pdf', 'F');\n \n \n }", "title": "" }, { "docid": "6982e5f2378ebd790fb2b444498e1478", "score": "0.5684744", "text": "public function generarreporte(){\r\n $cuenta = $this->input->post('cuenta');\r\n $pdf = new Pdf('P', 'mm', 'A0', true, 'UTF-8', false);\r\n if(isset($cuenta)){\r\n $tit = 'Reporte de usuario';\r\n // datos por defecto de cabecera, se pueden modificar en el archivo tcpdf_config_alt.php de libraries/config\r\n $pdf->SetHeaderData('', 40,\" \".$tit.\" \", \"\", array(0,0,0), array(255, 255, 255));\r\n //$pdf->setFooterData($tc = array(0, 64, 0), $lc = array(0, 64, 128));\r\n // datos por defecto de cabecera, se pueden modificar en el archivo tcpdf_config.php de libraries/config\r\n $pdf->setHeaderFont(Array(\"times\", '', 20));\r\n // $pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));\r\n // se pueden modificar en el archivo tcpdf_config.php de libraries/config\r\n $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\r\n // se pueden modificar en el archivo tcpdf_config.php de libraries/config\r\n $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);\r\n $pdf->SetHeaderMargin(10);\r\n // $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\r\n // se pueden modificar en el archivo tcpdf_config.php de libraries/config\r\n $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\r\n //relación utilizada para ajustar la conversión de los píxeles\r\n $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\r\n // ---------------------------------------------------------\r\n // establecer el modo de fuente por defecto\r\n $pdf->setFontSubsetting(true);\r\n // Establecer el tipo de letra\r\n //Si tienes que imprimir carácteres ASCII estándar, puede utilizar las fuentes básicas como\r\n // Helvetica para reducir el tamaño del archivo.\r\n $pdf->SetFont('freemono', '', 20, '', true);\r\n // Añadir una página\r\n // Este método tiene varias opciones, consulta la documentación para más información.\r\n $pdf->AddPage();\r\n //fijar efecto de sombra en el texto\r\n $pdf->setTextShadow(array('enabled' => true, 'depth_w' => 0, 'depth_h' => 0, 'color' => array(196, 196, 196), 'opacity' => 1, 'blend_mode' => 'Normal'));\r\n // Establecemos el contenido para imprimir\r\n $usuario= $this->Persona_model->findcuenta($cuenta);\r\n //preparamos y maquetamos el contenido a crear\r\n $html = '';\r\n \r\n foreach ($usuario as $fila) \r\n {\r\n $nombre =$fila->apPat.\" \".$fila->apMat.\" \".$fila->pnombre;\r\n $email = $fila->email;\r\n $registrado = $fila->created_at;\r\n $fecha=$fila->fechaNaci;\r\n }\r\n $time = strtotime($fecha);\r\n $fecha = date(\"Y-m-d\", $time);\r\n $edad=(int)(((((strtotime(date('Y-m-d'))-strtotime($fecha))/365)/24)/60)/60);\r\n\r\n $nombre=ucwords(strtolower($nombre));\r\n $datosprestamo=$this->User->get_datos_prestamos_usuarui($cuenta,\"E\");\r\n $totalprestmosex=count($datosprestamo);\r\n $datosprestamoin=$this->User->get_datos_prestamos_usuarui($cuenta,\"I\");\r\n $totalprestmosin=count($datosprestamoin);\r\n $multas_generadas=$this->User->total_multa_saldo($cuenta);\r\n foreach ($multas_generadas as $fila) \r\n {\r\n $total_multas =$fila->total;\r\n $monto_mutas = $fila->monto;\r\n } \r\n $multas_pendientes=$this->User->total_multa_pendientes_saldo($cuenta);\r\n $total_multas_pend=0;\r\n if($multas_pendientes){\r\n foreach ($multas_pendientes as $fila) \r\n {\r\n $total_multas_pend =$fila->total;\r\n $monto_mutas_pen = $fila->monto;\r\n }\r\n } \r\n $preferencias=$this->User->preferenciasusuario($cuenta,\"E\"); \r\n\r\n $cadena=\"\";\r\n foreach ($preferencias as $value) {\r\n $cadena.='<tr>\r\n <td colspan=\"3\" style=\"font-size:12px;\">'.$value->Clasificacion.'</td>\r\n <td colspan=\"1\" style=\"text-decoration:underline\" style=\"font-size:12px;\" align=\"center\"><span >'.$value->total.'</span> </td>\r\n </tr>'; \r\n }\r\n $preferenciasin=$this->User->preferenciasusuario($cuenta,\"I\"); \r\n $cadenain=\"\";\r\n foreach ($preferenciasin as $value) {\r\n $cadenain.='<tr>\r\n <td colspan=\"3\" style=\"font-size:12px;\">'.$value->Clasificacion.'</td>\r\n <td colspan=\"1\" style=\"text-decoration:underline\" style=\"font-size:12px;\" align=\"center\"><span >'.$value->total.'</span> </td>\r\n </tr>'; \r\n } \r\n \r\n $html.='';\r\n // Imprimimos el texto con writeHTMLCell()\r\n \r\n\r\n $html = '<div style=\"border: 2px solid black; \">\r\n <table cellspacing=\"5\" cellpadding=\"6\" border=\"1\" >\r\n <tr>\r\n <td colspan=\"3\"style=\"font-size:10px;\">Nombre: <span>'.$nombre.' </span></td>\r\n <td colspan=\"2\" style=\"font-size:12px;\">Cuenta: <span>'.$cuenta.'</span></td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"3\" style=\"font-size:12px;\">Email: <span>'.$email.'</span></td>\r\n <td colspan=\"2\" style=\"font-size:12px;\">Fecha de registro: <span>'.$registrado.'</span></td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"2\" style=\"font-size:12px;\">Edad: '.$edad.' años</td>\r\n </tr> \r\n </table>\r\n </div>\r\n\r\n <div style=\"border: 2px solid black; \">\r\n <table cellspacing=\"3\" cellpadding=\"5\" border=\"1\" class=\"table table-condensed table-bordered table-striped\" >\r\n <tr >\r\n <td colspan=\"4\"style=\"font-size:14px;\"><h5 >Préstamos</h5></td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"3\" style=\"font-size:12px;\">Internos </td>\r\n <td colspan=\"1\" style=\"text-decoration:underline\" style=\"font-size:12px;\" align=\"center\"><span >'.$totalprestmosin.'</span></td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"3\" style=\"font-size:12px;\">Externos </td>\r\n <td colspan=\"1\" style=\"text-decoration:underline\" style=\"font-size:12px;\" align=\"center\"><span >'.$totalprestmosex.'</span></td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"4\"style=\"font-size:14px;\"><h5 >Multas</h5></td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"3\" style=\"font-size:12px;\">Multas generadas </td>\r\n <td colspan=\"1\" style=\"text-decoration:underline\" style=\"font-size:12px;\" align=\"center\"><span >'.$total_multas.'</span> </td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"3\" style=\"font-size:12px;\">Monto de multas </td>\r\n <td colspan=\"1\" style=\"text-decoration:underline\" style=\"font-size:12px;\" align=\"center\"><span >'.$monto_mutas.'</span> </td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"3\" style=\"font-size:12px;\">Multas pendientes </td>\r\n <td colspan=\"1\" style=\"text-decoration:underline\" style=\"font-size:12px;\" align=\"center\"><span >'.$total_multas_pend.'</span> </td>\r\n </tr> \r\n <tr>\r\n <td colspan=\"4\"style=\"font-size:14px;\"><h5 >Preferencias de usuario</h5></td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"4\"style=\"font-size:14px;\"><h5 >Externos</h5></td>\r\n </tr>\r\n '.$cadena.'\r\n <tr>\r\n <td colspan=\"4\"style=\"font-size:14px;\"><h5 >Internos</h5></td>\r\n </tr>\r\n '.$cadenain.' \r\n </table>\r\n </div>\r\n <BR />\r\n <style>\r\n h5{\r\n text-align: center;\r\n text-decoration: underline;\r\n }\r\n\r\n\r\n </style>';\r\n\r\n // output the HTML content\r\n $pdf->writeHTML($html, true, false, true, false, ''); \r\n $files = glob('./pdf/*'); // get all file names\r\n \r\n //if(count($files)>6){ \r\n foreach($files as $file){ // iterate files\r\n if(is_file($file))\r\n unlink($file); // delete file\r\n }\r\n /* }else{ \r\n if(file_exists('./pdf/reporte'.$cuenta.'.pdf')){\r\n return unlink('./pdf/reporte'.$cuenta.'.pdf');\r\n }\r\n }*/\r\n return $pdf->Output(getcwd().'/pdf/reporte'.$cuenta.'.pdf', 'F'); \r\n }else{\r\n echo \"No se envió cuenta de usuario\";\r\n } \r\n\r\n }", "title": "" }, { "docid": "e027d57fa27bb3fd06451d32d6f440d4", "score": "0.56843334", "text": "private function generateReportPdf(ReportInterface $report)\n {\n // store PDF (with summary info) as a document\n $this->fileUploader->uploadFile(\n $report,\n $this->getPdfBinaryContent($report, true),\n $report->createAttachmentName('DigiRep-%s_%s_%s.pdf'),\n true\n );\n }", "title": "" }, { "docid": "a95c5a6b61014282a24f724969649ea2", "score": "0.5684058", "text": "function indexPdf() \n { \n $this->layout = 'pdf'; //this will use the pdf.thtml layout \n $this->set('data','hello world!'); \n $this->render(); \n }", "title": "" }, { "docid": "bdd37bfcaca7c7cfb32a816429324f0b", "score": "0.56799746", "text": "function genPDF($data){\n\t\t$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n\n\t\t// set document information\n\t\t$pdf->SetCreator(PDF_CREATOR);\n\t\t$pdf->SetAuthor('Nicola Asuni');\n\t\t$pdf->SetTitle('TCPDF Example 006');\n\t\t$pdf->SetSubject('TCPDF Tutorial');\n\t\t$pdf->SetKeywords('TCPDF, PDF, example, test, guide');\n\n\t\t// set default header data\n\t\t$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 006', PDF_HEADER_STRING);\n\n\t\t// set header and footer fonts\n\t\t$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));\n\t\t$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));\n\n\t\t// set default monospaced font\n\t\t$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\n\n\t\t// set margins\n\t\t$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);\n\t\t$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\n\t\t$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\n\n\t\t// set auto page breaks\n\t\t$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\n\n\t\t// set image scale factor\n\t\t$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\n\n\t\t// set some language-dependent strings (optional)\n\t\tif (@file_exists(dirname(__FILE__).'/lang/eng.php')) {\n\t\t\trequire_once(dirname(__FILE__).'/lang/eng.php');\n\t\t\t$pdf->setLanguageArray($l);\n\t\t}\n\n\t\t// ---------------------------------------------------------\n\n\t\t// set font\n\t\t$pdf->SetFont('dejavusans', '', 10);\n\n\t\t// add a page\n\t\t$pdf->AddPage();\n\n\t\t// writeHTML($html, $ln=true, $fill=false, $reseth=false, $cell=false, $align='')\n\t\t// writeHTMLCell($w, $h, $x, $y, $html='', $border=0, $ln=0, $fill=0, $reseth=true, $align='', $autopadding=true)\n\n\t\t// create some HTML content\n\t\t$html = '<h1>HTML Example</h1>\n\t\tSome special characters: &lt; € &euro; &#8364; &amp; è &egrave; &copy; &gt; \\\\slash \\\\\\\\double-slash \\\\\\\\\\\\triple-slash\n\t\t<h2>List</h2>\n\t\tList example:\n\t\t<ol>\n\t\t\t<li><img src=\"tcpdf/examples/images/logo_example.png\" alt=\"test alt attribute\" width=\"30\" height=\"30\" border=\"0\"/>test image</li>\n\t\t\t<li><b>bold text</b></li>\n\t\t\t<li><i>italic text</i></li>\n\t\t\t<li><u>underlined text</u></li>\n\t\t\t<li><b>b<i>bi<u>biu</u>bi</i>b</b></li>\n\t\t\t<li><a href=\"http://www.tecnick.com\" dir=\"ltr\">link to http://www.tecnick.com</a></li>\n\t\t\t<li>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.<br />Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.</li>\n\t\t\t<li>SUBLIST\n\t\t\t\t<ol>\n\t\t\t\t\t<li>row one\n\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t<li>sublist</li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>row two</li>\n\t\t\t\t</ol>\n\t\t\t</li>\n\t\t\t<li><b>T</b>E<i>S</i><u>T</u> <del>line through</del></li>\n\t\t\t<li><font size=\"+3\">font + 3</font></li>\n\t\t\t<li><small>small text</small> normal <small>small text</small> normal <sub>subscript</sub> normal <sup>superscript</sup> normal</li>\n\t\t</ol>\n\t\t<dl>\n\t\t\t<dt>Coffee</dt>\n\t\t\t<dd>Black hot drink</dd>\n\t\t\t<dt>Milk</dt>\n\t\t\t<dd>White cold drink</dd>\n\t\t</dl>\n\t\t<div style=\"text-align:center\">tcpdf/images<br />\n\t\tssss <img src=\"css/img/anrclogo.png\" alt=\"test alt attribute\" width=\"100\" height=\"100\" border=\"0\"/>\n\t\t</div>';\n\n\t\t// output the HTML content\n\t\t$pdf->writeHTML($html, true, false, true, false, '');\n\n\n\t\t// reset pointer to the last page\n\t\t$pdf->lastPage();\n\n\t\n\n\t\t// ---------------------------------------------------------\n\n\t\t//Close and output PDF document\n\t\t$pdf->Output('example_006.pdf', 'I');\n\n\t\t//============================================================+\n\t\t// END OF FILE\n\t\t//============================================================+\n\n\n\t\t\n\t}", "title": "" }, { "docid": "8f0259bb3a672745871dfae2a21516b9", "score": "0.5677264", "text": "public function convert_pdf($id)\n {\n $id = (int) $id;\n if (empty($id) || $id <= 0) {\n $message = 'Invalid ID';\n goto LABEL_ERROR;\n }\n $cv = Resume::getCVById($id);\n\n $this->dataCV = $cv;\n $html = '';\n $data_tmp = [];\n $data_tmp_info = $cv['data']['info'];\n $pdfConfig = array(\n 'encoding' => 'UTF-8',\n 'no-outline',\n 'margin-top' => 0,\n 'margin-right' => 0,\n 'margin-bottom' => 0,\n 'margin-left' => 0,\n 'enable-smart-shrinking',\n 'dpi'\t\t\t=> 125,\n 'ignoreWarnings'=>true\n );\n $pdf = new Pdf($pdfConfig);\n $height = 0;\n if($cv['layout'] == 'double') {\n foreach($cv['data'] as $key => $template) {\n if($key == 'info') continue;\n $template['priority'] = (int)$template['priority'];\n $data_tmp[(int)$template['page']][$template['position']][$key] = $template;\n }\n foreach($data_tmp as $key => $templateGroup) {\n foreach($templateGroup as $key2 => $float) {\n $data_tmp[$key][$key2] = array_sort($float, function($value){\n return $value['priority'];\n }, SORT_ASC);\n }\n }\n foreach($data_tmp as $key1 => $templateGroup) {\n\n $html .= \"<div class=\\\"resume-renderer-page browser-resume-page\\\">\n <div class='resume-background-wrapper' style=\\\"background-image: url(\" . asset('/images/backgrounds/' . $this->layout['backgrounds'][$cv['background']]) . \")\\\"></div>\n <div class=\\\"resume-page-wrapper\\\" class=\\\"resume-background-wrapper\\\" src=\\\"background-image: url(\" . asset('/images/backgrounds/' . $this->layout['backgrounds'][$cv['background']]) . \")\\\">\";\n if ($key1 == 1) $html .= $this->getHtmlInfo($data_tmp_info);\n\n //right of page\n $html .= \"<div class=\\\"resume-renderer-two-column\\\" style=\\\"width: 60% !important; padding-right: 15px\\\">\";\n\n $leftHtml = '';\n if(!empty($templateGroup['left'])) {\n foreach ($templateGroup[\"left\"] as $leftKey => $template) {\n $function = 'getHtml' . ucfirst($leftKey);\n\n $leftHtml .= $this->{$function}($template);\n }\n }\n $html = $html . $leftHtml;\n $html .= \"</div>\";\n\n //left of page\n $html .= \"<div class=\\\"resume-renderer-two-column\\\" style=\\\"width: 40% !important;\\\">\";\n\n $rightHtml = '';\n if(!empty($templateGroup['right'])) {\n foreach ($templateGroup[\"right\"] as $rightKey => $template) {\n $function = 'getHtml' . ucfirst($rightKey);\n $rightHtml .= $this->{$function}($template);\n }\n }\n $html = $html . $rightHtml;\n\n $html .= \"</div>\";\n\n $html .= \"</div></div>\";\n }\n }\n else {\n foreach($cv['data'] as $key => $template) {\n\n $height += $template['height'];\n if($key == 'info') continue;\n $template['priority_center'] = (int)$template['priority_center'];\n $data_tmp[$key] = $template;\n\n }\n $data_tmp = array_sort($data_tmp, function($value, $key){\n\n return $value['priority_center'];\n }, SORT_DESC);\n\n $height += 150;\n $height = ceil($height/940) * 940;\n\n $html .= \"<div class=\\\"resume-renderer-page browser-resume-page\\\" style=\\\"height: {$height}px\\\">\n <div class='resume-background-wrapper' style=\\\"background-image: url(\" . asset('/images/backgrounds/' . $this->layout['backgrounds'][$cv['background']]) . \")\\\"></div>\n <div class=\\\"resume-page-wrapper\\\">\";\n $html .= $this->getHtmlInfo($data_tmp_info);\n\n //right of page\n $html .= \"<div class=\\\"resume-renderer-one-column\\\" style=\\\"padding-right: 15px\\\">\";\n\n $leftHtml = '';\n if(!empty($data_tmp)) {\n foreach ($data_tmp as $leftKey => $template) {\n $function = 'getHtml' . ucfirst($leftKey);\n\n $leftHtml .= $this->{$function}($template);\n }\n }\n $html = $html . $leftHtml;\n $html .= \"</div>\";\n\n $html .= \"</div></div>\";\n\n }\n $html = $this->getHtmlGeneral($html, $cv);\n// var_dump($html);die();\n $pdf->addPage($html);\n $pdf->binary = '/usr/local/bin/wkhtmltopdf';\n $file_name = md5(mt_rand()) . '.pdf';\n $file_path = public_path() . '/pdf/' . $file_name;\n\n $file_url = url('/pdf/' . $file_name);\n if (!$pdf->saveAs($file_path)) {\n return response()->json(['error' => $pdf->getError(), 'message' => 'Tải CV bị lỗi !', 'status' => -1]);\n } else {\n return response()->json(['file' => $file_url, 'message' => 'Tải CV thành công !', 'status' => 1]);\n }\n LABEL_ERROR:\n return response()->json(['message' => $message, 'status' => -1]);\n }", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "0f1ed650f9940b3afb4fd541a8f10b91", "score": "0.0", "text": "public function destroy($id)\n {\n }", "title": "" } ]
[ { "docid": "dcc1d6b4440ac73f55e995eb411296ea", "score": "0.6932749", "text": "public function destroy($id)\n {\n dd('Remove the specified resource from storage.');\n }", "title": "" }, { "docid": "4dafcd8b3f56d04ade79ab84f74387a5", "score": "0.69165355", "text": "public function remove(IUser $user, ?IResource $resource): void\n {\n $hash = $this->hash($user, $resource);\n $this->storage->remove($hash);\n }", "title": "" }, { "docid": "472e75253a82e723642cd346e42766dc", "score": "0.689976", "text": "public function unpublishResource(Resource $resource);", "title": "" }, { "docid": "8c567209f449643b019402d25cb3a0e6", "score": "0.67117244", "text": "public function remove($storageOption);", "title": "" }, { "docid": "33495d1267888d9c13c56a2f54ae7981", "score": "0.6666395", "text": "public function destroy(Resource $resource)\n {\n $user = auth()->user();\n\n if ($resource->Course->User == $user or $user->role == 'Admin' ) {\n\n $file_path='storage/resources/'.$resource->attachment;\n if (file_exists($file_path)) {\n $resource->delete();\n unlink($file_path);\n abort(204); //Requête traitée avec succès mais pas d’information à renvoyer. \n }\n abort(403);\n }\n\n abort(401);\n }", "title": "" }, { "docid": "d9f10892d48fdfd7debb2a97681f0912", "score": "0.6659381", "text": "public function destroy(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "d9f10892d48fdfd7debb2a97681f0912", "score": "0.6659381", "text": "public function destroy(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "0ee612316b7ece599a599780a7558aaf", "score": "0.6615533", "text": "public function deleteResource(){\n\t\tif(isset($this->posts[\"src\"])){\n\t\t\t$src = $this->posts[\"src\"];\n\t\t\tif(file_exists($src))\n\t\t\t\tunlink($src);\n\t\t}elseif(isset($this->posts[\"img_src\"])){\n\t\t\t$src = $this->posts[\"img_src\"];\n\t\t\tif(file_exists($src))\n\t\t\t\tunlink($src);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "3198b8a0f2716ad40da9a8a62bebf688", "score": "0.65721023", "text": "protected function remove_storage()\n {\n }", "title": "" }, { "docid": "dc2df99962575c3f0211b8228c540b4e", "score": "0.6562633", "text": "public function remove($uri)\n {\n unset($this->resources[$uri]);\n }", "title": "" }, { "docid": "6b97aa4b089b5fe95bf08521013640ac", "score": "0.64774114", "text": "function hook_cloudinary_stream_wrapper_resource_delete(array $resource) {\n if (isset($resource['public_id'])) {\n if ($storage_class = cloudinary_storage_class()) {\n $storage = new $storage_class($resource);\n list($path, $file) = $storage->resourceUpdate(FALSE);\n\n if ($resource['mode'] == CLOUDINARY_STREAM_WRAPPER_FILE) {\n $storage->folderUpdate($path, array(CLOUDINARY_STORAGE_REMOVE => $file));\n }\n }\n }\n}", "title": "" }, { "docid": "1e8cf2db14c80b19d70f4741a30df900", "score": "0.64165723", "text": "private function deleteOne()\n {\n optional($this->instance->image)->removeFromStorage($this->instance->image);\n\n $this->instance->delete();\n }", "title": "" }, { "docid": "8d21a30b7e8135aae2724ca63410e913", "score": "0.6372442", "text": "public function unpublishResource(PersistentResource $resource)\n {\n try {\n $objectName = $this->keyPrefix . $this->getRelativePublicationPathAndFilename($resource);\n $this->storageService->objects->delete($this->bucketName, $objectName);\n $this->systemLogger->log(sprintf('Successfully unpublished resource as object \"%s\" (MD5: %s) from bucket \"%s\"', $objectName, $resource->getMd5() ?: 'unknown', $this->bucketName), LOG_DEBUG);\n } catch (\\Google_Service_Exception $e) {\n if ($e->getCode() !== 404) {\n throw $e;\n }\n }\n }", "title": "" }, { "docid": "2fa852deb4200fa4ffe64ddcf6fe73e4", "score": "0.636192", "text": "function delete(string $resourceId);", "title": "" }, { "docid": "4eda806ad84b497f305439faec49b27d", "score": "0.6358891", "text": "public function removeResourceFile(Resource $resource)\n {\n $fs = new Filesystem;\n try {\n $fs->remove($this->getUploadedFilePath($resource));\n } catch (UnexpectedValueException $e) {\n // @todo log error\n }\n }", "title": "" }, { "docid": "55c732cc61cd0c51ab885bbf6faeefac", "score": "0.63369256", "text": "public function removeAvatarResource($resource): bool;", "title": "" }, { "docid": "0125b2b138f7471b5a7daa4462593d66", "score": "0.6309427", "text": "public function destroy(Resource $resource)\n {\n //\n $this->authorize('delete', $resource);\n $resource->delete();\n return redirect('/resource');\n }", "title": "" }, { "docid": "f401492e75ca4c7ef776750aa5c51a46", "score": "0.62508374", "text": "public function removeUnderlyingResource($key);", "title": "" }, { "docid": "5da558e39fa239885e68b2d3431874d2", "score": "0.6163051", "text": "public function delete(string $resource)\n {\n $client = $this->getClient();\n $response = $client->delete(\"{$resource}\");\n return $this->result($response);\n }", "title": "" }, { "docid": "8d8d886ed1a4286839ba3968f6b69e35", "score": "0.61367285", "text": "protected function removeFromStorage($path)\n {\n if (Storage::exists($path)) {\n Storage::delete($path);\n }\n }", "title": "" }, { "docid": "d4f932fe5d33ab4124d1b00f3a93fa4a", "score": "0.6116284", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n return redirect()->back();\n }", "title": "" }, { "docid": "3f6971bf8beba53671c4459991d4c502", "score": "0.6068753", "text": "public function removeResource($resource_id)\r\n {\r\n $logicNestedSet = new DragonX_NestedSet_Logic_NestedSet();\r\n $logicNestedSet->removeNode(\r\n new DragonX_Acl_Record_Resource($resource_id)\r\n );\r\n }", "title": "" }, { "docid": "01426e85ec00691416a7f655882c5af8", "score": "0.6051162", "text": "public function unlink(\\resource $context=null)\n {\n $this->checkReadable();\n if (null===$context)\n return \\unlink($this->path);\n return \\unlink($this->path, $context);\n }", "title": "" }, { "docid": "8b25ec91f92381b5e25bc75c03129532", "score": "0.6050952", "text": "public static function remove($filename){\n\n //check if file exists in storage public directory to avoid exception\n if( Storage::disk('public')->exists(\"$filename\") ){\n \n //delete oldfile using Storage @storage/app/public folder\n Storage::delete(\"public/$filename\");\n\n }//END exists\n\n \n }", "title": "" }, { "docid": "67bb6156ba52c0470fede15844ccd953", "score": "0.6024124", "text": "public function destroy($id)\n {\n $get=Social::where('id',$id)->first();\n if($get->icon!=null){\n unlink('storage/'.$get->icon);\n }\n $get->delete();\n return redirect()->route('listSocial');\n }", "title": "" }, { "docid": "8774fbdb26187176fa3c5c968af039d4", "score": "0.5983405", "text": "public function destroy( $resource)\n { \n $resource = RequiredDocument::find($resource); \n try {\n /*if ($requiredDocument->studentRequiredDocuments()->count() > 0) {\n notify()->error(__('cant delete data depend on data'), \"\", \"bottomLeft\"); \n return redirect()->route('required_documents.index');\n }*/ \n $resource->delete(); \n } catch (\\Exception $th) {\n return responseJson(0, $th->getMessage());\n }\n return responseJson(1, __('done'));\n }", "title": "" }, { "docid": "96b32200ee9cea357d9bb7756c71dbb9", "score": "0.5981521", "text": "public function destroy($id)\n {\n $filepath = File::where('id',$id)->value('physical_path');\n // return $filepath;\n Storage::delete($filepath);\n\n File::where('id', $id)->delete();\n return redirect()->back();\n }", "title": "" }, { "docid": "4343db7632128a4a22e019d66e290dd7", "score": "0.59791505", "text": "function destroy( $resource ){\n\n softDelete( 'customers', $resource );\n\n redirect( route( 'customer' ) );\n\n}", "title": "" }, { "docid": "b4b047fecd9f126a805ce824c7515839", "score": "0.5946296", "text": "public function destroy(Resource $resource)\n {\n $result = $resource->delete();\n if ($result) {\n return redirect(route('admin.resource.index'))->with(\"success\", 'Ресурс успешно удален');\n } else {\n return redirect(route('admin.resource.index'))->with(\"error\", 'Ошибка сервера');\n }\n }", "title": "" }, { "docid": "bc05b93beec5d500f15183a184885ed1", "score": "0.5940284", "text": "function delete_resource($resource_id)\n\t{\n\t\t\n\t\t$this -> db -> where('id', $resource_id);\n\t\t if ($this -> db -> delete('gh_resource'))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t\n\t}", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "90136674b889c89e2c35715bc8fe8d7f", "score": "0.5913318", "text": "public function delete(\\resource $context=null)\n {\n return $this->unlink($context);\n }", "title": "" }, { "docid": "78f3fcb6a4df88ba8ea45797087a7e8d", "score": "0.59121597", "text": "public function remove($entity);", "title": "" }, { "docid": "78f3fcb6a4df88ba8ea45797087a7e8d", "score": "0.59121597", "text": "public function remove($entity);", "title": "" }, { "docid": "78f3fcb6a4df88ba8ea45797087a7e8d", "score": "0.59121597", "text": "public function remove($entity);", "title": "" }, { "docid": "5811064cb5348a7d8234a1423fc04cf8", "score": "0.5904446", "text": "public function remove()\n {\n if ($this->currentIsExists()) {\n unlink($this->currentImage());\n $this->removeThumbs();\n }\n }", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.589366", "text": "public function remove();", "title": "" }, { "docid": "e134b8fbd8cb5d6358f5601aad3b42b7", "score": "0.5851101", "text": "public function destroy($id)\n {\n $item = StoragePhoto::findOrFail($id);\n $oldFile = $item->file;\n $item->delete();\n Storage::disk('public')->delete('storage_photos/' . $oldFile);\n return redirect()->back();\n }", "title": "" }, { "docid": "d64670e4005c362bc99c1ff13c3761c8", "score": "0.58252704", "text": "public function deleteDataStorage($name);", "title": "" }, { "docid": "100faa416ac8af24f2dde9c9c9c5ece8", "score": "0.5825043", "text": "public function destroy($id)\n {\n unlink('.'.backing::find($id)->img);\n backing::destroy($id);\n Session::flash('warning','Removido');\n return redirect()->route('home');\n }", "title": "" }, { "docid": "daf533646ad26ec870c4d404b6612873", "score": "0.5816415", "text": "public function destroy($id)\n {\n $Supplier = Supplier::findOrFail($id);\n $photo = $Supplier->photo;\n if ($photo) {\n unlink($photo);\n Supplier::findOrFail($id)->delete(); \n }else{\n Supplier::findOrFail($id)->delete();\n }\n }", "title": "" }, { "docid": "38bf577586a27897b1f11e08b3eac6db", "score": "0.58083075", "text": "public function deallocate_resource_from_user($resource_id);", "title": "" }, { "docid": "596fbb42123cc857bd6e6415ba467f80", "score": "0.5792648", "text": "public function delete() {\n\t\tif ( file_exists( $this->path ) ) {\n\t\t\tunlink( $this->path );\n\t\t}\n\t}", "title": "" }, { "docid": "cc42a160a9315cdd157733240e749135", "score": "0.57910043", "text": "public function remove($entity): void;", "title": "" }, { "docid": "bbd4fbeb169cce49dbdee4fcf4da3308", "score": "0.576368", "text": "public function destroy(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "bbd4fbeb169cce49dbdee4fcf4da3308", "score": "0.576368", "text": "public function destroy(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "3e75cf5e9dcd8f7f83bb797e00a4d05a", "score": "0.5761397", "text": "public function destroy($id)\n {\n $this->resource->deleteResource($id);\n }", "title": "" }, { "docid": "ab665119b206a77e6ca441b43a4d5f65", "score": "0.5718658", "text": "public static function delete($filePath, $storage = 'public')\n {\n if (Storage::disk($storage)->exists($filePath)) {\n Storage::disk($storage)->delete($filePath);\n }\n }", "title": "" }, { "docid": "688f093af1318a2501cc247ca7d8367f", "score": "0.57133234", "text": "public function destroy($id)\n {\n $post = Post::find($id);\t \n\n $file = $post->image;\n\n $path = storage_path('app/'.$file);\n \n\n $exists = file_exists($path) ? 1 : 0;\n \n \n if($file !== null && $exists === 1){\n \tunlink($path); \t\n } \t\t\n\n \t$post->delete();\n \n return redirect()->back()->with([\"success\" => \"Record deleted successfully!\"]);\n }", "title": "" }, { "docid": "083e7dfea48105bfa6c48a83f2638dbe", "score": "0.57117677", "text": "public function remove() {\n\t\t\n\t\t# remove file\n\t\t\n\t\t# remove thumbnails\n\t\t$this->removeThumbnail();\n\t}", "title": "" }, { "docid": "b695acf41ab282c258621f938f86e9b3", "score": "0.5690479", "text": "public function delete_item($id)\r\n\t{\r\n\t $path = $this->conf->paths['storage'].\"/\".$id;\r\n if(!$this->item_exists($id))\r\n return NULL;\r\n unlink($path);\r\n $this->update_stat();\r\n\t}", "title": "" }, { "docid": "9a27084d0c40ba49ecc9c1b53b42577b", "score": "0.5680772", "text": "public function destroy(storage $storage)\n {\n $storage->delete();\n\n return redirect()->route('storage.index')->withStatus(__('storage successfully deleted.'));\n }", "title": "" }, { "docid": "2d32ad1b48ccfbc9bbe2ec2428b76e24", "score": "0.56783164", "text": "public function destroy($id)\n {\n // Delete image for onefile\n }", "title": "" }, { "docid": "bac810fba3fe0809cb7a87735ba98fbe", "score": "0.5670975", "text": "public function delete( $path );", "title": "" }, { "docid": "52f3cfac130ce94f9536db6fe17ad61d", "score": "0.567092", "text": "public function remove()\n {\n if( file_exists( $this->getPath().\"/\".$this->getTempFile() ) ) {\n\n unlink( $this->getPath().\"/\".$this->getTempFile() );\n\n }\n }", "title": "" }, { "docid": "9fcbbf7c57d3a426ed4209fed7807bad", "score": "0.56667215", "text": "public function delete($path): self;", "title": "" }, { "docid": "0a66405a41c344aee2f23a78621638d2", "score": "0.5640811", "text": "public function destroy($id)\n {\n $image = Image::whereId($id)->first();\n Storage::delete('storage/' . $image->image_url);\n $image->delete();\n return redirect()->back()->with('success', 'image deleted');\n }", "title": "" }, { "docid": "47582204edbd05b1d7427ba375b800cb", "score": "0.5636767", "text": "public function destroy($id)\n {\n $data = Slider::find($id);\n if (file_exists(imagePath().$data->sliderimg)) { \n unlink(imagePath().$data->sliderimg);\n }\n $delete=Slider::where('id','=',$id)->delete();\n return redirect()->back();\n }", "title": "" }, { "docid": "633fe257801634ace1ad6774eadec06a", "score": "0.563407", "text": "public function delete()\n {\n $this->erase();\n }", "title": "" }, { "docid": "5f783edc1594c1f8b50bfd3d8032ee86", "score": "0.56227064", "text": "function delete() {\n if (is_file($this->path) && file_exists($this->path) && is_writable($this->path)) {\n return unlink($this->path);\n }\n }", "title": "" }, { "docid": "368d6e77cc3e0998a2b5e5ad75228904", "score": "0.5614642", "text": "public function destroy($id)\n {\n $file = $this->fileProvider->findById($id);\n $file->delete();\n }", "title": "" }, { "docid": "abe945199308adcf5f0a508cfdef2673", "score": "0.56135803", "text": "public function delete(Resource $resource) {\n\t\t$class = get_class($resource);\n\t\t$table = strtolower(substr($class, strrpos($class, \"\\\\\") + 1));\n\t\t$criteria = $resource->getRequiredEqualities();\n\n\t\ttry {\n\t\t\t$this->driver->delete($table, $criteria);\n\t\t} catch (InvalidQueryException $exception) {\n\t\t\tthrow $exception; # Move it up the line.\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a063c5a5194ae38910605d903212fa5d", "score": "0.5605628", "text": "public function destroy($id)\n {\n $item = Products::find($id);\n $origin_img = $item->img;\n if(Storage::disk('public')->exists($origin_img)){\n Storage::disk('public')->delete($origin_img);\n }\n $item->delete();\n return redirect('home/product');\n }", "title": "" }, { "docid": "e40139292b4af4dae5afad336cfab701", "score": "0.5594869", "text": "function remove($resource_id){\n //this primarily means remove links for this Resource\n\n DB::db_query(\"delete_resource_links\", \"DELETE FROM links WHERE from_id='\".$resource_id.\"' AND (\n type = '\".get_link_as_constant(\"RESOURCE_IN_CATEGORY\").\"' \n OR type='\".get_link_as_constant(\"RESOURCE_OF_USER\").\"'\n OR type='\".get_link_as_constant(\"RESOURCE_OF_GROUP\").\"');\");\n if(DB::db_check_result(\"delete_resource_links\") > 0){\n //success\n } \n \n }", "title": "" }, { "docid": "4d9a698ed0ccf2cc8ec46d04467cd7ec", "score": "0.5586516", "text": "public function remove(Payload $payload): void\n {\n $this->storage->destroy($this->getKey($payload));\n }", "title": "" }, { "docid": "e987c7f11e89bb4f6dc4dc023e24d763", "score": "0.5579811", "text": "public function remove(Object $entity);", "title": "" }, { "docid": "1accc3116856cce6a0b7ebddb6b796b8", "score": "0.55785817", "text": "public function destroy($id)\n\t{\n\t\tResource::destroy($id);\n\n\t\tSession::flash('delete', 'Resource Deleted');\n\t\treturn Redirect::to('resource');\n\t}", "title": "" }, { "docid": "430d1f771f7deee6de5a8179a0ce6389", "score": "0.55783314", "text": "public function destroy($id)\n {\n $item = Video::find($id);\n $path = str_replace('storage/', 'public/', $item->path);\n if (Storage::exists($path)) {\n Storage::delete($path);\n }\n $item->delete();\n }", "title": "" }, { "docid": "0d6640f36c0ca88fbe56977a74dad5f1", "score": "0.55737436", "text": "public function remove(MediaInterface $media);", "title": "" }, { "docid": "6ad136b8bac727f66417bb1d762b6e97", "score": "0.5564964", "text": "public static function delete( $resource ) {\n $resource->assertLock();\n $resource->assertMemberLocks();\n $parent = $resource->collection();\n if (!$parent)\n throw new DAV_Status(DAV::HTTP_FORBIDDEN);\n $parent->assertLock();\n self::delete_member( $parent, $resource );\n}", "title": "" }, { "docid": "a2f1c01b0ea1d33119c1e555014fb703", "score": "0.5562198", "text": "public function destroy($id)\n {\n //\n $hizmetler = Hizmetler::where('id',$id)->first();\n\n if($hizmetler) {\n unlink(storage_path('app/public'.$hizmetler->image));\n $hizmetler->delete();\n\n\n\n return ['status'=>'ok','message'=>'Silme İşlemi Başarılı'];\n }\n return ['status'=>'err','message'=>'Silme İşlemi Başarısız'];\n }", "title": "" }, { "docid": "3a507f65a1de28bc6b0f34c5d713d3a2", "score": "0.5560665", "text": "public function removeUpload()\n {\n \tif ($file = $this->getAbsolutePath()) {\n \t\tunlink($file);\n \t}\n }", "title": "" }, { "docid": "0c001dc9327db66033c2beb52b0e02a9", "score": "0.5557123", "text": "public function deleteWithFile()\n {\n unlink(public_path($this->url));\n $this->delete();\n }", "title": "" }, { "docid": "c470228c5ffb5ab3fa7349260335d385", "score": "0.55545944", "text": "public function destroy($id)\n {\n $product = Product::find($id);\n $image_path=public_path().'/upload/product/'.$product->photo;\n if(file_exists($image_path)){\n unlink($image_path);\n }\n $product->delete();\n }", "title": "" }, { "docid": "e98c4608a62ab3f2b92573a4bed86a6f", "score": "0.5551504", "text": "abstract public function Resource_Link_delete($resource_link);", "title": "" }, { "docid": "5644c2de987a8d8bda74e3ac1875315c", "score": "0.5545652", "text": "function remove(){\n\t\t$db->Execute(\"delete from \" . TABLE_INVENTORY . \" where id = \" . $id);\n\t \tif ($image_with_path) { // delete image\n\t\t\t$file_path = DIR_FS_MY_FILES . $_SESSION['company'] . '/inventory/images/';\n\t\t\tif (file_exists($file_path . $image_with_path)) unlink ($file_path . $image_with_path);\n\t \t}\n\t \t$db->Execute(\"delete from \" . TABLE_INVENTORY_SPECIAL_PRICES . \" where inventory_id = '\" . $id . \"'\");\n\t\tgen_add_audit_log(INV_LOG_INVENTORY . TEXT_DELETE, $sku);\n\t}", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "e16921589a68a78a32503d13f6338be9", "score": "0.55398196", "text": "public function delete($id){\n // delete images\n $image = Post::find($id)->image;\n if(!empty($image))\n foreach (json_decode($image, true)['urls'] as $image) {\n !isset($image) ?: \\File::delete($image);\n }\n \n // delete storage\n parent::delete($id);\n }", "title": "" }, { "docid": "987d20a90f553327a77e6cf4303821fa", "score": "0.55355304", "text": "public function remove(Question $question): Void;", "title": "" }, { "docid": "3751a58c163b979ebbab9b941282602b", "score": "0.5534674", "text": "public function destroy($id)\n {\n $data = Student::where('id',$id)->first();\n $img_path = $data->photo;\n unlink($img_path);\n Student::where('id',$id)->delete();\n return response('Data Deleted Successfully');\n }", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "85cbf9c7e4906a9545dd0eecdec1aeae", "score": "0.55242705", "text": "public function destroy($id)\n {\n \n $fotoAtual=$this->foto->find($id);\n File::delete(public_path() . $fotoAtual->arquivo0);\n $fotoAtual->delete();\n }", "title": "" }, { "docid": "ec759861dd3d396dcc09d5e1bfcf628b", "score": "0.5521281", "text": "public function unlink($path);", "title": "" } ]
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "836cab820b558dc649e5cc4718d3a9b7", "score": "0.0", "text": "public function create()\n {\n return view('admin.parts.create');\n }", "title": "" } ]
[ { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.75727344", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.75727344", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "735e465640db5c659ac193ab8af1f08c", "score": "0.75663006", "text": "public function createAction ()\n\t{\n\t\t$this->view->form = $this->_form;\n\t}", "title": "" }, { "docid": "c22dae1333d29c28ed855dcb7f069232", "score": "0.7491396", "text": "public function create()\n {\n return view('resources.create');\n }", "title": "" }, { "docid": "1f9733369c1aaf55c73aa4d1a8a80882", "score": "0.74566424", "text": "public function create()\n {\n\n return view('resources.create');\n\n }", "title": "" }, { "docid": "1da53c4d224bfa3bc44c0fabd927bedd", "score": "0.7455584", "text": "public function create()\n {\n return view ('rol.form_create');\n }", "title": "" }, { "docid": "1b16c1f4677bd0ac799e087490d4d05b", "score": "0.73507345", "text": "public function create() {\n return view($this->className . '/form', [\n 'className' => $this->className,\n 'pageTitle' => $this->classNameFormatado . '- Cadastro de registro'\n ]);\n }", "title": "" }, { "docid": "edabb98341a0b5aadd47c2864942b8db", "score": "0.7339739", "text": "protected function create()\n {\n $form = Form::create($this->resource);\n $model = $form->model;\n\n $model->hasAccessOrFail('create');\n\n $model->fill($this->getOldInput());\n\n $form->fields()->each(function (Field $field) use (&$model) {\n $field->setValue($model);\n });\n\n return view('crud::form.create', compact('form'));\n }", "title": "" }, { "docid": "9814fd9ae63509e6eb41bf23f7a94615", "score": "0.72809595", "text": "public function create()\n {\n return view('forms.create');\n }", "title": "" }, { "docid": "6ed61a57fb61b517537e754054cffc2f", "score": "0.7257705", "text": "public function create()\n {\n return view(\"stok.form\");\n }", "title": "" }, { "docid": "42de9969dbd16cbf3f496acd505422d8", "score": "0.7249422", "text": "public function create()\n {\n // shows a view to create a new resource\n return view('dashboard.admin.create');\n \n }", "title": "" }, { "docid": "d777482ca48a952bda74d0486cdad76a", "score": "0.7237927", "text": "public function create()\n {\n return \"Here is the creating form page.\";\n }", "title": "" }, { "docid": "8a257056a97a8ef04b6027c8bfb8cad1", "score": "0.723185", "text": "public function create()\n {\n\n $title = 'Add '. $this->getName();\n $form = $this->form($this->getFormClass(), [\n 'method' => 'POST',\n 'url' => route($this->getRouteFor('store')),\n ]);\n return view('.admin.form', compact('form', 'title'));\n }", "title": "" }, { "docid": "f5f050d80230f2f0b6313a13b65e7a0b", "score": "0.72228223", "text": "public function newAction()\n {\n $entity = new Faq();\n $form = $this->createCreateForm($entity);\n\n $form->add('question', 'text', array('label' => 'Ask Your Question :')); \n $form->add('answer', 'text', array('label' => 'Give an answer :'));\n $form->add('submit', 'submit', array('label' => 'Submit question'));\n\n return $this->render('FaqBundle:Faq:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "4b9c0332c0bc5feb4fa5c4c15ff4cda0", "score": "0.722023", "text": "public function create()\n {\n $this->authorize('create', $this->getResourceModel());\n\n $class = $this->getResourceModel();\n return view($this->getResourceCreatePath(), $this->filterCreateViewData([\n 'record' => new $class(),\n ] + $this->resourceData()));\n }", "title": "" }, { "docid": "29282129b8e24a976f037c589580f34b", "score": "0.7208537", "text": "public function create()\n {\n $this->page_title = trans('resource_sub_type.new');\n\n return view('resource_sub_type.new', $this->vdata);\n }", "title": "" }, { "docid": "85bc1c405768493e40df217a0040f018", "score": "0.7191366", "text": "function showCreateForm(){\n return view('admin.Direktori.Pendeta.create');\n }", "title": "" }, { "docid": "9493a84894964b34fd6021b3786bcc7a", "score": "0.71894634", "text": "public function create()\n {\n return view('crops.forms.create');\n }", "title": "" }, { "docid": "f6d3fc80bf700f89fa22e42e685b217d", "score": "0.7184248", "text": "public function create()\n {\n return view ('penilaiansmp.form');\n }", "title": "" }, { "docid": "68716ed8c8a7c02d13766dd274f478a3", "score": "0.718268", "text": "public function create()\n {\n return view('user_resources/create');\n }", "title": "" }, { "docid": "643073da4582f0c5ee209f1f696bb305", "score": "0.7166686", "text": "public function create()\n {\n return view('admin/records/forms/record-create-form');\n }", "title": "" }, { "docid": "86e44150333771a80ff3634ffc76f344", "score": "0.71529675", "text": "public function create()\n {\n return view('dashboard.form.create');\n }", "title": "" }, { "docid": "75889c35cd5f200bf02a5b21774293e1", "score": "0.7137003", "text": "public function create()\n {\n $this->data['titlePage'] = trans('admin.obj_new',['obj' => trans('admin.'.$this->titleSingle)]);\n $breadcrumbs = array();\n $breadcrumbs[] = [ 'title' => trans('admin.home'), 'link' => route($this->routeRootAdmin), 'icon' => $this->iconDashboard ];\n $breadcrumbs[] = [ 'title' => trans('admin.'.$this->titlePlural), 'link' => route(GetRouteAdminResource($this->resourceRoute)), 'icon' => $this->iconMain ];\n $breadcrumbs[] = [ 'title' => $this->data['titlePage'], 'icon' => $this->iconNew ];\n $this->data['breadcrumbs'] = $breadcrumbs;\n $this->data['category'] = $this->getModelArray($this->modelCategory);\n $this->data['province'] = $this->getModelArray($this->modelProvince);\n $this->data['district'] = $this->getModelArray($this->modelDistrict);\n $this->data['ward'] = $this->getModelArray($this->modelWard);\n $this->data['direction'] = $this->getModelArray($this->modelDirection);\n\n return view(GetViewAdminResource($this->resourceView, 'create'))->with($this->data);\n }", "title": "" }, { "docid": "7e262dd36752e23255d5ea03566e8de7", "score": "0.7122985", "text": "public function create()\n {\n $model = $this->model;\n return view('pages.admin.graha.form', compact('model'));\n }", "title": "" }, { "docid": "0a067c68f8000d9eb913daf36e5e607c", "score": "0.712034", "text": "public function create()\n {\n return view('FullForm.create');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "c88daeaad1f2ef73dd9534351ceea67a", "score": "0.70962554", "text": "public function newAction()\n {\n $entity = new FormEntity();\n $entity->setTemplate('keltanasTrackingBundle:Form:form.html.twig');\n $form = $this->createCreateForm($entity);\n\n return $this->render('keltanasTrackingBundle:Form:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "a7352ebb77d0418eb30e8fe2e7bfb857", "score": "0.7087128", "text": "public function actionCreate()\n\t{\n\t\t$this->render('create');\n\t}", "title": "" }, { "docid": "c27004d00e3f9afb85f74623ec456ca9", "score": "0.708025", "text": "public function create()\n {\n //\n return view('form');\n }", "title": "" }, { "docid": "8e0fde88926c98fb2c54ba67ab5b36a7", "score": "0.7061749", "text": "public function create()\n\t{\n\t\treturn View::make('librarians.create');\n\t}", "title": "" }, { "docid": "345c70747deda30c3482e759c25c4d12", "score": "0.706081", "text": "public function create()\n {\n return view('passenger.forms.create');\n }", "title": "" }, { "docid": "2b41dd9ed0cf1461dd65f8e05b0a94a1", "score": "0.70571953", "text": "public function create()\n {\n return $this->showForm();\n }", "title": "" }, { "docid": "20ab9d62fc4da5013c56daa9183bfe28", "score": "0.70571035", "text": "public function create()\n {\n return view('admin.client.form');\n }", "title": "" }, { "docid": "c69f303d7cafa0864b25b452417d3c13", "score": "0.70510703", "text": "public function create()\n\t{\n\t\treturn view('actions.create');\n\t}", "title": "" }, { "docid": "b7f63db5c5ecb7bba494b8a81ce69874", "score": "0.70475084", "text": "public function create(AdminResource $resource)\n {\n $form = $resource->getForm();\n\n return view('admin::resource.form', compact('form'));\n }", "title": "" }, { "docid": "8f53ed51f8136e8e32a2c0525120a50f", "score": "0.7042422", "text": "public function create()\n {\n //\n\n \n return view('student/ResourceStd');\n\n }", "title": "" }, { "docid": "f1f40cbb0cad3cf320b4c0ec09b3b428", "score": "0.7040213", "text": "public function create()\n {\n return view('form');\n\n }", "title": "" }, { "docid": "607b994b80e66fe45602a00379ab7779", "score": "0.70308834", "text": "public function create()\n {\n //return the create view (form)\n return view('books.create');\n }", "title": "" }, { "docid": "643fd44e4ced88a8aac481ced428c5ca", "score": "0.70261294", "text": "public function create()\n {\n $title = 'CRIAR REGISTRO';\n return view('forms.create',['title' => $title]);\n }", "title": "" }, { "docid": "66b746538eaf7a550c7b3a12968b96a6", "score": "0.70147324", "text": "public function create()\n {\n return view('supplier.form');\n }", "title": "" }, { "docid": "8074165780da4d1be303d3e9d8c535ba", "score": "0.7012196", "text": "public function create()\n {\n return view ('owner/form');\n }", "title": "" }, { "docid": "06af90c4292c136aaaf9329cfae0b3fc", "score": "0.70115083", "text": "public function create()\r\n {\r\n //mengarahkan ke form\r\n return view('rental.form');\r\n }", "title": "" }, { "docid": "248b476c0f07013b389c79c904231f2a", "score": "0.70046955", "text": "public function create()\n {\n return view('admin.car.add');\n }", "title": "" }, { "docid": "75fb4bc6a7a5df1f1f5cd380b0cd4aec", "score": "0.7000195", "text": "public function create()\n {\n //New Property form\n return view('properties.addproperty');\n }", "title": "" }, { "docid": "91dd937891cf552bdb6c058f3730d93b", "score": "0.6998989", "text": "public function newAction()\n {\n $entity = new foo();\n $form = $this->createForm(new fooType(), $entity);\n\n return $this->render('ScrunoBoardBundle:foo:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "c6f4cc7fdd05567403f39d82ae477eb4", "score": "0.6994647", "text": "public function create()\n\t{\n\t\treturn view('kasus.create');\n\t}", "title": "" }, { "docid": "68eb563182e9ed0d6524bc0b6aac22af", "score": "0.69939756", "text": "public function create()\n\t{\n\t\t// load the create form (app/views/professor/create.blade.php)\n\t\t$this->layout->content = View::make('professor.create');\n\t}", "title": "" }, { "docid": "6c77fcad45300d9322c483f2cf6f0bf9", "score": "0.69900626", "text": "public function create()\n\t{\n\t\treturn view('proyek.create');\n\t}", "title": "" }, { "docid": "033dad9a04f818507b4dc909e40e2cca", "score": "0.6988088", "text": "public function create()\n {\n $data[\"action\"] = 'anggota.store';\n return view('anggota.form', $data);\n }", "title": "" }, { "docid": "355b502cb4384aeb8c0d1322a57b7677", "score": "0.69879013", "text": "public function create()\n {\n return view ('show.create', [\n ]); \n }", "title": "" }, { "docid": "afec885a1ddf009d317c5bca27be7983", "score": "0.6985705", "text": "public function create()\n {\n\t\treturn view('admin.pages.supplier-form-create', ['page' => 'supplier']);\n }", "title": "" }, { "docid": "93cdfcc841a0d10e976bbc17fe7020ec", "score": "0.6977717", "text": "public function create()\n {\n return view('rombel.create');\n }", "title": "" }, { "docid": "eb3ba5c68f25897de6ed50346b9959f7", "score": "0.6976043", "text": "public function create()\n {\n $crud = crud_entry(new \\App\\Employee);\n\n return view('crud::scaffold.bootstrap3-form', ['crud' => $crud]);\n }", "title": "" }, { "docid": "432a42bd0e4b7b7dd13b0343e81c9f33", "score": "0.6974407", "text": "public function create()\n {\n //\n return view('libros/libroForm');\n }", "title": "" }, { "docid": "27f66e57741013d1d7bd227b0a1ae6cc", "score": "0.6969905", "text": "public function create()\n {\n return view('radars/create');\n }", "title": "" }, { "docid": "db317dc07de792187038b7e4a5f863fd", "score": "0.69643784", "text": "public function newAction()\n {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('ManuTfeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "58119c678c7b859b3d2fcb9d4e2544e9", "score": "0.69620776", "text": "public function create()\n {\n return view('forms.girders.create');\n }", "title": "" }, { "docid": "6e09ea0495ecf33b6615199f96a87dd9", "score": "0.6958075", "text": "public function create()\n {\n return view('inventaris.create');\n }", "title": "" }, { "docid": "cfb06a7f594e86d7fe22432b5bd18371", "score": "0.6957784", "text": "public function newAction()\n {\n $entity = new Ministro();\n $form = $this->createCreateForm($entity);\n\n return $this->render('ParroquiaCertificadoBundle:Ministro:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "121c8c321a85cfc3184f64d92ecfca6c", "score": "0.6954882", "text": "public function create()\n\t{\n\t\treturn view ('oficinas.create');\n\t}", "title": "" }, { "docid": "9cc1ebbeb06fe2564e0fa603d2c72f75", "score": "0.69542176", "text": "public function create()\n {\n //\n return view('product.form');\n }", "title": "" }, { "docid": "ad86bd025139be91b2df85c83f79d4bd", "score": "0.69525295", "text": "public function create()\n {\n return view('syllabus.create');\n }", "title": "" }, { "docid": "1276876980c60661df1af9ecd3659454", "score": "0.6946296", "text": "public function create()\n\t{\n\t\treturn View::make('nssf.create');\n\t}", "title": "" }, { "docid": "29d1eb6a37de9bf5891c3b5b4ef4fa2d", "score": "0.69450635", "text": "public function newForm()\n {\n $this->pageTitle = \"Création d'une question\";\n\n //initialisation des selects list\n $this->initSelectList();\n\n parent::newForm();\n }", "title": "" }, { "docid": "7c12821aa5d613a86cc8ba0cf190e6fd", "score": "0.6930994", "text": "public function create()\n {\n return view('tutores.new');\n }", "title": "" }, { "docid": "07e409b45065624d003704ab3b447aec", "score": "0.69273114", "text": "public function create()\n {\n return view('admin.product.form');\n }", "title": "" }, { "docid": "60c9cc4899b058bc51c74601c8025ebe", "score": "0.6925751", "text": "public function create()\n {\n return view('adminCreateForm');\n }", "title": "" }, { "docid": "466006539e9b1da8c7c2e06a069c4e2e", "score": "0.6921871", "text": "public function create()\n {\n return view('layout_admin.thenew.create_new');\n }", "title": "" }, { "docid": "38a6849d5b56a77b178a1fc8297c2e4e", "score": "0.69218206", "text": "public function create()\n\t{\n\t\treturn view('information.create');\n\t}", "title": "" }, { "docid": "83ebdde393be7960c0a3149b40b830fa", "score": "0.69206", "text": "public function create()\n {\n //\n return view('guest.sample.submit-property2');\n }", "title": "" }, { "docid": "50d6adc18861a552fb9ddb0969a2630f", "score": "0.69202167", "text": "public function create()\n {\n return view('umbooks::admin.models.book.create');\n }", "title": "" }, { "docid": "1b49a8bc053be1715bbf5620cf797e18", "score": "0.69184965", "text": "public function create()\n\t{\n\t\treturn View::make('product.create'); //form to create new product \n\t}", "title": "" }, { "docid": "ce1853ac01959995d112bb4d44014367", "score": "0.6918359", "text": "public function create()\n {\n //\n return view('ijinkeluars.create');\n }", "title": "" }, { "docid": "87632e3ed9e4e251e3f5a4dfa4cc4e5e", "score": "0.69181925", "text": "public function create()\n {\n // Place here the initial data and show\n // Ahh screw it, Show Everything!!!\n\n return view('record.create');\n\n }", "title": "" }, { "docid": "27e5069596828984f14a92c012c1e448", "score": "0.6914329", "text": "public function newAction()\n {\n $entity = new Inicio();\n $form = $this->createForm(new InicioType(), $entity);\n\n return $this->render('SisafBundle:Inicio:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "98e3bff438d778b0a9ccaad60778cf09", "score": "0.69096565", "text": "public function create()\n {\n return view('admin/car/add-car');\n }", "title": "" }, { "docid": "51a5131df9fc2dcd5b65b5ca8aa614d0", "score": "0.69092304", "text": "public function create()\n {\n //To show the required create page when its clicked\n return view('admin.create');\n \n \n }", "title": "" }, { "docid": "4b3f5241c4a2f638b9ee19747079b7a2", "score": "0.69069797", "text": "public function create()\n {\n return view('stus.add');\n }", "title": "" }, { "docid": "eec374cbf73315b7af3e5f2b21f37d4d", "score": "0.69059855", "text": "public function create()\n {\n return view('linhvuc.create');\n }", "title": "" }, { "docid": "0b940b83fdd9503e0b64330c52106d41", "score": "0.69053364", "text": "public function create()\n {\n return view('inventariss.create');\n }", "title": "" }, { "docid": "ecc913c81504bfd8529f7b7feaef7080", "score": "0.69047576", "text": "public function create(){\n return view('person/form', ['action'=>'create']);\n }", "title": "" }, { "docid": "64d616e79a29573ea35b962756917c05", "score": "0.69007623", "text": "public function create()\n {\n\t\t$d['action'] = route('product.store');\n\t\treturn view('back.pages.product.form', $d);\n }", "title": "" }, { "docid": "61066352fa31a37b0f1d8bc9fd229ea9", "score": "0.6897235", "text": "public function create()\n {\n /* $this->authorize('create'); */\n return view('refugio.refugioForm');\n }", "title": "" }, { "docid": "70820d35b4d8e319baa89b6f91a3d029", "score": "0.6895603", "text": "public function newAction() {\n $entity = new Recommandation();\n $form = $this->createCreateForm($entity);\n\n return $this->render('MyAppFrontBundle:Recommandation:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "27fad6d884340578087d232e3218a94d", "score": "0.68955874", "text": "public function create()\n {\n return view('backpages.formInfo');\n }", "title": "" }, { "docid": "619fa64afd3457bdc8d1c1a041acff47", "score": "0.68903565", "text": "public function create()\n {\n return View(\"$this->view_folder.form\", $this->data);\n }", "title": "" }, { "docid": "6769fe63e35d4f98abe507728065b246", "score": "0.6890337", "text": "public function create()\r\n {\r\n return view('superadmin::create');\r\n }", "title": "" }, { "docid": "09fab99adf688ea100aa90694eab5889", "score": "0.6888845", "text": "public function create()\n {\n return view(\"Amenity::add\");\n }", "title": "" }, { "docid": "985e9c7c0b741b5b1eb67c091e5ad371", "score": "0.6886975", "text": "public function create()\n\t{\n\t\t//\n\t\treturn View::make('oficinas.create');\n\t}", "title": "" }, { "docid": "9664795bf81cca0f3e65d94f0f595082", "score": "0.6880484", "text": "public function create()\n\t{\n\t\treturn view('questao.create');\n\t}", "title": "" }, { "docid": "623f899bed6c6f380a03ffc99508b73d", "score": "0.6879059", "text": "public function newAction()\n {\n $entity = new Candidato();\n $form = $this->createForm(new CandidatoType(), $entity);\n\n return $this->render('EleicaoAdmBundle:Candidato:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "6648fe4f8fd4df24b091c04829b92bbb", "score": "0.6878773", "text": "public function create()\n\t{\n\t\treturn View::make('powerful.create');\n\t}", "title": "" }, { "docid": "a3b3bbcce8f8a6239dadc2917240252b", "score": "0.6878254", "text": "public function showForm()\n {\n return view('AdminView.create');\n }", "title": "" }, { "docid": "06fe0499ccb2038bd9c25e7ef14289e2", "score": "0.68774086", "text": "public function create()\n {\n //Return item details form\n return view('home.create');\n }", "title": "" }, { "docid": "b3998fa6dce49f97902e942f97d98ede", "score": "0.687325", "text": "public function newAction()\n {\n $entity = new Escuelas();\n $form = $this->createForm(new EscuelasType(), $entity);\n\n return $this->render('QQiRecordappBundle:Escuelas:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "60ee9672a795f51a440ede1e68b26045", "score": "0.6870999", "text": "public function create()\n {\n return view('smp.create');\n }", "title": "" }, { "docid": "9f18b1b1a35a9af23eb1d4bbdba665f8", "score": "0.68696606", "text": "public function create()\n {\n return view('admin.car_com.create');\n }", "title": "" }, { "docid": "d14776cad1affd8d37756a185e7fe660", "score": "0.68665606", "text": "public function create()\n {\n return view('relasi.create');\n }", "title": "" }, { "docid": "96c76b820b73f95fa584de07ad04ad0a", "score": "0.6865675", "text": "public function create()\n {\n return view('nasabah/addnasabah');\n }", "title": "" }, { "docid": "e3cfac3178d9c5cb5ab322fa4785604c", "score": "0.6862222", "text": "public function create()\n {\n return view('Prenda.create');\n }", "title": "" } ]
d695f82fa4bf726f9bc972cbd0108412
/ Loads a single post when logged in user publishes a new one Arguments list: $id: Id value of the post
[ { "docid": "74dbf4c18bc8f20314255257b4e674ec", "score": "0.67013043", "text": "public function load_single_post($id) {\r\n $str = ''; // String to return\r\n\r\n // Fetch post info\r\n $post_info = $this->fetch_post_by_id($id);\r\n\r\n $id = $post_info['id'];\r\n $body = $post_info['body'];\r\n $author = $post_info['author'];\r\n $to = $post_info['to'];\r\n $date_time = $post_info['date_added'];\r\n $num_likes = $post_info['num_likes'];\r\n $num_comments = $post_info['num_comments'];\r\n $user_id = $post_info['user_id'];\r\n\r\n if($to == 'none') {\r\n $to_string = '';\r\n } else {\r\n $to_obj = new User($this->db_conn);\r\n $to_info = $to_obj->fetch_user_by_username($to);\r\n\r\n $to_name = $to_info['first_name'] . ' ' . $to_info['last_name'];\r\n $to_string = 'to <a class=\"text-primary\" href=\"' . $to . '\" style=\"text-decoration:none;\"><strong>' . $to_name . '</strong></a>';\r\n // Ex. <a class=\"text-primary\" href=\"#\" style=\"text-decoration:none;\"><strong>Firstname Lastname</strong></a>\r\n }\r\n\r\n //Timeframe\r\n $date_time_now = date(\"Y-m-d H:i:s\");\r\n $start_date = new DateTime($date_time); //Time of post\r\n $end_date = new DateTime($date_time_now); //Current time\r\n $interval = $start_date->diff($end_date); //Difference between dates \r\n if($interval->y >= 1) {\r\n if($interval == 1)\r\n $time_message = $interval->y . \" year ago\"; //1 year ago\r\n else \r\n $time_message = $interval->y . \" years ago\"; //1+ year ago\r\n } else if ($interval-> m >= 1) {\r\n if($interval->d == 0) {\r\n $days = \" ago\";\r\n }\r\n else if($interval->d == 1) {\r\n $days = $interval->d . \" day ago\";\r\n }\r\n else {\r\n $days = $interval->d . \" days ago\";\r\n }\r\n if($interval->m == 1) {\r\n $time_message = $interval->m . \" month\". $days;\r\n }\r\n else {\r\n $time_message = $interval->m . \" months\". $days;\r\n }\r\n } else if($interval->d >= 1) {\r\n if($interval->d == 1) {\r\n $time_message = \"Yesterday\";\r\n }\r\n else {\r\n $time_message = $interval->d . \" days ago\";\r\n }\r\n } else if($interval->h >= 1) {\r\n if($interval->h == 1) {\r\n $time_message = $interval->h . \" hour ago\";\r\n }\r\n else {\r\n $time_message = $interval->h . \" hours ago\";\r\n }\r\n } else if($interval->i >= 1) {\r\n if($interval->i == 1) {\r\n $time_message = $interval->i . \" minute ago\";\r\n }\r\n else {\r\n $time_message = $interval->i . \" minutes ago\";\r\n }\r\n } else {\r\n if($interval->s < 30) {\r\n $time_message = \"Just now\";\r\n }\r\n else {\r\n $time_message = $interval->s . \" seconds ago\";\r\n }\r\n }\r\n\r\n require_once($_SERVER['DOCUMENT_ROOT'] . '/habo/includes/classes/User.php');\r\n require_once($_SERVER['DOCUMENT_ROOT'] . '/habo/includes/classes/Profile.php');\r\n\r\n $author_user_obj = new User($this->db_conn);\r\n $author_profile_obj = new Profile($this->db_conn);\r\n\r\n $author_user_info = $author_user_obj->fetch_user_by_username($author);\r\n $author_profile_info = $author_profile_obj->fetch_profile_by_id($user_id);\r\n\r\n $str .= '\r\n <div class=\"row post mb-3\">\r\n <div class=\"col\">\r\n <div class=\"row post-head pt-1 pb-1\">\r\n <input type=\"text\" readonly class=\"form-control-plaintext\" value=\"' . $id . '\">\r\n <div class=\"col-auto\"><img class=\"rounded-circle\" src=\"' . $author_profile_info['profile_pic'] . '\" width=\"50px\" height=\"50px\"/></div>\r\n <div class=\"col-8\">\r\n <div class=\"row\">\r\n <div class=\"col\" style=\"padding-left: 0px;\"><a class=\"text-primary\" href=\"' . $author . '\" style=\"text-decoration:none;\"><strong>' . $author_user_info['first_name'] . ' ' . $author_user_info['last_name'] . '</strong></a> '. $to_string . '</div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col\" style=\"padding-left: 0px;margin-top: -5px;\"><span class=\"text-secondary\" style=\"font-size:small;\">' . $time_message . '</span></div>\r\n </div>\r\n </div>\r\n <div class=\"col\">\r\n <div class=\"float-right\"><a class=\"mr-2\" href=\"#\" style=\"text-decoration: none;\">Edit</a><a class=\"text-danger delete-post\" data-post-id=\"' . $id . '\" href=\"includes/handlers/ajax_delete_post_handler.php\" style=\"text-decoration: none;\">Delete</a></div>\r\n </div>\r\n </div>\r\n <div class=\"row post-body\">\r\n <div class=\"col pt-2\">\r\n <p style=\"margin-bottom: 8px;\">\r\n ' . $body . '\r\n </p>\r\n </div>\r\n </div>\r\n <div class=\"row post-actions\">\r\n <div class=\"col\" style=\"padding-left: 20px;\">\r\n <a class=\"btn btn-link text-secondary like-post-button\" href=\"includes/handlers/ajax_like_unlike_handler.php\" data-post-id=\"' . $id . '\" role=\"button\" style=\"text-decoration:none;\"><i class=\"fa fa-thumbs-o-up\"></i> Like (' . $num_likes . ')</a>\r\n <a class=\"btn btn-link text-secondary\" role=\"button\" data-toggle=\"collapse\" href=\"#commentCollapse' . $id . '\" role=\"button\" aria-expanded=\"false\" aria-controls=\"commentCollapse' . $id . '\" style=\"text-decoration:none;\"><i class=\"far fa-comment-alt\"></i> Comment (' . $num_comments . ')</a>\r\n <div class=\"collapse\" id=\"commentCollapse' . $id . '\">\r\n <div class=\"card card-body\" style=\"border:none; padding: 0.5rem 0rem;\">\r\n <div class=\"comment-section\">\r\n </div>\r\n <div class=\"row\" style=\"background-color: #fff; padding-top: 5px;padding-bottom: 5px;\">\r\n <div class=\"col\">\r\n <form style=\"background-color: #ecf0f1; padding:5px; border-radius: 5px; margin-block-end: 0em;\">\r\n <div class=\"form-row\">\r\n <div class=\"col\"><textarea class=\"form-control form-control-sm\" id=\"post-' . $id . '-textarea\" style=\"height: 31px;\"></textarea></div>\r\n <div class=\"col-auto text-center my-auto\"><button class=\"btn btn-primary btn-sm publish-comment-button\" data-post-id=\"' . $id . '\" type=\"button\">Comment</button></div>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div> \r\n </div>\r\n </div>\r\n ';\r\n\r\n return $str;\r\n }", "title": "" } ]
[ { "docid": "46d65fa010a3047724cc916cab174cc3", "score": "0.72934484", "text": "public function getPost($id);", "title": "" }, { "docid": "1517b2b4481db7d55615bd3b0cc03d5c", "score": "0.6856059", "text": "function view($id)\n {\n $this->post = $this->model-> getPostById($id);\n }", "title": "" }, { "docid": "f6fcb10071b1e6cf6126cfc46f93dcc0", "score": "0.6855979", "text": "function findPost($id);", "title": "" }, { "docid": "409790cb8c707977ff1ad46216ae9768", "score": "0.6855551", "text": "public function getPost( $postId );", "title": "" }, { "docid": "613d98ae6582d16d39276dddeac01e6d", "score": "0.68346655", "text": "public function post($id_post) {\n $post = $this->MPost->getSinglePost($id_post);\n if ($post == NULL) {\n switch ($this->user->type) {\n case 'a': redirect($this->class_name.'/feed');\n default: redirect($this->class_name.'/profile/'.$this->user->id_user);\n }\n }\n\n $this->data['post'] = $post;\n $this->data['comments'] = $this->MComment->getComments($id_post);\n\n $this->load->view('user/post.php', $this->data);\n }", "title": "" }, { "docid": "9ddf639a922269ddda70c05b3fd4c02d", "score": "0.6807503", "text": "public function post($id);", "title": "" }, { "docid": "2a33dcfc95796f9e8a2e8bb13dc8b68d", "score": "0.67784774", "text": "public function get($post_id);", "title": "" }, { "docid": "4006092d0483c399078e64bbd46c6b27", "score": "0.6762612", "text": "public function findPost($id);", "title": "" }, { "docid": "47832e9bf9301f00411a50d5498c4e38", "score": "0.67049", "text": "public function post_page($id){\n\t\t$this->carabiner->css('_util/feed.css');\n\t\t$this->carabiner->js('_util/feed.js');\n\t\t$this->carabiner->js('_util/ajax.js');\n\t\t$this->carabiner->js('_util/alert_r.js');\n\t\t$this->carabiner->js('_util/moment.js');\n\t\t$this->carabiner->css('social/post.css');\n\t\t$this->carabiner->js('social/post.js');\n\t\t$this->layout = 'col3';\n\t\t$this->render('social/post', array(\n\t\t\t'postId' => $id,\n\t\t\t'right_chat' => true,\n\t\t));\n\t}", "title": "" }, { "docid": "bad80c15118c8847cc0edcd8a956db6e", "score": "0.66736424", "text": "public function getById($postId);", "title": "" }, { "docid": "5e1f6df3d6ebd459efa0e713f1309704", "score": "0.66715354", "text": "public function post(int $idPost)\n {\n //retrieve concerned post\n $postManager = new PostManager();\n $post = $postManager->get($idPost);\n $this->set('post', $post);\n \n //retrieve user who created post\n $userManager = new UserManager();\n $user = $userManager->get($post->idUser());\n $this->set('user', $user);\n }", "title": "" }, { "docid": "f5149f22e120d50e5e80d69df8f5d4a2", "score": "0.66441405", "text": "static public function load($id)\n {\n $stmt = Dweet::getInstance()->db->prepare('SELECT id, user_id, text, created_at FROM post WHERE id = ? LIMIT 0, 1');\n\n if ($stmt->execute(array($id))) {\n $post = null;\n\n while($row = $stmt->fetch()) {\n $post = new Post($id);\n $post->user_id = $row['user_id'];\n $post->text = $row['text'];\n $post->created_at = $row['created_at'];\n }\n\n return $post;\n }\n\n return null;\n }", "title": "" }, { "docid": "7d1479299d4ebbe0a890bcba5d362648", "score": "0.664409", "text": "private function single_post()\r\n {\r\n $postSql = new Apps\\Article(array(array(\r\n 'article.article_parent' => array( '=', 0 ),\r\n 'article.article_slug' => array( '=', $_GET['article'] ),\r\n 'article.page_id' => array( '=', CPage::$actuelle['page_id'], PDOFournie::NOT_QUOTE ),\r\n 'article.article_date_reviser' => array( '<=', 'NOW()', PDOFournie::NOT_QUOTE ),\r\n 'article.article_date_max' => array( array( '>=', 'NOW()', PDOFournie::NOT_QUOTE ), array( 'IS NULL', null ) ),\r\n )));\r\n self::setAvatar($postSql);\r\n \r\n if( $comm = $postSql->publier() )\r\n {\r\n $this->topic = $comm[0];\r\n /*\r\n foreach( $comm AS $num => $post )\r\n if( !empty($post['contenu_profil_auteurs']) )\r\n $comm[$num][] = array(unserialize($post['contenu_profil_auteurs']));\r\n */\r\n }\r\n $this->assign( 'topic', $this->topic );\r\n }", "title": "" }, { "docid": "d518f0532660b16ec14baae3f44d4a80", "score": "0.6640657", "text": "public function getPostById($id)\n {\n $sql = ' SELECT posts.ID,\n posts.post_date_gmt,\n posts.post_content,\n posts.post_title,\n posts.post_excerpt,\n posts.post_status,\n posts.post_modified_gmt,\n posts.guid,\n posts.comment_count,\n users.user_nicename,\n users.user_url,\n users.user_registered\n FROM wp_posts posts\n INNER JOIN wp_users users\n ON posts.post_author = users.ID\n WHERE posts.post_status = \"publish\"\n AND posts.post_type = \"post\"\n AND posts.ID = :id';\n\n $definition = $this->provider->newEntity($sql, ['id' => $id], [\n 'id' => new Field\\Callback('ID', function($id){\n return Uuid::nameBased($id);\n }),\n 'content' => 'post_content',\n 'title' => 'post_title',\n 'excerpt' => 'post_excerpt',\n 'status' => 'post_status',\n 'href' => 'guid',\n 'createdAt' => new Field\\DateTime('post_date_gmt'),\n 'updatedAt' => new Field\\DateTime('post_modified_gmt'),\n 'commentCount' => 'comment_count',\n 'author' => [\n 'displayName' => 'user_nicename',\n 'url' => 'user_url',\n 'createdAt' => new Field\\DateTime('user_registered'),\n ],\n ]);\n\n return $this->builder->build($definition);\n }", "title": "" }, { "docid": "a071a6e4d2ce90aa29ceb2fb9967b145", "score": "0.6556625", "text": "function single_post($post_id, $user_id)\n\t{\n\t\tglobal $connection;\n\t\t\n\t\t//Fetch all fields regarding the selected post\n\t\t$query = \"SELECT * \";\n\t\t\t$query .= \"FROM posts \";\n\t\t\t$query .= \"WHERE post_id = {$post_id} and published = 1\";\n\t\t\t\n\t\t$result = mysql_query($query, $connection);\n\t\tconfirm_query($result);\n\t\t\n\t\t$post_info = mysql_fetch_array($result);\n\t\t\n\t\tif(mysql_num_rows($result) > 0){\n\t\t\t//Check if author created a name\n\t\t\t$user = get_user_info($user_id);\n\t\t\t\n\t\t\t//If author did not save a name, the username will be displayed\n\t\t\tif($user['name'] == null){\n\t\t\t\t$author = $user['user_name'];\n\t\t\t} else {\n\t\t\t\t$author = $user['name'];\n\t\t\t}\n\t\t\t\n\t\t\t$category_name = get_category($post_info['cat_id']);\n\t\t\t$category_name = $category_name['cat_name'];\n\t\t\t\n\t\t\t//The post\n\t\t\t$post = \"<h2> {$post_info['title']} </h2>\";\n\t\t\t$post .= \"Posted on: {$post_info['date_created']}\";\n\t\t\t$post .= \" by {$author}\";\n\t\t\t$post .= \"<br /> <br /> <span id=\\\"post_content\\\"> {$post_info['content']} </span> <br /> <br />\";\n\t\t\t$post .= \"<span id=\\\"post_cat\\\"> Category: {$category_name} </span>\";\n\t\t\techo $post;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\t\n\t\t\n\t}", "title": "" }, { "docid": "282ea2314557c1d3255771c53629236c", "score": "0.65545595", "text": "public function show($id)\n {\n return Post::whereId($id)->first();\n }", "title": "" }, { "docid": "3169e23e9d5cd4374cd6e84296090685", "score": "0.6523713", "text": "public function show($id)\n {\n //\n $post = Post::findOrFail($id);\n // $post->count++;\n // $post->save();\n if ($post->users->contains(auth()->user()) == false) {\n $post->users()->attach(auth()->user()->id);\n $post->refresh();\n }\n return view('posts.show')->with('post', $post);\n }", "title": "" }, { "docid": "8fddddeb917dc703ee1881300780716b", "score": "0.65156335", "text": "public function getPost($id)\n\t{\n\t\t$post = Post::find($id);\n\n\t\tif(is_null($post))\n\t\t{\n\t\t\treturn Redirect::back();\n\t\t}\n\n\t\t$this->page->addBreadcrumb('Blog')->to('admin/blog');\n\t\t$this->page->addBreadcrumb('Post');\n\n\t\t$this->page->setContent('blog::admin.post', compact('post'));\n\t}", "title": "" }, { "docid": "6a7b938e335ab9effd34dcb0c2999b6c", "score": "0.65110004", "text": "public function showPost($id){\n return $this->postsController->getPostByID($id, ACTIVE);\n }", "title": "" }, { "docid": "e4ba0a34f740ab01087f9a39f439c4b4", "score": "0.65050286", "text": "public function getOnePost($id)\n\t{\n\t\t// Khoi tao Doi tuong BaseModel va chay __construct() cua BaseModel\n\t\t$base = new BaseModel();\n\t\t// Ket noi thuc hien ngay o construct ma khong can goi \n\t\t// $base->getConnection();\n\n\t\t$query = 'SELECT * FROM ' \n\t\t\t. PostModel::tableName() \n\t\t\t. ' WHERE ' . $id . ' = id';\n\t\t$queryData = $base->connection->prepare($query);\n\t\t$queryData->setFetchMode(PDO::FETCH_CLASS, PostModel::class);\n\t\t$queryData->execute();\n\n\t\t$post = $queryData->fetch();\n\n\t\treturn $post;\n\t}", "title": "" }, { "docid": "3f39df2dd57ab4b9dfed1fc404025a5a", "score": "0.6502874", "text": "public function show($id)\n {\n $post = Post::published()->where('id', $id)->firstOrFail();\n return $post;\n }", "title": "" }, { "docid": "ca40b6a3be39afa37d2aaf647aa5a4a4", "score": "0.64914936", "text": "public function post($id){\n $post = BlogPost::where('id', $id)->first();\n $post->view_count +=1;\n $post->save();\n return BlogPost::where('id',$id)->with('category', 'user')->first();\n }", "title": "" }, { "docid": "4490d24a5b9c38d03c215a14dc5f44bd", "score": "0.64820254", "text": "public function view($id){\n\t\t$this->Post->id = $id;\n\t\t$this->set('post', $this->Post);\n\t}", "title": "" }, { "docid": "048d8b332b6c680d4346b4e1f8e19523", "score": "0.6475392", "text": "function getPostOfUser($idUser)\n {\n }", "title": "" }, { "docid": "f03010bfea65cdf9c81c106c6cad2526", "score": "0.64244974", "text": "function get_post($id_post) {\n\n\n // Include Modelos DB\n $this->load->model('tables/Posts_table');\n\n // Conexion\n $this->load->model('Conn_model');\n $link = $this->Conn_model->Conexion();\n\n // Consulta\n $ssql = \"select * from wp_posts where ID = \" . $id_post . \" and post_status = 'publish' and post_type = 'post' order by id desc\";\n\n // Ejecucion Consulta\n $result = mysqli_query($link, $ssql);\n\n // Arreglo Consulta\n $row = mysqli_fetch_assoc($result);\n\n // Creacion de Objeto\n $post = new Posts_table();\n $post = $this->toPosts($post, $row);\n\n // Cerrar Conexion\n mysqli_close($link);\n\n // Retorno\n return $post;\n }", "title": "" }, { "docid": "accd5cd2bba6869f39e58c7cd7182bf7", "score": "0.64192486", "text": "public function getUserPost($id)\n {\n return Post::where('create_user_id', '=', $id)->paginate(2);\n }", "title": "" }, { "docid": "7a2bb939917e6e550c9e06e3922d4b15", "score": "0.64162946", "text": "public function show( StoreBlogPost$id)\n {\n echo 1;\n }", "title": "" }, { "docid": "6cf063c38796573afa148e77afd3ab6c", "score": "0.63814193", "text": "public function show($id){\n //taking the row from the DB\n $thePost = $this->postModel->getPostById($id);\n //looking in model folder for getPostById method\n\n // getting the user informations from user model imported in the constructor as userModel\n $userInfos = $this->userModel->getUserById($thePost->user_id); \n $data =[\n \"thePost\" => $thePost,\n \"userInfos\" =>$userInfos\n ];\n\n $this->view(\"posts/show\",$data);\n }", "title": "" }, { "docid": "39701b82ac8885728395a95d4c2156dc", "score": "0.6374875", "text": "public function show($id)\n\t{\n\t\t$post = Post::find($id);\n\t\treturn $post;\n\t}", "title": "" }, { "docid": "d8711d552c6f20ad7a7e61e5750bb02c", "score": "0.6372949", "text": "public static function post($post_id)\n {\n $post_data = Data::find('Posts', array('PostID' => $post_id));\n \n if(empty($post_data))\n {\n self::not_found();\n }\n \n self::_set_data('Permalink', $post_data, array());\n }", "title": "" }, { "docid": "7b543ab44d576a901d4140208f2e262c", "score": "0.637002", "text": "function getPostById($pid)\r\n\t{\r\n\t\treturn new AntApi_BlogPost($this->server, $this->username, $this->password, $this->fid, $pid);\r\n\t}", "title": "" }, { "docid": "557cbe49b1af74559f9684c4b58fe3ef", "score": "0.63695407", "text": "public function show($id) {\n $post = $this->post->find($id);\n return $post;\n }", "title": "" }, { "docid": "f75c484f30d6bdb4d328d5e7c5ccdb19", "score": "0.6343658", "text": "public function single($id = null, $bIsPreview = false)\n {\n $oUri = Factory::service('Uri');\n\n // Get the single post by its slug\n if ($id) {\n $this->data['post'] = $this->blog_post_model->getById($id);\n } else {\n $this->data['post'] = $this->blog_post_model->getBySlug($oUri->rsegment(3));\n }\n\n // --------------------------------------------------------------------------\n\n // Check we have something to show, otherwise, bail out\n if (!$this->data['post']) {\n show404();\n }\n\n // --------------------------------------------------------------------------\n\n /**\n * If this post's status is not published then 404, unless logged in as a user\n * with post managing permissions.\n */\n if (!$this->data['post']->is_published || strtotime($this->data['post']->published) > time()) {\n\n /**\n * This post hasn't been published, or is scheduled. However, check to see\n * if the user has post management permissions.\n */\n if (!userHasPermission('admin:blog:post:' . $this->oBlog->id . ':manage')) {\n\n show404();\n }\n }\n\n // --------------------------------------------------------------------------\n\n // Get associations\n $this->blog_model->getAssociations($this->data['post']->id);\n\n // --------------------------------------------------------------------------\n\n // Correct URL?\n if (!$bIsPreview && siteUrl(uri_string()) !== $this->data['post']->url) {\n\n redirect($this->data['post']->url, 301);\n }\n\n // --------------------------------------------------------------------------\n\n // Widgets\n $this->fetchSidebarWidgets();\n\n // --------------------------------------------------------------------------\n\n // Meta\n $this->data['page']->title = $this->oBlog->label . ': ';\n $this->data['page']->title .= $this->data['post']->seo_title ? $this->data['post']->seo_title : $this->data['post']->title;\n $this->data['page']->seo->description = $this->data['post']->seo_description;\n $this->data['page']->seo->keywords = $this->data['post']->seo_keywords;\n\n // --------------------------------------------------------------------------\n\n $this->data['isSingle'] = true;\n\n // --------------------------------------------------------------------------\n\n // Load views\n $oView = Factory::service('View');\n $oView->load('structure/header', $this->data);\n $this->loadView('single', $this->data);\n $oView->load('structure/footer', $this->data);\n\n // --------------------------------------------------------------------------\n\n // Register a hit\n $oInput = Factory::service('Input');\n\n $data = array();\n $data['user_id'] = activeUser('id');\n $data['referrer'] = $oInput->server('HTTP_REFERER');\n\n $this->blog_post_model->addHit($this->data['post']->id, $data);\n }", "title": "" }, { "docid": "344d98a43bd3c0f99bcad75f4c3460ad", "score": "0.63381255", "text": "public function loadPost($id=null)\n {\n if($this->_model===null)\n {\n if($id!==null || isset($_GET['id']))\n $this->_model=Post::model()->findbyPk($id!==null ? $id : $_GET['id']);\n if($this->_model===null || Yii::app()->user->status!=User::STATUS_ADMIN && Yii::app()->user->status!=User::STATUS_WRITER && $this->_model->status!=Post::STATUS_PUBLISHED)\n throw new CHttpException(404,'The requested page does not exist.');\n }\n return $this->_model;\n }", "title": "" }, { "docid": "d07c71e5b082cfea09dd634c99e3dea2", "score": "0.63319576", "text": "private function set_post_id() {\n\t\tif ( ! isset( $_GET['post'] ) ) {\n\t\t\treturn null;\n\t\t}\n\t\t$this->post_id = $_GET['post'];\n\t}", "title": "" }, { "docid": "e938a74c984f2da64d48b1aef6dad76b", "score": "0.6311313", "text": "public function idAction($id = null)\n{\n $post = $this->content->find($id);\n \n $this->theme->setTitle(\"Innehåll\");\n $this->views->add('content/view', [\n 'post' => $post,\n ], 'main');\n //$this->views->add('users/adminmenu', [], 'sidebar');\n}", "title": "" }, { "docid": "8e17aa17a232df7b0ad06419a30f5c61", "score": "0.6302665", "text": "public function getId($id){\n\t\t$posts = $this->model('PostModel');\n\t\t$this->post_index = $posts->get($id);\n\t\tif ($this->post_index) {\n\t\trequire VIEWS_PATH.'layouts/header.php';\n\t\trequire VIEWS_PATH.'posts/post_index.php';\n\t\trequire VIEWS_PATH.'layouts/footer.php';\n\t\t}\n\t}", "title": "" }, { "docid": "e35bd4f96fedf02048a82b634befebfb", "score": "0.6293982", "text": "public function imported_post( $id, $data ) {\n\t\t$this->emit_sse_message( array(\n\t\t\t'action' => 'updateDelta',\n\t\t\t'type' => ( $data['post_type'] === 'attachment' ) ? 'media' : 'posts',\n\t\t\t'delta' => 1,\n\t\t));\n\t}", "title": "" }, { "docid": "dbfc177b004773367e08c97905bda2a9", "score": "0.62774134", "text": "public function show($id){\n $post = $this->postModel->getPostById($id);\n $user = $this->userModel->getUserById($post->user_id);\n $comments = $this->commentModel->getCommentsByPostId($id);\n $navs = $this->navModel->getNavLinks();\n $icons = $this->iconModel->getIcons();\n $logo = $this->logoModel->getLogoById(1);\n \n\n $data = [\n 'post' => $post,\n 'user' => $user,\n 'comments' => $comments,\n 'navs' => $navs,\n 'icons' => $icons,\n 'logo' => $logo,\n ];\n\n $this->view('posts/show', $data);\n\n }", "title": "" }, { "docid": "b477fedfcc1869d13c005ead72a57d02", "score": "0.6276932", "text": "public function show($id)\n {\n try {\n return $this->postService->findPostById($id);\n } catch (\\Exception $e) {\n abort(500);\n }\n }", "title": "" }, { "docid": "46502ab8ada22f4242029cb041bb5146", "score": "0.6264106", "text": "public function getPost($id)\n {\n try\n {\n $db = $this->dbConnect();\n $req = $db->prepare('SELECT id, title, content, lien_image, DATE_FORMAT(date_post, \"Publié le %d/%m/%Y\") AS creation_date_fr FROM posts WHERE id = ?');\n $req->execute(array($id));\n $post = $req->fetch();\n return $post;\n }\n catch(Exception $e)\n {\n die('Erreur : '.$e->getMessage());\n }\n }", "title": "" }, { "docid": "4b535e42051ca5ed88d19aa48c58bff9", "score": "0.62593067", "text": "public function show($id)\n {\n // Get post data\n $post = $this->postsModel->getPostById($id);\n $user = $this->usersModel->getUserById($post->user_id);\n \n $data = [\n 'post' => $post,\n 'user' => $user\n ];\n\n $this->view('posts/show', $data);\n }", "title": "" }, { "docid": "dc196b4466b598f0b232dd562c14a7aa", "score": "0.62444663", "text": "public function getSinglePost($id) {\n\n $response = $this->repo->getSinglePost($id);\n\n if ( $response ) {\n\n return ResponseBuilder::success($response);\n\n } else {\n // Error\n return ResponseBuilder::error(ApiCode::SOMETHING_WENT_WRONG);\n }\n }", "title": "" }, { "docid": "4eff2c5420b6171900d1852bdfd646c0", "score": "0.62248385", "text": "public function getPostByID($id){\n\t\t$prep=$this->con->prepare(\"SELECT * FROM `post` WHERE ID=:id\");\n\t\t$prep->execute(array(':id'=>$id));\n\t\t$this->apost = $prep->fetch();\n\t\t$prep->closeCursor();\n\t\treturn $this->apost;\n\t}", "title": "" }, { "docid": "2adead8a0e7730638454196bd273acef", "score": "0.6221712", "text": "public function show($id)\n {\n\n $blogModel = $this->model(\"BlogModel\");\n $data['post'] = $blogModel->getOne($id);\n\n \n $this->view(\"blog/single\", $data);\n }", "title": "" }, { "docid": "559d45194083cc273ecf1a7655e4bbd2", "score": "0.6219385", "text": "public function show($id)\n {\n try{\n $post = $this->postService->getById($id);\n\n // $obj = array();\n // foreach (json_decode($post) as $key => $value)\n // {\n // $obj[$key] = $value;\n // }\n \n // $obj['user_name'] = $post -> users -> name;\n // $obj['user_web'] = $post -> users -> user_web;\n // $obj['user_avatar'] = $post -> users -> user_details -> avatar;\n // $obj['time_before'] = $this -> postService -> calculateTimeBefore($post -> created_at);\n // $obj['number_comment'] = $post -> comment_posts -> count();\n\n $post -> user_name = $post -> users -> name;\n $post -> user_web = $post -> users -> user_web;\n $post -> user_avatar = $post -> users -> user_details -> avatar;\n $post -> time_before = $this -> postService -> calculateTimeBefore($post -> created_at);\n $post -> number_comment = $post -> comment_posts -> count();\n $post -> tags = $post -> tags;\n\n if($post != null){\n return response() -> json([\n 'status' => true,\n 'code' => 200,\n 'post' => $post,\n ]);\n }else{\n return response() -> json([\n 'status' => false,\n 'code' => 404,\n 'message' => \"Not Found\"\n ]);\n }\n\n }catch(\\Exception $e){\n return response() -> json([\n 'status' => false,\n 'code' => 404,\n 'message' => $e->getMessage(),\n ]);\n }\n }", "title": "" }, { "docid": "888d6509db1b82399a4d32cb88203d65", "score": "0.62162685", "text": "public function getById($id){\r\n\t\r\n\t/* TEST IF 'ID' IS NUMERIC */\r\n if(!is_numeric($id)) return null;\r\n\t \r\n $res = execQuery(\"SELECT * from Post Where idPost=\".$id);\r\n\t\r\n\t/* TEST IF TABLE EXIST */\r\n\tif(!$res) return null;\r\n\t\r\n\t$data = mysqli_fetch_row($res);\r\n\t$post = new Post($data[0],$data[1],$data[2],$data[3],$data[4],$data[5],$data[6]);\r\n return $post;\r\n }", "title": "" }, { "docid": "c428d20925c2d9d6c1ad39d8c066a0d3", "score": "0.62135565", "text": "function post($postID){\n $data['post']=$this->post->get_post($postID);\n $this->load->view('post',$data);\n\n }", "title": "" }, { "docid": "dc22b5e3cf4846d0162da448389a9c43", "score": "0.6196182", "text": "public static function loadPost($id)\n {\n if (!is_numeric($id) || $id < 0 || $id >= BlogPost::NUMBER_OF_POSTS) {\n return null;\n }\n return new BlogPost(\n $id,\n 'Hello Post ' . ($id + 1) . '!',\n 'This is blog post #' . ($id + 1),\n 'I am the content of blog post #' . ($id + 1) . '. Thanks for checking me out!'\n );\n }", "title": "" }, { "docid": "9837628a13b5f9986da3580c5d1aa433", "score": "0.61894065", "text": "public function show($id)\n {\n return Post::find($id);\n }", "title": "" }, { "docid": "e3e181a1a0ac20b835b1eb282f819ffc", "score": "0.6183283", "text": "function pshb_publish_post( $post_id ) {\n\t// get default feeds\n\t$feed_urls = pshb_get_feed_urls();\n\n\t// publish them\n\tpshb_publish_to_hub( $feed_urls );\n\n\treturn $post_id;\n}", "title": "" }, { "docid": "4696eaa0e3f22ae7a39bc8873f321457", "score": "0.6158746", "text": "public function show($id)\n {\n $post = User::find($id);\n if (!$post) {\n return response()->json([\n \"status\"=>false,\n \"message\"=> \"Post not found\"\n ])->setStatusCode(404);\n }\n // Gate::authorize('roles-user',[$post]);\n return $post;\n }", "title": "" }, { "docid": "afc7e1ba9ae72416e9fe9b02f3839bd1", "score": "0.61560464", "text": "protected function get_post( $post_id ) {\n\t\treturn $this->model->post->get( $post_id, $this->curlang );\n\t}", "title": "" }, { "docid": "dac0434a7cb0376b6cdd68248231dfe7", "score": "0.6152887", "text": "public function show($id)\n {\n $post = Post::with('user')->where('slug', $id)->first();\n return $post;\n }", "title": "" }, { "docid": "d5add8dffca4d4fe03aabdf7f321b051", "score": "0.61485493", "text": "public function show($id)\n {\n return Post::findOrFail($id);\n }", "title": "" }, { "docid": "e806b9d5683fc5e8ce4795e04de12a25", "score": "0.6125083", "text": "public function show($id)\n {\n $post = $this->post->find($id);\n\n if(!$post) {\n abort(404);\n }\n\n return $post;\n }", "title": "" }, { "docid": "01f9bcf51ef1abe2a2c0024fcb656156", "score": "0.61236894", "text": "public function admin_edit($id = NULL){\n\t\t$this->loadModel('Post');\n\t\tif($id === NULL){\n\t\t\t$post = $this->Post->findFirst(array(\n\t\t\t\t'conditions' => array('online' => -1)\n\t\t\t));\n\t\t\tif(!empty($post)){\n\t\t\t\t$id = $post->id;\n\t\t\t}else{\n\t\t\t\t$this->Post->save(array(\n\t\t\t\t\t'online' => -1\n\t\t\t\t));\n\t\t\t\t$id = $this->Post->id;\t\n\t\t\t}\n\t\t}\n\t\t$d['id'] = $id;\n\t\tif($this->request->data){\n\t\t\tif($this->Post->validates($this->request->data)){\n\t\t\t\t$this->request->data->type = 'post';\n\t\t\t\tif(empty($this->request->data->created)){\n\t\t\t\t\t$this->request->data->created = date(\"Y-m-d H:i:s\"); // MySQL date format\n\t\t\t\t}else{\n\t\t\t\t\t$this->request->data->created = date($this->request->data->created . ' h:i:s');\n\t\t\t\t}\n\n\t\t\t\t/* Check if the slug already exists */\n\t\t\t\tif(!$this->Post->checkSlug($this->request->data->slug, $id)){\n\t\t\t\t\t$this->Post->save($this->request->data);\n\t\t\t\t\t$this->Flash->create('The post is saved');\n\t\t\t\t\t$this->redirect('admin/posts/index');\n\t\t\t\t}else{\n\t\t\t\t\t$this->Flash->create('There another slug with this name, slug has to be unique.', 'alert');\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t$this->Flash->create('You have to complete the form', 'alert');\n\t\t\t}\n\n\t\t}else{\n\t\t\t$this->request->data = $this->Post->findFirst(array(\n\t\t\t\t'conditions' => array('id' => $id)\n\t\t\t));\n\t\t}\n\t\t$this->loadmodel('Category');\n\t\t$d['categories']['list'] = $this->Category->find(array(\n\t\t\t'conditions' => array('type' => 'post')\n\t\t));\n\n\t\t/* Load the editor output */\n\t\t$d['the_editor'] = $this->Post->the_editor();\n\n\t\t$this->set($d);\n\t}", "title": "" }, { "docid": "00489e03fc7ff273a07a38d85e39974a", "score": "0.6119829", "text": "public function createPost() {\n $this->Posting->hasLikePermission = true;\n $this->Posting->hasCommentPermission = true;\n $result = $this->Posting->createPost();\n\n if (isset($result['data'])) {\n $view = new View($this, false);\n $data = $result['data'];\n $element = $data['element'];\n unset($data['element']);\n\t\t\t$data['loggedIn'] = $this->Auth->loggedIn();\n\t\t\t$data['loggedin_userid'] = $this->Auth->user('id');\n\t\t\t$data['loggedin_user_type'] = $this->Auth->user('type');\n $view->set($data);\n $viewContent = $view->element($element);\n unset($result['data']);\n $result['content'] = $viewContent;\n }\n \n try{\n //$posted_in = \"users\";\n //$posted_in_id = \"60\";\n //$posted_in_room = $posted_in.'/'.$posted_in_id;\n// App::import('Vendor', 'elephantio/client');\n// $elephant = new ElephantIO\\Client(Configure::read('SOCKET.URL'), 'socket.io', 1, false, true, true);\n// $elephant->init();\n// $elephant->emit('new_post' , \n// array(\n// \"room\" => $posted_in_room, \n// \"post_id\" => $data['postId'],\n// \"name\" => $data['postedUserName'],\n// \"message\" => $data['description']));\n// \n// $elephant->close(); \n } \n catch(Exception $e)\n {\n \n }\n $this->data = $result;\n }", "title": "" }, { "docid": "ed4139cdef860f84faac9dc163ee91bd", "score": "0.6111579", "text": "public function get_post_by_id($id){\n $post = post::findOrFail($id);\n return view('post',['value'=>$post]);\n }", "title": "" }, { "docid": "8129949456cf7f507df2cd380467393a", "score": "0.610516", "text": "public function single(int $id): Response\n {\n\n $homePageService = new FakePostPageService();\n $post = $homePageService->getPostById($id);\n\n return $this->render('post/single.html.twig', [\n 'post' => $post,\n ]);\n\n }", "title": "" }, { "docid": "6e2bf5a4432be4aae205ec4a7ec4a748", "score": "0.61033964", "text": "public function show($id) {\n $post = $this->postService->getPost($id);\n // Log::info(json_encode($post));\n\n return response()->json([\n \"code\" => 0,\n \"data\" => $post,\n ], 200);\n }", "title": "" }, { "docid": "06e20c0050641e516aaba27ba0e2b809", "score": "0.61027473", "text": "public function get_single($id);", "title": "" }, { "docid": "fa08125aa263b5d56671ed43f69ffd6b", "score": "0.60970217", "text": "function get_post_by_id($id) {\n\n $link = connectDB();\n // WARNING NTU NTU NTU NTU\n $result = $link->query(\"SELECT id, title, content FROM post WHERE id=$id\");\n $result->setFetchMode(PDO::FETCH_CLASS, 'Post');\n $post = $result->fetch();\n killDB($link);\n return $post;\n}", "title": "" }, { "docid": "e97debfc639bff61186fbd9960618037", "score": "0.6090084", "text": "public function findById($id)\n {\n return Post::find($id);\n }", "title": "" }, { "docid": "9541dc812b5e1d2d4c385d00081bfed7", "score": "0.60879827", "text": "public function getParticulerPost($id)\n {\n $post = $this->postService->findBy('id', $id, 'post')->first();\n\n if (!$post) {\n return response($this->responseHelper->jsonResponse(['code' => '0081', 'post' => $post]));\n }\n\n $data[0] = $post;\n\n $this->postService->includeImageInPostResponse($data);\n $this->postService->includeUserInPostResponse($data);\n\n return $this->responseHelper->jsonResponse(['code' => '0072', 'posts' => $post], 1);\n }", "title": "" }, { "docid": "f4f1c315a740383f7543e015e10d0719", "score": "0.60815144", "text": "public function show($id)\n {\n $post = Post::with(['likes','comments','client','photos' ,'share','master'])->find($id);\n if($post <> null)\n return view('frontend.post.show' ,compact('post'));\n return redirect()->back();\n }", "title": "" }, { "docid": "bc4f8dbc9377690f419bba58e471ee2f", "score": "0.60701615", "text": "public function p_add(){\n\t\t\t$_POST['user_id'] = $this->user->user_id;\n\n\t\t\t#Add Unix time stamp for the post\n\t\t\t$_POST['created'] = Time::now();\n\t\t\t$_POST['modified'] = Time::now();\n\n\t\t\t#Insert\n\t\t\tDB::instance(DB_NAME)->insert('posts', $_POST);\n\t\t\tRouter::redirect(\"/posts\");\n\t\t}", "title": "" }, { "docid": "8934848af5b3429331b58722a9b12d3b", "score": "0.606848", "text": "public function event_bb_new_post($post_id = 0)\r\n\t{\r\n\t\tglobal $bb;\r\n\t\t$post = bb_get_post( $post_id );\r\n\r\n\t\t// if the \"author\" is the anonymous id, then let's save the name in the post meta \r\n\t\tif ( $this->_anon_user_id == $post->poster_id ) {\r\n\t\t\t$email = wp_specialchars(filter_var($_POST['email'], FILTER_SANITIZE_EMAIL));\r\n\t\t\t$name = wp_specialchars(filter_var($_POST['author'], FILTER_SANITIZE_STRING));\r\n\t\t\t$url = filter_var($_POST['url'], FILTER_SANITIZE_URL);\r\n\r\n\t\t\t$cookiehash = md5(bb_get_option( 'uri' ));\r\n\t\t\t$comment_cookie_lifetime = apply_filters('comment_cookie_lifetime', 30000000);\r\n\t\t\tsetcookie('comment_author_' . $cookiehash, $name, time() + $comment_cookie_lifetime, $bb->cookiepath, $bb->cookiedomain);\r\n\t\t\tsetcookie('comment_author_email_' . $cookiehash, $email, time() + $comment_cookie_lifetime, $bb->cookiepath, $bb->cookiedomain);\r\n\t\t\tsetcookie('comment_author_url_' . $cookiehash, esc_url($url), time() + $comment_cookie_lifetime, $bb->cookiepath, $bb->cookiedomain);\r\n\t\r\n\t\t\t// associate the user of this post with correct username / email\r\n\t\t\tbb_update_postmeta( $post_id, '_anon_user_name', $name );\r\n\t\t\tbb_update_postmeta( $post_id, '_anon_user_email', $email );\r\n\t\t\tbb_update_postmeta( $post_id, '_anon_user_url', $url );\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7c91977923199ba87244a34c29abed21", "score": "0.6062389", "text": "function set_postdata( $post_id ){\n\tglobal $blog;\n\treturn $blog->set_postdata( $post_id );\n}", "title": "" }, { "docid": "22cd87422908303d77848bf4d0c805bd", "score": "0.6051841", "text": "public function show($id)\n {\n return \\App\\Posts::where('id', $id)->with(['image:id,url'])->first();\n }", "title": "" }, { "docid": "46cec062ab3e147763589799f4307111", "score": "0.605143", "text": "protected function getPost() {\n\n\t\tglobal $sp_post_id;\n\n\t\tif ( is_null( self::$post ) ) {\n\n\t\t\tself::$post = get_post( $sp_post_id );\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "5316f0a66e67c2ce62f1e35587987aaa", "score": "0.60501397", "text": "public function action_post(){\n\t\t$id = $this->request->param('id'); //pobieramy id do edycji\n\t\t$modelBlog = new Model_Blog(); //tworzymy model\n\t\t$post = $modelBlog->getId($id); //pobieramy wszystkie dane do widoku \n\t\t$modelGallery = new Model_Gallery;\n\t\t$gallery = false;\n\t\tif (isset($post['gallery']))\n\t\t{\n\t\t\t$gallery = $modelGallery->getGallery($post['gallery']);\n\t\t}\n\t\t\n\t\tif ($post['title'] == null) {\n\t\t\t$this->template->content = View::factory('/error/index')\n \t->set('error_title',\"Strony nie odnaleziono 404\")\n\t\t\t\t\t->set('error_content',\"Niestety nie posiadamy strony o podanym adresie\" ); \n\t\t} else {\n\t\t\t$this->_title = $post['title'].\" - \". $this->_title;\n\t\t\t$this->_keywords = $post['tags'] .\", \". $this->_keywords ;\n\t\t\t$this->_description = $this->_description .\". \".$post['desc'] ;\n\t\t\t$this->template->content = View::factory($this->template_name.'/blog/post')\n\t\t\t \t ->set('post',$post)\n\t\t\t \t ->set('img',$gallery);\n\t\t\t$leftmenu = $modelBlog->getList(); ; \n\t\t\t//$this->template->content->leftmenu = $leftmenu;\n\t\t} // end if \n\t}", "title": "" }, { "docid": "6eec04efae8d61e4b8bdcb523d0d297f", "score": "0.604979", "text": "public function p_add() {\n \n $_POST['user_id'] = $this->user->user_id;\n $_POST['created'] = Time::now();\n $_POST['modified'] = Time::now();\n \n DB::instance(DB_NAME)->insert('posts',$_POST);\n \n Router::redirect('/posts/');\n \n }", "title": "" }, { "docid": "3db083722d2f042fb3ef3bf4957c2a44", "score": "0.6048181", "text": "public function actionPost($id)\n {\n if (null === $entry = get_post_by('id', $id, ['with' => 'category'])) {\n throw new NotFoundHttpException(Yii::t('app', 'The requested page does not exist.'));\n }\n \n update_post_counter($entry->id);\n\n return $this->render('entry', [\n 'entry' => $entry\n ]);\n }", "title": "" }, { "docid": "7023bc3cfd504357897bec1cb83cf020", "score": "0.60478854", "text": "public function show($id){\n\n $userWithAllData = 0;\n if (Auth::user()) {\n $userWithAllData = User::with(\n 'pictures',\n 'unreadNotifications',\n 'notifications',\n 'unreadMessages',\n 'friends',\n 'friendOf'\n )->find(Auth::user()->id);\n }\n $post_id = $id;\n return view('posts.show', compact('userWithAllData', 'post_id'));\n }", "title": "" }, { "docid": "5e516c732bc796243af869a7c4cce52d", "score": "0.60434014", "text": "public function show($id)\n {\n $post = Post::find($id);\n\n if ($post)\n {\n return view('admin.posts.show', compact('post'));\n }\n else\n {\n return redirect()->route(\"admin.posts.index\")->with([\n \"warning\" => \"Cet article n'existe pas.\"\n ]);\n }\n }", "title": "" }, { "docid": "c56e9783a527d998ad08a0b788c99173", "score": "0.60370684", "text": "public function show($id)\n {\n //getting all blog and showing in admin page where blog is exist\n\n }", "title": "" }, { "docid": "c6ec0a98ec36a27b82eee26190cca272", "score": "0.6036668", "text": "public function show(Request $request, $id)\n {\n $user = JWTAuth::parseToken()->authenticate();\n $post = Post::find($id);\n\n if (Gate::forUser($user)->allows('blog-show', $post)) {\n $json = $this->prepareItemData($post, $post->author);\n\n if($post->asset){\n $json['asset'] = [\n 'url' => $this->getFileURL((object)[\n 'file_id' => $post->asset->id,\n 'path' => $post->asset->path,\n 'name' => $post->asset->name,\n 'public'=> $post->asset->public,\n ]),\n 'type' => $post->asset->content_type\n ];\n }\n\n return response()->json([\n 'success' => true,\n 'post' => $json\n ]);\n\n }else{\n return response()->json([\n 'success' => false,\n 'errors' => ['You are not the author of this post.']\n ],403);\n }\n }", "title": "" }, { "docid": "0abd2d1c86aeab04fe7472bab30a5274", "score": "0.6035134", "text": "public function single($id);", "title": "" }, { "docid": "98c6110788059fae27b2a004f6589bb2", "score": "0.6034435", "text": "function createPost();", "title": "" }, { "docid": "b10f7efb6038f6f3ce5d4b63650c1faf", "score": "0.60317427", "text": "public function getId($id){\n $idPost = $this->hashids->decode($id)[0];\n $conex = $this->pdo;\n $sql = 'SELECT\n u.idUser, p.idPost, u.first_name,\n u.last_name, p.title, p.content, p.summary,\n p.data_start, p.data_updated,\n g.idGalery, g.urlImage\n FROM user_post AS up\n INNER JOIN user AS u\n ON up.userId = u.idUser\n INNER JOIN post AS p\n ON up.postId = p.idPost\n INNER JOIN galery AS g\n ON p.galeryId = g.idGalery\n WHERE up.postId = ?\n ORDER BY p.idPost DESC';\n $query = $conex->prepare($sql);\n $query->execute(\n array(\n intval($idPost)\n )\n );\n $result = null;\n /* 2. encriptar IDs */\n if($query->rowCount()!=0){\n $result = $query->fetchObject();\n $result->idUser = $this->hashids->encode($result->idUser);\n $result->idPost = $this->hashids->encode($result->idPost);\n $status = true;\n $message = \"Encontrado con éxito\";\n }\n else{\n $result = null;\n $status = false;\n $message = \"No se encontro ningun resultado\";\n }\n /* 3. retornar valores en un array */\n return $this->response->send(\n $result,\n $status,\n $message,\n []\n );\n }", "title": "" }, { "docid": "64cef4b7bd86cd424b38f2b41c3e012e", "score": "0.60275704", "text": "public function getPostById($id){\r\n\t\t\r\n\t\t$this->query('SELECT * FROM posts WHERE id=:id');\r\n\t\t$this->bind(':id', $id ) ;\r\n\t\t$row = $this->single();\r\n\t\treturn $row;\r\n\t}", "title": "" }, { "docid": "e6dbdc689d3c051c45a7239f9f621881", "score": "0.60275036", "text": "public function p_add()\n {\n $_POST = DB::instance(DB_NAME)->sanitize($_POST);\n \n # Associate this post with this user\n $_POST['user_id'] = $this->user->user_id;\n \n # Unix timestamp of when this post was created / modified\n $_POST['created'] = Time::now();\n $_POST['modified'] = Time::now();\n \n # Insert the post date to the database\n DB::instance(DB_NAME)->insert('posts', $_POST);\n \n # Send them to the posts list where they can view their new post\n Router::redirect(\"/posts/index/confirmation\");\n \n }", "title": "" }, { "docid": "b1ec1d148ae66f978bbe9f07596a84bc", "score": "0.60265815", "text": "function get_full_post()\n {\n\n \trequire(\"connect.php\");\n\n $sql=\"SELECT * FROM blog WHERE id = ('{$_GET[\"id\"]}')\";\n\n $result = $db->query($sql);\n\n if (isset($_GET[\"id\"]) and is_numeric($_GET[\"id\"]))\n \t{\n\n \t\t$row = $result->fetch_assoc();\n\n echo \"<ul>\";\n\n if ($row == null)\n {\n header(\"Location: index.php\");\n }\n else\n {\n \t\t\techo \"<li>\" . \"<h2>\" . \"<a href='fullpost.php?id={$row[\"id\"]}'>\" . $row[\"title\"] . \"</a>\" . \"</h2>\" .\n \"<span class='tiny'>\" . date_format(date_create($row[\"date\"]), 'F jS\\, Y\\, g:ia') . \n \" - <a href='editpost.php?id={$row[\"id\"]}'>\" . \"Edit post\" . \"</a>\" . \"</span>\" . \"<p>\" . $row[\"content\"] . \n \"</p>\" . \"</li>\";\n }\n\n echo \"</ul>\";\n \t}\n else\n {\n header(\"Location: index.php\");\n }\n }", "title": "" }, { "docid": "cbf1b49c8275245568598895c6deeff1", "score": "0.6026186", "text": "public function getPost($id) {\n $post = Post::where('id', $id)->with('likes')->first();//Here we use our find fetch method to find single post with this $id and replace it with compex eloquent query using when() and firs()\n return view('blog.post', ['post' => $post]);// here we retrun View response object and pased retrived data to the our view\n }", "title": "" }, { "docid": "fa8510a35c6c571c2704c3e7e498b64f", "score": "0.6017458", "text": "public function __construct($id)\n {\n $post = Post::where(\n [\n 'id' => $id,\n 'status' => 'published'\n ]\n )->first();\n\n if ($post) {\n $post['description'] = Post::parseContent($post['description']);\n $video_file = PostsMeta::getMetaData( $post->id, 'video' );\n $video_extension = empty( $video_file ) ? '' : substr($video_file, strrpos($video_file,\".\") + 1);\n $post['video'] = !empty( $video_file ) ? asset(\"storage/posts/original/{$video_file}\") : '';\n $post['video_type'] = $video_extension == 'mp4' ? 'video/mp4' : ( $video_extension == 'webm' ? 'video/webm' : '' );\n }\n\n $this->post = $post;\n }", "title": "" }, { "docid": "190b485fffd67c8909f854ba31f45099", "score": "0.60170704", "text": "public function detail_postAction($id){\n $em= $this->getDoctrine()->getManager();\n $post= $em->getRepository('GRHGrhBundle:Post')->find($id);\n $employe= $em->getRepository('GRHGrhBundle:Employe')->findOneByPost($id);\n \n if (!$post) {\n # code...\n throw $this->createNotFoundException('No guest found for id '.$id);\n }\n \n\n return $this->render('GRHGrhBundle:Post:detail_post.html.twig',array('post'=>$post,'employe'=>$employe)); \n \n }", "title": "" }, { "docid": "edbcc552e16fb67e642bf24dd48e5501", "score": "0.60137933", "text": "public function user_preview_post( $post_id )\r\n\t\t{\r\n\t\t\tglobal $cont;\r\n\t\t\t\r\n\t\t\t$initial_count = 1;\r\n\t\t\t$stmt = $cont->prepare( \"SELECT * FROM admin_post WHERE post_id = :post_id\" );\r\n\t\t\t$stmt->bindParam( 'post_id', $post_id, PDO::PARAM_INT );\r\n\t\t\tif( $stmt->execute() )\r\n\t\t\t{\r\n\t\t\t\twhile( $row = $stmt->fetch() )\r\n\t\t\t\t{\r\n\t\t\t\t\t/** initial store 0 in DB and nex stap store 1, 2, 3,...n */\r\n\t\t\t\t\t$post_count = $row['post_view_count'];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/**\r\n\t\t\t * when call on-index.php page\r\n\t\t\t * @return $count = 0 and $post_count = 0; otherwise return post from BD.\r\n\t\t\t */\r\n\t\t\tif( isset($post_count) )\r\n\t\t\t\t$count = $post_count + $initial_count;\t\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$count = 0; \r\n\t\t\t\t$post_count = 0; \r\n\t\t\t}\r\n\r\n\t\t\t$stmt = $cont->prepare( \"UPDATE admin_post SET post_view_count = $count WHERE post_id = :post_id\" );\r\n\t\t\t$stmt->bindParam( 'post_id', $post_id, PDO::PARAM_INT );\r\n\t\t\t$stmt->execute();\r\n\r\n\t\t\t/** initial check */\r\n\t\t\tif( $post_count == 0 )\r\n\t\t\t{\r\n\t\t\t\treturn $initial_count;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn $post_count;\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "9d5b30bd4650c1ae3215aab76bda678e", "score": "0.6013631", "text": "public function getPost($id){\n return response()->json(['message' => 'Get Post' . $id]);\n }", "title": "" }, { "docid": "480e8826072c1965d629f7b5f4329b3d", "score": "0.6012702", "text": "public function viewAction(int $id) : object\n {\n $page = $this->di->get(\"page\");\n\n // posts\n $post = new Post();\n $post->setDb($this->di->get(\"dbqb\"));\n $posts = $post->find(\"postId\", $id);\n\n // tags\n $tag = new Tag();\n $tag->setDb($this->di->get(\"dbqb\"));\n $tags = $tag->findAllTagsWhere(\"post.postId\", $id);\n\n // comments\n $comment = new Comment();\n $comment->setDb($this->di->get(\"dbqb\"));\n $comments = $comment->findAllCommentsWhere(\"postId\", $id);\n\n $data = [\n \"post\" => $posts,\n \"comments\" => $comments,\n \"tags\" => $tags,\n \"userId\" => $this->di->get(\"session\")->get(\"userId\"),\n \"get\" => $_GET\n ];\n\n $page->add(\"post/crud/view-post\", $data);\n\n return $page->render([\n \"title\" => \"Showing post\",\n ]);\n }", "title": "" }, { "docid": "1ec3ac7ed03e91d4106fffdc96d2f74b", "score": "0.60121727", "text": "public function edit($id) {\n $dataList = Post::where('posts_track_id', $id)->first();\n if (Auth::User()) {\n if (Auth::User()->users_track_id == $dataList->posts_users_id) {\n $topicList = Topic::all();\n return view('post.edit', compact('topicList', 'dataList'))->with('posts_track_id', $id);\n } else {\n return redirect('posts')->with('error', 'You must Login to update Posts.');\n }\n } else {\n return redirect()->back()->with('error', 'You must login to edit this post.');\n }\n }", "title": "" }, { "docid": "ae7ebf4ea1c783410a0c0ef7337995fe", "score": "0.60102594", "text": "public function show($id)\n //function for showing the details of a post\n {\n $user = User::where('id', '=', Auth::guard()->id())->first();\n $post = Post::findOrFail($id);\n return view ('posts.post-details',['post'=>$post,'user'=>$user]);\n }", "title": "" }, { "docid": "693842b1268fa2ab1eb817eae81cb95e", "score": "0.60081714", "text": "public function show($id)\n { \n $post = Post::find($id);\n if (Auth::check()){\n return view('posts.view', ['post'=>$post]);\n }\n else {\n return view('posts\\public.publicsingle', ['post'=>$post]);\n }\n }", "title": "" }, { "docid": "0f51a9bfa4e3a85f51d85e8c75d34ab9", "score": "0.59997237", "text": "public function show(int $id)\n {\n return Post::find($id);\n }", "title": "" }, { "docid": "0f174cd834f09a08b49deb106bdd38d3", "score": "0.598917", "text": "function getPost($post_id=null) {\n\n\t\treturn $this->httpGet($this->_baseUrl.'posts/'.$post_id);\n\n\t}", "title": "" }, { "docid": "8374a21480ab153dd64c492b84810481", "score": "0.597967", "text": "public function getPost($id = null)\n {\n $columns = [\n 'title' ,'published_at' , 'user_id', 'category_id', 'id', 'updated_at', 'content_row'\n ];\n\n $result = $this\n ->startConditions()\n ->select($columns)\n ->with('category', 'user')\n ->where('id', $id)\n ->get()\n ->first();\n\n return $result;\n }", "title": "" }, { "docid": "8f55b1eee86b800e711f8c5404e00e1b", "score": "0.597758", "text": "public function post($slug1, $slug2, $id){\n $post = Post::with('blog', 'user', 'gallery')->find($id);\n if(empty($post)) return redirect('/');\n $category = Blog::whereSlug($slug1)->first();\n $do_not_miss_it = Post::getDoNotMissIt($category, 6, 2);\n return view('themes.' . env('APP_THEME') . '.pages.article', compact('category', 'latest', 'do_not_miss_it', 'post'));\n }", "title": "" }, { "docid": "8c3a309da09b68d124b82beda170b338", "score": "0.59633374", "text": "public function put_single($id);", "title": "" }, { "docid": "f2e4bb754587b54a994b56781865d269", "score": "0.59471536", "text": "public function show($id)\n {\n $post = Post::Where('id','=',$id)->first();\n $users = User::where('id','!=',auth()->user()->id)->orderBy('id','DESC')->get();\n\n if(is_null($post) or is_null($users)){\n return redirect()->route('frontend.home');\n }\n\n return view('frontend.post_details',compact('post','users'));\n }", "title": "" }, { "docid": "7542db2d9d4b30cb60cd339389014083", "score": "0.5941569", "text": "public function supp_postAction($id){\n \t $em= $this->getDoctrine()->getManager();\n \t $post= $em->getRepository('GRHGrhBundle:Post')->find($id);\n \t if (!$post) {\n \t \t# code...\n \t \t throw $this->createNotFoundException('No guest found for id '.$id);\n \t }\n $em->remove($post);\n $em->flush();\n return $this->redirectToRoute('postes');\n }", "title": "" } ]
1d73041330a37abc3fc9d34d3ee05829
Random name for image
[ { "docid": "d946ce16f50450c93bc896e0dafe5d6a", "score": "0.7685564", "text": "function createImageName($extension)\n{\n return rand(10000000, 99999999) . \"_\" . rand(10000000, 99999999) . \"_\" . rand(10000000, 99999999) . '.' . $extension;\n}", "title": "" } ]
[ { "docid": "2a77496abbd977307ee7881867c52704", "score": "0.8028859", "text": "private function get_random_jpeg_name() {\n\t\t\t// Prime the word array\n\t\t\t$words = $this->get_words();\n\n\t\t\t// Holder for the filename\n\t\t\t$filename = array();\n\n\t\t\t// Loop through a random number of iterations between 2 and 4\n\t\t\tfor ( $i = 1; $i < rand( 2, 4 ); $i++ ) {\n\t\t\t\t$filename[] = $words[ rand( 0, count( $words ) - 1 ) ];\n\t\t\t}\n\n\t\t\t// Return string filename\n\t\t\treturn implode( '-', $filename ) . '.jpg';\n\t\t}", "title": "" }, { "docid": "4c7db42af985142ce3bdfbcb956f9f07", "score": "0.7722592", "text": "public function getNewImageName()\n {\n\n return uniqid() . '_' . date('dmY') . '.' . $this->getType();\n\n }", "title": "" }, { "docid": "36e9a374b1f4fe42eec24b976b77d093", "score": "0.7635084", "text": "protected function hashName()\n {\n return time() . '-' . str_random(40) . '.' . $this->saveImageAs;\n }", "title": "" }, { "docid": "4ce99e68aba87a7fc95b17cebcc9f975", "score": "0.74805784", "text": "public static function createNewNameImage($nameImage)\n {\n return rand(10000000, 99999999) . \"_\" . rand(10000000, 99999999) . \"_\" . rand(10000000, 99999999) . \"_\" . $nameImage;\n }", "title": "" }, { "docid": "1abeb4753b760206c839e05073bc8094", "score": "0.741061", "text": "public function generate_random_name (){\n\t\treturn time () . substr ( md5 ( microtime () ), 0, rand ( 5, 12 ) );\n\t}", "title": "" }, { "docid": "90dc71dc663e33c2d492775504248c7e", "score": "0.7385146", "text": "public function getRandomName(): string\n {\n $extension = $this->getExtension();\n $extension = empty($extension) ? '' : '.' . $extension;\n\n return Time::now()->getTimestamp() . '_' . bin2hex(random_bytes(10)) . $extension;\n }", "title": "" }, { "docid": "3932b6cbc05d4ff452a420c88c6da8c5", "score": "0.7167659", "text": "function namefile()\n{ \n return time() .\"_\". substr(md5(microtime()), 0, mt_rand(10, 10));\n}", "title": "" }, { "docid": "29b3ba8031af5bac5a63b6c838ae5371", "score": "0.71503174", "text": "function fondo()\n{\n\t$fondo = mt_rand(0,40);\n\t$fondo = \"fondo\".$fondo.\".jpg\";\n\t\n\treturn $fondo;\n}", "title": "" }, { "docid": "01f1a26fa9b4036fcaec864bc1e333c1", "score": "0.7108701", "text": "protected function getRandomFileName(): string\n {\n return Str::random() . '.' . $this->getFileExtension();\n }", "title": "" }, { "docid": "7ab03e8119351c2daf3801ee53e4b54c", "score": "0.70963794", "text": "protected function getImageName() {\n\n\t\treturn static::$id;\n\t}", "title": "" }, { "docid": "4e53090d07e0e0db8ed10a9f4c57852a", "score": "0.70449805", "text": "public function generateName()\n { $fileName = uniqid();\n return $fileName;\n }", "title": "" }, { "docid": "4033c3c9cd998066217f107634526232", "score": "0.70384437", "text": "protected function getRandomName(): string\n {\n return array_rand(array_flip([\n 'Mein Bundle',\n 'Bundle 2000',\n 'Bundle Red',\n 'Bundle Green',\n 'Bundle Black',\n 'Bundle Orange',\n 'Bundle White',\n 'Bundle Magenta',\n 'Bundle Blue',\n 'Bundle Grey',\n ]));\n }", "title": "" }, { "docid": "0052d40ac2c87ceacfeeac7e5e4de552", "score": "0.70353764", "text": "function uniqueName(){\n\t\t\n\t\tglobal $serverFilesRoot;\n\t\t$random = (rand()%9);\n\t\t$random1 = (rand()%9);\n\t\t$random2 = (rand()%9);\n\t\t$random3 = (rand()%9);\n\t\t$random4 = (rand()%9);\n\t\t\n\t\t$tmpfname = tempnam($serverFilesRoot, $random.$random1.$random2.$random3.$random4.\"arq\");\n\t\t$tmpName = basename($tmpfname,\".tmp\");\n\t\tif(is_file($tmpfname)) unlink($tmpfname);\n\t\treturn $tmpName;\n\t}", "title": "" }, { "docid": "e2fba9508b502b65018eb6caa2a6352c", "score": "0.6980164", "text": "static public function generateImageName($extension)\n {\n do {\n $filename = str_random(32). \".\" .$extension;\n // Checks if filename is already taken\n $dup_filename = Image::where('filename', $filename)->first();\n\n } while ($dup_filename != null);\n\n return $filename;\n }", "title": "" }, { "docid": "ef92f670292491820eef451566d5fe31", "score": "0.69148797", "text": "function twe_random_name() {\n $letters = 'abcdefghijklmnopqrstuvwxyz';\n $dirname = '.';\n $length = floor(twe_rand(16,20));\n for ($i = 1; $i <= $length; $i++) {\n $q = floor(twe_rand(1,26));\n $dirname .= $letters[$q];\n }\n return $dirname;\n }", "title": "" }, { "docid": "2da7b0b52e96035d628fe63a2330f65c", "score": "0.6898076", "text": "function RandomName(){\n $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\n $charactersLength = strlen($characters);\n $randomString = '';\n for ($i = 0; $i < 10; $i++) {\n $randomString .= $characters[rand(0, $charactersLength - 1)];\n }\n return hash('sha1',$randomString);\n}", "title": "" }, { "docid": "9cb8d294309a26c1956ee14395c08b8e", "score": "0.68917924", "text": "private function randomFilename(){\n\t\t$filename = str_random(30);\n\t\t\n\t\twhile( $this->exists($filename) ){\n\t\t\t$this->randomFilename();\n\t\t}\n\n\t\t$this->filename = $filename;\n\t}", "title": "" }, { "docid": "58fd9c8d5c7d2c6c0449231b7a7d1f22", "score": "0.68904644", "text": "protected static function generateRandomName()\n {\n $token = openssl_random_pseudo_bytes(16);\n //Convert the binary data into hexadecimal representation.\n return bin2hex($token);\n }", "title": "" }, { "docid": "92d95fb5cbc2e105a777e40b5c71e313", "score": "0.68897307", "text": "public function getImageName() : string;", "title": "" }, { "docid": "5e3135c9c8ff9aad731cdeeba25dfd6b", "score": "0.6859856", "text": "function createFilename() {\n $filename = null;\n if ($_FILES[\"imgFilename\"][\"error\"] == 0) {\n $filename = md5(rand()) . \".\" . pathinfo($_FILES[\"imgFilename\"][\"name\"], PATHINFO_EXTENSION);\n }\n return $filename;\n}", "title": "" }, { "docid": "cabea08e8e02e8acc19409dd6c7a000f", "score": "0.6858953", "text": "function GenImgName() {\n // Determine what format we should use when we save the images\n $supported = imagetypes();\n if( $supported & IMG_PNG ) $img_format=\"png\";\n elseif( $supported & IMG_GIF ) $img_format=\"gif\";\n elseif( $supported & IMG_JPG ) $img_format=\"jpeg\";\n elseif( $supported & IMG_WBMP ) $img_format=\"wbmp\";\n elseif( $supported & IMG_XPM ) $img_format=\"xpm\";\n\n\n if( !isset($_SERVER['PHP_SELF']) ) {\n JpGraphError::RaiseL(25005);\n //(\" Can't access PHP_SELF, PHP global variable. You can't run PHP from command line if you want to use the 'auto' naming of cache or image files.\");\n }\n $fname = basename($_SERVER['PHP_SELF']);\n if( !empty($_SERVER['QUERY_STRING']) ) {\n $q = @$_SERVER['QUERY_STRING'];\n $fname .= '_'.preg_replace(\"/\\W/\", \"_\", $q).'.'.$img_format;\n }\n else {\n $fname = substr($fname,0,strlen($fname)-4).'.'.$img_format;\n }\n return $fname;\n}", "title": "" }, { "docid": "5e8096f8ea5aff52b8c2aec75ffd0aa5", "score": "0.68548816", "text": "function generateFileName(){\r\n\t$assembledname = \"\";\r\n\t$chars = \"abcdefghijklmnopqrstuvwxyz1234567890\";\r\n\t\r\n\tfor($i=0;$i<20;$i++){\r\n\t\t$randomChar = rand(0,strlen($chars)-1);\r\n\t\t$assembledname .= substr($chars,$randomChar,1);\r\n\t}\r\n\r\n\treturn $assembledname;\r\n}", "title": "" }, { "docid": "11bab6997a42316db5d6108b8d1845cc", "score": "0.68457407", "text": "private function _generateRandomName(){\n $string = Str::random(10);\n if(is_array(Field::where(\"name\", $string)->get())>0){\n return $this->_generateRandomName();\n }\n return $string;\n }", "title": "" }, { "docid": "320718e935234a63f2e9941c2f9e0447", "score": "0.6843494", "text": "private function createName()\n {\n // Entity manager\n $em = $this->em;\n \n // Get Form request\n $form_data = $this->request->request->get('kmv_ampbundle_review');\n \n // Get brand name\n $brand_name = $em->getRepository('KmvAmpBundle:Brand')->find($form_data['brand'])->getName();\n $brand_name = str_replace(' ', '-', $brand_name);\n \n // Get model name\n $model_name = $em->getRepository('KmvAmpBundle:Model')->find($form_data['model'])->getName();\n $model_name = str_replace(' ', '-', $model_name);\n \n // Create name\n $image_name = strtolower($brand_name.'-'.$model_name).'-'.mt_rand(0,9999);\n return $image_name;\n }", "title": "" }, { "docid": "d453068e88423266cda8443f2fbab733", "score": "0.6792397", "text": "function randomFileNameGenerator($prefix){\r\n\t$r=substr(str_replace(\".\",\"\",uniqid($prefix,true)),0,20);\r\n\tif(file_exists(\"../uploads/$r\")) randomFileNameGenerator($prefix);\r\n\telse return $r;\r\n}", "title": "" }, { "docid": "5e5bb90945079cc362f4d6ad1f1688c0", "score": "0.6781955", "text": "function getImage($name)\n{\n return str_replace(\" \", \"_\", $name) . \".jpg\";\n}", "title": "" }, { "docid": "77c81b47ef3f887683309c7e8dd59160", "score": "0.6778937", "text": "function randomFileNameGenerator($prefix){\n\t$r=substr(str_replace(\".\",\"\",uniqid($prefix,true)),0,20);\n\tif(file_exists(\"../uploads/$r\")) randomFileNameGenerator($prefix);\n\telse return $r;\n}", "title": "" }, { "docid": "495195d2912715dc1bb9d02c64924018", "score": "0.67715293", "text": "private function generateFilename()\n {\n return time() . '-' . $this->auth_user->username . '-profilepicture';\n }", "title": "" }, { "docid": "04d34ed4b96facf7f4629b713ecad9c8", "score": "0.6763159", "text": "protected function getFileName()\n {\n return hash(\"sha512\", uniqid(rand(), true));\n }", "title": "" }, { "docid": "6d6fbdd71b14efe4f2c3a8f94a01d21a", "score": "0.6752548", "text": "function headerImage() : string\n{\n\t$images = config('view.header_images');\n\treturn 'images/' . $images[rand(0, count($images)-1)] . '.png';\n}", "title": "" }, { "docid": "213c7079e179fa04a859a98a76fcd6d3", "score": "0.67455786", "text": "function rndName($name_len = 15) {\n\t$allchar = \"ABCDEFGHIJKLNMOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567890_\";\n\t$str = \"\" ;\n\tmt_srand ((double) microtime() * 1000000);\n\tfor ($i = 0; $i < $name_len ; $i++)\n\t\t$str .= substr($allchar, mt_rand (0,strlen($allchar)),1) ;\n\treturn $str ;\n}", "title": "" }, { "docid": "3654d27120807309e77ad42cbcb5fd95", "score": "0.6741366", "text": "function createRandomName() {\n $chars = \"abcdefghij_kmnopqrst_uvwxyz_0123456789_ABCDEFG_HIJKLMNPQRS_TUVWXYZ0123_4567890000000\";\n srand((double)microtime()*1000000);\n $i = 0;\n $pass = '' ;\n\n while ($i <= 30) {\n $num = rand() % 33;\n $tmp = substr($chars, $num, 1);\n $pass = $pass . $tmp;\n $i++;\n }\n return $pass;\n }", "title": "" }, { "docid": "4d7aaa255b57fe8c9db4923c3168a1b4", "score": "0.6739571", "text": "public static function createRandomSuperheroName() : string \n {\n $animals = [\n 'Cow',\n 'Sheep',\n 'Bat',\n 'Horse',\n 'Tiger',\n 'Lion',\n 'Parrot',\n 'Bear',\n 'Frog',\n ];\n\n $gender = [\n 'man',\n 'woman',\n ];\n\n return $animals[array_rand($animals, 1)] .''. $gender[array_rand($gender, 1)];\n }", "title": "" }, { "docid": "953a11badd95090ab5a23d8b320aabe1", "score": "0.6732332", "text": "private function getNameWithPath(){\n $name = $this->imageFolder.date('YmdHis').\".jpg\";\n return $name;\n }", "title": "" }, { "docid": "7356ec9e2fe27ea5a05ec0944dcc21a7", "score": "0.6727094", "text": "public function generateName() {\n\n\t\t//Generate name\n\t\t$alphabet = \"abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789\";\r\n\t\t$name = '';\r\n\t\tfor ($i = 0; $i < 8; $i++) {\r\n\t\t\t$n = rand(0, strlen($alphabet)-1);\r\n\t\t\t$name .= $alphabet[$n];\r\n\t\t}\n\n\t\t//Ensure name has not been used\n\t\t$select = $this->getSelect();\n\t\t$select->reset();\n\t\t$select->from($this->getTableName(), 'COUNT(*) as num');\n\t\t$select->where('name = ?', $name);\n\t\t$count = $this->getTable()->fetchRow($select)->num;\n\n\t\tif($count > 0) {\n\t\t\t$this->generateName();\n\t\t} else {\n\t\t\t$this->name = $name;\n\t\t}\n\t}", "title": "" }, { "docid": "5e652b385cf75eb3b953ee9899aa5b34", "score": "0.67214394", "text": "protected function GetSampleImageFileName()\n {\n return \"UpdateJPEGSampleImage.jpg\";\n }", "title": "" }, { "docid": "375f02264d3d0c6781450e49b5c61bb6", "score": "0.6720306", "text": "protected function _getAssetName()\n {\n return _JOOM_OPTION.'.image.'.$this->id;\n }", "title": "" }, { "docid": "a78683f58dd8ea8f3af62ef70f570e19", "score": "0.6717438", "text": "public function generateRandomMaterialDataFilename() {\n $count = 0;\n do \n {\n $generator = new SecureRandom();\n $random = $generator->nextBytes(16);\n $randomString = bin2hex($random);\n $count++;\n }\n while(file_exists($this->getUploadRootDir().'/'.$randomString.'.'.$this->getMaterialDataFile()->guessExtension()) && $count < 50);\n return $randomString;\n }", "title": "" }, { "docid": "f03105c716b0a93fea0f0179a91d0966", "score": "0.67123747", "text": "private function __generateName() {\n\t\treturn \"validform_\" . mt_rand();\n\t}", "title": "" }, { "docid": "0e181b6a632a839244a87d69ca7bdbd3", "score": "0.66863877", "text": "public static function generateImageName($length=12, $strength=0) {\n\t\t$vowels = 'aeiou';\n\t\t$consonants = 'bdghjmnpqrstvz';\n\t\t$consonants .= '1234567890';\n\t\t$consonants .= 'aloenfjych';\n\t\t$vowels .= \"iouae\";\n\t\t$consonants .= '23456789';\n\t \n\t\t$result = '';\n\t\t$alt = time() % 2;\n\t\tfor ($i = 0; $i < $length; $i++) {\n\t\t\tif ($alt == 1) {\n\t\t\t\t$result .= $consonants[(rand() % strlen($consonants))];\n\t\t\t\t$alt = 0;\n\t\t\t} else {\n\t\t\t\t$result .= $vowels[(rand() % strlen($vowels))];\n\t\t\t\t$alt = 1;\n\t\t\t}\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "5c198bcb2b47182773b4727eb9a07eb3", "score": "0.6685918", "text": "function getName($n) {\n $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\n $randomString = '';\n\n for ($i = 0; $i < $n; $i++) {\n $index = rand(0, strlen($characters) - 1);\n $randomString .= $characters[$index];\n }\n\n return $randomString;\n}", "title": "" }, { "docid": "44d08159ee3dec91e16a6572123ccfdc", "score": "0.662818", "text": "private function randomName()\n {\n if (count($this->nameDictionaryReduced) === 0) {\n return 'Add another name please!';\n }\n\n $key = array_rand($this->nameDictionaryReduced);\n $selected = $this->nameDictionaryReduced[$key];\n unset($this->nameDictionaryReduced[$key]);\n\n return $selected;\n }", "title": "" }, { "docid": "2855e399b31c58d7d54b992f70a7e659", "score": "0.6608828", "text": "function random_face() {\n\t\t$dir = ABSPATH . 'wp-content/uploads/faces';\n\t\tif ( ! file_exists( $dir ) ) return;\n\t\t\n\t\t$handle = @opendir( $dir );\n\t\tif ( FALSE === $handle ) return;\n\t\t$i = -1;\n\t\t$files = array();\n\t\twhile ( FALSE != ( $file = readdir( $handle ) ) ) {\n\t\t\tif ( is_file( $dir . '/' . $file ) && strrpos( $file, '.jpg', -4 ) ) {\n\t\t\t\t$files[] = $file;\n\t\t\t\t++$i;\n\t\t\t\t}\n\t\t}\n\t\tclosedir( $handle );\n\t\tif ( empty( $files ) ) {\n\t\t\treturn;\n\t\t}\t\t\t\n\n\t\tmt_srand( (double) microtime() * 1000000 );\n\t\t$rand = mt_rand( 0, $i );\n\t\t$face_file = $files[ $rand ];\n\t\t$url = get_option( 'siteurl' ) . '/wp-content/uploads/faces/' . urlencode( $face_file );\n\t\t$face_html = '<img class=\"aligncenter otx-face\" alt=\"face of a prisoner\" src=\"' . esc_url( $url ) . '\"></br>';\n\t\treturn $face_html;\n\t}", "title": "" }, { "docid": "9d11da4c5dd319c1b9b1073d5816642e", "score": "0.65790683", "text": "function jumpoff_random_img() {\n // Get dir\n $template_dir = get_bloginfo('template_directory');\n\n // Array of fallback images to deliver randomly\n // @since v1.2\n $random_no_images =\n array('placeholder-1.jpg',\n 'placeholder-2.jpg',\n 'placeholder-3.jpg',\n 'placeholder-4.jpg',\n 'placeholder-5.jpg',\n 'placeholder-6.jpg');\n\n // Randomize array of fallbacks\n $randomNumber = array_rand($random_no_images);\n $randomImage = $random_no_images[$randomNumber];\n\n // Set placeholder path for out random fallbacks\n $related_img = $template_dir.\"/assets/images/placeholders/$randomImage\";\n\n return $related_img;\n}", "title": "" }, { "docid": "1da007e4ecae9742310e309aa6ba1eaa", "score": "0.6577474", "text": "public function getRandomName() {\r\n \r\n $list = explode(\" \", $this->getFirstnamesList());\r\n return $list[rand('0', sizeof($list)-1)];\r\n }", "title": "" }, { "docid": "dcc89fe7f613bce0cabf97f00a53bc32", "score": "0.6571232", "text": "public function random_name() {\n\t\t$file = __DIR__.'/names.txt';\n\t\t\n\t\tif (count($this->names) == 0) :\n\t\t\t$this->names = file($file);\n\t\t\t//shuffle($this->names);\n\t\tendif;\n\n\t\t// Ensure we never repeat a name\n\t\t$line = array_pop($this->names);\n\n\t\tif (empty($line))\n\t\t\treturn self::random_name();\n\t\t\n\t\treturn trim($line);\n\t}", "title": "" }, { "docid": "20addfab2364170c32d2592f87a06108", "score": "0.65706986", "text": "function uniqueTimelineImageName()\n{\n\t$token = substr(md5(uniqid(rand(), true)),0,32); // creates a 10 digit token\n\t//SELECT * FROM `entrp_user_timeline` where post_img like '%timelineimgdominic.ronquillo20160816080631.jpeg%'\n $qry = \"SELECT * FROM entrp_user_timeline where post_img like '%$token%'\";\n $res=getData($qry);\n $count_res=mysqli_num_rows($res);\n if($count_res > 0)\n {\n uniqueTimelineImageName();\n } \n else \n {\n return $token;\n }\t\n}", "title": "" }, { "docid": "72fa6304bb73ee163748a03a199748a7", "score": "0.65676165", "text": "private function generateFileName(){\n $letter = array_merge(range('a', 'z'), range('A', 'Z'), range(0,9));\n shuffle($letter);\n $word = substr(implode($letter), 0, 15);\n return date('Ymd_His') . $word;\n }", "title": "" }, { "docid": "5ca5fe99cca0b73745d6bdffcc1c433b", "score": "0.65322256", "text": "function file_generate_name( $p_seed ) {\r\n\t\t$t_val = md5( $p_seed . time() );\r\n\r\n\t\treturn substr( $t_val, 0, 32 );\r\n\t}", "title": "" }, { "docid": "018334086f9975a8f09d2e32dd0aeb98", "score": "0.652269", "text": "function getRandomFileName($file, $id = null, $extension = null)\n{\n $fileName = '';\n $strippedName = str_replace(' ', '', pathinfo($file->getClientOriginalName(), PATHINFO_FILENAME)) . rand(11111, 99999);\n if (!$extension) {\n $extension = pathinfo($file->getClientOriginalName(), PATHINFO_EXTENSION);\n }\n // - MD5 of Image original name + id(user Or post id) (_) timestamp\n $fileName = md5($strippedName) . trim($id) . '_' . time() . '.' . strtolower($extension ? $extension : explode(\"/\", $file->getmimeType())[1]);\n\n return $fileName;\n}", "title": "" }, { "docid": "66a2e451d227d55e340fb82887921922", "score": "0.65224755", "text": "function GenerareRandID()\n {\n $chars=str_split('ABCDEFGHIJKLMNOPQRSTUVWXYZ');\n shuffle($chars);\n $theChars=implode('', array_slice($chars, rand(0, 22),3));\n $theTime=(string)psMicroTime();\n if (strlen($theTime)<15)\n for ($i=0;$i<(15-strlen($theTime));$i++)\n $theTime.=0;\n if (strlen($theTime)>15)\n $theTime= substr ($theTime, 0,15);\n return $theTime.$theChars.\"PIC\"; \n }", "title": "" }, { "docid": "04d8b84f43dd3f1976e999210b8701c4", "score": "0.6504973", "text": "public function getName()\n {\n return 'securimage';\n }", "title": "" }, { "docid": "087aab6a1ebcd75b9d60a9e58278f0fe", "score": "0.6471087", "text": "function uniqueUserProfilePicName()\n{\n\t$token = substr(md5(uniqid(rand(), true)),0,32); // creates a 10 digit token\n $qry = \"SELECT * FROM client_profile where avatar like '%$token%'\";\n $res=getData($qry);\n $count_res=mysqli_num_rows($res);\n if($count_res > 0)\n {\n uniqueUserProfilePicName();\n } \n else \n {\n return $token;\n }\t\n}", "title": "" }, { "docid": "5c7eb90c89235f2e0c5b6b6d6c6b1253", "score": "0.6467748", "text": "public function CreateImage() {\n\n $this->ImageAllocate();\n $length = rand($this->minWordLength, $this->maxWordLength);\n for ($i=0,$text = '',$vocal = rand(0, 1); $i<$length; $i++,$vocal = !$vocal) {\n $text.=$vocal?substr($this->vocals, mt_rand(0, 4), 1):substr($this->words, mt_rand(0, 22), 1);\n }\n $this->WriteText($text);\n $this->WaveImage();\n $this->ReduceImage();\n $this->WriteImage();\n $this->Cleanup();\n return $text;\n }", "title": "" }, { "docid": "7843985e51ad50ce4202f0ed5f332a8c", "score": "0.646112", "text": "public function getImageName()\n {\n return $this->imageName;\n }", "title": "" }, { "docid": "236a171ef640dcc38a2acb9736193f56", "score": "0.645444", "text": "public function generateUsername()\n {\n if (!$this->getUsername()) {\n $this->setUsername(uniqid(mt_rand(), TRUE));\n }\n }", "title": "" }, { "docid": "8037dc46a962d0ecd7eaaed140e51111", "score": "0.6450438", "text": "private function generateFileName()\n {\n $fileName = '';\n $characters = 'bcdfghjklmnpqrstvwxyz123456789';\n $max = strlen($characters) - 1;\n for ($i = 0; $i < 32; $i++) {\n $fileName .= $characters[mt_rand(0, $max)];\n }\n\n return $fileName;\n }", "title": "" }, { "docid": "7ee68164cb08bf3f66a68705cde0e998", "score": "0.6435602", "text": "public function filename(): string\n {\n return Str::random(6) . '_' . $this->type . $this->fileExtension();\n }", "title": "" }, { "docid": "6c1b80341d07aec8c863d5c41e7aa9e1", "score": "0.64349425", "text": "private function generateUniqueFileName()\n {\n // uniqid(), which is based on timestamps\n return (uniqid());\n }", "title": "" }, { "docid": "15d1d11916b9e1851bd4bd0edbfae018", "score": "0.64245826", "text": "function pic() {\n return $this->id . \".jpg\";\n }", "title": "" }, { "docid": "5640e3fd90eb303ecb3772ca3a6f850d", "score": "0.6422988", "text": "function uniqueCompanyProfilePicName()\n{\n\t$token = substr(md5(uniqid(rand(), true)),0,32); // creates a 10 digit token\n $qry = \"SELECT * FROM company_profiles where avatar like '%$token%'\";\n $res=getData($qry);\n $count_res=mysqli_num_rows($res);\n if($count_res > 0)\n {\n uniqueCompanyProfilePicName();\n } \n else \n {\n return $token;\n }\t\n}", "title": "" }, { "docid": "4ccf09ffa2f68cef4ebf791c79e1205e", "score": "0.64109075", "text": "public function getImage(): string\n {\n return \"dice-\" . $this->getValue();\n }", "title": "" }, { "docid": "f9e14fb22a904fbb08cf99d896e0e130", "score": "0.6398536", "text": "protected function thumbnailName()\n {\n \t$file = explode('.', $this->image);\n\n\t\t$fileName = Arr::first($file);\n\t\t$fileExt = Arr::last($file);\n\n\t\treturn $fileName\n \t\t. ($this->width() ? '_w' . $this->width() : '')\n \t\t. ($this->height() ? '_h' . $this->height() : '')\n \t\t. '.' . $fileExt;\n }", "title": "" }, { "docid": "d7d6f5b5961299aa97b051d7f0de9956", "score": "0.6396445", "text": "public function random()\n {\n $random = $this->getJson('v1/gifs/random' . $this->credentials());\n\n return 'https://i.giphy.com/' . $random->data->id . '.gif';\n }", "title": "" }, { "docid": "9f19c9eff3c528d23b3e9f3d792e87b4", "score": "0.63957614", "text": "private function generateUniqueFileName() {\n\t\t// uniqid(), which is based on timestamps\n\t\treturn md5(uniqid());\n\t}", "title": "" }, { "docid": "92e6a881f916023f097f12289a1a6f3e", "score": "0.6391396", "text": "function file_generate_unique_name( $p_seed , $p_filepath ) {\r\n\t\tdo {\r\n\t\t\t$t_string = file_generate_name( $p_seed );\r\n\t\t} while ( !diskfile_is_name_unique( $t_string , $p_filepath ) );\r\n\r\n\t\treturn $t_string;\r\n\t}", "title": "" }, { "docid": "8c864c93ac735912432a3fce0be909e2", "score": "0.6360107", "text": "public function getRandomName(string $fileName): string {\n // Getting file extension.\n $info = pathinfo($fileName);\n try {\n // Generate a random string (size :20)\n $bytes = random_bytes(20);\n }\n catch (Exception $exception) {\n $bytes = openssl_random_pseudo_bytes(20);\n }\n return bin2hex($bytes) .'.' . $info['extension'];\n }", "title": "" }, { "docid": "188eddf32701d24128b84c57904ad8fd", "score": "0.6342928", "text": "function upload_image_users() \n { \n if(isset($_FILES[\"user_image\"])) \n { \n $extension = explode('.', $_FILES['user_image']['name']); \n $new_name = rand() . '.' . $extension[1]; \n $destination = './upload/photo/' . $new_name; \n move_uploaded_file($_FILES['user_image']['tmp_name'], $destination); \n return $new_name; \n } \n }", "title": "" }, { "docid": "44cfc98f23401fbc21ace05ad0ed40ff", "score": "0.63409674", "text": "private function genFilename()\t{\n\t\t$charset = \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\t\t$randString = '';\n\t\tfor ($i = 0; $i < 15; $i++) {\n\t\t\t$randString .= $charset[rand(0, strlen($charset)-1)];\n\t\t}\n\t\t$path = DIRECTORY_SEPARATOR . \"Data\" . DIRECTORY_SEPARATOR . \"cookies\" . DIRECTORY_SEPARATOR . \"cookieFile\" . $randString;\n\t\treturn realpath(dirname(dirname(dirname(__FILE__)))) . $path;\n\t}", "title": "" }, { "docid": "f44e0bb0931228268b7cda0124c682a5", "score": "0.6332275", "text": "function nameOfImage($fileName)\n\t{\n\t\t$i = 0;\n\t\twhile(file_exists(\"images/\".$fileName))\n\t\t{\n\t\t\tif(!$i) \n\t\t\t$fileName = substr($fileName,0,-4).$i.substr($fileName, -4);\n\t\t\telse \t \n\t\t\t\t$fileName= substr($fileName,0,-(numberOfDigits($i)+4)).$i.substr($fileName, -4);\n\t\t\t$i++;\n\t\t}\n\n\t\treturn $fileName;\n\t}", "title": "" }, { "docid": "da1098225bb1decfaffa250c0d4539d4", "score": "0.63251185", "text": "function makeThumbnailName($image) {\r\n $i = strrpos($image, '.');\r\n $image_name = substr($image, 0, $i);\r\n $ext = substr($image, $i);\r\n $image = $image_name . '-tn' . $ext;\r\n return $image;\r\n}", "title": "" }, { "docid": "7fd824508338b87cb941a09957378e5e", "score": "0.6305399", "text": "public function RenameImage($imageName)\n {\n $randString = md5(time().$imageName);\n $fileName =$imageName;\n $splitName = explode(\".\", $fileName);\n $fileExt = end($splitName); \n return strtolower($randString.'.'.$fileExt);\n }", "title": "" }, { "docid": "9df954856e31ad4c34d8e3636628d9bc", "score": "0.6303049", "text": "function randomUsername(string $name)\n{\n return substr(str_replace(' ', '', strtolower($name)), 0, 5) . rand(1, 9999);\n}", "title": "" }, { "docid": "e2de3a2086427c5f0bbc87cef21381ea", "score": "0.6301819", "text": "public function getImageId()\n {\n\n /**\n * @var AgeFemale $age\n */\n try\n {\n $age = $this->getDependency(AgeFemale::class);\n $val = static::AGE_TO_STR[$age->value];\n }catch (Exception $e)\n {\n $val = 'l';\n }\n\n $img_id = 'pussy_' . $val;\n $size = $this->value > 3 ? 3 : ($this->value + 1);\n $img_id .= $size;\n return $img_id;\n }", "title": "" }, { "docid": "fefda6e20470552614b0dff069744358", "score": "0.6287209", "text": "private function generateUniqueFileName()\n {\n // uniqid(), which is based on timestamps\n return md5(uniqid());\n }", "title": "" }, { "docid": "fefda6e20470552614b0dff069744358", "score": "0.6287209", "text": "private function generateUniqueFileName()\n {\n // uniqid(), which is based on timestamps\n return md5(uniqid());\n }", "title": "" }, { "docid": "fefda6e20470552614b0dff069744358", "score": "0.6287209", "text": "private function generateUniqueFileName()\n {\n // uniqid(), which is based on timestamps\n return md5(uniqid());\n }", "title": "" }, { "docid": "1593e701506880d28015dccd884f3659", "score": "0.6283448", "text": "public static function hashFileName($name) {\n return substr(md5(uniqid(mt_rand() . $name, true)), 0, 4);\n }", "title": "" }, { "docid": "fabcea0f725bb9f622cbfdf135754c6f", "score": "0.6282957", "text": "private function genFilename()\t{\r\n\t\t$charset = \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\r\n\t\t$randString = '';\r\n\t\tfor ($i = 0; $i < 15; $i++) {\r\n\t\t\t$randString .= $charset[rand(0, strlen($charset)-1)];\r\n\t\t}\r\n\t\t$path = DIRECTORY_SEPARATOR . \"cookies\" . DIRECTORY_SEPARATOR . \"cookieFile\" . $randString;\r\n\t\treturn realpath(dirname(__FILE__)) . $path;\r\n\t}", "title": "" }, { "docid": "bf1b13c58b065d4d3e0ebfa63b01742e", "score": "0.6275496", "text": "function randomName():string {\n return uniqid(\"aws-sdk-php-\");\n}", "title": "" }, { "docid": "74a8f946b20daa4b527ecd5025aa9c54", "score": "0.62736535", "text": "function gen_db_name() {\n //separate $filename inot pieces and collect file ext into variable\n $this->fileExt = pathinfo($this->fileTmpLoc, PATHINFO_EXTENSION);\n $this->db_file_name = date(\"DMjGisY\") . \"\" . rand(1000, 9999) . \".\" . $this->fileExt; // WedFeb272120452013RAND.jpg\n }", "title": "" }, { "docid": "decfbdbfb600e8c21ec48512b7d3a120", "score": "0.6253798", "text": "public function generateName($photo) \n { \n $name = $photo->getDatePosted()->getTimestamp().\"_\".substr(md5($this->getUser()->getId()), 0, 25);\n \n return $name;\n }", "title": "" }, { "docid": "2c3a70e460931d01aad693ba19a19260", "score": "0.6241937", "text": "function getname($t){\n $spli = explode(\"/\",$t);\n $name = $spli[count($spli)-1];\n return 'assets/'.$name.'_qrcode.png';\n}", "title": "" }, { "docid": "443c8c4c014599e6d6b08de81ac677b1", "score": "0.623149", "text": "public function generate_photo_name($file) {\n //note : time() est utilisé pour que la nouvelle image n'aie pas\n // le meme nom afin d'éviter que le navigateur affiche\n // une ancienne image présente dans le cache\n if ($_FILES['picture']['type'] == \"picture/gif\") {\n $saveTo = $this->title . time() . \".gif\";\n } else if ($_FILES['picture']['type'] == \"picture/jpeg\") {\n $saveTo = $this->title . time() . \".jpg\";\n } else if ($_FILES['picture']['type'] == \"picture/png\") {\n $saveTo = $this->title . time() . \".png\";\n }\n return $saveTo;\n }", "title": "" }, { "docid": "e62116227af289cc4fc19aeef40999fd", "score": "0.622953", "text": "public function meatName()\n {\n return static::randomElement(static::$meatNames);\n }", "title": "" }, { "docid": "e62116227af289cc4fc19aeef40999fd", "score": "0.622953", "text": "public function meatName()\n {\n return static::randomElement(static::$meatNames);\n }", "title": "" }, { "docid": "e62116227af289cc4fc19aeef40999fd", "score": "0.622953", "text": "public function meatName()\n {\n return static::randomElement(static::$meatNames);\n }", "title": "" }, { "docid": "e62116227af289cc4fc19aeef40999fd", "score": "0.622953", "text": "public function meatName()\n {\n return static::randomElement(static::$meatNames);\n }", "title": "" }, { "docid": "6835cb25aefbebed9cb6dc67eefc31bc", "score": "0.6225641", "text": "function random(){\n\t\treturn 'RAND()';\n\t}", "title": "" }, { "docid": "591ebf9772262d17304d726010e2487b", "score": "0.6210966", "text": "function generateRandomName(){\n /**\n * Containing forenames.\n */\n $names = array(\n 'Christopher',\n 'Ryan',\n 'Ethan',\n 'John',\n 'Zoey',\n 'Sarah',\n 'Michelle',\n 'Samantha',\n );\n\n /**\n * Containing surnames.\n */\n $surnames = array(\n 'Walker',\n 'Thompson',\n 'Anderson',\n 'Johnson',\n 'Tremblay',\n 'Peltier',\n 'Cunningham',\n 'Simpson',\n 'Mercado',\n 'Sellers'\n );\n\n /**\n * Generate a random forename.\n */\n $random_name = $names[mt_rand(0, sizeof($names) - 1)];\n\n /**\n * Generate a random surname.\n */\n $random_surname = $surnames[mt_rand(0, sizeof($surnames) - 1)];\n\n /**\n * Combine them together and print out the result.\n */\n return $random_name . ' ' . $random_surname;\n }", "title": "" }, { "docid": "9f6b5a8e0643ae77252c3d08c215dd09", "score": "0.62066543", "text": "protected function defaultName(): string\n {\n return 'image/*';\n }", "title": "" }, { "docid": "19a76830c2e808407a7aa9e21235d31d", "score": "0.61992943", "text": "public static function generateNickname(){\n\t\t$adjectives = CouchDB::getDoc(\"adjectives\", \"misc\");\n\t\t$nouns = CouchDB::getDoc(\"nouns\", \"misc\");\n\t\treturn ucwords($adjectives->words[array_rand($adjectives->words)] . \" \" . $nouns->words[array_rand($nouns->words)]) . \" \" . strval(rand(1,100));\n\t}", "title": "" }, { "docid": "8b4a9d889d0cf4dc9d7777a3146127cd", "score": "0.61982423", "text": "public function identify()\n {\n $prefix = 99;\n return $prefix . randomNumber(9);\n }", "title": "" }, { "docid": "b8e32bd5586efa43f0a6da8e8da32f9c", "score": "0.6186474", "text": "function random(){\n\t\treturn 'RANDOM()';\n\t}", "title": "" }, { "docid": "f363aa15cc85e3008050f82f7c31b6f6", "score": "0.6169992", "text": "public function getRandomImage()\n {\n return $this->getImages()->sort('RAND()')->first();\n }", "title": "" }, { "docid": "762aeb07aeac834df62dc85b252b7069", "score": "0.6160155", "text": "public function getRandomImage()\n {\n $key = rand(0, count($this->file_list)-1);\n return $this->file_gateway->findById($this->file_list[$key]);\n //return new Ilib_Filehandler($this->file_manager->getKernel(), $this->file_list[$key]);\n }", "title": "" }, { "docid": "78488ecfbfe8a089c52d491129b551b9", "score": "0.61536837", "text": "function randomizeFilename($filename, $dir)\n {\n $ext = '';\n $time = time();\n\n if (!$filename) {\n $filename = FileUtil::generateRandomFilename(10, 15, true, true);\n } else if (strrchr($filename, '.') !== false) { // do we have an extension?\n $ext = FileUtil::getExtension($filename);\n $filename = FileUtil::stripExtension($filename);\n }\n\n if ($dir) {\n $dir .= '/';\n }\n\n if ($ext) {\n $rnd = $dir . $filename . '_' . $time . '.' . $ext;\n } else {\n $rnd = $dir . $filename . '_' . $time;\n }\n\n return $rnd;\n }", "title": "" }, { "docid": "595eaa33e9656307c0355ad3cccab3cd", "score": "0.6150708", "text": "function imageUnique($photo,$img_loc='assets/images/'){\n $image_photo = $photo['name'];\n $image_tmp = $photo['tmp_name'];\n $exp = explode('.',$image_photo);\n $photo_ext = end($exp);\n $unique = md5(rand(1,99999).time()).\".\".$photo_ext;\n move_uploaded_file($image_tmp,$img_loc.$unique);\n return $unique;\n}", "title": "" }, { "docid": "a4b6559f30672611d48a4e8c9acb5147", "score": "0.6150171", "text": "public function generateName($name);", "title": "" }, { "docid": "317d4c9160a8b662c38bb177e1af882e", "score": "0.6139649", "text": "public static function getNameImage($image)\n {\n return basename($image);\n }", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "3579799e4dc8ed4919ebe794082591f1", "score": "0.0", "text": "public function index()\n {\n //\n }", "title": "" } ]
[ { "docid": "e0431810d4174a040ced0b019ba49225", "score": "0.76679015", "text": "public function index() {\n\t\t\t$this->listing();\n\t\t}", "title": "" }, { "docid": "852d65a985959b16c59e7c705d111b03", "score": "0.73416126", "text": "public function index()\n\t{\n\t\t// Require user to be logged in.\n\t\t$this->requireLoggedIn();\n\n\t\t$this->listing();\n\t}", "title": "" }, { "docid": "ac1d234cb439f96c04a246dcabf5f14f", "score": "0.72852826", "text": "public function index() {\n $this->_list();\n }", "title": "" }, { "docid": "223999e9a02d01dc0cad36705dec31b1", "score": "0.7249563", "text": "public function actionList() {\n $this->_getList();\n }", "title": "" }, { "docid": "b6a5ca1df2d5a43bd0318ff90e9ff1ed", "score": "0.71320325", "text": "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "title": "" }, { "docid": "9bf7e75f2259ae0a13c89c5d541e3e3f", "score": "0.7069352", "text": "public function actionListing()\n {\n $ratingDP = new ActiveDataProvider([\n 'query' => Rating::find()->orderBy('id DESC'),\n ]);\n\n return $this->render('listing', array(\n 'ratingDP' => $ratingDP\n ));\n }", "title": "" }, { "docid": "7558f18901b7c5821f0cd55c8e28aa45", "score": "0.6994995", "text": "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}", "title": "" }, { "docid": "5412f0b9b053fcd0929c40d71994403a", "score": "0.69766474", "text": "public function index()\n {\n try {\n $resources = Resource::all();\n return $this->showAll($resources);\n } catch (Exception $ex) {\n return $this->errorResponse(\"Danh sách trống!\", Response::HTTP_INTERNAL_SERVER_ERROR);\n }\n }", "title": "" }, { "docid": "eea4376f91e58ba7ea61ad453ac2e499", "score": "0.69740146", "text": "public function index()\n {\n $model = $this->getModel();\n if(\\method_exists($model, 'getData')){\n $model = $model->getData();\n }\n return $this->getResource()::collection($model->paginate());\n }", "title": "" }, { "docid": "c66edef3aa16d000db861f83db19a852", "score": "0.6964667", "text": "public function indexAction ()\r\n {\r\n $this->render(\"list\");\r\n }", "title": "" }, { "docid": "e2492059e332634b90e1b739a942215b", "score": "0.69419646", "text": "public function index()\n {\n return view('admin.listing');\n }", "title": "" }, { "docid": "ba32632e29f18b2bf877cc90eaa90971", "score": "0.68999326", "text": "public function actionRestList() {\n\t $this->doRestList();\n\t}", "title": "" }, { "docid": "cbc2f6f0039706d1ede6b809aad8c23e", "score": "0.68943495", "text": "public function index()\n\t{\n\t\t//\n\t\t$this->getlist();\n\t\n\t}", "title": "" }, { "docid": "638df6519c658b92ec12faad7c6bfe27", "score": "0.6867505", "text": "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "title": "" }, { "docid": "efde97fbf9254ea0e2b2b7023e05101a", "score": "0.68556726", "text": "public function indexAction()\n {\n\t\tif(!Engine_Api::_()->core()->hasSubject('list_listing')) {\n\t\t\treturn $this->setNoRender();\n\t\t}\n\n\t\t//GET LISTING SUBJECT\n\t\t$subject = Engine_Api::_()->core()->getSubject();\n\n\t\t//GET VARIOUS WIDGET SETTINGS\n\t\t$this->view->statisticsRating = (int) Engine_Api::_()->getApi('settings', 'core')->getSetting('list.rating', 1);\n\t\t$this->view->truncation = $this->_getParam('truncation', 23);\n\t\t$related = $this->_getParam('related', 'categories');\n\n\t\t$params = array();\n\n\t\tIf($related == 'tags') {\n\n\t\t\t//GET TAGS\n\t\t\t$listingTags = $subject->tags()->getTagMaps();\n\n\t\t\t$params['tags'] = array();\n\t\t\tforeach ($listingTags as $tag) {\n\t\t\t\t$params['tags'][] = $tag->getTag()->tag_id;\n\t\t\t}\n\n\t\t\tif(empty($params['tags'])) {\n\t\t\t\treturn $this->setNoRender();\n\t\t\t}\n\n\t\t}\n\t\telseif($related == 'categories') {\n\t\t\t$params['category_id'] = $subject->category_id;\n\t\t}\n\t\telse {\n\t\t\treturn $this->setNoRender();\n\t\t}\n\n //FETCH LISTINGS\n\t\t$params['listing_id'] = $subject->listing_id;\n $params['orderby'] ='RAND()';\n $params['limit'] = $this->_getParam('itemCount', 3);\n $this->view->paginator = Engine_Api::_()->getDbtable('listings', 'list')->widgetListingsData($params);\n\n if (Count($this->view->paginator) <= 0) {\n return $this->setNoRender();\n }\n }", "title": "" }, { "docid": "5d644b7cefd46539deb2daa4d92b4eeb", "score": "0.6851258", "text": "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "title": "" }, { "docid": "248744b37e08a9b9e31438a427fee7ee", "score": "0.68308395", "text": "public function index()\n {\n $module = Module::get('Resources');\n \n if(Module::hasAccess($module->id)) {\n return View('la.resources.index', [\n 'show_actions' => $this->show_action,\n 'listing_cols' => Module::getListingColumns('Resources'),\n 'module' => $module\n ]);\n } else {\n return redirect(config('laraadmin.adminRoute') . \"/\");\n }\n }", "title": "" }, { "docid": "f29709817ec3db2d44ad77fdc0a55269", "score": "0.6828856", "text": "public function _index()\n\t{\n\t\t$this->_list();\n\t}", "title": "" }, { "docid": "954a21a94c60b4569f28c882641e7298", "score": "0.68288034", "text": "public function index()\n {\n return view('admin.resources.index', [\n 'resources' => Resource::published()->get()\n ]);\n }", "title": "" }, { "docid": "b27b06ba87e23efaf02018ba6a48d4b4", "score": "0.6807974", "text": "public function index()\n {\n /// Get cars\n $cars = Car::paginate();\n\n // Return collection of articles as a resource\n return CarResource::collection($cars);\n }", "title": "" }, { "docid": "6d9e9884f0172b86d37a90b3aed99107", "score": "0.6795274", "text": "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "title": "" }, { "docid": "c20114ab29ed59985c206dac3ce8bd35", "score": "0.67868614", "text": "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "title": "" }, { "docid": "ecd287988f4b7da6fd1ee3a4ce0dbbb4", "score": "0.6772981", "text": "public function index()\n {\n $tickets = TicketsModel::paginate(10);\n\n //passing data to resource\n return TicketsResource::collection($tickets);\n }", "title": "" }, { "docid": "13fada7c45059bcdf0cc54b68e5eee96", "score": "0.67426085", "text": "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "title": "" }, { "docid": "02210f90da67beef15ab156f23ec7b92", "score": "0.674063", "text": "public function actionList()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Records::find(),\n 'pagination' =>\n [\n 'pageSize' => $this->recordsPerAdminPage,\n ]\n ]);\n\n return $this->render('list', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "c455819674d3f353cb9e20703ef52803", "score": "0.67257243", "text": "public function index()\n {\n $this->list_view();\n }", "title": "" }, { "docid": "c455819674d3f353cb9e20703ef52803", "score": "0.67257243", "text": "public function index()\n {\n $this->list_view();\n }", "title": "" }, { "docid": "c9be2a11e7166305691684d329c6df24", "score": "0.6723937", "text": "public function index()\n {\n // Get books\n $books = Book::paginate(10);\n\n // Return collection of articles as a resource\n return BookResource::collection($books);\n }", "title": "" }, { "docid": "465ee43697fce30b312a8f52108bb059", "score": "0.6709904", "text": "public function listAction ( )\n {\n $model = $this->getModel('Scale');\n $request = $this->getRequest();\n\n $this->view->items = $model->paginate($request->getParams());\n\n }", "title": "" }, { "docid": "5370c2b221a0c31116fb4369ab9f4812", "score": "0.66994494", "text": "public function actionIndex()\n {\n // init Active Record\n $query = new ProfileRecords();\n\n // set current page and offset\n $page = (int)$this->request->query->get('page');\n $offset = $page * self::ITEM_PER_PAGE;\n\n // build pagination\n $pagination = new SimplePagination([\n 'url' => ['profile/index'],\n 'page' => $page,\n 'step' => self::ITEM_PER_PAGE,\n 'total' => $query->count()\n ]);\n\n // build listing objects\n $records = $query->orderBy('id', 'desc')->skip($offset)->take(self::ITEM_PER_PAGE)->get();\n\n // display viewer\n return $this->view->render('index', [\n 'records' => $records,\n 'pagination' => $pagination\n ]);\n }", "title": "" }, { "docid": "8ef47c1c1fcc1e28c5a1e9eb8583d7e7", "score": "0.6694059", "text": "public function _list()\n\t{\n\t\t_root::getRequest()->setAction('list');\n\n\t\t$oTitleModel = new model_title();\n\t\t$tTitles = $oTitleModel->findAll();\n\n\t\t$oView = new _view('titles::list');\n\t\t$oView->tTitles = $tTitles;\n\n\t\t$this->oLayout->add('work', $oView);\n\t}", "title": "" }, { "docid": "cd9c5c4bfebd4034e9aab606b543d95a", "score": "0.66905", "text": "public function index()\n {\n $todos = Todo::paginate(50);\n return TodosResource::collection($todos);\n }", "title": "" }, { "docid": "5509d28122c561e86197cbcc735e8008", "score": "0.66890997", "text": "public function index()\n {\n $products = Product::filter()->paginate();\n\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "712af5c8b3ebcbb93ccacf71c37b0d64", "score": "0.6687134", "text": "public function index()\n {\n return ResourceResource::collection(auth()->user()->resources);\n }", "title": "" }, { "docid": "93be7d845843229d41c071ba88255d72", "score": "0.6677703", "text": "public function listAction()\n {\n $userService = new Core_Service_UserApi();\n $this->view->users = $userService->fetchUsers();\n $this->view->pageTitle = $this->view->translate('USERS_TITLE');\n }", "title": "" }, { "docid": "4749d27d60b7528b95f66725757fb6f5", "score": "0.6677231", "text": "public function listAction()\n {\n $tags = $this->getTags();\n $this->view->assign('tags', $tags);\n }", "title": "" }, { "docid": "148383f68d3328f7ff820d3aa26f22ff", "score": "0.66701597", "text": "public function indexAction()\n\t{\n\t\t$this->_view->_title \t\t\t\t= ucfirst($this->_arrParam['controller']) . \" Controller :: List\";\n\n\t\t//Total Items\n\t\t$this->_view->itemsStatusCount \t\t= $this->_model->countItems($this->_arrParam, ['task' => 'count-items-status']);\n\t\t$itemCount \t\t\t\t\t\t\t= $this->_model->countItems($this->_arrParam, ['task' => 'count-items-status']);\n\t\t$configPagination \t\t\t\t\t= ['totalItemsPerPage' => 5, 'pageRange' => 3];\n\t\t$this->setPagination($configPagination);\n\t\t$status \t\t\t\t\t\t\t= $this->_arrParam['status'] ?? 'all';\n\t\t$this->_view->pagination \t\t\t= new Pagination($itemCount[$status], $this->_pagination);\n\n\t\t//List Items\n\t\t$this->_view->items \t\t\t\t= $this->_model->listItems($this->_arrParam);\n\t\t$this->_view->slbCategory \t\t\t\t= [0 => ' - Select Category - '] + $this->_model->itemInSelectbox($this->_arrParam, null);\n\t\t$this->_view->render($this->_arrParam['controller'] . '/index');\n\t}", "title": "" }, { "docid": "4109cfb1ab66ca22734b6c4c872a2fb6", "score": "0.66655326", "text": "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "title": "" }, { "docid": "6f42cd3476241a88f34e457a523248c3", "score": "0.66649395", "text": "public function index()\n {\n // Get flight list from DB\n $flight = Flight::orderBy('flight_number', 'asc')->paginate(20);\n // Return collection of airports as a resource\n return FlightResource::collection($flight); \n }", "title": "" }, { "docid": "2ff5e05b9167e7eb31dff21e1b6c78dd", "score": "0.666383", "text": "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "title": "" }, { "docid": "50f00ab8e31c26165779f77d407ba147", "score": "0.66582054", "text": "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "title": "" }, { "docid": "0e3a54a39646333a6d375a7c945db124", "score": "0.66562283", "text": "public function listAction()\n {\n $user = $this->getUser();\n $em = $this->getDoctrine()->getManager();\n $films = $em->getRepository(Film::class)\n ->findAll();\n return $this->render('admin/listFilm.html.twig', [\n 'films' => $films,\n 'user' => $user\n ]);\n }", "title": "" }, { "docid": "14b2ffd8b6bd095e1ee08082a4773bd5", "score": "0.66428876", "text": "public function index()\n {\n return WidgetResource::collection(Widget::paginate());\n }", "title": "" }, { "docid": "4066b4da28340cedbf7b1e2a765a4d30", "score": "0.6622941", "text": "public function listing()\n {\n $offers_per_page = 32;\n // On récupère le nombre de figurines\n $offers_number = $this->Offers->count();\n // On calcule le nombre de page\n $pages_number = ceil($offers_number / $offers_per_page);\n // On récupère la page courante\n if(isset($_GET['p'])) {\n $current_page = intval($_GET['p']);\n if($current_page > $pages_number) {\n $current_page = 1;\n }\n } else {\n $current_page = 1;\n }\n // On calcule la première entrée à récupérer\n $first_entry = ($current_page - 1) * $offers_per_page;\n // On récupère la liste des annonces\n $offers_list = $this->Offers->some($first_entry, $offers_per_page);\n // Préparation de la page\n $page = new Page(array(\n 'title' => 'Annonces',\n 'class_body' => 'offers'\n ));\n // Rendu du contenu\n $variables = compact(\n 'offers_list',\n 'offers_number',\n 'current_page',\n 'pages_number'\n );\n $content = $this->render('admin/offers/listing.php', $variables);\n // Rendu de la page\n echo $page->render($content);\n\n // On vide les données qu'on ne veut pas réafficher si on actualise la page\n unset($_SESSION['error']);\n unset($_SESSION['success']);\n }", "title": "" }, { "docid": "2564823d78cf46605ebc641dd521408d", "score": "0.66190845", "text": "public function listAction() {\n $this->_datatable();\n return $this->render('BackendBundle:FeastStage:list.html.twig');\n }", "title": "" }, { "docid": "58b5055aa7766919560eac36f68c1db2", "score": "0.6616024", "text": "public function view(){\n\t\t$this->buildListing();\n\t}", "title": "" }, { "docid": "8c4ed8db0ad6047e7410b0271d18bf81", "score": "0.6612196", "text": "public function index()\n {\n return $this->service->fetchResources(Book::class, 'books');\n }", "title": "" }, { "docid": "d18bdb26d4ca96262bddb7c917a8349b", "score": "0.66077465", "text": "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "title": "" }, { "docid": "4b3a4c5b0e9a975144213d22dfff3839", "score": "0.6604027", "text": "public function index()\n {\n $query = Product::getList(request('filter', ''))\n ->orderBy(request('order_by','s_ProductName'),request('order','ASC'));\n \n return ProductResource::collection($query->paginate(request('per_page', 100)));\n }", "title": "" }, { "docid": "2b66066335dec8de726c5a77ff0aee12", "score": "0.6601494", "text": "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "title": "" }, { "docid": "f5e1ccf327188ca3d2fd5f7a1f3277c1", "score": "0.6595322", "text": "public function index_get() {\n $action = $this->get('action');\n switch ($action) {\n case \"list\":\n $this->list1();\n break;\n case \"retrieve\":\n $this->set_response(\"retrieve\", REST_Controller::HTTP_OK);\n break;\n default:\n $this->not_found();\n break;\n }\n }", "title": "" }, { "docid": "b96fcd6a69c1e3403c9ae8bd822a3910", "score": "0.65933114", "text": "public function index()\n {\n // Get all assets\n $assets = Asset::paginate(15);\n // Return collection of assets as a resource\n return AssetResource::collection($assets);\n }", "title": "" }, { "docid": "ffa4ab9d8165639a117e4bc3980fc30d", "score": "0.65903175", "text": "public function index()\n {\n //\n // $authors= Author::all();\n $authors = QueryBuilder::for(Author::class)->allowedSorts([\n 'name',\n 'created_at'\n ])->jsonPaginate();\n return AuthorsResource::collection($authors);\n }", "title": "" }, { "docid": "fb55b34f40f8931a10a91283716c2912", "score": "0.6589201", "text": "public function index()\n {\n return ListItem::all();\n }", "title": "" }, { "docid": "1e6bd4eb78a78252539afb3a131fd8fb", "score": "0.65878326", "text": "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "title": "" }, { "docid": "74d4617df84723cff26f33e255390482", "score": "0.6586929", "text": "public function actionIndex()\n {\n $items = ModelGeneral::showItems();\n\n $this->view->render('index', [\n 'items' => $items\n ]);\n }", "title": "" }, { "docid": "0221833762d40c420a048045edcecf8f", "score": "0.6586866", "text": "public function actionList()\n {\n $searchModel = new RecipeRepository();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render([\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "d387ade88ed7ada9aa0979d5a0c09bee", "score": "0.6585606", "text": "public function index()\n {\n return ProductResource::collection(Product::paginate());\n }", "title": "" }, { "docid": "2d2ee69019284a5d658f50fdd6d094d6", "score": "0.65813804", "text": "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "title": "" }, { "docid": "13c5bf63a24813d5b4b83687cbbe5c75", "score": "0.65766823", "text": "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "title": "" }, { "docid": "c657f4f8a8c3a68d1efb77bb48bb64ed", "score": "0.65754175", "text": "public function listAction() {}", "title": "" }, { "docid": "34c7660459cd4da39347c5a18236bb4d", "score": "0.657202", "text": "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "title": "" }, { "docid": "c192cad1748d0fe11000b8d2063a908e", "score": "0.6565817", "text": "public function index()\n {\n return $this->view('lists');\n }", "title": "" }, { "docid": "c6615d7e9302e878e3f32e0cacbe1eaa", "score": "0.656469", "text": "public function indexAction()\n {\n\t\tif($this->rest[7] == 1) {\n\t\t\t$this->view->headTitle()->prepend('Playlists');\n\t\t\t$playlist = new Application_Model_Playlist;\n\t\t\t$playlistMapper = new Application_Model_PlaylistMapper;\n\t\t\t\n\t\t\t// check for delete action\n\t\t\tif($this->_request->getPost('delete')){\n\t\t\t\tif(is_array($this->_request->getPost('delete'))){\n\t\t\t\t\tforeach($this->_request->getPost('delete') as $curDel){\n\t\t\t\t\t\t$playlistMapper->delete($curDel);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// display listing\n\t\t\t$results = $playlistMapper->fetchAll();\n\t\t\t\n\t\t\tif(isset($results)) {\n\t\t\t\t$paginator = Zend_Paginator::factory($results);\n\t\t\t\t$paginator->setItemCountPerPage(10);\n\t\t\t\t$paginator->setCurrentPageNumber($this->_getParam('page'));\n\t\t\t\t$this->view->paginator = $paginator;\n\t \n\t\t\t\tZend_Paginator::setDefaultScrollingStyle('Sliding');\n\t\t\t\tZend_View_Helper_PaginationControl::setDefaultViewPartial(\n\t\t\t\t\t'admin/user-paginator.phtml'\n\t\t\t\t);\n\t\t\t}\n\t\t}\n }", "title": "" }, { "docid": "8fcbc5a1a568f3e7c3f7e2f8dff9b148", "score": "0.65642136", "text": "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "title": "" }, { "docid": "e46de2dcc0ebc71d109d2b3f9606f07f", "score": "0.6561526", "text": "public function index()\n {\n // Get assets\n $assets = Asset::orderBy('created_at','desc')->paginate(15);\n\n // Return collection of assets as a resource\n return AssetResource::collection($assets);\n }", "title": "" }, { "docid": "7056dcfc0479ee6a004c692cbdce673b", "score": "0.65563834", "text": "public function index()\n {\n $operations = $this->Operations->getAllOperations();\n $this->set(compact('operations'));\n }", "title": "" }, { "docid": "709296f3c4b911dad5cd4c6a5737f286", "score": "0.6555056", "text": "public function index()\n {\n $students = Student::paginate(10);\n\n return Inertia::render('Students/list', [\n 'students' => $students\n ]);\n }", "title": "" }, { "docid": "93ea242a6b36e6ac311b0ca58b9c07c2", "score": "0.6552903", "text": "public function actionList()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Site::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "4d26affb174c19221ce588c9eebafab3", "score": "0.6552584", "text": "function listing() {\r\n\r\n }", "title": "" }, { "docid": "8ffe23111661c679bede8757d6ebad59", "score": "0.6549551", "text": "public function index()\n\t{\n\t\t$data['lists'] = $this->role_model->get_all();\n\t\t$this->template->set('title', 'Role List');\n\t\t$this->template->admin('template', 'list', $data);\n\t}", "title": "" }, { "docid": "6eadfe639301106d65142408b4536a7d", "score": "0.65406024", "text": "public function index()\n {\n return CentroResource::collection(Centro::paginate());\n }", "title": "" }, { "docid": "ea43a79fd12bd5dff2bffb4510a5d10e", "score": "0.6536654", "text": "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "title": "" }, { "docid": "d751539cc41f307fad1b6804f8318415", "score": "0.6534106", "text": "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "title": "" }, { "docid": "0400ea13e166c07ef25151bbef4b455f", "score": "0.6532539", "text": "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "title": "" }, { "docid": "89609813ca0ff771861ac28b1e095928", "score": "0.65276015", "text": "public function index()\n\t{\n return Resource::all();\n\t}", "title": "" }, { "docid": "d4e79a968a98f6ac1906664a59aac8bf", "score": "0.6527516", "text": "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "title": "" }, { "docid": "9b0f4da09bdec99e98ebafb70ab32ae2", "score": "0.6517732", "text": "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "title": "" }, { "docid": "ac8a4e8f7ba673f80eb0d433d63e55e7", "score": "0.6517689", "text": "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "title": "" }, { "docid": "5c803b00b170848e1203ddac8a92502b", "score": "0.65128946", "text": "public function getIndex()\n\t{\n\n\t\treturn View::make('admin.scaffolding.list', [\n\t\t\t'title' => $this->title,\n\t\t\t'data' => (new $this->model)->all(),\n\t\t\t'properties' => $this->properties,\n\t\t\t'uri' => $this->uri\n\t\t]);\n\t}", "title": "" }, { "docid": "901678e4ca1d10119628a2768429725f", "score": "0.65128094", "text": "public function index()\n {\n return AlbumResource::collection(\\App\\Album::orderBy('created_at', 'desc')->get());\n }", "title": "" }, { "docid": "7d6d4eeffba02e23256d6a0e5deb2bdd", "score": "0.6511905", "text": "public function index()\n {\n //list all records\n return response( PhotoResource::collection( Photo::all(), 200) );\n \n }", "title": "" }, { "docid": "389b8dbccde4696cda724a5bc36302af", "score": "0.6507816", "text": "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "ff30a4ae8d49f1706d1dbd328394a294", "score": "0.64936715", "text": "public function index()\n {\n $brands = Brand::query()->paginate();\n return BrandResource::collection($brands);\n }", "title": "" }, { "docid": "3b3460a74099eb9046ed062a8388f3ed", "score": "0.6493338", "text": "public function listAction() {\n\n // Use the model to get all stored users\n $allUsers = $this->userModel->findAll('name ASC');\n\n\n $this->theme->setTitle('Användare');\n $this->views->addString('<h3>Användare</h3><hr>');\n foreach ($allUsers as $user) {\n $values = $user->getProperties();\n $this->views->add('user/abstract', [\n 'user' => $this->userHTMLAction($values)\n ]);\n\n }\n }", "title": "" }, { "docid": "88f1d549be2c21237f0ceb3975891048", "score": "0.6492096", "text": "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "title": "" }, { "docid": "629569270186c168f2f698db8154b51a", "score": "0.64887494", "text": "public function index()\n {\n $articles = Article::query()->latest()->paginate(10);\n\n return ArticleResource::collection($articles);\n }", "title": "" }, { "docid": "8b1eaa504a92ec88744afddafd38af54", "score": "0.6486592", "text": "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "977ac32679a930999aa3047f122aa680", "score": "0.6485348", "text": "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "title": "" }, { "docid": "67b73f4ae6d169731b81d3965809e2cc", "score": "0.6485273", "text": "public function index()\n {\n return PageListResource::collection(Page::orderBy('order', 'ASC')->paginate(25));\n }", "title": "" }, { "docid": "25aaedcb3f8fbe36cdc02986a86cf453", "score": "0.6485208", "text": "public function index()\n {\n // Get Specifications\n $specifications = Specification::orderBy('created_at', 'desc')->paginate(100);\n\n // Return collection of Specifications as a resource\n return SpecificationResource::collection($specifications);\n }", "title": "" }, { "docid": "660b82cc6b8b90bf6a2b2cc5994c4659", "score": "0.648446", "text": "public function index()\n {\n return FilmeResource::collection(Filme::orderBy('titulo')->get());\n }", "title": "" }, { "docid": "3289098065a34b6f7ce3c9789ae4fe35", "score": "0.6483991", "text": "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "title": "" }, { "docid": "9e4aa3765a088d74ea20e0e8231d81d1", "score": "0.6478804", "text": "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "title": "" }, { "docid": "0232eb512a71477a7fa7dc6a5705eb55", "score": "0.64747983", "text": "public function index()\n {\n $list_obj = Apartment::all();\n return view('admin.apartment.list')->with('list_obj', $list_obj);\n }", "title": "" }, { "docid": "3f33a04452a229a0b4356377ae06424e", "score": "0.64705294", "text": "public function index()\n {\n return UserResource::collection($this->repo->paginate(10));\n }", "title": "" }, { "docid": "7a72ff5bace6f47eb0aa5efd43bfec8d", "score": "0.6470304", "text": "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "f92be88dba29fa2e07ab2719b0d8b3c1", "score": "0.64699143", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "title": "" }, { "docid": "a2ab746e766f19e19b849e6fdc6dd489", "score": "0.6467142", "text": "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "title": "" }, { "docid": "0888788ae9bfefbe43a82d618a4801ab", "score": "0.6463102", "text": "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "title": "" }, { "docid": "33b7b9e2fcdf01d9aa991501465da69c", "score": "0.64601594", "text": "public function index()\n {\n //get businesses\n $business = Business::paginate(15);\n\n //return business as resource\n return BusinessResource::collection($business);\n }", "title": "" } ]
8f2fd789c966e21d6d0f1a43e2e8c967
Methods for set gerencia and set cargo should be created aswell
[ { "docid": "9fd2cff45e84931e87f86897f1d345c5", "score": "0.0", "text": "protected function _getTitulo()\n {\n return $this->_properties['nombre'] . ' ' . $this->_properties['apellido'];\n }", "title": "" } ]
[ { "docid": "f391f0eab3eb5a9e3b8452f9ac7b42dd", "score": "0.619784", "text": "function Coche(){\n //this es para hacer referencia la porpia clase\n $this->ruedas=4;\n $this->color=\"red\";\n $this->motor=1600;\n \n }", "title": "" }, { "docid": "0b4dd31b9f548782c2313d94952ebd32", "score": "0.61752695", "text": "function setCampos($valor){\n $this->campos = $valor;\n }", "title": "" }, { "docid": "76853c0b45af29f2c9970b5606be947a", "score": "0.6130137", "text": "function Nuevo()\n{\n /**\n * Crear instancia de municipiomarginacion\n */\n $registro = new MunicipioMarginacion();\n /**\n * Colocar los datos del GET por medio de los metodos SET\n */\n $registro->setPob_tot(filter_input(INPUT_GET, \"pob_tot\"));\n $registro->setAnalf(filter_input(INPUT_GET, \"analf\"));\n $registro->setSprim(filter_input(INPUT_GET, \"sprim\"));\n $registro->setOvsde(filter_input(INPUT_GET, \"ovsde\"));\n $registro->setOvsee(filter_input(INPUT_GET, \"ovsee\"));\n $registro->setOvsae(filter_input(INPUT_GET, \"ovsae\"));\n $registro->setVhac(filter_input(INPUT_GET, \"vhac\"));\n $registro->setOvpt(filter_input(INPUT_GET, \"ovpt\"));\n $registro->setPl_5000(filter_input(INPUT_GET, \"pl_5000\"));\n $registro->setPo2sm(filter_input(INPUT_GET, \"po2sm\"));\n $registro->setIm(filter_input(INPUT_GET, \"im\"));\n $registro->setGm(filter_input(INPUT_GET, \"gm\"));\n $registro->setAnio_id(filter_input(INPUT_GET, \"anio_id\"));\n $Estado = new Estado();\n //Instancia de Municipio\n $Municipio = new Municipio();\n //Extraer el Id del estado\n $id_Estado = $Estado->getEstado(filter_input(INPUT_GET, \"estado\"));\n //Obtener el Municipio\n $id_municipio = $Municipio->getMunicipio($id_Estado['id_estado'], filter_input(INPUT_GET, \"municipio\"));\n $registro->setMunicipio_id($id_municipio['id_municipio']);\n if ($registro->Insert() != null) {\n echo 'OK';\n } else {\n echo 'Ya se encuentra en la Base de Datos';\n }\n}", "title": "" }, { "docid": "8c67ffc1b8c979ef3408a8048eaf9261", "score": "0.6081261", "text": "public function setCargo($cargo){\n\t\t$this->cargo = $cargo;\n\t}", "title": "" }, { "docid": "9329e031cc3ef76163bcd41160b2143e", "score": "0.603768", "text": "abstract function buscarValores();", "title": "" }, { "docid": "f7232afcb62341a02901de00765ead89", "score": "0.60258365", "text": "function Coche(){\n\n $this->ruedas=4; /*this es lo mismo que poner coche, hace referencia a eso*/\n $this->color=\"\";\n $this->motor=1600; \n\n\n }", "title": "" }, { "docid": "7c72bfd92a736b78843c918556ce6368", "score": "0.6022005", "text": "function criar_pedido() {\n /**\n * Se as parcelas forem > 1 produto=Crédito à Vista senão produto=Parcelado loja\n */\n $produto = $this->parcelas > 1 ? 2 : 1;\n //$produto = 1;\n /**\n * Data hora do pedido \n */\n $data = date(\"Y-m-d\\TH:i:s\");\n /**\n * Limpa o valor para a visa\n */\n $valor = preg_replace('/[^0-9]+/', \"\", number_format($this->valor, 2, \",\", \".\"));\n $post = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" ?>\n <requisicao-transacao id=\\\"\".md5(date(\"YmdHisu\")).\"\\\" versao=\\\"1.1.0\\\" >\n <dados-ec>\n <numero>{$this->shopid}</numero>\n <chave>{$this->chave}</chave>\n <nome>{$this->loja_nome}</nome>\n </dados-ec>\n <dados-pedido>\n <numero>{$this->pedido}</numero>\n <valor>{$valor}</valor>\n <moeda>986</moeda>\n <data-hora>{$data}</data-hora>\n <idioma>PT</idioma>\n </dados-pedido>\n <forma-pagamento>\n <bandeira>{$this->bandeira}</bandeira>\n <produto>{$produto}</produto>\n <parcelas>{$this->parcelas}</parcelas>\n </forma-pagamento>\n <url-retorno>{$this->url_retorno}</url-retorno>\n <autorizar>{$this->autorizar}</autorizar>\n <capturar>{$this->capturar}</capturar>\n </requisicao-transacao>\";\n App::import(\"Xml\");\n $retorno = Set::reverse(new Xml($this->file_post_contents($post)));\n #Log para debug futuro em produção, facilita o debug no cliente\n if(isset($retorno['Erro'])) {\n $log = var_export($retorno, true);\n $this->log('ERRO - AO CRIAR TID\\r\\n'.$log.'\\r\\n', LOG_DEBUG);\n }else {\n $log = var_export($retorno, true);\n $this->log('SUCESSO - AO CRIAR TID\\r\\n'.$log.'\\r\\n', LOG_DEBUG);\n }\n return $retorno;\n }", "title": "" }, { "docid": "f97872cef6130c8cde5892a4d71544ee", "score": "0.5981719", "text": "function camion(){\n //this es para hacer referencia la porpia clase\n $this->ruedas=8;\n $this->color=\"grey\";\n $this->motor=3600;\n \n }", "title": "" }, { "docid": "46e47777b02a7445544d59ac1e050d8c", "score": "0.597816", "text": "function __set($atributo, $valor){\n\t\t\t$this->$atributo = $valor;\n\t\t}", "title": "" }, { "docid": "b60659225e9b1e453097ec38d7a07497", "score": "0.59512967", "text": "public function Novo(){\n\t\t\t$cargo = new Cargo();\n \n \n\t\t\t//Carregando os dados digitados pelo usuário nos atributos da classe\n\t\t\t$cargo->id_nivel_funcionario = $_POST['slt_nivel'];\n $cargo->cargo = $_POST['txt_cargo'];\n $cargo->descricao = $_POST['txt_descricao'];\n \n\t\t\t//Chama o metodo Insert da classe Contato\n\t\t\t//Existe também a posibilidade de chamar o metodo da seguinte forma:\n\t\t\t//$contato::Insert($contato);\n\t\t\t$cargo::Insert($cargo);\n\n\t\t}", "title": "" }, { "docid": "138c8ad8eaefa5e041ee299ab094a6b1", "score": "0.59494513", "text": "function Actualizar()\n{\n /**\n * Crear instancia de MunicipioMarginacion\n */\n $registro = new MunicipioMarginacion();\n /**\n * Colocar los datos del GET por medio de los metodos SET\n */\n $registro->setId_registro(filter_input(INPUT_GET, \"id_registro\"));\n $registro->setPob_tot(filter_input(INPUT_GET, \"pob_tot\"));\n $registro->setAnalf(filter_input(INPUT_GET, \"analf\"));\n $registro->setSprim(filter_input(INPUT_GET, \"sprim\"));\n $registro->setOvsde(filter_input(INPUT_GET, \"ovsde\"));\n $registro->setOvsee(filter_input(INPUT_GET, \"ovsee\"));\n $registro->setOvsae(filter_input(INPUT_GET, \"ovsae\"));\n $registro->setVhac(filter_input(INPUT_GET, \"vhac\"));\n $registro->setOvpt(filter_input(INPUT_GET, \"ovpt\"));\n $registro->setPl_5000(filter_input(INPUT_GET, \"pl_5000\"));\n $registro->setPo2sm(filter_input(INPUT_GET, \"po2sm\"));\n $registro->setIm(filter_input(INPUT_GET, \"im\"));\n $registro->setGm(filter_input(INPUT_GET, \"gm\"));\n $registro->setAnio_id(filter_input(INPUT_GET, \"anio_id\"));\n $Estado = new Estado();\n //Instancia de Municipio\n $Municipio = new Municipio();\n //Extraer el Id del estado\n $id_Estado = $Estado->getEstado(filter_input(INPUT_GET, \"estado\"));\n //Obtener el Municipio\n $id_municipio = $Municipio->getMunicipio($id_Estado['id_estado'], filter_input(INPUT_GET, \"municipio\"));\n $registro->setMunicipio_id($id_municipio['id_municipio']);\n if ($registro->Update() != null) {\n echo 'OK';\n } else {\n echo 'Algo salío mal :(';\n }\n}", "title": "" }, { "docid": "37bf5ba3360925d458042cc6a3f0446b", "score": "0.5934914", "text": "public function getCargos()\n {\n // Permisos según el tipo de actividad\n $oPermDossier = new dossiers\\PermDossier();\n $this->a_ref_perm = $oPermDossier->perm_pers_activ($this->id_tipo_activ);\n\n // primero el cl:\n // primero los cargos\n $gesAsistentes = new asistentes\\GestorAsistente();\n $c = 0;\n $num = 0;\n $a_valores = array();\n $this->aListaCargos = array();\n $GesCargosEnActividad = new actividadcargos\\GestorActividadCargo();\n $cCargosEnActividad = $GesCargosEnActividad->getActividadCargos(array('id_activ' => $this->id_pau));\n $mi_sfsv = ConfigGlobal::mi_sfsv();\n foreach ($cCargosEnActividad as $oActividadCargo) {\n $c++;\n $num++; // número total de asistentes.\n $id_item_cargo = $oActividadCargo->getId_item();\n $id_nom = $oActividadCargo->getId_nom();\n $this->aListaCargos[] = $id_nom;\n $id_cargo = $oActividadCargo->getId_cargo();\n $oCargo = new actividadcargos\\Cargo(array('id_cargo' => $id_cargo));\n $tipo_cargo = $oCargo->getTipo_cargo();\n // para los sacd en sf\n if ($tipo_cargo == 'sacd' && $mi_sfsv == 2) {\n continue;\n }\n\n $oPersona = personas\\Persona::NewPersona($id_nom);\n if (!is_object($oPersona)) {\n $this->msg_err .= \"<br>\";\n $this->msg_err .= sprintf(_(\"%s con id_nom: %s. En %s linea %s\"), $oPersona, $id_nom, __FILE__, __LINE__);\n continue;\n }\n $oCargo = new actividadcargos\\Cargo($id_cargo);\n\n $nom = $oPersona->getPrefApellidosNombre();\n $nombre = $oPersona->getNom();\n $apellidos = $oPersona->getApellidos();\n $sacd = ($oPersona->getSacd()) ? _(\"sí\") : '';\n // Añado los telf:\n $telfs = '';\n $telfs_fijo = $oPersona->telecos_persona($id_nom, \"telf\", \" / \", \"*\", FALSE);\n $telfs_movil = $oPersona->telecos_persona($id_nom, \"móvil\", \" / \", \"*\", FALSE);\n if (!empty($telfs_fijo) && !empty($telfs_movil)) {\n $telfs = $telfs_fijo . \" / \" . $telfs_movil;\n } else {\n $telfs .= $telfs_fijo ?? '';\n $telfs .= $telfs_movil ?? '';\n }\n $mails = '';\n $mails = $oPersona->telecos_persona($id_nom, \"e-mail\", \" / \", \"*\", FALSE);\n\n $cargo = $oCargo->getCargo();\n $puede_agd = $oActividadCargo->getPuede_agd();\n $observ_cargo = $oActividadCargo->getObserv();\n $dl_asistente = $oPersona->getDl();\n $ctr_dl = $oPersona->getCentro_o_dl();\n // permisos (añado caso de cargo sin nombre = todos permiso)\n if ($id_tabla = $oPersona->getId_tabla()) {\n $a_act = $this->a_ref_perm[$id_tabla];\n if ($a_act[\"perm\"]) {\n $this->permiso = 3;\n } else {\n $this->permiso = 1;\n }\n } else {\n $this->permiso = 3;\n }\n\n // ahora miro si también asiste:\n $plaza = asistentes\\Asistente::PLAZA_PEDIDA;\n $aWhere = array('id_activ' => $this->id_pau, 'id_nom' => $id_nom);\n $aOperador = array('id_activ' => '=', 'id_nom' => '=');\n // me aseguro de que no sea un cargo vacio (sin id_nom)\n if (!empty($id_nom) && $cAsistente = $gesAsistentes->getAsistentes($aWhere, $aOperador)) {\n if (is_array($cAsistente) && count($cAsistente) > 1) {\n $tabla = '';\n foreach ($cAsistente as $Asistente) {\n $tabla .= \"<li>\" . $Asistente->getNomTabla() . \"</li>\";\n }\n $msg_err = _(\"ERROR: más de un asistente con el mismo id_nom\") . \"<br>\";\n $msg_err .= \"<br>$nom(\" . $oPersona->getId_tabla() . \")<br><br>\";\n $msg_err .= _(\"En las tablas\") . \":<ul>$tabla</ul>\";\n exit (\"$msg_err\");\n }\n $oAsistente = $cAsistente[0];\n $propio = $oAsistente->getPropio();\n $falta = $oAsistente->getFalta();\n $est_ok = $oAsistente->getEst_ok();\n $observ = $oAsistente->getObserv();\n $plaza = empty($oAsistente->getPlaza()) ? asistentes\\Asistente::PLAZA_PEDIDA : $oAsistente->getPlaza();\n\n // contar plazas\n if (ConfigGlobal::is_app_installed('actividadplazas')) {\n // las cuento todas y a la hora de enseñar miro si soy la dl org o no.\n // propiedad de la plaza:\n $propietario = $oAsistente->getPropietario();\n $padre = strtok($propietario, '>');\n $child = strtok('>');\n $dl = $child;\n //si es de otra dl no distingo cedidas.\n // no muestro ni cuento las que esten en estado distinto al asignado o confirmado (>3)\n if ($padre != $this->mi_dele) {\n if ($plaza > asistentes\\Asistente::PLAZA_DENEGADA) {\n $this->incrementa($this->a_plazas_resumen[$padre][$dl]['ocupadas'][$plaza]);\n if (!empty($child) && $child != $padre) {\n $this->incrementa($this->a_plazas_conseguidas[$child][$padre]['ocupadas'][$dl][$plaza]);\n }\n } else {\n if (!empty($child) && $child == $this->mi_dele) {\n $this->incrementa($this->a_plazas_conseguidas[$child][$padre]['ocupadas'][$dl][$plaza]);\n } elseif (!empty($padre)) {\n continue;\n }\n }\n } else { // En mi dl distingo las cedidas\n // si no es de (la dl o de paso ) y no tiene la plaza asignada o confirmada no lo muestro\n if ($child != $this->mi_dele) {\n if ($plaza < asistentes\\Asistente::PLAZA_ASIGNADA) {\n continue;\n } else {\n $this->incrementa($this->a_plazas_conseguidas[$child][$padre]['ocupadas'][$dl][$plaza]);\n $this->incrementa($this->a_plazas_resumen[$padre][$dl]['ocupadas'][$plaza]);\n }\n } else {\n $this->incrementa($this->a_plazas_resumen[$padre][$dl]['ocupadas'][$plaza]);\n }\n }\n }\n\n if ($propio == 't') {\n $chk_propio = _(\"sí\");\n // Para los de des, elimino el cargo y la asistencia. Para el resto, sólo el cargo (no la asistencia).\n if (($_SESSION['oPerm']->have_perm_oficina('des')) || ($_SESSION['oPerm']->have_perm_oficina('vcsd'))) {\n $eliminar = 2;\n } else {\n $eliminar = 1;\n }\n } else {\n $chk_propio = _(\"no\");\n $eliminar = 2; //si no es propio, al eliminar el cargo, elimino la asistencia\n }\n $falta == 't' ? $chk_falta = _(\"sí\") : $chk_falta = _(\"no\");\n $est_ok == 't' ? $chk_est_ok = _(\"sí\") : $chk_est_ok = _(\"no\");\n $asis = \"t\";\n\n if ($this->permiso == 3) {\n $a_valores[$c]['sel'] = \"$id_nom#$id_item_cargo#$eliminar\";\n } else {\n $a_valores[$c]['sel'] = \"\";\n }\n $a_valores[$c][4] = $chk_propio;\n $a_valores[$c][5] = $chk_est_ok;\n $a_valores[$c][6] = $chk_falta;\n } else {\n $a_valores[$c][4] = array('span' => 3, 'valor' => _(\"no asiste\"));\n $observ = '';\n $num--;\n $asis = \"f\";\n }\n\n if (!empty($plaza)) {\n $a_valores[$c]['clase'] = 'plaza' . $plaza;\n } else {\n $a_valores[$c]['clase'] = 'plaza1';\n }\n\n $a_valores[$c][1] = $cargo;\n $a_valores[$c][2] = \"$nom ($ctr_dl)\";\n $a_valores[$c][3] = $dl_asistente;\n $a_valores[$c][7] = \"$observ_cargo $observ\";\n $a_valores[$c][8] = \"$sacd\";\n $a_valores[$c][9] = \"$telfs\";\n $a_valores[$c][10] = \"$mails\";\n $a_valores[$c][11] = \"$nombre\";\n $a_valores[$c][12] = \"$apellidos\";\n $a_valores[$c][13] = \"$ctr_dl\";\n }\n\n $this->num = $num;\n $this->a_valores = $a_valores;\n }", "title": "" }, { "docid": "54fb6aff368294b467bb224a2eed855f", "score": "0.5902572", "text": "public function __construct($tipoCambio, $moneda,\r\n $cliente, $detallesVenta, $descuento, $percepcionIIBB,\r\n $faeleService, $repoFactura, $repoCliente, $facturasAsociadas, $condicionVenta){\r\n\r\n parent::__construct($tipoCambio, \r\n $moneda, $cliente, $detallesVenta, $descuento, $percepcionIIBB, \r\n $faeleService, $repoFactura, $repoCliente, 'NOTA CREDITO A', $condicionVenta);\r\n\r\n $this->repoFactura=$repoFactura;\r\n $this->montoPercepcionIIBB=$percepcionIIBB;\r\n \r\n $this->facturasAsociadas=$this->buscarCbtesAsociados($facturasAsociadas);\r\n\r\n $this->montoPercepcionIIBB=$percepcionIIBB;\r\n\r\n $res=$this->generarNCAElectronica(); \r\n $this->setCAE($res['cae']['cae']);\r\n $this->setDigitoVerificador($res['digitoVerificador']);\r\n $this->setVencimientoCAE(\\DateTime::createFromFormat('Ymd', $res['cae']['fecha_vencimiento']));\r\n }", "title": "" }, { "docid": "3e23a6b7bc410f00348b4cad416a91ef", "score": "0.5890864", "text": "public static function basico(){\n $folios = [\n 33 => 9, // factura electrónica\n 61 => 7, // nota de crédito electrónicas\n 56 => 3, // nota de débito electrónica\n ];\n\n // caratula para el envío de los dte\n $caratula = [\n 'RutEnvia' => '13412179-3',\n 'RutReceptor' => '60803000-K',\n 'FchResol' => '2020-11-01',\n 'NroResol' => 0,\n ];\n\n // datos del emisor\n $Emisor = [\n 'RUTEmisor' => '76881221-7',\n 'RznSoc' => 'JOSÉ FRANCISCO TRONCOSO TRONCOSO REPUESTOS AUTOMOTRICES E.I.R.L.',\n 'GiroEmis' => 'COMPRA Y VENTA DE REPUESTOS DE VEHICULOS MOTORIZADOS',\n 'Acteco' => 453000,\n 'DirOrigen' => 'Arica',\n 'CmnaOrigen' => 'Arica',\n ];\n\n $Receptor=[\n 'RUTRecep' => '60803000-K',\n 'RznSocRecep' => 'Servicio Impuestos Internos',\n 'GiroRecep' => 'Estado',\n 'DirRecep' => 'Santiago',\n 'CmnaRecep' => 'Santiago'\n ];\n\n // datos de los DTE (cada elemento del arreglo $set_pruebas es un DTE)\n $set_pruebas = [\n // CASO 1595775-1 FACTURA ELECTRONICA NORMAL\n [\n 'Encabezado' => [\n 'IdDoc' => [\n 'TipoDTE' => 33,\n 'Folio' => $folios[33],\n ],\n 'Emisor' => $Emisor,\n 'Receptor' => $Receptor\n ],\n 'Detalle' => [\n [\n 'NmbItem' => 'Cajón AFECTO',\n 'QtyItem' => 152,\n 'PrcItem' => 2582,\n ],\n [\n 'NmbItem' => 'Relleno AFECTO',\n 'QtyItem' => 65,\n 'PrcItem' => 4278,\n ],\n ],\n 'Referencia' => [\n 'TpoDocRef' => 'SET',\n 'FolioRef' => $folios[33],\n 'RazonRef' => 'CASO 1595775-1',\n ],\n ],\n // CASO 1595775-2 FACTURA ELECTRONICA CON DESCUENTOS POR ITEMS\n [\n 'Encabezado' => [\n 'IdDoc' => [\n 'TipoDTE' => 33,\n 'Folio' => $folios[33]+1,\n ],\n 'Emisor' => $Emisor,\n 'Receptor' => $Receptor\n ],\n 'Detalle' => [\n [\n 'NmbItem' => 'Pañuelo AFECTO',\n 'QtyItem' => 573,\n 'PrcItem' => 4478,\n 'DescuentoPct' => 8,\n ],\n [\n 'NmbItem' => 'ITEM 2 AFECTO',\n 'QtyItem' => 511,\n 'PrcItem' => 3533,\n 'DescuentoPct' => 17,\n ],\n ],\n 'Referencia' => [\n 'TpoDocRef' => 'SET',\n 'FolioRef' => $folios[33]+1,\n 'RazonRef' => 'CASO 1595775-2',\n ],\n ],\n // CASO 1595775-3 FACTURA ELECTRONICA CON ITEM EXENTO\n [\n 'Encabezado' => [\n 'IdDoc' => [\n 'TipoDTE' => 33,\n 'Folio' => $folios[33]+2,\n ],\n 'Emisor' => $Emisor,\n 'Receptor' => $Receptor\n ],\n 'Detalle' => [\n [\n 'NmbItem' => 'Pintura B&W AFECTO',\n 'QtyItem' => 44,\n 'PrcItem' => 5244,\n ],\n [\n 'NmbItem' => 'ITEM 2 AFECTO',\n 'QtyItem' => 205,\n 'PrcItem' => 3574,\n ],\n [\n 'IndExe' => 1,\n 'NmbItem' => 'ITEM 3 SERVICIO EXENTO',\n 'QtyItem' => 1,\n 'PrcItem' => 35084,\n ],\n ],\n 'Referencia' => [\n 'TpoDocRef' => 'SET',\n 'FolioRef' => $folios[33]+2,\n 'RazonRef' => 'CASO 1595775-3',\n ],\n ],\n // CASO 1595775-4 FACTURA ELECTRÓNICA CON DESCUENTO GLOBAL\n [\n 'Encabezado' => [\n 'IdDoc' => [\n 'TipoDTE' => 33,\n 'Folio' => $folios[33]+3,\n ],\n 'Emisor' => $Emisor,\n 'Receptor' => $Receptor\n ],\n 'Detalle' => [\n [\n 'NmbItem' => 'ITEM 1 AFECTO',\n 'QtyItem' => 296,\n 'PrcItem' => 4416,\n ],\n [\n 'NmbItem' => 'ITEM 2 AFECTO',\n 'QtyItem' => 126,\n 'PrcItem' => 5153,\n ],\n [\n 'IndExe' => 1,\n 'NmbItem' => 'ITEM 3 SERVICIO EXENTO',\n 'QtyItem' => 2,\n 'PrcItem' => 6810,\n ],\n ],\n 'DscRcgGlobal' => [\n 'TpoMov' => 'D',\n 'TpoValor' => '%',\n 'ValorDR' => 17,\n ],\n 'Referencia' => [\n 'TpoDocRef' => 'SET',\n 'FolioRef' => $folios[33]+3,\n 'RazonRef' => 'CASO 1595775-4',\n ],\n ],\n // CASO 1595775-5 NOTA CREDITO CORRIGE GIRO RECEPTOR DE CASO 1595775-1\n [\n 'Encabezado' => [\n 'IdDoc' => [\n 'TipoDTE' => 61,\n 'Folio' => $folios[61],\n ],\n 'Emisor' => $Emisor,\n 'Receptor' => $Receptor,\n 'Totales' => [\n 'MntTotal' => 0,\n ]\n ],\n 'Detalle' => [\n [\n 'NmbItem' => 'Cajón AFECTO',\n ],\n ],\n 'Referencia' => [\n [\n 'TpoDocRef' => 'SET',\n 'FolioRef' => $folios[61],\n 'RazonRef' => 'CASO 1595775-5',\n ],\n [\n 'TpoDocRef' => 33,\n 'FolioRef' => $folios[33],\n 'CodRef' => 2,\n 'RazonRef' => 'CORRIGE GIRO DEL RECEPTOR',\n ],\n ]\n ],\n // CASO 1595775-6 NOTA CREDITO ELECTRONICA DEVUELVE MERCADERIAS CASO 1595775-2\n [\n 'Encabezado' => [\n 'IdDoc' => [\n 'TipoDTE' => 61,\n 'Folio' => $folios[61]+1,\n ],\n 'Emisor' => $Emisor,\n 'Receptor' => $Receptor,\n 'Totales' => [\n // estos valores serán calculados automáticamente\n 'MntNeto' => 0,\n 'TasaIVA' => 19,\n 'IVA' => 0,\n 'MntTotal' => 0,\n ],\n ],\n 'Detalle' => [\n [\n 'NmbItem' => 'Pañuelo AFECTO',\n 'QtyItem' => 210,\n 'PrcItem' => 4478, //copiar el precio unitario del caso 2\n 'DescuentoPct' => 8,\n ],\n [\n 'NmbItem' => 'ITEM 2 AFECTO',\n 'QtyItem' => 347,\n 'PrcItem' => 3533, //copiar el precio unitario del caso 2\n 'DescuentoPct' => 17,\n ],\n ],\n 'Referencia' => [\n [\n 'TpoDocRef' => 'SET',\n 'FolioRef' => $folios[61]+1,\n 'RazonRef' => 'CASO 1595775-6',\n ],\n [\n 'TpoDocRef' => 33,\n 'FolioRef' => $folios[33]+1,\n 'CodRef' => 3,\n 'RazonRef' => 'DEVOLUCION DE MERCADERIAS',\n ],\n ]\n ],\n // CASO 1595775-7 NOTA CREDITO ELECTRONICA ANULA FACTURA CASO 3\n [\n 'Encabezado' => [\n 'IdDoc' => [\n 'TipoDTE' => 61,\n 'Folio' => $folios[61]+2,\n ],\n 'Emisor' => $Emisor,\n 'Receptor' => $Receptor,\n 'Totales' => [\n // estos valores serán calculados automáticamente\n 'MntNeto' => 0,\n 'MntExe' => 0,\n 'TasaIVA' => 19,\n 'IVA' => 0,\n 'MntTotal' => 0,\n ],\n ],\n 'Detalle' => [//COPIAR CANTIDADES Y PRECIOS DEL CASO 3\n [\n 'NmbItem' => 'Pintura B&W AFECTO',\n 'QtyItem' => 44,\n 'PrcItem' => 5244,\n ],\n [\n 'NmbItem' => 'ITEM 2 AFECTO',\n 'QtyItem' => 205,\n 'PrcItem' => 3574,\n ],\n [\n 'IndExe' => 1,\n 'NmbItem' => 'ITEM 3 SERVICIO EXENTO',\n 'QtyItem' => 1,\n 'PrcItem' => 35084,\n ],\n ],\n 'Referencia' => [\n [\n 'TpoDocRef' => 'SET',\n 'FolioRef' => $folios[61]+2,\n 'RazonRef' => 'CASO 1595775-7',\n ],\n [\n 'TpoDocRef' => 33,\n 'FolioRef' => $folios[33]+2,\n 'CodRef' => 1,\n 'RazonRef' => 'ANULA FACTURA',\n ],\n ]\n ],\n // CASO 1347240-8 NOTA DEBITO ELECTRONICA ANULA NOTA DE CREDITO CASO 5\n [\n 'Encabezado' => [\n 'IdDoc' => [\n 'TipoDTE' => 56,\n 'Folio' => $folios[56],\n ],\n 'Emisor' => $Emisor,\n 'Receptor' =>$Receptor,\n 'Totales' => [\n 'MntTotal' => 0,\n ],\n ],\n 'Detalle' => [\n [\n 'NmbItem' => 'Cajón AFECTO',\n ],\n ],\n 'Referencia' => [\n [\n 'TpoDocRef' => 'SET',\n 'FolioRef' => $folios[56],\n 'RazonRef' => 'CASO 1595775-8',\n ],\n [\n 'TpoDocRef' => 61,\n 'FolioRef' => $folios[61],\n 'CodRef' => 1,\n 'RazonRef' => 'ANULA NOTA DE CREDITO ELECTRONICA',\n ],\n ]\n ],\n ];\n\n // Objetos de Firma, Folios y EnvioDTE\n $Firma=self::dame_firma();\n if($Firma===false){\n return \"archivo de firma errado.\";\n }\n\n $Folios = [];\n foreach ($folios as $tipo => $cantidad){\n $Folios[$tipo] = new Folios(file_get_contents(base_path().'/xml/folios/'.$tipo.'.xml'));\n }\n\n $EnvioDTE = new EnvioDte();\n\n // generar cada DTE, timbrar, firmar y agregar al sobre de EnvioDTE\n foreach ($set_pruebas as $documento) {\n $DTE = new Dte($documento);\n if (!$DTE->timbrar($Folios[$DTE->getTipo()]))\n break;\n if (!$DTE->firmar($Firma))\n break;\n $EnvioDTE->agregar($DTE);\n }\n\n // enviar dtes y mostrar resultado del envío: track id o bien =false si hubo error\n $EnvioDTE->setCaratula($caratula);\n $EnvioDTE->setFirma($Firma);\n $nombre='set_basico_'.intval(microtime(true));\n file_put_contents(base_path().'/xml/generados/'.$nombre.'.xml', $EnvioDTE->generar()); // guardar XML en sistema de archivos\n return \"Listo: \".$nombre.'.xml en /xml/generados';\n }", "title": "" }, { "docid": "04bc026beca28c73837f4cd0889cb88e", "score": "0.58883905", "text": "private function crea_compra() {\n \t\t$compranueva = new compra; \n }", "title": "" }, { "docid": "b0387b4da20b435436af83a49d91bd3a", "score": "0.5879201", "text": "function setCrearCarpeta($crearCarpeta) {\r\n $this->crearCarpeta = $crearCarpeta;\r\n }", "title": "" }, { "docid": "79069d4b5f7aee5e1295165b19accf80", "score": "0.5877178", "text": "public function __set($atributo,$valor){\n $this->$atributo = $valor;\n }", "title": "" }, { "docid": "3a153fef2c63640842e6a04aa2799ad1", "score": "0.5870029", "text": "function __set($atributo, $valor){\n $this->$atributo = $valor;\n }", "title": "" }, { "docid": "a2e5f55b21cde0b69b874a29bb05cf7b", "score": "0.5858425", "text": "public function makeCita($codalu,$fecha){\n if(is_string($codalu)){\n $attributes=[\n 'talleresdet_id'=>$talleresdet_id,\n 'talleresdet_id'=>$talleresdet_id,\n 'fechaprog'=>$fecha,\n 'codtra'=>$codtra,\n \n ];\n \n \n }\n \n \n \n }", "title": "" }, { "docid": "38623996576402422d2703ef08094c02", "score": "0.58518994", "text": "public function setEtat() {\n // \"Attente Traitement\", 'code' => \"state_1\"\n // \"Traitement En Cours\", 'code' => \"state_2\"\n // \"Validé Sans Ecart\", 'code' => \"state_3\"\n // \"Validé Avec Ecart Positif\", 'code' => \"state_4\"\n // \"Validé Avec Ecart Négatif\", 'code' => \"state_5\"\n // \"Rejété\", 'code' => \"state_6\"\n\n $nb_all = 0;\n $nb_en_attente = 0;\n $nb_en_cours = 0;\n $nb_valide = 0;\n $nb_valide_pos = 0;\n $nb_valide_neg = 0;\n $nb_rejetes = 0;\n\n foreach ($this->lignes as $ligne) {\n $nb_all += 1;\n if ($ligne->etat->code === \"state_1\") {\n $nb_en_attente += 1;\n } elseif ($ligne->etat->code === \"state_2\") {\n $nb_en_cours += 1;\n } elseif ($ligne->etat->code === \"state_3\") {\n $nb_valide += 1;\n } elseif ($ligne->etat->code === \"state_4\") {\n $nb_valide_pos += 1;\n } elseif ($ligne->etat->code === \"state_5\") {\n $nb_valide_neg += 1;\n } else {\n $nb_rejetes += 1;\n }\n }\n\n if ($nb_all === $nb_rejetes) {\n $this->bordereauremise_etat_id = BordereauremiseEtat::coded('state_6')->first()->id;\n } elseif ($nb_all === $nb_valide_neg) {\n $this->bordereauremise_etat_id = BordereauremiseEtat::coded('state_5')->first()->id;\n } elseif ($nb_all === $nb_valide_pos) {\n $this->bordereauremise_etat_id = BordereauremiseEtat::coded('state_4')->first()->id;\n } elseif ($nb_all === $nb_valide) {\n $this->bordereauremise_etat_id = BordereauremiseEtat::coded('state_3')->first()->id;\n } elseif ($nb_all === $nb_en_cours) {\n $this->bordereauremise_etat_id = BordereauremiseEtat::coded('state_2')->first()->id;\n } else {\n $this->bordereauremise_etat_id = BordereauremiseEtat::coded('state_1')->first()->id;\n }\n\n }", "title": "" }, { "docid": "9ec77a0ae5e23a78cf08983c17ebea28", "score": "0.5842405", "text": "public function __construct(){\n\t\t$this->codTasas=9;\n\t\t$this->eneable=true;\n\t\t$this->disabled=0;\n\t\t$this->continente='AMÉRICA';\n\t}", "title": "" }, { "docid": "0d350519e1eb6ee06c448aabc575aaed", "score": "0.5841485", "text": "function set(Descarga $descarga){\r\n //$parametrosSet=$city->getGenerico();\r\n /*foreach ($city as $key => $value) {\r\n $parametrosSet[$key] = $value;\r\n }*/\r\n $parametrosWhere=array();\r\n $parametrosWhere[\"id_descarga\"]=$descarga->getID();\r\n return $this->bd->update($this->tabla, $descarga->getGenerico(), $parametrosWhere);\r\n \r\n }", "title": "" }, { "docid": "e3ebae3b9de590dd3aace675c4db79cd", "score": "0.58370984", "text": "function asignar_valores(){\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->categoria=$_POST['categoria'];\n\t\t$this->fecha=$_POST['fecha'];\n\t\t$this->hasta=$_POST['hasta'];\n\t\t$this->descripcion=$_POST['descripcion'];\n\t}", "title": "" }, { "docid": "003046d4f80c4a8a587c3525cc9ba5c4", "score": "0.581269", "text": "public function setNumero($numero){\n $this->numero=$numero;}", "title": "" }, { "docid": "3e12deda0aba04ccbc21381f2da2f7fc", "score": "0.58085513", "text": "function __construct($autor,$titulo,$year,$tipoMaterial){ //Constructor que llama a la función automáticamente\n parent::__construct($autor,$titulo,$year,$tipoMaterial); //Toma los atributos de clase Materiales\n }", "title": "" }, { "docid": "fa18223d1d6b246e233c1fa8c321abcc", "score": "0.5806277", "text": "public function setComentario($datos){\n\t\t\t$errores = array();\n\t\t\t$resultado = array();\n\n\t\t\tif( $this->getInfo('conf_coment') != 0 ){\n\t\t\t\t$datos = extras::limpiarCadenas($datos);\n\t\t\t\t$ckeckCamposVacios = extras::checkCampoVacio(array(\n\t\t\t\t\t'destino' => $datos['destino'],\n\t\t\t\t\t'autor' => $datos['autor'],\n\t\t\t\t\t'email' => $datos['email'],\n\t\t\t\t\t'contenido' => $datos['contenido'],\n\t\t\t\t));\n\t\t\t\tif( !filter_var( $datos['email'], FILTER_VALIDATE_EMAIL ) ) $errores[] = 'email_incorrecto';\n\t\t\t\tif( !filter_var( $datos['sitio'], FILTER_VALIDATE_URL ) && !empty($datos['sitio']) )\n\t\t\t\t\t$errores[] = 'urlsitio_incorrecto';\n\n\t\t\t\tif( !$ckeckCamposVacios && !$errores ){\n\t\t\t\t\t$opciones = array(\n\t\t\t\t\t\t'destino' => (INT) $datos['destino'],\n\t\t\t\t\t\t'usuario' => 0,\n\t\t\t\t\t\t'autor' => $datos['autor'],\n\t\t\t\t\t\t'email' => $datos['email'],\n\t\t\t\t\t\t'sitio' => $datos['sitio'],\n\t\t\t\t\t\t'contenido' => $datos['contenido'],\n\t\t\t\t\t\t'tipo' => 1,\n\t\t\t\t\t\t'superior' => 0,\n\t\t\t\t\t\t'estado' => $this->getInfo('conf_coment'),\n\t\t\t\t\t);\n\t\t\t\t\tif( !$this->getComentarioAntiflood( $opciones['destino'] ) ){\n\t\t\t\t\t\t$resultado = $this->entrada->setComentario($opciones);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$resultado = array('demasiados_comentarios');\n\t\t\t\t\t}\n\t\t\t\t}else if( $errores || $ckeckCamposVacios ){\n\t\t\t\t\t$resultado = array_merge( $ckeckCamposVacios, $errores );\n\t\t\t\t}\n\t\t\t}else $resultado = array('comentarios_deshabilitados');\n\n\t\t\tif( is_array($resultado) ) return json_encode(array('estado' => 0, 'error' => $resultado));\n\t\t\telse if( $resultado ) return json_encode(array('estado' => 1, 'error' => array()));\n\t\t}", "title": "" }, { "docid": "2edf64190ecd565862c62419c10ffb6b", "score": "0.5798958", "text": "function Setceldas($cc)\n{\n \n $this->celdas=$cc;\n}", "title": "" }, { "docid": "35029519bc6fab940268fa6d72df1c03", "score": "0.57984936", "text": "public function gerarDados() {\n \n $oDbConfig = new db_stdClass();\n $clConPlano = db_utils::getDao('conplano');\n $oDadoConfig = $oDbConfig->getDadosInstit();\n \n if ($oDadoConfig->db21_tipoinstit == 9 || $oDadoConfig->db21_tipoinstit == 10) {\n $this->sIndicadorEmpresa = 'S';\n } \n\n\t $this->setCodigoLayout(204);\n if( $iAnoSessao < 2013 ){\n \t $this->setCodigoLayout(109);\n }\n \n $sCampos = \" conplano.c60_anousu, \t\t\t\t \";\n $sCampos.= \" conplano.c60_estrut, \";\n $sCampos.= \" conplano.c60_codcon, \"; \n $sCampos.= \" conplano.c60_codsis, \";\n $sCampos.= \" conplano.c60_descr, \";\n $sCampos.= \" conplanoreduz.c61_codigo, \";\n $sCampos.= \" coalesce(conplanoreduz.c61_reduz,0) as c61_reduz, \";\n $sCampos.= \" conplanoreduz.c61_instit, \";\n $sCampos.= \" fc_nivel_plano2005(conplano.c60_estrut) as nivel, \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \";\n $sCampos.= \" case when conplanoreduz.c61_reduz is not null then 1 else 2 end as recebe_lancamento, \t\t\t\t \";\n $sCampos.= \" case when conplano.c60_codsis = 6 then 1 \";\n $sCampos.= \" when orcelemento.o56_codele is not null then 2 \";\n $sCampos.= \" when orcfontes.o57_codfon is not null then 3 \";\n $sCampos.= \" else 9 end as tipo_conta, \t\t\t\t\t\t\t\t\t\t\t \";\n $sCampos.= \" case when c63_banco is null then '0' else c63_banco end as banco, \";\n $sCampos.= \" case when c63_agencia is null then '' else c63_agencia end as agencia, \";\n $sCampos.= \" case when c63_conta is null then '' else c63_conta end as conta \";\n \n $sSqlConPlano = $clConPlano->sql_query_planocontas($this->iAnoUso, $sCampos, 'conplano.c60_estrut');\n //die( $sSqlConPlano );\n $rsConPlano = $clConPlano->sql_record($sSqlConPlano);\n \n /*\n * Variáveis de contrele da Classe;\n */\n $ReservadoTCE = \" \";\n $iMes = substr($this->dtDataFinal, 5, 2);\n $this->addLog(\"=====Arquivo\".$this->getNomeArquivo().\" Erros:\\n\");\n if ($clConPlano->numrows > 0) {\n \n if (empty($this->sCodigoTribunal)) {\n throw new Exception(\"O código do tribunal deve ser informado para geração do arquivo\");\n }\n \n for($i = 0; $i < $clConPlano->numrows; $i++) {\n \n $oDados = new stdClass();\n $oDadosPlano = db_utils::fieldsMemory($rsConPlano, $i);\n\n if ( $oDadosPlano->c61_reduz > 0 and $oDadosPlano->c61_instit <> $oDadoConfig->codigo ) {\n continue;\n }\n \n $iCodigoContaTCE = '';\n $sNaturezaSaldo = 'M';\n if ($oVinculo = SigfisVinculoConta::getVinculoConta($oDadosPlano->c60_codcon)) {\n \n $iCodigoContaTCE = $oVinculo->contatce;\n $sNaturezaSaldo = $oVinculo->naturezasaldo;\n\n } else {\n \n $sErroLog = \"Conta {$oDadosPlano->c60_codcon} - {$oDadosPlano->c60_estrut} - {$oDadosPlano->c60_descr} \";\n $sErroLog .= \"sem Vinculo com plano do SIGFIS\\n\";\n $this->addLog($sErroLog);\n }\n $iCodigoRecursoTCE = '';\n if ($oDadosPlano->recebe_lancamento == 1) {\n \n if ($oRecursoTCE = SigfisVinculoRecurso::getVinculoRecurso($oDadosPlano->c61_codigo)) {\n $iCodigoRecursoTCE = $oRecursoTCE->recursotce;\n } else {\n \n $sErroLog = \"Conta {$oDadosPlano->c60_codcon} - {$oDadosPlano->c60_estrut} - {$oDadosPlano->c60_descr} \";\n $sErroLog .= \"possui recurso de código {$oDadosPlano->c61_codigo} sem Vinculo com os recursos do SIGFIS.\\n\";\n $this->addLog($sErroLog);\n\n }\n\n }\n \n //// nÃo listar contar que nÃo possuam vinculo com o SIGFIS\n if(trim($iCodigoContaTCE) ==''){\n continue;\n }\n\n $oDados->dt_AnoCriacao = $oDadosPlano->c60_anousu;\n $oDados->tp_OrigemSaldo = $sNaturezaSaldo; // 'M'; // Vem do XML;\n $oDados->cd_RecebeLanc = $oDadosPlano->recebe_lancamento;\n $oDados->ST_EMPRESA = $this->sIndicadorEmpresa;\n $oDados->dt_AnoMes = $oDadosPlano->c60_anousu.$iMes;\n $oDados->nu_SequencialTC = str_pad($iCodigoContaTCE, 4, ' ', STR_PAD_LEFT); // Vem do XML \n $oDados->cd_Unidade = str_pad($this->sCodigoTribunal, 4, ' ', STR_PAD_LEFT);\n $oDados->cd_ContaContabil = str_pad($oDadosPlano->c60_estrut, 34, ' ', STR_PAD_RIGHT);\n $oDados->tp_ContaContabil = str_pad($oDadosPlano->tipo_conta, 1, ' ', STR_PAD_LEFT);\n $oDados->nm_ContaContabil = str_pad($oDadosPlano->c60_descr, 50, \" \", STR_PAD_RIGHT);\n $oDados->nu_Nivel = str_pad($oDadosPlano->nivel, 4, \" \", STR_PAD_LEFT);\n $oDados->cd_Banco = str_pad(substr($oDadosPlano->banco,0,4), 4, ' ', STR_PAD_LEFT);\n $oDados->cd_AgenciaBancaria = str_pad(substr($oDadosPlano->agencia,0,12),12, ' ', STR_PAD_RIGHT);\n $oDados->cd_ContaBancaria = str_pad(substr($oDadosPlano->conta,( $oDadosPlano->banco == 104?2:0),10), 10, ' ', STR_PAD_RIGHT);\n $oDados->Reservado_tce1 = str_pad($ReservadoTCE, 34, \" \", STR_PAD_LEFT);\n $oDados->Reservado_tce2 = str_pad($ReservadoTCE, 4, \" \", STR_PAD_LEFT);\n $oDados->cd_FonteGestor = str_pad($oDadosPlano->c61_codigo, 4, \" \", STR_PAD_LEFT);\n if($iAnoSessao < 2013 ){\n $oDados->codigolinha = 396;\n }else{\n $oDados->Cd_Atrib_ContaCorrente = '0';\n $oDados->Cd_ContaCorrente = str_pad(str_repeat(' ', 30), 30, ' ', STR_PAD_RICHT);\n $oDados->de_ContaCorrente = str_pad(str_repeat(' ', 100), 100, ' ', STR_PAD_RICHT);\n $oDados->nu_Sequencial_PCASP = str_pad(str_repeat(' ', 5), 5, \" \", STR_PAD_LEFT);\n $oDados->codigolinha = 669;\n }\n \n if ($oDadosPlano->agencia == '0' ) {\n $oDados->cd_AgenciaBancaria = str_pad($oDadosPlano->agencia, 12, ' ', STR_PAD_LEFT);\n }\n if ($oDadosPlano->conta == '0') {\n $oDados->cd_ContaBancaria = str_pad($oDadosPlano->conta, 10, ' ', STR_PAD_LEFT);\n }\n \n $this->aDados[] = $oDados; \n \n }\n }\n $this->addLog(\"===== Fim do Arquivo: \".$this->getNomeArquivo().\"\\n\");\n \n return $this->aDados;\n }", "title": "" }, { "docid": "17e140aeebdf61338227aa9bb100c6c1", "score": "0.57722247", "text": "function Cuerpo($acceso,$desde,$hasta,$id_persona_cob,$com)\n\t{\n\t\n\t\t\n\t\t$acceso->objeto->ejecutarSql(\"select *from vista_vendedor where id_persona='$id_persona_cob' order By nombre\");\n\t\tif($row=row($acceso))\n\t\t{\n\t\t\t$nombre=utf8_decode(trim($row[\"nombre\"]).\" \".trim($row[\"apellido\"]));\n\t\t\t$ncedula=trim($row[\"cedula\"]);\n\t\t}\n\t\n\t\t$this->SetFont('Arial','B',10);\n\t\t$this->SetX(20);\n\t\t$this->Cell(40,5,strtoupper(_(\"vendedor \")).\": \".$nombre.\" \".strtoupper(_(\"cedula \")).\": \".$ncedula,0,0,'L');\n\t\t$this->Ln();\n\t\t$this->SetFont('Arial','B',10);\n\t\t$this->SetX(20);\n\t\t$this->Cell(40,5,strtoupper(_(\"fecha Desde \")).\": \".formatofecha($desde).strtoupper(_(\" hasta \")).\": \".formatofecha($hasta),0,0,'L');\n\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->Ln();\n\t\t\n\t\t\n\t\t//$tipo_caja=verCajaPrincipal($acceso);\n\t\t$w=$this->TituloCampos();\n\t\t\n\t\t$acceso->objeto->ejecutarSql(\"SELECT *FROM parametros where id_param='2'\");\n\t\t\n\t\tif($row=row($acceso)){\n\t\t\t$por_iva=trim($row['valor_param']);\n\t\t}\n\t\t\n\t\t//echo \"SELECT id_contrato,nro_contrato,cedula,(nombre || ' ' || apellido) as nombre,fecha_contrato, status_contrato, costo_contrato,nombre_sector,nombre_zona FROM vista_contrato where fecha_contrato between '$desde' and '$hasta' and id_persona='$id_persona_cob' order by fecha_contrato,nro_contrato\";\n\t\t$acceso->objeto->ejecutarSql(\"SELECT id_contrato,nro_contrato,cedula,(nombre || ' ' || apellido) as nombre,fecha_contrato, status_contrato, costo_contrato,nombre_sector,nombre_zona FROM vista_contrato where fecha_contrato between '$desde' and '$hasta' and id_persona='$id_persona_cob' order by fecha_contrato,nro_contrato\");\n\t\t\n\t\t$this->SetFont('Arial','',9);\n\t\t$cont=1;\n\t\t$this->SetFillColor(249,249,249);\n\t\t$this->SetTextColor(0);\n\t\t$ca[0]='';\n\t\t$tipo_pago[0]='';\n\t\t$y=0;\n\t\t$sumatoria=0.00;\n\t\twhile ($row=row($acceso))\n\t\t{\n\t\t\t\n\t\t\t\t$this->SetX(15);\n\t\t\t\t$this->Cell($w[0],6,$cont,\"LR\",0,\"C\",$fill);\n\t\t\t\t$this->Cell($w[1],6,utf8_decode(trim($row[\"nro_contrato\"])),\"LR\",0,\"J\",$fill);\n\t\t\t\t$this->Cell($w[2],6,utf8_decode(trim($row[\"cedula\"])),\"LR\",0,\"J\",$fill);\n\t\t\t\t$this->Cell($w[3],6,substr(utf8_decode(trim($row[\"nombre\"])), 0,28),\"LR\",0,\"J\",$fill);\n\t\t\t\t$this->Cell($w[4],6,number_format(trim($row[\"costo_contrato\"])+0, 2, ',', '.'),\"LR\",0,\"R\",$fill);\n\t\t\t\t$this->Cell($w[5],6,formatofecha(trim($row[\"fecha_contrato\"])),\"LR\",0,\"C\",$fill);\n\t\t\t\t$this->Cell($w[6],6,trim($row[\"status_contrato\"]),\"LR\",0,\"C\",$fill);\n\n\t\t\t\t$this->Ln();\n\t\t\t\t$fill=!$fill;\n\t\t\t\t$cont++;\n\t\t\t\n\t\t}\n\t\t$this->SetX(15);\n\t\t$this->Cell(array_sum($w),5,'','T');\n\t\t\n\t\t\n\t\t$acceso->objeto->ejecutarSql(\"select sum(costo_contrato) as total_p from contrato where fecha_contrato between '$desde' and '$hasta' and id_persona='$id_persona_cob'\");\n\t\t$row=row($acceso);\n\t\t$total_p=trim($row[\"total_p\"]);\n\t\t\n\t\t$comision=($total_p*$com)/100;\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetX(75);\n\t\t$this->SetFont('Arial','BI',9);\n\t\t$this->Cell(55,6,strtoupper(_('resumen general')),\"0\",0,\"C\",$fill);\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetX(75);\n\t\t$this->Cell(30,6,strtoupper(_('comision ')).\"($com%): \",\"1\",0,\"L\",$fill);\n\t\t\n\t\t$this->Cell(25,6,number_format($comision+0, 2, ',', '.'),\"1\",0,\"R\",$fill);\n\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetX(75);\n\t\t$this->Cell(30,6,strtoupper(_('total general')).\": \",\"1\",0,\"L\",$fill);\n\t\t\n\t\t$this->Cell(25,6,number_format($total_p+0, 2, ',', '.'),\"1\",0,\"R\",$fill);\n\t}", "title": "" }, { "docid": "3cc29c5caca813530916a20d7bf99d55", "score": "0.5768108", "text": "function Cuerpo($acceso,$desde,$hasta,$tipo,$id_f)\n\t{\n\t\t$tipo=utf8_decode($tipo);\n\t\t$this->SetFont('Arial','B',9);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,6,\"Tipo: $tipo Desde \".formatofecha($desde).\" Hasta \".formatofecha($desde),\"LR\",0,\"C\",$fill);\n\t\t$this->Ln();\n\t\t$acceso1=conexion();\n\t\t$tipo_caja=verCajaPrincipal($acceso);\n\t//\t$w=$this->TituloCampos();\n\t\t\n\t\t$acceso->objeto->ejecutarSql(\"SELECT *FROM parametros where id_param='2'\");\n\t\t\n\t\tif($row=row($acceso)){\n\t\t\t$por_iva=trim($row['valor_param']);\n\t\t}\n\t\t\n\t\t$this->SetFillColor(244,249,255);\n\t\t$this->SetDrawColor(225,240,255);\n\t\t$this->SetLineWidth(.2);\n\t\t\n\t\t$w=array(20);\n\t\t$total_f=array();\n\t\t$total_t=array();\n\t\t$header=array('Fecha');\n\t\t$tama=20;\n\t\t$tama_c=8;\n\t\t$i=1;\n\t\t/*\n\t\t$acceso1->objeto->ejecutarSql(\"SELECT nombre_servicio,tipo_costo FROM servicios where status_serv='ACTIVO' ORDER BY tipo_costo\");\n\t\twhile($row=row($acceso1)){\n\t\t\t$nombre_servicio=substr(trim($row['nombre_servicio']),0,10);\n\t\t\t$tipo_costo=trim($row['tipo_costo']);\n\t\t\t$w[$i]=$tama;\n\t\t\t$header[$i]=$nombre_servicio;\n\t\t\t$i++;\n\t\t\t$w[$i]=$tama_c;\n\t\t\t$header[$i]=\"Cant\";\n\t\t\t$i++;\n\t\t\t\n\t\t\t/*\n\t\t\tif($tipo_costo==\"COSTO MENSUAL\"){\n\t\t\t\t$w[$i]=$tama_c;\n\t\t\t\t$header[$i]=\"CANT\";\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\t*/\n\t\t}", "title": "" }, { "docid": "862e8eaf7e439846182d2ad8b1126569", "score": "0.5762644", "text": "function setConsulta($valor){\n $this->consulta = $valor;\n $this->resultado = 2;\n }", "title": "" }, { "docid": "936f50b38e3288d5c7ffa8f81e4e51b4", "score": "0.57612485", "text": "function setValores($valor){\n $this->valores = $valor;\n }", "title": "" }, { "docid": "25641471b96075932b21f6486ad84798", "score": "0.5760528", "text": "public function __construct($nombre, $tipo, $descripcion, $asignatura, $titular,$miembros, $fecha_ini, $fecha_fin){\n parent::__construct($nombre, $tipo, $descripcion, $asignatura, $titular);\n $this->miembros= $miembros;\n $this->fecha_ini= $fecha_ini;\n $this->fecha_fin= $fecha_fin;\n }", "title": "" }, { "docid": "a60ef666fea4ac9363e94294d086cee7", "score": "0.57564133", "text": "public function ciudad($metodo,$argumentos = array()){\n require_once ROOT . DEFAULT_CORE; \n require_once ROOT . DEFAUL_FUNCTION;\n require_once ROOT . 'modules/sistema/model/sistemaModel.php';\n require_once ROOT . VIEW_PACH . DS . 'view.php';\n $sistema = new ModeloSistema();\n $Objvista = new view;\n if(!Session::get('usuario')){\n $data = array('ERR'=>3,\n 'MSJ'=>'No ha iniciado Sesi&oacute;n');\n $cadenaSql= fbRetornaConfigForm();\n $sistema->get_datos($cadenaSql, 'head_formulario_config=\"login\"', 'sys_formulario_config');\n $dataFormGeneral=$sistema->_data;\n $Objvista->retornar_vista(DEFAULT_CONTROLLER,'sistema','login','login',$data,$dataFormGeneral);\n }else{\n $met= isset($argumentos[6]) ? $argumentos[6] : \"N\";\n $data=array();$camposCombo=array();\n if(!empty($argumentos[3])){\n $sistema->get_datos('*',\"cod_ciudad=\".$argumentos[3],$argumentos[4]); $data=$sistema->_data;\n }\n $cadenaSql= fbRetornaConfigForm();\n $sistema->get_datos($cadenaSql, 'head_formulario_config=\"'.devuelveString($argumentos[2],'*',1).'\"', 'sys_formulario_config');\n $dataFormGeneral=$sistema->_data;\n setVariables($sistema,$Objvista,$metodo,$argumentos[1],$argumentos[0],'sys_view_ciudad','','','',1,'',devuelveString($argumentos[2],'*',2),$met);\n $Objvista->retornar_vista(DEFAULT_CONTROLLER,'sistema','index',devuelveString($argumentos[2],'*',1),$data,$dataFormGeneral);\n }\t\n }", "title": "" }, { "docid": "c6e7a124739eda10804846dc08645c8f", "score": "0.5756383", "text": "public function cadastrarFabricante()\n {\n // Verifica se existe acao de envio\n if (isset($_POST['btn_salvar']))\n {\n // Coleta os dados\n $fabricante = $this->tratamento($_POST['txt_fabricante']);\n $ddd = !empty($_POST['txt_ddd']) ? $this->tratamento($_POST['txt_ddd'],3) : 0;\n $telefone = !empty($_POST['txt_telefone']) ? $this->tratamento($_POST['txt_telefone'],3) : 0;\n $cep = $this->tratamento($_POST['txt_cep'],3);\n $endereco = $this->tratamento($_POST['txt_endereco']);\n $numero = !empty($_POST['txt_numero']) ? $this->tratamento($_POST['txt_numero'],3) : 0;\n $cidade = $this->tratamento($_POST['txt_cidade']);\n $bairro = $this->tratamento($_POST['txt_bairro']);\n $pais = $this->tratamento($_POST['opc_pais']);\n $estado = $this->tratamento($_POST['opc_estado']);\n\n // Verifica se existe campo em braco\n if ($fabricante != \"\" && $cep != \"\" && $endereco != \"\" && $cidade != \"\" && $bairro != \"\")\n {\n // Se nao existir campo em branco\n // Monta a query\n $query = \"insert into tb_fabricante (nome, ddd, telefone, cep, endereco, numero, cidade, bairro, id_pais, id_estado,id_users)\n values ('{$fabricante}','{$ddd}','{$telefone}','{$cep}','{$endereco}','{$numero}','{$cidade}',\n '{$bairro}','{$pais}','{$estado}','{$_SESSION['userdata']['userId']}')\";\n\n // Insere no banco e exibe uma mensagem\n $this->validaInsercaoBanco($query, \"Cadastro salvo com sucesso!\", \"Erro durante o salvamento.\");\n }\n else\n {\n // Se existir campo em branco\n // Apresentar mensagem informando que existe campo em branco\n echo \"<div class='mensagemError'><span>Existe campos em branco</span></div>\";\n }\n }\n }", "title": "" }, { "docid": "d87c81f19bad4dfb850f5eeadf710891", "score": "0.57563496", "text": "public function setVenda($uid, $endereco, $subtotal, $pg, $prods){\n \n $status = '1';\n $pgLink = '';\n\n $sql = \"INSERT INTO vendas SET idUsuario = '$uid', endereco = '$endereco', total = '$subtotal', formaPagamento = '$pg', status = '$status', pgLink = '$pgLink'\";\n $sql = $this -> db -> query($sql);\n\n $idVenda = $this -> db -> lastInsertId();\n\n if($pg == '5'){ //mudar o número de acordo com o id associado ao pagamento 'cortesia'\n $status = '2';\n $pgLink = \"/projetoBase/carrinho/compraRealizada\";\n\n $this -> db -> query(\"UPDATE vendas SET status = 'status' WHERE id = '\".$idVenda.\"'\" );\n\n }elseif($pg == 7){\n //PagSeguro\n //integração com pagamentos \n require 'libraries/PagSeguroLibrary/PagSeguroLibrary.php';\n\n $paymentRequest = new PagSeguroPaymentRequest();\n foreach($prods as $prod){\n $paymentRequest -> addItem($prod['id'], $prod['nome'], 1, $prod['preco']);\n }\n $paymentRequest -> setCurrency(\"BRL\");\n $paymentRequest -> setReference($idVenda);\n $paymentRequest -> setRedirectURL(\"http://localhost/projetoBase/carrinho/compraRealizada\");\n $paymentRequest -> addParameter(\"notificationURL\", \"http://localhost/projetoBase/carrinho/notificacao\");\n\n try{\n $cred = PagSeguroConfig::getAccountCredentials();\n $pgLink = $paymentRequest -> register($cred); \n }catch(PagSeguroServiceException $e){\n echo $e -> getMessage();\n } \n }\n foreach($prods as $produtos){\n $sql = \"INSERT INTO vendaproduto SET idVenda = '$idVenda', idProduto ='\".$produtos['id'].\"', qtde = '1'\";\n $sql = $this -> db -> query($sql);\n }\n\n //$_SESSION['carrinho'] = array();\n unset($_SESSION['carrinho']);\n\n return $pgLink;\n }", "title": "" }, { "docid": "e2ec341c2afe6c7030024040b057ae2d", "score": "0.575258", "text": "function asignar_valores(){\n\t\t$this->cantidad=$_POST['cantidad'];\n\t\t$this->producto=$_POST['id'];\n\t}", "title": "" }, { "docid": "8b2d2341226900d0bf11044311bb6340", "score": "0.5730682", "text": "public function setNewAcara(){\r\r\n\t\t$namaAcara = $this->isNullPost('namaAcara');\r\r\n\t\tif(strlen($namaAcara) > 250)\r\r\n\t\t{\r\r\n\t\t\texit(\"0Maaf jumlah karakter nama acara anda terlalu banyak\");\r\r\n\t\t}\r\r\n\t\t$TEMP_ERROR = $this->inputJaservFilter->titleFiltering($namaAcara);\r\r\n\t\tif(!$TEMP_ERROR[0]){\r\r\n\t\t\texit(\"0Format nama acara tidak valid\");\r\r\n\t\t}\r\r\n\t\t$penanggung = $this->isNullPost('penanggung');\r\r\n\t\tif(strlen($penanggung) > 70)\r\r\n\t\t{\r\r\n\t\t\texit(\"0Maaf jumlah karakter penangung jawab acara anda terlalu banyak\");\r\r\n\t\t}\r\r\n\t\t$TEMP_ERROR = $this->inputJaservFilter->nameLevelFiltering($penanggung);\r\r\n\t\tif(!$TEMP_ERROR[0]){\r\r\n\t\t\texit(\"0Format nama penanggung jawab tidak valid\");\r\r\n\t\t}\r\r\n\t\t$ruang = $this->isNullPost('kode');\r\r\n\t\tswitch($ruang){\r\r\n\t\t\tcase 'TA1' :\r\r\n\t\t\t$ruang = 1;\r\r\n\t\t\tbreak;\r\r\n\t\t\tcase 'TA2' :\r\r\n\t\t\t$ruang = 2;\r\r\n\t\t\tbreak;\r\r\n\t\t\tcase 'TAM' :\r\r\n\t\t\t$ruang = 3;\r\r\n\t\t\tbreak;\r\r\n\t\t\tcase 'PUS' :\r\r\n\t\t\t$ruang = 4;\r\r\n\t\t\tbreak;\r\r\n\t\t\tdefault :\r\r\n\t\t\texit(\"0Maaf kode anda tidak valid\");\r\r\n\t\t\tbreak;\r\r\n\t\t}\r\r\n\t\t$mulai = $this->dateJaservFilter->nice_date($this->isNullPost('startEvent'),\"Y-m-d H:i:s\");\r\r\n\t\tif($mulai == \"Invalid Date\"){\r\r\n\t\t\texit(\"0Tanggal format tidak dipenuhi\");\r\r\n\t\t}\r\r\n\t\t$berakhir = $this->dateJaservFilter->nice_date($this->isNullPost('endEvent'),\"Y-m-d H:i:s\");\r\r\n\t\tif($berakhir == \"Invalid Date\"){\r\r\n\t\t\texit(\"0Tanggal format tidak dipenuhi\");\r\r\n\t\t}\r\r\n\t\tif(!$this->dateJaservFilter->setDate($mulai,true)->isBefore($berakhir)) exit(\"0waktu mulai acara harus sebelum waktu akhir\");\r\r\n\t\tif($this->dateJaservFilter->setDate($this->dateJaservFilter->nice_date($mulai,\"Y-m-d\"),true)->isBefore(date(\"Y-m-d\"))) exit(\"0waktu mulai acara harus sebelum hari ini\");\r\r\n\t\t\r\r\n\t\t$this->loadLib('ControlTime');\r\r\n\t\t$this->loadLib('ControlAdmin');\r\r\n\t\t\r\r\n\t\t$tahunAk = (new ControlTime($this->gateControlModel))->getYearNow();\r\r\n\t\t//exit(\"0Tanggal format tidak dipenuhi\");\r\r\n\t\t$tempResult = (new ControlAdmin($this->gateControlModel))->isAvailableroomOnThisSemester($mulai,$berakhir,$tahunAk,$ruang,1);\r\r\n\t\tif($tempResult[0] == '0') exit(\"0\".$tempResult[1]);\r\r\n\t\t\r\r\n\t\t\r\r\n\t\t\r\r\n\t\t$this->loadLib('ControlAcara');\r\r\n\t\tif((new ControlAcara($this->gateControlModel))->addAcara(array(\r\r\n\t\t\t'tahunak' => $tahunAk,\r\r\n\t\t\t'detail' => $namaAcara,\r\r\n\t\t\t'penanggungjawab' => $penanggung,\r\r\n\t\t\t'ruang' => $ruang,\r\r\n\t\t\t'mulai' => $mulai,\r\r\n\t\t\t'berakhir' => $berakhir\r\r\n\t\t))) exit(\"1Berhasil menambahkan data|\".$tahunAk);\r\r\n\t\texit(\"0terjadi kesalahan dalam menyimpan acara\");\r\r\n\t}", "title": "" }, { "docid": "8c24f4af396f693cdbee97d598ef26e0", "score": "0.5726513", "text": "private function persistirContaOrcamentaria() {\n\n $iCodigoConta = null;\n $iUltimoAno = $this->getUltimoAnoPlano();\n $oDaoPlanoOrcamentario = new cl_conplanoorcamento();\n\n $oDaoPlanoOrcamentario->c60_estrut = $this->getEstrutural();\n $oDaoPlanoOrcamentario->c60_descr = $this->getDescricao();\n $oDaoPlanoOrcamentario->c60_finali = $this->getFinalidade();\n $oDaoPlanoOrcamentario->c60_codsis = $this->getSistemaConta()->getCodigoSistemaConta();\n $oDaoPlanoOrcamentario->c60_codcla = $this->getClassificacaoConta()->getCodigoClasse();\n $oDaoPlanoOrcamentario->c60_consistemaconta = $this->getSubSistema()->getCodigo();\n $oDaoPlanoOrcamentario->c60_identificadorfinanceiro = $this->getIdentificadorFinanceiro();\n $oDaoPlanoOrcamentario->c60_naturezasaldo = $this->getNaturezaSaldo();\n $oDaoPlanoOrcamentario->c60_funcao = $this->getFuncao();\n /**\n * Se o código da conta estiver setado, entra em modo de alteração\n * Se não inclui até o ano máximo do plano\n */\n for ($iAnoInclusao = $this->getAno(); $iAnoInclusao <= $iUltimoAno; $iAnoInclusao++) {\n\n $oDaoPlanoOrcamentario->c60_anousu = $iAnoInclusao;\n if (!empty($this->iCodigoConta)) {\n\n $oDaoPlanoOrcamentario->c60_codcon = $this->getCodigoConta();\n $oDaoPlanoOrcamentario->alterar($this->getCodigoConta(), $iAnoInclusao);\n\n $iCodigoConta = $oDaoPlanoOrcamentario->c60_codcon;\n } else {\n\n $oDaoPlanoOrcamentario->incluir($iCodigoConta, $iAnoInclusao);\n $iCodigoConta = $oDaoPlanoOrcamentario->c60_codcon;\n }\n if ($oDaoPlanoOrcamentario->erro_status == \"0\") {\n throw new Exception($oDaoPlanoOrcamentario->erro_msg);\n }\n /*\n * Caso tenha contaPCASP faz o vinculo\n */\n\n if ( $this->getPlanoContaPCASP() != null ) {\n\n\n $sWhereContaVinculo = \"c72_conplanoorcamento = {$iCodigoConta} and c72_anousu = {$iAnoInclusao}\";\n $this->oDaoConplanoconplanoorcamento->excluir(null, $sWhereContaVinculo);\n if ($oDaoPlanoOrcamentario->erro_status == 0) {\n throw new Exception(\"Erro ao excluir dados da vinculação de contas\");\n }\n\n $iConPlano = $this->getPlanoContaPCASP()->getCodigoConta();\n\n if ($iConPlano === null && $this->getContasReduzidas() !== false) {\n throw new Exception(\"A conta possui reduzido(s) vinculado(s). Não é possível alterar a conta sem informar o Vínculo com PCASP.\");\n }\n\n if ($iConPlano !== null) {\n\n $this->oDaoConplanoconplanoorcamento->c72_conplano = $iConPlano;\n $this->oDaoConplanoconplanoorcamento->c72_conplanoorcamento = $iCodigoConta;\n $this->oDaoConplanoconplanoorcamento->c72_anousu = $iAnoInclusao;\n\n $this->oDaoConplanoconplanoorcamento->incluir(null);\n\n if ($this->oDaoConplanoconplanoorcamento->erro_status == \"0\") {\n\n throw new Exception($this->oDaoConplanoconplanoorcamento->erro_msg);\n }\n }\n }\n } // end for\n $this->setCodigoConta($iCodigoConta);\n return true;\n }", "title": "" }, { "docid": "0ad63c9bfa6f1f9e599453687b237eb5", "score": "0.5722008", "text": "private function catalogos($municipio){\n //$municipio = '014';\n\n $title = 'Valor Catastral';\n\n //Título de sección:\n $title_section = \"Valor Catastral.\";\n\n //Listado de municipios de tabasco\n //$listaMunicipios = Municipio::with('entidad')->where('entidad', '27')->orderBy('nombre_municipio')->lists('nombre_municipio','municipio');\n\n $viasComunicacion = [\n '1'=>'CARRETERA PAVIMENTADA',\n '2'=>'CARRETERA DE TERRACERIA',\n ];\n\n $usoSuelo = [\n '1' => 'SIN CONSTRUCCIÓN (BALDÍOS)',\n '2' => 'RESTAURANTES',\n '3' => 'ESTACIONAMIENTO',\n '4' => 'CINES',\n '5' => 'CLUBES',\n '6' => 'PASTIZALES',\n '7' => 'DEPARTAMENTO EN CONDOMINIO',\n '8' => 'OFICINAS DE SERVICIOS',\n '9' => 'CASA HABITACIÓN',\n ];\n $usoSueloList = [];\n\n $usoPredio = [\n '1'=>'Habitacional',\n '2'=>'Industrial',\n '3'=>'Agrícola',\n ];\n\n $tenenciaTierra = [\n '1'=>'Propiedad',\n '2'=>'Ejidal',\n '3'=>'Común',\n '4'=>'Posesión',\n ];\n\n $serviciosPublicos = [\n '1'=>'Agua',\n '2'=>'Luz',\n '3'=>'Teléfono',\n '4'=>'Banqueta',\n '5'=>'Alumbrado',\n '6'=>'Pavimento',\n '7'=>'Drenaje',\n '8'=>'Transporte',\n ];\n\n $serviciosPublicos = tiposervicios::orderBy('descripcion')->remember(120)->lists('descripcion', 'id_tiposervicio');\n\n $tiposConstruccion = [\n '01'=>'ANTIGUAS',\n '02'=>'MODERNAS',\n '03'=>'EDIFICIOS MODERNOS',\n '04'=>'CONSTRUCCIONES ESPECIALES',\n '05'=>'EDIFICIOS DE CONSTRUCCIONES ESPECIALES',\n ];\n\n $categoriasConstruccion = [\n '01' => [ //Antiguas\n '01' => 'ECONÓMICA',\n '02' => 'MEDIO',\n '03' => 'SUPERIOR',\n ],\n '02' => [ //Modernas\n '04' => 'INTERÉS SOCIAL',\n '05' => 'POPULAR',\n '06' => 'MEDIO',\n '07' => 'BUENO',\n '08' => 'SUPERIOR',\n ],\n '03' => [ //Edificios modernos\n '09' => 'INTERÉS SOCIAL',\n '10' => 'MEDIO',\n '11' => 'SUPERIOR',\n ],\n '04' => [ //Edificios construcciones especiales\n '12' => 'CORRIENTE',\n '13' => 'MEDIO',\n '14' => 'BUENO',\n ],\n '05' => [ //Edificio construcciones especiales\n '15' => 'MEDIO',\n '16' => 'BUENO',\n ]\n ];\n\n\n $t = array();\n foreach($tiposConstruccion as $k => $v){\n $t[] = ['value'=>$k, 'text'=>$v];\n }\n $tiposConstruccion = $t;\n\n $edosConstruccion = [\n '1'=>'BUENO',\n '2'=>'REGULAR',\n '3'=>'MALO',\n ];\n\n $t = array();\n foreach($edosConstruccion as $k => $v){\n $t[] = ['value'=>$k, 'text'=>$v];\n }\n $edosConstruccion = $t;\n\n $incEsquina = [\n '1'=>'NO COMERCIAL',\n '2'=>'COMERCIAL BAJA',\n '3'=>'COMERCIAL ALTA',\n ];\n\n $elementosConstruccion = [\n 'techos'=>'03',\n 'muros'=>'04',\n 'pisos'=>'17',\n 'puertas'=>'09',\n 'hidraulicas'=>'05',\n 'electricas'=>'07',\n 'sanitarias'=>'06',\n ];\n\n $oVC = ValorConstruccion::where('municipio',$municipio)->get();\n $valoresConstruccion = [];\n foreach($oVC as $vc){\n $valoresConstruccion[$vc->municipio][$vc->tipo_construccion][$vc->categoria][$vc->elemento] = [\n '1'=>$vc->factor1,\n '2'=>$vc->factor2,\n '3'=>$vc->factor3,\n ];\n }\n\n ///Catálogos para rústicos\n $distCabmun = [\n '1' => \"MENOS DE 5 Km.\",\n '2' => \"ENTRE 5 Y 10 Km.\",\n '3' => \"ENTRE 10 Y 15 Km.\",\n ];\n\n $distCenpob = [\n '1' => \"MENOS DE 5 Km.\",\n '2' => \"ENTRE 5 Y 10 Km.\",\n ];\n\n //Valores para albercas\n $tiposAlbercas = [\n '1' => 'ECONÓMICA BUENA',\n '2' => 'ECONÓMICA REGULAR',\n '3' => 'ECONÓMICA MALA',\n '4' => 'MEDIANA BUENA',\n '5' => 'MEDIANA REGULAR',\n '6' => 'MEDIANA MALA',\n '7' => 'LUJO BUENA',\n '8' => 'LUJO REGULAR',\n '9' => 'LUJO MALA',\n ];\n\n $valoresAlbercas = [\n '1' => 950,\n '2' => 900,\n '3' => 850,\n\n '4' => 1200,\n '5' => 1100,\n '6' => 1000,\n\n '7' => 1500,\n '8' => 1400,\n '9' => 1300,\n ];\n\n $vars = [\n 'title','title_section', 'subtitle_section',\n 'usoSuelo', 'serviciosPublicos','incEsquina','municipio',\n //'techos', 'muros', 'pisos', 'puertas', 'ventanas', 'hidraulicas', 'electricas', 'sanitarias', 'instEspeciales',\n 'edosConstruccion', 'usosConstruccion', 'tiposConstruccion', 'categoriasConstruccion', 'valoresConstruccion',\n 'elementosConstruccion',\n 'tipo_terreno',\n 'viasComunicacion','distCabmun','distCenpob',\n 'tiposAlbercas', 'valoresAlbercas',\n ];\n\n return compact($vars);\n\n }", "title": "" }, { "docid": "ebdc0bdb080fb412ca45dbce0418068a", "score": "0.5708459", "text": "public function __construct(int $ccm, string $cnpj, string $cpf, string $senha, string $aliquota, int $servico, string $situacao, string $valor, string $base, ?string $ir, ?string $pis, ?string $cofins, ?string $csll, ?string $inss, ?string $retencao_iss, string $descricaoNF, int $tomador_tipo, string $tomador_cnpj, ?string $tomador_email, ?string $tomador_ie, ?string $tomador_im, string $tomador_razao, string $tomador_endereco, string $tomador_numero, string $tomador_complemento, string $tomador_bairro, string $tomador_CEP, string $tomador_cod_cidade, ?string $tomador_fone, ?string $tomador_ramal, ?string $tomador_fax, ?string $codigo_obra = null, ?string $obra_art = null, ?int $incentivo_fiscal = null, ?string $cod_municipio_prestacao_servico = null, ?string $cod_pais_prestacao_servico = null, ?string $cod_municipio_incidencia = null, ?int $rps_num = null, ?string $rps_serie = null, ?int $rps_tipo = null, ?int $rps_dia = null, ?int $rps_mes = null, ?int $rps_ano = null, ?int $nfse_substituida = null, ?int $rps_substituido = null, ?int $obra_alvara_numero = null, ?int $obra_alvara_ano = null, ?string $obra_local_lote = null, ?string $obra_local_quadra = null, ?string $obra_local_bairro = null)\n {\n $this\n ->setCcm($ccm)\n ->setCnpj($cnpj)\n ->setCpf($cpf)\n ->setSenha($senha)\n ->setAliquota($aliquota)\n ->setServico($servico)\n ->setSituacao($situacao)\n ->setValor($valor)\n ->setBase($base)\n ->setIr($ir)\n ->setPis($pis)\n ->setCofins($cofins)\n ->setCsll($csll)\n ->setInss($inss)\n ->setRetencao_iss($retencao_iss)\n ->setDescricaoNF($descricaoNF)\n ->setTomador_tipo($tomador_tipo)\n ->setTomador_cnpj($tomador_cnpj)\n ->setTomador_email($tomador_email)\n ->setTomador_ie($tomador_ie)\n ->setTomador_im($tomador_im)\n ->setTomador_razao($tomador_razao)\n ->setTomador_endereco($tomador_endereco)\n ->setTomador_numero($tomador_numero)\n ->setTomador_complemento($tomador_complemento)\n ->setTomador_bairro($tomador_bairro)\n ->setTomador_CEP($tomador_CEP)\n ->setTomador_cod_cidade($tomador_cod_cidade)\n ->setTomador_fone($tomador_fone)\n ->setTomador_ramal($tomador_ramal)\n ->setTomador_fax($tomador_fax)\n ->setCodigo_obra($codigo_obra)\n ->setObra_art($obra_art)\n ->setIncentivo_fiscal($incentivo_fiscal)\n ->setCod_municipio_prestacao_servico($cod_municipio_prestacao_servico)\n ->setCod_pais_prestacao_servico($cod_pais_prestacao_servico)\n ->setCod_municipio_incidencia($cod_municipio_incidencia)\n ->setRps_num($rps_num)\n ->setRps_serie($rps_serie)\n ->setRps_tipo($rps_tipo)\n ->setRps_dia($rps_dia)\n ->setRps_mes($rps_mes)\n ->setRps_ano($rps_ano)\n ->setNfse_substituida($nfse_substituida)\n ->setRps_substituido($rps_substituido)\n ->setObra_alvara_numero($obra_alvara_numero)\n ->setObra_alvara_ano($obra_alvara_ano)\n ->setObra_local_lote($obra_local_lote)\n ->setObra_local_quadra($obra_local_quadra)\n ->setObra_local_bairro($obra_local_bairro);\n }", "title": "" }, { "docid": "2bdb75a7fa88764f4c9f20cc60a3a09a", "score": "0.5705976", "text": "public function gravarEquipamento()\n {\n // Verifica se existe uma resposta do salvar\n if (isset($_POST['btn_salvar']))\n {\n // Trata os valores\n $idFabri = $_POST['opc_fabricante'];\n $tipoEquip = isset($_POST['txt_tipoEquip']) && !empty ($_POST['txt_tipoEquip']) ? $this->converte($this->tratamento($_POST['txt_tipoEquip'])) : '';\n $modeloEquip = isset($_POST['txt_modeloEquip']) && !empty ($_POST['txt_modeloEquip']) ? $this->converte($this->tratamento($_POST['txt_modeloEquip'])) : '';\n $potencia = isset($_POST['txt_potencia']) && !empty ($_POST['txt_potencia']) ? $this->converte($this->tratamento($_POST['txt_potencia'])) : '';\n $qntBateria = isset($_POST['txt_qntBateria']) && !empty ($_POST['txt_qntBateria']) ? $this->converte($this->tratamento($_POST['txt_qntBateria'])) : 0;\n $caracteristica = isset($_POST['txt_caracteristica']) && !empty ($_POST['txt_caracteristica']) ? $this->converte($this->tratamento($_POST['txt_caracteristica'])) : '';\n $tipoBateria = isset($_POST['opc_tipoBateria']) ? $_POST['opc_tipoBateria'] : '';\n $amperagem = isset($_POST['txt_amperagem']) && !empty ($_POST['txt_amperagem']) ? $this->converte($this->tratamento($_POST['txt_amperagem'])) : '';\n\n\n // Verifica se nao esta em branco\n if ($tipoEquip != \"\" && $idFabri != \"\")\n {\n // Se nao estiver em branco\n // Realiza a insercao no banco\n $query = \"insert into tb_equipamento (id_users, id_fabricante,\n tipo_equipamento, modelo, potencia,qnt_bateria, caracteristica_equip, tipo_bateria, amperagem_bateria)\n values ('{$_SESSION['userdata']['userId']}','{$idFabri}','{$tipoEquip}','{$modeloEquip}','{$potencia}','{$qntBateria}'\n ,'{$caracteristica}','{$tipoBateria}','{$amperagem}')\";\n\n // Insere no banco e exibe uma mensagem\n $this->validaInsercaoBanco($query, \"Cadastro salvo com sucesso!\", \"Erro durante o salvamento.\");\n\n // Monta a url de redirecionamento\n $move_uri = HOME_URI . \"/cadastrar/equipamento/\";\n // Redireciona a pagina\n echo '<script type=\"text/javascript\">setTimeout(function(){window.location.href = \"' . $move_uri . '\"},1500);</script>';\n }\n else\n {\n // Se existir campo em branco\n // Apresenta uma mensagem informando que existe campo em branco\n echo \"<div class='mensagemError'><span>Existe campos em branco</span></div>\";\n }\n }\n }", "title": "" }, { "docid": "1cc36161afa91ae59272641e00973504", "score": "0.570212", "text": "function creaLibro() : e_libro\n {\n $libro = new e_libro();\n\t\t\n\t\tif(isset($_POST['titolo']))\n $libro->setTitolo(ucfirst($_POST['titolo']));\n\t\t\n if(isset($_POST['genere']))\n $libro->setGenere(ucfirst($_POST['genere']));\n \n if(isset($_POST['autore']))\n $libro->setAutore(ucfirst($_POST['autore']));\n\t\t\n\t\tif(isset($_POST['num_copie']))\n $libro->setNumCopie(ucfirst($_POST['num_copie']));\n\t\t\n\t\tif(isset($_POST['isbn']))\n $libro->setIsbn(ucfirst($_POST['isbn']));\n\t\t\n\t\tif(isset($_POST['descrizione']))\n $libro->setDescrizione(ucfirst($_POST['descrizione']));\n\t\t\n\t\tif(isset($_POST['durata']))\n $libro->setDurata(ucfirst($_POST['durata']));\n\t\t\n\t\tif(isset($_POST['copieDisponibili']))\n $libro->setCopieDisponibili(ucfirst($_POST['copieDisponibili']));\n\t\t\n if ( isset($_POST['titolo']) && isset($_POST['autore']) && isset($_POST['num_copie']) && isset($_POST['durata'])&& isset($_POST['genere']) && isset($_POST['isbn']) && isset($_POST['descrizione']) && isset($_POST['copieDisponibili']))\n {\n $libro->setTitolo(ucfirst($_POST['titolo']));\n\t\t\t$libro->setAutore(ucfirst($_POST['autore']));\n $libro->setNumCopie(ucfirst($_POST['num_copie']));\n $libro->setDurata(ucfirst($_POST['durata']));\n $libro->setGenere(ucfirst($_POST['genere']));\n\t\t\t$libro->setIsbn(ucfirst($_POST['isbn']));\n\t\t\t$libro->setDescrizione(ucfirst($_POST['descrizione']));\n\t\t\t$libro->setCopieDisponibili(ucfirst($_POST['copieDisponibili']));\n } \n return $libro;\n \n }", "title": "" }, { "docid": "aec912ad712d3df8ef78f1148db9fe76", "score": "0.568635", "text": "public function atualizarPedido(){\n $campos = array('id','dataHora', 'notaFiscal', 'valorFrete', 'desconto', 'valorTotal');\n $status = \"\";\n foreach ($campos as $c){\n if(!isset($_POST[\"$c\"])){\n $status = \"Campo \".$c.\" nao enviado <br />\".$status;\n }\n else{\n if(strlen($_POST[\"$c\"]) <= 0){\n $status = \"Preencha o campo \".$c.\" corretamente <br />\".$status;\n }\n else{\n $pedido = new Pedido();\n $pedido->setDataHora($_POST['dataHora']);\n $pedido->setNotaFiscal($_POST['notaFiscal']);\n $pedido->setValorFrete($_POST['valorFrete']);\n $pedido->setDesconto($_POST['desconto']);\n $pedido->setValorTotal($_POST['valorTotal']);\n\n $status = $this->service->atualizarPedido($pedido);\n }\n }\n }\n\n }", "title": "" }, { "docid": "1eacccf9516a326d4ddb8baeb5ae97d5", "score": "0.56825703", "text": "public function registrarEmpleado()\r\n\t\t{\r\n // $PrimerNombre = $objetoEstudiante->getPrimerNombre();\r\n // $SegundoNombre = $objetoEstudiante->getSegundoNombre();\r\n // $ApellidoPaterno = $objetoEstudiante->getApellidoPaterno();\r\n // $ApellidoMaterno = $objetoEstudiante->getApellidoMaterno();\r\n // $CiEstudiante = $objetoEstudiante->getCi();\r\n // $FechaNacimiento = $objetoEstudiante->getFechaNacimiento();\r\n // $Genero = $objetoEstudiante->getGenero(); \r\n // $Direccion = $objetoEstudiante->getDireccion();\r\n // $Fotografia = $objetoEstudiante->getFotografia();\r\n // $FotoCarnetAmverso = $objetoEstudiante->getFotoCarnetAmverso(); \r\n // $FotoCarnetReverso = $objetoEstudiante->getFotoCarnetReverso(); \r\n // $Activo = $objetoEstudiante->getActivo(); \r\n\r\n // $CiTutor = $objetoEstudiante->getCiTutor();\r\n // $PrimerNombreTutor = $objetoEstudiante->getPrimerNombreTutor();\r\n // $SegundoNombreTutor = $objetoEstudiante->getSegundoNombreTutor();\r\n // $ApellidoPaternoTutor = $objetoEstudiante->getApellidoPaternoTutor();\r\n // $ApelldioMaternoTutor = $objetoEstudiante->getApellidoMaternoTutor();\r\n // $DireccionTutor = $objetoEstudiante->getDireccionTutor();\r\n // $CelularTutor = $objetoEstudiante->getNumeroCelularTutor();\r\n // $FotoTutor = $objetoEstudiante->getFotoTutor();\r\n // $TipoTutor = $objetoEstudiante->getTipoTutor();\r\n \r\n // echo $CiEstudiante.\"#\".$FechaNacimiento.\"#\".$Genero.$Direccion.$Fotografia.$FotoCarnetAmverso.$FotoCarnetReverso.$Activo.\"///\";\r\n \r\n $Contrasenia = \"321\";\r\n $pass_cifrado = password_hash($Contrasenia, PASSWORD_DEFAULT);\r\n\r\n $sqlInsertarEstudiante = \"INSERT INTO Empleado\r\n (CiEmpleado,PrimerNombre,SegundoNombre,ApellidoPaterno,ApellidoMaterno,FechaNacimiento,Genero,EstdoCivil,Activo,NumeroCelular,Fotografia,Usuario,Contrasenia)\r\n VALUES\r\n ('321','Maria','','Fernadez','Apaza','2000-10-19','F','Divorciado',1,60771615,'Foto','Maria321','$pass_cifrado'); \";\r\n try{\r\n $cmd = $this->Conexion->prepare($sqlInsertarEstudiante);\r\n $cmd->execute();\r\n return 1;\r\n }catch(PDOException $e){\r\n echo 'ERROR: No se logro realizar la nueva inserción - '.$e->getMesage();\r\n exit();\r\n return 0;\r\n }\r\n }", "title": "" }, { "docid": "b78fbf7b1bef20915e118c99fbdfc8f4", "score": "0.56805736", "text": "function campagnes_autoriser(){}", "title": "" }, { "docid": "c2aba3da408a6387a038e5a486788f4d", "score": "0.5680081", "text": "public function gerarDados() {\n \n $iAnoSessao = db_getsession('DB_anousu');\n $iInstituicaoSessao = db_getsession('DB_instit');\n\n $sNomeArquivo = 'contas_anuais.xml';\n $this->setNomeArquivo($sNomeArquivo);\n \n $arquivoXML = fopen(\"tmp/\".$this->getNomeArquivo(), 'w+');\n\n //Strings para concatenar a fim de fazer o aninhamento\n $sFilhoNivel1 = \" \";\n $sFilhoNivel2 = \" \";\n $sFilhoNivel3 = \" \";\n $sFilhoNivel4 = \" \";\n $sFilhoNivel5 = \" \";\n $sFilhoNivel6 = \" \";\n $sFilhoNivel7 = \" \";\n $sFilhoNivel8 = \" \";\n $sFilhoNivel9 = \" \";\n $sFilhoNivel10 = \" \";\n\n /******* CABEÇALHO *******/\n\n $sSqlCPFGestor = \"SELECT cpf \n FROM plugins.assinaturaordenadordespesa \n INNER JOIN db_departorg on db01_coddepto = departamento \n WHERE db01_orgao = 25 \n AND db01_unidade = 1 \n AND db01_anousu = 2017 \n AND principal = 't' \n LIMIT 1\";\n $sCPFGestor = db_utils::fieldsMemory(db_query($sSqlCPFGestor), 0)->cpf;\n\n $sLinhaHeader = \"<remessa>\";\n $sLinhaTrailer = \"</remessa>\";\n //Elementos filho de <remessa>\n $sLinhaCodOrgao = $sFilhoNivel1.\"<codigoOrgao>{$this->getCodigoOrgaoTCE()}</codigoOrgao>\"; // CODIGO IDENTIFICADOR DO ORGAO\n $sLinhaCPFGestor = $sFilhoNivel1.\"<cpfGestor>{$sCPFGestor}</cpfGestor>\"; //CPF DO ORDENADOR DE DESPESA\n $sLinhaTipoRemessa = $sFilhoNivel1.\"<tipoRemessa>7</tipoRemessa>\"; // FIXO 7\n $sLinhaAno = $sFilhoNivel1.\"<ano>{$iAnoSessao}</ano>\"; // ANO DE REFERENCIA\n $sLinhaDataCriacao = $sFilhoNivel1.\"<dataCriacao>\".date('Y-m-d').\"</dataCriacao>\";//\n $sLinhaSistemaGera = $sFilhoNivel1.\"<sistemaGerador>ECIDADE</sistemaGerador>\";// -- ECIDADE\n\n //Escreve no arquivo\n fputs($arquivoXML, $sLinhaHeader .\"\\r\\n\"\n .$sLinhaCodOrgao .\"\\r\\n\"\n .$sLinhaCPFGestor .\"\\r\\n\"\n .$sLinhaTipoRemessa .\"\\r\\n\"\n .$sLinhaAno .\"\\r\\n\"\n .$sLinhaDataCriacao .\"\\r\\n\"\n .$sLinhaSistemaGera .\"\\r\\n\");\n\n if($this->getGeraAnexo01()) {\n\n $sLinhaAnexo01RecTributaria = \"\";\n $sLinhaAnexo01RecContribuicoes = \"\";\n $sLinhaAnexo01RecPatrimonial = \"\";\n $sLinhaAnexo01RecAgropecuaria = \"\";\n $sLinhaAnexo01RecIndustrial = \"\";\n $sLinhaAnexo01RecServicos = \"\";\n $sLinhaAnexo01TransfCorrentes = \"\";\n $sLinhaAnexo01RecCorrentes = \"\";\n $sLinhaAnexo01RecIntraOrc = \"\";\n $sLinhaAnexo01DedRestituicoes = \"\";\n $sLinhaAnexo01DedTransfFundeb = \"\";\n $sLinhaAnexo01DedOutras = \"\";\n $sLinhaAnexo01DespEncargosSociais = \"\";\n $sLinhaAnexo01DespJurosEncargos = \"\";\n $sLinhaAnexo01DespCorrentes = \"\";\n $sLinhaAnexo01DespIntraOrc = \"\";\n $sLinhaAnexo01RecOpCredito = \"\";\n $sLinhaAnexo01RecAlienacao = \"\";\n $sLinhaAnexo01RecAmortiEmp = \"\";\n $sLinhaAnexo01TransfCapital = \"\";\n $sLinhaAnexo01RecOutrasCapital = \"\";\n $sLinhaAnexo01DespInvestimentos = \"\";\n $sLinhaAnexo01DespInversoesFinanc = \"\";\n $sLinhaAnexo01DespAmortiDiv = \"\";\n $sLinhaAnexo01RecAlienacao = \"\";\n $sLinhaAnexo01RecAmortiEmp = \"\";\n $sLinhaAnexo01TransfCapital = \"\";\n $sLinhaAnexo01RecOutrasCapital = \"\";\n $sLinhaAnexo01DespInvestimentos = \"\";\n $sLinhaAnexo01DespInversoesFinanc = \"\";\n $sLinhaAnexo01DespAmortiDiv = \"\";\n\n $sSqlWork1 = \" create temp table work1 as \";\n $sSqlWork1 .= \" select o56_elemento||'00' as elemento, \";\n $sSqlWork1 .= \" o56_descr as descr, \";\n $sSqlWork1 .= \" 0::float8 as valor \";\n $sSqlWork1 .= \" from orcelemento \";\n $sSqlWork1 .= \" where o56_anousu = 2016 \";\n $sSqlWork1 .= \" union \";\n $sSqlWork1 .= \" select o57_fonte, \";\n $sSqlWork1 .= \" o57_descr, \";\n $sSqlWork1 .= \" 0::float8 as valor \"; \n $sSqlWork1 .= \" from orcfontes \";\n $sSqlWork1 .= \" where o57_anousu = 2016 \";\n $rsSqlWork1 = db_query($sSqlWork1);\n\n $dataini = '2016-01-01';\n $datafin = '2016-12-31';\n $result_rec = db_receitasaldo(11, 1, 3, true, \"\", 2016, $dataini, $datafin);\n\n $valor = 0;\n for ($i = 0; $i < pg_numrows($result_rec); $i++) {\n \n $oRec = db_utils::fieldsMemory($result_rec, $i);\n $valor = $oRec->saldo_arrecadado;\n \n $sSqlwork1Update = \"update work1 set valor = valor+{$valor} where work1.elemento = '{$oRec->o57_fonte}'\";\n $rsSqlwork1Update = db_query($sSqlwork1Update);\n $executa = true;\n $conta = 0;\n }\n\n $result_rec = db_dotacaosaldo(7, 3, 3, true, \"\", 2016, $dataini, $datafin, null, null, null, 2);\n $valor = 0;\n\n for ($i = 0; $i < pg_numrows($result_rec); $i++) {\n \n $oRec = db_utils::fieldsMemory($result_rec, $i);\n $valor = $oRec->empenhado-$oRec->anulado;\n \n $sSqlwork1Update = \"update work1 set valor = valor+{$valor} where work1.elemento = '{$oRec->o58_elemento}00'\";\n $rsSqlwork1Update = db_query($sSqlwork1Update);\n \n $conta = 0;\n $executa = true;\n while ($executa == true) {\n \n $o58_elemento = db_le_mae($oRec->o58_elemento, false);\n $sSqlwork1Update = \"update work1 set valor = valor+{$valor} where work1.elemento = '{$o58_elemento}00'\";\n $rsSqlwork1Update = db_query($sSqlwork1Update);\n \n if (substr($o58_elemento, 2, 13) == \"0000000000000\") { \n $executa = false;\n }\n \n $conta ++;\n if ($conta > 10) {\n $executa = false;\n }\n }\n }\n\n $total = 0;\n $troca = 1;\n $alt = 4;\n $a = 0;\n $b = 0;\n $valora = 0;\n $valorb = 0;\n\n $descra = array();\n $vlra = array();\n $descrb = array();\n $vlrb = array();\n\n $sSqlWork1 = \" select * \";\n $sSqlWork1 .= \" from work1 \"; \n $sSqlWork1 .= \" where elemento::bigint in(411000000000000, \";\n $sSqlWork1 .= \" 412000000000000, \";\n $sSqlWork1 .= \" 413000000000000, \";\n $sSqlWork1 .= \" 414000000000000, \";\n $sSqlWork1 .= \" 415000000000000, \";\n $sSqlWork1 .= \" 416000000000000, \";\n $sSqlWork1 .= \" 417000000000000, \";\n $sSqlWork1 .= \" 419000000000000, \";\n $sSqlWork1 .= \" 470000000000000, \";\n $sSqlWork1 .= \" 910000000000000, \";\n $sSqlWork1 .= \" 920000000000000, \";\n $sSqlWork1 .= \" 970000000000000, \";\n $sSqlWork1 .= \" 980000000000000 \";\n $sSqlWork1 .= \" ) \";\n $sSqlWork1 .= \" order by elemento \";\n\n $rsSqlWork1 = db_query($sSqlWork1);\n $iNumRowsWork1 = pg_numrows($rsSqlWork1);\n\n\n for ($i = 0; $i < $iNumRowsWork1; $i++) {\n \n $oElemento = db_utils::fieldsMemory($rsSqlWork1, $i);\n \n if ($oElemento->elemento != \"920000000000000\" && $oElemento->elemento != \"980000000000000\" ) {\n \n $descra[$a] = $oElemento->descr;\n $vlra[$a] = $oElemento->valor;\n $a += 1;\n $valora += $oElemento->valor;\n }\n }\n\n $sSqlWork1 = \"select * from work1 where substr(elemento,1,1) = '3' order by elemento\";\n $rsSqlWork1 = db_query($sSqlWork1);\n $iNumRowsWork1 = pg_numrows($rsSqlWork1);\n\n for ($i = 0; $i < $iNumRowsWork1; $i++) {\n \n $oElemento = db_utils::fieldsMemory($rsSqlWork1, $i);\n if (substr($oElemento->elemento, 3, 12) == \"000000000000\" && substr($oElemento->elemento, 2, 1) != \"0\") {\n \n if (substr($oElemento->elemento, 1, 1) == \"3\") {\n \n $descrb[$b] = $oElemento->descr;\n $vlrb[$b] = $oElemento->valor;\n $b += 1;\n $valorb = ($valorb + $oElemento->valor);\n }\n }\n }\n\n $sLinhaAnexo01 = \"\";\n\n $sLinhaAnexo01 .= \"<anexo01>\\r\\n\";\n $sLinhaAnexo01 .= \"<anexoDados01>\".\"\\r\\n\";\n\n $sFilhoNivel1 = \" \";\n\n $numreg = (sizeof($descra)>sizeof($descrb)?sizeof($descra):sizeof($descrb));\n for($i = 0; $i < $numreg; $i++) {\n \n if (isset($descra[$i])) {\n\n if ($vlra[$i] == 0 || empty($vlra[$i])) {\n $sValorA = \"0.00\";\n } else {\n $sValorA = number_format($vlra[$i], 2, '.', '');\n }\n\n\n if(trim($descra[$i]) == \"RECEITA TRIBUTARIA\") {\n $sLinhaAnexo01RecTributaria .= $sFilhoNivel1.\"<receitaTributaria>\".$sValorA.\"</receitaTributaria>\\r\\n\";\n }\n if(trim($descra[$i]) == \"RECEITAS DE CONTRIBUIÇÕES\") {\n $sLinhaAnexo01RecContribuicoes .= $sFilhoNivel1.\"<receitadeContribuicoes>\".$sValorA.\"</receitadeContribuicoes>\\r\\n\";\n }\n if(trim($descra[$i]) == \"RECEITA PATRIMONIAL\") {\n $sLinhaAnexo01RecPatrimonial .= $sFilhoNivel1.\"<receitaPatrimonial>\".$sValorA.\"</receitaPatrimonial>\\r\\n\";\n $sLinhaAnexo01RecAgropecuaria .= $sFilhoNivel1.\"<receitaAgropecuaria>0.00</receitaAgropecuaria>\".\"\\r\\n\";\n $sLinhaAnexo01RecIndustrial .= $sFilhoNivel1.\"<receitaIndustrial>0.00</receitaIndustrial>\".\"\\r\\n\";\n }\n if(trim($descra[$i]) == \"RECEITA DE SERVICOS\") {\n $sLinhaAnexo01RecServicos .= $sFilhoNivel1.\"<receitadeServicos>\".$sValorA.\"</receitadeServicos>\\r\\n\";\n }\n if(trim($descra[$i]) == \"TRANSFERENCIAS CORRENTES\") {\n $sLinhaAnexo01TransfCorrentes .= $sFilhoNivel1.\"<transferenciasCorrentes>\".$sValorA.\"</transferenciasCorrentes>\\r\\n\";\n }\n if(trim($descra[$i]) == \"OUTRAS RECEITAS CORRENTES\") {\n $sLinhaAnexo01RecCorrentes .= $sFilhoNivel1.\"<outrasReceitasCorrentes>\".$sValorA.\"</outrasReceitasCorrentes>\\r\\n\";\n }\n if(trim($descra[$i]) == \"RECEITAS INTRA-ORÇAMENTÁRIAS CORRENTES\") {\n $sLinhaAnexo01RecIntraOrc .= $sFilhoNivel1.\"<receitasIntraorcamentarias>\".$sValorA.\"</receitasIntraorcamentarias>\\r\\n\";\n }\n if(trim($descra[$i]) == \"(R) DEDUCOES DA RECEITA CORRENTE\") {\n $sLinhaAnexo01DedRestituicoes .= $sFilhoNivel1.\"<deducaoRestituicoes>0.00</deducaoRestituicoes>\".\"\\r\\n\";\n $sLinhaAnexo01DedTransfFundeb .= $sFilhoNivel1.\"<deducaoTransferenciasFundeb>\".abs($sValorA).\"</deducaoTransferenciasFundeb>\\r\\n\";\n $sLinhaAnexo01DedOutras .= $sFilhoNivel1.\"<outrasDeducoes>0.00</outrasDeducoes>\".\"\\r\\n\";\n }\n }\n\n if(isset($descrb[$i])) {\n \n if ($vlrb[$i] == 0 || empty($vlrb[$i])) {\n $sValorB = \"0.00\";\n } else {\n $sValorB = number_format($vlrb[$i], 2, '.', '');\n }\n \n\n if(trim($descrb[$i]) == \"PESSOAL E ENCARGOS SOCIAIS\") { \n $sLinhaAnexo01DespEncargosSociais .= $sFilhoNivel1.\"<despesaPessoalEncargosSociais>\".$sValorB.\"</despesaPessoalEncargosSociais>\\r\\n\";\n }\n if(trim($descrb[$i]) == \"JUROS E ENCARGOS DA DÍVIDA\") {\n $sLinhaAnexo01DespJurosEncargos .= $sFilhoNivel1.\"<despesaJurosEncargosDivida>\".$sValorB.\"</despesaJurosEncargosDivida>\\r\\n\";\n }\n if(trim($descrb[$i]) == \"OUTRAS DESPESAS CORRENTES\") {\n $sLinhaAnexo01DespCorrentes .= $sFilhoNivel1.\"<outrasDespesasCorrentes>\".$sValorB.\"</outrasDespesasCorrentes>\\r\\n\";\n $sLinhaAnexo01DespIntraOrc .= $sFilhoNivel1.\"<despesasIntraorcamentarias>0.00</despesasIntraorcamentarias>\".\"\\r\\n\";\n }\n }\n \n }\n\n $sLinhaAnexo01 .= $sLinhaAnexo01RecTributaria.\n $sLinhaAnexo01RecContribuicoes.\n $sLinhaAnexo01RecPatrimonial.\n $sLinhaAnexo01RecAgropecuaria.\n $sLinhaAnexo01RecIndustrial.\n $sLinhaAnexo01RecServicos.\n $sLinhaAnexo01TransfCorrentes.\n $sLinhaAnexo01RecCorrentes.\n $sLinhaAnexo01RecIntraOrc.\n $sLinhaAnexo01DedRestituicoes.\n $sLinhaAnexo01DedTransfFundeb.\n $sLinhaAnexo01DedOutras.\n $sLinhaAnexo01DespEncargosSociais.\n $sLinhaAnexo01DespJurosEncargos.\n $sLinhaAnexo01DespCorrentes.\n $sLinhaAnexo01DespIntraOrc;\n\n $valord = 0;\n $valore = 0;\n $d = 0;\n $e = 0 ;\n $descrd = array();\n $vlrd = array();\n $descre = array();\n $vlre = array();\n\n $sSqlWork1 = \"select * from work1 where substr(elemento,2,1) = '2' or substr(elemento,2,1) = '8' order by elemento\";\n $rsSqlWork1 = db_query($sSqlWork1);\n $iNumRowsWork1 = pg_numrows($rsSqlWork1);\n\n for ($i = 0; $i < $iNumRowsWork1; $i++) {\n \n $oElementos = db_utils::fieldsMemory($rsSqlWork1, $i); \n \n if ((substr($oElementos->elemento,3,12) == \"000000000000\" \n && substr($oElementos->elemento,2,1) != \"0\" && substr($oElementos->elemento,0,1) != \"9\") \n || ($oElementos->elemento == \"920000000000000\" || $oElementos->elemento == \"980000000000000\" )) {\n\n if (substr($oElementos->elemento,1,1) == \"2\" || substr($oElementos->elemento,1,1) == \"8\") {\n \n $descrd[$d] = $oElementos->descr;\n $vlrd[$d] = $oElementos->valor;\n $d += 1;\n $valord = ($valord + $oElementos->valor);\n } \n }\n }\n\n $sSqlWork1 = \"select * from work1 where substr(elemento,1,1) = '3' order by elemento\";\n $rsSqlWork1 = db_query($sSqlWork1);\n $iNumRowsWork1 = pg_numrows($rsSqlWork1);\n\n for ($i = 0; $i < $iNumRowsWork1; $i++) {\n \n $oElementos = db_utils::fieldsMemory($rsSqlWork1,$i);\n if (substr($oElementos->elemento,3,12) == \"000000000000\" && substr($oElementos->elemento,2,1) != \"0\") {\n \n if (substr($oElementos->elemento,1,1) == \"4\") {\n \n $descre[$e] = $oElementos->descr;\n $vlre[$e] = $oElementos->valor;\n $e += 1;\n $valore = ($valore + $oElementos->valor) ;\n }\n }\n }\n\n $numreg = (sizeof($descrd) > sizeof($descre)? sizeof($descrd) : sizeof($descre));\n\n for ($i = 0; $i < $numreg; $i++) {\n \n\n if(isset($descrd[$i])) {\n \n if ($vlrd[$i] == 0 || empty($vlrd[$i])) {\n $sValorD = \"0.00\";\n } else {\n $sValorD = number_format($vlrd[$i], 2, '.', '');\n }\n\n\n if($descrd[$i] == \"OPERACOES DE CREDITO\") {\n $sLinhaAnexo01RecOpCredito .= $sFilhoNivel1.\"<receitaOperacoesCredito>\".$sValorD.\"</receitaOperacoesCredito>\\r\\n\";\n }\n if($descrd[$i] == \"ALIENAÇÃO DE BENS\") {\n $sLinhaAnexo01RecAlienacao .= $sFilhoNivel1.\"<receitaAlienacaoBens>\".$sValorD.\"</receitaAlienacaoBens>\\r\\n\";\n $sLinhaAnexo01RecAmortiEmp .= $sFilhoNivel1.\"<receitaAmortizacaoEmprestimos>0.00</receitaAmortizacaoEmprestimos>\".\"\\r\\n\";\n }\n if($descrd[$i] == \"TRANSFERÊNCIAS DE CAPITAL\") {\n $sLinhaAnexo01TransfCapital .= $sFilhoNivel1.\"<transferenciasCapital>\".$sValorD.\"</transferenciasCapital>\\r\\n\";\n }\n if($descrd[$i] == \"OUTRAS RECEITAS DE CAPITAL\") {\n $sLinhaAnexo01RecOutrasCapital .= $sFilhoNivel1.\"<outrasReceitasCapital>\".$sValorD.\"</outrasReceitasCapital>\\r\\n\";\n }\n }\n \n if (isset($descre[$i])) { \n \n if ($vlre[$i] == 0 || empty($vlre[$i])) {\n $sValorE = \"0.00\";\n } else {\n $sValorE = number_format($vlre[$i], 2, '.', '');\n }\n\n\n if($descre[$i] == \"DESPESA DE INVESTIMENTOS\") {\n $sLinhaAnexo01DespInvestimentos .= $sFilhoNivel1.\"<despesaInvestimentos>\".$sValorE.\"</despesaInvestimentos>\\r\\n\";\n }\n if($descre[$i] == \"INVERSÕES FINANCEIRAS\") {\n $sLinhaAnexo01DespInversoesFinanc .= $sFilhoNivel1.\"<despesaInversoesFinanceiras>\".$sValorE.\"</despesaInversoesFinanceiras>\\r\\n\";\n }\n if($descre[$i] == \"AMORTIZAÇÃO DA DÍVIDA\") {\n $sLinhaAnexo01DespAmortiDiv .= $sFilhoNivel1.\"<despesaAmortizacaoDivida>\".$sValorE.\"</despesaAmortizacaoDivida>\\r\\n\";\n }\n }\n\n }\n\n $sLinhaAnexo01 .= $sLinhaAnexo01RecOpCredito.\n $sLinhaAnexo01RecAlienacao.\n $sLinhaAnexo01RecAmortiEmp.\n $sLinhaAnexo01TransfCapital.\n $sLinhaAnexo01RecOutrasCapital.\n $sLinhaAnexo01DespInvestimentos.\n $sLinhaAnexo01DespInversoesFinanc.\n $sLinhaAnexo01DespAmortiDiv;\n\n $sLinhaAnexo01 .= \"</anexoDados01>\".\"\\r\\n\";\n $sLinhaAnexo01 .= \"</anexo01>\\r\\n\";\n \n //Para escrever o anexo no arquivo\n fputs($arquivoXML, $sLinhaAnexo01);\n\n\n }\n\n if($this->getGeraAnexo02()) {\n\n $sLinhaAnexo02 = \"<anexo02>\\r\\n\";\n $sLinhaAnexo02 .= \"<anexoDados02>\\r\\n\";\n $sLinhaAnexo02 .= $sFilhoNivel1.\"<despesasA02>\\r\\n\";\n\n $sSqlDespesas = \"select RPAD(substr(o56_elemento, 2, 1)::TEXT, 8, '0') as o56_elemento, \n sum(o58_valor) as totaldespesa \n from orcelemento \n inner join orcdotacao on o56_codele = o58_codele and o56_anousu = o58_anousu \n where o56_anousu = 2016 and substr(o56_elemento, 2, 1) in ('3', '4') \n group by substr(o56_elemento, 2, 1)\";\n $rsDespesas = db_query($sSqlDespesas);\n for ($i=0; $i < pg_num_rows($rsDespesas); $i++) { \n \n $oDespesa = db_utils::fieldsMemory($rsDespesas, $i);\n\n $sLinhaAnexo02 .= $sFilhoNivel2.\"<despesaA02>\\r\\n\";\n $sLinhaAnexo02 .= $sFilhoNivel3.\"<codigoDespesa>$oDespesa->o56_elemento</codigoDespesa>\\r\\n\";\n $sLinhaAnexo02 .= $sFilhoNivel3.\"<valorDespesa>\".number_format($oDespesa->totaldespesa, 2, '.', '').\"</valorDespesa>\\r\\n\";\n $sLinhaAnexo02 .= $sFilhoNivel2.\"</despesaA02>\\r\\n\";\n }\n $sLinhaAnexo02 .= $sFilhoNivel1.\"</despesasA02>\\r\\n\";\n $sLinhaAnexo02 .= \"</anexoDados02>\\r\\n\";\n $sLinhaAnexo02 .= \"</anexo02>\\r\\n\"; \n fputs($arquivoXML, $sLinhaAnexo02.\"\\r\\n\");\n }\n\n if($this->getGeraAnexo06()) {\n\n $sLinhaAnexo06 = \"<anexo06>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel1.\"<anexoDados06>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel1.\"<orgaosA06>\\r\\n\";\n\n $sSqlOrgaos = \"select distinct o40_orgao, o40_descr from orcorgao inner join orcdotacao on o58_orgao = o40_orgao\n and o58_anousu = o40_anousu\n and o58_instit = o40_instit\n where o58_anousu = $this->iAnoUsu\";\n $rsOrgaos = db_query($sSqlOrgaos);\n\n for ($i = 0; $i < pg_num_rows($rsOrgaos); $i++) {\n $oOrgao = db_utils::fieldsMemory($rsOrgaos, $i);\n if($oOrgao->o40_orgao == \"99\") {\n continue;\n }\n $sLinhaAnexo06 .= $sFilhoNivel2.\"<orgaoA06>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel2.\"<codigoOrgao>$oOrgao->o40_orgao</codigoOrgao>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel2.\"<nomeOrgao>$oOrgao->o40_descr</nomeOrgao>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel2.\"<unidadesA06>\\r\\n\";\n \n $sSqlUnidades = \"select distinct o41_unidade, o41_descr, o41_instit from orcunidade\n inner join orcdotacao on o58_unidade = o41_unidade\n and o58_orgao = o41_orgao\n and o58_anousu = o41_anousu\n and o58_instit = o41_instit\n where o58_anousu = $this->iAnoUsu\n and o58_orgao = $oOrgao->o40_orgao\";\n $rsUnidades = db_query($sSqlUnidades);\n \n for ($j = 0; $j < pg_num_rows($rsUnidades); $j++) {\n $oUnidade = db_utils::fieldsMemory($rsUnidades, $j);\n $sLinhaAnexo06 .= $sFilhoNivel3.\"<unidadeA06>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel4.\"<codigoUnidadeGestora>$oUnidade->o41_unidade</codigoUnidadeGestora>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel4.\"<nomeUnidadeGestora>$oUnidade->o41_descr</nomeUnidadeGestora>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel4.\"<funcoesA06>\\r\\n\";\n $sSqlFuncoes = \"select distinct o52_funcao from orcfuncao \n inner join orcdotacao on o52_funcao = o58_funcao\n where o58_orgao = $oOrgao->o40_orgao\n and o58_unidade = $oUnidade->o41_unidade\n and o58_anousu = $this->iAnoUsu\n and o58_instit = $oUnidade->o41_instit\n and o58_orgao = $oOrgao->o40_orgao\n and o58_unidade = $oUnidade->o41_unidade\";\n $rsFuncoes = db_query($sSqlFuncoes);\n \n $aFuncoes = array();\n\n for ($k = 0; $k < pg_num_rows($rsFuncoes); $k++) {\n $oFuncao = db_utils::fieldsMemory($rsFuncoes, $k);\n if(in_array($oFuncao->o52_funcao, $aFuncoes)) {\n continue;\n }\n $aFuncoes[] = $oFuncao->o52_funcao;\n $sLinhaAnexo06 .= $sFilhoNivel5.\"<funcaoA06>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel5.\"<codigoFuncao>\".str_pad($oFuncao->o52_funcao, 2, \"0\",STR_PAD_LEFT).\"</codigoFuncao>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel5.\"<subfuncoesA06>\\r\\n\"; \n $sSqlSubFuncoes = \"select distinct o53_subfuncao from orcsubfuncao\n inner join orcdotacao on o53_subfuncao = o58_subfuncao\n where o58_funcao = $oFuncao->o52_funcao\n and o58_anousu = $this->iAnoUsu\n and o58_orgao = $oOrgao->o40_orgao\n and o58_unidade = $oUnidade->o41_unidade\";\n $rsSubFuncoes = db_query($sSqlSubFuncoes);\n\n $aSubFuncoes = array();\n\n for ($l = 0; $l < pg_num_rows($rsSubFuncoes); $l++) {\n $oSubFuncao = db_utils::fieldsMemory($rsSubFuncoes, $l);\n if(in_array($oSubFuncao->o53_subfuncao, $aSubFuncoes)) {\n continue;\n }\n $aSubFuncoes[] = $oSubFuncao->o53_subfuncao;\n $sLinhaAnexo06 .= $sFilhoNivel6.\"<subfuncaoA06>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel6.\"<codigoSubfuncao>\".str_pad($oSubFuncao->o53_subfuncao, 3, \"0\",STR_PAD_LEFT).\"</codigoSubfuncao>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel6.\"<programasA06>\\r\\n\";\n $sSqlProgramas = \"select distinct o54_programa, o54_descr from orcprograma \n inner join orcdotacao on o58_programa = o54_programa\n and o58_anousu = o54_anousu\n where o58_anousu = $this->iAnoUsu\n and o58_funcao = $oFuncao->o52_funcao\n and o58_subfuncao = $oSubFuncao->o53_subfuncao\n and o58_orgao = $oOrgao->o40_orgao\n and o58_unidade = $oUnidade->o41_unidade\";\n $rsProgramas = db_query($sSqlProgramas);\n\n $aProgramas = array();\n\n for ($m = 0; $m < pg_num_rows($rsProgramas); $m++) {\n $oPrograma = db_utils::fieldsMemory($rsProgramas, $m);\n if(in_array($oPrograma->o54_programa, $aProgramas)) {\n continue;\n }\n $aProgramas[] = $oPrograma->o54_programa;\n $sLinhaAnexo06 .= $sFilhoNivel7.\"<programaA06>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel8.\"<codigoPrograma>\".str_pad($oPrograma->o54_programa, 4, \"0\",STR_PAD_LEFT).\"</codigoPrograma>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel8.\"<nomePrograma>$oPrograma->o54_descr</nomePrograma>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel8.\"<acoesA06>\\r\\n\";\n $sSqlAcoes = \"select distinct o55_projativ, o55_descr, o58_valor from orcprojativ \n inner join orcdotacao on o58_projativ = o55_projativ\n and o58_anousu = o55_anousu\n where o58_anousu = $this->iAnoUsu\n and o58_funcao = $oFuncao->o52_funcao\n and o58_subfuncao = $oSubFuncao->o53_subfuncao\n and o58_programa = $oPrograma->o54_programa\n and o58_orgao = $oOrgao->o40_orgao\n and o58_unidade = $oUnidade->o41_unidade\";\n $rsAcoes = db_query($sSqlAcoes);\n \n $aAcoes = array();\n \n for ($n = 0; $n < pg_num_rows($rsAcoes); $n++) {\n $oAcao = db_utils::fieldsMemory($rsAcoes, $n);\n if(in_array($oAcao->o55_projativ, $aAcoes)) {\n continue;\n }\n $aAcoes[] = $oAcao->o55_projativ;\n $sLinhaAnexo06 .= $sFilhoNivel9.\"<acaoA06>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel10.\"<codigoAcao>$oAcao->o55_projativ</codigoAcao>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel10.\"<nomeAcao>$oAcao->o55_descr</nomeAcao>\\r\\n\";\n if(substr($oAcao->o55_projativ, 0, 1) == \"1\") {\n $sLinhaAnexo06 .= $sFilhoNivel10.\"<valorProjeto>\".number_format($oAcao->o58_valor, 2, '.', '').\"</valorProjeto>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel10.\"<valorAtividade>0.00</valorAtividade>\\r\\n\";\n } else {\n $sLinhaAnexo06 .= $sFilhoNivel10.\"<valorProjeto>0.00</valorProjeto>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel10.\"<valorAtividade>\".number_format($oAcao->o58_valor, 2, '.', '').\"</valorAtividade>\\r\\n\";\n }\n $sLinhaAnexo06 .= $sFilhoNivel9.\"</acaoA06>\\r\\n\";\n }\n $sLinhaAnexo06 .= $sFilhoNivel8.\"</acoesA06>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel7.\"</programaA06>\\r\\n\";\n }\n $sLinhaAnexo06 .= $sFilhoNivel6.\"</programasA06>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel6.\"</subfuncaoA06>\\r\\n\";\n }\n $sLinhaAnexo06 .= $sFilhoNivel5.\"</subfuncoesA06>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel5.\"</funcaoA06>\\r\\n\";\n }\n $sLinhaAnexo06 .= $sFilhoNivel4.\"</funcoesA06>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel3.\"</unidadeA06>\\r\\n\";\n }\n $sLinhaAnexo06 .= $sFilhoNivel2.\"</unidadesA06>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel2.\"</orgaoA06>\\r\\n\";\n }\n $sLinhaAnexo06 .= $sFilhoNivel1.\"</orgaosA06>\\r\\n\";\n $sLinhaAnexo06 .= $sFilhoNivel1.\"</anexoDados06>\\r\\n\";\n $sLinhaAnexo06 .= \"</anexo06>\\r\\n\"; \n fputs($arquivoXML, $sLinhaAnexo06.\"\\r\\n\");\n }\n\n if($this->getGeraAnexo07()) {\n \n $sLinhaAnexo07 = \"<anexo07>\\r\\n\";\n $sLinhaAnexo07 .= \"<anexoDados07>\\r\\n\";\n $sLinhaAnexo07 .= $sFilhoNivel1.\"<funcoesA07>\\r\\n\";\n\n $sSqlFuncoes = \"select distinct o52_funcao from orcfuncao \n inner join orcdotacao on o52_funcao = o58_funcao\n where o58_anousu = $this->iAnoUsu\";\n $rsFuncoes = db_query($sSqlFuncoes);\n\n for ($i = 0; $i < pg_num_rows($rsFuncoes); $i++) {\n \n $oFuncao = db_utils::fieldsMemory($rsFuncoes, $i);\n\n if($oFuncao->o52_funcao == \"99\") {\n continue;\n }\n\n $sLinhaAnexo07 .= $sFilhoNivel2.\"<funcaoA07>\\r\\n\";\n $sLinhaAnexo07 .= $sFilhoNivel3.\"<codigoFuncao>\".str_pad($oFuncao->o52_funcao, 2, \"0\",STR_PAD_LEFT).\"</codigoFuncao>\\r\\n\";\n $sLinhaAnexo07 .= $sFilhoNivel3.\"<subfuncoesA07>\\r\\n\";\n $sSqlSubFuncoes = \"select distinct o53_subfuncao from orcsubfuncao\n inner join orcdotacao on o53_subfuncao = o58_subfuncao\n where o58_anousu = $this->iAnoUsu\n and o58_funcao = $oFuncao->o52_funcao\";\n //where o58_coddot = $oFuncao->o58_coddot\n //and o58_anousu = $this->iAnoUsu\";\n $rsSubFuncoes = db_query($sSqlSubFuncoes);\n for ($j = 0; $j < pg_num_rows($rsSubFuncoes); $j++) {\n $oSubFuncao = db_utils::fieldsMemory($rsSubFuncoes, $j);\n \n $sLinhaAnexo07 .= $sFilhoNivel4.\"<subfuncaoA07>\\r\\n\";\n $sLinhaAnexo07 .= $sFilhoNivel5.\"<codigoSubfuncao>\".str_pad($oSubFuncao->o53_subfuncao, 3, \"0\",STR_PAD_LEFT).\"</codigoSubfuncao>\\r\\n\";\n $sLinhaAnexo07 .= $sFilhoNivel5.\"<programasA07>\\r\\n\";\n \n $sSqlProgramas = \"select distinct o54_programa, o54_descr from orcprograma \n inner join orcdotacao on o58_programa = o54_programa\n and o58_anousu = o54_anousu\n where o58_anousu = $this->iAnoUsu\n and o58_funcao = $oFuncao->o52_funcao\n and o58_subfuncao = $oSubFuncao->o53_subfuncao\";\n //where o58_coddot = $oSubFuncao->o58_coddot\n //and o58_anousu = $this->iAnoUsu\";\n\n $rsProgramas = db_query($sSqlProgramas);\n\n for ($l = 0; $l < pg_num_rows($rsProgramas); $l++) {\n $oPrograma = db_utils::fieldsMemory($rsProgramas, $l);\n\n $sLinhaAnexo07 .= $sFilhoNivel6.\"<programaA07>\\r\\n\";\n $sLinhaAnexo07 .= $sFilhoNivel7.\"<codigoPrograma>\".str_pad($oPrograma->o54_programa, 4, \"0\",STR_PAD_LEFT).\"</codigoPrograma>\\r\\n\";\n $sLinhaAnexo07 .= $sFilhoNivel7.\"<nomePrograma>$oPrograma->o54_descr</nomePrograma>\\r\\n\";\n \n $sSqlValorProjeto = \"select coalesce(sum(o58_valor), 0) as valorProjeto from orcprojativ \n inner join orcdotacao on o58_anousu = o55_anousu \n and o58_projativ = o55_projativ \n where o58_programa = $oPrograma->o54_programa \n and o58_funcao = $oFuncao->o52_funcao\n and o58_subfuncao = $oSubFuncao->o53_subfuncao\n and o58_anousu = $this->iAnoUsu\n and substr(o58_projativ, 1, 1) = '1'\";\n $nValorProjeto = db_utils::fieldsMemory(db_query($sSqlValorProjeto), 0)->valorprojeto;\n $sLinhaAnexo07 .= $sFilhoNivel7.\"<valorProjeto>\".number_format($nValorProjeto, 2, '.', '').\"</valorProjeto>\\r\\n\";\n \n $sSqlValorAtividade = \"select coalesce(sum(o58_valor), 0) as valorAtividade from orcprojativ \n inner join orcdotacao on o58_anousu = o55_anousu \n and o58_projativ = o55_projativ \n where o58_programa = $oPrograma->o54_programa \n and o58_funcao = $oFuncao->o52_funcao\n and o58_subfuncao = $oSubFuncao->o53_subfuncao\n and o58_anousu = $this->iAnoUsu\n and substr(o58_projativ, 1, 1) <> '1'\"; \n $nValorAtividade = db_utils::fieldsMemory(db_query($sSqlValorAtividade), 0)->valoratividade;\n $sLinhaAnexo07 .= $sFilhoNivel7.\"<valorAtividade>\".number_format($nValorAtividade, 2, '.', '').\"</valorAtividade>\\r\\n\";\n \n $sLinhaAnexo07 .= $sFilhoNivel6.\"</programaA07>\\r\\n\";\n }\n $sLinhaAnexo07 .= $sFilhoNivel5.\"</programasA07>\\r\\n\";\n $sLinhaAnexo07 .= $sFilhoNivel4.\"</subfuncaoA07>\\r\\n\";\n }\n $sLinhaAnexo07 .= $sFilhoNivel3.\"</subfuncoesA07>\\r\\n\";\n $sLinhaAnexo07 .= $sFilhoNivel2.\"</funcaoA07>\\r\\n\";\n }\n\n $sLinhaAnexo07 .= $sFilhoNivel1.\"</funcoesA07>\\r\\n\";\n $sLinhaAnexo07 .= \"</anexoDados07>\\r\\n\";\n $sLinhaAnexo07 .= \"</anexo07>\\r\\n\";\n fputs($arquivoXML, $sLinhaAnexo07.\"\\r\\n\");\n }\n\n if($this->getGeraAnexo08()) {\n $sLinhaAnexo08 = \"<anexo08>\\r\\n\";\n $sLinhaAnexo08 .= \"<anexoDados08>\\r\\n\";\n $sLinhaAnexo08 .= $sFilhoNivel1.\"<funcoesA08>\\r\\n\";\n\n $sSqlFuncoes = \"select distinct o52_funcao from orcfuncao \n inner join orcdotacao on o52_funcao = o58_funcao\n where o58_anousu = $this->iAnoUsu\";\n $rsFuncoes = db_query($sSqlFuncoes);\n\n for ($i = 0; $i < pg_num_rows($rsFuncoes); $i++) {\n \n $oFuncao = db_utils::fieldsMemory($rsFuncoes, $i);\n\n if($oFuncao->o52_funcao == \"99\") {\n continue;\n }\n\n $sLinhaAnexo08 .= $sFilhoNivel2.\"<funcaoA08>\\r\\n\";\n $sLinhaAnexo08 .= $sFilhoNivel3.\"<codigoFuncao>\".str_pad($oFuncao->o52_funcao, 2, \"0\",STR_PAD_LEFT).\"</codigoFuncao>\\r\\n\";\n $sLinhaAnexo08 .= $sFilhoNivel3.\"<subfuncoesA08>\\r\\n\";\n $sSqlSubFuncoes = \"select distinct o53_subfuncao from orcsubfuncao\n inner join orcdotacao on o53_subfuncao = o58_subfuncao\n where o58_anousu = $this->iAnoUsu\n and o58_funcao = $oFuncao->o52_funcao\";\n $rsSubFuncoes = db_query($sSqlSubFuncoes);\n for ($j = 0; $j < pg_num_rows($rsSubFuncoes); $j++) {\n $oSubFuncao = db_utils::fieldsMemory($rsSubFuncoes, $j);\n \n $sLinhaAnexo08 .= $sFilhoNivel4.\"<subfuncaoA08>\\r\\n\";\n $sLinhaAnexo08 .= $sFilhoNivel5.\"<codigoSubfuncao>\".str_pad($oSubFuncao->o53_subfuncao, 3, \"0\",STR_PAD_LEFT).\"</codigoSubfuncao>\\r\\n\";\n $sLinhaAnexo08 .= $sFilhoNivel5.\"<programasA08>\\r\\n\";\n \n $sSqlProgramas = \"select o54_programa, o54_descr, o58_codigo, sum(o58_valor) as o58_valor from orcprograma \n inner join orcdotacao on o58_programa = o54_programa\n and o58_anousu = o54_anousu\n where o58_anousu = $this->iAnoUsu\n and o58_funcao = $oFuncao->o52_funcao\n and o58_subfuncao = $oSubFuncao->o53_subfuncao\n group by o54_programa, o58_codigo, o54_descr\";\n $rsProgramas = db_query($sSqlProgramas);\n\n for ($l = 0; $l < pg_num_rows($rsProgramas); $l++) {\n $oPrograma = db_utils::fieldsMemory($rsProgramas, $l);\n\n $sLinhaAnexo08 .= $sFilhoNivel6.\"<programaA08>\\r\\n\";\n $sLinhaAnexo08 .= $sFilhoNivel7.\"<codigoPrograma>\".str_pad($oPrograma->o54_programa, 4, \"0\",STR_PAD_LEFT).\"</codigoPrograma>\\r\\n\";\n $sLinhaAnexo08 .= $sFilhoNivel7.\"<nomePrograma>$oPrograma->o54_descr</nomePrograma>\\r\\n\";\n if ($oPrograma->o58_codigo == \"111\") {\n $sLinhaAnexo08 .= $sFilhoNivel7.\"<valorOrdinario>\".number_format($oPrograma->o58_valor, 2, '.', '').\"</valorOrdinario>\\r\\n\";\n $sLinhaAnexo08 .= $sFilhoNivel7.\"<valorVinculado>0.00</valorVinculado>\\r\\n\";\n } else {\n $sLinhaAnexo08 .= $sFilhoNivel7.\"<valorOrdinario>0.00</valorOrdinario>\\r\\n\";\n $sLinhaAnexo08 .= $sFilhoNivel7.\"<valorVinculado>\".number_format($oPrograma->o58_valor, 2, '.', '').\"</valorVinculado>\\r\\n\";\n }\n \n $sLinhaAnexo08 .= $sFilhoNivel6.\"</programaA08>\\r\\n\";\n }\n $sLinhaAnexo08 .= $sFilhoNivel5.\"</programasA08>\\r\\n\";\n $sLinhaAnexo08 .= $sFilhoNivel4.\"</subfuncaoA08>\\r\\n\";\n }\n $sLinhaAnexo08 .= $sFilhoNivel3.\"</subfuncoesA08>\\r\\n\";\n $sLinhaAnexo08 .= $sFilhoNivel2.\"</funcaoA08>\\r\\n\";\n }\n\n $sLinhaAnexo08 .= $sFilhoNivel1.\"</funcoesA08>\\r\\n\";\n $sLinhaAnexo08 .= \"</anexoDados08>\\r\\n\";\n $sLinhaAnexo08 .= \"</anexo08>\\r\\n\";\n fputs($arquivoXML, $sLinhaAnexo08.\"\\r\\n\");\n }\n\n if($this->getGeraAnexo09()) {\n $sLinhaAnexo09 = \"<anexo09>\\r\\n\";\n $sLinhaAnexo09 .= \"<anexoDados09>\\r\\n\";\n $sLinhaAnexo09 .= $sFilhoNivel1.\"<orgaosA09>\\r\\n\";\n\n $sSqlOrgaos = \"select distinct o40_orgao, o40_descr from orcorgao \n inner join orcdotacao on o58_orgao = o40_orgao\n and o58_anousu = o40_anousu\n and o58_instit = o40_instit\n where o58_anousu = $this->iAnoUsu\";\n $rsOrgaos = db_query($sSqlOrgaos);\n\n for ($i = 0; $i < pg_num_rows($rsOrgaos); $i++) {\n $oOrgao = db_utils::fieldsMemory($rsOrgaos, $i);\n \n $sLinhaAnexo09 .= $sFilhoNivel2.\"<orgaoA09>\\r\\n\";\n $sLinhaAnexo09 .= $sFilhoNivel2.\"<codigoOrgao>$oOrgao->o40_orgao</codigoOrgao>\\r\\n\";\n $sLinhaAnexo09 .= $sFilhoNivel2.\"<nomeOrgao>$oOrgao->o40_descr</nomeOrgao>\\r\\n\";\n $sLinhaAnexo09 .= $sFilhoNivel2.\"<unidadesA09>\\r\\n\";\n\n $sSqlUnidades = \"select distinct o41_unidade, o41_descr, o41_instit from orcunidade\n inner join orcdotacao on o58_unidade = o41_unidade\n and o58_orgao = o41_orgao\n and o58_anousu = o41_anousu\n and o58_instit = o41_instit\n where o58_anousu = $this->iAnoUsu\n and o58_orgao = $oOrgao->o40_orgao\";\n $rsUnidades = db_query($sSqlUnidades);\n\n for ($j = 0; $j < pg_num_rows($rsUnidades); $j++) {\n \n $sLinhaAnexo09FuncaoLegislativa = \"\";\n $sLinhaAnexo09FuncaoAdministracao = \"\";\n $sLinhaAnexo09FuncaoSegurancaPub = \"\";\n $sLinhaAnexo09FuncaoAssistenciaSocial = \"\";\n $sLinhaAnexo09FuncaoPrevidencia = \"\";\n $sLinhaAnexo09FuncaoSaude = \"\";\n $sLinhaAnexo09FuncaoTrabalho = \"\";\n $sLinhaAnexo09FuncaoEducacao = \"\";\n $sLinhaAnexo09FuncaoCultura = \"\";\n $sLinhaAnexo09FuncaoDireitos = \"\";\n $sLinhaAnexo09FuncaoUrbanismo = \"\";\n $sLinhaAnexo09FuncaoHabitacao = \"\";\n $sLinhaAnexo09FuncaoSaneamento = \"\";\n $sLinhaAnexo09FuncaoGestaoAmbiental = \"\";\n $sLinhaAnexo09FuncaoCienciaTec = \"\";\n $sLinhaAnexo09FuncaoAgricultura = \"\";\n $sLinhaAnexo09FuncaoIndustria = \"\";\n $sLinhaAnexo09FuncaoComercio = \"\";\n $sLinhaAnexo09FuncaoComunicacoes = \"\";\n $sLinhaAnexo09FuncaoEnergia = \"\";\n $sLinhaAnexo09FuncaoTransporte = \"\";\n $sLinhaAnexo09FuncaoDesporto = \"\";\n $sLinhaAnexo09FuncaoEncargos = \"\";\n\n $oUnidade = db_utils::fieldsMemory($rsUnidades, $j);\n\n $sLinhaAnexo09 .= $sFilhoNivel3.\"<unidadeA09>\\r\\n\";\n $sLinhaAnexo09 .= $sFilhoNivel4.\"<codigoUnidadeGestora>$oUnidade->o41_unidade</codigoUnidadeGestora>\\r\\n\";\n $sLinhaAnexo09 .= $sFilhoNivel4.\"<nomeUnidadeGestora>$oUnidade->o41_descr</nomeUnidadeGestora>\\r\\n\";\n $sSqlFuncoes = \"select o52_funcao\n from orcfuncao \n where o52_funcao in (1,4,6,8,9,10,11,12,13,14,15,16,17,18,19,20,22,23,24,25,26,27,28)\";\n $rsFuncoes = db_query($sSqlFuncoes);\n\n for ($k = 0; $k < pg_num_rows($rsFuncoes); $k++) {\n \n $oFuncao = db_utils::fieldsMemory($rsFuncoes, $k);\n $nValorFuncao = db_utils::fieldsMemory(db_query(\"select coalesce(sum(o58_valor), 0) as valor from orcfuncao \n left join orcdotacao on o52_funcao = o58_funcao \n and o58_orgao = $oOrgao->o40_orgao\n and o58_unidade = $oUnidade->o41_unidade\n and o58_anousu = $this->iAnoUsu\n and o58_instit = $oUnidade->o41_instit\n and o58_orgao = $oOrgao->o40_orgao\n and o58_unidade = $oUnidade->o41_unidade\n where o52_funcao = $oFuncao->o52_funcao\n group by o52_funcao\"), 0)->valor;\n if($oFuncao->o52_funcao == 1){\n $sLinhaAnexo09FuncaoLegislativa .= $sFilhoNivel4.\"<valorFuncaoLegislativa>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoLegislativa>\\r\\n\"; \n }\n if($oFuncao->o52_funcao == 4){\n $sLinhaAnexo09FuncaoAdministracao .= $sFilhoNivel4.\"<valorFuncaoAdministracao>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoAdministracao>\\r\\n\"; \n }\n if($oFuncao->o52_funcao == 6){\n $sLinhaAnexo09FuncaoSegurancaPub .= $sFilhoNivel4.\"<valorFuncaoSegurancaPublica>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoSegurancaPublica>\\r\\n\"; \n }\n if($oFuncao->o52_funcao == 8){\n $sLinhaAnexo09FuncaoAssistenciaSocial .= $sFilhoNivel4.\"<valorFuncaoAssistenciaSocial>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoAssistenciaSocial>\\r\\n\"; \n }\n if($oFuncao->o52_funcao == 9){\n $sLinhaAnexo09FuncaoPrevidencia .= $sFilhoNivel4.\"<valorFuncaoPrevidenciaSocial>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoPrevidenciaSocial>\\r\\n\"; \n }\n if($oFuncao->o52_funcao == 10){\n $sLinhaAnexo09FuncaoSaude .= $sFilhoNivel4.\"<valorFuncaoSaude>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoSaude>\\r\\n\";\n }\n if($oFuncao->o52_funcao == 11){\n $sLinhaAnexo09FuncaoTrabalho .= $sFilhoNivel4.\"<valorFuncaoTrabalho>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoTrabalho>\\r\\n\"; \n }\n if($oFuncao->o52_funcao == 12){\n $sLinhaAnexo09FuncaoEducacao .= $sFilhoNivel4.\"<valorFuncaoEducacao>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoEducacao>\\r\\n\"; \n }\n if($oFuncao->o52_funcao == 13){\n $sLinhaAnexo09FuncaoCultura .= $sFilhoNivel4.\"<valorFuncaoCultura>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoCultura>\\r\\n\"; \n }\n if($oFuncao->o52_funcao == 14){\n $sLinhaAnexo09FuncaoDireitos .= $sFilhoNivel4.\"<valorFuncaoDireitosCidadania>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoDireitosCidadania>\\r\\n\"; \n }\n if($oFuncao->o52_funcao == 15){\n $sLinhaAnexo09FuncaoUrbanismo .= $sFilhoNivel4.\"<valorFuncaoUrbanismo>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoUrbanismo>\\r\\n\"; \n }\n if($oFuncao->o52_funcao == 16){\n $sLinhaAnexo09FuncaoHabitacao .= $sFilhoNivel4.\"<valorFuncaoHabitacao>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoHabitacao>\\r\\n\"; \n }\n if($oFuncao->o52_funcao == 17){\n $sLinhaAnexo09FuncaoSaneamento .= $sFilhoNivel4.\"<valorFuncaoSaneamento>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoSaneamento>\\r\\n\"; \n }\n if($oFuncao->o52_funcao == 18){\n $sLinhaAnexo09FuncaoGestaoAmbiental .= $sFilhoNivel4.\"<valorFuncaoGestaoAmbiental>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoGestaoAmbiental>\\r\\n\"; \n }\n if($oFuncao->o52_funcao == 19){\n $sLinhaAnexo09FuncaoCienciaTec .= $sFilhoNivel4.\"<valorFuncaoCienciaTecnologia>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoCienciaTecnologia>\\r\\n\"; \n }\n if($oFuncao->o52_funcao == 20){\n $sLinhaAnexo09FuncaoAgricultura .= $sFilhoNivel4.\"<valorFuncaoAgricultura>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoAgricultura>\\r\\n\"; \n }\n if($oFuncao->o52_funcao == 22){\n $sLinhaAnexo09FuncaoIndustria .= $sFilhoNivel4.\"<valorFuncaoIndustria>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoIndustria>\\r\\n\"; \n }\n if($oFuncao->o52_funcao == 23){\n $sLinhaAnexo09FuncaoComercio .= $sFilhoNivel4.\"<valorFuncaoComercioServicos>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoComercioServicos>\\r\\n\"; \n }\n if($oFuncao->o52_funcao == 24){\n $sLinhaAnexo09FuncaoComunicacoes .= $sFilhoNivel4.\"<valorFuncaoComunicacoes>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoComunicacoes>\\r\\n\"; \n }\n if($oFuncao->o52_funcao == 25){\n $sLinhaAnexo09FuncaoEnergia .= $sFilhoNivel4.\"<valorFuncaoEnergia>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoEnergia>\\r\\n\"; \n }\n if($oFuncao->o52_funcao == 26){\n $sLinhaAnexo09FuncaoTransporte .= $sFilhoNivel4.\"<valorFuncaoTransporte>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoTransporte>\\r\\n\"; \n }\n if($oFuncao->o52_funcao == 27){\n $sLinhaAnexo09FuncaoDesporto .= $sFilhoNivel4.\"<valorFuncaoDesportoLazer>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoDesportoLazer>\\r\\n\"; \n }\n if($oFuncao->o52_funcao == 28){\n $sLinhaAnexo09FuncaoEncargos .= $sFilhoNivel4.\"<valorFuncaoEncargosEspeciais>\".number_format($nValorFuncao, 2, '.', '').\"</valorFuncaoEncargosEspeciais>\\r\\n\"; \n }\n }\n $sLinhaAnexo09 .= $sLinhaAnexo09FuncaoLegislativa\n .$sLinhaAnexo09FuncaoAdministracao\n .$sLinhaAnexo09FuncaoSegurancaPub\n .$sLinhaAnexo09FuncaoAssistenciaSocial\n .$sLinhaAnexo09FuncaoPrevidencia\n .$sLinhaAnexo09FuncaoSaude\n .$sLinhaAnexo09FuncaoTrabalho\n .$sLinhaAnexo09FuncaoEducacao\n .$sLinhaAnexo09FuncaoCultura\n .$sLinhaAnexo09FuncaoDireitos\n .$sLinhaAnexo09FuncaoUrbanismo\n .$sLinhaAnexo09FuncaoHabitacao\n .$sLinhaAnexo09FuncaoSaneamento\n .$sLinhaAnexo09FuncaoGestaoAmbiental\n .$sLinhaAnexo09FuncaoCienciaTec\n .$sLinhaAnexo09FuncaoAgricultura\n .$sLinhaAnexo09FuncaoIndustria\n .$sLinhaAnexo09FuncaoComercio\n .$sLinhaAnexo09FuncaoComunicacoes\n .$sLinhaAnexo09FuncaoEnergia\n .$sLinhaAnexo09FuncaoTransporte\n .$sLinhaAnexo09FuncaoDesporto\n .$sLinhaAnexo09FuncaoEncargos;\n\n $sLinhaAnexo09 .= $sFilhoNivel3.\"</unidadeA09>\\r\\n\";\n }\n $sLinhaAnexo09 .= $sFilhoNivel2.\"</unidadesA09>\\r\\n\";\n $sLinhaAnexo09 .= $sFilhoNivel2.\"</orgaoA09>\\r\\n\";\n }\n $sLinhaAnexo09 .= $sFilhoNivel1.\"</orgaosA09>\\r\\n\";\n $sLinhaAnexo09 .= \"</anexoDados09>\\r\\n\";\n $sLinhaAnexo09 .= \"</anexo09>\\r\\n\";\n fputs($arquivoXML, $sLinhaAnexo09.\"\\r\\n\");\n }\n\n if($this->getGeraAnexo10()) {\n $sLinhaAnexo10 = \"<anexo10>\\r\\n\";\n $sLinhaAnexo10 .= \"<anexoDados10>\\r\\n\";\n $sLinhaAnexo10 .= $sFilhoNivel1.\"<receitasA10>\\r\\n\";\n\n $result1 = db_receitasaldo(11,1,3,true, \"\", 2016, '2016-01-01', '2016-12-31',false);\n\n for($x1 = 0; $x1 < pg_numrows($result1);$x1++){\n $oReceita = db_utils::fieldsMemory($result1, $x1);\n $sLinhaAnexo10 .= $sFilhoNivel2.\"<receitaA10>\\r\\n\";\n $sLinhaAnexo10 .= $sFilhoNivel3.\"<codigoReceita>\".substr($oReceita->o57_fonte, 0, 10).\"</codigoReceita>\\r\\n\";\n $sLinhaAnexo10 .= $sFilhoNivel3.\"<valorOrcado>\".number_format(abs($oReceita->saldo_inicial), 2, '.', '').\"</valorOrcado>\\r\\n\";\n $sLinhaAnexo10 .= $sFilhoNivel3.\"<valorArrecadado>\".number_format(abs($oReceita->saldo_arrecadado), 2, '.', '').\"</valorArrecadado>\\r\\n\";\n $sLinhaAnexo10 .= $sFilhoNivel2.\"</receitaA10>\\r\\n\";\n }\n\n $sLinhaAnexo10 .= $sFilhoNivel1.\"</receitasA10>\\r\\n\";\n $sLinhaAnexo10 .= \"</anexoDados10>\\r\\n\";\n $sLinhaAnexo10 .= \"</anexo10>\\r\\n\";\n fputs($arquivoXML, $sLinhaAnexo10.\"\\r\\n\");\n }\n\n if($this->getGeraAnexo11()) {\n $sqlUnidade = \"\n select distinct\n o41_orgao as orgao, \n o41_unidade as unidade, \n o41_descr as descr_unidade \n from orcunidade\n inner join orcdotacao on o41_orgao = o58_orgao\n and o41_unidade = o58_unidade\n and o41_anousu = o58_anousu \n where o41_anousu = 2016\n order by o41_orgao, \n o41_unidade, \n o41_descr\";\n $rsUnidade = db_query($sqlUnidade);\n\n $sLinhaAnexo11 = \"<anexo11>\\r\\n\";\n $sLinhaAnexo11 .= \"<anexoDados11>\\r\\n\";\n $sLinhaAnexo11 .= \"<unidadesDespesasA11>\\r\\n\";\n\n for ($i = 0; $i < pg_numrows($rsUnidade); $i++) {\n \n $oUnidade = db_utils::fieldsMemory($rsUnidade, $i);\n \n $sLinhaAnexo11 .= $sFilhoNivel1.\"<unidadeDespesasA11>\\r\\n\";\n $sLinhaAnexo11 .= $sFilhoNivel2.\"<codigoUnidadeOcamentaria>\".str_pad($oUnidade->orgao,2,'0',STR_PAD_LEFT).\".\".str_pad($oUnidade->unidade,2,'0',STR_PAD_LEFT).\"</codigoUnidadeOcamentaria>\\r\\n\";\n $sLinhaAnexo11 .= $sFilhoNivel2.\"<nomeUnidadeOcamentaria>$oUnidade->descr_unidade</nomeUnidadeOcamentaria>\\r\\n\";\n $sLinhaAnexo11 .= $sFilhoNivel2.\"<despesasA11>\\r\\n\";\n\n $sql_func = \"\n select \n distinct o58_funcao as funcao, \n o58_subfuncao as subfuncao, \n o58_programa as programa, \n o58_projativ as acao, \n o55_descr as descr_acao \n from \n orcdotacao \n inner join orcprojativ on o58_projativ = o55_projativ and o58_anousu = o55_anousu \n where \n o58_anousu = 2016 and o58_orgao = $oUnidade->orgao and o58_unidade = $oUnidade->unidade\n order by\n o58_subfuncao,o58_programa,o58_projativ,o55_descr\n \";\n $rsFunc = db_query($sql_func);\n\n for ($w = 0; $w < pg_numrows($rsFunc); $w++) {\n $oDotacao = db_utils::fieldsMemory($rsFunc, $w);\n\n $sele_work = \"o58_orgao = $oUnidade->orgao and \n o58_unidade = $oUnidade->unidade and \n o58_funcao = $oDotacao->funcao and \n o58_subfuncao = $oDotacao->subfuncao and\n o58_programa = $oDotacao->programa and\n o58_projativ = $oDotacao->acao\";\n\n $rsDadosDespesa = db_dotacaosaldo(8, 1, 2, true, $sele_work, 2016, '2016-01-01', '2016-12-31');\n\n for ($j = 0; $j < pg_numrows($rsDadosDespesa); $j++) {\n \n $oDespesa = db_utils::fieldsMemory($rsDadosDespesa, $j);\n\n $total_suplem = ($oDespesa->dot_ini + $oDespesa->suplementado_acumulado - $oDespesa->reduzido_acumulado);\n $total_esp = $oDespesa->especial_acumulado;\n $total_realizada = $oDespesa->empenhado - $oDespesa->anulado;\n\n if ($oDespesa->o58_codigo != 0 && ($total_suplem + $total_esp + $total_realizada) > 0){\n\n $sLinhaAnexo11 .= $sFilhoNivel3.\"<despesaA11>\\r\\n\";\n $sLinhaAnexo11 .= $sFilhoNivel4.\"<codigoDespesa>\".substr($oDespesa->o58_elemento, 1, 8).\"</codigoDespesa>\\r\\n\";\n $sLinhaAnexo11 .= $sFilhoNivel4.\"<valorCreditosOrcamentariosSuplementares>\".$total_suplem.\"</valorCreditosOrcamentariosSuplementares>\\r\\n\";\n $sLinhaAnexo11 .= $sFilhoNivel4.\"<valorCreditosEspeciaisExtraordinarios>\".$total_esp.\"</valorCreditosEspeciaisExtraordinarios>\\r\\n\";\n $sLinhaAnexo11 .= $sFilhoNivel4.\"<valorRealizada>\".$total_realizada.\"</valorRealizada>\\r\\n\";\n $sLinhaAnexo11 .= $sFilhoNivel3.\"</despesaA11>\\r\\n\";\n }\n }\n }\n $sLinhaAnexo11 .= $sFilhoNivel2.\"</despesasA11>\\r\\n\";\n $sLinhaAnexo11 .= $sFilhoNivel1.\"</unidadeDespesasA11>\\r\\n\";\n }\n $sLinhaAnexo11 .= \"</unidadesDespesasA11>\\r\\n\";\n $sLinhaAnexo11 .= \"</anexoDados11>\\r\\n\";\n $sLinhaAnexo11 .= \"</anexo11>\\r\\n\";\n\n fputs($arquivoXML, $sLinhaAnexo11.\"\\r\\n\");\n } \n\n if($this->getGeraAnexo12()) {\n $sLinhaAnexo12 = \"<anexo12>\n<anexoDados12>\n <blocoAReceitasA12>\n <valorReceitaTributariaPI>614477000.00</valorReceitaTributariaPI>\n <valorReceitaTributariaPA>614477000.00</valorReceitaTributariaPA>\n <valorReceitaTributariaRR>143584988.29</valorReceitaTributariaRR>\n <valorReceitaContribuicaoPI>202178000.00</valorReceitaContribuicaoPI>\n <valorReceitaContribuicaoPA>202178000.00</valorReceitaContribuicaoPA>\n <valorReceitaContribuicaoRR>14594243.24</valorReceitaContribuicaoRR>\n <valorReceitaPatrimonialPI>62517000.00</valorReceitaPatrimonialPI>\n <valorReceitaPatrimonialPA>62517000.00</valorReceitaPatrimonialPA>\n <valorReceitaPatrimonialRR>11172951.20</valorReceitaPatrimonialRR>\n <valorReceitaAgropecuariaPI>0.00</valorReceitaAgropecuariaPI>\n <valorReceitaAgropecuariaPA>0.00</valorReceitaAgropecuariaPA>\n <valorReceitaAgropecuariaRR>0.00</valorReceitaAgropecuariaRR>\n <valorReceitaIndustrialPI>0.00</valorReceitaIndustrialPI>\n <valorReceitaIndustrialPA>0.00</valorReceitaIndustrialPA>\n <valorReceitaIndustrialRR>0.00</valorReceitaIndustrialRR>\n <valorReceitaServicosPI>10318000.00</valorReceitaServicosPI>\n <valorReceitaServicosPA>10318000.00</valorReceitaServicosPA>\n <valorReceitaServicosRR>10255.32</valorReceitaServicosRR>\n <valorTransfereciasCorrentesPI>1355921000.00</valorTransfereciasCorrentesPI>\n <valorTransfereciasCorrentesPA>1357609385.67</valorTransfereciasCorrentesPA>\n <valorTransfereciasCorrentesRR>187386824.95</valorTransfereciasCorrentesRR>\n <valorOutrasReceitasCorrentesPI>207819570.79</valorOutrasReceitasCorrentesPI>\n <valorOutrasReceitasCorrentesPA>207819570.79</valorOutrasReceitasCorrentesPA>\n <valorOutrasReceitasCorrentesRR>23476620.32</valorOutrasReceitasCorrentesRR>\n <valorReceitaOperacaoCreditoPI>11051000.00</valorReceitaOperacaoCreditoPI>\n <valorReceitaOperacaoCreditoPA>11051000.00</valorReceitaOperacaoCreditoPA>\n <valorReceitaOperacaoCreditoRR>0.00</valorReceitaOperacaoCreditoRR>\n <valorReceitaAlienacaoBensPI>2000.00</valorReceitaAlienacaoBensPI>\n <valorReceitaAlienacaoBensPA>2000.00</valorReceitaAlienacaoBensPA>\n <valorReceitaAlienacaoBensRR>0.00</valorReceitaAlienacaoBensRR>\n <valorReceitaAmortizacoesEmprestimosPI>0.00</valorReceitaAmortizacoesEmprestimosPI>\n <valorReceitaAmortizacoesEmprestimosPA>0.00</valorReceitaAmortizacoesEmprestimosPA>\n <valorReceitaAmortizacoesEmprestimosRR>0.00</valorReceitaAmortizacoesEmprestimosRR>\n <valorTransfereciasCapitalPI>6619000.00</valorTransfereciasCapitalPI>\n <valorTransfereciasCapitalPA>6619000.00</valorTransfereciasCapitalPA>\n <valorTransfereciasCapitalRR>0.00</valorTransfereciasCapitalRR>\n <valorOutrasReceitasCapitalPI>3000000.00</valorOutrasReceitasCapitalPI>\n <valorOutrasReceitasCapitalPA>3000000.00</valorOutrasReceitasCapitalPA>\n <valorOutrasReceitasCapitalRR>0.00</valorOutrasReceitasCapitalRR>\n <valorArrecadadosExerciciosAnterioresPI>0.00</valorArrecadadosExerciciosAnterioresPI>\n <valorArrecadadosExerciciosAnterioresPA>0.00</valorArrecadadosExerciciosAnterioresPA>\n <valorArrecadadosExerciciosAnterioresRR>0.00</valorArrecadadosExerciciosAnterioresRR>\n <valorOperacoesCreditoInternasMobiliariaPI>0.00</valorOperacoesCreditoInternasMobiliariaPI>\n <valorOperacoesCreditoInternasMobiliariaPA>0.00</valorOperacoesCreditoInternasMobiliariaPA>\n <valorOperacoesCreditoInternasMobiliariaRR>0.00</valorOperacoesCreditoInternasMobiliariaRR>\n <valorOperacoesCreditoInternasContratualPI>0.00</valorOperacoesCreditoInternasContratualPI>\n <valorOperacoesCreditoInternasContratualPA>0.00</valorOperacoesCreditoInternasContratualPA>\n <valorOperacoesCreditoInternasContratualRR>0.00</valorOperacoesCreditoInternasContratualRR>\n <valorOperacoesCreditoExternasMobiliariaPI>0.00</valorOperacoesCreditoExternasMobiliariaPI>\n <valorOperacoesCreditoExternasMobiliariaPA>0.00</valorOperacoesCreditoExternasMobiliariaPA>\n <valorOperacoesCreditoExternasMobiliariaRR>0.00</valorOperacoesCreditoExternasMobiliariaRR>\n <valorOperacoesCreditoExternasContratualPI>0.00</valorOperacoesCreditoExternasContratualPI>\n <valorOperacoesCreditoExternasContratualPA>0.00</valorOperacoesCreditoExternasContratualPA>\n <valorOperacoesCreditoExternasContratualRR>0.00</valorOperacoesCreditoExternasContratualRR>\n <valorSuperavitFinanceiroPA>0.00</valorSuperavitFinanceiroPA>\n <valorSuperavitFinanceiroRR>0.00</valorSuperavitFinanceiroRR>\n <valorreaberturaCreditosAdicionaisPA>0.00</valorreaberturaCreditosAdicionaisPA>\n <valorreaberturaCreditosAdicionaisRR>0.00</valorreaberturaCreditosAdicionaisRR>\n </blocoAReceitasA12>\n <blocoADespesasA12>\n <valorPessoalEncargosSociaisDI>1242479734.00</valorPessoalEncargosSociaisDI>\n <valorPessoalEncargosSociaisDA>1242479734.00</valorPessoalEncargosSociaisDA>\n <valorPessoalEncargosSociaisDE>1098906498.26</valorPessoalEncargosSociaisDE>\n <valorPessoalEncargosSociaisDL>236992163.87</valorPessoalEncargosSociaisDL>\n <valorPessoalEncargosSociaisDP>162420484.88</valorPessoalEncargosSociaisDP>\n <valorJurosEncargosDividaDI>24526000.00</valorJurosEncargosDividaDI>\n <valorJurosEncargosDividaDA>24526000.00</valorJurosEncargosDividaDA>\n <valorJurosEncargosDividaDE>22742576.00</valorJurosEncargosDividaDE>\n <valorJurosEncargosDividaDL>323212.73</valorJurosEncargosDividaDL>\n <valorJurosEncargosDividaDP>0.00</valorJurosEncargosDividaDP>\n <valorOutrasDespesasCorrentesDI>936633213.38</valorOutrasDespesasCorrentesDI>\n <valorOutrasDespesasCorrentesDA>936080852.97</valorOutrasDespesasCorrentesDA>\n <valorOutrasDespesasCorrentesDE>618299009.08</valorOutrasDespesasCorrentesDE>\n <valorOutrasDespesasCorrentesDL>89350075.27</valorOutrasDespesasCorrentesDL>\n <valorOutrasDespesasCorrentesDP>47310823.31</valorOutrasDespesasCorrentesDP>\n <valorInvestimentosDI>246596623.41</valorInvestimentosDI>\n <valorInvestimentosDA>248837369.49</valorInvestimentosDA>\n <valorInvestimentosDE>42173853.53</valorInvestimentosDE>\n <valorInvestimentosDL>3471236.87</valorInvestimentosDL>\n <valorInvestimentosDP>1556120.70</valorInvestimentosDP>\n <valorInversoesFinanceirasDI>3000.00</valorInversoesFinanceirasDI>\n <valorInversoesFinanceirasDA>3000.00</valorInversoesFinanceirasDA>\n <valorInversoesFinanceirasDE>0.00</valorInversoesFinanceirasDE>\n <valorInversoesFinanceirasDL>0.00</valorInversoesFinanceirasDL>\n <valorInversoesFinanceirasDP>0.00</valorInversoesFinanceirasDP>\n <valorAmortizacaoDividaDI>20164000.00</valorAmortizacaoDividaDI>\n <valorAmortizacaoDividaDA>20164000.00</valorAmortizacaoDividaDA>\n <valorAmortizacaoDividaDE>19855910.00</valorAmortizacaoDividaDE>\n <valorAmortizacaoDividaDL>1242535.28</valorAmortizacaoDividaDL>\n <valorAmortizacaoDividaDP>0.00</valorAmortizacaoDividaDP>\n <valorReservaContingenciaDI>2000000.00</valorReservaContingenciaDI>\n <valorReservaContingenciaDA>2000000.00</valorReservaContingenciaDA>\n <valorReservaContingenciaDE>0.00</valorReservaContingenciaDE>\n <valorReservaContingenciaDL>0.00</valorReservaContingenciaDL>\n <valorReservaContingenciaDP>0.00</valorReservaContingenciaDP>\n <valorReservaRPPSDI>0.00</valorReservaRPPSDI>\n <valorReservaRPPSDA>0.00</valorReservaRPPSDA>\n <valorReservaRPPSDE>0.00</valorReservaRPPSDE>\n <valorReservaRPPSDL>0.00</valorReservaRPPSDL>\n <valorReservaRPPSDP>0.00</valorReservaRPPSDP>\n <valorAmortizacaoDividaInternaMobiliariaDI>0.00</valorAmortizacaoDividaInternaMobiliariaDI>\n <valorAmortizacaoDividaInternaMobiliariaDA>0.00</valorAmortizacaoDividaInternaMobiliariaDA>\n <valorAmortizacaoDividaInternaMobiliariaDE>0.00</valorAmortizacaoDividaInternaMobiliariaDE>\n <valorAmortizacaoDividaInternaMobiliariaDL>0.00</valorAmortizacaoDividaInternaMobiliariaDL>\n <valorAmortizacaoDividaInternaMobiliariaDP>0.00</valorAmortizacaoDividaInternaMobiliariaDP>\n <valorAmortizacaoDividaInternaOutrasDividasDI>1500000.00</valorAmortizacaoDividaInternaOutrasDividasDI>\n <valorAmortizacaoDividaInternaOutrasDividasDA>1500000.00</valorAmortizacaoDividaInternaOutrasDividasDA>\n <valorAmortizacaoDividaInternaOutrasDividasDE>233000.00</valorAmortizacaoDividaInternaOutrasDividasDE>\n <valorAmortizacaoDividaInternaOutrasDividasDL>0.00</valorAmortizacaoDividaInternaOutrasDividasDL>\n <valorAmortizacaoDividaInternaOutrasDividasDP>0.00</valorAmortizacaoDividaInternaOutrasDividasDP>\n <valorAmortizacaoDividaExternaMobiliariaDI>0.00</valorAmortizacaoDividaExternaMobiliariaDI>\n <valorAmortizacaoDividaExternaMobiliariaDA>0.00</valorAmortizacaoDividaExternaMobiliariaDA>\n <valorAmortizacaoDividaExternaMobiliariaDE>0.00</valorAmortizacaoDividaExternaMobiliariaDE>\n <valorAmortizacaoDividaExternaMobiliariaDL>0.00</valorAmortizacaoDividaExternaMobiliariaDL>\n <valorAmortizacaoDividaExternaMobiliariaDP>0.00</valorAmortizacaoDividaExternaMobiliariaDP>\n <valorAmortizacaoDividaExternaOutrasDividasDI>0.00</valorAmortizacaoDividaExternaOutrasDividasDI>\n <valorAmortizacaoDividaExternaOutrasDividasDA>0.00</valorAmortizacaoDividaExternaOutrasDividasDA>\n <valorAmortizacaoDividaExternaOutrasDividasDE>0.00</valorAmortizacaoDividaExternaOutrasDividasDE>\n <valorAmortizacaoDividaExternaOutrasDividasDL>0.00</valorAmortizacaoDividaExternaOutrasDividasDL>\n <valorAmortizacaoDividaExternaOutrasDividasDP>0.00</valorAmortizacaoDividaExternaOutrasDividasDP>\n </blocoADespesasA12>\n <blocoBA12>\n <valorPessoalEncargosSociaisNPIEA>2922723.84</valorPessoalEncargosSociaisNPIEA>\n <valorPessoalEncargosSociaisNPIDEA>4906222.62</valorPessoalEncargosSociaisNPIDEA>\n <valorPessoalEncargosSociaisNPL>496186.99</valorPessoalEncargosSociaisNPL>\n <valorPessoalEncargosSociaisNPP>9356.54</valorPessoalEncargosSociaisNPP>\n <valorPessoalEncargosSociaisNPC>402176.59</valorPessoalEncargosSociaisNPC>\n <valorJurosEncargosDividaNPIEA>0.00</valorJurosEncargosDividaNPIEA>\n <valorJurosEncargosDividaNPIDEA>1663400.46</valorJurosEncargosDividaNPIDEA>\n <valorJurosEncargosDividaNPL>0.00</valorJurosEncargosDividaNPL>\n <valorJurosEncargosDividaNPP>0.00</valorJurosEncargosDividaNPP>\n <valorJurosEncargosDividaNPC>0.00</valorJurosEncargosDividaNPC>\n <valorOutrasDespesasCorrentesNPIEA>30323121.64</valorOutrasDespesasCorrentesNPIEA>\n <valorOutrasDespesasCorrentesNPIDEA>65300218.06</valorOutrasDespesasCorrentesNPIDEA>\n <valorOutrasDespesasCorrentesNPL>46348429.03</valorOutrasDespesasCorrentesNPL>\n <valorOutrasDespesasCorrentesNPP>27847164.78</valorOutrasDespesasCorrentesNPP>\n <valorOutrasDespesasCorrentesNPC>2905992.08</valorOutrasDespesasCorrentesNPC>\n <valorInvestimentosNPIEA>155629694.27</valorInvestimentosNPIEA>\n <valorInvestimentosNPIDEA>48404982.79</valorInvestimentosNPIDEA>\n <valorInvestimentosNPL>8694502.63</valorInvestimentosNPL>\n <valorInvestimentosNPP>3792214.71</valorInvestimentosNPP>\n <valorInvestimentosNPC>1262683.39</valorInvestimentosNPC>\n <valorInversoesFinanceirasNPIEA>0.00</valorInversoesFinanceirasNPIEA>\n <valorInversoesFinanceirasNPIDEA>0.00</valorInversoesFinanceirasNPIDEA>\n <valorInversoesFinanceirasNPL>0.00</valorInversoesFinanceirasNPL>\n <valorInversoesFinanceirasNPP>0.00</valorInversoesFinanceirasNPP>\n <valorInversoesFinanceirasNPC>0.00</valorInversoesFinanceirasNPC>\n <valorAmortizacaoDividaNPIEA>0.00</valorAmortizacaoDividaNPIEA>\n <valorAmortizacaoDividaNPIDEA>0.00</valorAmortizacaoDividaNPIDEA>\n <valorAmortizacaoDividaNPL>0.00</valorAmortizacaoDividaNPL>\n <valorAmortizacaoDividaNPP>0.00</valorAmortizacaoDividaNPP>\n <valorAmortizacaoDividaNPC>0.00</valorAmortizacaoDividaNPC>\n </blocoBA12>\n <blocoCA12>\n <valorPessoalEncargosSociaisPIEA>139018742.44</valorPessoalEncargosSociaisPIEA>\n <valorPessoalEncargosSociaisPIDEA>119586684.47</valorPessoalEncargosSociaisPIDEA>\n <valorPessoalEncargosSociaisPP>6769886.71</valorPessoalEncargosSociaisPP>\n <valorPessoalEncargosSociaisPC>1377921.16</valorPessoalEncargosSociaisPC>\n <valorJurosEncargosDividaPIEA>241.42</valorJurosEncargosDividaPIEA>\n <valorJurosEncargosDividaPIDEA>0.00</valorJurosEncargosDividaPIDEA>\n <valorJurosEncargosDividaPP>0.00</valorJurosEncargosDividaPP>\n <valorJurosEncargosDividaPC>0.00</valorJurosEncargosDividaPC>\n <valorOutrasDespesasCorrentesPIEA>55823240.64</valorOutrasDespesasCorrentesPIEA>\n <valorOutrasDespesasCorrentesPIDEA>106525496.23</valorOutrasDespesasCorrentesPIDEA>\n <valorOutrasDespesasCorrentesPP>56458512.19</valorOutrasDespesasCorrentesPP>\n <valorOutrasDespesasCorrentesPC>719983.78</valorOutrasDespesasCorrentesPC>\n <valorInvestimentosPIEA>26511101.85</valorInvestimentosPIEA>\n <valorInvestimentosPIDEA>6313123.94</valorInvestimentosPIDEA>\n <valorInvestimentosPP>7114025.90</valorInvestimentosPP>\n <valorInvestimentosPC>127721.37</valorInvestimentosPC>\n <valorInversoesFinanceirasPIEA>0.00</valorInversoesFinanceirasPIEA>\n <valorInversoesFinanceirasPIDEA>0.00</valorInversoesFinanceirasPIDEA>\n <valorInversoesFinanceirasPP>0.00</valorInversoesFinanceirasPP>\n <valorInversoesFinanceirasPC>0.00</valorInversoesFinanceirasPC>\n <valorAmortizacaoDividaPIEA>0.00</valorAmortizacaoDividaPIEA>\n <valorAmortizacaoDividaPIDEA>546360.19</valorAmortizacaoDividaPIDEA>\n <valorAmortizacaoDividaPP>0.00</valorAmortizacaoDividaPP>\n <valorAmortizacaoDividaPC>0.00</valorAmortizacaoDividaPC>\n </blocoCA12>\n</anexoDados12>\n</anexo12>\";\n\n fputs($arquivoXML, $sLinhaAnexo12.\"\\r\\n\");\n }\n\n fputs($arquivoXML, $sLinhaTrailer);\n fclose($arquivoXML);\n }", "title": "" }, { "docid": "bc39efba03b57372a3899bf62abd062c", "score": "0.567971", "text": "public function compra($interlocutor, $proveedor, $observacion, $productos,$dato_adicional=NULL) {\n \n $datos_transaccion = array(\n \"transaccion_tipo_id\" => TRX_COMPRA,\n \"interlocutor_externo\" => $proveedor,\n \"interlocutor_id\" => $interlocutor,\n \n \"observacion\" => $observacion,\n \"estado_id\" => ESTADO_ACTIVO);\n if($dato_adicional != NULL){\n $datos_transaccion['factura_numero'] = $dato_adicional['factura_numero'];\n }\n\n $id_transaccion = $this->registrar_transaccion($datos_transaccion);\n \n if ($id_transaccion) {\n $total = 0;\n foreach ($productos as $id_producto => $producto) {\n $datos_transaccion_item = array(\n 'transaccion_id' => $id_transaccion,\n 'producto_id' => $id_producto,\n 'cantidad' => $producto->cantidad,\n 'valor_unitario' => $producto->valor,\n 'iva' => $producto->iva,\n 'estado_id' => ESTADO_ACTIVO);\n\n $id_transaccion_item = $this->registrar_transaccion_item($datos_transaccion_item);\n $total = $total + ($producto->valor * $producto->cantidad);\n\n $this->stock->actualizar_stock($id_producto, $producto->cantidad, OPERACION_INCREMENTO, $id_transaccion, $interlocutor);\n //$resultado_update_transaccion = $this->db->query(\"UPDATE transaccion SET total='\" . $total . \"' WHERE id_transaccion= \" . $id_transaccion, false);\n }\n \n $campos = array(\n 'total' => $total\n );\n $this->actualizar_transaccion($campos, $id_transaccion);\n $this->caja_actualizar('compras', $total, '-', $interlocutor);\n }\n\n return $id_transaccion;\n }", "title": "" }, { "docid": "7fdd023fc2d6bef88b464f195984d8ad", "score": "0.5677996", "text": "function set_info($aPedido) {\n\t}", "title": "" }, { "docid": "73d733405fd40fdff42601dd196a346d", "score": "0.56700975", "text": "public function __construct($nome, $cognome, $dataNascita, $ruolo, $stipendio, $sicurezza) {\n // $this -> nome = $nome;\n // $this -> cognome = $cognome;\n // $this -> data_di_nascita = $dataNascita;\n \n //useremo il parent per portare dietro tutti gli attributi della classe persona\n parent:: __construct($nome, $cognome, $dataNascita);\n \n $this -> setRuolo($ruolo);\n $this -> setStipendio($stipendio);\n $this -> setSicurezza($sicurezza);\n }", "title": "" }, { "docid": "63b519edd468b90f245bb47004e4a3c8", "score": "0.5668559", "text": "public function criarFabricanteAction()\n {\n $this->view->disable();\n //Instanciando classes\n $util = new Util();\n $response = new Response();\n $manager = new TxManager();\n $transaction = $manager->get();\n $dados = filter_input_array(INPUT_POST);\n $params = array();\n parse_str($dados[\"dados\"], $params);\n //CSRF Token Check\n if ($this->tokenManager->checkToken('User', $dados['tokenKey'], $dados['tokenValue'])) {//Formulário Válido\n try {\n $pessoa = new Pessoa();\n $pessoa->setTransaction($transaction);\n $pessoa->setNome(mb_strtoupper($params[\"nome_pessoa\"], $this->encode));\n if ($pessoa->save() == false) {\n $transaction->rollback(\"Não foi possível salvar a pessoa!\");\n }\n $pessoaendereco = new PessoaEndereco();\n $pessoaendereco->setTransaction($transaction);\n $pessoaendereco->setIdPessoa($pessoa->getId());\n $pessoaendereco->setIdTipoendereco(49);//Comercial\n $pessoaendereco->setCep($util->formataCpfCnpj($params[\"cep\"]));\n $pessoaendereco->setPrincipal(1);//Principal\n $pessoaendereco->setEndereco(mb_strtoupper($params[\"endereco\"], $this->encode));\n $pessoaendereco->setNumero(mb_strtoupper($params[\"numero\"], $this->encode));\n $pessoaendereco->setBairro(mb_strtoupper($params[\"bairro\"], $this->encode));\n $pessoaendereco->setCidade(mb_strtoupper($params[\"cidade\"], $this->encode));\n $pessoaendereco->setEstado(mb_strtoupper($params[\"estado\"], $this->encode));\n $pessoaendereco->setComplemento(mb_strtoupper($params[\"complemento\"], $this->encode));\n $pessoaendereco->setSiglaEstado(mb_strtoupper($params[\"sigla_uf\"], $this->encode));\n if ($pessoaendereco->save() == false) {\n $messages = $pessoaendereco->getMessages();\n $errors = '';\n for ($i = 0; $i < count($messages); $i++) {\n $errors .= '['.$messages[$i].'] ';\n }\n $transaction->rollback('Erro ao criar o circuito: ' . $errors);\n }\n if (!empty($params[\"email_pf\"])) {\n foreach($params[\"email_pf\"] as $key => $email){\n $pessoaemail = new PessoaEmail();\n $pessoaemail->setTransaction($transaction);\n $pessoaemail->setIdPessoa($pessoa->getId());\n $pessoaemail->setIdTipoemail(42);//Comercial\n $pessoaemail->setPrincipal($params[\"principal_email\"][$key]);\n $pessoaemail->setEmail($email);\n if ($pessoaemail->save() == false) {\n $transaction->rollback(\"Não foi possível salvar o pessoaemail!\");\n }\n }\n }\n if (!empty($params[\"telefone\"])) {\n foreach($params[\"telefone\"] as $key => $telefone){\n $tel = $util->formataFone($telefone);\n $pessoatelefone = new PessoaTelefone();\n $pessoatelefone->setTransaction($transaction);\n $pessoatelefone->setIdPessoa($pessoa->getId());\n $pessoatelefone->setIdTipotelefone(50);//Fixo\n $pessoatelefone->setPrincipal($params[\"principal_tel\"][$key]);\n $pessoatelefone->setDdd($tel[\"ddd\"]);\n $pessoatelefone->setTelefone($tel[\"fone\"]);\n if ($pessoatelefone->save() == false) {\n $transaction->rollback(\"Não foi possível salvar o pessoatelefone!\");\n }\n }\n }\n if (!empty($params[\"nome_contato\"])) {\n foreach($params[\"nome_contato\"] as $key => $nome_contato){\n $tel1 = ($params[\"telefone_contato\"][$key]) ? $util->formataFone($params[\"telefone_contato\"][$key]) : null;\n $tel = ($tel1) ? $tel1[\"ddd\"] . $tel1[\"fone\"] : null;\n $email = ($params[\"email_contato\"][$key]) ? $params[\"email_contato\"][$key] : null;\n $pessoacontato = new PessoaContato();\n $pessoacontato->setTransaction($transaction);\n $pessoacontato->setIdPessoa($pessoa->getId());\n $pessoacontato->setIdTipocontato($params[\"tipo_contato\"][$key]);\n $pessoacontato->setNome($nome_contato);\n $pessoacontato->setPrincipal($params[\"principal_contato\"][$key]);\n $pessoacontato->setTelefone($tel);\n $pessoacontato->setEmail($email);\n if ($pessoacontato->save() == false) {\n $transaction->rollback(\"Não foi possível salvar a pessoa de contato!\");\n }\n }\n }\n $fabricante = new Fabricante();\n $fabricante->setTransaction($transaction);\n $fabricante->setIdPessoa($pessoa->getId());\n if ($fabricante->save() == false) {\n $messages = $fabricante->getMessages();\n $errors = '';\n for ($i = 0; $i < count($messages); $i++) {\n $errors .= '['.$messages[$i].'] ';\n }\n $transaction->rollback('Erro ao criar o fabricante: ' . $errors);\n }\n //Commita a transação\n $transaction->commit();\n $response->setContent(json_encode(array(\n \"operacao\" => True\n )));\n return $response;\n } catch (TxFailed $e) {\n $response->setContent(json_encode(array(\n \"operacao\" => False,\n \"mensagem\" => $e->getMessage()\n )));\n return $response;\n }\n } else {//Formulário Inválido\n $response->setContent(json_encode(array(\n \"operacao\" => False,\n \"mensagem\" => \"Check de formulário inválido!\"\n )));\n return $response;\n }\n }", "title": "" }, { "docid": "18768e30870a5e8a1834231d4aa5aac6", "score": "0.56663024", "text": "public function __SET($atributo, $valor){\n $this->$atributo = $valor;\n }", "title": "" }, { "docid": "b67409626d9683d986fbd0c94b6d82eb", "score": "0.56635493", "text": "public function ModifierRangeurAction()\n {\n if (isset($_POST['valider'])) {\n $em = $this\n ->getDoctrine()\n ->getManager();\n\n //MISE A JOUR DES INFOS DU TIREUR\n $tireur = $em->getRepository('DuillierPlanningBundle:Tireur')->find($_POST['idLicence']);\n $tireur->setIdCLub($_POST['club']);\n $tireur->setNomTireur($_POST['nom']);\n $tireur->setPrenomTireur($_POST['prenom']);\n $tireur->setAnneeNaissance($_POST['anneeNaissance']);\n $tireur->setEstGaucher($_POST['estGaucher']);\n $tireur->setMail($_POST['email']);\n $tireur->setAdresse($_POST['adresse']);\n $tireur->setCodePostalTireur($_POST['codePostal']);\n $tireur->setVille($_POST['ville']);\n $tireur->setCommentaire($_POST['commentaire']);\n\n $em->flush();\n\n\n\n //MISE A JOUR DE SeCompose pour la participation (si une participation participe ou non à un tir donné)\n $tirs = array( 1 => 'doleGroupe', 2=>'duillier', 3 => 'montBlanc', 4 => 'perceNeige');\n\n //on fait la mise à jour pour chaque type de tir\n for ($i=1; $i <= count($tirs); $i++) {\n $em = $this\n ->getDoctrine()\n ->getManager();\n\n $seCompose = $em->getRepository('DuillierPlanningBundle:SeCompose' )->findOneBy(\n array(\n 'idTir'=> $i,\n 'idLivret'=>$_POST['idLivret'])\n );\n\n if($_POST[$tirs[$i]]==1 && count($seCompose) == 0){ //si le checkbox est coché et que SeCompose n'existe pas, on fait l'insert\n\n $seCompose = new SeCompose($i, $_POST['idLivret']);\n $em->persist($seCompose);\n\n }elseif ($_POST[$tirs[$i]]==0 && count($seCompose) != 0) { //si le check est pas coché mais qu'il participait au tir, on le delete\n $em->remove($seCompose);\n }\n $em->flush();\n }\n\n\n\n //MISE A JOUR DE PARTICIPATION\n $em = $this\n ->getDoctrine()\n ->getManager();\n\n $participation = $em->getRepository('DuillierPlanningBundle:Participation')->find($_POST['idLivret']);\n $participation->setNbEssai($_POST['numberNbEssai']);\n $participation->setNbRepas($_POST['numberNbRepas']);\n $participation->setMontantTotal($_POST['prix']);\n $participation->setIsInGroupe($_POST['groupe']);\n $participation->setIsChefGroupe($_POST['chefGroupe']);\n\n $em->flush();\n\n\n //MISE A JOUR DE OCCUPE\n //Récupération de l'idHoraire qui va être occupé\n $em = $this\n ->getDoctrine()\n ->getManager();\n\n $horaire = $em->getRepository('DuillierPlanningBundle:Horaire')->findOneBy(\n array(\n 'date'=> new \\DateTime($_POST['jour']),\n 'heure'=>$_POST['heure'])\n );\n\n $idHoraire = $horaire->getIdHoraire();\n\n\n // //DELETE DES anciens OCCUPE\n $rangeursOccupesAVirer = $em->getRepository('DuillierPlanningBundle:Occupe' )->findBy(\n array(\n 'numLivret'=>$_POST['idLivret'])\n );\n\n foreach ($rangeursOccupesAVirer as $rangeur) {\n $em->remove($rangeur);\n }\n\n //INSERT DES NOUVEAUX OCCUPE\n for ($i=0; $i < $_POST['rangeur']; $i++) {\n $newOccupe = new Occupe($_POST['poste'], new \\DateTime($_POST['jour']), $idHoraire++, $_POST['idLivret']);\n\n $em->persist($newOccupe);\n }\n\n\n $em->flush();\n\n\n //REAFFICHAGE DU PLANNING DE GESTION DES RANGEURS\n //return new Response(var_dump($idHoraire));\n //return $this->render('DuillierAdminBundle:Rangeur:gestionRangeur.html.php');\n return $this->redirectToRoute(\"duillier_admin_gestionRangeur\");\n\n }\n return $this->redirectToRoute(\"duillier_admin_gestionRangeur\");\n //return $this->render('DuillierAdminBundle:Rangeur:gestionRangeur.html.php');\n // return $this->render('DuillierAdminBundle:Rangeur:formModifierRangeur.html.php', array(\n // 'idPoste' => $idPoste ,\n // 'date' => $date,\n // 'idHoraire' => $idHoraire,\n // 'numLivret' => $numLivret,\n // 'repas' => $repas,\n // ));\n }", "title": "" }, { "docid": "24685b319b53b5817b05181d18af46b2", "score": "0.5654055", "text": "public function setNombre($Nombre)\r\n{\r\n$this->Nombre = $Nombre;\r\n\r\nreturn $this;\r\n}", "title": "" }, { "docid": "0bd2c96242aff669acc90c26fd9626ef", "score": "0.5653364", "text": "public function gerarDados() {\n\n\t\t$iInstituicaoSessao = db_getsession('DB_instit');\n\n $oDadoConfig = db_stdClass::getDadosInstit();\n $clConLanCamEmp = db_utils::getDao('conlancamemp');\n\n $sCampos = \" case when e50_obs ilike '%janeiro%' then 1 \";\n $sCampos .= \" when e50_obs ilike '%fevereiro%' then 2 \";\n $sCampos .= \" when e50_obs ilike '%março%' then 3 \";\n $sCampos .= \" when e50_obs ilike '%abril%' then 4 \";\n $sCampos .= \" when e50_obs ilike '%maio%' then 5 \";\n $sCampos .= \" when e50_obs ilike '%junho%' or e50_obs ilike'%6/2012%' then 6 \";\n $sCampos .= \" when e50_obs ilike '%julho%' or e50_obs ilike'%7/2012%' then 7 \";\n $sCampos .= \" when e50_obs ilike '%agosto%' or e50_obs ilike'%8/2012%' then 8 \";\n $sCampos .= \" when e50_obs ilike '%setembro%' or e50_obs ilike'%9/2012%' then 9 \";\n $sCampos .= \" when e50_obs ilike '%outubro%' or e50_obs ilike'%10/2012%' then 10 \";\n $sCampos .= \" when e50_obs ilike '%novembro%' or e50_obs ilike'%11/2012%' then 11 \";\n $sCampos .= \" when e50_obs ilike '%dezembro%' or e50_obs ilike'%12/2012%' then 12 \";\n $sCampos .= \" else 0 end as mes ,\";\n $sCampos .= \"(case length(z01_cgccpf) when 14 then 2 when 11 then 1 end ) as tipo_pessoa, \";\n $sCampos .= \"pagordem.e50_obs, z01_cgccpf, z01_nome, e50_data, \";\n $sCampos .= \"e60_codemp, e60_anousu, c70_data, orcdotacao.o58_orgao, \";\n $sCampos .= \"min(pagordem.e50_codord) as e50_codord, to_char(max(conlancam.c70_data),'YYYYmm') as competencia, orcdotacao.o58_unidade, \t \";\n $sCampos .= \"sum(case c53_tipo when 30 then conlancam.c70_valor \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \";\n $sCampos .= \"\t\t\t\t\t\t\t when 31 then (conlancam.c70_valor * -1) end) as valor_pago \";\n \n $sWhere = \" conlancam.c70_anousu = {$this->iAnoUso} and empempenho.e60_instit = {$iInstituicaoSessao} \";\n $sWhere .= \" and empempenho.e60_anousu = {$this->iAnoUso} \";\n $sWhere .= \" and conhistdoc.c53_tipo in (30,31) \";\n $sWhere .= \" and z01_numcgm in (200711) \";\n $sWhere .= \" and conlancam.c70_data between cast('{$this->dtDataInicial}' as date) and cast('{$this->dtDataFinal}' as date) \";\n $sWhere .= \" group by e60_codemp, z01_numcgm, z01_cgccpf, z01_nome, e50_data, pagordem.e50_obs, empempenho.e60_anousu, c70_data, orcdotacao.o58_orgao, \";\n $sWhere .= \" orcdotacao.o58_unidade\";\n\n //$sWhere .= \" having max(conlancam.c70_data) between cast('{$this->dtDataInicial}' as date) and cast('{$this->dtDataFinal}' as date) \";\n \n $sOrdem = \"e60_codemp\";\n \n $sSqlConLanCamEmp = $clConLanCamEmp->sql_query_pagamentoEmpenho(null , $sCampos, $sOrdem, $sWhere);\n\n// die($sSqlConLanCamEmp);\n\n // = $clConLanCamEmp->sql_query_pagamentoEmpenho(null , $sCampos, $sOrdem, $sWhere);\n $rsConLanCamEmp = $clConLanCamEmp->sql_record($sSqlConLanCamEmp);\n \n $this->addLog(\"=====Arquivo\".$this->getNomeArquivo().\" Erros:\\n\");\n \n if ($clConLanCamEmp->numrows > 0) {\n \n if (empty($this->sCodigoTribunal)) {\n throw new Exception(\"O código do tribunal deve ser informado para geração do arquivo\");\n }\n \n for ($i = 0; $i < $clConLanCamEmp->numrows; $i++) {\n \n $oDadosQuery = new stdClass();\n $oDadosQuery = db_utils::fieldsMemory($rsConLanCamEmp, $i);\n \n if ($oDadosQuery->valor_pago == 0 ){\n continue;\n }\n\n /**\n * Verifica se a Conta retornada possui vinculo com a conta do Sigfis\n */\n// if ($oVinculo = SigfisVinculoConta::getVinculoConta($oDadosQuery->c61_codcon)) {\n \n $sObServacao = str_replace(\"\\n\", \" \", $oDadosQuery->e50_obs);\n $sObServacao = str_replace(\"\\r\", \" \", $sObServacao);\n \n $oDados = new stdClass();\n// $sUnidadeOrcamentaria = str_pad($oDadosQuery->o58_orgao, 2, '0', STR_PAD_LEFT);\n $sUnidadeOrcamentaria = str_pad($oDadosQuery->o58_unidade,4, ' ', STR_PAD_LEFT);\n \n $dtPagamento = $this->formataData($oDadosQuery->c70_data);\n $dtEmissao = $this->formataData($oDadosQuery->e50_data);\n\n $mesReferencia = ( $oDadosQuery->mes == 0 ? substr($oDadosQuery->competencia,4,2) : $oDadosQuery->mes );\n // $mesReferencia = $oDadosQuery->mes;\n $anoReferencia = substr($oDadosQuery->competencia,0,4);\n \n $oDados->cd_Unidade = str_pad($this->sCodigoTribunal, 4, ' ', STR_PAD_LEFT);\n $oDados->cd_UnidadeOrcamentaria = str_pad($sUnidadeOrcamentaria, 4, ' ', STR_PAD_LEFT); \n $oDados->nu_Empenho = str_pad($oDadosQuery->e60_codemp, 10, ' ', STR_PAD_RIGHT);\n $oDados->dt_PagamentoEmpenho = $dtPagamento;\n $oDados->dt_AnoReferencia = $anoReferencia;\n $oDados->dt_MesReferencia = str_pad($mesReferencia,2,'0',STR_PAD_LEFT);\n $oDados->dt_Ano = $oDadosQuery->e60_anousu;\n $oDados->de_Folha = str_pad(substr($sObServacao, 0, 120) , 120, ' ', STR_PAD_RIGHT);\n $oDados->vl_Folha = str_pad($this->formataValor($oDadosQuery->valor_pago), 16, ' ', STR_PAD_LEFT);\n $oDados->dt_AnoMes = $oDadosQuery->competencia;\n $oDados->cd_Orgao = str_pad($oDadosQuery->o58_orgao, 4, ' ', STR_PAD_LEFT);\n/*\n\n $oDados->nm_Emitente = str_pad(substr($oDadosQuery->z01_nome, 0, 30), 100, ' ', STR_PAD_RIGHT);\n $oDados->tp_PessoaEmitente = $oDadosQuery->tipo_pessoa;\n $oDados->nm_Documento = str_pad(substr($oDadosQuery->e50_codord,0,50), 50, ' ', STR_PAD_RIGHT);\n $oDados->dt_Emissao = $dtEmissao;\n $oDados->dt_AnoMes = $oDadosQuery->competencia;\n $oDados->nu_EmpenhoSup = str_pad(str_repeat(' ', 10), 10, ' ', STR_PAD_LEFT);\n \n $oDados->dt_AnoMes = $oDadosQuery->competencia;\n $oDados->cd_Orgao = str_pad($oDadosQuery->o58_orgao, 4, ' ', STR_PAD_LEFT);\n $oDados->nu_EmpenhoSup = str_pad(str_repeat(' ', 10), 10, ' ', STR_PAD_LEFT);\n $oDados->Reservado_tce = str_repeat(' ', 41);\n // $oDados->Cd_ContaCorrente1 = str_pad(str_repeat(' ', 30), 30, ' ', STR_PAD_LEFT);\n // $oDados->Cd_ContaCorrente2 = str_pad(str_repeat(' ', 30), 30, ' ', STR_PAD_LEFT);\n // $oDados->Cd_ContaCorrente3 = str_pad(str_repeat(' ', 30), 30, ' ', STR_PAD_LEFT);\n*/\n $oDados->codigolinha = 646;\n \n $this->aDados[] = $oDados;\n/*\n } else {\n $sErroLog = \"Estrutural {$oDadosQuery->c60_estrut} - Conta{$oDadosQuery->e50_codord} -> \";\n $sErroLog .= \"sem Vinculo com plano do SIGFIS - Conta *NÃO* Adicionada ao Arquivo.\\n\";\n $this->addLog($sErroLog);\n } */\n }\n }\n \n $this->addLog(\"===== Fim do Arquivo: \".$this->getNomeArquivo().\"\\n\");\n }", "title": "" }, { "docid": "ef3cd501abeeb1e9bc26393e223cd34e", "score": "0.56533355", "text": "private function setCourier()\r\n {\r\n // In here I have assigned Dx;\r\n $this->courier = $this->chooseCourier();\r\n }", "title": "" }, { "docid": "02d946756ec5d0a120ff25c4b4a874dc", "score": "0.5649038", "text": "public function __set($atributo, $valor){\n\t\t$this->$atributo = $valor;\n\t}", "title": "" }, { "docid": "f33158e6b76c9b2b03d616bd50497831", "score": "0.5647439", "text": "public function Vendedor()\n\t{\n\t\tif ( ! $this->Auth->user() )\n\t\t{\n\t\t\t$this->redirect(array('action' => 'resumen'));\n\t\t}\n\t\t/**\n\t\t * Comprueba si existe una compra en proceso\n\t\t */\n\t\tif ( ! ( $id = $this->Session->read('Flujo.Carro.compra_id') ) || ! $this->Compra->pendiente($id) )\n\t\t{\n\t\t\t$this->redirect(array('action' => 'resumen'));\n\t\t}\n\n\t\t/**\n\t\t * Comprueba que el calculo de despacho y resumen de la compra sea el final\n\t\t */\n\t\tif ( ! $this->Session->check('Flujo.Carro.pendiente') || $this->Session->read('Flujo.Carro.pendiente') === true )\n\t\t{\n\t\t\t$this->redirect(array('action' => 'resumen'));\n\t\t}\n\n\t\t$tipopagoselect = '';\n\t\tif ( $this->request->is('post') || $this->request->is('put') )\n\t\t{\n\t\t\t\n\t\t\t\tif($this->request->data['Compra']['tipoPago']==0){\n\t\t\t\t\t$this->Session->setFlash('Seleccione un metodo de pago.', null, array(), 'aviso');\n\t\t\t\t\t$this->redirect(array('action' => 'resumen'));\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}else{ \n\t\t\t\t\t//estado_compra_id\n\t\t\t\t\t$compra['Compra']['tipo_pago_id'] = $this->request->data['Compra']['tipoPago'];\n\t\t\t\t\t$compra['Compra']['comentario'] = $this->request->data['Compra']['comentario'];\n\t\t\t\t\t//pr($compra);\n\t\t\t\t\t//SI ES WEBPAY SE PASA CARRO AL COMPRADOR\n\t\t\t\t\tif($compra['Compra']['tipo_pago_id']==1){\n\t\t\t\t\t\t$this->Compra->id = $id;\n\t\t\t\t\t\tif ( $this->Compra->save($compra) )\n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t// prx($this->request->data);\n\t\t\t\t\t\t\t$this->redirect(array('action' => 'webpay'));\t\t\t\t\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tprx('no');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n \n\t\t\t\t\t//SI ES OTRO MEDIO DE PAGO SE CAMBIA EL TIPO EN LA COMPA Y ENVIAMOS EMAIL A ADMINISTRADOR PARA QUE APRUEBE LA COMPRA\n\t\t\t\t\t$this->Compra->id = $id;\n\t\t\t\t\tif ( $this->Compra->save($compra) )\n\t\t\t\t\t{\n\t\t\t\t\t\t//prx('save ok');\n\t\t\t\t\t\t\t//cambio estado de compra a pendiente de pago\n\t\t\t\t\t\t\t$this->Compra->cambiarEstado($id, 'PENDIENTE_PAGO', 'Pendiente de pago');\n\t\t\t\t\t \n\t\t\t\t\t $usuarioId = $_SESSION['Auth']['Usuario']['id'];\n\t\t\t\t\t\t\t$this->Usuario = ClassRegistry::init('Usuario');\n\t\t\t\t\t\t\t$usuarioDatos = $this->Usuario->find (\n\t\t\t\t\t\t\t\t'all',\n\t\t\t\t\t\t\t\tarray (\n\t\t\t\t\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t\t\t\t\t'Usuario.id' => $usuarioId\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'contain' => array(\n\t\t\t\t\t\t\t\t\t\t'TipoPago'\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t$usuarioDatos = $usuarioDatos[0];\n\t\t\t\t\t\t\t //pr($usuarioDatos);\n\t\t\t\t\t\t\t $TipoPagos = array();\n\t\t\t\t\t\t\t $TipoPagos[0] = 'Seleccione medio de pago';\n\t\t\t\t\t\t\t if(! empty($usuarioDatos['TipoPago'])){\n\t\t\t\t\t\t\t\t foreach ($usuarioDatos['TipoPago'] as $tipoPag) {\n\t\t\t\t\t\t\t\t \t$TipoPagos[$tipoPag['id']] = $tipoPag['nombre'];\n\t\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t }else{\t\t \t\n\t\t\t\t\t $TipoPagos['1'] = 'Webpay';\n\t\t\t\t\t $TipoPagos['3'] = 'Transferencia'; \n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t $tipopagoselect = $compra['Compra']['tipo_pago_id'];\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t*/\n\t\t}\n\t\t/**\n\t\t * Vacia el carro de compras\n\t\t */\n\t\t$this->Carro->vaciar();\n\t\t$this->Session->delete('Flujo.Carro');\n\t\t/**\n\t\t * Datos de compra\n\t\t */\n\t\t$compra\t\t\t= $this->Compra->find('first', array(\n\t\t\t'conditions'\t\t=> array('Compra.id' => $id),\n\t\t\t'contain'\t\t\t=> array(\n\t\t\t\t'Usuario',\n\t\t\t\t'DetalleCompra'\t\t=> array('Producto'),\n\t\t\t\t'EstadoCompra',\n\t\t\t\t'Sucursal' => array('Encargado'),\n\t\t\t\t'Direccion'\t\t\t=> array('Comuna' => array('Region')),\n\t\t\t)\n\t\t));\n\t\t//prx($compra); \n\t\t/**\n\t\t * Camino de migas\n\t\t */\n\t\tBreadcrumbComponent::add('Carro de compras', array('controller' => 'productos', 'action' => 'carro'));\n\t\tBreadcrumbComponent::add('Compra exitosa');\n\t\t$this->set('title', 'Compra exitosa');\n\t\t$tipo_header = 'finalizada';\n\t\t$this->set(compact('compra','id','tipo_header','usuarioDatos', 'TipoPagos','tipopagoselect'));\n\t\t$this->set('CFG_PageTitle', 'Compra exitosa');\n\t\t$this->set('CFG_PageDescription', 'Compra exitosa');\n\t}", "title": "" }, { "docid": "b29a41813adfebf840b38abb3567b5b7", "score": "0.5646315", "text": "public function ajouter() {\n $this->loadView('ajouter', 'content');\n $arr = $this->em->selectAll('compteur');\n $optionsCompteur = '';\n foreach ($arr as $entity) {\n $optionsCompteur .= '<option value=\"' . $entity->getId() . '\">' . $entity->getNumero() . '</option>';\n }\n $this->loadHtml($optionsCompteur, 'compteurs');\n if(isset($this->post->quantiteChiffre)){\n $consommation = new Consommation($this->post);\n $tarif = $this->em->selectAll('tarif')[0];\n $consommation->setIdTarif($tarif->getId());\n $this->em->save($consommation);\n // Incrémenter pointeur compteur\n $compteur = $this->em->selectById('compteur', $this->post->idCompteur);\n $compteur->setPointeur($compteur->getPointeur() + $this->post->quantiteChiffre);\n $this->em->update($compteur);\n $this->handleStatus('Consommation ajoutée avec succès.');\n }\n }", "title": "" }, { "docid": "024007e68988e6fa0e75cdba013a5af6", "score": "0.56440794", "text": "public function clienteFantasma($cod_cliente_unico,$nit){\n $cliente_model = new Cliente();\n $util = new Utilitarios();\n $valores['vent_cli_id']=NULL;\n $valores['vent_cli_cod_unico']=$cod_cliente_unico;\n $valores['vent_cli_codigo_cliente']=$cliente_model->getCodigoCliente('C', 6);\n $valores['vent_cli_fch_nac'] = \"\";\n $valores['vent_cli_nombre']=\"Sin Nombre\";\n $valores['vent_cli_apellido_pat']=\"\";\n $valores['vent_cli_apellido_mat']=\"\";\n $valores['vent_cli_empresa_trab']=\"\";\n $valores['vent_cli_direccion']=\"\";\n $valores['vent_cli_persona_cont']=\"\";\n $valores['vent_cli_cargo']=\"\";\n $valores['vent_cli_departamento_cargo']=\"\";\n $valores['vent_cli_telefono']=\"\";\n $valores['vent_cli_interno']=\"\";\n $valores['vent_cli_celular']=\"\";\n $valores['vent_cli_correo']=\"\";\n $valores['vent_cli_nit']=$nit;\n $valores['vent_cli_razon_fact']=\"\";\n $valores['vent_cli_usr_alta']=$_SESSION['login'];\n //print_r($valores);\n $this->mysql->insert('vent_cliente', $valores);\n }", "title": "" }, { "docid": "0c6932a699fc51dabf75ff914854fd16", "score": "0.5643916", "text": "function Cuerpo($acceso,$where,$deuda,$desde,$hasta)\n\t{\n\t\t$acceso->objeto->ejecutarSql(\"select id_persona from vista_orden order By id_orden desc LIMIT 1 offset 0\");\n\t\tif($row=row($acceso))\n\t\t{\n\t\t\t$tecnico=trim($row[\"id_persona\"]);\n\t\t}\n\t\telse{\n\t\t\t$acceso->objeto->ejecutarSql(\"select *from vista_tecnico LIMIT 1 offset 0\");\n\t\t\tif($row=row($acceso))\n\t\t\t{\n\t\t\t\t$tecnico=trim($row[\"id_persona\"]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t$acceso->objeto->ejecutarSql(\"SELECT *FROM parametros where id_franq='1' and id_param='2'\");\n\t\t\n\t\tif($row=row($acceso)){\n\t\t\t$por_iva=trim($row['valor_param']);\n\t\t}\n\t\n\t\n\t\t\n\t\t\n\t\t$dato=lectura($acceso,$where);\n\t\n\t\t\n\t\t$cont=1;\n\t\t\n\t\t\n\t\t$salto=0;\n\t\t$f_act=date(\"d/m/Y\");\n\t\t$h_act=date(\"h:i:s A\");\n\t\t$nombre_zona=utf8_decode(trim($dato[0][\"nombre_zona\"]));\n\t\t$nombre_sector=utf8_decode(trim($dato[0][\"nombre_sector\"]));\n\t\t\n\t\t$this->SetFont('Arial','B',8);\n\t\t\t$valor=explode(\"-\",trim($desde));\n\t\t\t$des = formato_mes_com1($valor[1]). \" $valor[0] \";\n\t\t\t\n\t\t\t$valor=explode(\"-\",trim($hasta));\n\t\t\t$has = formato_mes_com1($valor[1]). \" $valor[0] \";\n\t\t\t$fecha_d=\"deuda desde $des hasta $has\";\n\t\t\t$this->cabecera($nombre_zona,$nombre_sector,$fecha_d);\n\t\t\t\n\t\t\t/*\n\t\t\t$this->SetX(10);\n\t\t\t$this->Cell(50,4,\"ZONA: $nombre_zona\",\"0\",0,\"L\");\n\t\t\t$this->Cell(50,4,\"SECTOR:: $nombre_sector\",\"0\",0,\"L\");\n\t\t\t$this->Cell(95,4,\"Deuda desde $des hasta $has\",\"0\",0,\"R\");\n\t\t\t*/\n\t\t\t\n\t\t\t\n\t\t//$this->Ln();\t\t\n\n\t\t\t$w=$this->TituloCampos();\n\t\t\t$cable=conexion();\n\t\t\t\n\t\tfor($i=0;$i<count($dato);$i++){\n\t\t\t\n\t\t\t\n\t\t\t$fill=0;\n\t\t\t$this->SetTextColor(0);\n\t\t\t$this->SetFillColor(249,249,249);\n\t\t\t\n\t\t\t$id_contrato=trim($dato[$i][\"id_contrato\"]);\n\t\t\t\n\t\t\t$nombre_sector1=utf8_decode(trim($dato[$i][\"nombre_sector\"]));\n\t\t\tif($nombre_sector!=$nombre_sector1){\n\t\t\t//\techo \":$nombre_sector!=$nombre_sector1:\";\n\t\t\t\t$this->AddPage();\n\t\t\t\t$this->cabecera($nombre_zona,$nombre_sector1,$fecha_d);\n\t\t\t\t$w=$this->TituloCampos();\n\t\t\t\t$salto=0;\n\t\t\t}\n\t\t\t\t \n\t\t\t$cable->objeto->ejecutarSql(\" SELECT servicios.nombre_servicio,servicios.id_serv,fecha_inst FROM contrato_servicio_deuda,servicios WHERE contrato_servicio_deuda.id_serv=servicios.id_serv and contrato_servicio_deuda.id_contrato = '$id_contrato' AND contrato_servicio_deuda.status_con_ser = 'DEUDA'::bpchar and fecha_inst between '$desde' and '$hasta' order by fecha_inst\");\n\t\t\t//$cable->objeto->ejecutarSql(\" SELECT servicios.nombre_servicio,servicios.id_serv,fecha_inst FROM contrato_servicio,servicios where id_contrato='$id_contrato'\");\n\t\t\t\n\t\t\t\t$nombre_servicio='';\n\t\t\t\twhile($row1=row($cable)){\n\t\t\t\t\t$id_serv=trim($row1[\"id_serv\"]);\n\t\t\t\t\t\n\t\t\t\t\tif($id_serv=='SER00001' || $id_serv=='BM00008' || $id_serv=='BM00009'){\n\t\t\t\t\t\t$fecha_inst=trim($row1[\"fecha_inst\"]);\n\t\t\t\t\t\t$me=substr($fecha_inst , 5,2);\n\t\t\t\t\t\t$mes=formato_m($me);\n\t\t\t\t\t\t$nombre_servicio=$nombre_servicio.$mes.\"; \";\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t$nombre_servicio=$nombre_servicio.trim($row1[\"nombre_servicio\"]).\"; \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t//\tordenDeCorte($acceso,$id_contrato,$tecnico);\n\t\t\t\n\t\t\t$this->SetX(10);\n\t\t\t\n\t\t\t$total_p=trim($dato[$i][\"deuda\"]);\n\t\t\t$porc=($por_iva/100)+1;\n\t\t\t$base=$total_p/$porc;\n\t\t\t$iva=($base*$por_iva)/100;\n\t\t\t\n\t\t\t$this->SetFont('Arial','',8);\n\t\t\t$this->SetX(10);\n\t\t\t$this->Cell($w[0],4,$cont,\"0\",0,\"C\",$fill);\n\t\t\t\n\t\t\t$this->Cell($w[1],4,utf8_decode(trim($dato[$i][\"nro_contrato\"])),\"0\",0,\"J\",$fill);\n\t\t\t$this->Cell($w[2],4,utf8_decode(trim($dato[$i][\"cedula\"])),\"0\",0,\"J\",$fill);\n\t\t\t$this->Cell($w[3],4,utf8_decode(trim($dato[$i][\"nombre\"]).\" \".trim($dato[$i][\"apellido\"])),\"0\",0,\"J\",$fill);\n\t\t\t$this->Cell($w[4],4,utf8_decode(trim($dato[$i][\"etiqueta\"])),\"0\",0,\"J\",$fill);\n\t\t\t$this->Cell($w[5],4,utf8_decode(trim($dato[$i][\"telefono\"])),\"0\",0,\"J\",$fill);\n\t\t\t$this->Cell($w[6],4,number_format($iva+0, 2, ',', '.'),\"0\",0,\"R\",$fill);\n\t\t\t$this->Cell($w[7],4,number_format($base+0, 2, ',', '.'),\"0\",0,\"R\",$fill);\n\t\t\t$this->Cell($w[8],4,number_format(trim($dato[$i][\"deuda\"])+0, 2, ',', '.'),\"0\",0,\"R\",$fill);\n\t\t\t$this->Cell($w[9],4,'',\"0\",0,\"R\",$fill);\n\t\t\t$nombre_sector=utf8_decode(trim($dato[$i][\"nombre_sector\"]));\n\t\t\n\t\t\t/*\n\t\t\t$this->Ln();\n\t\t\t$this->SetFont('Arial','B',8);\n\t\t\t$this->Cell(12,4,_(\"zona\").\":\",\"TLB\",0,\"J\",$fill);\n\t\t\t$this->SetFont('Arial','',8);\n\t\t\t$this->Cell(40,4,utf8_decode(trim($dato[$i][\"nombre_zona\"])),\"TBR\",0,\"J\",$fill);\n\t\t\t$this->SetFont('Arial','B',8);\n\t\t\t$this->Cell(14,4,_(\"sector\").\":\",\"TLB\",0,\"J\",$fill);\n\t\t\t$this->SetFont('Arial','',8);\n\t\t\t$this->Cell(50,4,utf8_decode(trim($dato[$i][\"nombre_sector\"])),\"TBR\",0,\"J\",$fill);\n\t\t\t$this->SetFont('Arial','B',8);\n\t\t\t$this->Cell(12,4,_(\"calle\").\":\",\"TLB\",0,\"J\",$fill);\n\t\t\t$this->SetFont('Arial','',8);\n\t\t\t$this->Cell(65,4,utf8_decode(trim($dato[$i][\"nombre_calle\"])),\"TBR\",0,\"J\",$fill);\n\t\t\t\n\t\t\t\n\t\t\t$this->Ln();\n\t\t\t$this->SetFont('Arial','B',8);\n\t\t\t$this->Cell(17,4,_(\"nro casa\").\":\",\"TLB\",0,\"J\",$fill);\n\t\t\t$this->SetFont('Arial','',8);\n\t\t\t$this->Cell(15,4,utf8_decode(trim($dato[$i][\"numero_casa\"])),\"TBR\",0,\"J\",$fill);\n\t\t\n\t\t\t$this->SetFont('Arial','B',8);\n\t\t\t$this->Cell(10,4,_(\"edif\").\":\",\"TLB\",0,\"J\",$fill);\n\t\t\t$this->SetFont('Arial','',8);\n\t\t\t$this->Cell(40,4,utf8_decode(trim($dato[$i][\"edificio\"])),\"TBR\",0,\"J\",$fill);\n\t\t\n\t\t\t$this->SetFont('Arial','B',8);\n\t\t\t$this->Cell(10,4,_(\"piso\").\":\",\"TLB\",0,\"J\",$fill);\n\t\t\t$this->SetFont('Arial','',8);\n\t\t\t$this->Cell(7,4,utf8_decode(trim($dato[$i][\"numero_piso\"])),\"TBR\",0,\"J\",$fill);\n\t\t\t\n\t\t\t\n\t\t\t$this->SetFont('Arial','',9);\n\t\t\t$this->Cell(41,4,_(\"postel\").\": \".utf8_decode(trim($dato[$i][\"postel\"])),\"TBR\",0,\"J\",$fill);\n\t\t\t\n\t\t\t$this->SetFont('Arial','',9);\n\t\t\t$this->Cell(30,4,_(\"taps\").\": \".utf8_decode(trim($dato[$i][\"taps\"])),\"TBR\",0,\"J\",$fill);\n\t\t\t\n\t\t\t$this->SetFont('Arial','',9);\n\t\t\t$this->Cell(23,4,_(\"pto\").\": \".utf8_decode(trim($dato[$i][\"pto\"])),\"TBR\",0,\"J\",$fill);\n\t\t\t\n\t\t\t*/\n\t\t\t$this->Ln();\n\t\t\n\t\t\t$this->SetFont('Arial','B',8);\n\t\t\t$this->Cell(8,4,strtoupper(_(\"ref\")).\":\",\"0\",0,\"J\",$fill);\n\t\t\t$this->SetFont('Arial','',8);\n\t\t\t$this->Cell(105,4,utf8_decode(trim($dato[$i][\"direc_adicional\"])),\"0\",0,\"J\",$fill);\n\t\t\t$this->Cell(15,4,strtoupper(_(\"pto\")).\": \".utf8_decode(trim($dato[$i][\"pto\"])),\"0\",0,\"J\",$fill);\n\t\t\t$this->Cell(65,4,strtoupper(_(\"cargo\")).\": $nombre_servicio\",\"0\",0,\"J\",$fill);\n\t\t\t//$this->MultiCell(81,4,utf8_decode(trim($dato[$i][\"direc_adicional\"])),'TR','J');\n\t\t\t$this->SetFont('Arial','',2);\n\t\t\t$this->Ln();\n\t\t\t$this->SetX(114);\n\t\t//\t$this->Cell(89,3,'',\"LR\",0,\"C\",$fill);\n\t\t\t//$this->Cell(array_sum($w),3,'',\"RL\",0,\"C\",$fill);\n\t\t\t\n\t\t\t$this->SetFont('Arial','',8);\n\t\t\t//$this->Ln(1);\n\t\t\t$this->SetX(10);\n\t\t\t$this->Cell(180,2,'- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ',\"0\",0,\"J\",$fill);\n\t\t\t//$this->Ln();\n\t\t\t\n\t\t\t/*\n\t\t\t$this->SetLineWidth(.4);\n\t\t\t$this->SetX(10);\n\t\t\t$this->Cell(array_sum($w),1,'','T');\n\t\t\t$this->SetLineWidth(.2);\n\t\t\t*/\n\t\t\t\n\t\t\t$this->Ln(2);\n\t\t\t$fill=!$fill;\n\t\t\t\n\t\t\t$salto++;\n\t\t\tif($salto==25 && $salto!=count($dato)){\n\t\t\t\t$this->AddPage();\n\t\t\t\t$this->cabecera($nombre_zona,$nombre_sector,$fecha_d);\n\t\t\t\t$w=$this->TituloCampos();\n\t\t\t\t$salto=0;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t$cont++;\n\t\t}\n\t\t$this->SetX(10);\n\t\t//$this->Cell(array_sum($w),5,'','T');\n\t\t$cad.=\"\\\\pard\\\\par\n}\n\";\n\t\treturn $cad;\n\t}", "title": "" }, { "docid": "8c8151677631b8355ce627882fb6109c", "score": "0.5638031", "text": "abstract public function AsignarCaso();", "title": "" }, { "docid": "d44335eef6321d7e177b4555ba919cb3", "score": "0.56294715", "text": "public function resumen()\n\t{\n\t\t/**\n\t\t * Comprueba que el usuario este logeado\n\t\t */\n\t\tif ( ! $this->Auth->user() )\n\t\t{\n\t\t\t$this->Session->write('Flujo.loginPending', array('controller' => 'direcciones', 'action' => 'add'));\n\t\t\t$this->redirect(array('controller' => 'usuarios', 'action' => 'login'));\n\t\t}\n\t\t/**\n\t\t * Comprueba que existan productos en el carro\n\t\t */\n\t\t$productos\t\t\t= $this->Carro->productos('catalogo');\n\t\t$carro\t\t\t\t= $this->Carro->estado();\n\t\tif ( ! $carro['Cantidad'] )\n\t\t{\n\t\t\t$this->redirect('/');\n\t\t}\n\t\t/**\n\t\t * Comprueba que el usuario haya seleccionado una direccion\n\t\t */\n\t\tif ( $this->Session->read('Flujo.Carro.retiro_tienda') == 0 && ! $direccion_id = $this->Session->read('Flujo.Carro.direccion_id') )\n\t\t{\n\t\t\t$this->redirect(array('controller' => 'direcciones', 'action' => 'add'));\n\t\t}\n\t\tif($this->Session->read('Flujo.Carro.retiro_tienda') == 0){\n\t\t\t$this->Compra->Direccion->id\t\t= $direccion_id;\n\t\t\tif ( ! $this->Compra->Direccion->exists() )\n\t\t\t{\n\t\t\t\t$this->redirect(array('controller' => 'direcciones', 'action' => 'add'));\n\t\t\t}\n\t\t}else{\n\t\t\tif(empty($direccion_id)){\n\t\t\t\t$direccion_id = '';\n\t\t\t}\n\t\t}\n\t\t/**\n\t\t * Comprueba si existe una compra en proceso\n\t\t */\n\t\tif ( ( $id = $this->Session->read('Flujo.Carro.compra_id') ) && $this->Compra->pendiente($id) )\n\t\t{\n\t\t\t$this->Compra->id\t\t\t= $id;\n\t\t}\n\t\t/**\n\t\t * Guarda la compra en estado pendiente\n\t\t */\n\t\t$retiro_tienda = $this->Session->read('Flujo.Carro.retiro_tienda');\n\t\t$tienda_retiro = $this->Session->read('Flujo.Carro.tienda_retiro');\n\t\t$observacion_retiro_tienda = $this->Session->read('Flujo.Carro.observacion_retiro_tienda');\n\t\t$compra\t= $this->Compra->registrarCarro($productos, $direccion_id, $carro['Peso'], false, false,$retiro_tienda, $tienda_retiro,$observacion_retiro_tienda );\n\t\t$this->Session->write('Flujo.Carro.compra_id', $compra['Compra']['id']);\n\t\t\n\t\t/**\n\t\t * Si existe error al guardar la compra, devuelve al usuario a la pagina de dirección\n\t\t * para reintentar la operacion\n\t\t */\n\t\tif ( ! $compra )\n\t\t{\n\t\t\t$this->redirect(array('controller' => 'direcciones', 'action' => 'add'));\n\t\t}\n\t\t$this->Session->write('Flujo.Carro.pendiente', false);\n\t\t/**\n\t\t * Camino de migas\n\t\t */\n\t\tBreadcrumbComponent::add('Carro de compras', array('controller' => 'productos', 'action' => 'carro'));\n\t\tBreadcrumbComponent::add('Despacho', array('controller' => 'direcciones', 'action' => 'add'));\n\t\tBreadcrumbComponent::add('Resumen de compra');\n\t\t$this->set('title', 'Resumen de compra');\n\t\t$tipo_header = 'resumen';\n\t\t $TipoPagos = array();\n\t\t $TipoPagos[0] = 'Seleccione medio de pago';\n\t\t if(! empty($usuarioDatos['TipoPago'])){\n\t\t\t foreach ($usuarioDatos['TipoPago'] as $tipoPag) {\n\t\t\t \t$TipoPagos[$tipoPag['id']] = $tipoPag['nombre'];\n\t\t\t } \n\t\t }else{\t\t \t\n $TipoPagos['1'] = 'Webpay';\n $TipoPagos['3'] = 'Transferencia'; \n\t\t }\n\t\t$this->set(compact('compra', 'tipo_header', 'TipoPagos'));\n\t}", "title": "" }, { "docid": "7bf946f1655c499fec3f2442dcb3efe0", "score": "0.5625896", "text": "public function RegFactLibroDiario($NumFact,$CuentaDestino,$CuentaIngresos,$TablaCuentaIngreso,$CuentaIVAGen, $TablaIVAGen, $CuentaCostoMercancia,$CuentaInventarios,$AjustaInventario,$RegCREE){\r\n\t\t\r\n\t\t\t\t\r\n\t\t$DatosFactura=$this->DevuelveValores(\"facturas\",\"idFacturas\",$NumFact);\r\n\t\t$fecha=\t$DatosFactura[\"Fecha\"];\t\r\n\t\t$idFact=$DatosFactura[\"idFacturas\"];\r\n\t\t$TotalVenta=$DatosFactura[\"Total\"];\r\n\t\t$Subtotal=$DatosFactura[\"Subtotal\"];\r\n\t\t$Impuestos=$DatosFactura[\"IVA\"];\r\n\t\t$TotalCostosM=$DatosFactura[\"TotalCostos\"];\r\n\t\t\r\n\t\t\r\n\t\t$DatosCliente=$this->DevuelveValores(\"clientes\",\"idClientes\",$DatosFactura['Clientes_idClientes']);\r\n\t\t$idCliente=$DatosFactura['Clientes_idClientes'];\r\n\t\t$NIT=$DatosCliente[\"Num_Identificacion\"];\r\n\t\t$RazonSocialC=$DatosCliente[\"RazonSocial\"];\r\n\t\t\r\n\t\t$tab=\"librodiario\";\r\n\t\t$NumRegistros=24;\r\n\t\t\t\t\r\n\t\tif($DatosFactura['FormaPago']==\"Contado\"){\r\n\t\t\t$CuentaPUC=$CuentaDestino;\r\n\t\t\t$DatosCuenta=$this->DevuelveValores(\"cuentasfrecuentes\",\"CuentaPUC\",$CuentaPUC);\r\n\t\t\t\r\n\t\t\t$NombreCuenta=$DatosCuenta[\"Nombre\"];\r\n\t\t}else{\t\r\n\t\t\t$CuentaPUC=\"130505$idCliente\";\r\n\t\t\t$NombreCuenta=\"Clientes Nacionales $RazonSocialC NIT $NIT\";\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t$Columnas[0]=\"Fecha\";\t\t\t\t\t$Valores[0]=$fecha;\r\n\t\t$Columnas[1]=\"Tipo_Documento_Intero\";\t$Valores[1]=\"FACTURA\";\r\n\t\t$Columnas[2]=\"Num_Documento_Interno\";\t$Valores[2]=$idFact;\r\n\t\t$Columnas[3]=\"Tercero_Tipo_Documento\";\t$Valores[3]=$DatosCliente['Tipo_Documento'];\r\n\t\t$Columnas[4]=\"Tercero_Identificacion\";\t$Valores[4]=$NIT;\r\n\t\t$Columnas[5]=\"Tercero_DV\";\t\t\t\t$Valores[5]=$DatosCliente['DV'];\r\n\t\t$Columnas[6]=\"Tercero_Primer_Apellido\";\t$Valores[6]=$DatosCliente['Primer_Apellido'];\r\n\t\t$Columnas[7]=\"Tercero_Segundo_Apellido\";$Valores[7]=$DatosCliente['Segundo_Apellido'];\r\n\t\t$Columnas[8]=\"Tercero_Primer_Nombre\";\t$Valores[8]=$DatosCliente['Primer_Nombre'];\r\n\t\t$Columnas[9]=\"Tercero_Otros_Nombres\";\t$Valores[9]=$DatosCliente['Otros_Nombres'];\r\n\t\t$Columnas[10]=\"Tercero_Razon_Social\";\t$Valores[10]=$RazonSocialC;\r\n\t\t$Columnas[11]=\"Tercero_Direccion\";\t\t$Valores[11]=$DatosCliente['Direccion'];\r\n\t\t$Columnas[12]=\"Tercero_Cod_Dpto\";\t\t$Valores[12]=$DatosCliente['Cod_Dpto'];\r\n\t\t$Columnas[13]=\"Tercero_Cod_Mcipio\";\t\t$Valores[13]=$DatosCliente['Cod_Mcipio'];\r\n\t\t$Columnas[14]=\"Tercero_Pais_Domicilio\"; $Valores[14]=$DatosCliente['Pais_Domicilio'];\r\n\t\t\r\n\t\t$Columnas[15]=\"CuentaPUC\";\t\t\t\t$Valores[15]=$CuentaPUC;\r\n\t\t$Columnas[16]=\"NombreCuenta\";\t\t\t$Valores[16]=$NombreCuenta;\r\n\t\t$Columnas[17]=\"Detalle\";\t\t\t\t$Valores[17]=\"ventas\";\r\n\t\t$Columnas[18]=\"Debito\";\t\t\t\t\t$Valores[18]=$TotalVenta;\r\n\t\t$Columnas[19]=\"Credito\";\t\t\t\t$Valores[19]=\"0\";\r\n\t\t$Columnas[20]=\"Neto\";\t\t\t\t\t$Valores[20]=$Valores[18];\r\n\t\t$Columnas[21]=\"Mayor\";\t\t\t\t\t$Valores[21]=\"NO\";\r\n\t\t$Columnas[22]=\"Esp\";\t\t\t\t\t$Valores[22]=\"NO\";\r\n\t\t$Columnas[23]=\"Concepto\";\t\t\t\t$Valores[23]=\"Ventas Por Atn Admin\";\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t$this->InsertarRegistro($tab,$NumRegistros,$Columnas,$Valores);\r\n\t\t\r\n\t\t\r\n\t\t///////////////////////Registramos ingresos\r\n\t\t\r\n\t\t$CuentaPUC=$CuentaIngresos; //4135 comercio al por menor y mayor\r\n\t\t\r\n\t\t$DatosCuenta=$this->DevuelveValores($TablaCuentaIngreso,\"idPUC\",$CuentaPUC);\r\n\t\t$NombreCuenta=$DatosCuenta[\"Nombre\"];\r\n\t\t\r\n\t\t$Valores[15]=$CuentaPUC;\r\n\t\t$Valores[16]=$NombreCuenta;\r\n\t\t$Valores[18]=\"0\";\r\n\t\t$Valores[19]=$Subtotal; \t\t\t//Credito se escribe el total de la venta menos los impuestos\r\n\t\t$Valores[20]=$Valores[19]*(-1); \t\t\t\t\t\t\t\t\t\t\t//Credito se escribe el total de la venta menos los impuestos\r\n\t\t\r\n\t\t$this->InsertarRegistro($tab,$NumRegistros,$Columnas,$Valores);\r\n\t\t\r\n\t\t///////////////////////Registramos IVA Generado si aplica\r\n\t\t\r\n\t\tif($Impuestos<>0){\r\n\t\t\r\n\t\t\t$CuentaPUC=$CuentaIVAGen; //2408 IVA Generado\r\n\t\t\t\r\n\t\t\t$DatosCuenta=$this->DevuelveValores($TablaIVAGen,\"idPUC\",$CuentaPUC);\r\n\t\t\t\r\n\t\t\t$NombreCuenta=$DatosCuenta[\"Nombre\"];\r\n\t\t\t\r\n\t\t\t$Valores[15]=$CuentaPUC;\r\n\t\t\t$Valores[16]=$NombreCuenta;\r\n\t\t\t$Valores[18]=\"0\";\r\n\t\t\t$Valores[19]=round($Impuestos); \t\t\t//Credito se escribe el total de la venta\r\n\t\t\t$Valores[20]=$Valores[19]*(-1); \t//para la sumatoria contemplar el balance\r\n\t\t\t\r\n\t\t\t$this->InsertarRegistro($tab,$NumRegistros,$Columnas,$Valores);\r\n\t\t\r\n\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t///////////////////////////////////////////////////////////////\r\n\t\t////////////Registramos Autoretencion\r\n\t\tif($RegCREE==\"SI\"){\r\n\t\t\t\r\n\t\t\t$CREE=$this->DevuelveValores(\"impret\",\"Nombre\",\"CREE\");\r\n\t\t\t\r\n\t\t\t$ValorCREE=round($Subtotal*$CREE['Valor']);\r\n\t\t\t\r\n\t\t\t$CuentaPUC=135595; // Autorretenciones CREE\r\n\t\t\t\r\n\t\t\t$DatosCuenta=$this->DevuelveValores(\"subcuentas\",\"PUC\",$CuentaPUC);\r\n\t\t\t$NombreCuenta=$DatosCuenta[\"Nombre\"];\r\n\t\t\t\r\n\t\t\t$Valores[15]=$CuentaPUC;\r\n\t\t\t$Valores[16]=$NombreCuenta;\r\n\t\t\t$Valores[18]=$ValorCREE; //Valor del CREE\r\n\t\t\t$Valores[19]=0; \t\t\t\r\n\t\t\t$Valores[20]=$ValorCREE; \t//para la sumatoria contemplar el balance\r\n\t\t\t\r\n\t\t\t$this->InsertarRegistro($tab,$NumRegistros,$Columnas,$Valores);\r\n\t\t\r\n\t\t///////////////////////////////////////////////////////////////\r\n\t\t////////////contra partida de la Autoretencion\r\n\t\t\r\n\t\t\t$CuentaPUC=23657502; // Cuentas por pagar Autorretenciones CREE\r\n\t\t\t\r\n\t\t\t$DatosCuenta=$this->DevuelveValores(\"subcuentas\",\"PUC\",$CuentaPUC);\r\n\t\t\t$NombreCuenta=$DatosCuenta[\"Nombre\"];\r\n\t\t\t\r\n\t\t\t$Valores[15]=$CuentaPUC;\r\n\t\t\t$Valores[16]=$NombreCuenta;\r\n\t\t\t$Valores[18]=0; //Valor del CREE\r\n\t\t\t$Valores[19]=$ValorCREE; \t\t\t\r\n\t\t\t$Valores[20]=$ValorCREE*(-1); \t//para la sumatoria contemplar el balance\r\n\t\t\t\r\n\t\t\t$this->InsertarRegistro($tab,$NumRegistros,$Columnas,$Valores);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t///////////////////////Ajustamos el inventario\r\n\t\t\t\r\n\t\t\tif($AjustaInventario==\"SI\"){\r\n\t\t\t\t\r\n\t\t\t\t$CuentaPUC=$CuentaCostoMercancia; //6135 costo de mercancia vendida\r\n\t\t\t\t\r\n\t\t\t\t$DatosCuenta=$this->DevuelveValores('cuentas',\"idPUC\",$CuentaPUC);\r\n\t\t\t\t$NombreCuenta=$DatosCuenta[\"Nombre\"];\r\n\t\t\t\t\r\n\t\t\t\t$Valores[15]=$CuentaPUC;\r\n\t\t\t\t$Valores[16]=$NombreCuenta;\r\n\t\t\t\t$Valores[18]=$TotalCostosM;//Debito se escribe el costo de la mercancia vendida\r\n\t\t\t\t$Valores[19]=\"0\"; \t\t\t\r\n\t\t\t\t$Valores[20]=$TotalCostosM; \t//para la sumatoria contemplar el balance\r\n\t\t\t\t\r\n\t\t\t\t$this->InsertarRegistro($tab,$NumRegistros,$Columnas,$Valores);\r\n\t\t\t\t\r\n\t\t\t\t///////////////////////Ajustamos el inventario\r\n\t\t\t\t\r\n\t\t\t\t$CuentaPUC=$CuentaInventarios; //1435 Mercancias no fabricadas por la empresa\r\n\t\t\t\t\r\n\t\t\t\t$DatosCuenta=$this->DevuelveValores('cuentas',\"idPUC\",$CuentaPUC);\r\n\t\t\t\t$NombreCuenta=$DatosCuenta[\"Nombre\"];\r\n\t\t\t\t\r\n\t\t\t\t$Valores[15]=$CuentaPUC;\r\n\t\t\t\t$Valores[16]=$NombreCuenta;\r\n\t\t\t\t$Valores[18]=\"0\";\r\n\t\t\t\t$Valores[19]=$TotalCostosM;//Credito se escribe el costo de la mercancia vendida\t\t\t\r\n\t\t\t\t$Valores[20]=$TotalCostosM*(-1); \t//para la sumatoria contemplar el balance\r\n\t\t\t\t\r\n\t\t\t\t$this->InsertarRegistro($tab,$NumRegistros,$Columnas,$Valores);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t}", "title": "" }, { "docid": "82f396c4aebdf9ffb2742036b82feb0a", "score": "0.5611814", "text": "function Compra_vehiculo($gama)\n {\n if ($gama == \"urbano\") {\n $this->precio_base = 10000;\n } else if ($gama == \"compacto\") {\n $this->precio_base = 20000;\n } else if ($gama == \"berlina\") {\n $this->precio_base = 30000;\n }\n }", "title": "" }, { "docid": "bb3cfb70096c2aa9cf13cf591590f382", "score": "0.5609015", "text": "function setColeccion() {\n $this->query = \"SELECT * FROM DEPARTAMENTO\";\n $this->datos = BDConexionSistema::getInstancia()->query($this->query);\n\n for ($x = 0; $x < $this->datos->num_rows; $x++) {\n $this->addElemento($this->datos->fetch_object(\"Departamento\"));\n }\n }", "title": "" }, { "docid": "55049f3ce1da55b053dd7a513ecca5eb", "score": "0.5589804", "text": "public function ativarProdutoDestaque() {\n \n //verifica qual metodo esta sendo requisitado\n //do formulário (POST ou GET)\n if($_SERVER['REQUEST_METHOD']=='POST'){\n\n $id = $_POST['id'];\n $ativo = $_POST['ativo'];\n \n //Instancia do Produto em Destaque\n $ProdutoDestaque = new ProdutoDestaque(); \n \n //Guardando dos dados do post no objeto\n //do Produto em Destaque\n $ProdutoDestaque->setId($id);\n $ProdutoDestaque->setAtivo($ativo);\n \n //chamada para o metodo de inserir no BD, e estamos passando como parametro o objeto $ProdutoDestaque que tem todos os dados que serão inseridos no BD\n $this->ProdutoDestaqueDAO->updateAtivo($ProdutoDestaque);\n }\n }", "title": "" }, { "docid": "bcc5109402cf8eca752ac3e30e51a1b8", "score": "0.55884886", "text": "public function __construct($primer_nombre,$segundo_nombre,$primer_apellido,$segundo_apellido,$fecha_de_nacimiento)\n {\n $this->primer_nombre = $primer_nombre;\n $this->segundo_nombre = $segundo_nombre;\n $this->primer_apellido = $primer_apellido;\n $this->segundo_apellido = $segundo_apellido;\n $this->fecha_de_nacimiento = $fecha_de_nacimiento;\n\n }", "title": "" }, { "docid": "c38a58e538b4808b24a282da45027eba", "score": "0.55873775", "text": "function generar_margen_reverso($pdf, $tipo, $formato, $estado, $color, $grosor){\r\n\tif($estado == true){\r\n\t\t$pdf->SetDrawColor(intval(formato_rgb_rojo($color)), intval(formato_rgb_verde($color)), intval(formato_rgb_azul($color)));\r\n\t\t$pdf->SetLineWidth(intval($grosor));\r\n\t\tswitch ($tipo) {\r\n\t\t\tcase 1:\r\n\t\t\t\tswitch($formato){\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\t//Lineas horizontales\r\n\t\t\t\t\t\t$pdf->Line(9, 31, 196, 31);\r\n\t\t\t\t\t\t$pdf->Line(9, 263, 196, 263);\r\n\t\t\t\t\t\t//Lineas verticales\r\n\t\t\t\t\t\t$pdf->Line(9, 31, 9, 263);\r\n\t\t\t\t\t\t$pdf->Line(196, 31, 196, 263);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\t//Lineas horizontales\r\n\t\t\t\t\t\t$pdf->Line(9, 31, 196, 31);\r\n\t\t\t\t\t\t$pdf->Line(9, 259, 196, 259);\r\n\t\t\t\t\t\t//Lineas verticales\r\n\t\t\t\t\t\t$pdf->Line(9, 31, 9, 259);\r\n\t\t\t\t\t\t$pdf->Line(196, 31, 196, 259);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\t//Lineas horizontales\r\n\t\t\t\t\t\t$pdf->Line(11, 31, 196, 31);\r\n\t\t\t\t\t\t$pdf->Line(11, 261, 196, 261);\r\n\t\t\t\t\t\t//Lineas verticales\r\n\t\t\t\t\t\t$pdf->Line(11, 31, 11, 261);\r\n\t\t\t\t\t\t$pdf->Line(196, 31, 196, 261);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase 4:\r\n\t\t\t\t\t\t//Lineas horizontales\r\n\t\t\t\t\t\t$pdf->Line(14, 31, 196, 31);\r\n\t\t\t\t\t\t$pdf->Line(14, 262, 196, 262);\r\n\t\t\t\t\t\t//Lineas verticales\r\n\t\t\t\t\t\t$pdf->Line(14, 31, 14, 262);\r\n\t\t\t\t\t\t$pdf->Line(196, 31, 196, 262);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\t\tcase 2:\r\n\t\t\t\t//Lineas horizontales\r\n\t\t\t\t$pdf->Line(7, 20, 196, 20);\r\n\t\t\t\t$pdf->Line(7, 131.5, 196, 131.5);\r\n\t\t\t\t//Lineas verticales\r\n\t\t\t\t$pdf->Line(7, 20, 7, 131.5);\r\n\t\t\t\t$pdf->Line(196, 20, 196, 131.5);\r\n\r\n\t\t\t\t//Lineas horizontales\r\n\t\t\t\t$pdf->Line(7, 158, 196, 158);\r\n\t\t\t\t$pdf->Line(7, 269.5, 196, 269.5);\r\n\t\t\t\t//Lineas verticales\r\n\t\t\t\t$pdf->Line(7, 158, 7, 269.5);\r\n\t\t\t\t$pdf->Line(196, 158, 196, 269.5);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t//FORMA FRANCESA\r\n\t\t\tcase 3:\r\n\t\t\t\t//Lineas horizontales\r\n\t\t\t\t$pdf->Line(8, 20, 119, 20);\r\n\t\t\t\t$pdf->Line(8, 206, 119, 206);\r\n\t\t\t\t//Lineas verticales\r\n\t\t\t\t$pdf->Line(8, 20, 8, 206);\r\n\t\t\t\t$pdf->Line(119, 20, 119, 206);\r\n\r\n\t\t\t\t//Lineas horizontales\r\n\t\t\t\t$pdf->Line(147, 20, 259, 20);\r\n\t\t\t\t$pdf->Line(147, 206, 259, 206);\r\n\t\t\t\t//Lineas verticales\r\n\t\t\t\t$pdf->Line(147, 20, 147, 206);\r\n\t\t\t\t$pdf->Line(259, 20, 259, 206);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\t# code...\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n}", "title": "" }, { "docid": "3f55f9f3bc7185dfded071d9c43c332b", "score": "0.55853444", "text": "final public function crearMarca()\n\t{\n\t\tif($this -> marca == null){\n\t\t\tthrow new Exception('Marca sin datos');\n\t\t}\n\t\tDataAccess::write($this->marca);\n\t\t\n\t}", "title": "" }, { "docid": "fdd3b53818d44aaadfe8ce58203fc18b", "score": "0.5578791", "text": "public function __construct(){ //dos barras bajas\n\n if(func_num_args()==1){ //funcion para saber cuantos arg se le pasan\n $this->matricula=func_get_arg(0);\n }\n\n self::$cont++; //contar coches\n\n //inicializar el id de cada coche\n $this->id=self::$cont; //para atributos estaticos a los que nos vamos a referir ponemos ::\n\n\n\n }", "title": "" }, { "docid": "8b6834dd77759e68493473f4c1ff6d74", "score": "0.55741316", "text": "function inicializar($parametros = array())\n {\n parent::inicializar($parametros);\n if ($this->existe_evento('seleccion')) {\n $this->evento('seleccion')->set_disparo_diferido(TRUE);\n $this->evento('seleccion')->set_alineacion_pre_columnas(TRUE);\n $this->set_manejador_salida('html', 'cuadro_seleccion_diferida_salida_html');\n }\n \n }", "title": "" }, { "docid": "86e2e25e434176753c01b69fb2f18417", "score": "0.5569608", "text": "public function setRegistroComprobante(\t$doctipo,\t\t\t$docnro,\t$desdeComprobante,\n\t \t\t\t\t$hastaComprobante, $fecha,\t\t$total,\n\t \t\t\t\t$imptotconc,\t\t$neto,\t\t$impOpEx,\n\t \t\t\t\t$impTrib,\t\t\t$impIva,\t$fchServDesde,\n\t \t\t\t\t$fchServHasta,\t\t$fchVtoPago,$moneda,\n\t \t\t\t\t$cotizacion,\t\t$tributos,\t$iva,\n\t \t\t\t\t$concepto=1,\t\t$cbtesAsoc){\n \t$regfac[0]['Concepto'] \t= $concepto;\n\t $regfac[0]['DocTipo'] \t= $doctipo;\n\t $regfac[0]['DocNro'] \t= $docnro;\n\t $regfac[0]['CbteDesde'] \t= $desdeComprobante;\n\t $regfac[0]['CbteHasta'] \t= $hastaComprobante;\n\t $regfac[0]['CbteFch'] \t= $fecha;\n\t $regfac[0]['ImpTotal'] \t= $total;\n\t $regfac[0]['ImpTotConc'] \t= $imptotconc;\n\t $regfac[0]['ImpNeto'] \t= $neto;\n\t $regfac[0]['ImpOpEx'] \t= $impOpEx;\n\t $regfac[0]['ImpTrib'] \t= $impTrib;\n\t $regfac[0]['ImpIVA'] \t= $impIva;\n\t $regfac[0]['FchServDesd'] \t= $fchServDesde;\n\t $regfac[0]['FchServHasta']\t= $fchServHasta;\n\t $regfac[0]['FchVtoPago'] \t= $fchVtoPago;\n\t $regfac[0]['MonId'] \t= $moneda;\n\t $regfac[0]['MonCotiz'] \t= $cotizacion;\n\t if (is_array($cbtesAsoc)){\n\t \t$struct = array('Tipo','PtoVta', 'Nro','Cuit','CbteFch');\n\t \t$val=0;\n\t \tforeach ($struct as $key => $value) {\n\t \t\tif(isset($cbtesAsoc[0][$key])){\n\t \t\t\t$val++;\n\t \t\t}\n\t \t}\n\t \tif($val==count($cbtesAsoc[0])){\n\t \t\t$regfac[0]['CbtesAsoc'] \t= $cbtesAsoc;\t \t\t \t\t\n\t \t};\n\t }\n\t if ($impTrib!=0){\n\t if (is_array($tributos)){\n\t\t \t$struct = array('Id','BaseImp', 'Importe', 'Desc', 'Alic');\n\t\t \t$val=0;\n\t\t \tforeach ($struct as $key => $value) {\n\t\t \t\tif(isset($tributos['Tributo'][0][$key])){\n\t\t \t\t\t$val++;\n\t\t \t\t}\n\t\t \t}\n\t\t \tif($val==count($tributos['Tributo'][0])){\n\t\t \t\t$regfac[0]['Tributos'] \t= $tributos;\t \t\t \t\t\n\t\t \t}else{\n\t\t\t\t $this->error['ErrorCode']=2002; // \n\t\t\t\t $this->error['ErrorMessage']= 'No se enviaron los tributos';\n\t\t\t\t return false;\n\t\t \t}; // ver si es obligatorio\n\t\t }\n\t }\t\n\t /** verifico array IVA **/\n\t if (is_array($iva)){\n\t \t$struct = array('Id','BaseImp', 'Importe');\n\t \t$val=0;\n\t \tforeach ($struct as $key => $value) {\n\t \t\tif(isset($iva['AlicIva'][0][$key])){\n\t \t\t\t$val++;\n\t \t\t}\n\t \t}\n\t \tif($val==count($iva['AlicIva'][0])){\n\t \t\t$regfac[0]['Iva'] \t= $iva;\t \t\t \t\t\n\t \t}else{\n\t\t\t $this->error['ErrorCode']=2001; // \n\t\t\t $this->error['ErrorMessage']= 'No se enviaron las alicuotas de IVA';\n\t\t\t return false;\n\t \t}; // ver si es obligatorio\n\t }\n\t //$regfac[0]['Opcionales'] = $opcionales;\n\t //$regfac[0]['Compradores'] = $compradores;\n\t //$regfac[0]['PeriodoAsoc'] = $periodoasoc;\n\t $this->registroComprobante = $regfac;\n\t return true;\n }", "title": "" }, { "docid": "b9eb8c8f6595ff83b701955168e49022", "score": "0.5567172", "text": "public function RegistreAnticipo2($fecha,$CuentaDestino,$idCliente,$Total,$CentroCosto,$Concepto,$idUser,$VectorIngreso){\r\n \r\n $DatosCentro=$this->DevuelveValores(\"centrocosto\",\"ID\",$CentroCosto);\r\n $DatosCliente=$this->DevuelveValores(\"clientes\",\"idClientes\",$idCliente);\r\n $DatosCuentasFrecuentes=$this->DevuelveValores(\"cuentasfrecuentes\",\"CuentaPUC\",$CuentaDestino);\r\n $NIT=$DatosCliente[\"Num_Identificacion\"];\r\n $RazonSocialC=$DatosCliente[\"RazonSocial\"];\r\n \r\n //////Creo el comprobante de Ingreso\r\n \r\n $tab=\"comprobantes_ingreso\";\r\n $NumRegistros=6;\r\n\r\n $Columnas[0]=\"Fecha\";\t\t$Valores[0]=$fecha;\r\n $Columnas[1]=\"Clientes_idClientes\"; $Valores[1]=$idCliente;\r\n $Columnas[2]=\"Valor\"; $Valores[2]=$Total;\r\n $Columnas[3]=\"Tipo\";\t\t$Valores[3]=\"EFECTIVO\";\r\n $Columnas[4]=\"Concepto\";\t\t$Valores[4]=$Concepto;\r\n $Columnas[5]=\"Usuarios_idUsuarios\";\t$Valores[5]=$idUser;\r\n \r\n $this->InsertarRegistro($tab,$NumRegistros,$Columnas,$Valores);\r\n \r\n $idIngreso=$this->ObtenerMAX($tab,\"ID\", 1,\"\");\r\n \r\n ////Registro el anticipo en el libro diario\r\n \r\n $tab=\"librodiario\";\r\n $NumRegistros=26;\r\n $CuentaPUC=$CuentaDestino;\r\n $NombreCuenta=$DatosCuentasFrecuentes[\"Nombre\"];\r\n $CuentaPUCContraPartida=\"238020\".$NIT;\r\n $NombreCuentaContraPartida=\"Anticipos recibidos Cliente: $RazonSocialC NIT $NIT\";\r\n \r\n\r\n\r\n $Columnas[0]=\"Fecha\";\t\t\t$Valores[0]=$fecha;\r\n $Columnas[1]=\"Tipo_Documento_Intero\";\t$Valores[1]=\"ComprobanteIngreso\";\r\n $Columnas[2]=\"Num_Documento_Interno\";\t$Valores[2]=$idIngreso;\r\n $Columnas[3]=\"Tercero_Tipo_Documento\";\t$Valores[3]=$DatosCliente['Tipo_Documento'];\r\n $Columnas[4]=\"Tercero_Identificacion\";\t$Valores[4]=$NIT;\r\n $Columnas[5]=\"Tercero_DV\";\t\t\t$Valores[5]=$DatosCliente['DV'];\r\n $Columnas[6]=\"Tercero_Primer_Apellido\";\t$Valores[6]=$DatosCliente['Primer_Apellido'];\r\n $Columnas[7]=\"Tercero_Segundo_Apellido\"; $Valores[7]=$DatosCliente['Segundo_Apellido'];\r\n $Columnas[8]=\"Tercero_Primer_Nombre\";\t$Valores[8]=$DatosCliente['Primer_Nombre'];\r\n $Columnas[9]=\"Tercero_Otros_Nombres\";\t$Valores[9]=$DatosCliente['Otros_Nombres'];\r\n $Columnas[10]=\"Tercero_Razon_Social\";\t$Valores[10]=$RazonSocialC;\r\n $Columnas[11]=\"Tercero_Direccion\";\t\t$Valores[11]=$DatosCliente['Direccion'];\r\n $Columnas[12]=\"Tercero_Cod_Dpto\";\t\t$Valores[12]=$DatosCliente['Cod_Dpto'];\r\n $Columnas[13]=\"Tercero_Cod_Mcipio\";\t\t$Valores[13]=$DatosCliente['Cod_Mcipio'];\r\n $Columnas[14]=\"Tercero_Pais_Domicilio\"; $Valores[14]=$DatosCliente['Pais_Domicilio'];\r\n $Columnas[15]=\"CuentaPUC\";\t\t\t$Valores[15]=$CuentaPUC;\r\n $Columnas[16]=\"NombreCuenta\";\t\t$Valores[16]=$NombreCuenta;\r\n $Columnas[17]=\"Detalle\";\t\t\t$Valores[17]=\"Ingresos\";\r\n $Columnas[18]=\"Debito\";\t\t\t$Valores[18]=$Total;\r\n $Columnas[19]=\"Credito\";\t\t\t$Valores[19]=0;\r\n $Columnas[20]=\"Neto\";\t\t\t$Valores[20]=$Valores[18];\r\n $Columnas[21]=\"Mayor\";\t\t\t$Valores[21]=\"NO\";\r\n $Columnas[22]=\"Esp\";\t\t\t$Valores[22]=\"NO\";\r\n $Columnas[23]=\"Concepto\";\t\t\t$Valores[23]=$Concepto;\r\n $Columnas[24]=\"idCentroCosto\";\t\t$Valores[24]=$CentroCosto;\r\n $Columnas[25]=\"idEmpresa\";\t\t\t$Valores[25]=$DatosCentro[\"EmpresaPro\"];\r\n\r\n $this->InsertarRegistro($tab,$NumRegistros,$Columnas,$Valores);\r\n\r\n\r\n ///////////////////////Registramos contra partida del anticipo\r\n\r\n $CuentaPUC=$CuentaPUCContraPartida; \r\n $NombreCuenta=$NombreCuentaContraPartida;\r\n\r\n $Valores[15]=$CuentaPUC;\r\n $Valores[16]=$NombreCuenta;\r\n $Valores[18]=0;\r\n $Valores[19]=$Total; \t\t\t//Credito se escribe el total de la venta menos los impuestos\r\n $Valores[20]=$Valores[19]*(-1); \t\t\t\t\t\t\t\t\t\t\t//Credito se escribe el total de la venta menos los impuestos\r\n\r\n $this->InsertarRegistro($tab,$NumRegistros,$Columnas,$Valores);\r\n\t\t\r\n return($idIngreso);\r\n\t}", "title": "" }, { "docid": "391bc79c477fe2b12d336700b0c4c430", "score": "0.5566712", "text": "function generar_margen($pdf, $tipo, $formato, $estado, $color, $grosor){\r\n\tif($estado == true){\r\n\t\t$pdf->SetDrawColor(intval(formato_rgb_rojo($color)), intval(formato_rgb_verde($color)), intval(formato_rgb_azul($color)));\r\n\t\t$pdf->SetLineWidth(intval($grosor));\r\n\t\tswitch ($tipo) {\r\n\t\t\tcase 1:\r\n\t\t\t\tswitch($formato){\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\t//Lineas horizontales\r\n\t\t\t\t\t\t$pdf->Line(20, 31, 207, 31);\r\n\t\t\t\t\t\t$pdf->Line(20, 263, 207, 263);\r\n\t\t\t\t\t\t//Lineas verticales\r\n\t\t\t\t\t\t$pdf->Line(20, 31, 20, 263);\r\n\t\t\t\t\t\t$pdf->Line(207, 31, 207, 263);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\t//Lineas horizontales\r\n\t\t\t\t\t\t$pdf->Line(20, 31, 207, 31);\r\n\t\t\t\t\t\t$pdf->Line(20, 259, 207, 259);\r\n\t\t\t\t\t\t//Lineas verticales\r\n\t\t\t\t\t\t$pdf->Line(20, 31, 20, 259);\r\n\t\t\t\t\t\t$pdf->Line(207, 31, 207, 259);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\t//Lineas horizontales\r\n\t\t\t\t\t\t$pdf->Line(20, 31, 205, 31);\r\n\t\t\t\t\t\t$pdf->Line(20, 261, 205, 261);\r\n\t\t\t\t\t\t//Lineas verticales\r\n\t\t\t\t\t\t$pdf->Line(20, 31, 20, 261);\r\n\t\t\t\t\t\t$pdf->Line(205, 31, 205, 261);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase 4:\r\n\t\t\t\t\t\t//Lineas horizontales\r\n\t\t\t\t\t\t$pdf->Line(20, 31, 202, 31);\r\n\t\t\t\t\t\t$pdf->Line(20, 262, 202, 262);\r\n\t\t\t\t\t\t//Lineas verticales\r\n\t\t\t\t\t\t$pdf->Line(20, 31, 20, 262);\r\n\t\t\t\t\t\t$pdf->Line(202, 31, 202, 262);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\t//Lineas horizontales\r\n\t\t\t\t$pdf->Line(20, 20, 209, 20);\r\n\t\t\t\t$pdf->Line(20, 131.5, 209, 131.5);\r\n\t\t\t\t//Lineas verticales\r\n\t\t\t\t$pdf->Line(20, 20, 20, 131.5);\r\n\t\t\t\t$pdf->Line(209, 20, 209, 131.5);\r\n\r\n\t\t\t\t//Lineas horizontales\r\n\t\t\t\t$pdf->Line(20, 158, 209, 158);\r\n\t\t\t\t$pdf->Line(20, 269.5, 209, 269.5);\r\n\t\t\t\t//Lineas verticales\r\n\t\t\t\t$pdf->Line(20, 158, 20, 269.5);\r\n\t\t\t\t$pdf->Line(209, 158, 209, 269.5);\r\n\t\t\t\tbreak;\r\n\t\t\t//FORMA FRANCESA\r\n\t\t\tcase 3:\r\n\t\t\t\t//Lineas horizontales\r\n\t\t\t\t$pdf->Line(20, 20, 131, 20);\r\n\t\t\t\t$pdf->Line(20, 206, 131, 206);\r\n\t\t\t\t//Lineas verticales\r\n\t\t\t\t$pdf->Line(20, 20, 20, 206);\r\n\t\t\t\t$pdf->Line(131, 20, 131, 206);\r\n\t\t\t\t\r\n\t\t\t\t//Lineas horizontales\r\n\t\t\t\t$pdf->Line(159, 20, 270, 20);\r\n\t\t\t\t$pdf->Line(159, 206, 270, 206);\r\n\t\t\t\t//Lineas verticales\r\n\t\t\t\t$pdf->Line(159, 20, 159, 206);\r\n\t\t\t\t$pdf->Line(270, 20, 270, 206);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\t# code...\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n}", "title": "" }, { "docid": "9160e3004ae9cd113143fba0194ffe6e", "score": "0.5566323", "text": "public function setCodare($codare){\n\t\t$this->codare = $codare;\n\t}", "title": "" }, { "docid": "a53be47bbd47ecb318db3e27353bdd3f", "score": "0.55654603", "text": "public function __construct($valor)\n {\n $this->saldo = $valor;\n }", "title": "" }, { "docid": "59c5664e7d7bb78e44c7db7c45634793", "score": "0.5562467", "text": "public function criaTelaModalReprovProp($sDados) {\n parent:: criaModal();\n\n $this->setBTela(true);\n\n $oDados = $this->getAParametrosExtras();\n\n $oFilcgc = new campo('', 'EmpRex_filcgc', Campo::TIPO_TEXTO, 1);\n $oFilcgc->setSValor($oDados->filcgc);\n $oFilcgc->setBOculto(true);\n\n $oNr = new campo('Nr.', 'nr', Campo::TIPO_TEXTO, 3);\n $oNr->setSValor($oDados->nr);\n $oNr->setBCampoBloqueado(true);\n\n\n $oEmpcod = new Campo('Cliente', 'empcod', Campo::TIPO_TEXTO, 3);\n $oEmpcod->setSValor($oDados->empcod);\n $oEmpcod->setBCampoBloqueado(true);\n\n $oEmpdes = new campo('...', 'empdes', Campo::TIPO_TEXTO, 9);\n $oEmpdes->setSValor($oDados->empdes);\n $oEmpdes->setBCampoBloqueado(true);\n\n $oProduto = new campo('Produto', 'desc_novo_prod', Campo::TIPO_TEXTO, 12);\n $oProduto->setSValor($oDados->desc_novo_prod);\n $oProduto->setBCampoBloqueado(true);\n\n $oAcaba = new campo('Acabamento', 'acabamento', Campo::TIPO_TEXTO, 3);\n $oAcaba->setSValor($oDados->acabamento);\n $oAcaba->setBCampoBloqueado(true);\n\n $oQuant = new campo('Quant.Cnt/Mês', 'quant_pc', Campo::TIPO_TEXTO, 2);\n $oQuant->setSValor(number_format($oDados->quant_pc, 2, ',', '.'));\n $oQuant->setSCorFundo(Campo::FUNDO_VERDE);\n $oQuant->setBCampoBloqueado(true);\n\n $oObsRep = new campo('Motivo da reprovação', 'obsreprov', Campo::TIPO_TEXTAREA, 12);\n $oObsRep->addValidacao(false, Validacao::TIPO_STRING, 'É necessário informar este campo!', '10');\n\n $oBtnInserir = new Campo('Reprovar proposta', '', Campo::TIPO_BOTAOSMALL_SUB, 1);\n $this->getTela()->setIdBtnConfirmar($oBtnInserir->getId());\n //id do grid\n\n $sAcao = 'requestAjax(\"' . $this->getTela()->getId() . '-form\",\"' . $this->getController() . '\",\"reprovarProposta\",\"' . $this->getTela()->getId() . '-form,' . $sDados . '\",\"\");';\n\n $oBtnInserir->setSAcaoBtn($sAcao);\n $this->getTela()->setIdBtnConfirmar($oBtnInserir->getId());\n $this->getTela()->setAcaoConfirmar($sAcao);\n\n\n $this->addCampos($oNr, array($oEmpcod, $oEmpdes), array($oProduto, $oAcaba, $oQuant), $oFilcgc, $oObsRep, $oBtnInserir);\n }", "title": "" }, { "docid": "1f0526e0d5adf9cd9931290cbe04d648", "score": "0.55600095", "text": "function geraClasseDadosFormulario(){\r\n # Abre o template da classe basica e armazena conteudo do modelo\r\n $modelo1 = Util::getConteudoTemplate('class.Modelo.DadosFormulario.tpl');\r\n $modelo2 = Util::getConteudoTemplate('metodoDadosFormularioCadastro.tpl');\r\n\r\n # Abre arquivo xml para navegacao\r\n $aBanco = simplexml_load_string($this->xml);\r\n\r\n # Varre a estrutura das tabelas\r\n foreach($aBanco as $aTabela){\r\n $nomeClasse = ucfirst($this->getCamelMode($aTabela['NOME']));\r\n\r\n $copiaModelo1 = $modelo1;\r\n $copiaModelo2 = $modelo2;\r\n\r\n # varre a estrutura dos campos da tabela em questao\r\n $camposForm = array();\r\n foreach($aTabela as $oCampo){\r\n # recupera campo e tabela e campos (chave estrangeira)\r\n $nomeCampoOriginal = (string)$oCampo['NOME'];\r\n $nomeCampo \t = $nomeCampoOriginal;\r\n //$nomeCampo \t = $nomeCampoOriginal;\r\n\r\n # monta parametros a serem substituidos posteriormente\r\n switch ((string)$oCampo['TIPO']) {\r\n case 'date':\r\n $camposForm[] = \"\\$post[\\\"$nomeCampoOriginal\\\"] = Util::formataDataFormBanco(strip_tags(addslashes(trim(\\$post[\\\"$nomeCampoOriginal\\\"]))));\";\r\n break;\r\n\r\n case 'datetime':\r\n case 'timestamp':\r\n $camposForm[] = \"\\$post[\\\"$nomeCampoOriginal\\\"] = Util::formataDataHoraFormBanco(strip_tags(addslashes(trim(\\$post[\\\"$nomeCampoOriginal\\\"]))));\";\r\n break;\r\n\r\n default:\r\n \tif(preg_match(\"#decimal#i\", $oCampo['TIPO'])){\r\n \t\tif(preg_match(\"#(?:preco|valor)#i\", $oCampo['NOME'])){\r\n \t\t\t$camposForm[] = \"\\$post[\\\"$nomeCampoOriginal\\\"] = Util::formataMoedaBanco(strip_tags(addslashes(trim(\\$post[\\\"$nomeCampoOriginal\\\"]))));\";\r\n \t\t}\r\n \t} else {\r\n \t\t\r\n\t if((int)$oCampo['CHAVE'] == 1)\r\n\t if((string)$aTabela['TIPO_TABELA'] != 'NORMAL')\r\n\t $camposForm[] = \"\\$post[\\\"$nomeCampoOriginal\\\"] = strip_tags(addslashes(trim(\\$post[\\\"$nomeCampoOriginal\\\"])));\";\r\n\t else\r\n\t $camposForm[] = \"if(\\$acao == 2){\\n\\t\\t\\t\\$post[\\\"$nomeCampoOriginal\\\"] = strip_tags(addslashes(trim(\\$post[\\\"$nomeCampoOriginal\\\"])));\\n\\t\\t}\";\r\n\t else\r\n\t $camposForm[] = \"\\$post[\\\"$nomeCampoOriginal\\\"] = strip_tags(addslashes(trim(\\$post[\\\"$nomeCampoOriginal\\\"])));\";\r\n \t}\r\n break;\r\n }\r\n }\r\n # monta demais valores a serem substituidos\r\n $camposForm = join($camposForm,\"\\n\\t\\t\");\r\n\r\n # substitui todas os parametros pelas variaveis ja processadas\r\n $copiaModelo2 = str_replace('%%NOME_CLASSE%%', $nomeClasse, $copiaModelo2);\r\n $copiaModelo2 = str_replace('%%ATRIBUICAO%%', $camposForm, $copiaModelo2);\r\n\r\n $aModeloFinal[] = $copiaModelo2;\r\n //echo $copiaModelo2.\"<br />\";\r\n }\r\n \r\n //echo \"<pre>\"; print_r($aModeloFinal); echo \"</pre>\"; \r\n \r\n $modeloFinal = str_replace('%%FUNCOES%%', join(\"\\n\\n\", $aModeloFinal), $copiaModelo1);\r\n \r\n $dir = dirname(dirname(__FILE__)).\"/geradas/\".$this->projeto.\"/classes\";\r\n if(!file_exists($dir)) \r\n mkdir($dir);\r\n\r\n $fp = fopen(\"$dir/class.DadosFormulario.php\",\"w\");\r\n fputs($fp, $modeloFinal);\r\n fclose($fp);\r\n return true;\t\r\n }", "title": "" }, { "docid": "562135b6ab380b46ae277ca094cee536", "score": "0.554871", "text": "public function __construct(){\n\n $this->date = new \\Datetime();\n $this->designation = \"nouvelle demande de prix\";\n $this->status = \"open\";\n $this->chassis = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n }", "title": "" }, { "docid": "e5ba2b528b4256ad9cc331c9a0cdd306", "score": "0.55470955", "text": "public function geraClasseControle(){\r\n # Abre o template da classe Controle e armazena conteudo do modelo\t\t\r\n $modelo \t = Util::getConteudoTemplate('class.Modelo.Controle.tpl');\r\n $modeloController = Util::getConteudoTemplate('class.Modelo.Controller.tpl');\r\n\r\n # Abre o template dos metodos de cadastros e armazena conteudo do modelo\r\n $modeloCadastrar = Util::getConteudoTemplate('metodoCadastrar.tpl');\r\n $modeloAlterar \t= Util::getConteudoTemplate('metodoAlterar.tpl');\r\n $modeloExcluir \t= Util::getConteudoTemplate('metodoExcluir.tpl');\r\n $modeloGet \t\t\t= Util::getConteudoTemplate('metodoGet.tpl');\r\n $modeloGetAll \t= Util::getConteudoTemplate('metodoGetAll.tpl'); \r\n $modeloConsultar \t= Util::getConteudoTemplate('metodoConsultar.tpl');\r\n $modeloTotalColecao = Util::getConteudoTemplate('metodoTotalColecao.tpl');\r\n\r\n # Abre arquivo xml para navegacao\r\n $aBanco = simplexml_load_string($this->xml);\r\n\r\n # Varre a estrutura das tabelas\r\n $aRequire = $aCadastrar = $aAlterar = $aExcluir = $aGet = $aGetAll = $aConsultar = $aTotalColecao = array();\r\n $copiaModelo = $modelo;\r\n $copiaModeloController = $modeloController;\r\n \r\n //print_r($aBanco);exit;\r\n foreach($aBanco as $aTabela){\r\n \t$copiaModeloCadastrar = $copiaModeloAlterar = $copiaModeloExcluir = $copiaModeloGet = $copiaModeloGetAll = $copiaModeloConsultar = $copiaModeloTotalColecao = \"\";\r\n $aPKDoc = $aPK = array(); \r\n \r\n foreach($aTabela as $oCampo){\r\n if((string)$oCampo['CHAVE'] == '1'){\r\n $aPKDoc[] = \"\\t * @param integer \\$\".(string)$oCampo['NOME'];\r\n $aPK[] = \"\\$\".(string)$oCampo['NOME'];\r\n }\r\n }\r\n\r\n # Montar a Lista de DOC do metodo selecionar\r\n $listaPKDoc = join(\"\\n\", $aPKDoc);\r\n $listaPK = join(\",\", $aPK);\r\n\r\n # Recupera o nome da tabela e gera os valores a serem gerados\r\n $nomeClasse \t = ucfirst($this->getCamelMode($aTabela['NOME']));\r\n $copiaModeloCadastrar \t = str_replace('%%NOME_CLASSE%%', $nomeClasse, $modeloCadastrar);\r\n $copiaModeloAlterar \t = str_replace('%%NOME_CLASSE%%', $nomeClasse, $modeloAlterar);\r\n $copiaModeloExcluir \t = str_replace('%%NOME_CLASSE%%', $nomeClasse, $modeloExcluir);\r\n $copiaModeloGet \t \t = str_replace('%%NOME_CLASSE%%', $nomeClasse, $modeloGet);\r\n $copiaModeloGetAll \t = str_replace('%%NOME_CLASSE%%', $nomeClasse, $modeloGetAll);\r\n $copiaModeloConsultar \t = str_replace('%%NOME_CLASSE%%', $nomeClasse, $modeloConsultar);\r\n $copiaModeloTotalColecao = str_replace('%%NOME_CLASSE%%', $nomeClasse, $modeloTotalColecao);\r\n\r\n $montaObjetoCAD = $this->retornaObjetosMontados($aTabela['NOME']);\r\n $montaObjetoEDIT = $this->retornaObjetosMontados($aTabela['NOME'], \"edit\");\r\n \r\n $montaObjetoBD = $this->retornaObjetosBDMontados($aTabela['NOME']);\r\n\t\t\t# Cadastrar\r\n $copiaModeloCadastrar = str_replace('%%MONTA_OBJETO%%', $montaObjetoCAD, $copiaModeloCadastrar);\r\n $copiaModeloCadastrar = str_replace('%%MONTA_OBJETOBD%%', $montaObjetoBD, $copiaModeloCadastrar);\r\n # Alterar\r\n $copiaModeloAlterar\t = str_replace('%%MONTA_OBJETO%%', $montaObjetoEDIT, $copiaModeloAlterar);\r\n $copiaModeloAlterar = str_replace('%%MONTA_OBJETOBD%%', $montaObjetoBD, $copiaModeloAlterar);\r\n # Excluir\r\n $copiaModeloExcluir = str_replace('%%MONTA_OBJETOBD%%', $montaObjetoBD, $copiaModeloExcluir);\r\n # Get\r\n $copiaModeloGet = str_replace('%%MONTA_OBJETOBD%%', $montaObjetoBD, $copiaModeloGet);\r\n $copiaModeloGet = str_replace('%%DOC_LISTA_PK%%', $listaPKDoc, $copiaModeloGet);\r\n $copiaModeloGet = str_replace('%%LISTA_PK%%', \t $listaPK, $copiaModeloGet);\r\n # GetAll\r\n $copiaModeloGetAll = str_replace('%%MONTA_OBJETOBD%%', $montaObjetoBD, $copiaModeloGetAll);\r\n # Consultar\r\n $copiaModeloConsultar = str_replace('%%MONTA_OBJETOBD%%', $montaObjetoBD, $copiaModeloConsultar);\r\n\r\n $aRequire[] \t = \"require_once(dirname(__FILE__).'/bd/class.$nomeClasse\".\"BD.php');\";\r\n $aCadastrar[]\t = $copiaModeloCadastrar;\r\n $aAlterar[] \t = $copiaModeloAlterar;\r\n $aExcluir[] \t = $copiaModeloExcluir;\r\n $aGet[] \t \t = $copiaModeloGet;\r\n $aGetAll[] \t = $copiaModeloGetAll;\r\n $aConsultar[] \t = $copiaModeloConsultar;\r\n $aTotalColecao[] = $copiaModeloTotalColecao;\r\n \r\n # ==== Geração das Controllers das Classes =====\r\n $copiaModeloController = str_replace('%%NOME_CLASSE%%',\t $nomeClasse,\t\t \t \t$copiaModeloController);\r\n $copiaModeloController = str_replace('%%METODO_CREATE%%', $copiaModeloCadastrar, \t$copiaModeloController);\r\n $copiaModeloController = str_replace('%%METODO_UPDATE%%', $copiaModeloAlterar,\t \t$copiaModeloController);\r\n $copiaModeloController = str_replace('%%METODO_DEL%%', $copiaModeloExcluir,\t \t$copiaModeloController);\r\n $copiaModeloController = str_replace('%%METODO_GET%%',\t $copiaModeloGet,\t\t \t$copiaModeloController);\r\n $copiaModeloController = str_replace('%%METODO_GETALL%%', $copiaModeloGetAll,\t $copiaModeloController);\r\n $copiaModeloController = str_replace('%%METODO_SEARCH%%', $copiaModeloConsultar, $copiaModeloController);\r\n $copiaModeloController = str_replace('%%METODO_TOTAL%%', $copiaModeloTotalColecao, $copiaModeloController);\r\n \r\n $copiaModeloCadastrar = $copiaModeloAlterar = $copiaModeloExcluir = $copiaModeloGet = $copiaModeloGetAll = $copiaModeloConsultar = $copiaModeloTotalColecao = \"\";\r\n \r\n $dir = dirname(dirname(__FILE__)).\"/geradas/\".$this->projeto.\"/classes\";\r\n if(!file_exists($dir)) mkdir($dir);\r\n \r\n $fp = fopen(\"$dir/class.Controller$nomeClasse.php\",\"w\"); fputs($fp, $copiaModeloController); fclose($fp);\r\n }\r\n\r\n # Monta demais valores a serem substituidos\r\n $listaRequire = join(\"\\n\", $aRequire);\r\n $listaCadastrar = join(\"\\n\\n\", $aCadastrar);\r\n $listaAlterar = join(\"\\n\\n\", $aAlterar);\r\n $listaExcluir = join(\"\\n\\n\", $aExcluir);\r\n $listaGet \t = join(\"\\n\\n\", $aGet);\r\n $listaGetAll = join(\"\\n\\n\", $aGetAll);\r\n $listaConsultar = join(\"\\n\\n\", $aConsultar);\r\n $listaTotalColecao = join(\"\\n\\n\", $aTotalColecao);\r\n\r\n # Substitui todas os parametros pelas variaveis ja processadas\r\n $copiaModelo = str_replace('%%LISTA_REQUIRE%%',\t $listaRequire,\t\t$copiaModelo);\r\n $copiaModelo = str_replace('%%METODOS_CADASTRAR%%', $listaCadastrar,\t$copiaModelo);\r\n $copiaModelo = str_replace('%%METODOS_ALTERAR%%', $listaAlterar,\t\t$copiaModelo);\r\n $copiaModelo = str_replace('%%METODOS_EXCLUIR%%', $listaExcluir,\t\t$copiaModelo);\r\n $copiaModelo = str_replace('%%METODOS_GET%%',\t $listaGet,\t\t\t$copiaModelo);\r\n $copiaModelo = str_replace('%%METODOS_GET_ALL%%', $listaGetAll,\t\t$copiaModelo);\r\n $copiaModelo = str_replace('%%METODOS_CONSULTAR%%', $listaConsultar, $copiaModelo);\r\n $copiaModelo = str_replace('%%METODOS_TOTAL%%', \t$listaTotalColecao, $copiaModelo);\r\n\r\n $dir = dirname(dirname(__FILE__)).\"/geradas/\".$this->projeto.\"/classes\";\r\n if(!file_exists($dir)) mkdir($dir);\r\n\r\n $fp = fopen(\"$dir/class.Controle.php\",\"w\");\r\n fputs($fp,$copiaModelo);\r\n\r\n # ============ Adicionando Classes de core/Config =========\r\n $modeloConfig = Util::getConteudoTemplate(\"Modelo.Config.\".$aBanco['SGBD'].\".tpl\");\r\n $modeloConfig = str_replace('%%DATABASE%%', $this->projeto, $modeloConfig);\r\n $modeloConfig = str_replace('%%HOST%%', $aBanco['HOST'], $modeloConfig);\r\n $modeloConfig = str_replace('%%USER%%', $aBanco['USER'], $modeloConfig);\r\n $modeloConfig = str_replace('%%SENHA%%', $aBanco['SENHA'], $modeloConfig);\r\n \r\n $fpConfig = fopen(\"$dir/core/config.ini\",\"w\"); \t\r\n fputs($fpConfig, $modeloConfig); \r\n fclose($fpConfig);\r\n\r\n copy(dirname(__FILE__).\"/class.Util.php\",\t \"$dir/core/class.Util.php\");\r\n copy(dirname(__FILE__).\"/class.Conexao.php\", \"$dir/core/class.Conexao.php\");\r\n \r\n return true;\r\n }", "title": "" }, { "docid": "f59f8f487827081831423b0c5dbb71b0", "score": "0.5540459", "text": "public function Buscar(){\n\t\t\t$idCargo = $_GET['codigo'];\n \n\t\t\t//INSTANCIA A CLASSE CONTATO\n\t\t\t$cargo = new Cargo();\n\n\t\t\t//DEFINE O ID DO CONTATO COM O VALOR DA VARIÁVEL\n\t\t\t$cargo->id_cargo = $idCargo;\n\n\t\t\t//CHAMA O MÉTODO DA MODEL PARA APAGAR O REGISTRO\n\t\t\t$cargo = $cargo::SelectById($cargo);\n \n return $cargo;\n\t\t\t//require_once('../modals/modal_cad_especialidade.php');\n\t\t}", "title": "" }, { "docid": "b6434fce54523380ea1707539313d1ee", "score": "0.5537199", "text": "function crearEntrega(){\n\t\t$this->procedimiento='conta.ft_entrega_ime';\n\t\t$this->transaccion='CONTA_CRENT_INS';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_int_comprobantes','id_int_comprobantes','varchar');\n\t\t$this->setParametro('total_cbte','total_cbte','int4');\n\t\t$this->setParametro('id_depto_conta','id_depto_conta','int4');\n\n\n //$this->setParametro('id_proceso_wf','id_proceso_wf','int4');\n // $this->setParametro('id_estado_wf','id_estado_wf','int4');\n // $this->setParametro('estado','estado','varchar');\n\t\t\n\t\t\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "9d86e673364ea68c9941f344c00f4d6b", "score": "0.5528969", "text": "public function __construct($chitarre, $pianoforti, $batterie, $costo_spedizione ) {\n parent::__construct ($chitarre, $pianoforti, $batterie);\n \n // 2 settare i nuovi parametri\n $this->costo_spedizione = $costo_spedizione; \n }", "title": "" }, { "docid": "979fc55cdc9b4b3b6b3f2a0e0d4c4696", "score": "0.552579", "text": "function asignar_valores2(){\n\t\t$this->cantidad=$_POST['cantidad'];\n\t\t$this->temporada=$_POST['temp'];\n\t\t$this->plan=$_POST['plan'];\n\t\t$this->producto=$_POST['hotel'];\n\t\t$this->noches=$_POST['noches'];\n\t\t$this->listado2=$_SESSION['personas'];\n\t\t$this->observaciones=$_POST['observaciones'];\n\t\t$this->subtotal=$_POST['subtotal'];\n\t\t$this->comision=$_POST['comision'];\n\t\t$this->total=$_POST['total'];\n\t\t$this->desde=$_POST['desde'];\n\t\t$this->hasta=$_POST['hasta'];\n\t\t$this->tipo=$_POST['tipo'];\n\t}", "title": "" }, { "docid": "71c06ec82b1969b5e909e0961fa3cfe0", "score": "0.55235386", "text": "function evt__form_detalle__modificacion($datos)\r\n {\r\n //los campos para SEAC y para SEHA son de solo lectura para la UA\r\n $pres=$this->controlador()->dep('datos')->tabla('presupuesto')->get();\r\n $item=$this->dep('datos')->tabla('item_presupuesto')->get();\r\n if($pres['id_estado']=='I'){\r\n if($datos['cantidad']>=1){\r\n $band=$this->dep('datos')->tabla('mocovi_periodo_presupuestario')->esta_dentro_periodo($pres['id_periodo'],$datos['desde'],$datos['hasta']);\r\n if($band){\r\n if($datos['opcion']=='F'){\r\n $band=$this->dep('datos')->tabla('categ_siu')->es_mayor_a($datos['cat_mapuche1'],$datos['cat_mapuche2'],$pres['id_periodo']); \r\n }\r\n if($band){\r\n if($datos['desde']>=$datos['hasta']){\r\n toba::notificacion()->agregar('La fecha desde debe ser menor que la fecha hasta','error');\r\n }else{\r\n $datos['cant_seac']=$datos['cantidad'];\r\n $datos['cant_seha']=$datos['cantidad'];\r\n $datos['cat_map1_seac']=$datos['cat_mapuche1'];\r\n $datos['cat_map1_seha']=$datos['cat_mapuche1'];\r\n $datos['cat_map2_seac']=$datos['cat_mapuche2'];\r\n $datos['cat_map2_seha']=$datos['cat_mapuche2'];\r\n $datos['desde_seac']=$datos['desde'];\r\n $datos['desde_seha']=$datos['desde'];\r\n $datos['hasta_seac']=$datos['hasta'];\r\n $datos['hasta_seha']=$datos['hasta'];\r\n if($datos['opcion']=='D'){\r\n $datos['cat_mapuche2']=null;\r\n $datos['cat_map2_seac']=null;\r\n $datos['cat_map2_seha']=null;\r\n }\r\n $this->dep('datos')->tabla('item_presupuesto')->set($datos);\r\n $this->dep('datos')->tabla('item_presupuesto')->sincronizar();\r\n }\r\n }else{\r\n toba::notificacion()->agregar('La categ 1 debe ser mayor a la categ 2', 'error'); \r\n }\r\n }else{\r\n toba::notificacion()->agregar('Las fechas estan por fuera del periodo presupuestario', 'error'); \r\n }\r\n }else{toba::notificacion()->agregar('La cantidad debe ser un entero positivo', 'error'); }\r\n }else{\r\n toba::notificacion()->agregar('Ya no puede modificar el presupuesto.', 'error'); \r\n }\r\n }", "title": "" }, { "docid": "d42ca36e05418b4b824b861bbf035282", "score": "0.5522686", "text": "public function RegistreAnticipo($idCliente,$Anticipo, $CuentaDestino,$CentroCosto,$Concepto,$idUser){\r\n $fecha=date(\"Y-m-d\");\r\n $DatosCentro=$this->DevuelveValores(\"centrocosto\",\"ID\",$CentroCosto);\r\n $DatosCliente=$this->DevuelveValores(\"clientes\",\"idClientes\",$idCliente);\r\n $DatosCuentasFrecuentes=$this->DevuelveValores(\"cuentasfrecuentes\",\"CuentaPUC\",$CuentaDestino);\r\n $NIT=$DatosCliente[\"Num_Identificacion\"];\r\n $RazonSocialC=$DatosCliente[\"RazonSocial\"];\r\n \r\n //////Creo el comprobante de Ingreso\r\n \r\n $tab=\"comprobantes_ingreso\";\r\n $NumRegistros=6;\r\n\r\n $Columnas[0]=\"Fecha\";\t\t$Valores[0]=$fecha;\r\n $Columnas[1]=\"Clientes_idClientes\";\t$Valores[1]=$idCliente;\r\n $Columnas[2]=\"Valor\"; $Valores[2]=$Anticipo;\r\n $Columnas[3]=\"Tipo\";\t\t$Valores[3]=\"EFECTIVO\";\r\n $Columnas[4]=\"Concepto\";\t\t$Valores[4]=$Concepto;\r\n $Columnas[5]=\"Usuarios_idUsuarios\";\t$Valores[5]=$idUser;\r\n \r\n $this->InsertarRegistro($tab,$NumRegistros,$Columnas,$Valores);\r\n \r\n $idIngreso=$this->ObtenerMAX($tab,\"ID\", 1,\"\");\r\n \r\n ////Registro el anticipo en el libro diario\r\n \r\n $tab=\"librodiario\";\r\n $NumRegistros=26;\r\n $CuentaPUC=$CuentaDestino;\r\n $NombreCuenta=$DatosCuentasFrecuentes[\"Nombre\"];\r\n $CuentaPUCContraPartida=\"238020\".$NIT;\r\n $NombreCuentaContraPartida=\"Anticipos recibidos Cliente: $RazonSocialC NIT $NIT\";\r\n \r\n\r\n\r\n $Columnas[0]=\"Fecha\";\t\t\t$Valores[0]=$fecha;\r\n $Columnas[1]=\"Tipo_Documento_Intero\";\t$Valores[1]=\"ComprobanteIngreso\";\r\n $Columnas[2]=\"Num_Documento_Interno\";\t$Valores[2]=$idIngreso;\r\n $Columnas[3]=\"Tercero_Tipo_Documento\";\t$Valores[3]=$DatosCliente['Tipo_Documento'];\r\n $Columnas[4]=\"Tercero_Identificacion\";\t$Valores[4]=$NIT;\r\n $Columnas[5]=\"Tercero_DV\";\t\t\t$Valores[5]=$DatosCliente['DV'];\r\n $Columnas[6]=\"Tercero_Primer_Apellido\";\t$Valores[6]=$DatosCliente['Primer_Apellido'];\r\n $Columnas[7]=\"Tercero_Segundo_Apellido\"; $Valores[7]=$DatosCliente['Segundo_Apellido'];\r\n $Columnas[8]=\"Tercero_Primer_Nombre\";\t$Valores[8]=$DatosCliente['Primer_Nombre'];\r\n $Columnas[9]=\"Tercero_Otros_Nombres\";\t$Valores[9]=$DatosCliente['Otros_Nombres'];\r\n $Columnas[10]=\"Tercero_Razon_Social\";\t$Valores[10]=$RazonSocialC;\r\n $Columnas[11]=\"Tercero_Direccion\";\t\t$Valores[11]=$DatosCliente['Direccion'];\r\n $Columnas[12]=\"Tercero_Cod_Dpto\";\t\t$Valores[12]=$DatosCliente['Cod_Dpto'];\r\n $Columnas[13]=\"Tercero_Cod_Mcipio\";\t\t$Valores[13]=$DatosCliente['Cod_Mcipio'];\r\n $Columnas[14]=\"Tercero_Pais_Domicilio\"; $Valores[14]=$DatosCliente['Pais_Domicilio'];\r\n $Columnas[15]=\"CuentaPUC\";\t\t\t$Valores[15]=$CuentaPUC;\r\n $Columnas[16]=\"NombreCuenta\";\t\t$Valores[16]=$NombreCuenta;\r\n $Columnas[17]=\"Detalle\";\t\t\t$Valores[17]=\"Anticipos\";\r\n $Columnas[18]=\"Debito\";\t\t\t$Valores[18]=$Anticipo;\r\n $Columnas[19]=\"Credito\";\t\t\t$Valores[19]=\"0\";\r\n $Columnas[20]=\"Neto\";\t\t\t$Valores[20]=$Valores[18];\r\n $Columnas[21]=\"Mayor\";\t\t\t$Valores[21]=\"NO\";\r\n $Columnas[22]=\"Esp\";\t\t\t$Valores[22]=\"NO\";\r\n $Columnas[23]=\"Concepto\";\t\t\t$Valores[23]=$Concepto;\r\n $Columnas[24]=\"idCentroCosto\";\t\t$Valores[24]=$CentroCosto;\r\n $Columnas[25]=\"idEmpresa\";\t\t\t$Valores[25]=$DatosCentro[\"EmpresaPro\"];\r\n\r\n $this->InsertarRegistro($tab,$NumRegistros,$Columnas,$Valores);\r\n\r\n\r\n ///////////////////////Registramos contra partida del anticipo\r\n\r\n $CuentaPUC=$CuentaPUCContraPartida; \r\n $NombreCuenta=$NombreCuentaContraPartida;\r\n\r\n $Valores[15]=$CuentaPUC;\r\n $Valores[16]=$NombreCuenta;\r\n $Valores[18]=\"0\";\r\n $Valores[19]=$Anticipo; \t\t\t//Credito se escribe el total de la venta menos los impuestos\r\n $Valores[20]=$Valores[19]*(-1); \t\t\t\t\t\t\t\t\t\t\t//Credito se escribe el total de la venta menos los impuestos\r\n\r\n $this->InsertarRegistro($tab,$NumRegistros,$Columnas,$Valores);\r\n\t\t\r\n return($idIngreso);\r\n\t}", "title": "" }, { "docid": "d6b7abd5b76660d937f2fd93dbaebf1f", "score": "0.5519424", "text": "function initLegende(){\n\t\t//On laisse 20 pixel de marge pour les années\n\t\t// $this->height+= HEIGHT;\n\t\t//Puis 20 pixels pour la legende des mois\n\t\tswitch($this->typeAffichage){\n\t\t\tcase \"annee\":\n\t\t\tcase \"y\":\n\t\t\t$this->height+= HEIGHT;\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"trimestre\": \n\t\t\tcase \"t\":\n\t\t\t$this->height+= HEIGHT;\n\t\t\t$this->height+= HEIGHT;\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"mois\":\n\t\t\tcase \"m\":\n\t\t\t$this->height+= HEIGHT;\n\t\t\t$this->height+= HEIGHT;\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"semaine\":\n\t\t\tcase \"s\":\n\t\t\t$this->height+= HEIGHT;\n\t\t\t$this->height+= HEIGHT;\n\t\t\t$this->height+= HEIGHT;\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"jour\":\n\t\t\tcase \"d\":\n\t\t\t$this->height+= HEIGHT;\n\t\t\t$this->height+= HEIGHT;\n\t\t\t$this->height+= HEIGHT;\n\t\t\t$this->height+= HEIGHT;\n\t\t\tbreak;\n\t\t\t\n\t\t\tdefault:\n\t\t\t$this->height+= HEIGHT;\n\t\t\t$this->height+= HEIGHT;\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t$this->ganttLegende = new GanttLegende();\n\t\t$anneeTmp=0;\n\t\t$moisTmp=null;\n\t\t$ganttMois = null;\n\t\t$annee=null;\n\t\t$mois = null;\n\t\t/*for($i=new DateTime('1-'.$this->dateDebut->format('m-Y'));$i<=$this->dateFin;$i->modify('+1 month')){\n\t\t\t$mois = $i->format('M');\n\t\t\t$this->width+=$this->widthUnity;\n\t\t\t//On test la valeur suivante de $i\n\t\t\t$i2 = new DateTime($i->format('d-m-Y'));\n\t\t\t$i2->modify('+1 month');\n\t\t\t\n\t\t\t//Si les deux annees qui se suivent sont differentes\n\t\t\tif($i->format('Y')!=$anneeTmp){\n\t\t\t\t//Si l'annee precedente existe, on l'ajoute\n\t\t\t\tif($annee!=null){\n\t\t\t\t\t$this->ganttLegende->add($annee);\n\t\t\t\t}\n\t\t\t\t$annee = new GanttLegendeAnnee($i->format('Y'));\n\t\t\t\t$annee->add($mois);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$annee->add($mois);\n\t\t\t}\n\t\t\t//Si c'est la derniere année de la boucle on l'ajoute a la legende\n\t\t\tif($i2>=$this->dateFin){\n\t\t\t\t$this->ganttLegende->add($annee);\n\t\t\t}\n\t\t\t$anneeTmp = $i->format('Y');\n\t\t}*/\n\t\t\n\t\tfor($i=new DateTime('1-'.$this->dateDebut->format('m-Y'));$i<=$this->dateFin;$i->modify('+1 week')){\n\t\t\t$mois = $i->format('M');\n\t\t\t//On test la valeur suivante de $i\n\t\t\t$i2 = new DateTime($i->format('d-m-Y'));\n\t\t\t$i2->modify('+1 week');\n\t\t\t// $this->width+=$this->widthUnity;\n\t\t\tif($ganttMois != null){\n\t\t\t\t$ganttMois->add($i->format('W'));\n\t\t\t}\n\t\t\t//Si les deux annees qui se suivent sont differentes\n\t\t\tif($i->format('Y')!=$anneeTmp){\n\t\t\t\t//Si l'annee precedente existe, on l'ajoute\n\t\t\t\tif($annee!=null){\n\t\t\t\t\t$this->ganttLegende->add($annee);\n\t\t\t\t}\n\t\t\t\t$annee = new GanttLegendeAnnee($i->format('Y'));\n\t\t\t\tif($mois!=$moisTmp){\n\t\t\t\t\t$this->width+=$this->widthUnity;\n\t\t\t\t\t$ganttMois = new GanttLegendeMois($mois);\n\t\t\t\t\t$annee->add($ganttMois);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif($mois!=$moisTmp){\n\t\t\t\t\t$this->width+=$this->widthUnity;\n\t\t\t\t\t$ganttMois = new GanttLegendeMois($mois);\n\t\t\t\t\t$annee->add($ganttMois);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Si c'est la derniere année de la boucle on l'ajoute a la legende\n\t\t\tif($i2>$this->dateFin){\n\t\t\t\t$this->ganttLegende->add($annee);\n\t\t\t}\n\t\t\t$moisTmp = $i->format('M');\n\t\t\t$anneeTmp = $i->format('Y');\n\t\t}\n\t}", "title": "" }, { "docid": "894cae43dd047c338f1ec86205fa6759", "score": "0.55179405", "text": "public function setNom($Nom)\n{\n$this->Nom = $Nom;\n\nreturn $this;\n}", "title": "" }, { "docid": "894cae43dd047c338f1ec86205fa6759", "score": "0.55179405", "text": "public function setNom($Nom)\n{\n$this->Nom = $Nom;\n\nreturn $this;\n}", "title": "" }, { "docid": "894cae43dd047c338f1ec86205fa6759", "score": "0.55179405", "text": "public function setNom($Nom)\n{\n$this->Nom = $Nom;\n\nreturn $this;\n}", "title": "" }, { "docid": "c61a00aa62eddb9ea2947b78961430e0", "score": "0.55153924", "text": "private function setParamBusca()\n\t{\n\t\tif (empty($this->paramBusca)){\n\t\t\t$this->paramBusca = '';\n\t\t}\n\t}", "title": "" }, { "docid": "ee2d6603dc4cb16417a0b21690cee819", "score": "0.5514819", "text": "public function __construct($agencia, $conta, $saldo)\n {\n parent::__construct($agencia, $conta, $saldo);\n $this->saldo();\n }", "title": "" }, { "docid": "9e5d1abded1f69367dbe6477d0936aa8", "score": "0.5501187", "text": "function edit($id,$combus,$precio,$valor){\n\t\t$this->combust[$id] = $combus;\n\t\t$this->precio[$id] = $precio;\n\t\t$this->valor[$id] = $valor;\n\t}", "title": "" }, { "docid": "c090548b2e2eb6a88fbce1ba144c0c86", "score": "0.54999703", "text": "public function createAction() {\n $entity = new Grado();\n\n $request = $this->getRequest();\n $form = $this->createForm(new GradoType(), $entity);\n $form->handleRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getEntityManager();\n $grado_copia = $form[\"grado\"]->getData();\n if ($grado_copia!=\"\") {\n $d = \"\";\n $areas_copiar = $em->getRepository('NetpublicCoreBundle:Asignatura')->findBy(array(\n 'es_area' => 1,\n \"grado\" => $grado_copia->getId()\n ));\n echo $grado_copia->getId().\".-..\";\n foreach ($areas_copiar as $a_c) {\n $area = new Asignatura();\n $area->setEsArea(1);\n $area->setNombre($a_c->getNombre());\n $area->setDuracionMinutos($a_c->getDuracionMinutos());\n $area->setGrado($entity);\n\n $em->persist($area);\n $asignaturas_copiar = $em->getRepository('NetpublicCoreBundle:Asignatura')->findBy(array(\n 'es_area' => 0,\n \"grado\" => $grado_copia->getId(),\n \"area\" => $a_c->getId()\n ));\n $d.=\"area\";\n foreach ($asignaturas_copiar as $asig_copiar) {\n $asignatura = new Asignatura();\n $asignatura->setEsArea(0);\n $asignatura->setNombre($asig_copiar->getNombre());\n $asignatura->setDuracionMinutos($asig_copiar->getDuracionMinutos());\n $asignatura->setArea($area);\n $asignatura->setGrado($entity);\n $em->persist($asignatura);\n $d.=\"asingtura\";\n }\n }\n\n //return new \\Symfony\\Component\\HttpFoundation\\Response(\"$d\".$grado_copia);\n }\n $em->persist($entity);\n $em->flush();\n if ($this->container->get('request')->isXmlHttpRequest()) {\n return new \\Symfony\\Component\\HttpFoundation\\Response(\"Ok\");\n }\n return $this->redirect($this->generateUrl('grado_show', array('id' => $entity->getId())));\n }\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView()\n );\n }", "title": "" }, { "docid": "a47fe4df63a7b307dfc7dce7b9e4c775", "score": "0.5492895", "text": "function AdicionaCaixa() {\n $this->cont += 12;\n }", "title": "" }, { "docid": "ea6106d35e6cdd7f3eadbb39501a3663", "score": "0.5490163", "text": "public function contrato($metodo,$argumentos = array()){\n require_once ROOT . DEFAULT_CORE; \n require_once ROOT . DEFAUL_FUNCTION;\n require_once ROOT . 'modules/sistema/model/sistemaModel.php';\n require_once ROOT . VIEW_PACH . DS . 'view.php';\n $sistema = new ModeloSistema();\n $Objvista = new view;\n $dataFormGeneral=array();\n if(!Session::get('usuario')){\n $data = array('ERR'=>3,\n 'MSJ'=>'No ha iniciado Sesi&oacute;n');\n $cadenaSql= fbRetornaConfigForm();\n $sistema->get_datos($cadenaSql, 'head_formulario_config=\"login\"', 'sys_formulario_config');\n $dataFormGeneral=$sistema->_data;\n $Objvista->retornar_vista(DEFAULT_CONTROLLER,'sistema','login','login',$data,$dataFormGeneral);\n }else{\n $met= isset($argumentos[6]) ? $argumentos[6] : \"N\";\n $data=array();$camposCombo=array();\n if(!empty($argumentos[3])){\n $sistema->get_datos('*',\"cod_contrato=\".$argumentos[3],$argumentos[4]); $data=$sistema->_data;\n //$camposCombo=array(\"cod_regimen\"=>$data[0][\"cod_regimen\"],\"cod_ciudad\"=>$data[0][\"cod_ciudad\"],\"cod_moneda\"=>$data[0][\"cod_moneda\"]);\n }\n $cadenaSql= fbRetornaConfigForm();\n $sistema->get_datos($cadenaSql, 'head_formulario_config=\"'.devuelveString($argumentos[2],'*',1).'\"', 'sys_formulario_config');\n $dataFormGeneral=$sistema->_data;\n setVariables($sistema,$Objvista,$metodo,$argumentos[1],$argumentos[0],'sys_view_contrato','','','',1,'',devuelveString($argumentos[2],'*',2),$met);\n $Objvista->retornar_vista(DEFAULT_CONTROLLER,'sistema','index',devuelveString($argumentos[2],'*',1),$data,$dataFormGeneral);\n }\t\n }", "title": "" }, { "docid": "931934da200be29858e3246e067c1898", "score": "0.54891115", "text": "public function setProduto($produto){\n $this->produto = $produto;\n }", "title": "" }, { "docid": "ed68c286c88b3be5ed2caf0b7da0d022", "score": "0.5488429", "text": "public function empresaVsContrato($metodo,$argumentos = array()){\n require_once ROOT . DEFAULT_CORE; \n require_once ROOT . DEFAUL_FUNCTION;\n require_once ROOT . 'modules/sistema/model/sistemaModel.php';\n require_once ROOT . VIEW_PACH . DS . 'view.php';\n $sistema = new ModeloSistema();\n $Objvista = new view;\n $dataFormGeneral=array();\n if(!Session::get('usuario')){\n $data = array('ERR'=>3,\n 'MSJ'=>'No ha iniciado Sesi&oacute;n');\n $cadenaSql= fbRetornaConfigForm();\n $sistema->get_datos($cadenaSql, 'head_formulario_config=\"login\"', 'sys_formulario_config');\n $dataFormGeneral=$sistema->_data;\n $Objvista->retornar_vista(DEFAULT_CONTROLLER,'sistema','login','login',$data,$dataFormGeneral);\n }else{\n $met= isset($argumentos[6]) ? $argumentos[6] : \"N\";\n $data=array();$camposCombo=array();\n if(!empty($argumentos[3])){\n $sistema->get_datos('*',\"cod_empresa_contrato=\".$argumentos[3],$argumentos[4]); $data=$sistema->_data;\n $camposCombo=array(\"cod_empresa\"=>$data[0][\"cod_empresa\"],\"cod_contrato\"=>$data[0][\"cod_contrato\"],\"cod_modulo\"=>$data[0][\"cod_modulo\"],\n \"cod_estado\"=>$data[0][\"cod_estado\"]);\n }\n $cadenaSql= fbRetornaConfigForm();\n $sistema->get_datos($cadenaSql, 'head_formulario_config=\"'.devuelveString($argumentos[2],'*',1).'\"', 'sys_formulario_config');\n $dataFormGeneral=$sistema->_data;\n setVariables($sistema,$Objvista,$metodo,$argumentos[1],$argumentos[0],'sys_view_empresa_contrato','',$camposCombo,'',1,'',devuelveString($argumentos[2],'*',2),$met);\n $Objvista->retornar_vista(DEFAULT_CONTROLLER,'sistema','index',devuelveString($argumentos[2],'*',1),$data,$dataFormGeneral);\n }\t\n }", "title": "" }, { "docid": "776e5a90dc610fc2c38c371f8f6d4d55", "score": "0.54847854", "text": "function cabecera($nombre_zona,$nombre_sector,$fecha_d)\n\t{\n\t\t$this->SetY(5);\n\t\t$this->SetFont('Arial','',10);\n\t\t$this->MultiCell(195,4,nombre_empresa().\" \".strtoupper(_(\" listado de clientes para cobros \")).\" \".strtoupper(_(\"fecha\")).\":\".date(\"d/m/Y\"),'0','J');\n\t\t\t$this->SetX(10);\n\t\t\t$this->SetFont('Arial','B',8);\n\t\t\t$this->Cell(50,4,strtoupper(_(\"zona\")).\": $nombre_zona\",\"0\",0,\"L\");\n\t\t\t$this->Cell(50,4,strtoupper(_(\"sector\")).\": $nombre_sector\",\"0\",0,\"L\");\n\t\t\t$this->Cell(95,4,\"$fecha_d\",\"0\",1,\"R\");\n\t\t$this->Ln();\n\t}", "title": "" }, { "docid": "8c5f9839c3f68e9dbe9b8b8a1c984939", "score": "0.548434", "text": "function __construct($titolo, $regista, $genere, $durata, $trama){\n $this->titolo = $titolo;\n $this->regista = $regista;\n $this->genere = $genere;\n $this->durata = $durata;\n $this->trama = $trama;\n }", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4bac3188558c3acab53dd8d5175c1d4e", "score": "0.0", "text": "public function show($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "1b84960e1b92d293ded93b3711f4a5bb", "score": "0.8233718", "text": "public function show(Resource $resource)\n {\n // not available for now\n }", "title": "" }, { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "ed2d107c1c9ce4912402cbef90125ac4", "score": "0.76110697", "text": "public function show(Resource $resource)\n\t{\n\t\treturn $resource;\n\t}", "title": "" }, { "docid": "364c14abc03f539e9a17828c2c3c5094", "score": "0.7142873", "text": "protected function makeDisplayFromResource()\n\t{\n\t\treturn $this->activeResource->makeDisplay();\n\t}", "title": "" }, { "docid": "05f03e4964305c5851a8417af8f32544", "score": "0.6684253", "text": "public function show($resource, $id)\n {\n return $this->repository->get($id);\n }", "title": "" }, { "docid": "e21cb6c5a585a50a5b1a659e50a3576d", "score": "0.6445771", "text": "function show()\n\t{\n\t\techo '<pre>';\n\t\tprint_r($this);\n\t\techo '</pre>';\n\n//\t\tforeach ($this->resources as $id => $resources)\n//\t\t{\n//\t\t\tforeach ($resources as $type => $resource)\n//\t\t\t{\n//\t\t\t\t$resource->show();\n//\t\t\t}\n//\t\t}\n\t}", "title": "" }, { "docid": "2e3da5773c9c5d59c21b1af4e1ac8cd8", "score": "0.623589", "text": "public function show($id)\n {\n if(Module::hasAccess(\"Resources\", \"view\")) {\n \n $resource = Resource::find($id);\n if(isset($resource->id)) {\n $module = Module::get('Resources');\n $module->row = $resource;\n $group_lists = array();\n $user_lists = array();\n\n if(!$resource->is_public){\n $group_lists = DB::table('resource_groups')\n ->select('groups.id', 'groups.name')\n ->join('groups','groups.id','=','resource_groups.group_id')\n ->where('resource_groups.resource_id', $id)->whereNull('groups.deleted_at')->whereNull('resource_groups.deleted_at')->get();\n\n $user_lists = DB::table('resource_users')\n ->select('users.id', 'users.name')\n ->join('users','users.id','=','resource_users.user_id')\n ->where('resource_users.resource_id', $id)->whereNull('users.deleted_at')->whereNull('resource_users.deleted_at')->get();\n }\n \n return view('la.resources.show', [\n 'module' => $module,\n 'view_col' => $module->view_col,\n 'no_header' => true,\n 'no_padding' => \"no-padding\",\n 'user_lists' => $user_lists,\n 'group_lists' => $group_lists\n ])->with('resource', $resource);\n } else {\n return view('errors.404', [\n 'record_id' => $id,\n 'record_name' => ucfirst(\"resource\"),\n ]);\n }\n } else {\n return redirect(config('laraadmin.adminRoute') . \"/\");\n }\n }", "title": "" }, { "docid": "596a976868e24408f49b224b715ef1dd", "score": "0.62268525", "text": "function display() {\n global $CFG, $THEME, $USER;\n\n /// Set up generic stuff first, including checking for access\n parent::display();\n\n /// Set up some shorthand variables\n $cm = $this->cm;\n $course = $this->course;\n $resource = $this->resource;\n\n\n $this->set_parameters(); // set the parameters array\n\n ///////////////////////////////////////////////\n\n /// Possible display modes are:\n /// File displayed embedded in a normal page\n /// File displayed in a popup window\n /// File displayed embedded in a popup window\n /// File not displayed at all, but downloaded\n\n\n /// First, find out what sort of file we are dealing with.\n require_once($CFG->libdir.'/filelib.php');\n\n $querystring = '';\n $resourcetype = '';\n $embedded = false;\n $mimetype = mimeinfo(\"type\", $resource->reference);\n $pagetitle = strip_tags($course->shortname.': '.format_string($resource->name));\n\n $formatoptions = new object();\n $formatoptions->noclean = true;\n\n if ($resource->options != \"forcedownload\") { // TODO nicolasconnault 14-03-07: This option should be renamed \"embed\"\n if (in_array($mimetype, array('image/gif','image/jpeg','image/png'))) { // It's an image\n $resourcetype = \"image\";\n $embedded = true;\n\n } else if ($mimetype == \"audio/mp3\") { // It's an MP3 audio file\n $resourcetype = \"mp3\";\n $embedded = true;\n\n } else if ($mimetype == \"video/x-flv\") { // It's a Flash video file\n $resourcetype = \"flv\";\n $embedded = true;\n\n } else if (substr($mimetype, 0, 10) == \"video/x-ms\") { // It's a Media Player file\n $resourcetype = \"mediaplayer\";\n $embedded = true;\n\n } else if ($mimetype == \"video/quicktime\") { // It's a Quicktime file\n $resourcetype = \"quicktime\";\n $embedded = true;\n\n } else if ($mimetype == \"application/x-shockwave-flash\") { // It's a Flash file\n $resourcetype = \"flash\";\n $embedded = true;\n\n } else if ($mimetype == \"video/mpeg\") { // It's a Mpeg file\n $resourcetype = \"mpeg\";\n $embedded = true;\n\n } else if ($mimetype == \"text/html\") { // It's a web page\n $resourcetype = \"html\";\n\n } else if ($mimetype == \"application/zip\") { // It's a zip archive\n $resourcetype = \"zip\";\n $embedded = true;\n\n } else if ($mimetype == 'application/pdf' || $mimetype == 'application/x-pdf') {\n $resourcetype = \"pdf\";\n $embedded = true;\n } else if ($mimetype == \"audio/x-pn-realaudio\") { // It's a realmedia file\n $resourcetype = \"rm\";\n $embedded = true;\n } \n }\n\n $isteamspeak = (stripos($resource->reference, 'teamspeak://') === 0);\n\n /// Form the parse string\n $querys = array();\n if (!empty($resource->alltext)) {\n $parray = explode(',', $resource->alltext);\n foreach ($parray as $fieldstring) {\n list($moodleparam, $urlname) = explode('=', $fieldstring);\n $value = urlencode($this->parameters[$moodleparam]['value']);\n $querys[urlencode($urlname)] = $value;\n $querysbits[] = urlencode($urlname) . '=' . $value;\n }\n if ($isteamspeak) {\n $querystring = implode('?', $querysbits);\n } else {\n $querystring = implode('&amp;', $querysbits);\n }\n }\n\n\n /// Set up some variables\n\n $inpopup = optional_param('inpopup', 0, PARAM_BOOL);\n\n if (resource_is_url($resource->reference)) {\n $fullurl = $resource->reference;\n if (!empty($querystring)) {\n $urlpieces = parse_url($resource->reference);\n if (empty($urlpieces['query']) or $isteamspeak) {\n $fullurl .= '?'.$querystring;\n } else {\n $fullurl .= '&amp;'.$querystring;\n }\n }\n\n } else if ($CFG->resource_allowlocalfiles and (strpos($resource->reference, RESOURCE_LOCALPATH) === 0)) { // Localpath\n $localpath = get_user_preferences('resource_localpath', 'D:');\n $relativeurl = str_replace(RESOURCE_LOCALPATH, $localpath, $resource->reference);\n\n if ($querystring) {\n $relativeurl .= '?'.$querystring;\n }\n\n $relativeurl = str_replace('\\\\', '/', $relativeurl);\n $relativeurl = str_replace(' ', '%20', $relativeurl);\n $fullurl = 'file:///'.htmlentities($relativeurl);\n $localpath = true;\n\n } else { // Normal uploaded file\n $forcedownloadsep = '?';\n if ($resource->options == 'forcedownload') {\n $querys['forcedownload'] = '1';\n }\n $fullurl = get_file_url($course->id.'/'.$resource->reference, $querys);\n }\n\n /// Print a notice and redirect if we are trying to access a file on a local file system\n /// and the config setting has been disabled\n if (!$CFG->resource_allowlocalfiles and (strpos($resource->reference, RESOURCE_LOCALPATH) === 0)) {\n if ($inpopup) {\n print_header($pagetitle, $course->fullname);\n } else {\n $navigation = build_navigation($this->navlinks, $cm);\n print_header($pagetitle, $course->fullname, $navigation,\n \"\", \"\", true, update_module_button($cm->id, $course->id, $this->strresource), navmenu($course, $cm));\n }\n notify(get_string('notallowedlocalfileaccess', 'resource', ''));\n if ($inpopup) {\n close_window_button();\n }\n print_footer('none');\n die;\n }\n\n\n /// Check whether this is supposed to be a popup, but was called directly\n if ($resource->popup and !$inpopup) { /// Make a page and a pop-up window\n $navigation = build_navigation($this->navlinks, $cm);\n print_header($pagetitle, $course->fullname, $navigation,\n \"\", \"\", true, update_module_button($cm->id, $course->id, $this->strresource), navmenu($course, $cm));\n\n echo \"\\n<script type=\\\"text/javascript\\\">\";\n echo \"\\n<!--\\n\";\n echo \"openpopup('/mod/resource/view.php?inpopup=true&id={$cm->id}','resource{$resource->id}','{$resource->popup}');\\n\";\n echo \"\\n-->\\n\";\n echo '</script>';\n\n if (trim(strip_tags($resource->summary))) {\n print_simple_box(format_text($resource->summary, FORMAT_MOODLE, $formatoptions), \"center\");\n }\n\n $link = \"<a href=\\\"$CFG->wwwroot/mod/resource/view.php?inpopup=true&amp;id={$cm->id}\\\" \"\n . \"onclick=\\\"this.target='resource{$resource->id}'; return openpopup('/mod/resource/view.php?inpopup=true&amp;id={$cm->id}', \"\n . \"'resource{$resource->id}','{$resource->popup}');\\\">\".format_string($resource->name,true).\"</a>\";\n\n echo '<div class=\"popupnotice\">';\n print_string('popupresource', 'resource');\n echo '<br />';\n print_string('popupresourcelink', 'resource', $link);\n echo '</div>';\n print_footer($course);\n exit;\n }\n\n\n /// Now check whether we need to display a frameset\n\n $frameset = optional_param('frameset', '', PARAM_ALPHA);\n if (empty($frameset) and !$embedded and !$inpopup and ($resource->options == \"frame\" || $resource->options == \"objectframe\") and empty($USER->screenreader)) {\n /// display the resource into a object tag\n if ($resource->options == \"objectframe\") {\n /// Yahoo javascript libaries for updating embedded object size\n require_js(array('yui_utilities'));\n require_js(array('yui_container'));\n require_js(array('yui_dom-event'));\n require_js(array('yui_dom'));\n\n\n /// Moodle Header and navigation bar\n $navigation = build_navigation($this->navlinks, $cm);\n print_header($pagetitle, $course->fullname, $navigation, \"\", \"\", true, update_module_button($cm->id, $course->id, $this->strresource), navmenu($course, $cm, \"parent\"));\n $options = new object();\n $options->para = false;\n if (!empty($localpath)) { // Show some help\n echo '<div class=\"mdl-right helplink\">';\n link_to_popup_window ('/mod/resource/type/file/localpath.php', get_string('localfile', 'resource'), get_string('localfilehelp','resource'), 400, 500, get_string('localfilehelp', 'resource'));\n echo '</div>';\n }\n echo '</div></div>';\n\n /// embedded file into iframe if the resource is on another domain\n ///\n /// This case is not XHTML strict but there is no alternative\n /// The object tag alternative is XHTML strict, however IE6-7 displays a blank object on accross domain by default,\n /// so we decided to use iframe for accross domain MDL-10021\n if (!stristr($fullurl,$CFG->wwwroot)) {\n echo '<p><iframe id=\"embeddedhtml\" src =\"'.$fullurl.'\" width=\"100%\" height=\"600\"></iframe></p>';\n }\n else {\n /// embedded HTML file into an object tag\n echo '<p><object id=\"embeddedhtml\" data=\"' . $fullurl . '\" type=\"'.$mimetype.'\" width=\"800\" height=\"600\">\n alt : <a href=\"' . $fullurl . '\">' . $fullurl . '</a>\n </object></p>';\n }\n /// add some javascript in order to fit this object tag into the browser window\n echo '<script type=\"text/javascript\">\n //<![CDATA[\n function resizeEmbeddedHtml() {\n //calculate new embedded html height size\n ';\n if (!empty($resource->summary)) {\n echo' objectheight = YAHOO.util.Dom.getViewportHeight() - 230;\n ';\n }\n else {\n echo' objectheight = YAHOO.util.Dom.getViewportHeight() - 120;\n ';\n }\n echo ' //the object tag cannot be smaller than a human readable size\n if (objectheight < 200) {\n objectheight = 200;\n }\n //resize the embedded html object\n YAHOO.util.Dom.setStyle(\"embeddedhtml\", \"height\", objectheight+\"px\");\n YAHOO.util.Dom.setStyle(\"embeddedhtml\", \"width\", \"100%\");\n }\n resizeEmbeddedHtml();\n YAHOO.widget.Overlay.windowResizeEvent.subscribe(resizeEmbeddedHtml);\n //]]>\n </script>\n ';\n\n /// print the summary\n if (!empty($resource->summary)) {\n print_simple_box(format_text($resource->summary, FORMAT_MOODLE, $formatoptions, $course->id), \"center\");\n }\n echo \"</body></html>\";\n exit;\n }\n /// display the resource into a frame tag\n else {\n @header('Content-Type: text/html; charset=utf-8');\n echo \"<!DOCTYPE html PUBLIC \\\"-//W3C//DTD XHTML 1.0 Frameset//EN\\\" \\\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\\\">\\n\";\n echo \"<html dir=\\\"ltr\\\">\\n\";\n echo '<head>';\n echo '<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />';\n echo \"<title>\" . format_string($course->shortname) . \": \".strip_tags(format_string($resource->name,true)).\"</title></head>\\n\";\n echo \"<frameset rows=\\\"$CFG->resource_framesize,*\\\">\";\n echo \"<frame src=\\\"view.php?id={$cm->id}&amp;type={$resource->type}&amp;frameset=top\\\" title=\\\"\".get_string('modulename','resource').\"\\\"/>\";\n if (!empty($localpath)) { // Show it like this so we interpose some HTML\n echo \"<frame src=\\\"view.php?id={$cm->id}&amp;type={$resource->type}&amp;inpopup=true\\\" title=\\\"\".get_string('modulename','resource').\"\\\"/>\";\n } else {\n echo \"<frame src=\\\"$fullurl\\\" title=\\\"\".get_string('modulename','resource').\"\\\"/>\";\n }\n echo \"</frameset>\";\n echo \"</html>\";\n exit;\n }\n }\n\n\n /// We can only get here once per resource, so add an entry to the log\n\n add_to_log($course->id, \"resource\", \"view\", \"view.php?id={$cm->id}\", $resource->id, $cm->id);\n\n\n /// If we are in a frameset, just print the top of it\n\n if (!empty( $frameset ) and ($frameset == \"top\") ) {\n $navigation = build_navigation($this->navlinks, $cm);\n print_header($pagetitle, $course->fullname, $navigation,\n \"\", \"\", true, update_module_button($cm->id, $course->id, $this->strresource), navmenu($course, $cm, \"parent\"));\n\n $options = new object();\n $options->para = false;\n echo '<div class=\"summary\">'.format_text($resource->summary, FORMAT_HTML, $options).'</div>';\n if (!empty($localpath)) { // Show some help\n echo '<div class=\"mdl-right helplink\">';\n link_to_popup_window ('/mod/resource/type/file/localpath.php', get_string('localfile', 'resource'),\n get_string('localfilehelp','resource'), 400, 500, get_string('localfilehelp', 'resource'));\n echo '</div>';\n }\n print_footer('empty');\n exit;\n }\n\n\n /// Display the actual resource\n if ($embedded) { // Display resource embedded in page\n $strdirectlink = get_string(\"directlink\", \"resource\");\n\n if ($inpopup) {\n print_header($pagetitle);\n } else {\n $navigation = build_navigation($this->navlinks, $cm);\n print_header_simple($pagetitle, '', $navigation, \"\", \"\", true,\n update_module_button($cm->id, $course->id, $this->strresource), navmenu($course, $cm, \"self\"));\n\n }\n\n if ($resourcetype == \"image\") {\n echo '<div class=\"resourcecontent resourceimg\">';\n echo \"<img title=\\\"\".strip_tags(format_string($resource->name,true)).\"\\\" class=\\\"resourceimage\\\" src=\\\"$fullurl\\\" alt=\\\"\\\" />\";\n echo '</div>';\n\n } else if ($resourcetype == \"mp3\") {\n if (!empty($THEME->resource_mp3player_colors)) {\n $c = $THEME->resource_mp3player_colors; // You can set this up in your theme/xxx/config.php\n } else {\n $c = 'bgColour=000000&btnColour=ffffff&btnBorderColour=cccccc&iconColour=000000&'.\n 'iconOverColour=00cc00&trackColour=cccccc&handleColour=ffffff&loaderColour=ffffff&'.\n 'font=Arial&fontColour=FF33FF&buffer=10&waitForPlay=no&autoPlay=yes';\n }\n $c .= '&volText='.get_string('vol', 'resource').'&panText='.get_string('pan','resource');\n $c = htmlentities($c);\n $id = 'filter_mp3_'.time(); //we need something unique because it might be stored in text cache\n $cleanurl = addslashes_js($fullurl);\n\n\n // If we have Javascript, use UFO to embed the MP3 player, otherwise depend on plugins\n\n echo '<div class=\"resourcecontent resourcemp3\">';\n\n echo '<span class=\"mediaplugin mediaplugin_mp3\" id=\"'.$id.'\"></span>'.\n '<script type=\"text/javascript\">'.\"\\n\".\n '//<![CDATA['.\"\\n\".\n 'var FO = { movie:\"'.$CFG->wwwroot.'/lib/mp3player/mp3player.swf?src='.$cleanurl.'\",'.\"\\n\".\n 'width:\"600\", height:\"70\", majorversion:\"6\", build:\"40\", flashvars:\"'.$c.'\", quality: \"high\" };'.\"\\n\".\n 'UFO.create(FO, \"'.$id.'\");'.\"\\n\".\n '//]]>'.\"\\n\".\n '</script>'.\"\\n\";\n\n echo '<noscript>';\n\n echo \"<object type=\\\"audio/mpeg\\\" data=\\\"$fullurl\\\" width=\\\"600\\\" height=\\\"70\\\">\";\n echo \"<param name=\\\"src\\\" value=\\\"$fullurl\\\" />\";\n echo '<param name=\"quality\" value=\"high\" />';\n echo '<param name=\"autoplay\" value=\"true\" />';\n echo '<param name=\"autostart\" value=\"true\" />';\n echo '</object>';\n echo '<p><a href=\"' . $fullurl . '\">' . $fullurl . '</a></p>';\n\n echo '</noscript>';\n echo '</div>';\n\n } else if ($resourcetype == \"flv\") {\n $id = 'filter_flv_'.time(); //we need something unique because it might be stored in text cache\n $cleanurl = addslashes_js($fullurl);\n\n\n // If we have Javascript, use UFO to embed the FLV player, otherwise depend on plugins\n\n echo '<div class=\"resourcecontent resourceflv\">';\n\n echo '<span class=\"mediaplugin mediaplugin_flv\" id=\"'.$id.'\"></span>'.\n '<script type=\"text/javascript\">'.\"\\n\".\n '//<![CDATA['.\"\\n\".\n 'var FO = { movie:\"'.$CFG->wwwroot.'/filter/mediaplugin/flvplayer.swf?file='.$cleanurl.'\",'.\"\\n\".\n 'width:\"600\", height:\"400\", majorversion:\"6\", build:\"40\", allowscriptaccess:\"never\", quality: \"high\" };'.\"\\n\".\n 'UFO.create(FO, \"'.$id.'\");'.\"\\n\".\n '//]]>'.\"\\n\".\n '</script>'.\"\\n\";\n\n echo '<noscript>';\n\n echo \"<object type=\\\"video/x-flv\\\" data=\\\"$fullurl\\\" width=\\\"600\\\" height=\\\"400\\\">\";\n echo \"<param name=\\\"src\\\" value=\\\"$fullurl\\\" />\";\n echo '<param name=\"quality\" value=\"high\" />';\n echo '<param name=\"autoplay\" value=\"true\" />';\n echo '<param name=\"autostart\" value=\"true\" />';\n echo '</object>';\n echo '<p><a href=\"' . $fullurl . '\">' . $fullurl . '</a></p>';\n\n echo '</noscript>';\n echo '</div>';\n\n } else if ($resourcetype == \"mediaplayer\") {\n echo '<div class=\"resourcecontent resourcewmv\">';\n echo '<object type=\"video/x-ms-wmv\" data=\"' . $fullurl . '\">';\n echo '<param name=\"controller\" value=\"true\" />';\n echo '<param name=\"autostart\" value=\"true\" />';\n echo \"<param name=\\\"src\\\" value=\\\"$fullurl\\\" />\";\n echo '<param name=\"scale\" value=\"noScale\" />';\n echo \"<a href=\\\"$fullurl\\\">$fullurl</a>\";\n echo '</object>';\n echo '</div>';\n\n } else if ($resourcetype == \"mpeg\") {\n echo '<div class=\"resourcecontent resourcempeg\">';\n echo '<object classid=\"CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95\"\n codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsm p2inf.cab#Version=5,1,52,701\"\n type=\"application/x-oleobject\">';\n echo \"<param name=\\\"fileName\\\" value=\\\"$fullurl\\\" />\";\n echo '<param name=\"autoStart\" value=\"true\" />';\n echo '<param name=\"animationatStart\" value=\"true\" />';\n echo '<param name=\"transparentatStart\" value=\"true\" />';\n echo '<param name=\"showControls\" value=\"true\" />';\n echo '<param name=\"Volume\" value=\"-450\" />';\n echo '<!--[if !IE]>-->';\n echo '<object type=\"video/mpeg\" data=\"' . $fullurl . '\">';\n echo '<param name=\"controller\" value=\"true\" />';\n echo '<param name=\"autostart\" value=\"true\" />';\n echo \"<param name=\\\"src\\\" value=\\\"$fullurl\\\" />\";\n echo \"<a href=\\\"$fullurl\\\">$fullurl</a>\";\n echo '<!--<![endif]-->';\n echo '<a href=\"' . $fullurl . '\">' . $fullurl . '</a>';\n echo '<!--[if !IE]>-->';\n echo '</object>';\n echo '<!--<![endif]-->';\n echo '</object>';\n echo '</div>';\n } else if ($resourcetype == \"rm\") {\n\n echo '<div class=\"resourcecontent resourcerm\">'; \n echo '<object classid=\"clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA\" width=\"320\" height=\"240\">';\n echo '<param name=\"src\" value=\"' . $fullurl . '\" />';\n echo '<param name=\"controls\" value=\"All\" />';\n echo '<!--[if !IE]>-->';\n echo '<object type=\"audio/x-pn-realaudio-plugin\" data=\"' . $fullurl . '\" width=\"320\" height=\"240\">';\n echo '<param name=\"controls\" value=\"All\" />';\n echo '<a href=\"' . $fullurl . '\">' . $fullurl .'</a>';\n echo '</object>';\n echo '<!--<![endif]-->';\n echo '</object>';\n echo '</div>'; \n\n } else if ($resourcetype == \"quicktime\") {\n echo '<div class=\"resourcecontent resourceqt\">';\n\n echo '<object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\"';\n echo ' codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\">';\n echo \"<param name=\\\"src\\\" value=\\\"$fullurl\\\" />\";\n echo '<param name=\"autoplay\" value=\"true\" />';\n echo '<param name=\"loop\" value=\"true\" />';\n echo '<param name=\"controller\" value=\"true\" />';\n echo '<param name=\"scale\" value=\"aspect\" />';\n\n echo '<!--[if !IE]>-->';\n echo \"<object type=\\\"video/quicktime\\\" data=\\\"$fullurl\\\">\";\n echo '<param name=\"controller\" value=\"true\" />';\n echo '<param name=\"autoplay\" value=\"true\" />';\n echo '<param name=\"loop\" value=\"true\" />';\n echo '<param name=\"scale\" value=\"aspect\" />';\n echo '<!--<![endif]-->';\n echo '<a href=\"' . $fullurl . '\">' . $fullurl . '</a>';\n echo '<!--[if !IE]>-->';\n echo '</object>';\n echo '<!--<![endif]-->';\n echo '</object>';\n echo '</div>';\n } else if ($resourcetype == \"flash\") {\n echo '<div class=\"resourcecontent resourceswf\">';\n echo '<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\">';\n echo \"<param name=\\\"movie\\\" value=\\\"$fullurl\\\" />\";\n echo '<param name=\"autoplay\" value=\"true\" />';\n echo '<param name=\"loop\" value=\"true\" />';\n echo '<param name=\"controller\" value=\"true\" />';\n echo '<param name=\"scale\" value=\"aspect\" />';\n echo '<param name=\"base\" value=\".\" />';\n echo '<!--[if !IE]>-->';\n echo \"<object type=\\\"application/x-shockwave-flash\\\" data=\\\"$fullurl\\\">\";\n echo '<param name=\"controller\" value=\"true\" />';\n echo '<param name=\"autoplay\" value=\"true\" />';\n echo '<param name=\"loop\" value=\"true\" />';\n echo '<param name=\"scale\" value=\"aspect\" />';\n echo '<param name=\"base\" value=\".\" />';\n echo '<!--<![endif]-->';\n echo '<a href=\"' . $fullurl . '\">' . $fullurl . '</a>';\n echo '<!--[if !IE]>-->';\n echo '</object>';\n echo '<!--<![endif]-->';\n echo '</object>';\n echo '</div>';\n\n } elseif ($resourcetype == 'zip') {\n echo '<div class=\"resourcepdf\">';\n echo get_string('clicktoopen', 'resource') . '<a href=\"' . $fullurl . '\">' . format_string($resource->name) . '</a>';\n echo '</div>';\n\n } elseif ($resourcetype == 'pdf') {\n echo '<div class=\"resourcepdf\">';\n echo '<object data=\"' . $fullurl . '\" type=\"application/pdf\">';\n echo '<param name=\"src\" value=\"' . $fullurl . '\" />';\n echo get_string('clicktoopen', 'resource') . '<a href=\"' . $fullurl . '\">' . format_string($resource->name) . '</a>';\n echo '</object>';\n echo '</div>';\n }\n\n if (trim($resource->summary)) {\n print_simple_box(format_text($resource->summary, FORMAT_MOODLE, $formatoptions, $course->id), \"center\");\n }\n\n if ($inpopup) {\n echo \"<div class=\\\"popupnotice\\\">(<a href=\\\"$fullurl\\\">$strdirectlink</a>)</div>\";\n echo \"</div>\"; // MDL-12098\n print_footer($course); // MDL-12098\n } else {\n print_spacer(20,20);\n print_footer($course);\n }\n\n } else { // Display the resource on it's own\n if (!empty($localpath)) { // Show a link to help work around browser security\n echo '<div class=\"mdl-right helplink\">';\n link_to_popup_window ('/mod/resource/type/file/localpath.php', get_string('localfile', 'resource'),\n get_string('localfilehelp','resource'), 400, 500, get_string('localfilehelp', 'resource'));\n echo '</div>';\n echo \"<div class=\\\"popupnotice\\\">(<a href=\\\"$fullurl\\\">$fullurl</a>)</div>\";\n }\n redirect($fullurl);\n }\n\n }", "title": "" }, { "docid": "14ed889b850393fe8b1f3290fc49740e", "score": "0.6189695", "text": "public function show(Dispenser $dispenser)\n {\n //\n }", "title": "" }, { "docid": "990c774538153829a382b969fb274ad6", "score": "0.61804265", "text": "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "title": "" }, { "docid": "0180fbb47af0be5e609b81a6e3465c37", "score": "0.6171014", "text": "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "title": "" }, { "docid": "428541aff5a20db0753edebab2c7fb73", "score": "0.6082806", "text": "public function get(Resource $resource);", "title": "" }, { "docid": "1a2ff798e7b52737e1e6ae5b0d854f6a", "score": "0.60512596", "text": "public function show($id)\n\t{\n\t\t// display *some* of the resource...\n\t\treturn Post::find($id);\n\t}", "title": "" }, { "docid": "8cb2cf294db063cb41e20820f36641f0", "score": "0.60389996", "text": "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "title": "" }, { "docid": "586d0347683cd6c5e16251dd1e1a0a98", "score": "0.60363364", "text": "public function show($id)\n {\n $data = Resource::findOrFail($id);\n return view('Resource/view', compact('data'));\n }", "title": "" }, { "docid": "da456d60e11065d629261fc79e691a95", "score": "0.6006895", "text": "public function displayAction()\n {\n $id = $this->params['_param_1'];\n $this->flash['message'] = \"Arriba loco, este es el mensaje del flash!\";\n return $this->render( $id );\n }", "title": "" }, { "docid": "7fdf71b227abd04e4de9889539cd1698", "score": "0.59927016", "text": "public function displayAction()\n {\n \n $this->view->headLink()->appendStylesheet($this->view->baseUrl().'/css/profile.css');\n \n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n );\n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams());\n\n\n if ($input->isValid()) {\n\n $user_info = new Tripjacks_Model_Venue;\n\n $result = $user_info->getVenue($input->id);\n\n if (count($result) == 1) {\n $this->view->user_info = $result[0];\n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404);\n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input');\n }\n }", "title": "" }, { "docid": "6791390f58188104a1f11120602bda6c", "score": "0.59724826", "text": "public function show($id)\n {\n // Get the resource using the parent API\n $object = $this->api()->retrieve($id);\n\n // Render show view\n $data = [Str::camel($this->package) => $object];\n return $this->content('show', $data);\n }", "title": "" }, { "docid": "dbf7cb71fa21dced48bad29b90c7f51e", "score": "0.59606946", "text": "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5954321", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d2bd10ab674d0671bf2851850995cea8", "score": "0.5891874", "text": "public function show(Resena $resena)\n {\n }", "title": "" }, { "docid": "d752fd3972b546ef194ae14ab221ca30", "score": "0.58688277", "text": "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "title": "" }, { "docid": "f02f37fffab992508c7d7d6f7ae94f94", "score": "0.58684236", "text": "public function showAction() {\n\n // validate contact id is int\n $id = $this->route_params[\"id\"];\n // if id is invalid redirect to 404 page\n if (filter_var($id, FILTER_VALIDATE_INT) === false) {\n $this->show404();\n return;\n }\n\n $contact_obj = new Contact();\n $contact = $contact_obj->findById($id);\n // if no contact returned then display error message\n if ($contact == false) {\n //set error message\n $_SESSION[\"error_message\"] = \"Contact not found or deleted\";\n // redirect to show all contacts if contacts not found\n header(\"Location: /contacts\");\n return;\n }\n // render the view if all everything is Ok\n View::renderTemplate(\"contacts/show.twig.php\", [\"contact\" => $contact]);\n }", "title": "" }, { "docid": "4aec6f94d5731faefe27bdf32f7cbd44", "score": "0.5851883", "text": "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "title": "" }, { "docid": "2771b374a21e331a50c3ffd5b3e431ca", "score": "0.58124036", "text": "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "title": "" }, { "docid": "305f64db85d64f68019d2fadcd0a85d2", "score": "0.58012545", "text": "public function show()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "5b7cde41d4a1270d31720878d4a50b19", "score": "0.57936835", "text": "public function show($id)\n\t{\n\t\treturn $this->success($this->resource->getById($id));\n\t}", "title": "" }, { "docid": "41e5ee3783ca0e67337c6b41b7d0ca62", "score": "0.57929444", "text": "public function display()\n {\n echo $this->fetch();\n }", "title": "" }, { "docid": "fd37d1765d15b4bc18c928879eeab887", "score": "0.5791527", "text": "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "title": "" }, { "docid": "e918056f269cc66c35d0c9d5ae72cf98", "score": "0.5785671", "text": "protected function addResourceShow($name, $base, $controller, $options)\n\t{\n\t\t$uri = $this->getResourceUri($name).'/{'.$base.'}.{format?}';\n\n\t\treturn $this->get($uri, $this->getResourceAction($name, $controller, 'show', $options));\n\t}", "title": "" }, { "docid": "8e4604d345a4a1aa92109fa7c7b9b1e1", "score": "0.57850385", "text": "public function showAction(I18NResource $i18NResource)\n {\n $use_translations = $this->get('Services')->get('use_translations');\n\n if(!$use_translations){\n throw $this->createNotFoundException('Not a valid request');\n }\n\n $this->get('Services')->setMenuItem('I18NResource');\n $changes = $this->get('Services')->getLogsByEntity($i18NResource);\n\n return $this->render('i18nresource/show.html.twig', array(\n 'i18NResource' => $i18NResource,\n 'changes' => $changes,\n ));\n }", "title": "" }, { "docid": "dfcf7f89daddfb442f3e0ba6b417b34a", "score": "0.57804495", "text": "public function specialdisplayAction()\n {\n \n $this->view->headLink()->appendStylesheet($this->view->baseUrl().'/css/profile.css');\n \n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n );\n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams());\n\n\n if ($input->isValid()) {\n\n $user_info = new Tripjacks_Model_Venue;\n\n $result = $user_info->getVenue($input->id);\n\n if (count($result) == 1) {\n $this->view->user_info = $result[0];\n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404);\n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input');\n }\n }", "title": "" }, { "docid": "496570de6c493cd9fe30f7c52ceb87d1", "score": "0.57693255", "text": "public function show($id)\n\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t//\n\t\t\t\t\t}", "title": "" }, { "docid": "fcef539023519ca355832da7d8f035c5", "score": "0.57576865", "text": "public function displayTask($id=null)\n\t{\n\t\t// Incoming\n\t\tif (!$id)\n\t\t{\n\t\t\t$id = Request::getInt('id', 0);\n\t\t}\n\n\t\t// Ensure we have an ID to work with\n\t\tif (!$id)\n\t\t{\n\t\t\tApp::abort(404, Lang::txt('CONTRIBUTE_NO_ID'));\n\t\t}\n\n\t\t// Get all contributors of this resource\n\t\t$resource = Entry::oneOrFail($id);\n\n\t\t$authors = $resource->authors()\n\t\t\t->ordered()\n\t\t\t->rows();\n\n\t\t// Get all roles for this resoruce type\n\t\t$roles = $resource->type->roles()->rows();\n\n\t\t// Output view\n\t\t$this->view\n\t\t\t->set('config', $this->config)\n\t\t\t->set('id', $id)\n\t\t\t->set('contributors', $authors)\n\t\t\t->set('roles', $roles)\n\t\t\t->setErrors($this->getErrors())\n\t\t\t->setLayout('display')\n\t\t\t->display();\n\t}", "title": "" }, { "docid": "a3e57330d7cd59896b945f16d0e12a89", "score": "0.5756713", "text": "public function display()\n {\n echo $this->render();\n }", "title": "" }, { "docid": "1e8ae24781dac20c4f5e103867a805e0", "score": "0.5756208", "text": "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "title": "" }, { "docid": "69113639710554fd174b3aaec6536b9c", "score": "0.57561266", "text": "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "title": "" }, { "docid": "e3b51ebfe04703c114ab39fc729ba43b", "score": "0.5749091", "text": "public function show(Entry $entry)\n {\n //\n }", "title": "" }, { "docid": "1eedca4ba72a90a807a2f92511283570", "score": "0.57460064", "text": "public function show()\n\t{\n\n\n\t}", "title": "" }, { "docid": "5e79caa6f512ec951cafbf72e8caa6f2", "score": "0.57435393", "text": "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "title": "" }, { "docid": "e68751480fa47a0b2d2bc46570e3a883", "score": "0.5735067", "text": "public function display($id = null) {\n \n }", "title": "" }, { "docid": "ca0564d197f7b97c9c7bb3bf9ec0d891", "score": "0.57342285", "text": "public function display($id = null) {\n\t\t$page = $this->SimplePage->findById($id);\n\t\tif(!$page){\n\t\t\t$this->Session->setFlash(__('Page not found'),'error');\n\t\t\t$this->redirect($this->referer());\n\t\t}\n\t\t\n\t\t//If the page was requested using requestAction, return the page object. Can be handy for integration of content in custom pages.\n\t\tif (! empty($this->request->params['requested']) ) {\n\t\t\treturn $page;\n\t\t}\n\t\t\n\t\t$this->set('page',$page);\n\t}", "title": "" }, { "docid": "cd5d84906dc48426110533ed06d6910f", "score": "0.5728813", "text": "public function show()\n {\n $data = $this->m->getOne('main', Validate::sanitize($_GET['id']));\n \n //sending data to the view\n $this->view->assign('id', $_GET['id']);\n $this->view->assign('data', $data);\n $this->view->assign('title', 'Page title');\n $this->view->display('main/show.tpl');\n \n }", "title": "" }, { "docid": "7684a3ad9102aa78b598eb1a828f68c5", "score": "0.57259274", "text": "public function show($id)\n {\n //\n $this->_show($id);\n }", "title": "" }, { "docid": "20397e06b8673db8692c5f84120c3011", "score": "0.5724891", "text": "public function show()\n\t{\n\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "e3c948157c6e692386196d78f9677b46", "score": "0.5713412", "text": "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "title": "" }, { "docid": "a494be3f6d40a2f537ff292b7a0ccaae", "score": "0.5711622", "text": "public function item($id=0)\n {\n\t\tif($this->session->userlogged_in !== '*#loggedin@Yes')\n\t\t{\n\t\t\tredirect(base_url().'dashboard/login/');\n }\n \n $resource = $this->member_resource_model->find($id);\n if(empty($resource))\n {\n $this->session->action_success_message = 'Invalid item selection.';\n redirect(base_url().'member_resources/');\n }\n \n\t\t$data = array(\n 'page_title' => 'Resource detail',\n 'resource' => $resource\n );\n\n\t\t$this->load->view('templates/header', $data);\n\t\t$this->load->view('member_resources/item_view');\n\t\t$this->load->view('templates/footer');\n }", "title": "" }, { "docid": "b791634a3b29fe8adff71b755317e88e", "score": "0.5706405", "text": "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "title": "" }, { "docid": "5766cf8c652099e6e707b39bd867a1c0", "score": "0.5704152", "text": "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "d936662ad1c81979476df2e0767c5e19", "score": "0.5699578", "text": "public function show($id)\n\t{\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "9032057600ac1cb05d858c6264b8aed1", "score": "0.5693083", "text": "public function show()\n {\n return auth()->user()->getResource();\n }", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" } ]
5a5a8586c1ff76ef278b83bd8477b8db
Sets the default partial options. The options a pager navigation partial supports should be explained in the partial file and partials provide default for everything.
[ { "docid": "102b78b07654775c9378103d6eae338d", "score": "0.0", "text": "public static function setDefaultOptions(array $options) {\n\t\tself::$defaultOptions = $options;\n\t}", "title": "" } ]
[ { "docid": "9a2f90b856298f8c04efb434f7b70b0b", "score": "0.65342414", "text": "public static function getDefaultPartial() {\n\t\tif (self::$defaultPartial === null) {\n\t\t\tself::$defaultPartial = PARTIAL_PATH.'/paginator.php';\n\t\t}\n\t\t\n\t\treturn self::$defaultPartial;\n\t}", "title": "" }, { "docid": "5f4d18de346b5d81c6181aef285d5ced", "score": "0.6289907", "text": "public static function setDefaultPartial($filename) {\n\t\tself::$defaultPartial = $filename;\n\t}", "title": "" }, { "docid": "812fddb61c3fb4a39b9add9a991bebcf", "score": "0.6039908", "text": "protected function configureViewPartialPath() {\n\t\t// set partial path\n\t\t$partialRootPath = t3lib_div::getFileAbsFileName($this->configuration['partialRootPath']);\n\t\tif($partialRootPath) {\n\t\t\t$this->view->setPartialRootPath($partialRootPath);\n\t\t}\n\t}", "title": "" }, { "docid": "281a8b017c30f5ee26b45152e31fde36", "score": "0.5962654", "text": "public function __construct(array $options = array())\n {\n $options['partials_loader'] = new Loader();\n parent::__construct($options);\n }", "title": "" }, { "docid": "38fa6b8e481775ce1531ed055bfeacc4", "score": "0.5880378", "text": "public function default_sidebar_options() {\n\n\t\t\trequire_once get_template_directory() . '/extra/default-sidebar/options/default-sidebar-options.php';\n\n\t\t}", "title": "" }, { "docid": "356a2b6d6b97a35515343608a567a780", "score": "0.54530394", "text": "public function loadTemplatesPartial()\n {\n\n /** Hook point */\n $this->hooks->call_hook('templates_loadTemplatesPartial_pre');\n\n $this->data['templates'] = $this->MTemplates->all();\n\n $this->data['categories'] = $this->MTemplates->getCategories();\n\n /** Hook point */\n $this->hooks->call_hook('templates_loadTemplatesPartial_post');\n\n $this->load->view('partial_templates', $this->data);\n\n }", "title": "" }, { "docid": "997f8a0740e1d76e22f5204ecb4d7e96", "score": "0.5395359", "text": "public function options()\n\t{\t\t\n\t\t$this->load->view($this->hf_path . '/header', array\n\t\t(\n\t\t\t'bodyclass'\t\t=> $this->bodyclass,\n\t\t));\n\n\t\t$this->load->view('admin/options', $d);\n\t\t\n\t\t$this->load->view($this->hf_path . '/footer');\n\t}", "title": "" }, { "docid": "db57ea8e8091f256722d0cf60c82524f", "score": "0.5322387", "text": "function default_options() {\n\t\t/**\n\t\t * Set default options\n\t\t */\n\t\t$defaults = array(\n\t\t\t'viewport_pc' => '100',\n\t\t\t'backwards_compat' => '0',\n\t\t\t'thumb_width' => '150',\n\t\t\t'thumb_height' => '100',\n\t\t\t'thumb_quality' => '90',\n\t\t\t'scripts_in_footer' => '0'\n\t\t);\n\n\t\tadd_option( 'rokbox2_options', $defaults );\n\t}", "title": "" }, { "docid": "d39bc301ce910fb701298c9b8491b383", "score": "0.52684736", "text": "public function initView($templates_dir, $options){}", "title": "" }, { "docid": "37e140c9f38d364c902626500bf9bdbd", "score": "0.52432144", "text": "public function initView (array $options = NULL)\n {\n }", "title": "" }, { "docid": "2fb2da4aa13810325c88adca1a7e3c55", "score": "0.522588", "text": "public function report_render( $options = array(), $partial = null ) {\n\n\t\t\t$this->_report_settings = null;\n\t\t\t$this->apply_options( $options );\n\n\t\t\t$this->prepare_render_data();\n\n\t\t\tif ( !$partial ) {\n\t\t\t\t$this->renderPartial( 'report_container' );\n\t\t\t} else {\n\t\t\t\t$this->renderPartial( $partial );\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "93d58d8cf3b0c9ae0145f8d3dc8483d0", "score": "0.5213299", "text": "function options() {\n\n\t\t//toggle presets page\n\t\t$file = isset( $_GET['manage-presets'] ) ? 'manage-presets' : 'options';\n\t\t$file = isset( $_GET['submit'] ) ? 'submit' : $file;\n\n\t\trequire dirname( $this->parent->file ) . '/templates/' . $file . '.php';\n\t}", "title": "" }, { "docid": "4e826acfdb9270c99333d0df716a0fce", "score": "0.51806474", "text": "public function setDefaultViewOptions()\n\t{\n\t\t$this->viewOptions['menuView'] = '../words/_select'; // default\n\t\t$this->viewOptions['title'] = 'Title';\n\t\t$this->viewOptions['activeTab'] = \"courses\";\n\t\t$this->viewOptions['action'] = Yii::app()->createUrl(\"words/list\");\n\t}", "title": "" }, { "docid": "ef17b4245796e22e5aaf067dfe2009e8", "score": "0.51634794", "text": "public function load_partial($partial, $data = array()) {\n return $this->load->view('partials/' . $partial, $data, TRUE);\n }", "title": "" }, { "docid": "918ee3c99287fc64eafb93c54dfbaa64", "score": "0.51361763", "text": "public static function setDefaultPerPageOptions($options)\n {\n self::$_defaultPerPageOptions = $options;\n }", "title": "" }, { "docid": "b1c923bcbf10215e60bb3c8edc236d35", "score": "0.5132971", "text": "function options_menu_init() {\n\t\tadd_options_page( __( 'Infinite Scroll Options', 'infinite-scroll' ), __( 'Infinite Scroll', 'infinite-scroll' ), 'manage_options', 'infinite_scroll_options', array( &$this, 'options' ) );\n\t}", "title": "" }, { "docid": "5cab3f3ae0843ce1159fc1a968987b12", "score": "0.5095168", "text": "public function set_template_options($options)\n {\n $this->options = $options;\n }", "title": "" }, { "docid": "2b302f7e8c42fd417356eb6da3d4bbda", "score": "0.5093393", "text": "protected function _loadDefaultOptions(){\n\t\t$this->options = $this->defaultOptions;\n\t}", "title": "" }, { "docid": "b60e0635c7862085e40cf7c94146106d", "score": "0.50634307", "text": "public function render_options_page() {\n\t\tinclude_once $this->plugin_dir_path . 'partials/bwpa-settings-display.php';\n\t}", "title": "" }, { "docid": "d99645a8bf3408c577e1826a04c1df14", "score": "0.5032298", "text": "public function resetPartialLnkOperationOptions($v = true)\n {\n $this->collLnkOperationOptionsPartial = $v;\n }", "title": "" }, { "docid": "cc114b8e261dcc4f5dd99be3abb75f3f", "score": "0.50148934", "text": "public function onRenderOptionsPage()\n {\n require_once __DIR__ . '/../../views/admin/options/page.phtml';\n }", "title": "" }, { "docid": "70c2430a8fa2c7d83823312dc36ca7d2", "score": "0.50055224", "text": "function init__view_modes()\n{\n\tglobal $ERASED_TEMPLATES_ONCE;\n\t$ERASED_TEMPLATES_ONCE=false;\n}", "title": "" }, { "docid": "8ccdad6e8b9d4b1cd5fbe67897eef198", "score": "0.5005271", "text": "public function _setDefaults () {\r\n $this->set('checked', '');\r\n $this->set('selected', '');\r\n $this->layout = 'ajax';\r\n $this->set('controller', strtolower($this->name));\r\n Configure::load('custom/' . strtolower($this->name));\r\n\t}", "title": "" }, { "docid": "5a1139d50f38f373758f30889da7cd32", "score": "0.49898812", "text": "public function load($options = array('title' => '', 'content_title' => '', 'menu' => '', 'sub_menu' => '', 'view_file' => ''))\n\t{\n\t\t$this->CI->load->view('front/header', $options);\n\t\t$this->CI->load->view($options['view_file'], $options);\n\t\t$this->CI->load->view('front/footer', $options);\n\t}", "title": "" }, { "docid": "17e62834cc1c628340d9060d5fd8691d", "score": "0.49879497", "text": "protected function setRedirectOptions()\n {\n $this->showSelection = false;\n $this->layout = '{items}';\n }", "title": "" }, { "docid": "7bfbe12b7c664edb7a6e32cd2d9d5786", "score": "0.49789804", "text": "public function setDefaultPaginatorOptions(array $options): void\n {\n $this->defaultOptions = \\array_merge($this->defaultOptions, $options);\n }", "title": "" }, { "docid": "745e9fffd6cb4d87eff8b7349e1ca762", "score": "0.49741882", "text": "public function load_defaults() {\n\n\t\tif ( $this->defaults_loaded ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->defaults_loaded = true;\n\t\t$this->defaults = BF_Shortcodes_Manager::factory( $this->base_widget_id )->defaults;\n\n\t\t$this->defaults['paginate'] = 'more_btn';\n\t\t$this->defaults['columns'] = 1;\n\t\t$this->defaults['listing-settings'] = publisher_get_option( $this->get_listing_option_id() );\n\t}", "title": "" }, { "docid": "21ab16b801dd10389750e96bd203427e", "score": "0.49721596", "text": "public function resetPartialPages($v = true)\n {\n $this->collPagesPartial = $v;\n }", "title": "" }, { "docid": "7c0149541b3b658d4de24412b362a88d", "score": "0.4963871", "text": "public function load_defaults() {\n\n\t\tif ( $this->defaults_loaded ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->defaults_loaded = true;\n\t\t$this->defaults = BF_Shortcodes_Manager::factory( $this->base_widget_id )->defaults;\n\n\t\t$this->defaults['paginate'] = 'next_prev';\n\t\t$this->defaults['pagination-show-label'] = 1;\n\t\t$this->defaults['columns'] = 1;\n\t\t$this->defaults['listing-settings'] = publisher_get_option( $this->get_listing_option_id() );\n\t}", "title": "" }, { "docid": "7c0149541b3b658d4de24412b362a88d", "score": "0.4963871", "text": "public function load_defaults() {\n\n\t\tif ( $this->defaults_loaded ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->defaults_loaded = true;\n\t\t$this->defaults = BF_Shortcodes_Manager::factory( $this->base_widget_id )->defaults;\n\n\t\t$this->defaults['paginate'] = 'next_prev';\n\t\t$this->defaults['pagination-show-label'] = 1;\n\t\t$this->defaults['columns'] = 1;\n\t\t$this->defaults['listing-settings'] = publisher_get_option( $this->get_listing_option_id() );\n\t}", "title": "" }, { "docid": "7c0149541b3b658d4de24412b362a88d", "score": "0.4963871", "text": "public function load_defaults() {\n\n\t\tif ( $this->defaults_loaded ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->defaults_loaded = true;\n\t\t$this->defaults = BF_Shortcodes_Manager::factory( $this->base_widget_id )->defaults;\n\n\t\t$this->defaults['paginate'] = 'next_prev';\n\t\t$this->defaults['pagination-show-label'] = 1;\n\t\t$this->defaults['columns'] = 1;\n\t\t$this->defaults['listing-settings'] = publisher_get_option( $this->get_listing_option_id() );\n\t}", "title": "" }, { "docid": "7c0149541b3b658d4de24412b362a88d", "score": "0.4963871", "text": "public function load_defaults() {\n\n\t\tif ( $this->defaults_loaded ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->defaults_loaded = true;\n\t\t$this->defaults = BF_Shortcodes_Manager::factory( $this->base_widget_id )->defaults;\n\n\t\t$this->defaults['paginate'] = 'next_prev';\n\t\t$this->defaults['pagination-show-label'] = 1;\n\t\t$this->defaults['columns'] = 1;\n\t\t$this->defaults['listing-settings'] = publisher_get_option( $this->get_listing_option_id() );\n\t}", "title": "" }, { "docid": "7c0149541b3b658d4de24412b362a88d", "score": "0.4963871", "text": "public function load_defaults() {\n\n\t\tif ( $this->defaults_loaded ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->defaults_loaded = true;\n\t\t$this->defaults = BF_Shortcodes_Manager::factory( $this->base_widget_id )->defaults;\n\n\t\t$this->defaults['paginate'] = 'next_prev';\n\t\t$this->defaults['pagination-show-label'] = 1;\n\t\t$this->defaults['columns'] = 1;\n\t\t$this->defaults['listing-settings'] = publisher_get_option( $this->get_listing_option_id() );\n\t}", "title": "" }, { "docid": "7c0149541b3b658d4de24412b362a88d", "score": "0.4963871", "text": "public function load_defaults() {\n\n\t\tif ( $this->defaults_loaded ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->defaults_loaded = true;\n\t\t$this->defaults = BF_Shortcodes_Manager::factory( $this->base_widget_id )->defaults;\n\n\t\t$this->defaults['paginate'] = 'next_prev';\n\t\t$this->defaults['pagination-show-label'] = 1;\n\t\t$this->defaults['columns'] = 1;\n\t\t$this->defaults['listing-settings'] = publisher_get_option( $this->get_listing_option_id() );\n\t}", "title": "" }, { "docid": "7c0149541b3b658d4de24412b362a88d", "score": "0.4963871", "text": "public function load_defaults() {\n\n\t\tif ( $this->defaults_loaded ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->defaults_loaded = true;\n\t\t$this->defaults = BF_Shortcodes_Manager::factory( $this->base_widget_id )->defaults;\n\n\t\t$this->defaults['paginate'] = 'next_prev';\n\t\t$this->defaults['pagination-show-label'] = 1;\n\t\t$this->defaults['columns'] = 1;\n\t\t$this->defaults['listing-settings'] = publisher_get_option( $this->get_listing_option_id() );\n\t}", "title": "" }, { "docid": "7c0149541b3b658d4de24412b362a88d", "score": "0.4963871", "text": "public function load_defaults() {\n\n\t\tif ( $this->defaults_loaded ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->defaults_loaded = true;\n\t\t$this->defaults = BF_Shortcodes_Manager::factory( $this->base_widget_id )->defaults;\n\n\t\t$this->defaults['paginate'] = 'next_prev';\n\t\t$this->defaults['pagination-show-label'] = 1;\n\t\t$this->defaults['columns'] = 1;\n\t\t$this->defaults['listing-settings'] = publisher_get_option( $this->get_listing_option_id() );\n\t}", "title": "" }, { "docid": "d1782226f292dc502f318c9ccf07e9c7", "score": "0.4954648", "text": "function include_partial($partial, $params=array())\n{\n\t$request = rtRequest::getInstance();\n\t\n\t$format = $request->getParameter('format', 'html');\n\t\n\t$array = explode('/', $partial);\n\t$count = count($array);\n\t$partial = '_' . $array[$count -1]; // all partials start with '_'\n\t$formated_partial = '_' . $array[$count -1 ] . \".$format\";\n\t\n\tunset($array[$count -1 ]); // pop up partial file name\n\t\n\t$path = implode('/', $array); // reconnect to the path\n\t\n\t// specify certain controller to render\n\tif($path)\n\t{\n\t\t$view_path = rtConfig::get('rt_app_views_dir') . DS . $path;\n\t}\n\telse \n\t{\n\t\t$view_path = rtConfig::get('rt_app_views_dir') . DS . $request->getController();\n\t}\n\t\t\n\tlist($view_tpl, $view_class) = findTemplateFileName($view_path . DS . $partial);\n\t\n\t$view = new $view_class($view_tpl, $params);\n\t\n\t// before output ob_start have stop direct output to browse, so we echo but no return string\n\techo $view->display(); \n}", "title": "" }, { "docid": "3a5ab23ecf18640cce4bead7d84b3868", "score": "0.49535906", "text": "public function dx_template_options_page() {\n\t\tinclude 'dx-template-admin-view.php';\n\t}", "title": "" }, { "docid": "2f2633436c3610d759a37a919c0048dd", "score": "0.49525034", "text": "protected function set_default_params() {\n\n\t\t$this->page->scripts = $this->page->stylesheets = $this->page->plugins = array();\n\n\t\t$this->set_html_base('plugins/cobalt/html5-starter.phtml');\n\t\t$this->set_layout('layout');\n\t\t$this->set_template($this->request->action);\n\t\t$this->set_base_title(_get('config.page.base_title'),'');\n\t\t$this->set_title(_get('config.page.title', ''));\n\t\t$this->add_meta('description', _get('config.page.description', ''));\n\t\t\n\t\t$favicon = _get('config.favicon');\n\t\t$this->set_favicon(!$favicon ? 'favicon.png' : $favicon);\n\n\t\t$google_font = _get('config.google_font');\n\t\tif ($google_font) {\n\t\t\tif (is_string($google_font)) {\n\t\t\t\t$this->google_font($google_font);\n\t\t\t} else if (is_array($google_font)) {\n\t\t\t\tforeach ($google_font as $font) {\n\t\t\t\t\t$this->google_font($font);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$icons = _get('config.icons');\n\t\tif ($icons) {\n\t\t\t$this->set_type_icons ($icons);\n\t\t}\n\n\t\t$metas = _get('config.metas');\n\t\tif ($metas)\n\t\tforeach ($metas as $key => $value) {\n\t\t\t$this->add_meta($key, $value);\n\t\t}\n\n\t\t$plugins = _get('config.plugins');\n\t\tif ($plugins)\n\t\tforeach ($plugins as $plugin) {\n\t\t\t$this->add_plugin($plugin);\n\t\t}\n\n\t\t$scripts = _get('config.scripts');\n\t\tif ($scripts)\n\t\tforeach ($scripts as $script) {\n\t\t\t$this->add_script($script);\n\t\t}\n\n\t\t$stylesheets = _get('config.stylesheets');\n\t\tif ($stylesheets)\n\t\tforeach ($stylesheets as $stylesheet) {\n\t\t\t$this->add_stylesheet($stylesheet);\n\t\t}\n\n\t\t$less = _get('config.less');\n\t\tif ($less)\n\t\tforeach ($less as $less_sheet) {\n\t\t\t$this->add_less($less_sheet);\n\t\t}\n\t}", "title": "" }, { "docid": "42bc84fe6678f5adfbc5666596670449", "score": "0.49459305", "text": "public function __construct(array $options = [])\n {\n $this->widgetBaseDir = \"\";\n $this->showCssNuggetHeaders = $options['showCssNuggetHeaders'] ?? false;\n $this->showJsNuggetHeaders = $options['showJsNuggetHeaders'] ?? false;\n $this->kitPageRenderer = null;\n }", "title": "" }, { "docid": "78ad41d1ec72be8b9adffa561dab7051", "score": "0.49167037", "text": "function monsterinsights_load_admin_partial( $template, $data = array() ) {\n // Get the base class object.\n $base = MonsterInsights();\n\n if ( monsterinsights_is_pro_version() ) {\n $dir = trailingslashit( plugin_dir_path( $base->file ) . 'pro/includes/admin/partials' );\n \n if ( file_exists( $dir . $template . '.php' ) ) {\n require_once( $dir . $template . '.php' );\n return true;\n }\n } else {\n $dir = trailingslashit( plugin_dir_path( $base->file ) . 'lite/includes/admin/partials' );\n \n if ( file_exists( $dir . $template . '.php' ) ) {\n require_once( $dir . $template . '.php' );\n return true;\n } \n }\n \n $dir = trailingslashit( plugin_dir_path( $base->file ) . 'includes/admin/partials' );\n\n if ( file_exists( $dir . $template . '.php' ) ) {\n require_once( $dir . $template . '.php' );\n return true;\n }\n \n return false;\n}", "title": "" }, { "docid": "704a4323999fc499cf6d5c80e2b7273c", "score": "0.48858243", "text": "function catch_infinite_scroll_default_options( $option = null ) {\n\t$default_options = array(\n\t\t'trigger' => 'click',\n\t\t'navigation_selector' => 'nav.navigation, nav#nav-below',\n\t\t'next_selector' => 'nav.navigation .nav-links a.next, nav.navigation .nav-links .nav-previous a, nav#nav-below .nav-previous a',\n\t\t'content_selector' => '#content',\n\t\t'item_selector' => 'article.status-publish',\n\t\t'image' => esc_url( trailingslashit( plugins_url( 'catch-infinite-scroll' ) ) . 'image/loader.gif' ),\n\t\t'load_more_text' => esc_html__( 'Load More', 'catch-infinite-scroll' ),\n\t\t'finish_text' => esc_html__( 'No more items to display', 'catch-infinite-scroll' )\n\t);\n\n\t$theme_support = get_theme_support( 'infinite-scroll' );\n\n\tif( isset( $theme_support ) && !empty( $theme_support ) ) {\n\t\t$default_options['trigger'] = isset( $theme_support[0]['type'] ) ? $theme_support[0]['type'] : 'click';\n\t\t$default_options['content_selector'] = isset( $theme_support[0]['container'] ) ? $theme_support[0]['container'] : '.site-main';\n\t}\n\n\tif ( null == $option ) {\n\t\treturn apply_filters( 'catch_infinite_scroll_options', $default_options );\n\t}\n\telse {\n\t\treturn $default_options[ $option ];\n\t}\n}", "title": "" }, { "docid": "4fc96256dc17560b8b64d53106864285", "score": "0.4885004", "text": "public function frontpage_sidebar_options() {\n\n\t\t\trequire_once get_template_directory() . '/extra/frontpage/sidebar/options/frontpage-sidebar-options.php';\n\n\t\t}", "title": "" }, { "docid": "9345d2bac49dc7b95d0640e920a685cd", "score": "0.48442838", "text": "function init()\n\t{\n\t\t//$this->view->headerFile = '_empty.phtml';\n\t\t$this->_formSearch = $this->_helper->FormSearch;\n\t\t$this->_formCreate = $this->_helper->FormCreate;\n\t}", "title": "" }, { "docid": "44ff4a04b5dcf6e6676c4b45b2f82f93", "score": "0.4832029", "text": "public function render(Zend_Navigation_Container $container = null, array $options = array()) {\n $this->menu()->setPartial(\"nav-horizontal-default.phtml\");\n return parent::render($container, $options);\n }", "title": "" }, { "docid": "a2839562560b67a568315ca607777d22", "score": "0.48221302", "text": "function load_options() {\n\t\t if ( ! empty( $this->objects[ 'Options' ] ) ) {\n\t\t\t $this->instantiate( 'Options' );\n\t\t }\n\t }", "title": "" }, { "docid": "28e286faf26116b7ee88c9d5b92f6f1d", "score": "0.48124242", "text": "public function initialize()\n {\n $this->view->setTemplateAfter('blank'); \n }", "title": "" }, { "docid": "09074a0209b301ae00fe4c2ec547c82e", "score": "0.47768137", "text": "public function accOptions(){\n \n $this->load->view('plantilla',[\n 'cuerpo'=>$this->load->view('options', [], true)]);\n\n }", "title": "" }, { "docid": "24b9ed08dd5d2d9412dce1e7d01e10c1", "score": "0.47667336", "text": "public function admin($options = array('title' => '', 'content_title' => '', 'menu' => '', 'sub_menu' => '', 'view_file' => ''))\n\t{\n\t\t$this->CI->load->view('admin/common/header', $options);\n\t\t$this->CI->load->view('admin/common/nav', $options);\n\t\t$this->CI->load->view($options['view_file'], $options);\n\t\t$this->CI->load->view('admin/common/footer', $options);\n\t}", "title": "" }, { "docid": "b719a55560113e2ed1b8d0a4f6ba3273", "score": "0.47653636", "text": "protected function setDefaultOptions()\n {\n $this->size = 4;\n $this->unsigned = false;\n $this->step = 1;\n }", "title": "" }, { "docid": "db6c86757c66c6fcfec360b46bf49a53", "score": "0.4757138", "text": "public function options(array $options = []): void\n {\n if (!empty($options['paging'])) {\n $this->_config['params'] = $options['paging'];\n unset($options['paging']);\n }\n\n $this->_config['options'] = array_filter($options + $this->_config['options']);\n if (empty($this->_config['options']['url'])) {\n $this->_config['options']['url'] = [];\n }\n }", "title": "" }, { "docid": "972bdae1ff708eaa55e0a910d65f1d84", "score": "0.47455987", "text": "private function setDefaultOptions()\n {\n // The default configuration settings.\n $this->setOptions(array(\n 'core.version' => $this->getVersion(),\n 'core.language' => 'en',\n 'core.encoding' => 'utf-8',\n 'core.decode_utf8' => false,\n 'core.prefix.function' => 'jaxon_',\n 'core.prefix.class' => 'Jaxon',\n 'core.prefix.event' => 'jaxon_event_',\n // 'core.request.uri' => '',\n 'core.request.mode' => 'asynchronous',\n 'core.request.method' => 'POST', // W3C: Method is case sensitive\n 'core.debug.on' => false,\n 'core.debug.verbose' => false,\n 'core.process.exit_after' => true,\n 'core.process.clean_buffer' => false,\n 'core.process.timeout' => 6000,\n 'core.error.handle' => false,\n 'core.error.log_file' => '',\n 'js.lib.output_id' => 0,\n 'js.lib.queue_size' => 0,\n 'js.lib.load_timeout' => 2000,\n 'js.lib.show_status' => false,\n 'js.lib.wait_cursor' => true,\n 'js.app.dir' => '',\n 'js.app.minify' => true,\n 'js.app.options' => '',\n ));\n }", "title": "" }, { "docid": "c85571f58abf21e7be0097f3f6c0de68", "score": "0.47431332", "text": "private static function defaultOptions($id, $type, $options = array()) {\n $defaultOptions = array(\n // The Id, element or querySelector of the gallery widget:\n 'container' => '#' . $id,\n // The list object property (or data attribute) with the object URL:\n 'urlProperty' => 'href',\n // Defines if images should be stretched to fill the available space,\n // while maintaining their aspect ratio\n // Set to \"cover\", to make images cover all available space\n 'stretchImages' => true,\n 'useBootstrapModal' => false,\n );\n if (BGArray::popValue('cover', $options, false))\n $options['stretchImages'] = 'cover';\n\n // HTML5 Video options\n $defaultOptions = array_merge(array(\n // The class for video content elements:\n 'videoContentClass' => 'video-content',\n // The class for video when it is loading:\n 'videoLoadingClass' => 'video-loading',\n // The class for video when it is playing:\n 'videoPlayingClass' => 'video-playing',\n // The list object property (or data attribute) for the video poster URL:\n 'videoPosterProperty' => 'poster',\n // The list object property (or data attribute) for the video sources array:\n 'videoSourcesProperty' => 'sources'\n ), $defaultOptions);\n\n // Youtube options\n $defaultOptions = array_merge(array(\n // The list object property (or data attribute) with the YouTube video id:\n 'youTubeVideoIdProperty' => 'youtube',\n // Optional object with parameters passed to the YouTube video player:\n // https://developers.google.com/youtube/player_parameters\n 'youTubePlayerVars' => null,\n // Require a click on the native YouTube player for the initial playback:\n 'youTubeClickToPlay' => true\n ), $defaultOptions);\n\n // Vimeo options\n $defaultOptions = array_merge(array(\n // The list object property (or data attribute) with the Vimeo video id:\n 'vimeoVideoIdProperty' => 'vimeo',\n // The URL for the Vimeo video player, can be extended with custom parameters:\n // https://developer.vimeo.com/player/embedding\n 'vimeoPlayerUrl' => '//player.vimeo.com/video/VIDEO_ID?api=1&player_id=PLAYER_ID',\n // The prefix for the Vimeo video player ID:\n 'vimeoPlayerIdPrefix' => 'vimeo-player-',\n // Require a click on the native Vimeo player for the initial playback:\n 'vimeoClickToPlay' => true\n ), $defaultOptions);\n\n // Type specific options\n switch ($type) {\n case self::TYPE_INLINE :\n $defaultOptions['carousel'] = true;\n BGArray::defaultValue('startSlideshow', false, $defaultOptions);\n break;\n case self::TYPE_BS_LIGHTBOX :\n $defaultOptions['useBootstrapModal'] = true;\n $defaultOptions['stretchImages'] = false;\n break;\n case self::TYPE_LIGHTBOX :\n default :\n break;\n }\n\n return self::buildOptions($options, $defaultOptions);\n }", "title": "" }, { "docid": "11ac7b4e92741859bd48df3702a6c9f2", "score": "0.47326398", "text": "public function renderOptions() {\n global $zuhaus_mikado_Framework;\n $tab \t\t= zuhaus_mikado_get_admin_tab();\n $active_page \t= $zuhaus_mikado_Framework->mkdOptions->getAdminPageFromSlug($tab);\n $current_theme \t= wp_get_theme();\n\n if ($active_page == null) return;\n ?>\n <div class=\"mkdf-options-page mkdf-page\">\n <?php $this->getHeader($current_theme->get('Name'), $current_theme->get('Version')); ?>\n <div class=\"mkdf-page-content-wrapper\">\n <div class=\"mkdf-page-content\">\n <div class=\"mkdf-page-navigation mkdf-tabs-wrapper vertical left clearfix\">\n <?php $this->getPageNav($tab); ?>\n <?php $this->getPageContent($active_page, $tab); ?>\n </div>\n </div>\n </div>\n </div>\n <a id='back_to_top' href='#'>\n <span class=\"fa-stack\">\n <span class=\"fa fa-angle-up\"></span>\n </span>\n </a>\n <?php }", "title": "" }, { "docid": "d39e046324b83f89dfcff1301f6646d8", "score": "0.47310805", "text": "public function options() {\n\t\tif (!isset($_SESSION['is_admin']) || $_SESSION['is_admin'] !== true) {\n\t\t\tredirect(base_url());\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// crea los objetos data\n\t\t$data = new stdClass();\n\t\t\n\t\t$this->load->view('header');\n\t\t$this->load->view('admin/options/options', $data);\n\t\t$this->load->view('footer');\n\t\t\n\t}", "title": "" }, { "docid": "37bb8f651f0ba9811bca2086fb77d660", "score": "0.4729669", "text": "public function initialize()\n {\n parent::initialize();\n $this->view->setTemplateBefore('admin');\n }", "title": "" }, { "docid": "2b219673a371e691b5ee2734def5882a", "score": "0.47275004", "text": "protected function optimize_default_args()\n {\n $this->default_args['opt_name'] = isset( $this->default_args['opt_name'] ) ? $this->default_args['opt_name'] . '_taxonomy_metabox' : 'cms_taxonomy_metabox';\n $this->default_args['display_name'] = esc_html__( 'Settings', CMS_TEXT_DOMAIN );\n $this->default_args['open_expanded'] = true;\n $this->default_args['footer_credit'] = '';\n $this->default_args['admin_bar'] = false;\n $this->default_args['show_import_export'] = false;\n $this->default_args['show_options_object'] = false;\n $this->default_args['ajax_save'] = false;\n $this->default_args['admin_bar_links'] = array();\n $this->default_args['share_icons'] = array();\n $this->default_args['intro_text'] = '';\n $this->default_args['footer_text'] = '';\n }", "title": "" }, { "docid": "ac64171909b54578c63e96ea63dc9c93", "score": "0.47067165", "text": "function setup_options() {\n\t\t\tif ( ! get_option ( POSTENDER_OPTIONS_NAME ) ) {\n\t\t\t\t$this->options = $this->default_options();\n\t\t\t\tadd_option ( POSTENDER_OPTIONS_NAME , $this->options );\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "baa312037d97e3c98a76cd6895ef4278", "score": "0.4694997", "text": "public function setViewPartial($partial)\n {\n $this->partial = $partial;\n return $this;\n }", "title": "" }, { "docid": "247b182903b68626380857acc17cd677", "score": "0.46899575", "text": "public function initialize(){\n\t\tparent::initialize();\n\t\t\n\t\t$this->page->set('base_route' , 'member/__name__');\n\t\t$this->page->set('title', '__title__');\n $this->page->set('description','__description__');\n\t\t\n $this->view->dataTable = true;\n\t}", "title": "" }, { "docid": "4b6d39f70bc97d16221f7206bb8717ba", "score": "0.4688902", "text": "public function resetPartialROperationTypeRequiredOptionss($v = true)\n {\n $this->collROperationTypeRequiredOptionssPartial = $v;\n }", "title": "" }, { "docid": "1d533595dca36f3672d73556db448466", "score": "0.4685639", "text": "private function setDefaultViewVars() {\n if ($this->objectManager === null) {\n $this->objectManager = GeneralUtility::makeInstance(ObjectManager::class);\n }\n if ($this->pageRenderer === null) {\n $this->pageRenderer = $this->objectManager->get(PageRenderer::class);\n }\n if ($this->cObjRenderer === null) {\n $this->cObjRenderer = $this->objectManager->get(ContentObjectRenderer::class);\n }\n\n }", "title": "" }, { "docid": "3d1be98738f66b48f535b03da2e468b7", "score": "0.46854204", "text": "public function __construct($options) {\r\n parent::__construct($options);\r\n\r\n // Get and validate parameters\r\n parse_str($_SERVER['QUERY_STRING'], $params);\r\n $this->params = self::ValidateParams($params);\r\n\r\n // Set view for page\r\n $this->SetPageView();\r\n\r\n // Set admin\r\n $this->settings['admin'] = ( isset($_SESSION['auth']) && $_SESSION['auth']->IsAuth() ) ? true : false;\r\n }", "title": "" }, { "docid": "6e0c6c657658f98d9c6b237b30194ce7", "score": "0.4669723", "text": "public function paging( $mixed, $options = array ('result_set'=> array(), 'pg' => 0, 'per_page' => 25, '' => 0, 'partial'=> 'user.phtml')\t)\n\t{\n $this->mixed = $mixed;\n $_class = \"\";\n if( isset($options['class']) && !empty($options['class']) ) $_class = $options['class'];\n if( !($this->mixed instanceof Core_Util_Paging) ) throw new Exception( \"Instance of Core_Util_Paging required \" );\n $this->links = $this->mixed->getPagedLinks();\n $_tmp = \"\";\n foreach( $this->links as $k => $v ){\n $_tmp .= \"<li>\".$v.\"</li>\";\n }\n \n /*dont return only links, but the content in a table*/\n return ( $_tmp == \"\" ) ? \"\" : \"<div class='pg pagination $_class'><ul class='pages'>\".$_tmp.\"</ul></div>\";\n\t}", "title": "" }, { "docid": "5785957621ccdd0fba050c9c4869d48a", "score": "0.4666995", "text": "function defaultSections(){\t\n\t\t$content = 'sections.php';\n\t\tinclude_once('templates/main/main_page.php');\n\t}", "title": "" }, { "docid": "74e974a541ef60dde16fe19cb3ac4742", "score": "0.46598694", "text": "function default_options()\t{\n\t\t\n\t\t// get all the plugin array data\n\t\t$this->plugin = $this->get_plugin_data();\t\n\t\t\n\t\t// default options\n\t\t$this->options = array(\n\t\t\t'enabled'\t\t\t => 0,\n\t\t);\n\t\t\n\t\t// Save all these variables to database\n\t\t$this->SaveOptions();\n\t}", "title": "" }, { "docid": "1454b4245de421f779558bf0902ece8f", "score": "0.4658572", "text": "public function setPerPageOptions($options)\n {\n $this->_perPageOptions = $options;\n if (isset($options['default'])) {\n $this->setPerPage($options['default']);\n } else {\n $this->setPerPage($options[0]);\n }\n return $this;\n }", "title": "" }, { "docid": "8e4de88eca6ac78e2aa1655d78c487ea", "score": "0.46453443", "text": "protected function defineOptions() {\n $options = parent::defineOptions();\n $options['lightbox_inline'] = array('default' => '');\n $options['lightbox_inline']['selected_field'] = array('default' => '');\n $options['lightbox_inline']['link_text'] = array('default' => '');\n $options['lightbox_inline']['link_icon'] = array('default' => '');\n $options['lightbox_inline']['link_class'] = array('default' => '');\n\n return $options;\n }", "title": "" }, { "docid": "955085d1599ebac97c964b62da34fc98", "score": "0.46396127", "text": "private function defaultOptions()\n {\n return [\n // Disable the library\n 'disable' => !empty($_REQUEST[DeferConstant::ARG_NODEFER]),\n\n // Debug optimized tags (instead of optimized HTML)\n 'debug_time' => false,\n 'debug_mode' => !empty($_REQUEST[DeferConstant::ARG_DEBUG]),\n\n // Manually add deferjs\n 'manually_add_deferjs' => false,\n 'deferjs_type_attribute' => DeferConstant::TXT_DEFAULT_DEFERJS,\n\n // Asset sources\n 'deferjs_src' => DeferConstant::SRC_DEFERJS_CDN,\n 'polyfill_src' => DeferConstant::SRC_POLYFILL_CDN,\n\n // Cache directory\n 'offline_cache_path' => DeferConstant::SCR_DEFERJS_CACHE,\n 'offline_cache_ttl' => 86400,\n\n // Copyright\n 'copyright' => DeferConstant::TXT_SHORT_COPYRIGHT,\n 'long_copyright' => DeferConstant::TXT_LONG_COPYRIGHT,\n 'console_copyright' => null,\n\n // Library injection\n 'inline_deferjs' => true,\n 'default_defer_time' => 10,\n\n // Page optimizations\n 'add_missing_meta_tags' => true,\n 'enable_preloading' => false,\n 'enable_dns_prefetch' => true,\n 'enable_lazyloading' => true,\n 'minify_output_html' => false,\n\n // Tag optimizations\n 'fix_render_blocking' => true,\n 'optimize_css' => true,\n 'optimize_scripts' => true,\n 'optimize_images' => true,\n 'optimize_iframes' => true,\n 'optimize_background' => true,\n 'optimize_anchors' => true,\n 'optimize_fallback' => true,\n\n // Third-party optimizations\n 'defer_third_party' => true,\n\n // Content placeholders\n 'use_css_fadein_effects' => false,\n 'use_color_placeholder' => false,\n\n // Lazyload placeholder\n 'img_placeholder' => '',\n 'iframe_placeholder' => 'about:blank',\n\n // Splash screen\n 'custom_splash_screen' => '',\n\n // Blacklists\n 'ignore_lazyload_paths' => [],\n 'ignore_lazyload_texts' => [],\n\n // Blacklists using CSS class names\n 'ignore_lazyload_css_class' => [],\n 'ignore_lazyload_css_selectors' => [],\n ];\n }", "title": "" }, { "docid": "e47ee83b1ac0fb0eba1d9f9dba0e68be", "score": "0.46362782", "text": "public function options_page_html()\n {\n // Set class properties to be referenced in callbacks\n $this->options = get_option( LBRY_SETTINGS );\n $this->options_speech = get_option( LBRY_SPEECH_SETTINGS );\n require_once( LBRY_ABSPATH . 'templates/options-page.php' );\n }", "title": "" }, { "docid": "a3ecb0096d22d49f6f67b98802a05186", "score": "0.46320653", "text": "protected function setPage()\n {\n $urlTemplates = array();\n\n if ($this->arParams['SEF_MODE'] === 'Y')\n {\n $variables = array();\n\n $urlTemplates = \\CComponentEngine::MakeComponentUrlTemplates(\n $this->defaultUrlTemplates,\n $this->arParams['SEF_URL_TEMPLATES']\n );\n\n $variableAliases = \\CComponentEngine::MakeComponentVariableAliases(\n $this->defaultUrlTemplates,\n $this->arParams['VARIABLE_ALIASES']\n );\n\n $this->templatePage = \\CComponentEngine::ParseComponentPath(\n $this->arParams['SEF_FOLDER'],\n $urlTemplates,\n $variables\n );\n\n if (!$this->templatePage)\n {\n if ($this->arParams['SET_404'] === 'Y')\n {\n $folder404 = str_replace('\\\\', '/', $this->arParams['SEF_FOLDER']);\n\n if ($folder404 != '/')\n {\n $folder404 = '/'.trim($folder404, \"/ \\t\\n\\r\\0\\x0B\").\"/\";\n }\n\n if (substr($folder404, -1) == '/')\n {\n $folder404 .= 'index.php';\n }\n\n if ($folder404 != Main\\Context::getCurrent()->getRequest()->getRequestedPage())\n {\n $this->return404();\n }\n }\n\n $this->templatePage = $this->defaultSefPage;\n }\n\n /* if ($this->isSearchRequest() && $this->arParams['USE_SEARCH'] === 'Y')\n {\n $this->templatePage = 'search';\n } */\n\n \\CComponentEngine::InitComponentVariables(\n $this->templatePage,\n $this->componentVariables,\n $variableAliases,\n $variables\n );\n }\n else\n {\n $this->templatePage = $this->defaultPage;\n }\n\n $this->arResult['FOLDER'] = $this->arParams['SEF_FOLDER'];\n $this->arResult['URL_TEMPLATES'] = $urlTemplates;\n $this->arResult['VARIABLES'] = $variables;\n $this->arResult['ALIASES'] = $variableAliases;\n }", "title": "" }, { "docid": "29abec794189e45e097fafd49e6b651c", "score": "0.46311873", "text": "public function renderPartial($manager=\"\",$ptemplate=\"\",$data=\"\"){\r\n\t\t__debug(\"manager=$manager, template=$ptemplate\",__METHOD__,__CLASS__);\r\n\t\t$attributes = self::$context->getAll();\r\n\t\tforeach($attributes as $key=>$value){\r\n\t\t\t$$key = $value; \r\n\t\t}\r\n\t\t$data['theme-info'] = self::$active;\r\n\t\t$data['themes'] = self::$themes;\r\n\t\t//echo \"manager= $manager, ptemplate=$ptemplate,template=$template<br/>\";\r\n\t\tif($ptemplate!=$template && $ptemplate!=\"\" && $ptemplate!=\"\"){\r\n\t\t\t$template=$ptemplate;\r\n\t\t}\r\n\t\t//echo \"Application level template\";\r\n\t\t$this->includeTemplateFileName($manager,$template,$data);\r\n\t}", "title": "" }, { "docid": "e717cf3421270ab428d3e5765cd12a1d", "score": "0.46277472", "text": "protected function prepare_render_options($options) {\n if(is_string($options)) {\n $options = (strpos($options, '/') !== false) ? array('file' => $options) : array('template' => $options);\n } elseif(is_null($options)) $options = array();\n \n if(!array_key_exists('template', $options) and !array_key_exists('file', $options)) {\n $options['template'] = $this->action;\n }\n \n if(!array_key_exists('layout', $options) and !empty($this->layout)) {\n $options['layout'] = $this->layout;\n }\n \n if(!array_key_exists('path', $options)) {\n $options['path'] = $this->path();\n }\n \n return $options;\n }", "title": "" }, { "docid": "f6e52e2cb900bc06ae3c8dbe408f45f6", "score": "0.46271545", "text": "abstract function getDefaultOptions();", "title": "" }, { "docid": "b80730e38a8b020dca8d333de678045e", "score": "0.46146345", "text": "public function initialize() {\n $this->Head = new HeadModule($this);\n $this->addJsFile('jquery.js');\n $this->addJsFile('jquery.form.js');\n $this->addJsFile('jquery.popup.js');\n $this->addJsFile('jquery.gardenhandleajaxform.js');\n $this->addJsFile('global.js');\n $this->addCssFile('admin.css');\n $this->MasterView = 'empty';\n $this->canonicalUrl('');\n parent::initialize();\n }", "title": "" }, { "docid": "02485e25ed4271b940bcbed2d7226040", "score": "0.4606695", "text": "protected function initOptions()\n {\n $options = [];\n switch ($this->preset) {\n case 'custom':\n $preset = null;\n break;\n case 'basic':\n case 'full':\n case 'standard':\n $preset = __DIR__ . '/assets/ckeditor/presets/' . $this->preset . '.php';\n break;\n default:\n $preset = __DIR__ . '/assets/ckeditor/presets/standard.php';\n }\n if ($preset !== null) {\n $options = require($preset);\n }\n $this->clientOptions = ArrayHelper::merge($options, $this->clientOptions);\n }", "title": "" }, { "docid": "a2318b238bbe3bb26f81c92fe864676c", "score": "0.4604275", "text": "protected function options_setup() {\n foreach($this->default_options as $option) {\n $this->sub_links[$option]=humanize($option);\n }\n if($this->is_admin) {\n foreach($this->admin_options as $option) {\n $this->sub_links[$option]=humanize($option);\n }\n }\n }", "title": "" }, { "docid": "b1c7efe55237a7b84bb4ec5e313d295c", "score": "0.4599381", "text": "public function assignDefaultData() {\n\t\t$this->assignTemplateData('data', $this->controller->context->contentObject->data);\n\t\t$this->assignTemplateData('page', $this->controller->context->contentObject->parentRecord['data']);\n\t\t$this->assignTemplateData('configurations', $this->controller->configurations->getArrayCopy($this));\n\t\t$this->assignTemplateData('parameters', $this->controller->parameters->getArrayCopy($this));\n\t}", "title": "" }, { "docid": "674ddda28b3a7f50e959df837559c809", "score": "0.45967224", "text": "protected function defineOptions() {\n $options = parent::defineOptions();\n $options['display_link'] = ['default' => FALSE];\n\n return $options;\n }", "title": "" }, { "docid": "57714d929b57f167c8fc2f17cd5adb96", "score": "0.45960647", "text": "public function page_options() {\n\t\tinclude( plugin_dir_path( __FILE__ ) . 'spark-product-ratings-admin-page-settings.php' );\n\t}", "title": "" }, { "docid": "b16e737e4c1008bfcf398ab60c856327", "score": "0.45925632", "text": "public function load_options_page()\n {\n if (!current_user_can('manage_options')) {\n wp_die(__('You don\\'t have sufficient permissions to access this page.', 'ank-simplified-ga'));\n }\n\n $this->load_view('settings-page.php');\n\n }", "title": "" }, { "docid": "021615a8073146fec697c4f9ca8c8185", "score": "0.45873156", "text": "function init_pager() {\n if (empty($this->query->pager)) {\n $this->query->pager = $this->display_handler->get_plugin('pager');\n\n if ($this->query->pager->use_pager()) {\n $this->query->pager->set_current_page($this->current_page);\n }\n\n // These overrides may have been set earlier via $view->set_*\n // functions.\n if (isset($this->items_per_page)) {\n $this->query->pager->set_items_per_page($this->items_per_page);\n }\n\n if (isset($this->offset)) {\n $this->query->pager->set_offset($this->offset);\n }\n }\n }", "title": "" }, { "docid": "1a95d14aedda8bd47997750f7a11558a", "score": "0.45867607", "text": "function mfn_opts_setup(){\n\t\t\n\t\t// Navigation elements\n\t\t$menu = array(\t\n\t\t\n\t\t\t// Global --------------------------------------------\n\t\t\t'global' => array(\n\t\t\t\t'title' \t=> __('Global', 'mfn-opts'),\n\t\t\t\t'sections' \t=> array( 'general', 'logo', 'sliders', 'advanced', 'hooks' ),\n\t\t\t),\n\t\t\t\t\n\t\t\t// Header & Subheader --------------------------------------------\n\t\t\t'header-subheader' => array(\n\t\t\t\t'title' \t=> __('Header & Subheader', 'mfn-opts'),\n\t\t\t\t'sections' \t=> array( 'header', 'subheader', 'extras' ),\n\t\t\t),\n\t\t\t\t\n\t\t\t// Menu & Action Bar --------------------------------------------\n\t\t\t'mab' => array(\n\t\t\t\t'title' \t=> __('Menu & Action Bar', 'mfn-opts'),\n\t\t\t\t'sections' \t=> array( 'menu', 'action-bar' ),\n\t\t\t),\n\t\t\t\t\n\t\t\t// Sidebars --------------------------------------------\n\t\t\t'sidebars' => array(\n\t\t\t\t'title' \t=> __('Sidebars', 'mfn-opts'),\n\t\t\t\t'sections' \t=> array( 'sidebars' ),\n\t\t\t),\n\t\t\t\t\n\t\t\t// Blog, Portfolio, Shop --------------------------------------------\n\t\t\t'bps' => array(\n\t\t\t\t'title' \t=> __('Blog, Portfolio & Shop', 'mfn-opts'),\n\t\t\t\t'sections' \t=> array( 'bps-general', 'blog', 'portfolio', 'shop', 'featured-image' ),\n\t\t\t),\n\t\t\t\t\n\t\t\t// Pages --------------------------------------------\n\t\t\t'pages' => array(\n\t\t\t\t'title' \t=> __('Pages', 'mfn-opts'),\n\t\t\t\t'sections' \t=> array( 'pages-general', 'pages-404', 'pages-under' ),\n\t\t\t),\n\t\t\t\t\n\t\t\t// Footer --------------------------------------------\n\t\t\t'footer' => array(\n\t\t\t\t'title' \t=> __('Footer', 'mfn-opts'),\n\t\t\t\t'sections' \t=> array( 'footer' ),\n\t\t\t),\n\t\t\t\t\n\t\t\t// Responsive --------------------------------------------\n\t\t\t'responsive' => array(\n\t\t\t\t'title' \t=> __('Responsive', 'mfn-opts'),\n\t\t\t\t'sections' \t=> array( 'responsive' ),\n\t\t\t),\n\t\t\t\t\n\t\t\t// SEO --------------------------------------------\n\t\t\t'seo' => array(\n\t\t\t\t'title' \t=> __('SEO', 'mfn-opts'),\n\t\t\t\t'sections' \t=> array( 'seo' ),\n\t\t\t),\n\t\t\t\t\n\t\t\t// Social --------------------------------------------\n\t\t\t'social' => array(\n\t\t\t\t'title' \t=> __('Social', 'mfn-opts'),\n\t\t\t\t'sections' \t=> array( 'social' ),\n\t\t\t),\n\t\t\t\t\n\t\t\t// Addons, Plugins --------------------------------------------\n\t\t\t'addons-plugins' => array(\n\t\t\t\t'title' \t=> __('Addons & Plugins', 'mfn-opts'),\n\t\t\t\t'sections' \t=> array( 'addons', 'plugins' ),\n\t\t\t),\n\n\t\t\t// Colors --------------------------------------------\n\t\t\t'colors' => array(\n\t\t\t\t'title' \t=> __('Colors', 'mfn-opts'),\n\t\t\t\t'sections' \t=> array( 'colors-general', 'colors-header', 'colors-menu', 'content', 'colors-footer', 'colors-sliding-top', 'headings', 'colors-shortcodes', 'colors-forms' ),\n\t\t\t),\n\t\t\t\n\t\t\t// Fonts --------------------------------------------\n\t\t\t'font' => array(\n\t\t\t\t'title' \t=> __('Fonts', 'mfn-opts'),\n\t\t\t\t'sections' \t=> array( 'font-family', 'font-size', 'font-custom' ),\n\t\t\t),\n\t\t\t\n\t\t\t// Translate --------------------------------------------\n\t\t\t'translate' => array(\n\t\t\t\t'title' \t=> __('Translate', 'mfn-opts'),\n\t\t\t\t'sections'\t=> array( 'translate-general', 'translate-blog', 'translate-404', 'translate-wpml' ),\n\t\t\t),\n\t\t\t\t\n\t\t\t// Custom CSS, JS --------------------------------------------\n\t\t\t'custom' => array(\n\t\t\t\t'title' \t=> __('Custom CSS & JS', 'mfn-opts'),\n\t\t\t\t'sections' \t=> array( 'css', 'js' ),\n\t\t\t),\n\t\t\t\n\t\t);\n\t\n\t\t$sections = array();\n\t\n\t\t// Global =================================================================================\n\t\t\n\t\t// General -------------------------------------------\n\t\t$sections['general'] = array(\n\t\t\t'title'\t\t=> __('General', 'mfn-opts'),\n\t\t\t'fields' \t=> array(\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'general-info-layout',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Layout', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'layout',\n\t\t\t\t\t'type' \t\t=> 'radio_img',\n\t\t\t\t\t'title' \t=> __('Layout', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'full-width' \t=> array('title' => 'Full width', \t'img' => MFN_OPTIONS_URI.'img/select/style/full-width.png'),\n\t\t\t\t\t\t'boxed' \t\t=> array('title' => 'Boxed', \t\t'img' => MFN_OPTIONS_URI.'img/select/style/boxed.png'),\n\t\t\t\t\t),\n\t\t\t\t\t'std' \t\t=> 'full-width',\n\t\t\t\t\t'class'\t\t=> 'wide',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'grid-width',\n\t\t\t\t\t'type' \t\t=> 'sliderbar',\n\t\t\t\t\t'title' \t=> __('Grid width', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('default: 1240px', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Works only with <b>Responsive ON</b>', 'mfn-opts'),\n\t\t\t\t\t'param'\t \t=> array(\n\t\t\t\t\t\t'min' \t\t=> 960,\n\t\t\t\t\t\t'max' \t\t=> 1920,\n\t\t\t\t\t),\n\t\t\t\t\t'std' \t\t=> 1240,\n\t\t\t\t),\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'style',\n\t\t\t\t\t'type' \t\t=> 'radio_img',\n\t\t\t\t\t'title' \t=> __('Style | Main', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'' \t\t\t=> array('title' => 'Default', \t'img' => MFN_OPTIONS_URI .'img/select/style/default.png'),\n\t\t\t\t\t\t'simple' \t=> array('title' => 'Simple', \t'img' => MFN_OPTIONS_URI .'img/select/style/simple.png'),\n\t\t\t\t\t),\n\t\t\t\t\t'class'\t\t=> 'wide',\n\t\t\t\t),\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'button-style',\n\t\t\t\t\t'type' \t\t=> 'radio_img',\n\t\t\t\t\t'title' \t=> __('Style | Button', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'' \t\t\t=> array('title' => 'Default', \t'img' => MFN_OPTIONS_URI.'img/select/button/classic.png'),\n\t\t\t\t\t\t'flat' \t\t=> array('title' => 'Flat', \t'img' => MFN_OPTIONS_URI.'img/select/button/flat.png'),\n\t\t\t\t\t\t'stroke' \t=> array('title' => 'Stroke', \t'img' => MFN_OPTIONS_URI.'img/select/button/stroke.png'),\n\t\t\t\t\t),\n\t\t\t\t\t'class'\t\t=> 'wide short',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'general-info-image-frame',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Image Frame', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'image-frame-style',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Style', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'' \t\t\t=> __('Slide Bottom', 'mfn-opts'),\n\t\t\t\t\t\t'overlay' \t=> __('Overlay', 'mfn-opts'),\n\t\t\t\t\t\t'zoom' \t\t=> __('Zoom | without icons', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\t\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'image-frame-border',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Border', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Border for <b>Image Item</b> can be set in Item Options', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'' \t\t\t=> 'Show',\n\t\t\t\t\t\t'hide' \t\t=> 'Hide',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'image-frame-caption',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Caption', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'' \t\t\t=> 'Below the Image',\n\t\t\t\t\t\t'on' \t\t=> 'On the Image',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'general-info-background',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Background', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'img-page-bg',\n\t\t\t\t\t'type' \t\t=> 'upload',\n\t\t\t\t\t'title' \t=> __('Image', 'mfn-opts'),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'position-page-bg',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Position', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('This option can be used only with your custom image selected above', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> mfna_bg_position(1),\n\t\t\t\t\t'std' \t\t=> 'center top no-repeat',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'transparent',\n\t\t\t\t\t'type' \t\t=> 'checkbox',\n\t\t\t\t\t'title' \t=> __('Transparent', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'header'\t=> __('Header', 'mfn-opts'),\n\t\t\t\t\t\t'menu'\t\t=> __('Top Bar with Menu <span>Works only with <b>headers at the top</b> and screen width > 768px</span>', 'mfn-opts'),\n\t\t\t\t\t\t'content'\t=> __('Content', 'mfn-opts'),\n\t\t\t\t\t\t'footer'\t=> __('Footer', 'mfn-opts'),\t\n\t\t\t\t\t),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'general-info-icon',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Icon', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'favicon-img',\n\t\t\t\t\t'type'\t\t=> 'upload',\n\t\t\t\t\t'title'\t\t=> __('Favicon', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('<b>.ico</b> 32x32 pixels', 'mfn-opts')\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'apple-touch-icon',\n\t\t\t\t\t'type'\t\t=> 'upload',\n\t\t\t\t\t'title'\t\t=> __('Apple Touch Icon', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('<b>apple-touch-icon.png</b> 180x180 pixels', 'mfn-opts')\n\t\t\t\t),\n\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Logo --------------------------------------------\n\t\t$sections['logo'] = array(\n\t\t\t'title' \t=> __('Logo', 'mfn-opts'),\n\t\t\t'fields' \t=> array(\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'logo-info',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Logo', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'logo-img',\n\t\t\t\t\t'type'\t\t=> 'upload',\n\t\t\t\t\t'title'\t\t=> __('Logo', 'mfn-opts'),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'retina-logo-img',\n\t\t\t\t\t'type'\t\t=> 'upload',\n\t\t\t\t\t'title'\t\t=> __('Retina Logo', 'mfn-opts'),\n\t\t\t\t\t'sub_desc'\t=> __('optional', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('Retina Logo should be 2x larger than Custom Logo', 'mfn-opts'),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'logo-info-sticky',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Sticky Header Logo', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'sticky-logo-img',\n\t\t\t\t\t'type'\t\t=> 'upload',\n\t\t\t\t\t'title'\t\t=> __('Logo', 'mfn-opts'),\n\t\t\t\t\t'sub_desc'\t=> __('optional', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('Use if you want different logo for Sticky Header', 'mfn-opts'),\n\t\t\t\t),\t\n\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'sticky-retina-logo-img',\n\t\t\t\t\t'type'\t\t=> 'upload',\n\t\t\t\t\t'title'\t\t=> __('Retina Logo', 'mfn-opts'),\n\t\t\t\t\t'sub_desc'\t=> __('optional', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('Retina Logo should be 2x larger than Sticky Header Logo', 'mfn-opts'),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'logo-info-options',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Options', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'logo-link',\n\t\t\t\t\t'type' \t\t=> 'checkbox',\n\t\t\t\t\t'title' \t=> __('Options', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t\t'link'\t\t=> __('Link to Homepage', 'mfn-opts'),\n\t\t\t\t\t\t\t'h1-home'\t=> __('Wrap into H1 tag on Homepage', 'mfn-opts'),\n\t\t\t\t\t\t\t'h1-all'\t=> __('Wrap into H1 tag on All other pages', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'logo-text',\n\t\t\t\t\t'type'\t\t=> 'text',\n\t\t\t\t\t'title'\t\t=> __('Text Logo', 'mfn-opts'),\n\t\t\t\t\t'sub_desc'\t=> __('optional', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('Use text <b>instead</b> of graphic logo', 'mfn-opts'),\n\t\t\t\t\t'class'\t\t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'logo-width',\n\t\t\t\t\t'type'\t\t=> 'text',\n\t\t\t\t\t'title'\t\t=> __('SVG Logo Width', 'mfn-opts'),\n\t\t\t\t\t'sub_desc'\t=> __('optional', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('Use <b>only</b> with <b>svg</b> logo', 'mfn-opts'),\n\t\t\t\t\t'class'\t\t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'logo-info-advanced',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Advanced', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'logo-height',\n\t\t\t\t\t'type'\t\t=> 'text',\n\t\t\t\t\t'title'\t\t=> __('Height', 'mfn-opts'),\n\t\t\t\t\t'sub_desc'\t=> __('default: 60', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('px<br />Minimum height + padding = 60px', 'mfn-opts'),\n\t\t\t\t\t'class'\t\t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'logo-vertical-padding',\n\t\t\t\t\t'type'\t\t=> 'text',\n\t\t\t\t\t'title'\t\t=> __('<small>Vertical</small> Padding', 'mfn-opts'),\n\t\t\t\t\t'sub_desc'\t=> __('default: 15', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('px', 'mfn-opts'),\n\t\t\t\t\t'class'\t\t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'logo-vertical-align',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('<small>Vertical</small> Align', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'top' \t\t=> __('Top', 'mfn-opts'),\n\t\t\t\t\t\t''\t\t\t=> __('Middle', 'mfn-opts'),\n\t\t\t\t\t\t'bottom'\t=> __('Bottom', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'logo-advanced',\n\t\t\t\t\t'type' \t\t=> 'checkbox',\n\t\t\t\t\t'title' \t=> __('Advanced', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'no-margin' \t\t=> __('Remove Left margin<span>Top margin for Header Creative</span>', 'mfn-opts'),\n\t\t\t\t\t\t'overflow' \t\t\t=> __('Overflow Logo<span>For some header styles only</span>', 'mfn-opts'),\n\t\t\t\t\t\t'no-sticky-padding'\t=> __('Sticky Logo | Remove max-height & padding', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Sliders --------------------------------------------\n\t\t$sections['sliders'] = array(\n\t\t\t'title' \t=> __('Sliders', 'mfn-opts'),\n\t\t\t'icon' \t\t=> MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields'\t=> array(\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'slider-blog-timeout',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Blog', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Milliseconds between slide', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('<strong>0 to disable auto</strong> advance.<br />1000ms = 1s', 'mfn-opts'),\n\t\t\t\t\t'class'\t\t=> 'small-text',\n\t\t\t\t\t'std' \t\t=> '0',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'slider-clients-timeout',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Clients', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Milliseconds between slide', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('<strong>0 to disable auto</strong> advance.<br />1000ms = 1s', 'mfn-opts'),\n\t\t\t\t\t'class'\t\t=> 'small-text',\n\t\t\t\t\t'std' \t\t=> '0',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'slider-offer-timeout',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Offer', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Milliseconds between slide', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('<strong>0 to disable auto</strong> advance.<br />1000ms = 1s', 'mfn-opts'),\n\t\t\t\t\t'class'\t\t=> 'small-text',\n\t\t\t\t\t'std' \t\t=> '0',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'slider-portfolio-timeout',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Portfolio', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Milliseconds between slide', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('<strong>0 to disable auto</strong> advance.<br />1000ms = 1s', 'mfn-opts'),\n\t\t\t\t\t'class'\t\t=> 'small-text',\n\t\t\t\t\t'std' \t\t=> '0',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'slider-shop-timeout',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Shop', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Milliseconds between slide', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('<strong>0 to disable auto</strong> advance.<br />1000ms = 1s', 'mfn-opts'),\n\t\t\t\t\t'class'\t\t=> 'small-text',\n\t\t\t\t\t'std' \t\t=> '0',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'slider-slider-timeout',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Slider', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Milliseconds between slide', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('<strong>0 to disable auto</strong> advance.<br />1000ms = 1s', 'mfn-opts'),\n\t\t\t\t\t'class'\t\t=> 'small-text',\n\t\t\t\t\t'std' \t\t=> '0',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'slider-testimonials-timeout',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Testimonials', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Milliseconds between slide', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('<strong>0 to disable auto</strong> advance.<br />1000ms = 1s', 'mfn-opts'),\n\t\t\t\t\t'class'\t\t=> 'small-text',\n\t\t\t\t\t'std' \t\t=> '0',\n\t\t\t\t),\n\t\t\t\t\t\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Advanced -------------------------------------------\n\t\t$sections['advanced'] = array(\n\t\t\t'title' => __('Advanced', 'mfn-opts'),\n\t\t\t'icon' => MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields' => array(\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'advanced-info-layout',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Layout', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'layout-boxed-padding',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Boxed Layout | Side padding', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Use value with <b>px</b> or <b>%</b><br/>Example: <b>10px</b> or <b>2%</b>', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'builder-visibility',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Builder | Visibility', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'' \t\t\t\t\t\t=> __('- Everyone -', 'mfn-opts'),\n\t\t\t\t\t\t'publish_posts'\t\t\t=> __('Author', 'mfn-opts'),\n\t\t\t\t\t\t'edit_pages'\t\t\t=> __('Editor', 'mfn-opts'),\n\t\t\t\t\t\t'edit_theme_options'\t=> __('Administrator', 'mfn-opts'),\n\t\t\t\t\t\t'hide'\t\t\t\t\t=> __('HIDE for Everyone', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'display-order',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Content | Display Order', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t0 => __('Muffin Builder - WordPress Editor', 'mfn-opts'),\n\t\t\t\t\t\t1 => __('WordPress Editor - Muffin Builder', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'content-remove-padding',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Content | Remove Padding', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Remove default Content Padding Top for <b>all</b> pages/posts', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array( '0' => 'Off', '1' => 'On' ),\n\t\t\t\t\t'std' \t\t=> '0'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\t// options\t\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'advanced-info-options',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Options', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'google-maps-api-key',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Google Maps API Key', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('optional', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('If you are generating a large volume of queries to the Google Maps API please <a target=\"_blank\" href=\"https://developers.google.com/maps/documentation/javascript/get-api-key#get-an-api-key\">Get an API key</a>', 'mfn-opts'),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'table-hover',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('HTML Table', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'' \t\t\t=> __('Default', 'mfn-opts'),\n\t\t\t\t\t\t'hover' \t=> __('Rows Hover', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'math-animations-disable',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Math Animate | Disable', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Disable animations for Counter, Quick fact', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array( '0' => 'Off', '1' => 'On' ),\n\t\t\t\t\t'std' \t\t=> '0'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\t// theme functions\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'advanced-info-functions',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Theme Functions', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'post-type-disable',\n\t\t\t\t\t'type' \t\t=> 'checkbox',\n\t\t\t\t\t'title' \t=> __('Post Type | Disable', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('If you do not want to use any of these Types, you can disable it', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'client'\t\t=> __('Clients', 'mfn-opts'),\n\t\t\t\t\t\t'layout'\t\t=> __('Layouts', 'mfn-opts'),\n\t\t\t\t\t\t'offer'\t\t\t=> __('Offer', 'mfn-opts'),\n\t\t\t\t\t\t'portfolio'\t\t=> __('Portfolio', 'mfn-opts'),\n\t\t\t\t\t\t'slide'\t\t\t=> __('Slides', 'mfn-opts'),\n\t\t\t\t\t\t'template'\t\t=> __('Templates', 'mfn-opts'),\n\t\t\t\t\t\t'testimonial'\t=> __('Testimonials', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'theme-disable',\n\t\t\t\t\t'type' \t\t=> 'checkbox',\n\t\t\t\t\t'title' \t=> __('Theme Functions | Disable', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('If you do not want to use any of these functions or use external plugins to do the same, you can disable it', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'demo-data'\t\t\t\t=> __('BeTheme Demo Data', 'mfn-opts'),\n\t\t\t\t\t\t'entrance-animations'\t=> __('Entrance Animations', 'mfn-opts'),\n\t\t\t\t\t\t'mega-menu'\t\t\t\t=> __('Mega Menu', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\t// advanced\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'advanced-info-advanced',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Advanced', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'builder-storage',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Builder | Data Storage', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('This option will <b>not</b> affect the existing pages, only newly created or updated', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'' \t\t\t=> __('Serialized | Readable format, required by some plugins', 'mfn-opts'),\n\t\t\t\t\t\t'non-utf-8' => __('Serialized (safe mode) | Readable format, for non-UTF-8 server, etc.', 'mfn-opts'),\n\t\t\t\t\t\t'encode'\t=> __('Encoded | Less data stored, compatible with WordPress Importer', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'slider-shortcode',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Slider | Shortcode', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Use this option to force slider for <b>all</b> pages', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('This option can <strong>not</strong> be overriden and it is usefull for people who already have many pages and want to standardize their appearance.<br/>eg. [rev_slider alias=\"slider1\"]', 'mfn-opts'),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'static-css',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Static CSS', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Use Static CSS files insted of Theme Options', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('For more info please see <a href=\"http://themes.muffingroup.com/betheme/documentation/#static-css\" target=\"_blank\">http://themes.muffingroup.com/betheme/documentation/#static-css</a><br/>This file should be <b>regenerated</b> after every <b>theme update</b>', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array('1' => 'On','0' => 'Off'),\n\t\t\t\t\t'std' \t\t=> '0'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'table_prefix',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Table Prefix', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('For some <b>multisite</b> installations it is necessary to change table prefix to get Sliders List in Page Options. Please do <b>not</b> change if everything works.', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'base_prefix' \t=> 'base_prefix',\n\t\t\t\t\t\t'prefix' \t\t=> 'prefix',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Hooks --------------------------------------------\n\t\t$sections['hooks'] = array(\n\t\t\t'title' \t=> __('Hooks', 'mfn-opts'),\n\t\t\t'icon' \t\t=> MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields'\t=> array(\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'hook-top',\n\t\t\t\t\t'type' \t\t=> 'textarea',\n\t\t\t\t\t'title' \t=> __('Top', 'mfn-opts'),\n\t\t\t\t\t'sub_desc'\t=> __('mfn_hook_top', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Executes after the opening &lt;body&gt; tag', 'mfn-opts'),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'hook-content-before',\n\t\t\t\t\t'type' \t\t=> 'textarea',\n\t\t\t\t\t'title' \t=> __('Content before', 'mfn-opts'),\n\t\t\t\t\t'sub_desc'\t=> __('mfn_hook_content_before', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Executes before the opening &lt;#Content&gt; tag', 'mfn-opts'),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'hook-content-after',\n\t\t\t\t\t'type' \t\t=> 'textarea',\n\t\t\t\t\t'title' \t=> __('Content after', 'mfn-opts'),\n\t\t\t\t\t'sub_desc'\t=> __('mfn_hook_content_after', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Executes after the closing &lt;/#Content&gt; tag', 'mfn-opts'),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'hook-bottom',\n\t\t\t\t\t'type' \t\t=> 'textarea',\n\t\t\t\t\t'title' \t=> __('Bottom', 'mfn-opts'),\n\t\t\t\t\t'sub_desc'\t=> __('mfn_hook_bottom', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Executes after the closing &lt;/body&gt; tag', 'mfn-opts'),\n\t\t\t\t),\n\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Header, Subheader ======================================================================\n\t\t\n\t\t// Header --------------------------------------------\n\t\t$sections['header'] = array(\n\t\t\t'title' => __('Header', 'mfn-opts'),\n\t\t\t'fields' => array(\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'header-info-layout',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Layout', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'header-style',\n\t\t\t\t\t'type' \t\t=> 'radio_img',\n\t\t\t\t\t'title' \t=> __('Style', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> mfna_header_style(),\n\t\t\t\t\t'std'\t\t=> 'modern',\n\t\t\t\t\t'class'\t\t=> 'wide',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'header-fw',\n\t\t\t\t\t'type' \t\t=> 'checkbox',\n\t\t\t\t\t'title' \t=> __('Options', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'full-width'\t=> __('Full Width (for layout: Full Width)', 'mfn-opts'),\n\t\t\t\t\t\t'header-boxed'\t=> __('Boxed Sticky Header (for layout: Boxed)', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'minimalist-header',\n\t\t\t\t\t'type'\t\t=> 'select',\n\t\t\t\t\t'title'\t\t=> __('Minimalist', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('Header without background image & padding', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> array(\n\t\t\t\t\t\t'0' \t\t=> __('Default | OFF', 'mfn-opts'),\n\t\t\t\t\t\t'1' \t\t=> __('Minimalist | ON', 'mfn-opts'),\n\t\t\t\t\t\t'no' \t\t=> __('Minimalist without Header space', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'header-info-background',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Background', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'img-subheader-bg',\n\t\t\t\t\t'type' \t\t=> 'upload',\n\t\t\t\t\t'title' \t=> __('Image', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Pages without slider. May be overridden for single page.', 'mfn-opts'),\n\t\t\t\t),\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'img-subheader-attachment',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Attachment', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> array(\n\t\t\t\t\t\t''\t\t\t=> __('Default', 'mfn-opts'),\n\t\t\t\t\t\t'fixed'\t\t=> __('Fixed', 'mfn-opts'),\n\t\t\t\t\t\t'parallax'\t=> __('Parallax', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'header-info-sticky',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Sticky Header', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'sticky-header',\n\t\t\t\t\t'type'\t\t=> 'switch',\n\t\t\t\t\t'title'\t\t=> __('Sticky', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> array('1' => 'On','0' => 'Off'),\n\t\t\t\t\t'std'\t\t=> '1'\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'sticky-header-style',\n\t\t\t\t\t'type'\t\t=> 'select',\n\t\t\t\t\t'title'\t\t=> __('Style', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> array(\n\t\t\t\t\t\t'white'\t\t=> __('White', 'mfn-opts'),\n\t\t\t\t\t\t'dark'\t\t=> __('Dark', 'mfn-opts'),\n\t\t\t\t\t\t'tb-color'\t=> __('The same as Top Bar Left background', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Subheader --------------------------------------------\n\t\t$sections['subheader'] = array(\n\t\t\t'title' => __('Subheader', 'mfn-opts'),\n\t\t\t'fields' => array(\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'subheader-info-layout',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Layout', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'subheader-style',\n\t\t\t\t\t'type'\t\t=> 'select',\n\t\t\t\t\t'title'\t\t=> __('Style', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> array(\n\t\t\t\t\t\t'' \t\t\t\t=> __('Title on the Left', 'mfn-opts'),\n\t\t\t\t\t\t'title-right' \t=> __('Title on the Right', 'mfn-opts'),\n\t\t\t\t\t\t'both-left' \t=> __('Title & Breadcrumbs on the Left', 'mfn-opts'),\n\t\t\t\t\t\t'both-right' \t=> __('Title & Breadcrumbs on the Right', 'mfn-opts'),\n\t\t\t\t\t\t'both-center' \t=> __('Title & Breadcrumbs Centered', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'subheader',\n\t\t\t\t\t'type' \t\t=> 'checkbox',\n\t\t\t\t\t'title' \t=> __('Hide', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'hide-breadcrumbs'\t=> __('Breadcrumbs', 'mfn-opts'),\n\t\t\t\t\t\t'hide-subheader'\t=> __('<b>Subheader</b>', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'subheader-padding',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Padding', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('default: 30px 0', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Use value with <b>px</b> or <b>em</b><br />Example: <b>20px 0</b> or <b>20px 0 30px 0</b> or <b>2em 0</b>', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'subheader-title-tag',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Title tag', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'h1'\t=> 'h1',\n\t\t\t\t\t\t'h2'\t=> 'h2',\n\t\t\t\t\t\t'h3'\t=> 'h3',\n\t\t\t\t\t\t'h4'\t=> 'h4',\n\t\t\t\t\t\t'h5'\t=> 'h5',\n\t\t\t\t\t\t'h6'\t=> 'h6',\n\t\t\t\t\t\t'span'\t=> 'span',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'subheader-info-background',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Background', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'subheader-image',\n\t\t\t\t\t'type' \t\t=> 'upload',\n\t\t\t\t\t'title' \t=> __('Image', 'mfn-opts'),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'subheader-position',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Position', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> mfna_bg_position(1),\n\t\t\t\t\t'std' \t\t=> 'center top no-repeat',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'subheader-transparent',\n\t\t\t\t\t'type' \t\t=> 'sliderbar',\n\t\t\t\t\t'title' \t=> __('Transparency (alpha)', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('0 = transparent, 100 = solid', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('<b>Important:</b> This option can be used only with <b>Custom</b> or <b>One Color Skin</b>', 'mfn-opts'),\n\t\t\t\t\t'param'\t \t=> array(\n\t\t\t\t\t\t'min' \t\t=> 0,\n\t\t\t\t\t\t'max' \t\t=> 100,\n\t\t\t\t\t),\n\t\t\t\t\t'std' \t\t=> '100',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'subheader-info-advanced',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Advanced', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'subheader-advanced',\n\t\t\t\t\t'type' \t\t=> 'checkbox',\n\t\t\t\t\t'title' \t=> __('Options', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'breadcrumbs-link'\t=> __('Breadcrumbs | Last item is link (NOT for Shop)', 'mfn-opts'),\n\t\t\t\t\t\t'slider-show'\t\t=> __('Slider | Show subheader on pages with Slider', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Extras --------------------------------------------\n\t\t$sections['extras'] = array(\n\t\t\t'title' => __('Extras', 'mfn-opts'),\n\t\t\t'fields' => array(\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'extras-info-top-bar-right',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Top Bar Right', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'top-bar-right-hide',\n\t\t\t\t\t'type'\t\t=> 'switch',\n\t\t\t\t\t'title'\t\t=> __('Hide', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> array( '0' => 'Off', '1' => 'On' ),\n\t\t\t\t),\t\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'extras-info-action-button',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Action Button', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'header-action-title',\n\t\t\t\t\t'type'\t\t=> 'text',\n\t\t\t\t\t'title'\t\t=> __('Title', 'mfn-opts'),\n\t\t\t\t\t'class'\t\t=> 'small-text',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'header-action-link',\n\t\t\t\t\t'type'\t\t=> 'text',\n\t\t\t\t\t'title'\t\t=> __('Link', 'mfn-opts'),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'header-action-target',\n\t\t\t\t\t'type' \t\t=> 'checkbox',\n\t\t\t\t\t'title' \t=> __('Options', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'target'\t=> __('Open in new window', 'mfn-opts'),\n\t\t\t\t\t\t'scroll'\t=> __('Scroll to section (use #SectionID as Link)', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'extras-info-search',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Search', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'header-search',\n\t\t\t\t\t'type'\t\t=> 'select',\n\t\t\t\t\t'title'\t\t=> __('Search', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> array(\n\t\t\t\t\t\t'1' \t\t=> __('Icon | Default', 'mfn-opts'),\n\t\t\t\t\t\t'shop' \t\t=> __('Icon | Search Shop Products only', 'mfn-opts'),\n\t\t\t\t\t\t'input' \t=> __('Search Field', 'mfn-opts'),\n\t\t\t\t\t\t'0' \t\t=> __('Hide', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'extras-info-wpml',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('WPML', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'header-wpml',\n\t\t\t\t\t'type'\t\t=> 'select',\n\t\t\t\t\t'title'\t\t=> __('Custom Switcher Style', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('Custom Language Switcher is independent of WPML switcher options', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> array(\n\t\t\t\t\t\t''\t\t\t\t\t=> __('Dropdown | Flags', 'mfn-opts'),\n\t\t\t\t\t\t'dropdown-name'\t\t=> __('Dropdown | Language Name (native)', 'mfn-opts'),\n\t\t\t\t\t\t'horizontal'\t\t=> __('Horizontal | Flags', 'mfn-opts'),\n\t\t\t\t\t\t'horizontal-code'\t=> __('Horizontal | Language Code', 'mfn-opts'),\n\t\t\t\t\t\t'hide'\t\t\t\t=> __('Hide', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'header-wpml-options',\n\t\t\t\t\t'type' \t\t=> 'checkbox',\n\t\t\t\t\t'title'\t\t=> __('Custom Switcher Options', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'link-to-home'\t=> __('Link to home of language for missing translations<span>Disable this option to skip languages with missing translation</span>', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'extras-info-sliding-top',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Sliding Top', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'sliding-top',\n\t\t\t\t\t'type'\t\t=> 'select',\n\t\t\t\t\t'title'\t\t=> __('Sliding Top', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('Widgetized Sliding Top position', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> array(\n\t\t\t\t\t\t'1' \t\t=> __('Right', 'mfn-opts'),\n\t\t\t\t\t\t'center' \t=> __('Center', 'mfn-opts'),\n\t\t\t\t\t\t'left' \t\t=> __('Left', 'mfn-opts'),\n\t\t\t\t\t\t'0' \t\t=> __('Hide', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t\t'std'\t\t=> '0',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'sliding-top-icon',\n\t\t\t\t\t'type'\t\t=> 'icon',\n\t\t\t\t\t'title'\t\t=> __('Icon', 'mfn-opts'),\n\t\t\t\t\t'std'\t\t=> 'icon-down-open-mini',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'extras-info-other',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Other', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'header-banner',\n\t\t\t\t\t'type' \t\t=> 'textarea',\n\t\t\t\t\t'title' \t=> __('Banner', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Header Magazine (468px x 60px) or Creative (250px x 250px) Banner code ', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> '&lt;a href=\"#\" target=\"_blank\"&gt;&lt;img src=\"\" alt=\"\" /&gt;&lt;/a&gt;',\n\t\t\t\t),\n\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Menu, Action Bar =======================================================================\n\t\t\n\t\t// Menu --------------------------------------------\n\t\t$sections['menu'] = array(\n\t\t\t'title' => __('Menu', 'mfn-opts'),\n\t\t\t'fields' => array(\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'menu-info-layout',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Layout', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'menu-style',\n\t\t\t\t\t'type'\t\t=> 'select',\n\t\t\t\t\t'title'\t\t=> __('Style', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('For some header style only', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> array(\n\t\t\t\t\t\t''\t\t\t\t\t=> __('Default', 'mfn-opts'),\n\t\t\t\t\t\t'line-below'\t\t=> __('Line below Menu', 'mfn-opts'),\n\t\t\t\t\t\t'line-below-80'\t\t=> __('Line below Link (80% width)', 'mfn-opts'),\n\t\t\t\t\t\t'line-below-80-1'\t=> __('Line below Link (80% width, 1px height)', 'mfn-opts'),\n\t\t\t\t\t\t'arrow-top'\t\t\t=> __('Arrow Top', 'mfn-opts'),\n\t\t\t\t\t\t'arrow-bottom'\t\t=> __('Arrow Bottom', 'mfn-opts'),\n\t\t\t\t\t\t'highlight'\t\t\t=> __('Highlight', 'mfn-opts'),\n\t\t\t\t\t\t'hide'\t\t\t\t=> __('HIDE Menu', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'menu-options',\n\t\t\t\t\t'type' \t\t=> 'checkbox',\n\t\t\t\t\t'title' \t=> __('Options', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\t\t\t\t\t\t\t\n\t\t\t\t\t\t'submenu-active'\t=> __('Active for Submenu items', 'mfn-opts'),\n\t\t\t\t\t\t'align-right'\t\t=> __('Align Menu to Right', 'mfn-opts'),\n\t\t\t\t\t\t'hide-borders'\t\t=> __('Hide Border between Items', 'mfn-opts'),\n\t\t\t\t\t\t'menu-arrows'\t\t=> __('Menu Arrows for Items with Submenu', 'mfn-opts'),\n\t\t\t\t\t\t'last'\t\t\t\t=> __('Fold 2 Last Submenus to the Left<span>for Header Creative fold to Top</span>', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'menu-info-creative',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Creative <span>for creative header only</span>', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'menu-creative-options',\n\t\t\t\t\t'type' \t\t=> 'checkbox',\n\t\t\t\t\t'title' \t=> __('Options', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'scroll'\t=> __('Scrollable <span>for menu with large amount of items <b>without submenus</b></span>', 'mfn-opts'),\n\t\t\t\t\t\t'dropdown'\t=> __('Dropdown submenu <span>use with scrollable</span>', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Action Bar --------------------------------------------\n\t\t$sections['action-bar'] = array(\n\t\t\t'title' => __('Action Bar', 'mfn-opts'),\n\t\t\t'fields' => array(\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'action-bar',\n\t\t\t\t\t'type'\t\t=> 'switch',\n\t\t\t\t\t'title'\t\t=> __('Action Bar', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('Show Action Bar above the header', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> array('1' => 'On','0' => 'Off'),\n\t\t\t\t\t'std'\t\t=> '1',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'header-slogan',\n\t\t\t\t\t'type'\t\t=> 'text',\n\t\t\t\t\t'title'\t\t=> __('Slogan', 'mfn-opts'),\n\t\t\t\t\t'class'\t\t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'header-phone',\n\t\t\t\t\t'type'\t\t=> 'text',\n\t\t\t\t\t'title'\t\t=> __('Phone', 'mfn-opts'),\n\t\t\t\t\t'sub_desc'\t=> __('Phone number', 'mfn-opts'),\n\t\t\t\t\t'class'\t\t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'header-phone-2',\n\t\t\t\t\t'type'\t\t=> 'text',\n\t\t\t\t\t'title'\t\t=> __('2nd Phone', 'mfn-opts'),\n\t\t\t\t\t'sub_desc'\t=> __('Additional Phone number', 'mfn-opts'),\n\t\t\t\t\t'class'\t\t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'header-email',\n\t\t\t\t\t'type'\t\t=> 'text',\n\t\t\t\t\t'title'\t\t=> __('Email', 'mfn-opts'),\n\t\t\t\t\t'sub_desc'\t=> __('Email address', 'mfn-opts'),\n\t\t\t\t\t'class'\t\t=> 'small-text',\n\t\t\t\t),\n\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Sidebars ===============================================================================\n\t\t\n\t\t// Sidebars --------------------------------------------\n\t\t$sections['sidebars'] = array(\n\t\t\t'title' => __('General', 'mfn-opts'),\n\t\t\t'icon' => MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields' => array(\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'sidebar-info-sidebars',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Sidebars', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'sidebars',\n\t\t\t\t\t'type' \t\t=> 'multi_text',\n\t\t\t\t\t'title' \t=> __('Sidebars', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Manage custom sidebars', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Do <b>not</b> use <b> special characters</b> or the following names: <em>buddy, events, forum, shop</em>', 'mfn-opts'),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'sidebar-info-layout',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Layout', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'sidebar-width',\n\t\t\t\t\t'type' \t\t=> 'sliderbar',\n\t\t\t\t\t'title' \t=> __('Width', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('default: 23%', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Recommended: 20%-30%. Too small or too large value may crash the layout', 'mfn-opts'),\n\t\t\t\t\t'param'\t \t=> array(\n\t\t\t\t\t\t'min' \t\t=> 10,\n\t\t\t\t\t\t'max' \t\t=> 50,\n\t\t\t\t\t),\n\t\t\t\t\t'std' \t\t=> '23',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'sidebar-lines',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Lines', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Sidebar Lines Style', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t''\t\t\t\t=> __('Default', 'mfn-opts'),\n\t\t\t\t\t\t'lines-boxed'\t=> __('Sidebar Width', 'mfn-opts'),\n\t\t\t\t\t\t'lines-hidden'\t=> __('Hide Lines', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t\t'std' \t\t=> '',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'sidebar-info-page',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Pages <span>force sidebar</span>', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'single-page-layout',\n\t\t\t\t\t'type' \t\t=> 'radio_img',\n\t\t\t\t\t'title' \t=> __('Layout', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Use this option to force layout for all pages', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('This option can <strong>not</strong> be overriden and it is usefull for people who already have many pages and want to standardize their appearance.', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'' \t\t\t\t=> array('title' => 'Use Page Meta', 'img' => MFN_OPTIONS_URI.'img/question.png'),\n\t\t\t\t\t\t'no-sidebar' \t=> array('title' => 'Full width without sidebar', 'img' => MFN_OPTIONS_URI.'img/1col.png'),\n\t\t\t\t\t\t'left-sidebar'\t=> array('title' => 'Left Sidebar', 'img' => MFN_OPTIONS_URI.'img/2cl.png'),\n\t\t\t\t\t\t'right-sidebar'\t=> array('title' => 'Right Sidebar', 'img' => MFN_OPTIONS_URI.'img/2cr.png'),\n\t\t\t\t\t\t'both-sidebars' => array('title' => 'Both Sidebars', 'img' => MFN_OPTIONS_URI.'img/2sb.png'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'single-page-sidebar',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Sidebar', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Use this option to force sidebar for all pages', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Paste the name of one of the sidebars that you added in the \"Sidebars\" section.', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'single-page-sidebar2',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Sidebar 2', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Use this option to force sidebar for all pages', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Paste the name of one of the sidebars that you added in the \"Sidebars\" section.', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'sidebar-info-post',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Single Posts <span>force sidebar</span>', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'single-layout',\n\t\t\t\t\t'type' \t\t=> 'radio_img',\n\t\t\t\t\t'title' \t=> __('Layout', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Use this option to force layout for all posts', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('This option can <strong>not</strong> be overriden and it is usefull for people who already have many posts and want to standardize their appearance.', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'' \t\t\t\t=> array('title' => 'Use Post Meta', 'img' => MFN_OPTIONS_URI.'img/question.png'),\n\t\t\t\t\t\t'no-sidebar' \t=> array('title' => 'Full width without sidebar', 'img' => MFN_OPTIONS_URI.'img/1col.png'),\n\t\t\t\t\t\t'left-sidebar'\t=> array('title' => 'Left Sidebar', 'img' => MFN_OPTIONS_URI.'img/2cl.png'),\n\t\t\t\t\t\t'right-sidebar'\t=> array('title' => 'Right Sidebar', 'img' => MFN_OPTIONS_URI.'img/2cr.png'),\n\t\t\t\t\t\t'both-sidebars' => array('title' => 'Both Sidebars', 'img' => MFN_OPTIONS_URI.'img/2sb.png'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'single-sidebar',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Sidebar', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Use this option to force sidebar for all posts', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Paste the name of one of the sidebars that you added in the \"Sidebars\" section.', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'single-sidebar2',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Sidebar 2', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Use this option to force sidebar for all posts', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Paste the name of one of the sidebars that you added in the \"Sidebars\" section.', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'sidebar-info-project',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Single Portfolio Projects <span>force sidebar</span>', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'single-portfolio-layout',\n\t\t\t\t\t'type' \t\t=> 'radio_img',\n\t\t\t\t\t'title' \t=> __('Layout', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Use this option to force layout for all portfolio projects', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('This option can <strong>not</strong> be overriden and it is usefull for people who already have many portfolio projects and want to standardize their appearance.', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'' \t\t\t\t=> array('title' => 'Use Post Meta', 'img' => MFN_OPTIONS_URI.'img/question.png'),\n\t\t\t\t\t\t'no-sidebar' \t=> array('title' => 'Full width without sidebar', 'img' => MFN_OPTIONS_URI.'img/1col.png'),\n\t\t\t\t\t\t'left-sidebar'\t=> array('title' => 'Left Sidebar', 'img' => MFN_OPTIONS_URI.'img/2cl.png'),\n\t\t\t\t\t\t'right-sidebar'\t=> array('title' => 'Right Sidebar', 'img' => MFN_OPTIONS_URI.'img/2cr.png'),\n\t\t\t\t\t\t'both-sidebars' => array('title' => 'Both Sidebars', 'img' => MFN_OPTIONS_URI.'img/2sb.png'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'single-portfolio-sidebar',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Sidebar', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Use this option to force sidebar for all portfolio projects', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Paste the name of one of the sidebars that you added in the \"Sidebars\" section.', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'single-portfolio-sidebar2',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Sidebar 2', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Use this option to force sidebar for all portfolio projects', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Paste the name of one of the sidebars that you added in the \"Sidebars\" section.', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Blog, Portfolio, Shop ==================================================================\n\t\t\n\t\t// General ---------------------------------------------\n\t\t$sections['bps-general'] = array(\n\t\t\t'title' \t=> __('General', 'mfn-opts'),\n\t\t\t'icon' \t\t=> MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields'\t=> array(\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'bps-info',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Blog, Portfolio, Shop', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'prev-next-nav',\n\t\t\t\t\t'type' \t\t=> 'checkbox',\n\t\t\t\t\t'title' \t=> __('Navigation Arrows', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Prev/Next Post Navigation', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'hide-header'\t=> __('Hide Header arrows', 'mfn-opts'),\n\t\t\t\t\t\t'hide-sticky'\t=> __('Hide Sticky arrows', 'mfn-opts'),\n\t\t\t\t\t\t'in-same-term'\t=> __('Navigate in the same category <span>excluding Shop</span>', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'prev-next-style',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Navigation Arrows | Style', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t''\t\t\t=> __('Default', 'mfn-opts'),\n\t\t\t\t\t\t'minimal'\t=> __('Minimal', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'share',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Share Box', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'1' \t\t\t=> __('Show', 'mfn-opts'),\n\t\t\t\t\t\t'0' \t\t\t=> __('Hide', 'mfn-opts'),\n\t\t\t\t\t\t'hide-mobile' \t=> __('Hide on Mobile', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t\t'std' \t\t=> '1'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'bps-info-bp',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Blog, Portfolio', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'pagination-show-all',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('All pages in pagination', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Show all of the pages instead of a short list of the pages near the current page', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array('1' => 'On','0' => 'Off'),\n\t\t\t\t\t'std' \t\t=> '1'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'love',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Love Box', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Show Love Box', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array( '1' => 'On', '0' => 'Off' ),\n\t\t\t\t\t'std' \t\t=> '1'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'bps-info-single-bp',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Single Post, Single Portfolio Project', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'featured-image-caption',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Featured Image Caption', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Caption for Featured Image can be set in Media Library', 'mfn-opts'),\t\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'' \t\t\t\t=> __('Show', 'mfn-opts'),\n\t\t\t\t\t\t'hide' \t\t\t=> __('Hide', 'mfn-opts'),\n\t\t\t\t\t\t'hide-mobile' \t=> __('Hide on Mobile', 'mfn-opts'),\n\t\t\t\t\t\t\n\t\t\t\t\t),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'related-style',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Related Style', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'' \t\t\t=> __('Default', 'mfn-opts'),\n\t\t\t\t\t\t'simple' \t=> __('Simple', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'title-heading',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Title Heading', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'1' => 'h1',\n\t\t\t\t\t\t'2' => 'h2',\n\t\t\t\t\t\t'3' => 'h3',\n\t\t\t\t\t\t'4' => 'h4',\n\t\t\t\t\t\t'5' => 'h5',\n\t\t\t\t\t\t'6' => 'h6',\n\t\t\t\t\t),\n\t\t\t\t\t'std' \t\t=> '1'\n\t\t\t\t),\n\t\t\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Blog --------------------------------------------\n\t\t$sections['blog'] = array(\n\t\t\t'title' \t=> __('Blog', 'mfn-opts'),\n\t\t\t'icon' \t\t=> MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields'\t=> array(\n\t\n\t\t\t\t// layout -----\t\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'blog-info-layout',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Layout', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'blog-posts',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Posts per page', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t\t'std' \t\t=> '4',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'blog-layout',\n\t\t\t\t\t'type' \t\t=> 'radio_img',\n\t\t\t\t\t'title' \t=> __('Layout', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Layout for Blog Page', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> array(\n\t\t\t\t\t\t'classic'\t\t=> array('title' => 'Classic',\t'img' => MFN_OPTIONS_URI.'img/select/blog/classic.png'),\n\t\t\t\t\t\t'grid'\t\t\t=> array('title' => 'Grid', 'img' => MFN_OPTIONS_URI.'img/select/portfolio/grid.png'),\n\t\t\t\t\t\t'masonry'\t\t=> array('title' => 'Masonry Blog Style', 'img' => MFN_OPTIONS_URI.'img/select/blog/masonry-blog.png'),\n\t\t\t\t\t\t'masonry tiles'\t=> array('title' => 'Masonry Tiles (Vertical Images)', 'img' => MFN_OPTIONS_URI.'img/select/blog/masonry-tiles.png'),\n\t\t\t\t\t\t'photo'\t\t\t=> array('title' => 'Photo (Horizontal Images)', \t'img' => MFN_OPTIONS_URI.'img/select/blog/photo.png'),\n\t\t\t\t\t\t'timeline'\t\t=> array('title' => 'Timeline',\t'img' => MFN_OPTIONS_URI.'img/select/blog/timeline.png'),\n\t\t\t\t\t),\n\t\t\t\t\t'std'\t\t=> 'classic',\n\t\t\t\t\t'class'\t\t=> 'wide',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'blog-columns',\n\t\t\t\t\t'type' \t\t=> 'sliderbar',\n\t\t\t\t\t'title' \t=> __('Columns', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('default: 3', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Recommended: 2-4. Too large value may crash the layout.<br />This option works in layouts: <b>Grid, Masonry</b>', 'mfn-opts'),\n\t\t\t\t\t'param'\t \t=> array(\n\t\t\t\t\t\t'min' \t\t=> 2,\n\t\t\t\t\t\t'max' \t\t=> 6,\n\t\t\t\t\t),\n\t\t\t\t\t'std' \t\t=> 3,\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'blog-full-width',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Full Width', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('This option works in layout <b>Masonry</b>', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array( '0' => 'Off', '1' => 'On' ),\n\t\t\t\t\t'std' \t\t=> '0'\n\t\t\t\t),\n\n\t\t\t\t// options -----\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'blog-info-options',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Options', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'blog-page',\n\t\t\t\t\t'type' \t\t=> 'pages_select',\n\t\t\t\t\t'title' \t=> __('Blog Page', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Assign page for Blog', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Use this option if you set <strong>Front page displays: Your latest posts</strong> in Settings > Reading', 'mfn-opts'),\n\t\t\t\t\t'args' \t\t=> array()\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'excerpt-length',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Excerpt Length', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Number of words', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t\t'std' \t\t=> '26',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'exclude-category',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Exclude Category', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Exclude category from Blog page', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Category <b>slug</b>', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'blog-filters',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Filters', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'1' \t\t\t\t=> __('Show', 'mfn-opts'),\n\t\t\t\t\t\t'only-categories' \t=> __('Show only Categories', 'mfn-opts'),\n\t\t\t\t\t\t'only-tags' \t\t=> __('Show only Tags', 'mfn-opts'),\n\t\t\t\t\t\t'only-authors' \t\t=> __('Show only Authors', 'mfn-opts'),\n\t\t\t\t\t\t'0' \t\t\t\t=> __('Hide', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t\t'std' \t\t=> '1'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'blog-load-more',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Load More button', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Show Ajax Load More button', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('This will replace all sliders on list with featured images', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array( '0' => 'Off', '1' => 'On' ),\n\t\t\t\t\t'std' \t\t=> '0'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'blog-meta',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Post Meta', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Show Author, Date & Categories', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array('1' => 'On','0' => 'Off'),\n\t\t\t\t\t'std' \t\t=> '1'\n\t\t\t\t),\n\n\t\t\t\t// single -----\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'blog-info-single',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Single Post', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'blog-title',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Title', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Show Post Title', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array( '0' => 'Off', '1' => 'On' ),\n\t\t\t\t\t'std' \t\t=> '0'\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'blog-single-zoom',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Zoom Image', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Zoom Featured Image on click', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array('1' => 'On','0' => 'Off'),\n\t\t\t\t\t'std' \t\t=> '1'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'blog-author',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Author Box', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Show Author Box', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array('1' => 'On','0' => 'Off'),\n\t\t\t\t\t'std' \t\t=> '1'\n\t\t\t\t),\t\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'blog-related',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Related Posts | Count', 'mfn-opts'),\n\t\t\t\t\t'class'\t\t=> 'small-text',\n\t\t\t\t\t'std'\t\t=> 3,\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'blog-related-columns',\n\t\t\t\t\t'type' \t\t=> 'sliderbar',\n\t\t\t\t\t'title' \t=> __('Related Posts | Columns', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('default: 3', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Recommended: 2-4. Too large value may crash the layout', 'mfn-opts'),\n\t\t\t\t\t'param'\t \t=> array(\n\t\t\t\t\t\t'min' \t\t=> 2,\n\t\t\t\t\t\t'max' \t\t=> 6,\n\t\t\t\t\t),\n\t\t\t\t\t'std' \t\t=> 3,\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'blog-comments',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Comments', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Show Comments', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array('1' => 'On','0' => 'Off'),\n\t\t\t\t\t'std' \t\t=> '1'\n\t\t\t\t),\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'blog-single-layout',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Layout ID', 'mfn-opts'),\n\t\t\t\t\t'class'\t\t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'blog-single-menu',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Menu', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> mfna_menu(),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\t// single -----\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'blog-info-single-advanced',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Single Post <span>only selected styles</span>', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'single-intro-padding',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Intro | Padding', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('default: 250px 10%', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Use value with <b>px</b> or <b>em</b><br />Example: <b>20px 0</b> or <b>20px 0 30px 0</b> or <b>2em 0</b>', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\t// advanced -----\t\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'blog-info-advanced',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Advanced', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'blog-love-rand',\n\t\t\t\t\t'type' \t\t=> 'ajax',\n\t\t\t\t\t'title' \t=> __('Random Love', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Generate random number of loves', 'mfn-opts'),\n\t\t\t\t\t'action' \t=> 'mfn_love_randomize',\n\t\t\t\t),\n\t\t\t\t\t\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Portfolio --------------------------------------------\n\t\t$sections['portfolio'] = array(\n\t\t\t'title' \t=> __('Portfolio', 'mfn-opts'),\n\t\t\t'icon' \t\t=> MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields'\t=> array(\n\t\n\t\t\t\t// layout -----\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-info-layout',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Layout', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-posts',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Posts per page', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t\t'std' \t\t=> '8',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-layout',\n\t\t\t\t\t'type' \t\t=> 'radio_img',\n\t\t\t\t\t'title' \t=> __('Layout', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Layout for Portfolio Pages', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'flat'\t\t\t\t=> array('title' => 'Flat', 'img' => MFN_OPTIONS_URI.'img/select/portfolio/flat.png'),\n\t\t\t\t\t\t'grid'\t\t\t\t=> array('title' => 'Grid', 'img' => MFN_OPTIONS_URI.'img/select/portfolio/grid.png'),\n\t\t\t\t\t\t'masonry'\t\t\t=> array('title' => 'Masonry Blog Style', 'img' => MFN_OPTIONS_URI.'img/select/portfolio/masonry-blog.png'),\t\t\t\t\t\n\t\t\t\t\t\t'masonry-hover'\t\t=> array('title' => 'Masonry Hover Details', 'img' => MFN_OPTIONS_URI.'img/select/portfolio/masonry-hover.png'),\n\t\t\t\t\t\t'masonry-minimal'\t=> array('title' => 'Masonry Minimal', 'img' => MFN_OPTIONS_URI.'img/select/portfolio/masonry-minimal.png'),\n\t\t\t\t\t\t'masonry-flat'\t\t=> array('title' => 'Masonry Flat | 4 columns', 'img' => MFN_OPTIONS_URI.'img/select/portfolio/masonry-flat.png'),\n\t\t\t\t\t\t'list'\t\t\t\t=> array('title' => 'List | 1 column', 'img' => MFN_OPTIONS_URI.'img/select/portfolio/list.png'),\t\n\t\t\t\t\t\t'exposure'\t\t\t=> array('title' => 'Exposure | 1 column<br />for Full Width Portfolio', 'img' => MFN_OPTIONS_URI.'img/select/portfolio/exposure.png'),\t\n\t\t\t\t\t),\n\t\t\t\t\t'std' \t\t=> 'grid',\n\t\t\t\t\t'class' \t=> 'wide',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-columns',\n\t\t\t\t\t'type' \t\t=> 'sliderbar',\n\t\t\t\t\t'title' \t=> __('Columns', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('default: 3', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Recommended: 2-4. Too large value may crash the layout.<br />This option works in layouts <b>Flat, Grid, Masonry Blog Style, Masonry Hover Details</b>', 'mfn-opts'),\n\t\t\t\t\t'param'\t \t=> array(\n\t\t\t\t\t\t'min' \t\t=> 2,\n\t\t\t\t\t\t'max' \t\t=> 6,\n\t\t\t\t\t),\n\t\t\t\t\t'std' \t\t=> 4,\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-full-width',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Full Width', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('This option works in layouts <b>Flat, Grid, Masonry</b>', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array('1' => 'On','0' => 'Off'),\n\t\t\t\t\t'std' \t\t=> '0'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\t// options -----\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-info-options',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Options', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-page',\n\t\t\t\t\t'type' \t\t=> 'pages_select',\n\t\t\t\t\t'title' \t=> __('Portfolio Page', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Assign page for portfolio', 'mfn-opts'),\n\t\t\t\t\t'args' \t\t=> array()\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-orderby',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Order by', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'date'\t\t\t=> __('Date', 'mfn-opts'),\n\t\t\t\t\t\t'menu_order' \t=> __('Menu order', 'mfn-opts'),\n\t\t\t\t\t\t'title'\t\t\t=> __('Title', 'mfn-opts'),\n\t\t\t\t\t\t'rand'\t\t\t=> __('Random', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t\t'std' \t\t=> 'date'\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-order',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Order', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'ASC' \t=> __('Ascending', 'mfn-opts'),\n\t\t\t\t\t\t'DESC'\t=> __('Descending', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t\t'std' \t\t=> 'DESC'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-external',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Project Link', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Image and Title Link', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t''\t\t\t=> __('Details', 'mfn-opts'),\n\t\t\t\t\t\t'popup'\t\t=> __('Popup Image', 'mfn-opts'),\n\t\t\t\t\t\t'disable'\t=> __('Disable Details | Only Popup Image', 'mfn-opts'),\n\t\t\t\t\t\t'_self'\t\t=> __('Project Website | Open in the same window', 'mfn-opts'),\n\t\t\t\t\t\t'_blank'\t=> __('Project Website | Open in new window', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-hover-title',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Hover Title', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Show Post Title instead of Hover Icons', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Only for short post titles', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array( '0' => 'Off', '1' => 'On' ),\n\t\t\t\t\t'std' \t\t=> '0'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-filters',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Filters', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array( \n\t\t\t\t\t\t'1' \t\t\t\t=> __('Show', 'mfn-opts'), \n\t\t\t\t\t\t'only-categories' \t=> __('Show only Categories', 'mfn-opts'),\n\t\t\t\t\t\t'0' \t\t\t\t=> __('Hide', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t\t'std' \t\t=> '1'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-load-more',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Load More button', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Show Ajax Load More button', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array( '0' => 'Off', '1' => 'On' ),\n\t\t\t\t\t'std' \t\t=> '0'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-isotope',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('jQuery filtering', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('When this option is enabled, portfolio looks great with all projects on single site, so please set \"Posts per page\" option to bigger number', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array('1' => 'On','0' => 'Off'),\n\t\t\t\t\t'std' \t\t=> '1'\n\t\t\t\t),\n\t\n\t\t\t\t// single -----\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-info-single',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Single Portfolio Project', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-related',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Related Projects | Count', 'mfn-opts'),\n\t\t\t\t\t'class'\t\t=> 'small-text',\n\t\t\t\t\t'std'\t\t=> 3,\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-related-columns',\n\t\t\t\t\t'type' \t\t=> 'sliderbar',\n\t\t\t\t\t'title' \t=> __('Related Projects | Columns', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('default: 3', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Recommended: 2-4. Too large value may crash the layout', 'mfn-opts'),\n\t\t\t\t\t'param'\t \t=> array(\n\t\t\t\t\t\t'min' \t\t=> 2,\n\t\t\t\t\t\t'max' \t\t=> 6,\n\t\t\t\t\t),\n\t\t\t\t\t'std' \t\t=> 3,\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-comments',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Comments', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Show Comments', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array( '0' => 'Off', '1' => 'On' ),\n\t\t\t\t\t'std' \t\t=> '0'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-single-layout',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Layout ID', 'mfn-opts'),\n\t\t\t\t\t'class'\t\t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-single-menu',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Menu', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> mfna_menu(),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\t// advanced -----\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-info-advanced',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Advanced', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-love-rand',\n\t\t\t\t\t'type' \t\t=> 'ajax',\n\t\t\t\t\t'title' \t=> __('Random Love', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Generate random number of loves', 'mfn-opts'),\n\t\t\t\t\t'action' \t=> 'mfn_love_randomize',\n\t\t\t\t\t'param'\t \t=> 'portfolio',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-slug',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Permalink | Single Project slug', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Do not use characters not allowed in links', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Must be different from the Portfolio site title chosen above, eg. <b>portfolio-item</b>. After change go to <b>Settings > Permalinks</b> and click <b>Save changes</b>.', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t\t'std' \t\t=> 'portfolio-item',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'portfolio-tax',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Permalink | Category slug', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Do not use characters not allowed in links', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Must be different from the Portfolio site title chosen above, eg. <b>portfolio-types</b>. After change go to <b>Settings > Permalinks</b> and click <b>Save changes</b>.', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t\t'std' \t\t=> 'portfolio-types',\n\t\t\t\t),\n\t\t\t\t\t\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Shop --------------------------------------------\n\t\t$sections['shop'] = array(\n\t\t\t'title' \t=> __('Shop', 'mfn-opts'),\n\t\t\t'icon' \t\t=> MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields'\t=> array(\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'shop-info',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Shop requires free WooCommerce plugin', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info desc',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\t// layout -----\t\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'shop-info-layout',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Layout', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'shop-products',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Products per page', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t\t'std' \t\t=> '12',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'shop-layout',\n\t\t\t\t\t'type' \t\t=> 'radio_img',\n\t\t\t\t\t'title' \t=> __('Layout', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Layout for Shop Pages', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'grid'\t\t\t=> array('title' => 'Grid 3 col', 'img' => MFN_OPTIONS_URI.'img/select/shop/grid.png'),\n\t\t\t\t\t\t'grid col-4'\t=> array('title' => 'Grid 4 col', 'img' => MFN_OPTIONS_URI.'img/select/shop/grid-4.png'),\n\t\t\t\t\t\t'masonry'\t\t=> array('title' => 'Masonry', 'img' => MFN_OPTIONS_URI.'img/select/shop/masonry.png'),\n\t\t\t\t\t\t'list'\t\t\t=> array('title' => 'List', 'img' => MFN_OPTIONS_URI.'img/select/shop/list.png'),\n\t\t\t\t\t),\n\t\t\t\t\t'std' \t\t=> 'grid',\n\t\t\t\t\t'class' \t=> 'wide',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'shop-catalogue',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Catalogue Mode', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Remove all Add to Cart buttons', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array('1' => 'On','0' => 'Off'),\n\t\t\t\t\t'std' \t\t=> '0'\n\t\t\t\t),\n\t\n\t\t\t\t// options -----\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'shop-info-options',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Options', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'shop-images',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Images', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'' \t\t\t=> __('- Default -', 'mfn-opts'),\n\t\t\t\t\t\t'secondary'\t=> __('Show secondary image on hover', 'mfn-opts'),\n\t\t\t\t\t\t'plugin'\t=> __('Use external plugin for featured images', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'shop-button',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Add to Cart Button', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Show Cart button on archives', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Required for some plugins', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array( '0' => 'Off', '1' => 'On' ),\n\t\t\t\t\t'std' \t\t=> '0'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'shop-excerpt',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Descriptions', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Show descriptions on archives', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array( '0' => 'Off', '1' => 'On' ),\n\t\t\t\t\t'std' \t\t=> '0'\n\t\t\t\t),\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'shop-sidebar',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Sidebar', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Show Shop Page Sidebar on', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'' \t\t\t=> __('All (Shop, Categories, Products)', 'mfn-opts'),\n\t\t\t\t\t\t'shop'\t\t=> __('Shop & Categories', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'shop-slider',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Slider', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Show Shop Page Slider on', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'' \t\t\t=> __('Main Shop Page', 'mfn-opts'),\n\t\t\t\t\t\t'all'\t\t=> __('All (Shop, Categories, Products)', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\n\t\t\t\t// single -----\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'shop-info-single',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Single Product', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'shop-product-images',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Product Image', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'' \t\t\t=> __('- Default -', 'mfn-opts'),\n\t\t\t\t\t\t'plugin'\t=> __('Use external plugin for featured images', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'shop-product-style',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Style', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('For <b>Modern style</b> recommended image width is <b>900px</b> (1200px without sidebar)<br />You can set image size in WooCommerce > Settings > Products > Display > Single Product Image', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'' \t\t\t=> __('Accordion | Next to image', 'mfn-opts'),\n\t\t\t\t\t\t'wide' \t\t=> __('Accordion | Below image', 'mfn-opts'),\n\t\t\t\t\t\t'tabs' \t\t=> __('Tabs | Next to image', 'mfn-opts'),\n\t\t\t\t\t\t'wide tabs'\t=> __('Tabs | Below image', 'mfn-opts'),\n\t\t\t\t\t\t'modern'\t=> __('Modern', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'shop-product-title',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Title', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Show Product Title in', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'' \t\t\t\t=> __('Content', 'mfn-opts'),\n\t\t\t\t\t\t'content-sub'\t=> __('Content & Subheader', 'mfn-opts'),\n\t\t\t\t\t\t'sub'\t\t\t=> __('Subheader', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'shop-related',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Related Products | Count', 'mfn-opts'),\n\t\t\t\t\t'class'\t\t=> 'small-text',\n\t\t\t\t\t'std'\t\t=> 3,\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\t// advanced -----\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'shop-info-advanced',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Advanced', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'shop-cart',\n\t\t\t\t\t'type' \t\t=> 'icon',\n\t\t\t\t\t'title' \t=> __('Cart | Icon', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Header Cart Icon', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Leave this field blank to hide cart icon', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t\t'std' \t\t=> 'icon-basket',\n\t\t\t\t),\n\t\t\t\t\t\t\n\t\t\t),\n\t\t);\t\t\n\t\t\n\t\t// Featured Image --------------------------------------------\n\t\t$sections['featured-image'] = array(\n\t\t\t'title' \t=> __('Featured Image', 'mfn-opts'),\n\t\t\t'icon' \t\t=> MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields'\t=> array(\n\t\n\t\t\t\t// list -----\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'featured-info-list',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Blog & Portfolio <span>except Blog Style: Photo & Portfolio styles: List, Masonry Flat</span>', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'featured-blog-portfolio-width',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Width', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('default: 960', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('px', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t\t'std' \t\t=> '960',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'featured-blog-portfolio-height',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Height', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('default: 750', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('px', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t\t'std' \t\t=> '750',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'featured-blog-portfolio-crop',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Crop', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('default: Resize & Crop', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array( \n\t\t\t\t\t\t'crop' \t\t=> __('Resize & Crop', 'mfn-opts'),\n\t\t\t\t\t\t'resize' \t=> __('Resize', 'mfn-opts'), \n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\t// single -----\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'featured-info-single',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Single Post & Single Portfolio Project <span>applies Blog Style: Photo</span>', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'featured-single-width',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Width', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('default: 1200', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('px', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t\t'std' \t\t=> '1200',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'featured-single-height',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Height', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('default: 480', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('px', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t\t'std' \t\t=> '480',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'featured-single-crop',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Crop', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('default: Resize & Crop', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array( \n\t\t\t\t\t\t'crop' \t\t=> __('Resize & Crop', 'mfn-opts'),\n\t\t\t\t\t\t'resize' \t=> __('Resize', 'mfn-opts'), \n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\t// force regenerate thumbnails -----\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'featured-info-force',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('After making changes on this page use <a target=\"_blank\" href=\"https://wordpress.org/plugins/force-regenerate-thumbnails/\">Force Regenerate Thumbnails</a> plugin', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info desc',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t),\n\t\t);\t\t\n\t\t\n\t\t\n\t\t// Pages ==================================================================================\n\t\t\n\t\t// General -------------------------------------------\n\t\t$sections['pages-general'] = array(\n\t\t\t'title' \t=> __('General', 'mfn-opts'),\n\t\t\t'icon'\t\t=> MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields' \t=> array(\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'page-comments',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Page Comments', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Show Comments for pages', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Single Page', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array( '0' => 'Off', '1' => 'On' ),\n\t\t\t\t\t'std' \t\t=> '0'\n\t\t\t\t),\n\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Error 404 -------------------------------------------\n\t\t$sections['pages-404'] = array(\n\t\t\t'title' \t=> __('Error 404', 'mfn-opts'),\n\t\t\t'icon'\t\t=> MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields' \t=> array(\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'error404-icon',\n\t\t\t\t\t'type' \t\t=> 'icon',\n\t\t\t\t\t'title' \t=> __('Icon', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Error 404 Page Icon', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t\t'std' \t\t=> 'icon-traffic-cone',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'error404-page',\n\t\t\t\t\t'type' \t\t=> 'pages_select',\n\t\t\t\t\t'title' \t=> __('Custom Page', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Page Options are disabled', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Leave this field <b>blank</b> if you want to use <b>default</b> 404 page', 'mfn-opts'),\n\t\t\t\t\t'args' \t\t=> array()\n\t\t\t\t),\n\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Under Construction --------------------------------------------\n\t\t$sections['pages-under'] = array(\n\t\t\t'title' \t=> __('Under Construction', 'mfn-opts'),\n\t\t\t'icon' \t\t=> MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields'\t=> array(\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'construction',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Under Construction', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Under Construction page will be visible for all NOT logged in users.', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array('1' => 'On','0' => 'Off'),\n\t\t\t\t\t'std' \t\t=> '0'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'construction-title',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Title', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Coming Soon',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'construction-text',\n\t\t\t\t\t'type' \t\t=> 'textarea',\n\t\t\t\t\t'title' \t=> __('Text', 'mfn-opts'),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'construction-date',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Launch Date', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Format: 12/30/2014 12:00:00 month/day/year hour:minute:second<br />Leave this field <b>blank to hide the counter</b>', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '12/30/2014 12:00:00',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'construction-offset',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('UTC Timezone', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> mfna_utc(),\n\t\t\t\t\t'std' \t\t=> '0',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'construction-contact',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Contact Form Shortcode', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('eg. [contact-form-7 id=\"000\" title=\"Maintenance\"]', 'mfn-opts'),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'construction-page',\n\t\t\t\t\t'type' \t\t=> 'pages_select',\n\t\t\t\t\t'title' \t=> __('Custom Page', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Page Options are disabled', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Leave this field <b>blank</b> if you want to use <b>default</b> Under Construction page<br /><br /><b>Notice: </b>Plugins like Visual Composer & Gravity Forms <b>do not work</b> on this page', 'mfn-opts'),\n\t\t\t\t\t'args' \t\t=> array(),\n\t\t\t\t),\n\t\t\t\t\t\t\n\t\t\t),\n\t\t);\t\t\n\t\t\n\t\t// Footer =================================================================================\n\t\t\n\t\t// Footer --------------------------------------------\n\t\t$sections['footer'] = array(\n\t\t\t'title'\t\t=> __('General', 'mfn-opts'),\n\t\t\t'fields' \t=> array(\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'footer-info-layout',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Layout', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'footer-layout',\n\t\t\t\t\t'type'\t\t=> 'select',\n\t\t\t\t\t'title'\t\t=> __('Layout', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> array(\n\t\t\t\t\t\t''\t\t\t\t\t\t\t\t\t\t\t\t=> __('Default', 'mfn-opts'),\n\t\t\t\t\t\t'4;one-fourth;one-fourth;one-fourth;one-fourth'\t=> '1/4 1/4 1/4 1/4',\n\t\t\t\t\t\t'3;one-fourth;one-fourth;one-second;'\t\t\t=> '1/4 1/4 1/2',\n\t\t\t\t\t\t'3;one-fourth;one-second;one-fourth;'\t\t\t=> '1/4 1/2 1/4',\n\t\t\t\t\t\t'3;one-second;one-fourth;one-fourth;'\t\t\t=> '1/2 1/4 1/4',\n\t\t\t\t\t\t'3;one-third;one-third;one-third;'\t\t\t\t=> '1/3 1/3 1/3',\n\t\t\t\t\t\t'2;one-third;two-third;;'\t\t\t\t\t\t=> '1/3 2/3',\n\t\t\t\t\t\t'2;two-third;one-third;;'\t\t\t\t\t\t=> '2/3 1/3',\n\t\t\t\t\t\t'2;one-second;one-second;;'\t\t\t\t\t\t=> '1/2 1/2',\n\t\t\t\t\t\t'1;one;;;'\t\t\t\t\t\t\t\t\t\t=> '1/1',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'footer-style',\n\t\t\t\t\t'type'\t\t=> 'select',\n\t\t\t\t\t'title'\t\t=> __('Style', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('Sliding style does <b>not</b> work with transparent content', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> array(\n\t\t\t\t\t\t''\t\t\t=> __('Default', 'mfn-opts'),\n\t\t\t\t\t\t'fixed'\t\t=> __('Fixed (covers content)', 'mfn-opts'),\n\t\t\t\t\t\t'sliding'\t=> __('Sliding (under content)', 'mfn-opts'),\n\t\t\t\t\t\t'stick'\t\t=> __('Stick to bottom if content is too short', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'footer-padding',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Padding', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('default: 15px 0', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Use value with <b>px</b> or <b>em</b><br />Example: <b>20px 0</b> or <b>20px 0 30px 0</b> or <b>2em 0</b>', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'footer-info-background',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Background', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'footer-bg-img',\n\t\t\t\t\t'type' \t\t=> 'upload',\n\t\t\t\t\t'title' \t=> __('Image', 'mfn-opts'),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'footer-bg-img-position',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Position', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> mfna_bg_position(1),\n\t\t\t\t\t'std' \t\t=> 'center top no-repeat',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'footer-info-advanced',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Advanced', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'footer-call-to-action',\n\t\t\t\t\t'type'\t\t=> 'text',\n\t\t\t\t\t'title'\t\t=> __('Call To Action', 'mfn-opts'),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'footer-copy',\n\t\t\t\t\t'type'\t\t=> 'text',\n\t\t\t\t\t'title'\t\t=> __('Copyright', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('Leave this field blank to show a default copyright.', 'mfn-opts'),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'footer-hide',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Copyright & Social Bar', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'' \t\t\t=> __('Default', 'mfn-opts'),\n\t\t\t\t\t\t'center' \t=> __('Center', 'mfn-opts'),\n\t\t\t\t\t\t'1' \t\t=> __('Hide Copyright & Social Bar', 'mfn-opts')\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'footer-info-extras',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Extras', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'back-top-top',\n\t\t\t\t\t'type'\t\t=> 'select',\n\t\t\t\t\t'title'\t\t=> __('Back to Top button', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> array(\n\t\t\t\t\t\t''\t\t\t\t=> __('Default | in Copyright area', 'mfn-opts'),\n\t\t\t\t\t\t'sticky'\t\t=> __('Sticky', 'mfn-opts'),\n\t\t\t\t\t\t'sticky scroll'\t=> __('Sticky show on scroll', 'mfn-opts'),\n\t\t\t\t\t\t'hide'\t\t\t=> __('Hide', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'popup-contact-form',\n\t\t\t\t\t'type'\t\t=> 'text',\n\t\t\t\t\t'title'\t\t=> __('Popup Contact Form | Shortcode', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('\teg. [contact-form-7 id=\"000\" title=\"Popup Contact Form\"]', 'mfn-opts'),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'popup-contact-form-icon',\n\t\t\t\t\t'type'\t\t=> 'icon',\n\t\t\t\t\t'title'\t\t=> __('Popup Contact Form | Icon', 'mfn-opts'),\n\t\t\t\t\t'std'\t\t=> 'icon-mail-line',\n\t\t\t\t),\n\t\t\t\t\t\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Responsive =================================================================================\n\t\t\n\t\t// Responsive --------------------------------------------\n\t\t$sections['responsive'] = array(\n\t\t\t'title'\t\t=> __('General', 'mfn-opts'),\n\t\t\t'fields' \t=> array(\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'responsive-info-layout',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Layout', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'responsive',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Responsive', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('<b>Notice:</b> Responsive menu is working only with WordPress custom menu, please add one in Appearance > Menus and select it for Theme Locations section<br /><a href=\"https://codex.wordpress.org/WordPress_Menu_User_Guide\" target=\"_blank\">https://codex.wordpress.org/WordPress_Menu_User_Guide</a>', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array('1' => 'On','0' => 'Off'),\n\t\t\t\t\t'std' \t\t=> '1'\n\t\t\t\t),\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-size-responsive',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Decrease Fonts', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Automatically decrease font size in responsive', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array( '0' => 'Off', '1' => 'On' ),\n\t\t\t\t\t'std' \t\t=> '0'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'responsive-zoom',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Pinch Zoom', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Allow pinch zoom', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array( '0' => 'Off', '1' => 'On' ),\n\t\t\t\t\t'std' \t\t=> '0'\n\t\t\t\t),\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'responsive-info-header',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Header', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'mobile-menu-initial',\n\t\t\t\t\t'type' \t\t=> 'sliderbar',\n\t\t\t\t\t'title' \t=> __('Responsive Menu Initial width', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('default: 1240px', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Values <b>less than 1240</b> are for menu with small amount of items<br />This option does <b>not</b> affect Creative Header', 'mfn-opts'),\n\t\t\t\t\t'param'\t \t=> array(\n\t\t\t\t\t\t'min' \t\t=> 768,\n\t\t\t\t\t\t'max' \t\t=> 1240,\n\t\t\t\t\t),\n\t\t\t\t\t'std' \t\t=> 1240,\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'responsive-sticky',\n\t\t\t\t\t'type'\t\t=> 'switch',\n\t\t\t\t\t'title'\t\t=> __('Sticky on Tablet', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('Sticky Header <b>on tablet</b> > 768px', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> array( '0' => 'Off', '1' => 'On' ),\n\t\t\t\t\t'std'\t\t=> '0',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'responsive-tr-header',\n\t\t\t\t\t'type'\t\t=> 'switch',\n\t\t\t\t\t'title'\t\t=> __('Transparent', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('Transparent Header <b>on mobile</b> < 768px', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> array( '0' => 'Off', '1' => 'On' ),\n\t\t\t\t\t'std'\t\t=> '0',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'header-menu-mobile-sticky',\n\t\t\t\t\t'type'\t\t=> 'switch',\n\t\t\t\t\t'title'\t\t=> __('Menu Button | Sticky', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('Sticky Menu Button <b>on mobile</b> < 768px', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> array( '0' => 'Off', '1' => 'On' ),\n\t\t\t\t\t'std'\t\t=> '0',\n\t\t\t\t),\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'header-menu-text',\n\t\t\t\t\t'type'\t\t=> 'text',\n\t\t\t\t\t'title'\t\t=> __('Menu Button | Text', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('This text will be used instead of the menu icon', 'mfn-opts'),\n\t\t\t\t\t'class'\t\t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'responsive-top-bar',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Top Bar Icons', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'left' \t\t=> __('Left', 'mfn-opts'),\n\t\t\t\t\t\t'center'\t=> __('Center', 'mfn-opts'),\n\t\t\t\t\t\t'right'\t\t=> __('Right', 'mfn-opts'),\n\t\t\t\t\t\t'hide'\t\t=> __('Hide Icons & Action Button', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'responsive-info-options',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Options', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'responsive-boxed2fw',\n\t\t\t\t\t'type'\t\t=> 'switch',\n\t\t\t\t\t'title'\t\t=> __('Boxed to Full Width', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('Change layout from Boxed to Full Witdh <b>on mobile</b> < 768px', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> array( '0' => 'Off', '1' => 'On' ),\n\t\t\t\t\t'std'\t\t=> '0',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'no-hover',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Hover Effects', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'' \t\t\t=> __('Always Enabled', 'mfn-opts'),\n\t\t\t\t\t\t'tablet'\t=> __('Enabled on Desktop only', 'mfn-opts')\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'no-section-bg',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Section | Background Image', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'' \t\t\t=> __('Always Show', 'mfn-opts'),\n\t\t\t\t\t\t'tablet'\t=> __('Show on Desktop only', 'mfn-opts')\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'responsive-parallax',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Section | Parallax', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Works only with <b>Translate3d</b> parallax. May run slowly on older devices', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t0 \t=> __('Disable on mobile', 'mfn-opts'),\n\t\t\t\t\t\t1\t=> __('Enable on mobile', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'responsive-info-logo',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Logo <span>optional</span>', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'responsive-logo-img',\n\t\t\t\t\t'type'\t\t=> 'upload',\n\t\t\t\t\t'title'\t\t=> __('Logo', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('Use if you want different logo <b>on mobile</b> < 768px', 'mfn-opts'),\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'responsive-retina-logo-img',\n\t\t\t\t\t'type'\t\t=> 'upload',\n\t\t\t\t\t'title'\t\t=> __('Retina Logo', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('Retina Logo should be 2x larger than Logo', 'mfn-opts'),\n\t\t\t\t),\n\t\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// SEO ====================================================================================\n\t\t\n\t\t// SEO -------------------------------------------\n\t\t$sections['seo'] = array(\n\t\t\t'title' \t=> __('General', 'mfn-opts'),\n\t\t\t'icon' \t\t=> MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields'\t=> array(\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'seo-info-google',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Google', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'google-analytics',\n\t\t\t\t\t'type' \t\t=> 'textarea',\n\t\t\t\t\t'title' \t=> __('Google | Analytics', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Paste your Google Analytics code here', 'mfn-opts'),\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'google-remarketing',\n\t\t\t\t\t'type' \t\t=> 'textarea',\n\t\t\t\t\t'title' \t=> __('Google | Remarketing', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Paste your Google Remarketing code here', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('This code will be included on all pages immediately before the tag &lt;/body&gt;', 'mfn-opts'),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'seo-info-fields',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('SEO Fields', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'mfn-seo',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Use built-in fields', 'mfn-opts'), \n\t\t\t\t\t'desc' \t\t=> __('Turn it OFF if you want to use external SEO plugin', 'mfn-opts'), \n\t\t\t\t\t'options' \t=> array('1' => 'On','0' => 'Off'),\n\t\t\t\t\t'std' \t\t=> '1'\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'meta-description',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Meta Description', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('These setting may be overridden for single posts & pages', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> get_bloginfo( 'description' ),\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'meta-keywords',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Meta Keywords', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('These setting may be overridden for single posts & pages', 'mfn-opts'),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'seo-info-advanced',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Advanced', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'mfn-seo-schema-type',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Schema Type', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Add Schema Type to &lt;html&gt; tag', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array('1' => 'On','0' => 'Off'),\n\t\t\t\t\t'std' \t\t=> '1'\n\t\t\t\t),\n\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Social Icons ===========================================================================\n\t\t\n\t\t// Social Icons --------------------------------------------\n\t\t$sections['social'] = array(\n\t\t\t'title' => __('General', 'mfn-opts'),\n\t\t\t'icon' => MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields' => array(\n\t\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'social-target',\n\t\t\t\t\t'type'\t\t=> 'switch',\n\t\t\t\t\t'title'\t\t=> __('Open links in new window', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('Open social links in new window', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> array( '1' => 'On', '0' => 'Off' ),\n\t\t\t\t\t'std'\t\t=> '0'\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'social-skype',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Skype', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Type your Skype login here', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('You can use <strong>callto:</strong> or <strong>skype:</strong> prefix' , 'mfn-opts'),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'social-facebook',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Facebook', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Type your Facebook link here', 'mfn-opts'),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'social-googleplus',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Google +', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Type your Google + link here', 'mfn-opts'),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'social-twitter',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Twitter', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Type your Twitter link here', 'mfn-opts'),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'social-vimeo',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Vimeo', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Type your Vimeo link here', 'mfn-opts'),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'social-youtube',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('YouTube', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Type your YouTube link here', 'mfn-opts'),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'social-flickr',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Flickr', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Type your Flickr link here', 'mfn-opts'),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'social-linkedin',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('LinkedIn', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Type your LinkedIn link here', 'mfn-opts'),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'social-pinterest',\n\t\t\t\t\t'type'\t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Pinterest', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Type your Pinterest link here', 'mfn-opts'),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'social-dribbble',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Dribbble', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Type your Dribbble link here', 'mfn-opts'),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'social-instagram',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Instagram', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Type your Instagram link here', 'mfn-opts'),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'social-behance',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Behance', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Type your Behance link here', 'mfn-opts'),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'social-tumblr',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Tumblr', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Type your Tumblr link here', 'mfn-opts'),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'social-vkontakte',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('VKontakte', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Type your VKontakte link here', 'mfn-opts'),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'social-viadeo',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Viadeo', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Type your Viadeo link here', 'mfn-opts'),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'social-xing',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Xing', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Type your Xing link here', 'mfn-opts'),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id'\t\t=> 'social-rss',\n\t\t\t\t\t'type'\t\t=> 'switch',\n\t\t\t\t\t'title'\t\t=> __('RSS', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('Show the RSS icon', 'mfn-opts'),\n\t\t\t\t\t'options'\t=> array('1' => 'On','0' => 'Off'),\n\t\t\t\t\t'std'\t\t=> '0'\n\t\t\t\t),\n\t\t\t\t\t\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Addons, Plugins ========================================================================\n\n\t\t// Addons -------------------------------------------\n\t\t$sections['addons'] = array(\n\t\t\t'title'\t\t=> __('Addons', 'mfn-opts'),\n\t\t\t'icon' \t\t=> MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields'\t=> array(\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'addons-info-parallax',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Parallax', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'parallax',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Parallax | Plugin', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'translate3d' \t\t\t=> __('Translate3d', 'mfn-opts'),\n\t\t\t\t\t\t'translate3d no-safari' => __('Translate3d | Enllax in Safari (in some cases may run smoother)', 'mfn-opts'),\n\t\t\t\t\t\t'enllax' \t\t\t\t=> __('Enllax', 'mfn-opts'),\n\t\t\t\t\t\t'stellar' \t\t\t\t=> __('Stellar | old', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'addons-info-scroll',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Scroll', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'nice-scroll',\n\t\t\t\t\t'type' \t\t=> 'select',\t\t\t\t\t\t\t// mfn-demo plugin uses nice scroll !!!\n\t\t\t\t\t'title' \t=> __('Scroll | Plugin', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Nice Scroll do not support Ctrl+F properly', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'1' \t\t=> __('Nice Scroll | Scrollbar with iOS/mobile style', 'mfn-opts'),\n\t\t\t\t\t\t'smooth' \t=> __('Smooth Scroll', 'mfn-opts'),\n\t\t\t\t\t\t'0' \t\t=> __('Default Browser Scroll', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'nice-scroll-speed',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Nice Scroll | Speed', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('default: 40', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t\t'std' \t\t=> '40',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'addons-info-prettyphoto',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Pretty Photo', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'prettyphoto-options',\n\t\t\t\t\t'type' \t\t=> 'checkbox',\n\t\t\t\t\t'title' \t=> __('Pretty Photo | Options', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'disable'\t\t\t=> __('Disable<span>Disable prettyPhoto if you use other plugin</span>', 'mfn-opts'),\n\t\t\t\t\t\t'disable-mobile'\t=> __('Disable on Mobile only', 'mfn-opts'),\n\t\t\t\t\t\t'title'\t\t\t\t=> __('Show image alt text above prettyPhoto frame', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'prettyphoto',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Pretty Photo | Style', 'mfn-opts'), \n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'pp_default' \t=> __('Default', 'mfn-opts'),\n\t\t\t\t\t\t'light_rounded' => __('Light Rounded', 'mfn-opts'),\n\t\t\t\t\t\t'dark_rounded'\t=> __('Dark Rounded', 'mfn-opts'),\n\t\t\t\t\t\t'light_square' \t=> __('Light Square', 'mfn-opts'),\n\t\t\t\t\t\t'dark_square'\t=> __('Dark Square', 'mfn-opts'),\n\t\t\t\t\t\t'facebook'\t\t=> __('Facebook', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'prettyphoto-width',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Pretty Photo | Width', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('prettyPhoto popup width for iframe video', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('px. Leave blank to use auto width', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'prettyphoto-height',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Pretty Photo | Height', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('prettyPhoto popup height for iframe video', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('px. Leave blank to use auto height', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'addons-info-addons',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Addons', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'sc-gallery-disable',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Gallery Shortcode | Disable', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Disable Theme Gallery Shortcode', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Turn it <b>on</b> if you want to use external gallery plugin or Jetpack', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array( '0' => 'Off', '1' => 'On' ),\n\t\t\t\t\t'std' \t\t=> '0'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'retina-js-disable',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Retina.js | Disable', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Disable Retina.js', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Does <b>not affect Retina Logo</b>. If you use Retina.js please prepare @2x images<br />More info: <a target=\"_blank\" href=\"http://imulus.github.io/retinajs/\">http://imulus.github.io/retinajs/</a>', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array( '0' => 'Off', '1' => 'On' ),\n\t\t\t\t\t'std' \t\t=> '0'\n\t\t\t\t),\n\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Plugins --------------------------------------------\n\t\t$sections['plugins'] = array(\n\t\t\t'title' => __('Premium Plugins', 'mfn-opts'),\n\t\t\t'icon' => MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields' => array(\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'plugins-info',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Below plugins came bundled with a theme.<br />The use of these plugins is limited to this theme only.<br /><br />Hovewer if you have <b>purchased an extra single license</b> on CodeCanyon for any of these plugins you can <b>disable \"bundled\"</b> option for plugin you have purchased.<br />After that you can enter your plugin purchase code on <b>plugin options page</b> to get <b>Premium Support from Plugin Author</b> and <b>Auto Updates</b>.', 'mfn-opts'),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'plugin-rev',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Revolution Slider', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t''\t\t\t=> __('Bundled with a Theme', 'mfn-opts'),\n\t\t\t\t\t\t'disable'\t=> __('I have purchased an extra licence on CodeCanyon', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'plugin-layer',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Layer Slider', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t''\t\t\t=> __('Bundled with a Theme', 'mfn-opts'),\n\t\t\t\t\t\t'disable'\t=> __('I have purchased an extra licence on CodeCanyon', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'plugin-visual',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Visual Composer', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t''\t\t\t=> __('Bundled with a Theme', 'mfn-opts'),\n\t\t\t\t\t\t'disable'\t=> __('I have purchased an extra licence on CodeCanyon', 'mfn-opts'),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\t\n\t\t\t),\n\t\t);\n\n\t\t// Colors =================================================================================\n\t\t\n\t\t// General --------------------------------------------\n\t\t$sections['colors-general'] = array(\n\t\t\t'title' => __('General', 'mfn-opts'),\n\t\t\t'icon' => MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields' => array(\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'colors-general-info-skin',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Skin', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'skin',\n\t\t\t\t\t'type' \t\t=> 'select',\n\t\t\t\t\t'title' \t=> __('Theme Skin', 'mfn-opts'), \n\t\t\t\t\t'sub_desc' \t=> __('Choose one of the predefined styles or set your own colors', 'mfn-opts'), \n\t\t\t\t\t'desc' \t\t=> __('<strong>Important:</strong> Color options can be used only with the <strong>Custom Skin</strong>', 'mfn-opts'), \n\t\t\t\t\t'options' \t=> mfna_skin(),\n\t\t\t\t\t'std' \t\t=> 'custom',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-one',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('One Color', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('One Color Skin Generator', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('for <strong>One Color Skin</strong>', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991D6',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'colors-general-info-background',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Background', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-html',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Body background', 'mfn-opts'), \n\t\t\t\t\t'desc' \t\t=> __('for <strong>Boxed Layout</strong>', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#FCFCFC',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-body',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Content background', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#FCFCFC',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Header --------------------------------------------\n\t\t$sections['colors-header'] = array(\n\t\t\t'title' => __('Header', 'mfn-opts'),\n\t\t\t'icon' => MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields' => array(\n\t\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-header',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Header background', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#000119',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-top-left',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Top Bar Left background', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('This is also Mobile Header & Top Bar Background for some Header Styles', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#ffffff',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-top-middle',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Top Bar Middle background', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#e3e3e3',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-top-right',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Top Bar Right | background', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#f5f5f5',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-top-right-a',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Top Bar Right | Icon color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#444444',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-search',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Search Bar background', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991D6',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-subheader',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Subheader background', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#F7F7F7',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-subheader',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Subheader Title color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#888888',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Menu --------------------------------------------\n\t\t$sections['colors-menu'] = array(\n\t\t\t'title' => __('Menu & Action Bar', 'mfn-opts'),\n\t\t\t'icon' => MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields' => array(\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'colors-info-menu',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Menu', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-menu-a',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Link color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#444444',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-menu-a-active',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Active Link color', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('This is also Active Link Border', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-menu-a-active',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Active Link background', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('For: Highlight & Plain Menu style', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#F2F2F2',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'colors-info-submenu',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Submenu', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-submenu',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Background', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#F2F2F2',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-submenu-a',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Link color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#5f5f5f',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-submenu-a-hover',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Hover Link color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2e2e2e',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'colors-info-menu-styles',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Styles<span>for specific header styles</span>', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-overlay-menu-button',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Overlay Menu | Button color', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Header Overlay Menu only', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-overlay-menu-button',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Overlay Menu | Button background', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('optional', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Header Overlay Menu only', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-overlay-menu',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Overlay Menu | Menu background', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Header Overlay Menu only', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6',\n\t\t\t\t),\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-overlay-menu-a',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Overlay Menu | Link color', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Header Overlay Menu only', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#FFFFFF',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-overlay-menu-a-active',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Overlay Menu | Active Link color', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Header Overlay Menu only', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#B1DCFB',\n\t\t\t\t),\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'border-menu-plain',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Plain Menu | Border color', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Header Plain only', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#F2F2F2',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-menu-responsive-icon',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Responsive Menu | Button color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'colors-info-action-bar',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Action Bar', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-action-bar',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Background', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('For some Header Styles', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2C2C2C',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Content --------------------------------------------\n\t\t$sections['content'] = array(\n\t\t\t'title' => __('Content', 'mfn-opts'),\n\t\t\t'icon' => MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields' => array(\n\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-theme',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Theme color', 'mfn-opts'), \n\t\t\t\t\t'sub_desc' \t=> __('Color for highlighted buttons, icons and other small elements', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('You can use <strong>.themecolor</strong> and <strong>.themebg</strong> classes in your content', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-text',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Text color', 'mfn-opts'), \n\t\t\t\t\t'sub_desc' \t=> __('Content text color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#626262'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-a',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Link color', 'mfn-opts'), \n\t\t\t\t\t'std' \t\t=> '#2991d6'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-a-hover',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Link Hover color', 'mfn-opts'), \n\t\t\t\t\t'std' \t\t=> '#2275ac'\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-fancy-link',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Fancy Link | color', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('For some link styles only', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#656B6F'\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-fancy-link',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Fancy Link | background', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('For some link styles only', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2195de'\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-fancy-link-hover',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Fancy Link | Hover color', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('For some link styles only', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6'\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-fancy-link-hover',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Fancy Link | Hover background', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('For some link styles only', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2275ac'\n\t\t\t\t),\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-note',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Note color', 'mfn-opts'), \n\t\t\t\t\t'desc' \t\t=> __('eg. Blog meta, Filters, Widgets meta', 'mfn-opts'), \n\t\t\t\t\t'std' \t\t=> '#a8a8a8'\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-list',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('List color', 'mfn-opts'), \n\t\t\t\t\t'desc' \t\t=> __('Ordered, Unordered & Bullets List', 'mfn-opts'), \n\t\t\t\t\t'std' \t\t=> '#737E86'\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-highlight',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Dropcap & Highlight background', 'mfn-opts'), \n\t\t\t\t\t'std' \t\t=> '#2991d6'\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-highlight-section',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Highlight Section background', 'mfn-opts'), \n\t\t\t\t\t'std' \t\t=> '#2991d6'\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-hr',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Hr color', 'mfn-opts'), \n\t\t\t\t\t'desc' \t\t=> __('Dots, ZigZag & Theme Color', 'mfn-opts'), \n\t\t\t\t\t'std' \t\t=> '#2991d6'\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-button',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Button | background', 'mfn-opts'), \n\t\t\t\t\t'std' \t\t=> '#f7f7f7'\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-button',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Button | color', 'mfn-opts'), \n\t\t\t\t\t'std' \t\t=> '#747474'\n\t\t\t\t),\n\t\t\t\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Footer --------------------------------------------\n\t\t$sections['colors-footer'] = array(\n\t\t\t'title' => __('Footer', 'mfn-opts'),\n\t\t\t'icon' => MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields' => array(\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-footer-theme',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Footer Theme color', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Color for icons and other small elements', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('You can use <strong>.themecolor</strong> and <strong>.themebg</strong> classes in your footer content', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-footer',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Footer background', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#545454',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-footer',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Footer Text color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#cccccc',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-footer-a',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Footer Link color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-footer-a-hover',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Footer Hover Link color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2275ac',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-footer-heading',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Footer Heading color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#ffffff',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-footer-note',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Footer Note color', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('eg. Widget meta', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#a8a8a8',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Sliding Top --------------------------------------------\n\t\t$sections['colors-sliding-top'] = array(\n\t\t\t'title' => __('Sliding Top', 'mfn-opts'),\n\t\t\t'icon' => MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields' => array(\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-sliding-top-theme',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Sliding Top Theme color', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Color for icons and other small elements', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('You can use <strong>.themecolor</strong> and <strong>.themebg</strong> classes in your Sliding Top content', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-sliding-top',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Sliding Top background', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#545454',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-sliding-top',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Sliding Top Text color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#cccccc',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-sliding-top-a',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Sliding Top Link color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-sliding-top-a-hover',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Sliding Top Hover Link color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2275ac',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-sliding-top-heading',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Sliding Top Heading color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#ffffff',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-sliding-top-note',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Sliding Top Note color', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('eg. Widget meta', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#a8a8a8',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Headings --------------------------------------------\n\t\t$sections['headings'] = array(\n\t\t\t'title' => __('Headings', 'mfn-opts'),\n\t\t\t'icon' => MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields' => array(\n\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-h1',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Heading H1 color', 'mfn-opts'), \n\t\t\t\t\t'std' \t\t=> '#444444'\n\t\t\t\t),\n\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-h2',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Heading H2 color', 'mfn-opts'), \n\t\t\t\t\t'std' \t\t=> '#444444'\n\t\t\t\t),\n\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-h3',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Heading H3 color', 'mfn-opts'), \n\t\t\t\t\t'std' \t\t=> '#444444'\n\t\t\t\t),\n\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-h4',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Heading H4 color', 'mfn-opts'), \n\t\t\t\t\t'std' \t\t=> '#444444'\n\t\t\t\t),\n\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-h5',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Heading H5 color', 'mfn-opts'), \n\t\t\t\t\t'std' \t\t=> '#444444'\n\t\t\t\t),\n\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-h6',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title' \t=> __('Heading H6 color', 'mfn-opts'), \n\t\t\t\t\t'std' \t\t=> '#444444'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Shortcodes --------------------------------------------\n\t\t$sections['colors-shortcodes'] = array(\n\t\t\t'title' => __('Shortcodes', 'mfn-opts'),\n\t\t\t'icon' => MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields' => array(\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-tab-title',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title'\t\t=> __('Accordion & Tabs Active Title color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-blockquote',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title'\t\t=> __('Blockquote color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#444444',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-contentlink',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title'\t\t=> __('Content Link Icon color', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('This is also Content Link Hover Border', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-counter',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title'\t\t=> __('Counter Icon color', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('This is also Chart Progress color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-getintouch',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title'\t\t=> __('Get in Touch background', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('This is also Infobox background', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-iconbar',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title'\t\t=> __('Icon Bar Hover Icon color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-iconbox',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title'\t\t=> __('Icon Box Icon color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-imageframe-link',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title'\t\t=> __('Image Frame Link background', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('This is also Image Frame Hover Link color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-imageframe-link',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title'\t\t=> __('Image Frame Link color', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('This is also Image Frame Hover Link background', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#ffffff',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-list-icon',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title'\t\t=> __('List & Feature List Icon color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-pricing-price',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title'\t\t=> __('Pricing Box Price color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-pricing-featured',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title'\t\t=> __('Pricing Box Featured background', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-progressbar',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title'\t\t=> __('Progress Bar background', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-quickfact-number',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title'\t\t=> __('Quick Fact Number color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-slidingbox-title',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title'\t\t=> __('Sliding Box Title background', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-trailer-subtitle',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title'\t\t=> __('Trailer Box Subtitle background', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#2991d6',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Forms --------------------------------------------\n\t\t$sections['colors-forms'] = array(\n\t\t\t'title' => __('Forms', 'mfn-opts'),\n\t\t\t'icon' => MFN_OPTIONS_URI. 'img/icons/sub.png',\n\t\t\t'fields' => array(\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'form-info-input',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Input, Select & Textarea', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-form',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title'\t\t=> __('Text color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#626262',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-form',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title'\t\t=> __('Background', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#FFFFFF',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'border-form',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title'\t\t=> __('Border color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#EBEBEB',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'form-info-focus',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Focus', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'color-form-focus',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title'\t\t=> __('Text color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#1982c2',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'background-form-focus',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title'\t\t=> __('Background', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#e9f5fc',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'border-form-focus',\n\t\t\t\t\t'type' \t\t=> 'color',\n\t\t\t\t\t'title'\t\t=> __('Border color', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> '#d5e5ee',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'form-info-advanced',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Advanced', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'form-transparent',\n\t\t\t\t\t'type' \t\t=> 'sliderbar',\n\t\t\t\t\t'title' \t=> __('Background Transparency (alpha)', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('0 = transparent, 100 = solid', 'mfn-opts'),\n\t\t\t\t\t'param'\t \t=> array(\n\t\t\t\t\t\t'min' \t\t=> 0,\n\t\t\t\t\t\t'max' \t\t=> 100,\n\t\t\t\t\t),\n\t\t\t\t\t'std' \t\t=> '100',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t),\n\t\t);\n\t\n\t\t// Font Family --------------------------------------------\n\t\t$sections['font-family'] = array(\n\t\t\t'title' => __('Family', 'mfn-opts'),\n\t\t\t'fields' => array(\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-info-family',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Font Family', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-content',\n\t\t\t\t\t'type' \t\t=> 'font_select',\n\t\t\t\t\t'title' \t=> __('Content', 'mfn-opts'), \n\t\t\t\t\t'sub_desc'\t=> __('All theme texts except headings and menu', 'mfn-opts'), \n\t\t\t\t\t'std' \t\t=> 'Roboto'\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-menu',\n\t\t\t\t\t'type' \t\t=> 'font_select',\n\t\t\t\t\t'title' \t=> __('Main Menu', 'mfn-opts'), \n\t\t\t\t\t'sub_desc' \t=> __('Header menu', 'mfn-opts'), \n\t\t\t\t\t'std' \t\t=> 'Roboto'\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-title',\n\t\t\t\t\t'type' \t\t=> 'font_select',\n\t\t\t\t\t'title' \t=> __('Page Title', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Patua One'\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-headings',\n\t\t\t\t\t'type' \t\t=> 'font_select',\n\t\t\t\t\t'title' \t=> __('Big Headings', 'mfn-opts'), \n\t\t\t\t\t'sub_desc' \t=> __('H1, H2, H3 & H4 headings', 'mfn-opts'), \n\t\t\t\t\t'std' \t\t=> 'Patua One'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-headings-small',\n\t\t\t\t\t'type' \t\t=> 'font_select',\n\t\t\t\t\t'title' \t=> __('Small Headings', 'mfn-opts'), \n\t\t\t\t\t'sub_desc' \t=> __('H5 & H6 headings', 'mfn-opts'), \n\t\t\t\t\t'std' \t\t=> 'Roboto'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-blockquote',\n\t\t\t\t\t'type' \t\t=> 'font_select',\n\t\t\t\t\t'title' \t=> __('Blockquote', 'mfn-opts'), \n\t\t\t\t\t'std' \t\t=> 'Patua One'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-decorative',\n\t\t\t\t\t'type' \t\t=> 'font_select',\n\t\t\t\t\t'title' \t=> __('Decorative', 'mfn-opts'), \n\t\t\t\t\t'sub_desc' \t=> __('Digits in some items', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('eg. Chart Box, Counter, How it Works, Quick Fact, Single Product Price', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Patua One'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-info-google',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Google Fonts', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-weight',\n\t\t\t\t\t'type' \t\t=> 'checkbox',\n\t\t\t\t\t'title' \t=> __('Google Fonts Weight & Style', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Impact on page <b>load time</b>', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Some of the fonts in the Google Fonts Directory support multiple styles. For a complete list of available font subsets please see <a href=\"http://www.google.com/webfonts\" target=\"_blank\">Google Web Fonts</a>', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array(\n\t\t\t\t\t\t'100'\t\t=> '100 Thin',\n\t\t\t\t\t\t'100italic'\t=> '100 Thin Italic',\n\t\t\t\t\t\t'200'\t\t=> '200 Extra-Light',\n\t\t\t\t\t\t'200italic'\t=> '200 Extra-Light Italic',\n\t\t\t\t\t\t'300'\t\t=> '300 Light',\n\t\t\t\t\t\t'300italic'\t=> '300 Light Italic',\n\t\t\t\t\t\t'400'\t\t=> '400 Regular',\n\t\t\t\t\t\t'400italic'\t=> '400 Regular Italic',\n\t\t\t\t\t\t'500'\t\t=> '500 Medium',\n\t\t\t\t\t\t'500italic'\t=> '500 Medium Italic',\n\t\t\t\t\t\t'600'\t\t=> '600 Semi-Bold',\n\t\t\t\t\t\t'600italic'\t=> '600 Semi-Bold Italic',\n\t\t\t\t\t\t'700'\t\t=> '700 Bold',\n\t\t\t\t\t\t'700italic'\t=> '700 Bold Italic',\n\t\t\t\t\t\t'800'\t\t=> '800 Extra-Bold',\n\t\t\t\t\t\t'800italic'\t=> '800 Extra-Bold Italic',\n\t\t\t\t\t\t'900'\t\t=> '900 Black',\n\t\t\t\t\t\t'900italic'\t=> '900 Black Italic',\n\t\t\t\t\t),\n\t\t\t\t\t'class'\t\t=> 'float-left',\n\t\t\t\t),\t\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-subset',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Google Fonts Subset', 'mfn-opts'),\t\t\t\t\n\t\t\t\t\t'sub_desc' \t=> __('Specify which subsets should be downloaded. Multiple subsets should be separated with coma (,)', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Some of the fonts in the Google Fonts Directory support multiple scripts (like Latin and Cyrillic for example). For a complete list of available font subsets please see <a href=\"http://www.google.com/webfonts\" target=\"_blank\">Google Web Fonts</a>', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text'\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Content Font Size --------------------------------------------\n\t\t$sections['font-size'] = array(\n\t\t\t'title' => __('Size & Style', 'mfn-opts'),\n\t\t\t'fields' => array(\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-size-info-general',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('General', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-size-content',\n\t\t\t\t\t'type' \t\t=> 'typography',\n\t\t\t\t\t'title' \t=> __('Content', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('This font size will be used for all theme texts<br/>default: 13', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Some of Google Fonts support multiple weights & styles. Include them in <b>Theme Options > Fonts > Family > Google Fonts Weight & Style</b>', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> array(\n\t\t\t\t\t\t'size' \t\t\t\t=> 13,\n\t\t\t\t\t\t'line_height' \t\t=> 21,\n\t\t\t\t\t\t'weight_style' \t\t=> '400',\n\t\t\t\t\t\t'letter_spacing' \t=> 0,\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-size-menu',\n\t\t\t\t\t'type' \t\t=> 'typography',\n\t\t\t\t\t'title' \t=> __('Main menu', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> 'This font size will be used for all theme texts<br/>default: 14',\n\t\t\t\t\t'disable' \t=> 'line_height',\n\t\t\t\t\t'std' \t\t=> array(\n\t\t\t\t\t\t'size' \t\t\t\t=> 14,\n\t\t\t\t\t\t'line_height' \t\t=> 0,\n\t\t\t\t\t\t'weight_style' \t\t=> '400',\n\t\t\t\t\t\t'letter_spacing' \t=> 0,\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-size-title',\n\t\t\t\t\t'type' \t\t=> 'typography',\n\t\t\t\t\t'title' \t=> __('Page Title', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> 'default: 25',\n\t\t\t\t\t'std' \t\t=> array(\n\t\t\t\t\t\t'size' \t\t\t\t=> 25,\n\t\t\t\t\t\t'line_height' \t\t=> 25,\n\t\t\t\t\t\t'weight_style' \t\t=> '400',\n\t\t\t\t\t\t'letter_spacing' \t=> 0,\n\t\t\t\t\t),\t\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-size-info-heading',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Heading', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-size-h1',\n\t\t\t\t\t'type' \t\t=> 'typography',\n\t\t\t\t\t'title' \t=> __('H1', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> 'default: 25',\n\t\t\t\t\t'std' \t\t=> array(\n\t\t\t\t\t\t'size' \t\t\t\t=> 25,\n\t\t\t\t\t\t'line_height' \t\t=> 25,\n\t\t\t\t\t\t'weight_style' \t\t=> '300',\n\t\t\t\t\t\t'letter_spacing' \t=> 0,\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-size-h2',\n\t\t\t\t\t'type' \t\t=> 'typography',\n\t\t\t\t\t'title' \t=> __('H2', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> 'default: 30',\n\t\t\t\t\t'std' \t\t=> array(\n\t\t\t\t\t\t'size' \t\t\t\t=> 30,\n\t\t\t\t\t\t'line_height' \t\t=> 30,\n\t\t\t\t\t\t'weight_style' \t\t=> '300',\n\t\t\t\t\t\t'letter_spacing' \t=> 0,\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-size-h3',\n\t\t\t\t\t'type' \t\t=> 'typography',\n\t\t\t\t\t'title' \t=> __('H3', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> 'default: 25',\n\t\t\t\t\t'std' \t\t=> array(\n\t\t\t\t\t\t'size' \t\t\t\t=> 25,\n\t\t\t\t\t\t'line_height' \t\t=> 27,\n\t\t\t\t\t\t'weight_style' \t\t=> '300',\n\t\t\t\t\t\t'letter_spacing' \t=> 0,\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-size-h4',\n\t\t\t\t\t'type' \t\t=> 'typography',\n\t\t\t\t\t'title' \t=> __('H4', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> 'default: 21',\n\t\t\t\t\t'std' \t\t=> array(\n\t\t\t\t\t\t'size' \t\t\t\t=> 21,\n\t\t\t\t\t\t'line_height' \t\t=> 25,\n\t\t\t\t\t\t'weight_style' \t\t=> '300',\n\t\t\t\t\t\t'letter_spacing' \t=> 0,\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-size-h5',\n\t\t\t\t\t'type' \t\t=> 'typography',\n\t\t\t\t\t'title' \t=> __('H5', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> 'default: 15',\n\t\t\t\t\t'std' \t\t=> array(\n\t\t\t\t\t\t'size' \t\t\t\t=> 15,\n\t\t\t\t\t\t'line_height' \t\t=> 19,\n\t\t\t\t\t\t'weight_style' \t\t=> '700',\n\t\t\t\t\t\t'letter_spacing' \t=> 0,\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-size-h6',\n\t\t\t\t\t'type' \t\t=> 'typography',\n\t\t\t\t\t'title' \t=> __('H6', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> 'default: 13',\n\t\t\t\t\t'std' \t\t=> array(\n\t\t\t\t\t\t'size' \t\t\t\t=> 13,\n\t\t\t\t\t\t'line_height' \t\t=> 19,\n\t\t\t\t\t\t'weight_style' \t\t=> '400',\n\t\t\t\t\t\t'letter_spacing' \t=> 0,\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-size-info-advanced',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Advanced', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-size-single-intro',\n\t\t\t\t\t'type' \t\t=> 'typography',\n\t\t\t\t\t'title' \t=> __('Single Post | Intro', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> 'default: 70',\n\t\t\t\t\t'std' \t\t=> array(\n\t\t\t\t\t\t'size' \t\t\t\t=> 70,\n\t\t\t\t\t\t'line_height' \t\t=> 70,\n\t\t\t\t\t\t'weight_style' \t\t=> '400',\n\t\t\t\t\t\t'letter_spacing' \t=> 0,\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Font Custom --------------------------------------------\n\t\t$sections['font-custom'] = array(\n\t\t\t'title' => __('Custom', 'mfn-opts'),\n\t\t\t'fields' => array(\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-custom',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Font | Name', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Please use only letters or spaces, eg. Patua One', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Name for Custom Font uploaded below. Font will show on fonts list after click the Save Changes button.' , 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-custom-woff',\n\t\t\t\t\t'type' \t\t=> 'upload',\n\t\t\t\t\t'title' \t=> __('Font | .woff', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> '',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-custom-ttf',\n\t\t\t\t\t'type' \t\t=> 'upload',\n\t\t\t\t\t'title' \t=> __('Font | .ttf', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> '',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-custom-svg',\n\t\t\t\t\t'type' \t\t=> 'upload',\n\t\t\t\t\t'title' \t=> __('Font | .svg', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> '',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-custom-eot',\n\t\t\t\t\t'type' \t\t=> 'upload',\n\t\t\t\t\t'title' \t=> __('Font | .eot', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> '',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-custom2',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Font 2 | Name', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Please use only letters or spaces, eg. Patua One', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Name for Custom Font 2 uploaded below. Font will show on fonts list after click the Save Changes button.' , 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-custom2-woff',\n\t\t\t\t\t'type' \t\t=> 'upload',\n\t\t\t\t\t'title' \t=> __('Font 2 | .woff', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> '',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-custom2-ttf',\n\t\t\t\t\t'type' \t\t=> 'upload',\n\t\t\t\t\t'title' \t=> __('Font 2 | .ttf', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> '',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-custom2-svg',\n\t\t\t\t\t'type' \t\t=> 'upload',\n\t\t\t\t\t'title' \t=> __('Font 2 | .svg', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> '',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'font-custom2-eot',\n\t\t\t\t\t'type' \t\t=> 'upload',\n\t\t\t\t\t'title' \t=> __('Font 2 | .eot', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> '',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t\n\t\t// Translate / General --------------------------------------------\n\t\t$sections['translate-general'] = array(\n\t\t\t'title' => __('General', 'mfn-opts'),\n\t\t\t'fields' => array(\n\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate',\n\t\t\t\t\t'type' \t\t=> 'switch',\n\t\t\t\t\t'title' \t=> __('Enable Translate', 'mfn-opts'), \n\t\t\t\t\t'desc' \t\t=> __('Turn it off if you want to use .mo .po files for more complex translation.', 'mfn-opts'),\n\t\t\t\t\t'options' \t=> array('1' => 'On','0' => 'Off'),\n\t\t\t\t\t'std' \t\t=> '1'\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-search-placeholder',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Search Placeholder', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Search Form', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Enter your search',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-search-results',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('results found for:', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Search Results', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'results found for:',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-home',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Home', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Breadcrumbs', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Home',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-prev',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Prev page', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Pagination', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Prev page',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-next',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Next page', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Pagination', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Next page',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-load-more',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Load more', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Pagination', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Load more',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-wpml-no',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('No translations available for this page', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('WPML Languages Menu', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'No translations available for this page',\n\t\t\t\t),\n\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-info-items',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Items <span>Builder items and shortcodes</span>', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-before',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Before', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Before After', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Before',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-after',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('After', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Before After', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'After',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-days',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Days', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Countdown', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'days',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-hours',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Hours', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Countdown', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'hours',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-minutes',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Minutes', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Countdown', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'minutes',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-seconds',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Seconds', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Countdown', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'seconds',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Translate / Blog --------------------------------------------\n\t\t$sections['translate-blog'] = array(\n\t\t\t'title' => __('Blog & Portfolio', 'mfn-opts'),\n\t\t\t'fields' => array(\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-filter',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Filter by', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Blog, Portfolio', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Filter by',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-tags',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Tags', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Blog', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Tags',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-authors',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Authors', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Blog', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Authors',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-all',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Show all', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Blog, Portfolio', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Show all',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-item-all',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('All', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Blog Item, Portfolio Item', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'All',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-published',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Published by', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Blog, Portfolio', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Published by',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-at',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('at', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Published by .. at', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Blog, Portfolio', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'at',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-categories',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Categories', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Blog, Portfolio', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Categories',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-tags',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Tags', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Blog', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Tags',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-readmore',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Read more', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Blog, Portfolio', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Read more',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-like',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Do you like it?', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Blog', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Do you like it?',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-related',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Related posts', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Blog, Portfolio', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Related posts',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-client',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Client', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Portfolio', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Client',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-date',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Date', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Portfolio', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Date',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-website',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Website', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Portfolio', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Website',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-view',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('View website', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Portfolio', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'View website',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-task',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Task', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Portfolio', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Task',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Translate Error 404 --------------------------------------------\n\t\t$sections['translate-404'] = array(\n\t\t\t'title' => __('Error 404 & Search', 'mfn-opts'),\n\t\t\t'fields' => array(\n\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-info-404',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Error 404', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-404-title',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Title', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('Ooops... Error 404', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Ooops... Error 404',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-404-subtitle',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Subtitle', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('We are sorry, but the page you are looking for does not exist.', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'We are sorry, but the page you are looking for does not exist.',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-404-text',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Text', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('Please check entered address and try again or', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Please check entered address and try again or ',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-404-btn',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Button', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('go to homepage', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'go to homepage',\n\t\t\t\t\t'class' \t=> 'small-text',\n\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-info-search',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('Search', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info',\n\t\t\t\t),\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-search-title',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Title', 'mfn-opts'),\n\t\t\t\t\t'desc'\t\t=> __('Ooops...', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'Ooops...',\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-search-subtitle',\n\t\t\t\t\t'type' \t\t=> 'text',\n\t\t\t\t\t'title' \t=> __('Subtitle', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('No results found for:', 'mfn-opts'),\n\t\t\t\t\t'std' \t\t=> 'No results found for:',\n\t\t\t\t),\n\t\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Translate WPML --------------------------------------------\n\t\t$sections['translate-wpml'] = array(\n\t\t\t'title' => __('WPML Installer', 'mfn-opts'),\n\t\t\t'fields' => array(\n\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-wpml-info',\n\t\t\t\t\t'type' \t\t=> 'info',\n\t\t\t\t\t'title' \t=> '',\n\t\t\t\t\t'desc' \t\t=> __('<b>WPML</b> is an optional premium plugin and it is <b>NOT</b> included into the theme', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'mfn-info desc',\n\t\t\t\t),\t\t\n\t\t\t\t\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'translate-wpml-installer',\n\t\t\t\t\t'type' \t\t=> 'custom',\n\t\t\t\t\t'title' \t=> __('WPML Installer', 'mfn-opts'),\n\t\t\t\t\t'sub_desc'\t=> __('WPML makes it easy to build multilingual sites and run them. It’s powerful enough for corporate sites, yet simple for blogs.', 'mfn-opts'),\n\t\t\t\t\t'action' \t=> 'wpml',\n\t\t\t\t),\n\t\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// Custom CSS & JS ========================================================================\n\t\t\n\t\t// CSS --------------------------------------------\n\t\t$sections['css'] = array(\n\t\t\t'title' => __('CSS', 'mfn-opts'),\n\t\t\t'fields' => array(\n\t\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'custom-css',\n\t\t\t\t\t'type' \t\t=> 'textarea',\n\t\t\t\t\t'title' \t=> __('Custom CSS', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Paste your custom CSS code here', 'mfn-opts'),\n\t\t\t\t\t'class' \t=> 'custom-css',\n\t\t\t\t),\n\t\t\t\t\t\t\n\t\t\t),\n\t\t);\n\t\t\n\t\t// JS --------------------------------------------\n\t\t$sections['js'] = array(\n\t\t\t'title' => __('JS', 'mfn-opts'),\n\t\t\t'fields' => array(\n\n\t\t\t\tarray(\n\t\t\t\t\t'id' \t\t=> 'custom-js',\n\t\t\t\t\t'type' \t\t=> 'textarea',\n\t\t\t\t\t'title' \t=> __('Custom JS', 'mfn-opts'),\n\t\t\t\t\t'sub_desc' \t=> __('Paste your custom JS code here', 'mfn-opts'),\n\t\t\t\t\t'desc' \t\t=> __('To use jQuery code wrap it into <strong>jQuery(function($){ ... });</strong>', 'mfn-opts'),\n\t\t\t\t),\n\t\t\t\t\t\t\n\t\t\t),\n\t\t);\n\t\t\t\t\t\t\t\t\t\n\t\tglobal $MFN_Options;\n\t\t$MFN_Options = new MFN_Options( $menu, $sections );\n\t}", "title": "" }, { "docid": "50150edb0ecae1adebfeaa33865ac18d", "score": "0.45766222", "text": "public function __construct($opts = array(), $tpl_dir = \"/views/admin/\"){\n\t\n\t\t// llamamos a la clase constructor de la clase padre Page y le pasamos las variables\n\t\tparent::__construct($opts, $tpl_dir);\n\t}", "title": "" }, { "docid": "ac4f917d11cccf81f8ae7705827c60e3", "score": "0.4571306", "text": "private function pageSettings($section = '', $data = []) {\n\n //common settings\n $page = [\n 'crumbs' => [\n __('lang.files'),\n ],\n 'crumbs_special_class' => 'list-pages-crumbs',\n 'page' => 'files',\n 'no_results_message' => __('lang.no_results_found'),\n 'mainmenu_files' => 'active',\n 'sidepanel_id' => 'sidepanel-filter-files',\n 'dynamic_search_url' => url('files/search?action=search&fileresource_id=' . request('fileresource_id') . '&fileresource_type=' . request('fileresource_type')),\n 'add_button_classes' => 'add-edit-file-button',\n 'load_more_button_route' => 'files',\n 'source' => 'list',\n ];\n\n //default modal settings (modify for sepecif sections)\n $page += [\n 'add_modal_title' => __('lang.add_file'),\n 'add_modal_create_url' => url('files/create?fileresource_id=' . request('fileresource_id') . '&fileresource_type=' . request('fileresource_type')),\n 'add_modal_action_url' => url('files?fileresource_id=' . request('fileresource_id') . '&fileresource_type=' . request('fileresource_type')),\n 'add_modal_action_ajax_class' => 'js-ajax-ux-request',\n 'add_modal_action_ajax_loading_target' => 'commonModalBody',\n 'add_modal_action_method' => 'POST',\n ];\n\n //files list page\n if ($section == 'files') {\n $page += [\n 'meta_title' => __('lang.files'),\n 'heading' => __('lang.files'),\n 'sidepanel_id' => 'sidepanel-filter-files',\n ];\n if (request('source') == 'ext') {\n $page += [\n 'list_page_actions_size' => 'col-lg-12',\n ];\n }\n }\n\n //create new resource\n if ($section == 'create') {\n $page += [\n 'section' => 'create',\n ];\n }\n\n //edit new resource\n if ($section == 'edit') {\n $page += [\n 'section' => 'edit',\n ];\n }\n\n //return\n return $page;\n }", "title": "" }, { "docid": "928e004f27f92c58ccf0bd55657a3694", "score": "0.4564382", "text": "public function __construct($options = null) {\n// $this->_options = $this->_defaults;\n if(is_array($options)) {\n $this->setOptions($options);\n } elseif(is_string($options)) {\n $this->setOptions([self::PARAM_ORIGINAL_FILE => $options]);\n } else {\n $this->setOptions($options);\n }\n }", "title": "" }, { "docid": "d5c23d813c01c539b1734114f81e027a", "score": "0.45603216", "text": "public function set_defaults() {\n\t\t$this->initialize_options();\n\t}", "title": "" }, { "docid": "18c661bf7bf69d910f308160f42bcffd", "score": "0.45546728", "text": "function wpv_view_defaults( $settings = 'view_settings', $purpose = 'full' ) {\r\n\t$defaults = array(\r\n\t\t// set the initial values for the View settings\r\n\t\t// Note: taxonomy_type is set in wpv-section-query-type.php to use the first available taxonomy\r\n\t\t'view_settings' => array(\r\n\t\t\t'view-query-mode'\t\t\t=> 'normal',\r\n\t\t\t'view_description'\t\t\t=> '',\r\n\t\t\t'view_purpose'\t\t\t\t=> 'full',\r\n\t\t\t'query_type'\t\t\t\t=> array('posts'),\r\n\t\t\t'taxonomy_type'\t\t\t\t=> array('category'),\r\n\t\t\t'roles_type'\t\t\t\t=> array('administrator'),\r\n\t\t\t'post_type_dont_include_current_page'\t=> true,\r\n\t\t\t'taxonomy_hide_empty'\t\t\t=> true,\r\n\t\t\t'taxonomy_include_non_empty_decendants'\t=> true,\r\n\t\t\t'taxonomy_pad_counts'\t\t\t=> true, // check this setting application\r\n\t\t\t'orderby'\t\t\t\t=> 'post_date',\r\n\t\t\t'order'\t\t\t\t\t=> 'DESC',\r\n\t\t\t'taxonomy_orderby'\t\t\t=> 'name',\r\n\t\t\t'taxonomy_order'\t\t\t=> 'DESC',\r\n\t\t\t'users_orderby'\t\t\t\t=> 'user_login',\r\n\t\t\t'users_order'\t\t\t\t=> 'ASC',\r\n\t\t\t'limit'\t\t\t\t\t=> -1,\r\n\t\t\t'offset'\t\t\t\t=> 0,\r\n\t\t\t'taxonomy_limit'\t\t\t=> -1,\r\n\t\t\t'taxonomy_offset'\t\t\t=> 0,\r\n\t\t\t'users_limit' \t\t\t=> -1,\r\n\t\t\t'users_offset' \t\t\t=> 0,\r\n\t\t\t'posts_per_page'\t\t\t=> 10,\r\n\t\t\t'pagination'\t\t\t\t=> array(\r\n\t\t\t\t\t\t\t\t'disable',\r\n\t\t\t\t\t\t\t\t'mode'\t\t\t\t=> 'none',\r\n\t\t\t\t\t\t\t\t'preload_images'\t\t=> true,\r\n\t\t\t\t\t\t\t\t'cache_pages'\t\t\t=> true,\r\n\t\t\t\t\t\t\t\t'preload_pages'\t\t\t=> true,\r\n\t\t\t\t\t\t\t\t'pre_reach'\t\t\t=> 1,\r\n\t\t\t\t\t\t\t\t'page_selector_control_type'\t=> 'drop_down',\r\n\t\t\t\t\t\t\t\t'spinner'\t\t\t=> 'default',\r\n\t\t\t\t\t\t\t\t'spinner_image'\t\t\t=> WPV_URL . '/res/img/ajax-loader.gif',\r\n\t\t\t\t\t\t\t\t'spinner_image_uploaded'\t=> '',\r\n\t\t\t\t\t\t\t\t'callback_next'\t\t\t=> ''\r\n\t\t\t\t\t\t\t\t), // this needs carefull review\r\n\t\t\t'ajax_pagination'\t\t\t=> array(\r\n\t\t\t\t\t\t\t\t'disable',\r\n\t\t\t\t\t\t\t\t'style'\t\t\t\t=> 'fade',\r\n\t\t\t\t\t\t\t\t'duration'\t\t\t=> 500,\r\n\t\t\t\t\t\t\t\t),\r\n\t\t\t'rollover'\t\t\t\t=> array(\r\n\t\t\t\t\t\t\t\t'preload_images'\t\t=> true,\r\n\t\t\t\t\t\t\t\t'posts_per_page'\t\t=> 1,\r\n\t\t\t\t\t\t\t\t'speed'\t\t\t\t=> 5,\r\n\t\t\t\t\t\t\t\t'effect'\t\t\t=> 'fade',\r\n\t\t\t\t\t\t\t\t'duration'\t\t\t=> 500,\r\n\t\t\t\t\t\t\t\t),\r\n\t\t\t'filter_meta_html_state'\t\t=> array(\r\n\t\t\t\t\t\t\t\t'html'\t\t\t\t=> 'on',\r\n\t\t\t\t\t\t\t\t'css'\t\t\t\t=> 'off',\r\n\t\t\t\t\t\t\t\t'js'\t\t\t\t=> 'off',\r\n\t\t\t\t\t\t\t\t'img'\t\t\t\t=> 'off',\r\n\t\t\t\t\t\t\t\t),\r\n\t\t\t'filter_meta_html'\t\t\t=> \"[wpv-filter-start hide=\\\"false\\\"]\\n[wpv-filter-controls][/wpv-filter-controls]\\n[wpv-filter-end]\",\r\n\t\t\t'filter_meta_html_css'\t\t\t=> '',\r\n\t\t\t'filter_meta_html_js'\t\t\t=> '',\r\n\t\t\t'layout_meta_html_state'\t\t=> array(\r\n\t\t\t\t\t\t\t\t'html'\t\t\t\t=> 'on',\r\n\t\t\t\t\t\t\t\t'css'\t\t\t\t=> 'off',\r\n\t\t\t\t\t\t\t\t'js'\t\t\t\t=> 'off',\r\n\t\t\t\t\t\t\t\t'img'\t\t\t\t=> 'off',\r\n\t\t\t\t\t\t\t\t),\r\n\t\t\t'layout_meta_html_css'\t\t\t=> '',\r\n\t\t\t'layout_meta_html_js'\t\t\t=> '',\r\n\t\t),\r\n\t\t'view_layout_settings' => array( // almost all of this settings are only needed to create the layout on the fly, so they are not needed here\r\n\t\t\t'additional_js'\t\t\t\t=> '',\r\n\t\t\t'layout_meta_html'\t\t\t=> \"[wpv-layout-start]\r\n\t[wpv-items-found]\r\n\t<!-- wpv-loop-start -->\r\n\t\t<wpv-loop>\r\n\t\t</wpv-loop>\r\n\t<!-- wpv-loop-end -->\r\n\t[/wpv-items-found]\r\n\t[wpv-no-items-found]\r\n\t\t[wpml-string context=\\\"wpv-views\\\"]<strong>No items found</strong>[/wpml-string]\r\n\t[/wpv-no-items-found]\r\n[wpv-layout-end]\",\r\n\t\t),\r\n\t);\r\n\tswitch( $purpose ) {\r\n\t\tcase 'all':\r\n\t\t\t$defaults['view_settings']['sections-show-hide'] = array(\r\n\t\t\t\t'pagination'\t\t=> 'off',\r\n\t\t\t\t'filter-extra'\t\t=> 'off',\r\n\t\t\t);\r\n\t\t\t$defaults['view_settings']['view_purpose'] = 'all';\r\n\t\t\tbreak;\r\n\t\tcase 'pagination':\r\n\t\t\t$defaults['view_settings']['pagination'][0] = 'enable';\r\n\t\t\t$defaults['view_settings']['pagination']['mode'] = 'paged';\r\n\t\t\t$defaults['view_settings']['sections-show-hide'] = array(\r\n\t\t\t\t'limit-offset'\t\t=> 'off',\r\n\t\t\t);\r\n\t\t\t$defaults['view_settings']['view_purpose'] = 'pagination';\r\n\t\t\tbreak;\r\n\t\tcase 'slider':\r\n\t\t\t$defaults['view_settings']['pagination'][0] = 'enable';\r\n\t\t\t$defaults['view_settings']['pagination']['mode'] = 'rollover';\r\n\t\t\t$defaults['view_settings']['sections-show-hide'] = array(\r\n\t\t\t\t'limit-offset'\t\t=> 'off',\r\n\t\t\t);\r\n\t\t\t$defaults['view_settings']['view_purpose'] = 'slider';\r\n\t\t\tbreak;\r\n\t\tcase 'parametric':\r\n\t\t\t$defaults['view_settings']['sections-show-hide'] = array(\r\n\t\t\t\t'pagination'\t\t=> 'off',\r\n\t\t\t);\r\n\t\t\t$defaults['view_settings']['view_purpose'] = 'parametric';\r\n\t\t\tbreak;\r\n\t\tcase 'bootstrap-grid':\r\n\t\t\t$defaults['view_settings']['sections-show-hide'] = array(\r\n\t\t\t\t'layout-extra'\t\t=> 'off',\r\n\t\t\t\t'content'\t\t\t=> 'off',\r\n\t\t\t);\r\n\t\t\t$defaults['view_settings']['view_purpose'] = 'bootstrap-grid';\r\n\t\t\tbreak;\r\n\t\tcase 'full':\r\n\t\tdefault:\r\n\t\t\t$defaults['view_settings']['sections-show-hide'] = array(\r\n\t\t\t\r\n\t\t\t);\r\n\t\t\t$defaults['view_settings']['view_purpose'] = 'full';\r\n\t\t\tbreak;\r\n\t}\r\n\treturn $defaults[$settings];\r\n}", "title": "" }, { "docid": "06ce6128305bda4a1b20b37c3a17d303", "score": "0.45536348", "text": "public function testUsesDefaultScrollingStyleIfNoneSupplied(): void\n {\n $output = $this->viewHelper->__invoke($this->paginator, 'All', 'testPagination.phtml');\n $this->assertStringContainsString('page count (11) equals pages in range (11)', $output, $output);\n\n Paginator\\Paginator::setDefaultScrollingStyle('All');\n $output = $this->viewHelper->__invoke($this->paginator, null, 'testPagination.phtml');\n $this->assertStringContainsString('page count (11) equals pages in range (11)', $output, $output);\n\n Helper\\PaginationControl::setDefaultViewPartial('testPagination.phtml');\n $output = $this->viewHelper->__invoke($this->paginator);\n $this->assertStringContainsString('page count (11) equals pages in range (11)', $output, $output);\n }", "title": "" }, { "docid": "392a2845bb28efe4ce4a7a9afeaa1ac1", "score": "0.4551949", "text": "function load_default() {\n\t\t$this->script_tags = array(\n\t\t\tarray(\n\t\t\t\t'script_name' => 'jQuery',\n\t\t\t\t'src' => $this->assets . 'jquery/jquery-3.2.1.min.js',\n\t\t\t\t'type' => '',\n\t\t\t\t'attrs' => array()\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'script_name' => 'jQuery Migrate Plugin',\n\t\t\t\t'src' => $this->assets . 'jquery/jquery-migrate-1.4.1.min.js',\n\t\t\t\t'type' => '',\n\t\t\t\t'attrs' => array()\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'script_name' => 'jQuery UI',\n\t\t\t\t'src' => $this->assets . 'jq-default-ui/jquery-ui.min.js',\n\t\t\t\t'type' => '',\n\t\t\t\t'attrs' => array()\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'script_name' => 'Bootstrap JS',\n\t\t\t\t'src' => $this->assets . 'bootstrap/js/bootstrap.min.js',\n\t\t\t\t'type' => 'type',\n\t\t\t\t'attrs' => array()\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'script_name' => 'FontAwesome 5',\n\t\t\t\t'src' => $this->assets . 'fontawesome/svg-with-js/js/fontawesome-all.min.js',\n\t\t\t\t'type' => '',\n\t\t\t\t'attrs' => array('defer')\n\t\t\t)\n\t\t);\n\t\t$this->link_tags = array(\n\t\t\tarray(\n\t\t\t\t'link_name' => 'Bootstrap CSS',\n\t\t\t\t'rel' => '',\n\t\t\t\t'type' => 'type',\n\t\t\t\t'href' => $this->assets . 'bootstrap/css/bootstrap.min.css'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'link_name' => 'jQuery UI CSS',\n\t\t\t\t'rel' => '',\n\t\t\t\t'type' => 'type',\n\t\t\t\t'href' => $this->assets . 'jq-default-ui/jquery-ui.min.css'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'link_name' => 'W3.CSS',\n\t\t\t\t'rel' => '',\n\t\t\t\t'type' => 'type',\n\t\t\t\t'href' => $this->assets . 'w3-css/4-w3.css'\n\t\t\t)\n\t\t);\n\t\t$this->meta_tags = array(\n\t\t\tarray(\n\t\t\t\t'meta_name' => 'Viewport',\n\t\t\t\t'name' => 'viewport',\n\t\t\t\t'content' => 'width=device-width, initial-scale=1'\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "ac39c7fc4a3138a5907fd0dfd83d09de", "score": "0.4551475", "text": "public function options($options = array()) {\n\t\tif (is_string($options)) {\n\t\t\t$options = array('update' => $options);\n\t\t}\n\n\t\tif (!empty($options['paging'])) {\n\t\t\tif (!isset($this->request->params['paging'])) {\n\t\t\t\t$this->request->params['paging'] = array();\n\t\t\t}\n\t\t\t$this->request->params['paging'] = array_merge($this->request->params['paging'], $options['paging']);\n\t\t\tunset($options['paging']);\n\t\t}\n\t\t$model = $this->defaultModel();\n\n\t\tif (!empty($options[$model])) {\n\t\t\tif (!isset($this->request->params['paging'][$model])) {\n\t\t\t\t$this->request->params['paging'][$model] = array();\n\t\t\t}\n\t\t\t$this->request->params['paging'][$model] = array_merge(\n\t\t\t\t$this->request->params['paging'][$model], $options[$model]\n\t\t\t);\n\t\t\tunset($options[$model]);\n\t\t}\n\t\tif (!empty($options['convertKeys'])) {\n\t\t\t$options['convertKeys'] = array_merge($this->options['convertKeys'], $options['convertKeys']);\n\t\t}\n\t\t$this->options = array_filter(array_merge($this->options, $options));\n\t}", "title": "" }, { "docid": "31644f221f92ba76287176776674fd58", "score": "0.45490104", "text": "public function render_options_page() {\n\t\t\tglobal $wp_rewrite, $mm_blocks;\n\t\t\t$wp_rewrite->flush_rules();\n\n\t\t\t$mm_blocks[0] = array( 'name' => 'buy', 'title' => __( 'Where to buy', MM_TEXTDOMAIN ) );\n\t\t\t$mm_blocks[1] = array( 'name' => 'description', 'title' => __( 'Description', MM_TEXTDOMAIN ) );\n//\t\t\t$mm_blocks[2] = array( 'name' => 'links', 'title' => __( 'Links to reviews', MM_TEXTDOMAIN ) );\n\n\t\t\t$this->render( MM_DIR . '/views/options_page.php', array( 'blocks' => $mm_blocks ) );\n }", "title": "" }, { "docid": "b4e74b00adc0dc60d47370066d877af1", "score": "0.4540499", "text": "public function init() {\n\t\tparent::init();\n\n\t\t// use the search layout\n\t\t$this->setLayout('default');\n $mobileContext = $this->_helper->getHelper('MobileContext');\n $mobileContext->addActionContext('index')\n \t\t\t // if we want different mobile views for the e-mail form,\n \t\t\t // the email actions will need to be added here (and the\n \t\t\t // forms created)\n ->initContext();\n $this->_helper->ajaxContext()\n ->addActionContext('email', 'json')\n ->initContext();\n\t}", "title": "" }, { "docid": "ee4d9af4cfac9c179ec76f31a5eead6c", "score": "0.4536795", "text": "public function setup_options_page() {\n\t\tacf_add_options_sub_page( [\n\t\t\t'page_title' \t=> _x( 'Map Services', 'Maps page title in WP Admin', 'my-listing' ),\n\t\t\t'menu_title'\t=> _x( 'Map Services', 'Maps menu title in WP Admin', 'my-listing' ),\n\t\t\t'menu_slug' \t=> 'theme-maps-settings',\n\t\t\t'capability'\t=> 'manage_options',\n\t\t\t'redirect'\t\t=> false,\n\t\t\t'parent_slug' => 'case27/tools.php',\n\t\t] );\n\t}", "title": "" }, { "docid": "f2b353eef315d54ca348d666a0e2642d", "score": "0.45364588", "text": "function _callbackShowConfig() {\n $this->_widget_pages->set_page(2);\n }", "title": "" }, { "docid": "70798cd7c74b5263eb69ba7df427564b", "score": "0.45364207", "text": "public function initialize() {\n if ($this->dispatcher->isFinished() && $this->dispatcher->wasForwarded())\n return;\n\n parent::initialize();\n\n $this->resultsPerPage = $this->di['config']->application->membersPerPage;\n\n // FOR DEBUG PURPOSE ONLY UNCOMMENT THE FOLLOWING LINE AND COMMENT THE ONE ABOVE.\n $this->assets->addJs(\"/reindex/themes/\".$this->themeName.\"/src/js/member.js\", FALSE);\n\n //$this->assets->addJs($this->dist.\"/js/member.js\", FALSE);\n\n $this->view->pick('views/member');\n }", "title": "" }, { "docid": "6538c56629dd9bb725e6a8d3dc731fdc", "score": "0.45347387", "text": "public function renderOptions()\n {\n }", "title": "" }, { "docid": "1e2d1182d259c0161885a343650bfb0f", "score": "0.45322722", "text": "public static function getDefaultConfig()\n {\n $config = apply_filters('quform_default_config_page', array(\n 'label' => '',\n 'title' => '',\n 'titleTag' => 'h3',\n 'description' => '',\n 'descriptionAbove' => '',\n 'fieldSize' => 'inherit',\n 'fieldWidth' => 'inherit',\n 'fieldWidthCustom' => '',\n 'groupStyle' => 'plain',\n 'borderColor' => '',\n 'backgroundColor' => '',\n 'labelPosition' => 'inherit',\n 'labelWidth' => '',\n 'showLabelInEmail' => false,\n 'showLabelInEntry' => false,\n 'tooltipType' => 'inherit',\n 'tooltipEvent' => 'inherit',\n 'logicEnabled' => false,\n 'logicAction' => true,\n 'logicMatch' => 'all',\n 'logicRules' => array(),\n 'styles' => array(),\n 'elements' => array()\n ));\n\n $config['type'] = 'page';\n\n return $config;\n }", "title": "" }, { "docid": "e015be8f322ec980f3be1c72444f45ef", "score": "0.45309395", "text": "public function partial($name = null, $module = null, $model = null)\n {\n if (0 == func_num_args()) {\n return $this;\n }\n\n $view = $this->cloneView();\n if (isset($this->partialCounter)) {\n $view->partialCounter = $this->partialCounter;\n }\n if (isset($this->partialTotalCount)) {\n $view->partialTotalCount = $this->partialTotalCount;\n }\n\n if ((null !== $module) && is_string($module)) {\n require_once 'Zend/Controller/Front.php';\n $moduleDir = Zend_Controller_Front::getInstance()->getControllerDirectory($module);\n if (null === $moduleDir) {\n require_once 'Zend/View/Helper/Partial/Exception.php';\n $e = new Zend_View_Helper_Partial_Exception('Cannot render partial; module does not exist');\n $e->setView($this->view);\n throw $e;\n }\n $viewsDir = dirname($moduleDir) . '/views';\n $view->addBasePath($viewsDir);\n } elseif ((null == $model) && (null !== $module)\n && (is_array($module) || is_object($module)))\n {\n $model = $module;\n }\n\n if (!empty($model)) {\n if (is_array($model)) {\n $view->assign($model);\n } elseif (is_object($model)) {\n if (null !== ($objectKey = $this->getObjectKey())) {\n $view->assign($objectKey, $model);\n } elseif (method_exists($model, 'toArray')) {\n $view->assign($model->toArray());\n } elseif (method_exists($model, 'getVars')) {\n $view->assign($model->getVars());\n } else {\n $view->assign(get_object_vars($model));\n }\n }\n }\n\n return $view->render($name);\n }", "title": "" }, { "docid": "59986dd871a37d090dba2b99d9d29218", "score": "0.45286414", "text": "function loadDefaults() {\n $params = array(\"template\"=>array(\"id\"=>\"template\",\"group\"=>\"General\",\"order\"=>\"20\",\"default\"=>\"original\",\"label\"=>\"Thumbnail layout\",\"type\"=>\"array\",\"subType\"=>\"select\",\"values\"=>array(\"original\",\"bottom\",\"left\",\"right\",\"top\"),\"scope\"=>\"profile\"),\"magicscroll\"=>array(\"id\"=>\"magicscroll\",\"group\"=>\"General\",\"order\"=>\"22\",\"default\"=>\"No\",\"label\"=>\"Scroll thumbnails\",\"description\"=>\" Powered by the versatile <a target=\\\"_blank\\\" href=\\\"http://www.magictoolbox.com/magicscroll/examples/\\\">Magic Scroll</a>™. Normally £29, yours is discounted to only £19. <a target=\\\"_blank\\\" href=\\\"http://www.magictoolbox.com/magiczoom/magicscroll/\\\">Buy a license</a> and upload magicscroll.js to your server. <a target=\\\"_blank\\\" href=\\\"http://www.magictoolbox.com/contact/\\\">Contact us</a> for help.\",\"type\"=>\"array\",\"subType\"=>\"select\",\"values\"=>array(\"Yes\",\"No\"),\"scope\"=>\"profile\"),\"thumb-image\"=>array(\"id\"=>\"thumb-image\",\"group\"=>\"Image type\",\"order\"=>\"10\",\"default\"=>\"large\",\"label\"=>\"What image type should be used as thumb image\",\"description\"=>\"(NOTE: Original image can't be shown when 'Friendly URLs' option is enabled)\",\"type\"=>\"array\",\"subType\"=>\"select\",\"values\"=>array(\"original\",\"large\")),\"selector-image\"=>array(\"id\"=>\"selector-image\",\"group\"=>\"Image type\",\"order\"=>\"20\",\"default\"=>\"small\",\"label\"=>\"What image type should be used for selectors\",\"description\"=>\"(NOTE: Original image can't be shown when 'Friendly URLs' option is enabled)\",\"type\"=>\"array\",\"subType\"=>\"select\",\"values\"=>array(\"original\",\"small\")),\"large-image\"=>array(\"id\"=>\"large-image\",\"group\"=>\"Image type\",\"order\"=>\"30\",\"default\"=>\"thickbox\",\"label\"=>\"What image type should be used as big image\",\"description\"=>\"(NOTE: Original image can't be shown when 'Friendly URLs' option is enabled)\",\"type\"=>\"array\",\"subType\"=>\"select\",\"values\"=>array(\"original\")),\"zoom-width\"=>array(\"id\"=>\"zoom-width\",\"group\"=>\"Positioning and Geometry\",\"order\"=>\"140\",\"default\"=>\"300\",\"label\"=>\"Zoomed area width (in pixels or percent)\",\"type\"=>\"text\",\"scope\"=>\"tool\"),\"zoom-height\"=>array(\"id\"=>\"zoom-height\",\"group\"=>\"Positioning and Geometry\",\"order\"=>\"150\",\"default\"=>\"300\",\"label\"=>\"Zoomed area height (in pixels or percent)\",\"type\"=>\"text\",\"scope\"=>\"tool\"),\"zoom-position\"=>array(\"id\"=>\"zoom-position\",\"group\"=>\"Positioning and Geometry\",\"order\"=>\"160\",\"default\"=>\"right\",\"label\"=>\"Zoomed area position\",\"type\"=>\"array\",\"subType\"=>\"select\",\"values\"=>array(\"top\",\"right\",\"bottom\",\"left\",\"inner\"),\"scope\"=>\"tool\"),\"zoom-align\"=>array(\"id\"=>\"zoom-align\",\"group\"=>\"Positioning and Geometry\",\"order\"=>\"161\",\"default\"=>\"top\",\"label\"=>\"How to align zoom window to an image\",\"type\"=>\"array\",\"subType\"=>\"select\",\"values\"=>array(\"right\",\"left\",\"top\",\"bottom\",\"center\"),\"scope\"=>\"tool\"),\"zoom-distance\"=>array(\"id\"=>\"zoom-distance\",\"group\"=>\"Positioning and Geometry\",\"order\"=>\"170\",\"default\"=>\"15\",\"label\"=>\"Distance between small image and zoom window (in pixels)\",\"type\"=>\"num\",\"scope\"=>\"tool\"),\"opacity\"=>array(\"id\"=>\"opacity\",\"group\"=>\"Effects\",\"order\"=>\"270\",\"default\"=>\"50\",\"label\"=>\"Square opacity\",\"type\"=>\"num\",\"scope\"=>\"tool\"),\"opacity-reverse\"=>array(\"id\"=>\"opacity-reverse\",\"group\"=>\"Effects\",\"order\"=>\"280\",\"default\"=>\"No\",\"label\"=>\"Add opacity to background instead of hovered area\",\"type\"=>\"array\",\"subType\"=>\"radio\",\"values\"=>array(\"Yes\",\"No\"),\"scope\"=>\"tool\"),\"zoom-fade\"=>array(\"id\"=>\"zoom-fade\",\"group\"=>\"Effects\",\"order\"=>\"290\",\"default\"=>\"Yes\",\"label\"=>\"Zoom window fade effect\",\"type\"=>\"array\",\"subType\"=>\"select\",\"values\"=>array(\"Yes\",\"No\"),\"scope\"=>\"tool\"),\"zoom-window-effect\"=>array(\"id\"=>\"zoom-window-effect\",\"group\"=>\"Effects\",\"order\"=>\"291\",\"default\"=>\"shadow\",\"label\"=>\"Apply shadow or glow on a zoom window\",\"type\"=>\"array\",\"subType\"=>\"select\",\"values\"=>array(\"shadow\",\"glow\",\"false\"),\"scope\"=>\"tool\"),\"zoom-fade-in-speed\"=>array(\"id\"=>\"zoom-fade-in-speed\",\"group\"=>\"Effects\",\"order\"=>\"300\",\"default\"=>\"200\",\"label\"=>\"Zoom window fade-in speed (in milliseconds)\",\"type\"=>\"num\",\"scope\"=>\"tool\"),\"zoom-fade-out-speed\"=>array(\"id\"=>\"zoom-fade-out-speed\",\"group\"=>\"Effects\",\"order\"=>\"310\",\"default\"=>\"200\",\"label\"=>\"Zoom window fade-out speed (in milliseconds)\",\"type\"=>\"num\",\"scope\"=>\"tool\"),\"fps\"=>array(\"id\"=>\"fps\",\"group\"=>\"Effects\",\"order\"=>\"320\",\"default\"=>\"25\",\"label\"=>\"Frames per second for zoom effect\",\"type\"=>\"num\",\"scope\"=>\"tool\"),\"smoothing\"=>array(\"id\"=>\"smoothing\",\"group\"=>\"Effects\",\"order\"=>\"330\",\"default\"=>\"Yes\",\"label\"=>\"Enable smooth zoom movement\",\"type\"=>\"array\",\"subType\"=>\"radio\",\"values\"=>array(\"Yes\",\"No\"),\"scope\"=>\"tool\"),\"smoothing-speed\"=>array(\"id\"=>\"smoothing-speed\",\"group\"=>\"Effects\",\"order\"=>\"340\",\"default\"=>\"40\",\"label\"=>\"Speed of smoothing (1-99)\",\"type\"=>\"num\",\"scope\"=>\"tool\"),\"selectors-margin\"=>array(\"id\"=>\"selectors-margin\",\"group\"=>\"Multiple images\",\"order\"=>\"40\",\"default\"=>\"5\",\"label\"=>\"Margin between selectors and main image (in pixels)\",\"description\"=>\"(NOTE: This option is ignored if the template:original.)\",\"type\"=>\"num\"),\"selectors-change\"=>array(\"id\"=>\"selectors-change\",\"group\"=>\"Multiple images\",\"order\"=>\"110\",\"default\"=>\"click\",\"label\"=>\"Method to switch between multiple images\",\"type\"=>\"array\",\"subType\"=>\"select\",\"values\"=>array(\"click\",\"mouseover\"),\"scope\"=>\"tool\"),\"selectors-class\"=>array(\"id\"=>\"selectors-class\",\"group\"=>\"Multiple images\",\"order\"=>\"111\",\"default\"=>\"\",\"label\"=>\"Define a CSS class of the active selector\",\"type\"=>\"text\",\"scope\"=>\"tool\"),\"preload-selectors-small\"=>array(\"id\"=>\"preload-selectors-small\",\"group\"=>\"Multiple images\",\"order\"=>\"120\",\"default\"=>\"Yes\",\"label\"=>\"Multiple images, preload small images\",\"type\"=>\"array\",\"subType\"=>\"radio\",\"values\"=>array(\"Yes\",\"No\"),\"scope\"=>\"tool\"),\"preload-selectors-big\"=>array(\"id\"=>\"preload-selectors-big\",\"group\"=>\"Multiple images\",\"order\"=>\"130\",\"default\"=>\"No\",\"label\"=>\"Multiple images, preload large images\",\"type\"=>\"array\",\"subType\"=>\"radio\",\"values\"=>array(\"Yes\",\"No\"),\"scope\"=>\"tool\"),\"selectors-effect\"=>array(\"id\"=>\"selectors-effect\",\"group\"=>\"Multiple images\",\"order\"=>\"140\",\"default\"=>\"dissolve\",\"label\"=>\"Dissolve or cross fade thumbnail when switching thumbnails\",\"type\"=>\"array\",\"subType\"=>\"select\",\"values\"=>array(\"dissolve\",\"fade\",\"pounce\",\"disable\"),\"scope\"=>\"tool\"),\"selectors-effect-speed\"=>array(\"id\"=>\"selectors-effect-speed\",\"group\"=>\"Multiple images\",\"order\"=>\"150\",\"default\"=>\"400\",\"label\"=>\"Selectors effect speed, ms\",\"type\"=>\"num\",\"scope\"=>\"tool\"),\"selectors-mouseover-delay\"=>array(\"id\"=>\"selectors-mouseover-delay\",\"group\"=>\"Multiple images\",\"order\"=>\"160\",\"default\"=>\"60\",\"label\"=>\"Multiple images delay in ms before switching thumbnails\",\"type\"=>\"num\",\"scope\"=>\"tool\"),\"initialize-on\"=>array(\"id\"=>\"initialize-on\",\"group\"=>\"Initialization\",\"order\"=>\"70\",\"default\"=>\"load\",\"label\"=>\"How to initialize Magic Zoom and download large image\",\"type\"=>\"array\",\"subType\"=>\"radio\",\"values\"=>array(\"load\",\"click\",\"mouseover\"),\"scope\"=>\"tool\"),\"click-to-activate\"=>array(\"id\"=>\"click-to-activate\",\"group\"=>\"Initialization\",\"order\"=>\"80\",\"default\"=>\"No\",\"label\"=>\"Click to show the zoom\",\"type\"=>\"array\",\"subType\"=>\"radio\",\"values\"=>array(\"Yes\",\"No\"),\"scope\"=>\"tool\"),\"click-to-deactivate\"=>array(\"id\"=>\"click-to-deactivate\",\"group\"=>\"Initialization\",\"order\"=>\"81\",\"default\"=>\"No\",\"label\"=>\"Allow click to hide the zoom window\",\"type\"=>\"array\",\"subType\"=>\"radio\",\"values\"=>array(\"Yes\",\"No\"),\"scope\"=>\"tool\"),\"show-loading\"=>array(\"id\"=>\"show-loading\",\"group\"=>\"Initialization\",\"order\"=>\"90\",\"default\"=>\"Yes\",\"label\"=>\"Loading message\",\"type\"=>\"array\",\"subType\"=>\"select\",\"values\"=>array(\"Yes\",\"No\"),\"scope\"=>\"tool\"),\"loading-msg\"=>array(\"id\"=>\"loading-msg\",\"group\"=>\"Initialization\",\"order\"=>\"100\",\"default\"=>\"Loading zoom...\",\"label\"=>\"Loading message text\",\"type\"=>\"text\",\"scope\"=>\"tool\"),\"loading-opacity\"=>array(\"id\"=>\"loading-opacity\",\"group\"=>\"Initialization\",\"order\"=>\"110\",\"default\"=>\"75\",\"label\"=>\"Loading message opacity (0-100)\",\"type\"=>\"num\",\"scope\"=>\"tool\"),\"loading-position-x\"=>array(\"id\"=>\"loading-position-x\",\"group\"=>\"Initialization\",\"order\"=>\"120\",\"default\"=>\"-1\",\"label\"=>\"Loading message X-axis position, -1 is center\",\"type\"=>\"num\",\"scope\"=>\"tool\"),\"loading-position-y\"=>array(\"id\"=>\"loading-position-y\",\"group\"=>\"Initialization\",\"order\"=>\"130\",\"default\"=>\"-1\",\"label\"=>\"Loading message Y-axis position, -1 is center\",\"type\"=>\"num\",\"scope\"=>\"tool\"),\"entire-image\"=>array(\"id\"=>\"entire-image\",\"group\"=>\"Initialization\",\"order\"=>\"140\",\"default\"=>\"No\",\"label\"=>\"Show entire large image on hover\",\"type\"=>\"array\",\"subType\"=>\"radio\",\"values\"=>array(\"Yes\",\"No\"),\"scope\"=>\"tool\"),\"show-title\"=>array(\"id\"=>\"show-title\",\"group\"=>\"Title and Caption\",\"order\"=>\"10\",\"default\"=>\"top\",\"label\"=>\"Show the title of the image in the zoom window\",\"type\"=>\"array\",\"subType\"=>\"select\",\"values\"=>array(\"top\",\"bottom\",\"disable\"),\"scope\"=>\"tool\"),\"enable-effect\"=>array(\"id\"=>\"enable-effect\",\"group\"=>\"Miscellaneous\",\"order\"=>\"10\",\"default\"=>\"Yes\",\"label\"=>\"Enable effect\",\"type\"=>\"array\",\"subType\"=>\"select\",\"values\"=>array(\"Yes\",\"No\")),\"link-to-product-page\"=>array(\"id\"=>\"link-to-product-page\",\"group\"=>\"Miscellaneous\",\"order\"=>\"20\",\"default\"=>\"Yes\",\"label\"=>\"Link enlarged image to the product page\",\"type\"=>\"array\",\"subType\"=>\"select\",\"values\"=>array(\"Yes\",\"No\")),\"include-headers-on-all-pages\"=>array(\"id\"=>\"include-headers-on-all-pages\",\"group\"=>\"Miscellaneous\",\"order\"=>\"21\",\"default\"=>\"No\",\"label\"=>\"Include headers on all pages\",\"description\"=>\"To be able to apply an effect on any page\",\"type\"=>\"array\",\"subType\"=>\"radio\",\"values\"=>array(\"Yes\",\"No\")),\"show-message\"=>array(\"id\"=>\"show-message\",\"group\"=>\"Miscellaneous\",\"order\"=>\"370\",\"default\"=>\"Yes\",\"label\"=>\"Show message under image?\",\"type\"=>\"array\",\"subType\"=>\"radio\",\"values\"=>array(\"Yes\",\"No\")),\"message\"=>array(\"id\"=>\"message\",\"group\"=>\"Miscellaneous\",\"order\"=>\"380\",\"default\"=>\"Move your mouse over image\",\"label\"=>\"Message under images\",\"type\"=>\"text\"),\"right-click\"=>array(\"id\"=>\"right-click\",\"group\"=>\"Miscellaneous\",\"order\"=>\"385\",\"default\"=>\"No\",\"label\"=>\"Show right-click menu on the image\",\"type\"=>\"array\",\"subType\"=>\"radio\",\"values\"=>array(\"Yes\",\"No\"),\"scope\"=>\"tool\"),\"disable-zoom\"=>array(\"id\"=>\"disable-zoom\",\"group\"=>\"Zoom mode\",\"order\"=>\"9\",\"default\"=>\"No\",\"label\"=>\"Disable the zoom effect (e.g. to swap images only)\",\"type\"=>\"array\",\"subType\"=>\"radio\",\"values\"=>array(\"Yes\",\"No\"),\"scope\"=>\"tool\"),\"always-show-zoom\"=>array(\"id\"=>\"always-show-zoom\",\"group\"=>\"Zoom mode\",\"order\"=>\"10\",\"default\"=>\"No\",\"label\"=>\"Always show zoom?\",\"type\"=>\"array\",\"subType\"=>\"radio\",\"values\"=>array(\"Yes\",\"No\"),\"scope\"=>\"tool\"),\"drag-mode\"=>array(\"id\"=>\"drag-mode\",\"group\"=>\"Zoom mode\",\"order\"=>\"20\",\"default\"=>\"No\",\"label\"=>\"Use drag mode?\",\"type\"=>\"array\",\"subType\"=>\"radio\",\"values\"=>array(\"Yes\",\"No\"),\"scope\"=>\"tool\"),\"move-on-click\"=>array(\"id\"=>\"move-on-click\",\"group\"=>\"Zoom mode\",\"order\"=>\"30\",\"default\"=>\"Yes\",\"label\"=>\"Click alone will also move zoom (drag mode only)\",\"type\"=>\"array\",\"subType\"=>\"radio\",\"values\"=>array(\"Yes\",\"No\"),\"scope\"=>\"tool\"),\"x\"=>array(\"id\"=>\"x\",\"group\"=>\"Zoom mode\",\"order\"=>\"40\",\"default\"=>\"-1\",\"label\"=>\"Initial zoom X-axis position for drag mode, -1 is center\",\"type\"=>\"num\",\"scope\"=>\"tool\"),\"y\"=>array(\"id\"=>\"y\",\"group\"=>\"Zoom mode\",\"order\"=>\"50\",\"default\"=>\"-1\",\"label\"=>\"Initial zoom Y-axis position for drag mode, -1 is center\",\"type\"=>\"num\",\"scope\"=>\"tool\"),\"preserve-position\"=>array(\"id\"=>\"preserve-position\",\"group\"=>\"Zoom mode\",\"order\"=>\"60\",\"default\"=>\"No\",\"label\"=>\"Position of zoom can be remembered for multiple images and drag mode\",\"type\"=>\"array\",\"subType\"=>\"radio\",\"values\"=>array(\"Yes\",\"No\"),\"scope\"=>\"tool\"),\"fit-zoom-window\"=>array(\"id\"=>\"fit-zoom-window\",\"group\"=>\"Zoom mode\",\"order\"=>\"70\",\"default\"=>\"Yes\",\"label\"=>\"Resize zoom window if big image is smaller than zoom window\",\"type\"=>\"array\",\"subType\"=>\"radio\",\"values\"=>array(\"Yes\",\"No\"),\"scope\"=>\"tool\"),\"hint\"=>array(\"id\"=>\"hint\",\"group\"=>\"Hint\",\"order\"=>\"10\",\"default\"=>\"Yes\",\"label\"=>\"Display a hint to suggest that image is zoomable\",\"type\"=>\"array\",\"subType\"=>\"radio\",\"values\"=>array(\"Yes\",\"No\"),\"scope\"=>\"tool\"),\"hint-text\"=>array(\"id\"=>\"hint-text\",\"group\"=>\"Hint\",\"order\"=>\"15\",\"default\"=>\"Zoom\",\"label\"=>\"Show text in the hint\",\"type\"=>\"text\",\"scope\"=>\"tool\"),\"hint-position\"=>array(\"id\"=>\"hint-position\",\"group\"=>\"Hint\",\"order\"=>\"20\",\"default\"=>\"top left\",\"label\"=>\"Position of the hint\",\"type\"=>\"array\",\"subType\"=>\"select\",\"values\"=>array(\"top left\",\"top right\",\"top center\",\"bottom left\",\"bottom right\",\"bottom center\"),\"scope\"=>\"tool\"),\"hint-opacity\"=>array(\"id\"=>\"hint-opacity\",\"group\"=>\"Hint\",\"order\"=>\"25\",\"default\"=>\"75\",\"label\"=>\"Opacity of the hint (0-100)\",\"type\"=>\"num\",\"scope\"=>\"tool\"),\"scroll-style\"=>array(\"id\"=>\"scroll-style\",\"group\"=>\"Scroll\",\"order\"=>\"5\",\"default\"=>\"default\",\"label\"=>\"Style\",\"type\"=>\"array\",\"subType\"=>\"select\",\"values\"=>array(\"default\",\"with-borders\"),\"scope\"=>\"profile\"),\"show-image-title\"=>array(\"id\"=>\"show-image-title\",\"group\"=>\"Scroll\",\"order\"=>\"6\",\"default\"=>\"Yes\",\"label\"=>\"Show image title under images\",\"type\"=>\"array\",\"subType\"=>\"radio\",\"values\"=>array(\"Yes\",\"No\")),\"loop\"=>array(\"id\"=>\"loop\",\"group\"=>\"Scroll\",\"order\"=>\"10\",\"default\"=>\"continue\",\"label\"=>\"Restart scroll after last image\",\"description\"=>\"Continue to next image or scroll all the way back\",\"type\"=>\"array\",\"subType\"=>\"radio\",\"values\"=>array(\"continue\",\"restart\"),\"scope\"=>\"MagicScroll\"),\"speed\"=>array(\"id\"=>\"speed\",\"group\"=>\"Scroll\",\"order\"=>\"20\",\"default\"=>\"0\",\"label\"=>\"Scroll speed\",\"description\"=>\"Change the scroll speed in miliseconds (0 = manual)\",\"type\"=>\"num\",\"scope\"=>\"MagicScroll\"),\"width\"=>array(\"id\"=>\"width\",\"group\"=>\"Scroll\",\"order\"=>\"30\",\"default\"=>\"0\",\"label\"=>\"Scroll width (pixels)\",\"description\"=>\"0 - auto\",\"type\"=>\"num\",\"scope\"=>\"MagicScroll\"),\"height\"=>array(\"id\"=>\"height\",\"group\"=>\"Scroll\",\"order\"=>\"40\",\"default\"=>\"0\",\"label\"=>\"Scroll height (pixels)\",\"description\"=>\"0 - auto\",\"type\"=>\"num\",\"scope\"=>\"MagicScroll\"),\"item-width\"=>array(\"id\"=>\"item-width\",\"group\"=>\"Scroll\",\"order\"=>\"50\",\"default\"=>\"0\",\"label\"=>\"Scroll item width (pixels)\",\"description\"=>\"0 - auto\",\"type\"=>\"num\",\"scope\"=>\"MagicScroll\"),\"item-height\"=>array(\"id\"=>\"item-height\",\"group\"=>\"Scroll\",\"order\"=>\"60\",\"default\"=>\"0\",\"label\"=>\"Scroll item height (pixels)\",\"description\"=>\"0 - auto\",\"type\"=>\"num\",\"scope\"=>\"MagicScroll\"),\"step\"=>array(\"id\"=>\"step\",\"group\"=>\"Scroll\",\"order\"=>\"70\",\"default\"=>\"3\",\"label\"=>\"Scroll step\",\"type\"=>\"num\",\"scope\"=>\"MagicScroll\"),\"items\"=>array(\"id\"=>\"items\",\"group\"=>\"Scroll\",\"order\"=>\"80\",\"default\"=>\"3\",\"label\"=>\"Items to show\",\"description\"=>\"0 - manual\",\"type\"=>\"num\",\"scope\"=>\"MagicScroll\"),\"arrows\"=>array(\"id\"=>\"arrows\",\"group\"=>\"Scroll Arrows\",\"order\"=>\"10\",\"default\"=>\"outside\",\"label\"=>\"Show arrows\",\"label\"=>\"Where arrows should be placed\",\"type\"=>\"array\",\"subType\"=>\"radio\",\"values\"=>array(\"outside\",\"inside\",\"false\"),\"scope\"=>\"MagicScroll\"),\"arrows-opacity\"=>array(\"id\"=>\"arrows-opacity\",\"group\"=>\"Scroll Arrows\",\"order\"=>\"20\",\"default\"=>\"60\",\"label\"=>\"Opacity of arrows (0-100)\",\"type\"=>\"num\",\"scope\"=>\"MagicScroll\"),\"arrows-hover-opacity\"=>array(\"id\"=>\"arrows-hover-opacity\",\"group\"=>\"Scroll Arrows\",\"order\"=>\"30\",\"default\"=>\"100\",\"label\"=>\"Opacity of arrows on mouse over (0-100)\",\"type\"=>\"num\",\"scope\"=>\"MagicScroll\"),\"slider-size\"=>array(\"id\"=>\"slider-size\",\"group\"=>\"Scroll Slider\",\"order\"=>\"10\",\"default\"=>\"10%\",\"label\"=>\"Slider size (numeric or percent)\",\"type\"=>\"text\",\"scope\"=>\"MagicScroll\"),\"slider\"=>array(\"id\"=>\"slider\",\"group\"=>\"Scroll Slider\",\"order\"=>\"20\",\"default\"=>\"false\",\"label\"=>\"Slider postion\",\"type\"=>\"array\",\"subType\"=>\"select\",\"values\"=>array(\"top\",\"right\",\"bottom\",\"left\",\"false\"),\"scope\"=>\"MagicScroll\"),\"direction\"=>array(\"id\"=>\"direction\",\"group\"=>\"Scroll effect\",\"order\"=>\"10\",\"default\"=>\"right\",\"value\"=>\"bottom\",\"label\"=>\"Direction of scroll\",\"type\"=>\"array\",\"subType\"=>\"select\",\"values\"=>array(\"top\",\"right\",\"bottom\",\"left\"),\"scope\"=>\"MagicScroll\"),\"duration\"=>array(\"id\"=>\"duration\",\"group\"=>\"Scroll effect\",\"order\"=>\"20\",\"default\"=>\"1000\",\"label\"=>\"Duration of effect (miliseconds)\",\"type\"=>\"num\",\"scope\"=>\"MagicScroll\"));\n $this->params->appendParams($params);\n }", "title": "" }, { "docid": "12dbf6776f817497a4134b873d38f5f4", "score": "0.4525527", "text": "protected function init()\n {\n $this->defaultOptions = [\n 'locale' => locale_get_default(),\n 'timezone' => date_default_timezone_get(),\n 'calendar' => 'Gregorian'\n ];\n }", "title": "" } ]
34055af3873bbd49064db5d181c8c783
Build up the array of data to send.
[ { "docid": "4b6424c8242aba619d65e333d0b7eb60", "score": "0.5880263", "text": "protected function buildDataToSend(string $eventAction, RestHookable $model): array\n {\n return [\n 'event' => $model->getRestHookEventName() . '.' . $eventAction,\n 'user_id' => $this->userId,\n ];\n }", "title": "" } ]
[ { "docid": "cf7f08febbea2b2ed069e81f13029fb7", "score": "0.6320075", "text": "public function dataAppend() {\n\t\t\t$data = array(\n\t\t\t\tarray(array('', 's'), array('s')),\n\t\t\t\tarray(array('s', 's'), array('ss')),\n\t\t\t\tarray(array('string', 's'), array('strings')),\n\t\t\t);\n\t\t\treturn $data;\n\t\t}", "title": "" }, { "docid": "3d274c6da5b94caaafb4ac3806b8022b", "score": "0.6277096", "text": "public function buildAllowedSender(array $data) {\n $result = array();\n $a = 0;\n for($a=0;$a<count($data);$a++) {\n $data[$a]['unique_id'] = $a+1;\n }\n return $data;\n }", "title": "" }, { "docid": "08e31abcb646ee60c1ef33eab5e73359", "score": "0.6189419", "text": "protected function buildPayload()\n {\n return array_filter([\n 'billing_cycle_anchor' => $this->billingCycleAnchor,\n 'coupon' => $this->coupon,\n 'metadata' => $this->metadata,\n 'plan' => $this->plan,\n 'quantity' => $this->quantity,\n 'application_fee_percent' => $this->feePercent,\n 'tax_percent' => $this->getTaxPercentageForPayload(),\n 'trial_end' => $this->getTrialEndForPayload(),\n ]);\n }", "title": "" }, { "docid": "cdb66ae2732bf54bbb2e874d13ce6f39", "score": "0.6164191", "text": "public function buildData () {\n\t\t$sJSON = \"[]\";\n\t\tif (!empty($this->data)) {\n\t\t\t$sJSON = json_encode($this->data);\n\t\t}\n\t\treturn $sJSON;\n\t}", "title": "" }, { "docid": "0e00c7880a0c66e4269c31eb67a78b24", "score": "0.61071944", "text": "private function buildPayload()\n {\n $message = $this->message ?: ($this->task ? ucwords($this->getSystemUser()).' ran the ['.$this->task.'] task.' : ucwords($this->getSystemUser()).' ran a task.');\n\n return array_merge(['text' => $message, 'chat_id' => $this->chat], $this->options);\n }", "title": "" }, { "docid": "f2de5aff5b4ae8885ee1ec56b629307f", "score": "0.6101739", "text": "public function buildSender(): array\n {\n return [\n 'from' => $this->from->toArray()\n ];\n }", "title": "" }, { "docid": "8cf0ad8270b937ac42141fdb73ff5baa", "score": "0.5892402", "text": "protected function buildPayload()\n {\n return [\n 'coupon_code' => (string) $this->coupon,\n 'quantity' => $this->quantity,\n 'return_url' => $this->returnTo,\n ];\n }", "title": "" }, { "docid": "5c022c4d228126db26ebaa1e41d85f3c", "score": "0.58623827", "text": "public function buildData()\n {\n return [\n 'success' => false,\n 'message' => $this->getMessage(),\n ];\n }", "title": "" }, { "docid": "73ceb1b86320371e577549fa2048ca62", "score": "0.5851258", "text": "public function _getData(): array\n {\n $result = [\n 'update_id' => $this->getUpdateId(),\n 'message' => $this->getMessage(),\n 'edited_message' => $this->getEditedMessage(),\n 'channel_post' => $this->getChannelPost(),\n 'edited_channel_post' => $this->getEditedChannelPost(),\n 'inline_query' => $this->getInlineQuery(),\n 'chosen_inline_result' => $this->getChosenInlineResult(),\n 'callback_query' => $this->getCallbackQuery(),\n 'shipping_query' => $this->getShippingQuery(),\n 'pre_checkout_query' => $this->getPreCheckoutQuery(),\n 'poll' => $this->getPoll(),\n 'poll_answer' => $this->getPollAnswer(),\n 'my_chat_member' => $this->getMyChatMember(),\n 'chat_member' => $this->getChatMember(),\n 'chat_join_request' => $this->getChatJoinRequest(),\n ];\n\n return parent::normalizeData($result);\n }", "title": "" }, { "docid": "4c3790caad811c3bc556f488b40385cb", "score": "0.58059007", "text": "public function getData(): array\n {\n $message_data = $this->data;\n if (count($this->attachments)) {\n $message_data['attachments'] = [];\n foreach ($this->attachments as $attachment) {\n $message_data['attachments'][] = $attachment->toAttachment();\n }\n }\n return $message_data;\n }", "title": "" }, { "docid": "f26c3ec2c2a98849aaeea2b736ce4929", "score": "0.58021235", "text": "function CereusTransporter_bosun_send_data( $data_array )\n\t{\n\t\t$db_url = read_config_option( 'cereus_transporter_db_fullurl' );\n\t\t$db_type = read_config_option( 'cereus_transporter_dbtype' );\n\n\t\t// curl for bosun and opentsdb\n\t\t$curl = NULL;\n\n\t\t// init request\n\t\t$curl = curl_init();\n\t\t$db_url = rtrim( $db_url, '/' );\n\t\t$page = '/api/put?details';\n\t\tif ( read_config_option( 'log_verbosity' ) >= POLLER_VERBOSITY_DEBUG ) {\n\t\t\t$page .= '?details';\n\t\t}\n\t\tcurl_setopt( $curl, CURLOPT_URL, $db_url . $page );\n\t\tcurl_setopt( $curl, CURLOPT_RETURNTRANSFER, TRUE );\n\t\tcurl_setopt( $curl, CURLOPT_BINARYTRANSFER, TRUE );\n\t\tcurl_setopt( $curl, CURLOPT_POST, TRUE );\n\n\t\t$metrics = array();\n\n\t\t// preparing points\n\t\t$points = array();\n\t\tforeach ( $data_array as $point ) {\n\t\t\tif ( read_config_option( 'log_verbosity' ) >= POLLER_VERBOSITY_DEBUG ) {\n\t\t\t\tcacti_log( \"DEBUG: Appending the following data to request: [\" . $db_type . \"] [\" . $point[ 'timestamp' ] . \"] [\" . $point[ 'tags' ][ 'hostname' ] . \"] [\" . json_encode( $point[ 'tags' ] ) . \"] [\" . $point[ 'tags' ][ 'type' ] . \"] [\" . $point[ 'value' ] . \"]\", TRUE, \"CereusTransporter\" );\n\t\t\t}\n\t\t\tif ( strlen( $point[ 'metric' ] ) > 0 ) {\n\t\t\t\t// prepare metrics info for bosun\n\t\t\t\tif ( $db_type == 'bosun' && is_null( $metrics[ $point[ 'metric' ] ] ) ) {\n\t\t\t\t\t$metrics_temp = array();\n\t\t\t\t\t$metric = array();\n\t\t\t\t\t$metric[ 'Metric' ] = $point[ 'metric' ];\n\t\t\t\t\t$point[ 'value' ] = (int)$point[ 'value' ]; // make value integer\n\t\t\t\t\t$rate = $point[ 'tags' ][ 'rate' ];\n\t\t\t\t\t$desc = $point[ 'tags' ][ 'metric_text' ];\n\t\t\t\t\t$unit = $point[ 'tags' ][ 'units' ];\n\t\t\t\t\t$tags = $point[ 'tags' ];\n\t\t\t\t\t$metrics_host = array();\n\t\t\t\t\t$metrics_host_param = array();\n\t\t\t\t\t$metrics_host_tags = array();\n\n\t\t\t\t\t$metrics_host_tags[ 'host' ] = $point[ 'tags' ][ 'host' ];\n\t\t\t\t\t$metrics_host_param[ 'tags' ] = $metrics_host_tags;\n\t\t\t\t\t$metrics_host_param[ 'Name' ] = 'hostname';\n\t\t\t\t\t$metrics_host_param[ 'Value' ] = $tags[ 'hostname' ];\n\t\t\t\t\t$metrics_host[] = $metrics_host_param;\n\t\t\t\t\t$metrics_host_param[ 'Name' ] = 'polling_time';\n\t\t\t\t\t$metrics_host_param[ 'Value' ] = $tags[ 'polling_time' ];\n\t\t\t\t\t$metrics_host[] = $metrics_host_param;\n\t\t\t\t\t$metrics_host_param[ 'Name' ] = 'host_type';\n\t\t\t\t\t$metrics_host_param[ 'Value' ] = $tags[ 'host_type' ];\n\t\t\t\t\t$metrics_host[] = $metrics_host_param;\n\t\t\t\t\t$metrics[ $point[ 'tags' ][ 'host' ] ] = $metrics_host;\n\n\t\t\t\t\tunset( $tags[ 'metric_text' ] ); // delete unwanted data\n\n\t\t\t\t\tunset( $tags[ 'rate' ] ); // delete unwanted data\n\t\t\t\t\tunset( $tags[ 'namecache' ] ); // delete unwanted data\n\t\t\t\t\tunset( $tags[ 'type' ] ); // delete unwanted data\n\t\t\t\t\tunset( $tags[ 'units' ] ); // delete unwanted data\n\t\t\t\t\tunset( $tags[ 'host_type' ] ); // delete unwanted data\n\t\t\t\t\tunset( $tags[ 'hostname' ] ); // delete unwanted data\n\t\t\t\t\tunset( $tags[ 'polling_time' ] ); // delete unwanted data\n\t\t\t\t\t$metric[ 'tags' ] = $tags;\n\t\t\t\t\tif ( isset( $desc ) && strlen( $desc ) > 0 ) {\n\t\t\t\t\t\t$metric[ 'Name' ] = 'desc';\n\t\t\t\t\t\t$metric[ 'Value' ] = $desc;\n\t\t\t\t\t\t$metrics_temp[] = $metric;\n\t\t\t\t\t}\n\t\t\t\t\tif ( isset( $rate ) ) {\n\t\t\t\t\t\t$metric[ 'Name' ] = 'rate';\n\t\t\t\t\t\t$metric[ 'Value' ] = $rate;\n\t\t\t\t\t\t$metrics_temp[] = $metric;\n\t\t\t\t\t}\n\t\t\t\t\t// Unit name is taken from Vertical Label of Graph Template for datasource\n\t\t\t\t\t// If there are multiple Graph Templates, only one value will be taken\n\t\t\t\t\t// Vertical Label text should be from this list, or bosun will skip it:\n\t\t\t\t\t// https://godoc.org/bosun.org/metadata#Unit\n\t\t\t\t\tif ( isset( $unit ) ) {\n\t\t\t\t\t\t$metric[ 'Name' ] = 'unit';\n\t\t\t\t\t\t$metric[ 'Value' ] = $unit;\n\t\t\t\t\t\t$metrics_temp[] = $metric;\n\t\t\t\t\t}\n\t\t\t\t\t$metrics[ $point[ 'metric' ] ] = $metrics_temp;\n\t\t\t\t}\n\t\t\t\tif ( isset( $point[ 'tags' ][ 'index_type' ] ) ) {\n\t\t\t\t\t$point[ 'tags' ][ $point[ 'tags' ][ 'index_type' ] ] = $point[ 'tags' ][ 'index_value' ];\n\t\t\t\t\tunset( $point[ 'tags' ][ 'index_type' ] ); // delete unwanted data\n\t\t\t\t\tunset( $point[ 'tags' ][ 'index_value' ] ); // delete unwanted data\n\t\t\t\t}\n\t\t\t\tunset( $point[ 'tags' ][ 'metric_text' ] ); // delete unwanted data\n\t\t\t\tunset( $point[ 'tags' ][ 'units' ] ); // delete unwanted data\n\t\t\t\t$points[] = $point;\n\t\t\t}\n\t\t}\n\n\t\tif ( sizeof( $points ) > 0 ) {\n\t\t\tif ( read_config_option( 'log_verbosity' ) >= POLLER_VERBOSITY_DEBUG ) {\n\t\t\t\tcacti_log( \"DEBUG: Adding [\" . sizeof( $points ) . \"] of data points for [\" . $point[ 'tags' ][ 'hostname' ] . \"]\", TRUE, \"CereusTransporter\" );\n\t\t\t}\n\n\t\t\t$db_url = rtrim( read_config_option( 'cereus_transporter_db_fullurl' ), '/' );\n\t\t\tif ( $db_type == 'bosun' && sizeof( $metrics ) > 0 ) {\n\t\t\t\t$metrics_post = array();\n\t\t\t\tforeach ( $metrics as $metrics_outer ) {\n\t\t\t\t\tforeach ( $metrics_outer as $metric ) {\n\t\t\t\t\t\t$metrics_post[] = $metric;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$json = json_encode( $metrics_post );\n\t\t\t\tif ( read_config_option( 'log_verbosity' ) >= POLLER_VERBOSITY_DEBUG ) {\n\t\t\t\t\tcacti_log( \"DEBUG: Bosun Metrics for hostname [\" . $point[ 'tags' ][ 'hostname' ] . \"]: \" . $json, TRUE, \"CereusTransporter\" );\n\t\t\t\t}\n\t\t\t\t$metacurl = curl_init();\n\t\t\t\tcurl_setopt( $metacurl, CURLOPT_URL, $db_url . '/api/metadata/put' );\n\t\t\t\tcurl_setopt( $metacurl, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json; charset=UTF-8',\n\t\t\t\t\t\"Accept:application/json, text/javascript, */*; q=0.01\",\n\t\t\t\t\t'Content-Length: ' . strlen( $json ) ) );\n\t\t\t\tcurl_setopt( $metacurl, CURLOPT_RETURNTRANSFER, TRUE );\n\t\t\t\tcurl_setopt( $metacurl, CURLOPT_BINARYTRANSFER, TRUE );\n\t\t\t\tcurl_setopt( $metacurl, CURLOPT_POST, TRUE );\n\t\t\t\tcurl_setopt( $metacurl, CURLOPT_POSTFIELDS, $json );\n\t\t\t\t$curl_result = curl_exec( $metacurl );\n\t\t\t\tif ( $curl_result === FALSE ) {\n\t\t\t\t\tcacti_log( \"ERROR: Metadata Curl to [\" . $db_url . \"] was not succesful: [\" . curl_error( $metacurl ) . \"]\", TRUE, \"CereusTransport\" );\n\t\t\t\t}\n\t\t\t\tcurl_close( $metacurl );\n\t\t\t}\n\n\t\t\t$json = json_encode( $points );\n\t\t\tif ( read_config_option( 'log_verbosity' ) >= POLLER_VERBOSITY_DEBUG ) {\n\t\t\t\tcacti_log( \"DEBUG: Adding [\" . sizeof( $points ) . \"] of data points for [\" . $point[ 'tags' ][ 'hostname' ] . \"] TSDB JSON: \" . $json, TRUE, \"CereusTransporter\" );\n\t\t\t}\n\t\t\tcurl_setopt( $curl, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json; charset=UTF-8',\n\t\t\t\t\"Accept:application/json, text/javascript, */*; q=0.01\",\n\t\t\t\t'Content-Length: ' . strlen( $json ) ) );\n\t\t\tcurl_setopt( $curl, CURLOPT_POSTFIELDS, $json );\n\t\t\t$curl_result = curl_exec( $curl );\n\t\t\tif ( $curl_result === FALSE ) {\n\t\t\t\tcacti_log( \"ERROR: Data Curl to [\" . $db_url . \"] for [\" . $point[ 'tags' ][ 'hostname' ] . \"] was not succesful: [\" . curl_error( $curl ) . \"]\", TRUE, \"CereusTransport\" );\n\t\t\t}\n\t\t\tcurl_close( $curl );\n\n\t\t\tif ( read_config_option( 'log_verbosity' ) >= POLLER_VERBOSITY_HIGH ) {\n\t\t\t\tcacti_log( \"Finished adding [\" . sizeof( $points ) . \"] of data points for [\" . $point[ 'tags' ][ 'hostname' ] . \"]\", TRUE, \"CereusTransporter\" );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "891d4e76460bd442dadc2d7b6de731d9", "score": "0.57843196", "text": "protected function buildPayload() : array\n {\n $payload = array_filter([\n 'items' => array_values($this->plans),\n 'coupon' => $this->coupon,\n 'trial_end' => $this->getTrialEndForPayload(),\n 'tax_percent' => $this->getTaxPercentageForPayload(),\n 'metadata' => $this->metadata,\n ]);\n\n if ($taxRates = $this->getTaxRatesForPayload()) {\n $payload['default_tax_rates'] = $taxRates;\n } elseif ($taxPercentage = $this->getTaxPercentageForPayload()) {\n $payload['tax_percent'] = $taxPercentage;\n }\n\n return $payload;\n }", "title": "" }, { "docid": "39775b434af047f0163d3139e52a2809", "score": "0.57665247", "text": "public function sendData(array $data) {\n\t$qs = [];\n\t$i = 1;\n\tforeach($data as $junk => $val) {\n\t $key = 'field' . ($i++);\n\t $qs[$key] = $val;\n\t}\n $url = str_replace('{KEY}', $this->cfg->thingspeak->api_key, self::THINGSPEAK_API);\n $url .= http_build_query($qs);\n file_get_contents($url);\n return $http_response_header[0];\n }", "title": "" }, { "docid": "de87b82c11d9613f4169426fb5ba1115", "score": "0.5765808", "text": "private function prepare_data()\n\t{\n\t\t$data = array(\n\t\t\t'Subject' => $this->_subject,\n\t\t\t'From' => $this->_headers['From'],\n\t\t\t'To' => $this->_recipients,\n\t\t);\n\n\t\tif( !empty($this->_headers['Cc']) )\n\t\t{\n\t\t\t$data['Cc'] = $this->_headers['Cc'];\n\t\t}\n\n\t\tif( !empty($this->_headers['Bcc']) )\n\t\t{\n\t\t\t$data['Bcc'] = $this->_headers['Bcc'];\n\t\t}\n\n\t\tif( !empty($this->_headers['Reply-To']) )\n\t\t{\n\t\t\t$data['ReplyTo'] = $this->_headers['Reply-To'];\n\t\t}\n\n\t\tif( $this->mailtype != 'html' )\n\t\t{\n\t\t\t$data['TextBody'] = ($this->wordwrap === TRUE) ? $this->word_wrap($this->_body) : $this->_body;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$data['HtmlBody'] = $this->_body;\n\t\t\t$data['TextBody'] = ($this->wordwrap === TRUE) ? $this->word_wrap($this->alt_message) : $this->alt_message;\n\t\t}\n\n\t\tif( !empty($this->tag) )\n\t\t{\n\t\t\t$data['Tag'] = $this->tag;\n\t\t}\n\n\t\tif( !empty($this->_attach_name) )\n\t\t{\n\t\t\t$total_size = 0;\n\n\t\t\tforeach( $this->_attach_name as $key => $value )\n\t\t\t{\n\t\t\t\t// throw error if file cannot be found\n\t\t\t\tif( !file_exists($value) )\n\t\t\t\t{\n\t\t\t\t\tshow_error('Postmark Library: Could not attach file `'.$value.'`. File could not be found.');\n\t\t\t\t}\n\n\t\t\t\tif( !$this->valid_attachment($value) )\n\t\t\t\t{\n\t\t\t\t\tshow_error('Postmark Library: Could not attach file `'.$value.'`. File type not allowed.');\n\t\t\t\t}\n\n\t\t\t\t$file_info = get_file_info($value);\n\t\t\t\t$total_size += $file_info['size'];\n\t\t\t}\n\n\t\t\t// if sum of attachment sizes are greater than 10MB - fail.\n\t\t\tif( $total_size > 10485760 )\n\t\t\t{\n\t\t\t\tshow_error('Postmark Library: Could not send email. Maximum attachment size reached.');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tforeach( $this->_attach_name as $key => $value )\n\t\t\t\t{\n\t\t\t\t\t$file_data = read_file($value);\n\n\t\t\t\t\t$data['Attachments'][] = array(\n\t\t\t\t\t\t'Name' => basename($value),\n\t\t\t\t\t\t'Content' => chunk_split(base64_encode($file_data)),\n\t\t\t\t\t\t'ContentType' => get_mime_by_extension($value)\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "cbe8069764074d047039ae654ca04ea6", "score": "0.57445216", "text": "protected function buildPushNotificationData() {\n if (!checkArrayParam($this->pushNotificationData)) {\n $pushnotificationdatabuilder = new Pushnotificationdatabuilder($this->notificationBuilder);\n $this->pushNotificationData = $pushnotificationdatabuilder->buildPushNotificationData()->getPushNotificationData();\n }\n return $this->pushNotificationData;\n }", "title": "" }, { "docid": "116f7bec26c47f972378172e91709e25", "score": "0.5741782", "text": "public function getData(): array\n {\n $type = $this->type();\n $typeData = $this->typeData();\n return $this->at() + [\n \"msgtype\" => $type,\n $type => $typeData\n ];\n }", "title": "" }, { "docid": "2953665572b69a178d9d05fbff795def", "score": "0.5709796", "text": "public function _getData(): array\n {\n $result = [\n 'url' => $this->getUrl(),\n 'forward_text' => $this->getForwardText(),\n 'bot_username' => $this->getBotUsername(),\n 'request_write_access' => $this->getRequestWriteAccess(),\n ];\n\n return parent::normalizeData($result);\n }", "title": "" }, { "docid": "a14dc47d1c950d3b819800ac5e8a434e", "score": "0.5705534", "text": "public function getData(): array\n {\n\n $this->setWeatherToday();\n\n //dzisiejsza pogoda\n $this->generateArrayToSendDaily($this->objData);\n\n\n //zrobimy ze z kazdego dnia do przodu o 5 bierzemy od godziny 12 do 15 temperatura i te dane bedziemy wyswietlac\n $this->setWeatherForecast();\n foreach ($this->objData as $key => $weather) {\n foreach ($this->days_to_query as $value) {\n if ($weather->time->from->format('d.m.y H:i') === $value) {\n\n $this->generateArrayToSend($weather);\n\n }\n\n\n }\n\n\n }\n return $this->dataToSend;\n\n }", "title": "" }, { "docid": "9a23aec9007c38883a176ae8e2a4d5b0", "score": "0.5670757", "text": "protected function initData()\n {\n foreach ($this->getRequestParameters() as $key => $value) {\n $this->logger->info(sprintf('%s=%s', $key, $value));\n\n if (in_array($key, $this->pbxRetour)) {\n $this->data[$key] = urlencode($value);\n }\n }\n }", "title": "" }, { "docid": "7398ca3ce2f889a0102bd7ced96eed64", "score": "0.5651917", "text": "public function write(): array\n {\n $buffer = [];\n BufferUtil::writeUB3($buffer, $this->calcPacketSize());\n $buffer[] = $this->packetId;\n $buffer[] = $this->protocolVersion;\n BufferUtil::writeWithNull($buffer, getBytes($this->serverVersion));\n BufferUtil::writeUB4($buffer, $this->threadId);\n BufferUtil::writeWithNull($buffer, $this->seed);\n BufferUtil::writeUB2($buffer, $this->serverCapabilities);\n $buffer[] = $this->serverCharsetIndex;\n BufferUtil::writeUB2($buffer, $this->serverStatus);\n if ($this ->serverCapabilities & Capabilities::CLIENT_PLUGIN_AUTH) {\n BufferUtil::writeUB2($buffer, $this->serverCapabilities);\n $buffer[] = max(13, count($this->seed) + count($this->restOfScrambleBuff) + 1);\n $buffer = array_merge($buffer, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);\n } else {\n $buffer = array_merge($buffer, self::$FILLER_13);\n }\n if ($this ->serverCapabilities & Capabilities::CLIENT_SECURE_CONNECTION) {\n BufferUtil::writeWithNull($buffer, $this->restOfScrambleBuff);\n }\n if ($this ->serverCapabilities & Capabilities::CLIENT_PLUGIN_AUTH) {\n BufferUtil::writeWithNull($buffer, getBytes($this->pluginName));\n }\n return $buffer;\n }", "title": "" }, { "docid": "fc76b31c00ce215ec5a0de838206a46c", "score": "0.5650521", "text": "public function build(array $data): array\n\t{\n\t\treturn [];\n\t}", "title": "" }, { "docid": "6008d12182da59223028b72a10809e5e", "score": "0.56351894", "text": "public function _getData(): array\n {\n $result = [\n 'id' => $this->getId(),\n 'from' => $this->getFrom(),\n 'query' => $this->getQuery(),\n 'offset' => $this->getOffset(),\n 'chat_type' => $this->getChatType(),\n 'location' => $this->getLocation(),\n ];\n\n return parent::normalizeData($result);\n }", "title": "" }, { "docid": "07b1a9b47c21a5627e5548a3897d746b", "score": "0.55992997", "text": "private function setToData()\n {\n return array_merge (\n $this->setToOfType($this->getTos(), 'to'),\n $this->setToOfType($this->getCcs(), 'cc'),\n $this->setToOfType($this->getBccs(), 'bcc') \n );\n }", "title": "" }, { "docid": "826bf98bed036310ffa9022de7d7fd21", "score": "0.5586487", "text": "protected function prepareDataForSmtp()\n {\n $this->data[] = [\n \"channel\" => $channel = \"mail\",\n \"driver\" => $driver = \"smtp\",\n \"slug\" => notifier()::generateSlug($channel, $driver),\n \"title\" => notifier()::generateTitle($channel, $driver),\n \"available_for_admins\" => \"0\",\n \"meta-data\" => [\n \"username\" => env(\"MAIL_USERNAME\"),\n \"password\" => env(\"MAIL_PASSWORD\"),\n \"host\" => \"smtp.yasna.team\",\n \"port\" => \"587\",\n \"from-address\" => \"no-reply@yasna.team\",\n \"from-name\" => \"Yasnateam Notifier\",\n \"encryption\" => null,\n //\"sendmail\" => \"\",\n //\"markdown-theme\" => \"\",\n //\"markdown-paths\" => \"\",\n ],\n ];\n }", "title": "" }, { "docid": "f51064bce17370d61bca7751666e6a11", "score": "0.5556504", "text": "protected function prepareDataForNotification()\n {\n $data = array();\n\n $data['product'] = $this;\n $data['name'] = $this->getName();\n $data['sku'] = $this->getSKU();\n $data['amount'] = $this->getAmount();\n\n $params = array(\n 'product_id' => $this->getProductId(),\n 'page' => 'inventory',\n );\n $data['adminURL'] = \\XLite\\Core\\Converter::buildFullURL('product', '', $params, \\XLite::getAdminScript(), false);\n\n return $data;\n }", "title": "" }, { "docid": "af1d3f022f8542460ddb5a6dfe097396", "score": "0.55223954", "text": "public function build()\n\t{\n\t\t$items = \"\";\n\t\t\n\t\tforeach ($this->params as $name => $value)\n\t\t{\n\t\t\t$items .= $this->encode($this->encode($name).$this->encode($value), \"=\");\n\t\t}\n\t\t\n\t\treturn $items;\n\t}", "title": "" }, { "docid": "e70938d34ca2b46960670e9084068f4d", "score": "0.552225", "text": "private function prepareQuoteData()\n {\n $quoteData = (array)$this->getRequest()->getParam('quote');\n $updateData = (array)$this->serializer->unserialize(\n $this->getRequest()->getParam('dataSend')\n );\n $quoteUpdateData = $updateData['quote'] ?? [];\n return array_merge($quoteUpdateData, $quoteData);\n }", "title": "" }, { "docid": "e1d31a1cf33a0a27e41b652236466221", "score": "0.5512735", "text": "public function send(): array\n {\n // dispatch requests and return a collection of results\n $result = array_map(function ($request) {\n\n $postRequest = $this->getSMSClient()->getGuzzleClient()->post($this->getMediaType(), [\n GuzzleHttpRequestOptions::FORM_PARAMS => $request\n ]);\n\n return json_decode($postRequest->getBody()->getContents(), true);\n }, $this->getRequests());\n\n // reset message data and recipients, but preserve the rest\n $this->removeAllLines();\n $this->removeAllRecipients();\n\n return $result;\n }", "title": "" }, { "docid": "ee7784ad30305e87f04f5031dadb5ea3", "score": "0.55044293", "text": "private function getData(): array\n {\n return [\n 'severity'=>$this->severity,\n 'message'=>$this->message,\n 'user'=>$this->user,\n 'properties'=>$this->withData,\n 'logger'=>$this->logger,\n 'log'=>$this->logData,\n 'source'=>$this->source\n ];\n }", "title": "" }, { "docid": "d481b3dc2d1492b1675cd7738e2d934d", "score": "0.5503828", "text": "function build_request_data(&$action, &$get, &$post, &$import, &$data) {\n $get = $post = $import = array();\n if (in_array($action, array('create', 'update', 'delete'))) {\n if (is_array($data)) {\n $values = array_values($data);\n if (sizeof($values) > 0 && !is_array($values[0])) {\n $data = array(0 => $data);\n }\n }\n $import = $data;\n } else {\n $post = $import = $data;\n }\n}", "title": "" }, { "docid": "c38129236d90cc8b5cffa7233497c885", "score": "0.55024767", "text": "public function dataAll() {\n\t\t\t$data = array(\n\t\t\t\tarray(array('', 's'), array(true)),\n\t\t\t\tarray(array('s', 's'), array(true)),\n\t\t\t\tarray(array('w', 's'), array(false)),\n\t\t\t\tarray(array('sssss', 's'), array(true)),\n\t\t\t\tarray(array('wssss', 's'), array(false)),\n\t\t\t\tarray(array('sswss', 's'), array(false)),\n\t\t\t\tarray(array('ssssw', 's'), array(false)),\n\t\t\t);\n\t\t\treturn $data;\n\t\t}", "title": "" }, { "docid": "ebba4a474788dd247bf71876182c0320", "score": "0.5491783", "text": "public function bindMultiple(array $data) {\n array_push($this->body, $data);\n }", "title": "" }, { "docid": "2c16139a13fd2ad20d60b17b4f13a5f8", "score": "0.5470398", "text": "public function getData() {\n $data = parent::getData();\n\n // Add any recipients\n $this->_loadRecipients();\n $data['recipients'] = array();\n foreach ($this->_recipients as $recipient) {\n $data['recipients'][] = $recipient->getData();\n }\n\n return $data;\n }", "title": "" }, { "docid": "d17f4de5554c39fa98eaa6259bf12088", "score": "0.5446168", "text": "public function toQueue(): array\n {\n $payload = [];\n\n if ($this->job !== null) {\n // TODO remove this method call when job will be private\n $payload['job'] = $this->formatJobName($this->job);\n }\n\n $payload['data'] = $this->data;\n $payload['queuedAt'] = $this->queuedAt;\n\n if ($this->name !== null) {\n $payload['name'] = $this->name;\n }\n\n if ($this->maxTries !== null) {\n $payload['maxTries'] = $this->maxTries;\n }\n\n if ($this->noStore !== null) {\n $payload['noStore'] = $this->noStore;\n }\n\n if ($this->headers) {\n $payload['headers'] = $this->headers;\n }\n\n return $payload;\n }", "title": "" }, { "docid": "344eec43d3a7a30e622fa56c1fdc0851", "score": "0.5442283", "text": "public function generateBasePostData()\n {\n $data = array();\n\n if ($this->rev->getSandboxMode() === true) {\n $data['sandbox_mode'] = true;\n }\n\n $data['priority'] = $this->priority;\n\n if ($this->client_ref) {\n $data['client_ref'] = $this->client_ref;\n }\n\n if ($this->comment) {\n $data['comment'] = $this->comment;\n }\n\n if (!empty($this->notification)) {\n $data['notification'] = $this->notification;\n }\n\n return $data;\n }", "title": "" }, { "docid": "68f3a9c600af4573889a6e90efb0b7a7", "score": "0.54376185", "text": "public function prepareData()\n {\n return [\n 'user_id' => $this->auth->getActiveUser()->id,\n 'reply_id' => $this->reply_id,\n 'message' => $this->converter->convertToHtml($this->message),\n ];\n }", "title": "" }, { "docid": "60bbfea1994d2fe645bcb09a353f7226", "score": "0.5437025", "text": "public function getData()\n {\n return implode('', $this->chunks);\n }", "title": "" }, { "docid": "c45b1f9fa14ad1facdaf3e0bbeec999e", "score": "0.5434822", "text": "private static function _cookData($data) {\n\t\t$tmp = array();\n\t\tif(isset($data['id'])) $tmp['id'] = $data['id'];\n\t\tif(isset($data['task_name'])) $tmp['task_name'] = $data['task_name'];\n\t\tif(isset($data['resume'])) $tmp['resume'] = $data['resume'];\n\t\tif(isset($data['subject_id'])) $tmp['subject_id'] = $data['subject_id'];\n\t\tif(isset($data['descript'])) $tmp['descript'] = $data['descript'];\n\t\tif(isset($data['award_json'])) $tmp['award_json'] = $data['award_json'];\n\t\tif(isset($data['status'])) $tmp['status'] = $data['status'];\n\t\tif(isset($data['create_time'])) $tmp['create_time'] = intval($data['create_time']);\n\t\treturn $tmp;\n\t}", "title": "" }, { "docid": "ebb26a02639d1886b1d40f6c170b3d78", "score": "0.54251856", "text": "private static function _soapEncode()\n {\n $soapData = array();\n foreach(func_get_args() as $index => $arg)\n {\n $soapData[\"in{$index}\"] = $arg;\n }\n return $soapData;\n }", "title": "" }, { "docid": "5112a2e8eccce748710c97edc0f53ef8", "score": "0.53871155", "text": "public function build( array $data ) {\n\t\t// Set all the field from $data\n\t\tforeach ( $data as $fieldName => $fieldValue ) {\n\t\t\t$this->set( $fieldName, $fieldValue );\n\t\t}\n\n\t}", "title": "" }, { "docid": "8dc33cc7bc0375155dc546a3a517f1a9", "score": "0.53785294", "text": "protected function getData()\n {\n return array(\n 'files' => $this->files,\n 'address' => $this->address,\n 'envelopeType' => $this->envelopeType,\n 'logoId' => $this->logoId,\n 'batchId' => $this->batchId,\n );\n }", "title": "" }, { "docid": "ce66a2d2215c0ecf7bcfc10fb0ac3ea5", "score": "0.5377709", "text": "public function getData()\r\n {\r\n $this->validate('mchid', 'out_trade_no', 'pay_type', 'txamt', 'txdtm', 'notify_url', 'return_url');\r\n\r\n $data = array(\r\n 'mchid' => $this->getMchid(),\r\n 'out_trade_no' => $this->getOutTradeNo(),\r\n 'syssn' => $this->getSyssn(),\r\n 'txamt' => $this->getTxamt(),\r\n 'txdtm' => $this->getTxdtm()\r\n );\r\n\r\n if ($this->getKey()) {\r\n $data['sign'] = Helper::getSignByDataAndKey($data, $this->getKey());\r\n }\r\n\r\n $data['query_string'] = Helper::getQueryString($data);\r\n\r\n return $data;\r\n }", "title": "" }, { "docid": "7723e3b6ff9e94417ca90855213bf1e7", "score": "0.5373416", "text": "public function packData()\n {\n $limit = new \\DateTime(\"$this->dtString - $this->keepCountsFor\");\n $this->requestCountsManager->deleteCountsUntil($limit);\n $result[\"requestcounts_deleted_until\"] = $limit;\n //idea pack RequestCounts to lower granularity for period between both limits\n\n if ($this->allowReleasedUserOnAddressFor) {\n $limit = min($limit, new \\DateTime(\"$this->dtString - $this->allowReleasedUserOnAddressFor\"));\n }\n if ($this->allowReleasedUserByCookieFor) {\n $limit = min($limit, new \\DateTime(\"$this->dtString - $this->allowReleasedUserByCookieFor\"));\n }\n $this->releasesManager->deleteReleasesUntil($limit);\n $result[\"releases_deleted_until\"] = $limit;\n\n return $result;\n }", "title": "" }, { "docid": "49c9099b3a55cf769e0780e32b314d69", "score": "0.536987", "text": "public function sendData($clientID, $data) {\n\t\t$this->outputBuffer[$clientID][] = $data;\n\t}", "title": "" }, { "docid": "92d51cc515fdc97693f5788ee9d496b0", "score": "0.5364902", "text": "public function toArray()\n {\n if ($this->to && $this->registration_ids && $this->condition)\n {\n $this->packet['registration_ids'] = $this->registration_ids;\n }elseif ($this->to && $this->registration_ids)\n {\n $this->packet['registration_ids'] = $this->registration_ids;\n }elseif ($this->registration_ids && $this->condition)\n {\n $this->packet['registration_ids'] = $this->registration_ids;\n }elseif ($this->to && $this->condition)\n {\n $this->packet['condition'] = $this->condition;\n }elseif($this->to)\n {\n $this->packet['to'] = $this->to;\n }elseif($this->registration_ids)\n {\n $this->packet['registration_ids'] = $this->registration_ids;\n }elseif ($this->condition)\n {\n $this->packet['condition'] = $this->condition;\n }\n\n return parent::toArray();\n }", "title": "" }, { "docid": "7b9c47ed59ac9440794a3022afa1816f", "score": "0.5363695", "text": "public function setDataSend($data = array())\r\n {\r\n # funcion encargada de contar la cantidad de datos enviados atraves de un array\r\n if(count($data) > 0)\r\n $this->dataToSend = $data;\r\n else\r\n return 0;\r\n }", "title": "" }, { "docid": "9a0f360da5245d78af905ceb6436ec89", "score": "0.5361455", "text": "protected function buildData($data)\n {\n if (!is_array($data) || !count($data)) {\n return [];\n }\n if (isset($data['_id'])) {\n $data['_id'] = $this->ensureId($data['_id']);\n }\n\n return $data;\n }", "title": "" }, { "docid": "67a5309dade478d9a42a963f04d22b2f", "score": "0.5360735", "text": "public static function dataArray(){\n\t\t$subscribedUsersResult=SubscribeManagerDB::getAllUsersArray();\n\t\t$subscribedUsersArray = array(); //Array containing all information (e.g. id, email, hashkey) of subscribed users in TB_subscribe.\n\t\tforeach ($subscribedUsersResult as $entry) {\n\t\t\tarray_push($subscribedUsersArray, $entry); //Array to send email to **ALL** users in TB_subscribe. Tied to Select All button\n\t\t}\n\t\t$subscribedEmail = array_column($subscribedUsersArray, 'email');\n\t\t$subscribedId = array_column($subscribedUsersArray, 'id'); //Stores all the subscribed ids in TB_subscribe in array.\n\t\t$subscribedHashkey = array_column($subscribedUsersArray, 'hashkey'); //Stores all the subscribed hashkey ids in TB_subscribe in array.\n\t\t$dataArray = array();\n\t\tfor($i=0; $i<count($subscribedEmail); $i++){\n\t\t\t$dataArray[$subscribedEmail[$i]] = array($subscribedId[$i],$subscribedHashkey[$i]);\n\t\t}\n\t\treturn $dataArray;\n}", "title": "" }, { "docid": "a21a56448ca713b15ccf94bebf84ac3e", "score": "0.53542155", "text": "public function getRequestData()\n {\n $requestData = [];\n if (!empty($this->_data)) {\n // insert params to request as additional button variables,\n // except special params from _notButtonVars list\n $i = 0;\n foreach ($this->_data as $key => $value) {\n if (in_array($key, $this->notButtonVars)) {\n $requestData[$key] = $value;\n } else {\n $varKey = sprintf($this->buttonVarFormat, $i);\n $requestData[$varKey] = $key . '=' . $value;\n $i++;\n }\n }\n }\n\n return $requestData;\n }", "title": "" }, { "docid": "928c6915cbc5b9d2a814b4782de3be5e", "score": "0.53523403", "text": "private static function cookData($data) {\n\t\t$tmp = array();\n\t\tif(isset($data[self::FIELD_ID])) $tmp[self::FIELD_ID] = $data[self::FIELD_ID];\n\t\tif(isset($data[self::FIELD_UUID])) $tmp[self::FIELD_UUID] = $data[self::FIELD_UUID];\n\t\tif(isset($data[self::FIELD_FESTIVAL_ID])) $tmp[self::FIELD_FESTIVAL_ID] = $data[self::FIELD_FESTIVAL_ID];\n\t\tif(isset($data[self::FIELD_PRIZE_ID])) $tmp[self::FIELD_PRIZE_ID] = $data[self::FIELD_PRIZE_ID];\n\t\tif(isset($data[self::FIELD_CONTACT])) $tmp[self::FIELD_CONTACT] = $data[self::FIELD_CONTACT];\n\t\tif(isset($data[self::FIELD_PHONE])) $tmp[self::FIELD_PHONE] = $data[self::FIELD_PHONE];\n\t\tif(isset($data[self::FIELD_ADDRESS])) $tmp[self::FIELD_ADDRESS] = $data[self::FIELD_ADDRESS];\n\t\tif(isset($data[self::FIELD_STATUS])) $tmp[self::FIELD_STATUS] = $data[self::FIELD_STATUS];\n\t\tif(isset($data[self::FIELD_CREATE_TIME])) $tmp[self::FIELD_CREATE_TIME] = $data[self::FIELD_CREATE_TIME];\n\t\treturn $tmp;\n\t}", "title": "" }, { "docid": "8895dfa22ef50c8250a43bb4d756521a", "score": "0.5350229", "text": "protected static function send($data)\n {\n $data = [];\n\n foreach(Permission::get() as $permission)\n {\n $data[$permission->key()] = $permission->getPermissions();\n }\n\n return $data;\n }", "title": "" }, { "docid": "487d491a031ae8e4be40b9b40dcd0455", "score": "0.53490865", "text": "public function encodeData(): array\n {\n return [\n $this->coin,\n MinterConverter::convertToPip($this->value)\n ];\n }", "title": "" }, { "docid": "d5b4ae08662a357c5a5c25e8fb65a82a", "score": "0.5348687", "text": "private static function _cookData($data) {\r\n\t\t$tmp = array();\r\n\t\tif(isset($data['number'])) $tmp['number'] = $data['number'];\r\n\t\tif(isset($data['user_id'])) $tmp['user_id'] = $data['user_id'];\r\n\t\tif(isset($data['username'])) $tmp['username'] = $data['username'];\r\n\t\tif(isset($data['goods_id'])) $tmp['goods_id'] = $data['goods_id'];\r\n\t\tif(isset($data['goods_title'])) $tmp['goods_title'] = $data['goods_title'];\r\n\t\tif(isset($data['goods_price'])) $tmp['goods_price'] = $data['goods_price'];\r\n\t\tif(isset($data['create_time'])) $tmp['create_time'] = intval($data['create_time']);\r\n\t\tif(isset($data['status'])) $tmp['status'] = intval($data['status']);\r\n\t\tif(isset($data['remark'])) $tmp['remark'] = $data['remark'];\r\n\t\treturn $tmp;\r\n\t}", "title": "" }, { "docid": "9f42329d55f32bf81711a961d22937c5", "score": "0.5337105", "text": "public function _getData(): array\n {\n $result = [\n 'id' => $this->getId(),\n 'is_bot' => $this->getIsBot(),\n 'first_name' => $this->getFirstName(),\n 'last_name' => $this->getLastName(),\n 'username' => $this->getUsername(),\n 'language_code' => $this->getLanguageCode(),\n 'is_premium' => $this->getIsPremium(),\n 'added_to_attachment_menu' => $this->getAddedToAttachmentMenu(),\n 'can_join_groups' => $this->getCanJoinGroups(),\n 'can_read_all_group_messages' => $this->getCanReadAllGroupMessages(),\n 'supports_inline_queries' => $this->getSupportsInlineQueries(),\n ];\n\n return parent::normalizeData($result);\n }", "title": "" }, { "docid": "d248ac71b81a5b9b2f4c608b663d4d32", "score": "0.53360474", "text": "function plantilla_registro( Array $data ){\r\n\t\treturn array(\r\n\t\t\t\"sendRegistroPart1\" => $this->sendRegistroPart1(),\r\n\t\t\t\"sendRegistroPart2\" => $this->sendRegistroPart2(),\r\n\t\t\t\"sendRegistroPart3\" => $this->sendRegistroPart3(),\r\n\t\t\t\"sendRegistroPart4_1\" => $this->sendRegistroPart4_1(),\r\n\t\t\t\"sendRegistroPart4_2\" => $this->sendRegistroPart4_2(),\r\n\t\t\t\"sendRegistroPart5\" => $this->sendRegistroPart5()\r\n\t\t);\r\n\t}", "title": "" }, { "docid": "eb863dd2024ee63379b400834398687e", "score": "0.5334707", "text": "public function data_split() {\n\t\t\t$data = array(\n\t\t\t\tarray(array('/,/', 'boy,coy,toy'), array(array('boy', 'coy', 'toy'))),\n\t\t\t\tarray(array('/,/', 'boy|coy|toy'), array(array('boy|coy|toy'))),\n\t\t\t\tarray(array('/,/', array('boy,coy,toy', 2)), array(array('boy', 'coy,toy'))),\n\t\t\t);\n\t\t\treturn $data;\n\t\t}", "title": "" }, { "docid": "bd7f7de93eef8f98226f4c9ab273254b", "score": "0.53337884", "text": "private function buildBulkData(array $data, $hostId)\n {\n $esVersion6 = array_key_exists($hostId, $this->versions) && $this->versions[$hostId] === 'es6';\n\n $bulkData = [];\n foreach ($data as $log) {\n $this->setIndex($log['_index']);\n $this->setType($log['_type']);\n unset($log['_index'], $log['_type']);\n\n $bulkData[] = json_encode([\n 'index' => [\n '_index' => $this->index,\n '_type' => $esVersion6 ? '_doc': $this->type,\n '_id' => isset($log['id']) ? $log['id'] : (string) Uuid::generate()\n ]\n ]);\n\n $bulkData[] = $esVersion6\n ? json_encode(['index_type' => $this->type] + $log)\n : json_encode($log);\n }\n return implode(PHP_EOL, $bulkData) . PHP_EOL;\n }", "title": "" }, { "docid": "4853dc1512f32f6fdd0370b346fcc317", "score": "0.53295976", "text": "private static function _cookData($data) {\r\n\t\t$tmp = array();\r\n\t\t$channels = Client_Service_Spider::channels($data['channel']);\r\n\t\tif(isset($data['id'])) $tmp['id'] = $data['id'];\r\n\t\tif(isset($data['url_id'])) $tmp['url_id'] = $data['url_id'];\r\n\t\tif(!empty($data['item_id'])) $tmp['url_id'] = $data['item_id'];\r\n\t\tif(isset($data['channel_id'])) $tmp['channel_id'] = $data['channel_id'];\r\n\t\tif(!empty($data['channel'])) $tmp['channel_id'] = $channels['channel_id'];\r\n\t\tif(isset($data['url'])) $tmp['url'] = $data['url'];\r\n\t\tif(isset($data['title'])) $tmp['title'] = $data['title'];\r\n\t\tif(isset($data['request_count'])) $tmp['request_count'] = $data['request_count'];\r\n\t\tif(isset($data['status'])) $tmp['status'] = $data['status'];\r\n\t\treturn $tmp;\r\n\t}", "title": "" }, { "docid": "38c659e634b4b305645c1bfe5985a7c0", "score": "0.5315389", "text": "public function main()\r\n {\r\n $this->payload = '';\r\n \tforeach($this->input as $vals) {\r\n \t\t$this->payload .= is_array($vals) ? implode(\"\\t\",$vals) : $vals;\r\n \t\t$this->payload .= \"\\n\";\r\n \t}\r\n \t\r\n $this->headers['Content-Type'] = 'text/plain';\r\n \r\n return;\r\n }", "title": "" }, { "docid": "fd7a9d152187dc0bb1223b4ed1b22f51", "score": "0.5310585", "text": "private function processData($data)\r\n\t{\r\n\t\t$out = '';\r\n\t\t\r\n\t\tif(!is_array($data))\r\n\t\t{\r\n\t\t\ttrigger_error(\"API call() data should be an array\");\r\n\t\t}\r\n\t\t\r\n\t\tforeach($data as $k => $v)\r\n\t\t{\r\n\t\t\t$out .= urlencode($k).\"=\".urlencode($v).\"&\";\r\n\t\t}\r\n\t\t\r\n\t\treturn $out;\r\n\t}", "title": "" }, { "docid": "732d16691bbb88e5127367896323ba0c", "score": "0.53052264", "text": "private function getDataString()\n {\n return serialize(func_get_args());\n }", "title": "" }, { "docid": "f821310d9ee57b59977094ceb7e97aa1", "score": "0.530197", "text": "private function generateArrayToSend(Forecast $weather): void\n {\n $this->dataToSend[$weather->time->from->setTimezone(new DateTimezone('Europe/Berlin'))->format('d.m.y')] = [\n 'temp' => $weather->temperature->getFormatted(),\n 'clouds' => $weather->clouds->getDescription() . ' (' . $weather->clouds . ')',\n 'icon' => $weather->weather->getIconUrl(),\n 'wind_speed' => $weather->wind->speed->getFormatted(),\n 'direction' => $this->convertDegree($weather->wind->direction->getValue()),\n 'precipitation' => $weather->precipitation->getValue(),\n ];\n }", "title": "" }, { "docid": "3afeedb4c5959f867dbf0656e2f37c01", "score": "0.53010064", "text": "public function getData(): array\n {\n $data = parent::getData();\n if ($this->getBindingUsername()) {\n $data['Username'] = $this->getBindingUsername();\n }\n $data['PaymentType'] = 6; //Binding\n\n return $data;\n }", "title": "" }, { "docid": "a9c70c326c7e80e2fb05cd0b99ab969c", "score": "0.52967745", "text": "public function getDataToSend($data, $toClean): array\n {\n return [\n 'reference' => $toClean ? $this->sanitizeData->cleanForPost($data->reference) : $data->reference,\n 'last_name' => $toClean ? $this->sanitizeData->cleanForPost($data->last_name) : $data->last_name,\n 'first_name' => $toClean ? $this->sanitizeData->cleanForPost($data->first_name) : $data->first_name,\n 'phone' => $toClean ? $this->sanitizeData->cleanForPost($data->phone) : $data->phone,\n 'email' => $toClean ? $this->sanitizeData->cleanForPost($data->email) : $data->email,\n 'addr1' => $toClean ? $this->sanitizeData->cleanForPost($data->addr1) : $data->addr1,\n 'addr2' => $toClean ? $this->sanitizeData->cleanForPost($data->addr2) : $data->addr2,\n 'addr3' => $toClean ? $this->sanitizeData->cleanForPost($data->addr3) : $data->addr3,\n 'zipcode' => $toClean ? $this->sanitizeData->cleanForPost($data->zipcode) : $data->zipcode,\n 'city' => $toClean ? $this->sanitizeData->cleanForPost($data->city) : $data->city,\n ];\n }", "title": "" }, { "docid": "4587770b21fa37068724fbb81bfb4d11", "score": "0.5296586", "text": "function writeData($data)\n {\n for($i=0;$i<count($data);$i++)\n $this->writeArray($data[$i]);\n }", "title": "" }, { "docid": "5d52563d67db306e0a7412afb02e8df6", "score": "0.5292866", "text": "public function _getData(): array\n {\n $result = [\n 'file_id' => $this->getFileId(),\n 'file_unique_id' => $this->getFileUniqueId(),\n 'length' => $this->getLength(),\n 'duration' => $this->getDuration(),\n 'thumbnail' => $this->getThumbnail(),\n 'file_size' => $this->getFileSize(),\n ];\n\n return parent::normalizeData($result);\n }", "title": "" }, { "docid": "001f93e50e38ca46848565418e9d4297", "score": "0.52927846", "text": "private static function _cookData($data) {\n\t\t$tmp = array();\n\t\tif(isset($data['phone'])) $tmp['phone'] = $data['phone'];\n\t\tif(isset($data['verify'])) $tmp['verify'] = $data['verify'];\n\t\tif(isset($data['imei'])) $tmp['imei'] = $data['imei'];\n\t\tif(isset($data['token'])) $tmp['token'] = $data['token'];\n\t\tif(isset($data['operate'])) $tmp['operate'] = $data['operate'];\n\t\tif(isset($data['create_time'])) $tmp['create_time'] = intval($data['create_time']);\n\t\tif(isset($data['expire_time'])) $tmp['expire_time'] = intval($data['expire_time']);\n\t\tif(isset($data['status'])) $tmp['status'] = intval($data['status']);\n\t\treturn $tmp;\n\t}", "title": "" }, { "docid": "7c001866f8e2c58400f288c330b4dde2", "score": "0.529201", "text": "function _build_attachments () {\r\n $sep = chr(13).chr(10);\r\n $ata = array();\r\n $k=0;\r\n\r\n for ($i=0; $i < count( $this->attachments); $i++) {\r\n $filename = $this->attachments[$i];\r\n $basename = basename($filename);\r\n $mimetype = $this->mimetypes[$i];\r\n $disposition = $this->dispositions[$i];\r\n $contentID = $this->contentIDs[$i];\r\n if (preg_match('/^[a-zA-Z]+:\\/\\//', $filename)) { // figure out if local or remote\r\n \t$upart = parse_url($filename);\r\n \t$newfilename = $upart['scheme'].'://';\r\n \tif (!empty($upart['user'])) $newfilename .= $upart['user'].':'.$upart['pass'].'@';\r\n \t$newfilename .= $upart['host'];\r\n \tif (!empty($upart['port'])) $newfilename .= ':'.$upart['port'];\r\n \t$newfilename .= '/';\r\n \tif (!empty($upart['path'])) {\r\n \t\t$upart['path'] = substr($upart['path'], 1);\r\n \t\t$newpath = explode('/', $upart['path']);\r\n \t\tfor($i=0; $i<count($newpath); $i++) $newpath[$i] = rawurlencode($newpath[$i]);\r\n \t\t$newfilename .= implode('/',$newpath);\r\n \t}\r\n \tif (!empty($upart['query'])) $newfilename .= '?'.urlencode($upart['query']);\r\n \tif (!empty($upart['fragment'])) $newfilename .= ':'.$upart['fragment'];\r\n\r\n\t $fp = fopen($newfilename, 'rb');\r\n\t while(!feof($fp)) $data .= fread($fp,1024);\r\n\t }\r\n\t else {\r\n\t if(!file_exists($filename)) {\r\n\t vlibMimeMailError::raiseError('VM_ERROR_NOFILE', FATAL, $filename);\r\n\t }\r\n\t $fp = fopen($filename, 'rb');\r\n\t $data = fread($fp, filesize($filename));\r\n\t }\r\n $subhdr = '--'.$this->boundary.\"\\nContent-Type: \".$mimetype.\";\\n\\tname=\\\"\".$basename.\"\\\"\\nContent-Transfer-Encoding: base64\\nContent-Disposition: \".$disposition.\";\\n\\tfilename=\\\"\".$basename.\"\\\"\\n\";\r\n // почему-то было закомментировано, из-за этого нельзя было сделать ссылки в тексте на вложенные документы\r\n if ($contentID) $subhdr .= 'Content-ID: <'.$contentID.\">\\n\";\r\n $ata[$k++] = $subhdr;\r\n $ata[$k++] = chunk_split(base64_encode($data)).\"\\n\\n\";\r\n fclose($fp);\r\n }\r\n $this->fullBody .= \"\\n\".implode($sep, $ata);\r\n }", "title": "" }, { "docid": "ce61afe0cb1fe9fb6bff0aee163747ae", "score": "0.5285452", "text": "private function dataCreateRequest()\n\t{\n\t\treturn array(\n\t\t\t'quote_date' => $this->input->post('quote_date'),\n\t\t\t'type_quote' => $this->input->post('type_quote'),\n\t\t\t'state_quote' => $this->input->post('state_quote'),\n\t\t\t'description' => $this->input->post('description'),\n\t\t\t'id_user' => $this->input->post('id_user'),\n\t\t);\n\t}", "title": "" }, { "docid": "18f1c939fc6eda8f3f98dd478dcd58aa", "score": "0.5282333", "text": "protected function getData()\n {\n $this->validate('app_id', 'mch_id');\n\n $queryIdEmpty = !$this->getTransactionId() && !$this->getOutTradeNo();\n $queryIdEmpty = ($queryIdEmpty && !$this->getOutRefundNo() && !$this->getRefundId());\n\n if ($queryIdEmpty) {\n $message = \"The 'transaction_id' or 'out_trade_no' or 'out_refund_no' or 'refund_id' parameter is required\";\n throw new WechatException($message);\n }\n\n $data = [\n 'appid' => $this->getAppId(),\n 'mch_id' => $this->getMchId(),\n 'device_info' => $this->getDeviceInfo(),\n 'transaction_id' => $this->getTransactionId(),\n 'out_trade_no' => $this->getOutTradeNo(),\n 'out_refund_no' => $this->getOutRefundNo(),\n 'refund_id' => $this->getRefundId(),\n 'nonce_str' => md5(uniqid()),\n ];\n\n $data = array_filter($data);\n\n $data['sign'] = Helper::sign($data, $this->getApiKey());\n\n return $data;\n }", "title": "" }, { "docid": "f8c2581edc171b51ac383bd7e03c2b95", "score": "0.52777857", "text": "public function buildReceiver(Doctrine_Collection $data) {\n $result = array();\n $a = 0;\n foreach($data as $item) {\n $result[$a]['id'] = $item->getUserId();\n $result[$a]['unique_id'] = $a;\n $result[$a]['textwithoutimage'] = $item->getText();\n $result[$a++]['text'] = '<table><tr><td width=\"18\"><img src=\"/images/icons/user.png\" /></td><td>&nbsp;&nbsp;' . $item->getText() . '</td></tr></table>';\n }\n return $result;\n\n }", "title": "" }, { "docid": "3f57cca580fafeafebd380cb89ed524c", "score": "0.5276562", "text": "public function getWidgetData() {\n\t\tif(empty($this->newMails)) {\n\t\t\t$this->getNewMails();\n\t\t}\t\n\t\t\n\t\t// max number show new mails\n\t\t$size=count($this->newMails);\n\t\t\t\n\t\tif($size > $this->numberShowMails) {\n\t\t\t$numberAllMails = $size;\n\t\t\t$size = $this->numberShowMails;\n\t\t} else {\n\t\t\t$numberAllMails = \"\";\n\t\t}\n\t\t\n\t\t$mails = Array();\n\t\tfor($i = 0; $i < $size; $i++){\n\t\t\t$mails[] = Array(\n\t\t\t\t\t\"from\" => $this->cutString($this->isodecode($this->newMails[$i]->from), $this->maxStrLenFrom),\n\t\t\t\t\t\"subject\" => $this->cutString($this->isodecode($this->newMails[$i]->subject), $this->maxStrLenReference)\n\t\t\t\t\t);\n\t\t}\n\t\t\n\t\tif($this->error != \"\") {\n\t\t\t$return = Array(\"error\" => $this->error);\n\t\t\t$this->status = 3;\n\t\t} else {\n\t\t\t$return = Array(\n\t\t\t\t\t\"mails\" => $mails,\n\t\t\t\t\t\"numberAllMails\" => $numberAllMails\n\t\t\t\t\t);\n\t\t}\n\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "ad63e0909ad942877c27804e8e31b731", "score": "0.5275564", "text": "protected abstract function build(): array;", "title": "" }, { "docid": "70d1add8ed9b5e648f1f46af3870109b", "score": "0.52663195", "text": "function initDataFromRequest()\n {\n $data_array['type_id'] = $this->getRequestValue('type_id');\n $data_array['topic_id'] = $this->getRequestValue('topic_id');\n\n $data_array['tid'] = $this->getRequestValue('tid');\n $data_array['tid1'] = $this->getRequestValue('tid1');\n $data_array['tid2'] = $this->getRequestValue('tid2');\n\n $data_array['country_id'] = $this->getRequestValue('country_id');\n $data_array['new_country'] = $this->getRequestValue('new_country');\n\n $data_array['city_id'] = $this->getRequestValue('city_id');\n $data_array['new_city'] = $this->getRequestValue('new_city');\n\n $data_array['metro_id'] = $this->getRequestValue('metro_id');\n $data_array['new_metro'] = $this->getRequestValue('new_metro');\n\n $data_array['district_id'] = $this->getRequestValue('district_id');\n $data_array['new_district'] = $this->getRequestValue('new_district');\n\n $data_array['street'] = $this->getRequestValue('street');\n $data_array['street_id'] = $this->getRequestValue('street_id');\n $data_array['new_street'] = $this->getRequestValue('new_street');\n\n $data_array['price'] = $this->getRequestValue('price');\n $data_array['contact'] = $this->getRequestValue('contact');\n $data_array['agent_tel'] = $this->getRequestValue('agent_tel');\n $data_array['agent_email'] = $this->getRequestValue('agent_email');\n\n if ($this->getRequestValue('room_count') != '') {\n $data_array['room_count'] = $this->getRequestValue('room_count');\n } else {\n $data_array['room_count'] = 0;\n }\n\n //elite\n if ($this->getRequestValue('elite') == 1) {\n $data_array['elite'] = 1;\n } else {\n $data_array['elite'] = 0;\n }\n\n //active\n if ($this->getRequestValue('active') == 1) {\n $data_array['active'] = 1;\n } else {\n $data_array['active'] = 0;\n }\n\n //hot\n if ($this->getRequestValue('hot') == 1) {\n $data_array['hot'] = 1;\n } else {\n $data_array['hot'] = 0;\n }\n\n if ($this->getRequestValue('floor') != '') {\n $data_array['floor'] = $this->getRequestValue('floor');\n } else {\n $data_array['floor'] = 0;\n }\n\n if ($this->getRequestValue('floor_count') != '') {\n $data_array['floor_count'] = $this->getRequestValue('floor_count');\n } else {\n $data_array['floor_count'] = 0;\n }\n\n $data_array['walls'] = $this->getRequestValue('walls');\n $data_array['balcony'] = $this->getRequestValue('balcony');\n $data_array['square_all'] = $this->getRequestValue('square_all');\n $data_array['square_live'] = $this->getRequestValue('square_live');\n $data_array['square_kitchen'] = $this->getRequestValue('square_kitchen');\n $data_array['bathroom'] = $this->getRequestValue('bathroom');\n\n $data_array['text'] = $this->getRequestValue('text');\n $data_array['id'] = $this->getRequestValue('id');\n $data_array['is_telephone'] = $this->getRequestValue('is_telephone');\n $data_array['furniture'] = $this->getRequestValue('furniture');\n $data_array['plate'] = $this->getRequestValue('plate');\n $data_array['number'] = $this->getRequestValue('number');\n return $data_array;\n }", "title": "" }, { "docid": "a6ea644ffa6b1aaceb7c841db1e7f92f", "score": "0.52647686", "text": "private static function _cookData($data) {\n\t\t$tmp = array();\n\t\tif(isset($data['sort'])) $tmp['sort'] = $data['sort'];\n\t\tif(isset($data['pgroup_id'])) $tmp['pgroup_id'] = $data['pgroup_id'];\n\t\tif(isset($data['app_id'])) $tmp['app_id'] = $data['app_id'];\n\t\tif(isset($data['status'])) $tmp['status'] = $data['status'];\n\t\tif(isset($data['create_time'])) $tmp['create_time'] = $data['create_time'];\n\t\treturn $tmp;\n\t}", "title": "" }, { "docid": "fda094bb120fdda3bc77cd221eb0e6e8", "score": "0.5261909", "text": "public function sendRequestDataProvider(): array\n {\n return [\n [\n 'sendGetRequest'\n ],\n [\n 'sendPostRequest'\n ],\n [\n 'sendPutRequest'\n ],\n [\n 'sendDeleteRequest'\n ]\n ];\n }", "title": "" }, { "docid": "581e955de43b7e0ea2fdd8052527e119", "score": "0.52567214", "text": "public function data_sequence() {\n\t\t\t$data = array(\n\t\t\t\tarray(array(0.0, 4.0), array(array(0.0, 1.0, 2.0, 3.0, 4.0))),\n\t\t\t\tarray(array(1.0, 4.0), array(array(1.0, 2.0, 3.0, 4.0))),\n\t\t\t\tarray(array(1.0, 5.0), array(array(1.0, 2.0, 3.0, 4.0, 5.0))),\n\t\t\t\tarray(array(1.0, array(2.0, 9.0)), array(array(1.0, 3.0, 5.0, 7.0, 9.0))),\n\t\t\t);\n\t\t\treturn $data;\n\t\t}", "title": "" }, { "docid": "ebe55d4537211ee79a515e16d651c361", "score": "0.52393544", "text": "private function buildRegistrationData() {\n\n $data = [\n 'VPSProtocol' => '3.00',\n 'TxType' => 'PAYMENT',\n 'Vendor' => $_ENV['sage_vendor'],\n 'VendorTxCode' => $this->purchase->bookingref,\n 'Amount' => number_format($this->purchase->payment,2),\n 'Currency' => 'GBP',\n 'Description' => $this->clean(\"SRPS Railtour Booking - \" . $this->service->name, 100),\n 'NotificationURL' => $this->controller->Url('booking/notification'),\n 'BillingSurname' => $this->clean($this->purchase->surname, 20),\n 'BillingFirstnames' => $this->clean($this->purchase->firstname, 20),\n 'BillingAddress1' => $this->clean($this->purchase->address1, 100),\n 'BillingAddress2' => $this->clean($this->purchase->address2, 100),\n 'BillingCity' => $this->clean($this->purchase->city, 40),\n 'BillingPostCode' => $this->clean($this->purchase->postcode, 10),\n 'BillingCountry' => 'GB', // TODO (maybe)\n 'DeliverySurname' => $this->clean($this->purchase->surname, 20),\n 'DeliveryFirstnames' => $this->clean($this->purchase->firstname, 20),\n 'DeliveryAddress1' => $this->clean($this->purchase->address1, 100),\n 'DeliveryAddress2' => $this->clean($this->purchase->address2, 100),\n 'DeliveryCity' => $this->clean($this->purchase->city, 40),\n 'DeliveryPostCode' => $this->clean($this->purchase->postcode, 10),\n 'DeliveryCountry' => 'GB', // TODO (maybe)\n 'CustomerEmail' => $this->clean($this->purchase->email, 255),\n 'BasketXML' => $this->clean($this->buildBasket(), 20000),\n 'AllowGiftAid' => 1,\n 'AccountType' => $this->purchase->bookedby ? 'M' : 'E', \n ];\n\n // turn these into name=value\n $params = [];\n foreach ($data as $name => $value) {\n $params[] = \"$name=$value\";\n }\n $post = implode('&', $params);\n\n return $post;\n }", "title": "" }, { "docid": "cd8917ecf6a0d73f255e3d84ab3efc61", "score": "0.5231205", "text": "public function send(array $data, $host) {\n\n $data2push = array();\n\n foreach($data as $key => $entry) {\n\n $data2push[] = array(\n 'host' => $host,\n 'key' => $key,\n 'value' => (string) $entry['value'],\n 'clock' => $entry['time']\n );\n }\n\n $this->request = array(\n 'request' => 'sender data',\n 'data' => $data2push,\n 'clock' => time()\n );\n\n return $this->push();\n }", "title": "" }, { "docid": "b52b13f6fc1270564c2063e489f97bc7", "score": "0.5229087", "text": "public function buildDisburseRequestData(): array\n {\n $this->validate();\n\n return [\n 'issuer' => 'bank_card',\n 'amount' => $this->get('amount'),\n 'full_name' => $this->get('full_name'),\n 'bank_card_number' => $this->get('bank_card_number'),\n 'bank_code' => $this->get('bank_code'),\n 'bank_transaction_type' => $this->get('bank_transaction_type'),\n ];\n }", "title": "" }, { "docid": "46835806ea05ad4b5f0fdf5e660c3264", "score": "0.5227665", "text": "static function create_data_string($data = array()) {\n $data_string = \"\";\n\n foreach ($data as $key=>$value) {\n if(is_array($value)) $value = implode(\", \",$value);\n $data_string .= \" data-$key='$value' \";\n }\n\n return $data_string;\n }", "title": "" }, { "docid": "dc577f45d8b6dd62fcb6557516143640", "score": "0.5219467", "text": "public function buildPayload( array $payload );", "title": "" }, { "docid": "441bab52a96aad48d30690028fe3f435", "score": "0.5217118", "text": "public function getData()\n {\n\n $params = [\n 'SessionType='.$this->getSessionType(),\n 'OrderId='. $this->getOrderId(),\n 'Amount='.$this->getAmount(),\n 'IP='.$this->getIp()\n ];\n\n if($this->getCallbackUrl()){\n $params[] = 'Url='.$this->getCallbackUrl();\n }\n if($this->getTemplateTag()){\n $params[] = 'TemplateTag='.$this->getTemplateTag();\n }\n if($this->getLanguage()){\n $params[] = 'Language='.$this->getLanguage();\n }\n if($this->getProduct()){\n $params[] = 'Product='.$this->getProduct();\n }\n if($this->getTotal()){\n $params[] = 'Total='.$this->getTotal();\n }\n $params = urlencode(\"Data=\" .implode(';',$params));\n\n $data = [\n 'Key' => $this->getParameter('Key'),\n 'Data' => $params\n ];\n\n return $data;\n }", "title": "" }, { "docid": "d38b148c06879418412f72916c32f788", "score": "0.5207134", "text": "private function get_data()\n\t{\n\t\t$data = [];\n\n\t\t// List of people to email\n\t\t$accounts = self::get_accounts_from_orders();\n\t\tforeach ( $accounts as $account ) {\n\t\t\t$events = [];\n\t\t\tif ( $account['event_100_holes'] && !$account['event_100_holes_paid'] ) {\n\t\t\t\t$order = $account['event_100_holes_order'];\n\t\t\t\tif ( $order->get_status() === 'on-hold' ) {\n\t\t\t\t\tforeach ( $order->get_items() as $order_item ) {\n\t\t\t\t\t\t$product = $order_item->get_product();\n\t\t\t\t\t}\n\n\t\t\t\t\t$events[] = [\n\t\t\t\t\t\t'name' => $product->name,\n\t\t\t\t\t\t'amount' => B4B_Mail::price_format( $account['event_100_holes_fee'] ),\n\t\t\t\t\t\t'paid' => B4B_Mail::price_format( $account['event_100_holes_paid'] ? $account['event_100_holes_fee'] : 0 ),\n\t\t\t\t\t\t'make_payment' => $order->get_checkout_payment_url(),\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( $account['event_scramble'] && $account['event_scramble_captain'] && !$account['event_scramble_paid'] ) {\n\t\t\t\t$order = $account['event_scramble_order'];\n\t\t\t\tif ( $order->get_status() === 'on-hold' ) {\n\t\t\t\t\tforeach ( $order->get_items() as $order_item ) {\n\t\t\t\t\t\t$product = $order_item->get_product();\n\t\t\t\t\t}\n\n\t\t\t\t\t$events[] = [\n\t\t\t\t\t\t'name' => $product->name,\n\t\t\t\t\t\t'amount' => B4B_Mail::price_format( $account['event_scramble_fee'] ),\n\t\t\t\t\t\t'paid' => B4B_Mail::price_format( $account['event_scramble_paid'] ? $account['event_scramble_fee'] : 0 ),\n\t\t\t\t\t\t'make_payment' => $order->get_checkout_payment_url(),\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\t}\n//\t\t\tif ( $account['event_party'] && !$account['event_scramble_captain'] ) {\n//\t\t\t\t$order = $account['event_party_order'];\n//\t\t\t\tif ( $order->get_status() === 'on-hold' ) {\n//\t\t\t\t\tforeach ( $order->get_items() as $order_item ) {\n//\t\t\t\t\t\t$product = $order_item->get_product();\n//\t\t\t\t\t}\n//\n//\t\t\t\t\t$events[] = [\n//\t\t\t\t\t\t'name' => $product->name,\n////\t\t\t\t\t\t'amount' => B4B_Mail::price_format( $account['event_scramble_fee'] ),\n////\t\t\t\t\t\t'paid' => B4B_Mail::price_format( $account['event_scramble_paid'] ? $account['event_scramble_fee'] : 0 ),\n//\t\t\t\t\t\t'make_payment' => $order->get_checkout_payment_url(),\n//\t\t\t\t\t];\n//\t\t\t\t}\n//\t\t\t}\n\n\t\t\tif ( !empty( $events ) ) {\n\t\t\t\t$data[] = [\n\t\t\t\t\t'recipient' => $account['contact_email'],\n\t\t\t\t\t'first_name' => get_user_meta( $account['user_id'], 'first_name', true ),\n\t\t\t\t\t'events' => $events,\n\t\t\t\t];\n\t\t\t}\n\t\t}\n\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "39cdecce1a2766c9480aa45c67dedd9f", "score": "0.52008617", "text": "public function SendData();", "title": "" }, { "docid": "39cdecce1a2766c9480aa45c67dedd9f", "score": "0.52008617", "text": "public function SendData();", "title": "" }, { "docid": "44cccdbfa175f5772fa325569a199b4d", "score": "0.519657", "text": "private function postData()\n {\n $post = array_filter($this->post);\n\n return http_build_query($post);\n }", "title": "" }, { "docid": "1e49ac47e3a5da981afbee72d7d37c99", "score": "0.5196434", "text": "public function pack(): array;", "title": "" }, { "docid": "7f98f3abe894e03ab0acc8c366aa96dd", "score": "0.519328", "text": "public function getDownloadProgramData()\n {\n $this->params['plan_id'] = $this->planId;\n $this->params['day_id'] = $this->dayId;\n $data = DownloadProgram::getDownloadProgramData($this->params);\n $this->data = json_decode(json_encode($data), true);\n $bodyParts = BodyPart::pluck('name', 'id')->toArray();\n if ($this->data) {\n foreach ($this->data as $key => $row) {\n if(!empty($bodyParts[$row['body_part_1']])) {\n $this->data[$key]['body_parts'] = $bodyParts[$row['body_part_1']];\n if (!empty($bodyParts[$row['body_part_2']]))\n $this->data[$key]['body_parts'] .= ',' . $bodyParts[$row['body_part_2']];\n if (!empty($bodyParts[$row['body_part_3']]))\n $this->data[$key]['body_parts'] .= ',' . $bodyParts[$row['body_part_3']];\n } else {\n $this->data[$key]['body_parts'] = '';\n }\n $this->data[$key]['profile_pic_upload'] = getUserImagePath($row['profile_pic_upload']);\n unset($this->data[$key]['body_part_1'], $this->data[$key]['body_part_2'], $this->data[$key]['body_part_3']);\n }\n }\n }", "title": "" }, { "docid": "579c31f8f57fb0dfd644644d28af2661", "score": "0.5192725", "text": "public function prepareInsertArray ()\n\t{\n\t\t$array[] = $this->email;\t\t//Add the email\n\t\t\n\t\tif (!empty($this->username))\t//If a username was given\n\t\t\t$array[] = $this->username;\n\t\tif (!empty($this->firstName))\t//If a first name was given\n\t\t\t$array[] = $this->firstName;\n\t\tif (!empty($this->lastName))\t//if a last name was given\n\t\t\t$array[] = $this->lastName;\n\t\tif (!empty($this->thumbnail))\t//If a thumbnail was given\n\t\t\t$array[] = $this->thumbnail;\n\t\tif (!empty($this->gender))\t\t//If a gender was given\n\t\t\t$array[] = $this->gender;\n\t\tif (!empty($this->location))\t//If a location was given\n\t\t\t$array[] = $this->location;\n\t\tif (!empty($this->userId))\t\t//If a third party user id was given\n\t\t\t$array[] = $this->userId;\n\t\tif (!empty($this->password))\t//If regitering through datehitter, a password is required\n\t\t\t$array[] = $this->password;\n\t\t\t\n\t\treturn $array;\n\t}", "title": "" }, { "docid": "26d6540af4b23e4b7dcdd10940df4d47", "score": "0.51921463", "text": "public function exchangeArray($data)\r\n {\r\n $this->send_method = (isset($data['send_method'])) ? $data['send_method'] : null;\r\n $this->address = (isset($data['address'])) ? $data['address'] : null;\r\n $this->filter = (isset($data['filter'])) ? $data['filter'] : null;\r\n $this->threshold_value = (isset($data['threshold_value'])) ? $data['threshold_value'] : null;\r\n $this->send_frequency = (isset($data['send_frequency'])) ? $data['send_frequency'] : null;\r\n $this->sensor_id = (isset($data['sensor_id'])) ? $data['sensor_id'] : null;\r\n }", "title": "" }, { "docid": "ff3a7f87cd658cf8cec49475df704327", "score": "0.5188087", "text": "protected static function build()\n {\n $key = self::$data['api'];\n $value = json_encode([\n 'access_time'=>date(\"Y-m-d H:i:s\",self::$data['time']),\n 'client_ip'=>self::$data['ip'],\n 'access_param'=>self::$data['param']\n ]);\n\n // Get the time of day.\n $today = date(\"Ymd\",self::$data['time']);\n\n return [$key,$value,$today];\n }", "title": "" }, { "docid": "95f9de23488f18cd02748d997deaf148", "score": "0.5186928", "text": "public function getUrlencodedData() {\n $tmp = array();\n parse_str($this->rawBody, $tmp);\n return $tmp;\n }", "title": "" }, { "docid": "ba62b95f0c8904dfa149b9cb358ca20e", "score": "0.518671", "text": "public function buildWithUnserializeDataProvider()\n {\n return [\n [\n json_encode(['key' => 'value']),\n ['key' => 'value'],\n ['info_buyRequest' => ['key' => 'value']],\n 1\n ],\n [\n ['key' => 'value'],\n ['key' => 'value'],\n ['info_buyRequest' => ['key' => 'value']],\n 0\n ]\n ];\n }", "title": "" }, { "docid": "eb728b946bb86d708544d50deeedf03f", "score": "0.51865625", "text": "public function get_data() {\n return array_merge( array( 'id' => $this->get_id() ), $this->data);\n }", "title": "" }, { "docid": "5384607bb6c89e0dd01aba7216c6f6c9", "score": "0.518553", "text": "static public function dataArray()\n {\n $rid = 0;\n $site_id = 0;\n $test_name = 'test.feature';\n $results = \"Test results here\";\n $duration = \"\";\n $created = 0;\n $status = 0;\n $user_id = 0;\n $settings = array();\n $browser = 'Chrome';\n $os = \"Linux\";\n $tags = \"@javascript\";\n $data = compact('rid', 'test_name', 'site_id', 'results', 'duration', 'created', 'status', 'user_id', 'settings', 'browser', 'os', 'tags');\n\n return $data;\n }", "title": "" }, { "docid": "961d4c0f1e1e027a2dbe92ee9b08aba1", "score": "0.5185518", "text": "private static function _cookData($data) {\n\t\t$tmp = array();\n if(isset($data['uid'])) $tmp['uid'] = $data['uid'];\n\t\tif(isset($data['account_type'])) $tmp['account_type'] = $data['account_type'];\n if(isset($data['operate_type'])) $tmp['operate_type'] = $data['operate_type'];\n if(isset($data['trade_balance'])) $tmp['trade_balance'] = $data['trade_balance'];\n if(isset($data['description'])) $tmp['description'] = $data['description'];\n if(isset($data['create_time'])) $tmp['create_time'] = $data['create_time'];\n\t\treturn $tmp;\n\t}", "title": "" }, { "docid": "84f2310dbf2331a1a380f5f26f826063", "score": "0.5185305", "text": "public function getData()\n {\n $this->validate('shopId', 'shopKey', 'bill:issuer', 'buyer', 'sum', 'issuer_id', 'valid_days');\n\n return [\n 'bill:issuer' => $this->getShopId(),\n 'buyer' => $this->getEmail(),\n 'currency' => $this->getCurrency(),\n 'sum' => $this->getSum(),\n 'description' => $this->getDescription(),\n 'issuer_id' => $this->getTransactionId(),\n 'valid_days' => $this->getValidDays(),\n 'info' => $this->getInfo(),\n ];\n }", "title": "" }, { "docid": "ddf32de375982804a8bc6356dc5d910e", "score": "0.5183418", "text": "public function encode(): array\n {\n return [\n // Define name field\n 'name' => $this->data['name'],\n\n // Add nulls before symbol\n 'symbol' => MinterConverter::convertCoinName($this->data['symbol']),\n\n // Convert field from BIP to PIP\n 'initialAmount' => MinterConverter::convertValue($this->data['initialAmount'], 'pip'),\n\n // Convert field from BIP to PIP\n 'initialReserve' => MinterConverter::convertValue($this->data['initialReserve'], 'pip'),\n\n // Define crr field\n 'crr' => $this->data['crr'] === 0 ? '' : $this->data['crr']\n ];\n }", "title": "" }, { "docid": "05eea16e745cf832b351c6aff45b0d85", "score": "0.5179606", "text": "protected function createJsonBody(array $data): array\n {\n return json_encode(array_merge($this->getDefaultParameters(), $data));\n }", "title": "" } ]
335fd46064b37c27eb38c833fcdd6e41
Include the styles and scripts for this plugin.
[ { "docid": "029c0df276ae2a05b590846c0ca34e54", "score": "0.0", "text": "function creativa_styles_and_scripts() {\n wp_enqueue_style('creativa', plugins_url( 'assets/css/creativa.css', dirname(__FILE__) ));\n}", "title": "" } ]
[ { "docid": "9e8730e71683a5f66d5a2243e0077712", "score": "0.73843366", "text": "public function add_scripts_and_styles()\n {\n //CODEJAR\n wp_enqueue_script(\"a2020-codejar-js\", $this->pathURL . \"assets/js/codejar/codejar-alt.js\", [\"jquery\"], $this->version);\n wp_enqueue_script(\"a2020-highlight-js\", $this->pathURL . \"assets/js/codejar/highlight.js\", [\"jquery\"], $this->version);\n wp_register_style(\"a2020-codejar-css\", $this->pathURL . \"assets/js/codejar/highlight.css\", [], $this->version);\n wp_enqueue_style(\"a2020-codejar-css\");\n\n ///SETTINGS PAGE\n wp_enqueue_script(\"uip-settings\", $this->pathURL . \"assets/js/uip-settings.min.js\", [\"uip-app\"], $this->version, true);\n }", "title": "" }, { "docid": "a9c5ef4e45f9222ccc1b4a083628c85c", "score": "0.73433846", "text": "public function includeScriptAssets()\n {\n $assetsUrl = $this->modx->getOption('minirte.assets_url', null, $this->modx->getOption('assets_url') . 'components/minirte/');\n\n $this->modx->regClientCSS($assetsUrl . 'css/minirte.min.css');\n $this->modx->regClientStartupScript($assetsUrl . 'js/minirte.min.js');\n }", "title": "" }, { "docid": "5823fb3d438a14491d7cd229cbf1e05c", "score": "0.7333404", "text": "public function scripts() {\n\t\t// Styles.\n\t\t$my_css_ver = gmdate( 'ymd-Gis', filemtime( plugin_dir_path( __FILE__ ) . '/css/additional.min.css' ) );\n\t\twp_enqueue_style(\n\t\t\t'conversions-additional-css',\n\t\t\tplugin_dir_url( __FILE__ ) . 'css/additional.min.css',\n\t\t\tarray(),\n\t\t\t$my_css_ver\n\t\t);\n\t}", "title": "" }, { "docid": "7b576424c9479323e08bd8379d91d13b", "score": "0.73140275", "text": "function pl_include_files()\n{\n wp_register_script( 'pl-script', plugins_url( 'script.js', __FILE__ ) );\n wp_enqueue_script( 'pl-script' );\n\twp_register_style('pl-style', plugins_url('style.css',__FILE__ ));\n\twp_enqueue_style('pl-style');\n}", "title": "" }, { "docid": "55c484f742b8d46a6509611259f241da", "score": "0.73088664", "text": "public function scripts() {\n\n\t\t// Guard administrators\n\t\tif( !$this->is_admin() ) return;\n\n\n\t\t// Include Quill\n\t\twp_enqueue_script('quill','//cdn.quilljs.com/1.3.4/quill.js',null,$this->version, false);\n\n\t\t// Include Quill Bubble Styles\n\t\twp_enqueue_style('bubble', '//cdn.quilljs.com/1.3.4/quill.bubble.css',null,$this->version);\n\n\t\t// Include Quill Snow Styles\n\t\t// wp_enqueue_style('snow', '//cdn.quilljs.com/1.3.4/quill.snow.css',null,$this->version);\n\n\t\t// Add Media Uploader\n\t\twp_enqueue_media();\n\n\t\t// Include Dependencies\n\t\twp_enqueue_style('wp_flexible_layout_editor', $this->dir .'assets/dist/css/site.min.css',null,$this->version);\n\t\twp_enqueue_script('wp_flexible_layout_editor', $this->dir.'assets/dist/js/site.js', null, $this->version,true);\n\n\t}", "title": "" }, { "docid": "9c1af5d38466be6d44b7412ea5fbf523", "score": "0.72789943", "text": "public function addScriptsAndStyles()\n {\n $assets = LolitaFramework::getURLByDirectory(__DIR__) . DS . 'assets' . DS;\n // ==============================================================\n // Scripts\n // ==============================================================\n wp_enqueue_script('jquery');\n wp_enqueue_script(\n 'lolita-css-loader',\n $assets . 'js' . DS . 'lolita_css_loader.js',\n array('jquery'),\n false,\n true\n );\n\n // ==============================================================\n // Styles\n // ==============================================================\n wp_enqueue_style(\n 'lolita-css-loader',\n $assets . 'css' . DS . 'lolita_css_loader.css'\n );\n }", "title": "" }, { "docid": "ee1b74932fa0cbb981f903dd1775d82d", "score": "0.7229059", "text": "public function scripts_and_styles() {\n\n\t\t// Preps the script\n\t\twp_register_script(\n\t\t\t$this->script_name,\n\t\t\t$this->dir_uri . '/assets/dfp-wallpaper.js',\n\t\t\tarray( $this->dfp_ads->script_name, 'jquery' ),\n\t\t\tfalse,\n\t\t\tfalse\n\t\t);\n\t\t// Enqueue\n\t\twp_enqueue_script( $this->script_name );\n\t}", "title": "" }, { "docid": "968f1c472c82c8ceb8a64a3693c08f23", "score": "0.7208441", "text": "public function scripts() {\r\n\r\n\t\twp_enqueue_style( 'suprementor', plugins_url( '/assets/suprementor.css', __FILE__ ), array(), self::VERSION );\r\n\t\twp_enqueue_style( 'suprementor-uikit', plugins_url( '/assets/suprementor-uikit.css', __FILE__ ), array(), self::VERSION );\r\n\t\twp_enqueue_script( 'suprementor-uikit', plugins_url( '/assets/suprementor-uikit.js', __FILE__ ), array(), self::VERSION );\r\n\t\twp_enqueue_script( 'suprementor-uikit-icons', plugins_url( '/assets/suprementor-uikit-icons.js', __FILE__ ), array(), self::VERSION );\r\n\r\n\t}", "title": "" }, { "docid": "9c626cc70701905565a480304c1e65d3", "score": "0.7094628", "text": "function wpshout_plugin_script_and_style_includer( ) {\n wp_enqueue_style(\n \t'our-plugin-example-style',\n \tplugin_dir_url( __FILE__ ) . 'our-plugin-example-style.css' //get's concated and does not need a slash in the beginning \n );\n wp_enqueue_script( \n \t'our-plugin-example-js',\n \t'our-plugin-example-js.js',\n \tarray( 'jquery' )plugin_dir_url( __FILE__ ) . \n );\n \n /* A script in a subdirectory */\n wp_enqueue_script( \n \t'our-plugin-more-js',\n \tplugin_dir_url( __FILE__ ) . 'js/our-plugin-more-js.js',\n \tarray( 'jquery' )\n );\n}", "title": "" }, { "docid": "deafe5184f5d51fda3c8dac07479bd0b", "score": "0.70627695", "text": "function enqueue_styles_and_scripts()\n\t{\n\t\t// ENQUEUE JQUERY\n\t\twp_enqueue_script( 'jquery' );\n\t\t\n\t\twp_enqueue_script( \n\t\t\t$this->plugin_slug, \n\t\t\t$this->plugin_url . '/script.js',\n\t\t\tarray( 'jquery' ),\n\t\t\t$this->plugin_version\n\t\t);\n\t\t\n\t\twp_enqueue_script( 'fancybox-script', $this->plugin_url . '/fancybox/jquery.fancybox.pack.js' );\n\t\twp_enqueue_style( 'fancybox-style', $this->plugin_url . '/fancybox/jquery.fancybox.css' );\n\t\t\n\t\t// PASS PLUGIN SETTINGS TO THE SCRIPT\n\t\t$a_ajax_vars = array(\n\t\t\t'settings' => $this->get_settings_array(),\n\t\t\t'ajax_url' => admin_url( 'admin-ajax.php' )\n\t\t);\t\t\n\t\twp_localize_script(\n\t\t\t$this->plugin_slug, \n\t\t\t$this->plugin_namespace . 'ajax_vars', \n\t\t\t$a_ajax_vars\n\t\t);\n\t}", "title": "" }, { "docid": "2e2f0d64edd02fbeecfeff65574afd19", "score": "0.70547837", "text": "public function addScriptsAndStyles()\n {\n $font_awesome_url = \n LolitaFramework::getURLByDirectory(__DIR__) . DS .\n 'assets' . DS .\n 'font-awesome-4.6.3' . DS .\n 'css' . DS .\n 'font-awesome.min.css';\n \n wp_enqueue_style('font-awesome', $font_awesome_url);\n }", "title": "" }, { "docid": "239ce3b9d39d595688c90edd41527e8e", "score": "0.7030694", "text": "public function enqueue_scripts() {\n\t\t$this->add_styles();\n\t\t$this->add_scripts();\n\t}", "title": "" }, { "docid": "7423c0b1b11bf5cd92f526415d50b40a", "score": "0.6989956", "text": "public function enqueue_scripts()\n {\n wp_enqueue_style($this->plugin_domain . '-style', plugins_url('style.css', __FILE__));\n wp_enqueue_script($this->plugin_domain . '-settings', plugins_url('wowhead-tooltip-settings.js', __FILE__), array(), '1.0.0', false);\n wp_enqueue_script($this->plugin_domain, '//wow.zamimg.com/widgets/power.js', array(), '1.0.0', false);\n }", "title": "" }, { "docid": "4c16cc69747264f08125f52ad4563b7a", "score": "0.69646156", "text": "public function enqueue() {\n\n\t\twp_enqueue_style( 'my_style', OOP_PLUGIN_URL . '/assets/my-style.css', array(), OOP_SCRIPT_STYLE_VERSION, true );\n\t\twp_enqueue_script( 'my_script', OOP_PLUGIN_URL . '/assets/my-script.js', array( 'jquery' ), OOP_SCRIPT_STYLE_VERSION, true );\n\n\t}", "title": "" }, { "docid": "6078e76fefb8e71c6063cb89f6e65799", "score": "0.69234526", "text": "public function assets() {\n\n wp_register_script( 'cssua', plugins_url( 'cssua/cssua.min.js' ), array(), '2.1.31' );\n wp_enqueue_script( 'cssua' );\n\n }", "title": "" }, { "docid": "72f57696e5287a09b7ced172b0276223", "score": "0.6906246", "text": "protected function includes() {\n\n\t\t// Load our dependencies\n\t\trequire_once plugin_dir_path( __FILE__ ) . 'lib/autoload.php';\n\n\t\t// Widgets\n\t\trequire_once plugin_dir_path( __FILE__ ) . 'widgets/class-widget-most-voted.php';\n\t\trequire_once plugin_dir_path( __FILE__ ) . 'widgets/experts/class-widget-experts.php';\n\n\t\t// Visitor\n\t\trequire_once plugin_dir_path( __FILE__ ) . 'class-visitor.php';\n\t}", "title": "" }, { "docid": "cd54026a33b71f00593feb220a88dfda", "score": "0.6904531", "text": "private function register_script_and_style() {\n\n parent::register_script_and_style_base();\n\n wp_register_script( $this->prefix . '-script',\n Menu_Card_Info::$plugin_url . '/assets/js/admin-edit-menu-cards.js',\n array( 'jquery' ),\n Menu_Card_Info::version );\n\n wp_register_style( $this->prefix . '-style',\n Menu_Card_Info::$plugin_url . '/assets/css/admin-edit-menu-cards.css',\n array(),\n Menu_Card_Info::version );\n }", "title": "" }, { "docid": "d8380f8d7c780518d00c0697b82c1f6d", "score": "0.6894955", "text": "public function wp_enqueue_scripts()\n {\n if ($this->get('wp_enqueue_scripts') && $this->isActive()) {\n wp_enqueue_style(\n 'TinyMceExternalPluginsTemplate',\n $this->tinyMce()->getPluginAssetsUrl($this->getName()) . '/css/styles.css',\n [],\n 150317\n );\n }\n }", "title": "" }, { "docid": "c2a2e56e8eb9c54d4eb09e4b5fe653ab", "score": "0.6888645", "text": "public function wp_enqueue_scripts()\n {\n if ($this->get('wp_enqueue_scripts') && $this->isActive()) {\n wp_enqueue_style($this->get('hookname'));\n }\n\n asset()->setInlineCss(\".{$this->name}{font-family:'{$this->get('font-family')}';}\");\n }", "title": "" }, { "docid": "844f37dce51052f4fbbda7669fb16616", "score": "0.6881544", "text": "public function front_enqueue_scripts_styles() {\n\t\t//plugin\n\t\twp_register_script( 'fsn_example', plugin_dir_url( __FILE__ ) . 'includes/js/fusion-extension-example.js', array('jquery','fsn_core'), '1.0.0', true );\n\t\twp_enqueue_style( 'fsn_example', plugin_dir_url( __FILE__ ) . 'includes/css/fusion-extension-example.css', false, '1.0.0' );\n\t}", "title": "" }, { "docid": "16df204d6d3416a211bfa1a45c23259e", "score": "0.687854", "text": "function enqueue_scripts_and_styles() {\n\t\t$show = apply_filters( 'be_flex_slider_show_scripts', true );\n\t\tif ( true === $show ) {\n\t\t\twp_enqueue_style( 'flex-slider', plugins_url( 'flexslider.css', __FILE__ ) );\n\t\t\twp_enqueue_script( 'jquery ');\n\t\t\twp_enqueue_script( 'flex-slider', plugins_url( 'jquery.flexslider-min.js', __FILE__ ), array( 'jquery' ) );\n\t\t\tadd_action( 'wp_head', array( $this, 'flex_slider_settings' ) );\n\t\t}\n\t}", "title": "" }, { "docid": "dadb7071a7a96bc5583d6c5321728e5d", "score": "0.68703276", "text": "public function loadCssAndJs()\n {\n wp_register_style('vc_extend_style', plugins_url('assets/css/vc_extend.css', __FILE__));\n wp_enqueue_style('vc_extend_style');\n \n // If you need any javascript files on front end, here is how you can load them.\n //wp_enqueue_script( 'vc_extend_js', plugins_url('assets/vc_extend.js', __FILE__), array('jquery') );\n }", "title": "" }, { "docid": "9c7467518511fb15494820dfb2020c03", "score": "0.6868051", "text": "public function assets()\n {\n if (file_exists($style = $this->path() . \"/views/{$this->slug}.css\")) {\n wp_enqueue_style($this->prefix . $this->slug, $this->uri($style), false, null);\n }\n\n if (file_exists($script = $this->path() . \"/views/{$this->slug}.js\")) {\n wp_enqueue_script($this->prefix . $this->slug, $this->uri($script), null, null, true);\n }\n }", "title": "" }, { "docid": "f30b79190f23f118a422c42795cc3857", "score": "0.6826445", "text": "function scripts() {\n\n\t\twp_register_style( 'theme_main', get_template_directory_uri() . '/core-shell/core/assets/css/main.css' );\n\n\t\twp_enqueue_style( 'theme_main' );\n\n\t\twp_register_script( 'modernizr-respond', get_template_directory_uri() . '/core-shell/core/assets/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js', false, null, false );\n\t\twp_register_script( 'menu', get_template_directory_uri() . '/core-shell/core/assets/js/vendor/menu.js', false, null, true );\n\n\t\twp_enqueue_script( 'modernizr-respond' );\n\t\twp_enqueue_script( 'menu' );\n\n\t}", "title": "" }, { "docid": "20635a38e0b587dc22b845ee10bd537f", "score": "0.6810827", "text": "public function load_scripts() {\r\n // load js\r\n wp_enqueue_script( 'myhome-importer', plugins_url( '/myhome-importer/assets/js/build.js' ), array(), true, true );\r\n // load styles\r\n wp_enqueue_style( 'myhome-importer', plugins_url( '/myhome-importer/assets/css/style.css' ) );\r\n }", "title": "" }, { "docid": "542927823296ce63fcce5643c576cbb2", "score": "0.68088144", "text": "private function includes()\n {\n // dashboard\n include_once GF_PLUGIN_DIR . 'core/dashboard/class-gf-dashboard.php';\n // Dynamic Widget Areas\n include_once GF_PLUGIN_DIR . 'core/widget-areas/widget-areas.php';\n /**\n * custom post type\n */\n include_once GF_PLUGIN_DIR . 'cpt/cpt.php';\n\n /**\n * Include less library\n */\n include_once GF_PLUGIN_DIR . 'core/less/Less.php';\n\n /**\n * Include less functions\n */\n include_once GF_PLUGIN_DIR . 'inc/less-functions.php';\n\n /**\n * Include functions\n */\n include_once GF_PLUGIN_DIR . 'inc/functions.php';\n /**\n * Custom Widget CSS\n */\n include_once GF_PLUGIN_DIR . 'core/widget-custom-class.php';\n\n /**\n * Include Action\n */\n include_once GF_PLUGIN_DIR . 'inc/action.php';\n\n /**\n * Include Filters\n */\n include_once GF_PLUGIN_DIR . 'inc/filter.php';\n\n /**\n * Include Post Type\n */\n include_once GF_PLUGIN_DIR . 'inc/post-type.php';\n /**\n * Include install demo data\n */\n include_once GF_PLUGIN_DIR . 'core/install-demo/install-demo.php';\n /**\n * Include theme-options\n */\n include_once GF_PLUGIN_DIR . 'inc/options-functions.php';\n include_once GF_PLUGIN_DIR . 'inc/options-config.php';\n\n /**\n * Include MetaBox\n * *******************************************************\n */\n include_once GF_PLUGIN_DIR . 'inc/meta-boxes.php';\n\n\n /**\n * Include XMENU\n */\n include_once GF_PLUGIN_DIR . 'core/xmenu/xmenu.php';\n\n\n\n /**\n * Include widget\n */\n include_once GF_PLUGIN_DIR . 'widgets/widgets.php';\n\n }", "title": "" }, { "docid": "625c110359dd0b6251c577cd8b4c804a", "score": "0.67971253", "text": "static function enqueueScriptsAndStyles() {\n\t\t\twp_enqueue_script('jQuery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js');\n\t\t\twp_enqueue_script('jQueryUI', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js');\n\t\t\twp_enqueue_script('SliderJS', plugins_url('js/SliderJS.js', __FILE__));\n\t\t\twp_enqueue_style('SliderJS', plugins_url('css/SliderJS.css', __FILE__));\n\t\t}", "title": "" }, { "docid": "b4b1379b5334ece00b723bc2595e6d3e", "score": "0.679606", "text": "public function load_wp_scripts_and_styles() {\n get_template_part('inc/classes/frontend/partials/action_wp_enqueue_scripts');\n }", "title": "" }, { "docid": "e09c049b218449dd89c70f849ad83eab", "score": "0.6764341", "text": "protected function _includeJQueryUI() {\n $this->scripts[] = $this->adminThemeLoc.'/assets/jquery-ui/jquery-ui-1.10.1.custom.min.js';\n $this->stylesheets[] = '//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css';\n }", "title": "" }, { "docid": "619c4e477d741dacdaed0bc29668520c", "score": "0.6759757", "text": "public function assets() {\n\t\t\twp_enqueue_script( 'jquery-form' );\n\n\t\t\twp_localize_script( 'cherry-settings-page', 'TMRealEstateMessage', array(\n\t\t\t\t'success' => 'Successfully',\n\t\t\t\t'failed' => 'Failed',\n\t\t\t) );\n\n\t\t\twp_enqueue_script(\n\t\t\t\t'cherry-settings-page',\n\t\t\t\t$this->core->get_core_url() . 'modules/' . $this->module_slug . '/assets/js/min/page-settings.min.js',\n\t\t\t\tarray( 'jquery' ),\n\t\t\t\t'0.2.0',\n\t\t\t\ttrue\n\t\t\t);\n\n\t\t\twp_enqueue_style(\n\t\t\t\t'cherry-settings-page',\n\t\t\t\t$this->core->get_core_url() . 'modules/' . $this->module_slug . '/assets/css/min/page-settings.min.css',\n\t\t\t\tarray(),\n\t\t\t\t'0.1.0',\n\t\t\t\t'all'\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "1aef63e59abe5fec69d715d9bb178eac", "score": "0.6757487", "text": "function add_scripts() {\n\t\t//wp_enqueue_script('roundabout_js');\n\t\t\n\t\twp_register_script('carousel_js', plugin_dir_url( __FILE__ ).'include/js/script.js', array('jquery'));\n\t\twp_enqueue_script('carousel_js');\n\t\t\n\t\twp_register_script('roundabout_shapes_js', plugin_dir_url( __FILE__ ).'include/js/jquery.roundabout-shapes.min.js', array('jquery'));\n\t\twp_enqueue_script('roundabout_shapes_js');\n\t\t\n\t\twp_register_script('roundabout_drag_js', plugin_dir_url( __FILE__ ).'include/js/jquery.event.drag.js', array('jquery'));\n\t\twp_enqueue_script('roundabout_drag_js');\n\t\t\n\t\twp_register_script('roundabout_drop_js', plugin_dir_url( __FILE__ ).'include/js/jquery.event.drop.js', array('jquery'));\n\t\twp_enqueue_script('roundabout_drop_js');\n\t\t\n\t\twp_enqueue_style( 'roundabout_css', plugin_dir_url( __FILE__ ).'include/css/style.css');\n\t}", "title": "" }, { "docid": "541c9f8ab0511b653d875e892dd10eab", "score": "0.6756593", "text": "public function load_scripts()\n {\n // load js\n wp_enqueue_script('myhome-importer', plugins_url('/myhome-importer/assets/js/build.js'), array(), true, true);\n // load styles\n wp_enqueue_style('myhome-importer', plugins_url('/myhome-importer/assets/css/style.css'));\n }", "title": "" }, { "docid": "ca2ff80b1e2c99b29c533419b9d5b9c5", "score": "0.67453414", "text": "public function loadAssets()\n {\n wp_enqueue_style('laterpay-admin');\n }", "title": "" }, { "docid": "5b88bb79926a994f4320fe897d4556ab", "score": "0.6745106", "text": "public function fitScript()\n {\n $relVendorPath = trim(str_replace(get_stylesheet_directory(), '', __DIR__), '/');\n $jsPath = implode('/', [get_stylesheet_directory_uri(), $relVendorPath, 'js/init.js']);\n\n wp_enqueue_script(__CLASS__, $jsPath, ['jquery'], $this->version, true);\n // wp_enqueue_style('ekko-lightbox-styles', 'https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.1.1/ekko-lightbox.min.css', [], null);\n }", "title": "" }, { "docid": "bf546b74ecdc084ed8e252ab2013f9c7", "score": "0.6741048", "text": "function industry_toolkit_include_files() {\n wp_enqueue_style('owl-carousel', plugins_url( '/assets/css/owl.carousel.min.css', __FILE__ ) ); \n wp_enqueue_style('industry_toolkit', plugins_url( '/assets/css/industry-toolkit.css', __FILE__ ) );\n\n wp_enqueue_script('owl-carousel', plugins_url( '/assets/js/owl.carousel.min.js', __FILE__ ), array('jquery'), '2.2.1', 'true' );\n}", "title": "" }, { "docid": "f6262220e6bf58ad822b2de276469848", "score": "0.6725732", "text": "public function enqueue_scripts() {\n\n /**\n * This function is provided for demonstration purposes only.\n *\n * An instance of this class should be passed to the run() function\n * defined in Devitmeta_Loader as all of the hooks are defined\n * in that particular class.\n *\n * The Devitmeta_Loader will then create the relationship\n * between the defined hooks and the functions defined in this\n * class.\n */\n\n wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/devitmeta-public.js', array( 'jquery' ), $this->version, false );\n\n }", "title": "" }, { "docid": "64dacadf9d5b5e1da10fa83f689531c2", "score": "0.672113", "text": "private function _include_resources()\n { if (!self::$_included_resources)\n {\n // Tell CKEditor where to find our plugin\n $plugin_url = URL_THIRD_THEMES.'wygwam_autosave/autosave/';\n ee()->cp->add_to_foot('<script type=\"text/javascript\">CKEDITOR.plugins.addExternal(\"autosave\", \"'.$plugin_url.'\");</script>');\n\n // Don't do that again\n self::$_included_resources = TRUE;\n }\n }", "title": "" }, { "docid": "5bb1127ab034eda6422fc645f45e6314", "score": "0.67200977", "text": "public function include_scripts(){\n /* wp_enqueue_script('jquery'); */\n /* wp_enqueue_script('wpdevart_vertical_menu_js',wpda_vertical_menu_plugin_url.'includes/frontend/js/front_end.js'); */\n /* wp_enqueue_style('FontAwesome_5'); */\t\t\n wp_enqueue_style('frontend_menu_lateral',menu_lateral_plugin_url.'public/css/frontend.css');\n wp_enqueue_script('forntend_menu_lateral_js',menu_lateral_plugin_url.'public/js/frontend.js');\n }", "title": "" }, { "docid": "6ee72c9224ce4cd81e492f551b02b6fe", "score": "0.6714836", "text": "function my_plugin_assets() {\n\n wp_register_style( 'styleCss', plugins_url( '/css/style.css' , __FILE__ ), array(), '1.0', 'all' );\n wp_enqueue_style( 'styleCss' );\n \n\n wp_register_script( 'script', plugins_url( '/js/script.js' , __FILE__ ), array(), '1.0', false );\n wp_enqueue_script( 'script' );\n}", "title": "" }, { "docid": "3a3f95a696f6f723f830693fb86637d3", "score": "0.6709863", "text": "public function enqueue_styles_and_scripts(){\n\n add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_styles' ) );\n add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );\n add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue' ) );\n\n }", "title": "" }, { "docid": "aba10d3ff62b951325ccceca9ba0c5cc", "score": "0.6703732", "text": "function assets() {\n\t// new css\n\twp_enqueue_style( 'base/css', get_template_directory_uri() . '/dist/css/index.css', false, null) ;\n\n\t// conditionally load as needed for comments\n\tif (is_single() && comments_open() && get_option('thread_comments')) {\n\t\twp_enqueue_script( 'comment-reply' );\n\t}\n\n\t// new js\n\twp_enqueue_script( 'base/js', get_template_directory_uri() . '/dist/js/index.js', ['jquery'], null, true );\n\t// put new js file here...\n}", "title": "" }, { "docid": "2e10fa5046f55d9970797966170233f8", "score": "0.6701985", "text": "public function scripts() {\n\t\t\twp_enqueue_script( 'login-designer-intro', LOGIN_DESIGNER_PLUGIN_URL . 'assets/js/intro.min.js', array( 'customize-preview' ), LOGIN_DESIGNER_VERSION, true );\n\t\t\twp_add_inline_script( 'login-designer-intro', 'introJs().addHints();' );\n\t\t}", "title": "" }, { "docid": "4ec60b10f040fc05092f026dd6acf79d", "score": "0.6698506", "text": "public function register_scripts() {\n\t\twp_register_style( 'wampum-protected-media', WAMPUM_PROTECTED_MEDIA_PLUGIN_URL . 'assets/css/wampum-protected-media.css', array(), WAMPUM_PROTECTED_MEDIA_VERSION );\n\t}", "title": "" }, { "docid": "1187bf19124706d3aa22a1c4dff5c927", "score": "0.6698146", "text": "protected function addHeadIncludes() {\r\n\r\n $this->_renderSlider();\r\n\r\n ob_start();\r\n Mage::helper('nwdrevslider/framework')->do_action('wp_footer');\r\n $content = ob_get_contents();\r\n ob_clean();\r\n ob_end_clean();\r\n\r\n $content .= Mage::helper('nwdrevslider')->includeEnqueuedAssets();\r\n\r\n $localizeScripts = Mage::helper('nwdrevslider/framework')->getFromRegister('localize_scripts');\r\n if ($localizeScripts) {\r\n $content .= '<script type=\"text/javascript\">' . \"\\n\";\r\n foreach ($localizeScripts as $localizeScript) {\r\n $content .= 'var ' . $localizeScript['var'] . ' = ' . json_encode($localizeScript['lang']) . \"\\n\";;\r\n }\r\n $content .= '</script>' . \"\\n\";\r\n }\r\n\r\n return $content;\r\n }", "title": "" }, { "docid": "d37ae88e542223c882d10c55b9596ddd", "score": "0.66979945", "text": "public function load_assets() {\n\t\tRoll_assets_admin::setShowOn( [ $this->screen ] );\n\t\tRoll_assets_admin::add_style( 'fontawesome', 'font-awesome.min.css' );\n\t\tRoll_assets_admin::add_style( 'rcswitcher-style', 'rcswitcher.min.css' );\n\t\tRoll_assets_admin::add_style( 'colorpicker-style', 'colorpicker.css' );\n\t\tRoll_assets_admin::add_style( 'roll-theme-options-style', 'theme-options.css' );\n\n\t\tRoll_assets_admin::add_script( 'rcswitcher-script', 'rcswitcher-4.0.min.js', true );\n\t\tRoll_assets_admin::add_script( 'colorpicker-script', 'colorpicker.js', true );\n\t\tRoll_assets_admin::add_script( 'roll-theme-options-script', 'theme-options.js', true );\n\t\tRoll_assets_admin::add_script( 'roll-theme-options-ajax', 'ajax.js', true );\n\t}", "title": "" }, { "docid": "fab6cb65124cd36054a68cae70d53825", "score": "0.66956216", "text": "function scriptsAndStyles() {\n if (!is_admin()) {\n\t // Set the path to where scripts and styles dirs are, if you must.\n\t $scriptsDir = get_bloginfo('template_url') . \"/js/main\";\n\n\t // Register the javascript files\n\t\t\t\t\t\t\t\t\t\t\t\t//Handle SOURCE DEP VER FOOTER?\n\t\twp_register_script( 'Scripts', $scriptsDir. '/scripts.js', null, 1, true);\n\t\twp_register_script( 'Functions', $scriptsDir. '/functions.js', null, 1, true);\n\t\twp_register_script( 'Main', $scriptsDir. '/main.js', null, 1, true);\n\n\n\t //load the scripts\n\t wp_enqueue_script('Scripts');\n\t wp_enqueue_script('Functions');\n\t wp_enqueue_script('Main');\n }\n}", "title": "" }, { "docid": "d11b2f1e659af41aa37d6157ffe1eae8", "score": "0.6694572", "text": "public function enqueue_scrips() {\n\t\twp_enqueue_style( 'kirki-custom-sections', trailingslashit( Kirki::$url ) . 'modules/custom-sections/sections.css', array(), KIRKI_VERSION );\n\t\twp_enqueue_script( 'kirki-custom-sections', trailingslashit( Kirki::$url ) . 'modules/custom-sections/sections.js', array( 'jquery', 'customize-base', 'customize-controls' ), KIRKI_VERSION, false );\n\t}", "title": "" }, { "docid": "4169f12a72cd51bc04091f8353fe8d2a", "score": "0.6690035", "text": "public static function load_resources() {\n\t\t\twp_register_script(\n\t\t\t\tself::PREFIX . 'wordpress-plugin-skeleton',\n\t\t\t\tplugins_url( 'javascript/wordpress-plugin-skeleton.js', dirname( __FILE__ ) ),\n\t\t\t\tarray( 'jquery' ),\n\t\t\t\tself::VERSION,\n\t\t\t\ttrue\n\t\t\t);\n\n\t\t\twp_register_style(\n\t\t\t\tself::PREFIX . 'admin',\n\t\t\t\tplugins_url( 'css/admin.css', dirname( __FILE__ ) ),\n\t\t\t\tarray(),\n\t\t\t\tself::VERSION,\n\t\t\t\t'all'\n\t\t\t);\n\n\t\t\tif ( is_admin() ) {\n\t\t\t\twp_enqueue_style( self::PREFIX . 'admin' );\n\t\t\t} else {\n\t\t\t\twp_enqueue_script( self::PREFIX . 'wordpress-plugin-skeleton' );\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "03cfaea9a9b830b3bc296a19b7c7483f", "score": "0.6689227", "text": "public function plugin_enqueue()\n {\n \n wp_enqueue_style(\n 'DASH_SOCIAL_SHARE', \n plugins_url('/css/dash-share.min.css', dirname(__FILE__)),\n false,\n 'all' \n );\n\n wp_enqueue_script(\n 'DASH_SOCIAL_SHARE', \n plugins_url('/js/dash-share.js', dirname(__FILE__)),\n array('jquery'), \n '1.0.0', \n true\n );\n\n }", "title": "" }, { "docid": "ecd18452291362dfb1000dcfceb323ca", "score": "0.6678198", "text": "public function load_assets() {\n\n // Enqueue Admin Scripts and Styles\n Plethora_CMS::add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue' ));\n\n\n }", "title": "" }, { "docid": "e3806e2193bf536cfdf2af85ad6d0cb0", "score": "0.66766685", "text": "function wpdocs_scripts_method() {\n wp_enqueue_script('appjs', get_template_directory_uri() . '/js/app.js', array('jquery'));\n\n wp_register_style( 'screen', get_stylesheet_directory_uri().'/styles/stylesheets/screen.css', '', '', 'screen' );\n wp_enqueue_style( 'screen' );\n }", "title": "" }, { "docid": "f369366b68be80d792e60ca3ada3587b", "score": "0.66761565", "text": "function scratch_script_enqueue() {\n //Se ponen en cola los estilos\n wp_enqueue_style('customstyle', get_template_directory_uri().'/library/css/style.css', array(), '1.0.0', 'all');\n //Se ponen en cola los scripts\n wp_enqueue_script('customscript', get_template_directory_uri().'/library/js/app.js', array(), '1.0.0', true);\n\n}", "title": "" }, { "docid": "c3fa67106ac18c7499a41cdc925d8a78", "score": "0.6665318", "text": "static function html()\n {\n // wp_enqueue_style('iicca_cabecera_galeria_style');\n \n require_once plugin_dir_path( __FILE__ ) . 'templates/galeria.php';\n wp_enqueue_style('iicca_galeria_style');\n\n wp_enqueue_style('modal_style');\n }", "title": "" }, { "docid": "1b3118d03a7251ac995914fd4a728a0c", "score": "0.666427", "text": "public function enqueue_scripts() {\n\n\t\t/**\n\t\t * CSS\n\t\t */\n\t\t$src = trailingslashit( JP_RAND_AFF_URL ) . 'css/front-end.css';\n\n\t\t/**\n\t\t * Override the location for this plugin to load CSS from\n\t\t *\n\t\t * Set to null to prevent it from being loaded at all.\n\t\t *\n\t\t * @since 0.0.1\n\t\t *\n\t\t * @param string|null $src Path to CSS or null.\n\t\t *\n\t\t * @return $string Path to CSS\n\t\t */\n\t\t$src = apply_filters( 'jp_rand_aff_css_source', $src );\n\n\t\twp_enqueue_style( 'jp-rand-aff-styles', $src );\n\n\t\tif ( false !== ( $inline_css = $this->inline_css() ) ) {\n\t\t\twp_add_inline_style( 'jp-rand-aff-styles', $inline_css );\n\t\t}\n\n\t\t/**\n\t\t * JS\n\t\t */\n\t\twp_enqueue_script( 'jp-rand-aff-scripts', trailingslashit( JP_RAND_AFF_URL ) . 'js/front-end.js', array( 'jquery' ), false, true );\n\n\n\t}", "title": "" }, { "docid": "032b5535ba48a89ede6c9b5dc64c750b", "score": "0.66595966", "text": "public function enqueue_scripts() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Simple_Plugin_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Simple_Plugin_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/simple-plugin-public.js', array( 'jquery' ), $this->version, false );\n\n\t}", "title": "" }, { "docid": "7d3b7cbe46298574af696977629905c2", "score": "0.66451275", "text": "public function registerScripts()\n {\n if (!wp_script_is('rd-oauth-font-awesome4', 'registered')) {\n $StylesAndScripts = new \\RundizOauth\\App\\Libraries\\StylesAndScripts();\n $StylesAndScripts->registerStylesAndScripts();\n unset($StylesAndScripts);\n }\n\n // to name font awesome handle as `plugin-name-prefix-font-awesome4` is to prevent conflict with other plugins that maybe use older version but same handle that cause some newer icons in this plugin disappears.\n wp_enqueue_style('rd-oauth-font-awesome4');\n wp_enqueue_style('rd-oauth-rd-settings-tabs-css', plugin_dir_url(RUNDIZOAUTH_FILE).'assets/css/rd-settings-tabs.css');\n wp_enqueue_script('rd-oauth-rd-settings-tabs-js', plugin_dir_url(RUNDIZOAUTH_FILE).'assets/js/rd-settings-tabs.js', ['jquery'], false, true);\n\n wp_enqueue_style('rd-oauth-rd-settings-customstyle-css', plugin_dir_url(RUNDIZOAUTH_FILE) . 'assets/css/rd-settings-customstyle.css');\n }", "title": "" }, { "docid": "b46fc19ea2ba8d66e461fb3414053bff", "score": "0.6637314", "text": "function gl_add_scripts(){\r\n\t\t//wp_enqueue_style('styles', plugins_url('/css/styles.css', __FILE__), array());\r\n\t}", "title": "" }, { "docid": "725d6a501e800599a692fde3ec9c5d59", "score": "0.6636554", "text": "public function public_assets() {\r\n\r\n\t\t// Add styles\r\n wp_enqueue_style( 'font-awesome', plugin_dir_url( __FILE__ ) . 'includes/font-awesome/css/font-awesome.min.css', [], '4.4.0' );\r\n wp_enqueue_style( 'magnific-popup-css', plugin_dir_url( __FILE__ ) . 'includes/magnific-popup/css/magnific-popup.min.css', [], '1.0.0' );\r\n wp_enqueue_style( 'shorts-public-styles', plugin_dir_url( __FILE__ ) . 'public/assets/styles/public.css', [], '0.2.2' );\r\n\t\t// Add scripts\r\n wp_enqueue_script( 'magnific-popup-js', plugin_dir_url( __FILE__ ) . 'includes/magnific-popup/js/jquery.magnific-popup.min.js', ['jquery'], '1.0.0', true );\r\n wp_enqueue_script( 'shorts-public-scripts', plugin_dir_url( __FILE__ ) . 'public/assets/scripts/public.min.js', ['jquery'], '0.2.2', true );\r\n\r\n\t}", "title": "" }, { "docid": "d9c11388e3dd7d2d5c19e1fa934f0d93", "score": "0.6636152", "text": "public function admin_scripts() {\n\t\twp_enqueue_media();\n\t\twp_register_script( 'bb-file', $this->js_uri . 'butterbean-media-file.js', array( 'backbone', 'wp-util', 'butterbean' ), '', true );\n\t\twp_register_style( 'flatpickr', $this->css_uri . 'flatpickr.dark.min.css', false, false );\n\t\twp_register_script( 'flatpickr', $this->js_uri . 'flatpickr.js', false, false, true );\n\n\t\twp_enqueue_style( 'stmark-admin-styles', $this->css_uri . 'stmark.css' );\n\n\t\twp_add_inline_script ( 'flatpickr', $this->bbs_get_flatpickr_script() );\n\t}", "title": "" }, { "docid": "7ec34a288b2e58247bd1c027f9cfb792", "score": "0.66354346", "text": "public function add_scripts()\n\t\t{\n\t\t\t// wp_enqueue_script( $this->the_theme->alias . '-jquery', '//code.jquery.com/jquery-1.10.1.min.js', array(), '1.10.1', true);\n\t\t\twp_enqueue_script( $this->the_theme->alias . '-jquery-ui', '//code.jquery.com/ui/1.10.4/jquery-ui.js', array(), '1.10.4', true);\n\t\t\twp_enqueue_script( $this->the_theme->alias . '-google-maps', '//maps.google.com/maps/api/js?sensor=false', array('jquery'), '2.0', true);\n\t\t\twp_enqueue_script( $this->the_theme->alias . '-bootstrapjs', $this->template_directory . 'js/bootstrap.js', array('jquery'), '3.0.0', true);\n\t\t\twp_enqueue_script( $this->the_theme->alias . '-owl-carousel', $this->template_directory . 'owl-carousel/owl.carousel.js', array('jquery'), '1.2', true);\n\t\t\twp_enqueue_script( $this->the_theme->alias . '-bootstrap-rating', $this->template_directory . 'js/bootstrap-rating-input.min.js', array('jquery'), '1.0', true);\n\t\t\twp_enqueue_script( $this->the_theme->alias . '-pretty-photo', $this->template_directory . 'js/jquery.prettyPhoto.min.js', array('jquery'), '1.0', true);\n\t\t\twp_enqueue_script( $this->the_theme->alias . '-ddaccordion', $this->template_directory . 'js/ddaccordion.js', array('jquery'), '1.0', true);\n\t\t\twp_enqueue_script( $this->the_theme->alias . '-responsive-nav', $this->template_directory . 'js/responsive-nav.js', array('jquery'), '1.0', true);\n\t\t\t// wp_enqueue_script( $this->the_theme->alias . '-responsive-nav', $this->template_directory . 'js/responsive-nav.min.js', array('jquery'), '1.0', true);\n\t\t\twp_enqueue_script( $this->the_theme->alias . '-prettyphoto', $this->template_directory . 'addons/prettyphoto/jquery.prettyPhoto.js', array('jquery'), '1.0', true);\n\t\t\twp_enqueue_script( $this->the_theme->alias . '-jquery-gmap', $this->template_directory . 'js/jquery.gmap.min.js', array('jquery', $this->the_theme->alias . '-google-maps'), '1.0', true);\n\t\t\twp_enqueue_script( $this->the_theme->alias . '-main', $this->template_directory . 'js/main.js', array('jquery'), '1.0', true);\n\t\t\twp_enqueue_script( $this->the_theme->alias . '-mobile-detect', $this->template_directory . 'js/mobile.detect.js', array('jquery', $this->the_theme->alias . '-main'), '0.3.8', true);\n\t\t\t\n\t\t\t// DISABLE WOOCOMMERCE PRETTY PHOTO SCRIPTS\n\t\t\twp_deregister_script( 'prettyPhoto' );\n\t\t\twp_deregister_script( 'prettyPhoto-init' );\n\t\t}", "title": "" }, { "docid": "1b6bd1ad85f1003b132c6e3178df60c9", "score": "0.6634764", "text": "function hm_scripts() {\n\twp_enqueue_style('font-awesome', 'http://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css');\n\twp_enqueue_style('style', get_template_directory_uri() . '/build/css/main.css');\n\n\twp_enqueue_script('modernizr', get_template_directory_uri() . '/build/js/vendor/modernizr-2.8.3.min.js', array(), '', false);\n\twp_enqueue_script('jquery', '//code.jquery.com/jquery-1.11.2.min.js', array(), '', true);\n\twp_enqueue_script('qrcode', get_template_directory_uri() . '/build/js/vendor/jquery.qrcode-0.12.0.min.js', array(), '', true);\n\twp_enqueue_script('script', get_template_directory_uri() . '/build/js/main.min.js', array(), '', true);\n}", "title": "" }, { "docid": "a9495d1b1ede69a17644f3925e0aef0e", "score": "0.6609185", "text": "public function enqueue_scripts() {\n\n /**\n * All styles goes here\n */\n wp_enqueue_style( 'wpuf-mc-styles', plugins_url( 'css/style.css', __FILE__ ), false, date( 'Ymd' ) );\n\n /**\n * All scripts goes here\n */\n wp_enqueue_script( 'wpuf-mc-scripts', plugins_url( 'js/script.js', __FILE__ ), array( 'jquery' ), false, true );\n }", "title": "" }, { "docid": "9c3dc503b8df5ccf59f3449c0b996ba4", "score": "0.66068184", "text": "function EnqueueStyles() {\n\n wp_enqueue_style(\n 'newsmlg2-plugin',\n getPathToPluginDir() .'theme.css' ,\n null,\n null\n );\n }", "title": "" }, { "docid": "89f78b9de0d3999abd0f540d29be5a2c", "score": "0.6605756", "text": "public function load_scripts() {\n\t\tif ( $this->is_in_page() ) {\n\t\t\tWDEV_Plugin_Ui::load( wp_defender()->get_plugin_url() . 'shared-ui/', false );\n\t\t\twp_enqueue_style( 'wp-defender' );\n\t\t\twp_enqueue_script( 'wp-defender' );\n\t\t\twp_enqueue_script( 'wd-highlight' );\n\t\t\twp_enqueue_script( 'wd-confirm' );\n\t\t}\n\t}", "title": "" }, { "docid": "228f5198c9d88df2bb0e33522215f042", "score": "0.6605015", "text": "public function enqueue_assets() {\n\n\t\t\twp_enqueue_style(\n\t\t\t\t'jet-engine-admin-pages',\n\t\t\t\tjet_engine()->plugin_url( 'assets/css/admin/pages.css' ),\n\t\t\t\tarray(),\n\t\t\t\tjet_engine()->get_version()\n\t\t\t);\n\n\t\t\tjet_engine()->accessibility->contrast_ui( 'jet-engine-admin-pages' );\n\n\t\t}", "title": "" }, { "docid": "b0da5e257e06c748343a687a85e54bd6", "score": "0.65962833", "text": "public function enqueue_styles() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Simple_Plugin_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Simple_Plugin_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/simple-plugin-public.css', array(), $this->version, 'all' );\n\n\t}", "title": "" }, { "docid": "096a18b730ee03210491ec993bc62ec2", "score": "0.659397", "text": "public function loadStylesScripts() {\r\n\r\n wp_register_style( 'ce-font-awesome', CE_URL . 'public/vendor/font-awesome/css/font-awesome.min.css' );\r\n wp_register_style( 'ce-select2', CE_URL . 'public/vendor/select2/css/select2.min.css' );\r\n wp_register_style( 'ce-dataTables', CE_URL . 'public/vendor/datatables/css/jquery.dataTables.css' );\r\n wp_register_style( 'ce-dataTables-responsive', CE_URL . 'public/vendor/datatables/css/responsive.dataTables.min.css' );\r\n wp_register_style( 'ce-popup', CE_URL . 'public/vendor/magnific-popup/magnific-popup.css' );\r\n wp_register_style( 'ce-prism', CE_URL . 'public/vendor/prism/prism.css' );\r\n wp_register_style( 'ce-style', CE_URL . 'public/css/admin.min.css' );\r\n\r\n $ce_option = get_option( 'ce_option' );\r\n $scripts_placing = $ce_option['scripts_placing'];\r\n $in_footer = 'footer' == $scripts_placing ? true : false;\r\n\r\n wp_register_script( 'ce-select2', CE_URL . 'public/vendor/select2/js/select2.min.js', ['jquery'], $this->version, $in_footer );\r\n wp_register_script( 'ce-dataTables', CE_URL . 'public/vendor/datatables/js/jquery.dataTables.min.js', ['jquery'], $this->version, $in_footer );\r\n wp_register_script( 'ce-dataTables-responsive', CE_URL . 'public/vendor/datatables/js/dataTables.responsive.min.js', ['jquery'], $this->version, $in_footer );\r\n wp_register_script( 'ce-popup', CE_URL . 'public/vendor/magnific-popup/jquery.magnific-popup.min.js', ['jquery'], $this->version, $in_footer );\r\n wp_register_script( 'ce-prism', CE_URL . 'public/vendor/prism/prism.js', [], $this->version, $in_footer );\r\n wp_register_script( 'ce-admin', CE_URL . 'public/js/admin'.(file_exists(CE_PATH . 'public/js/admin.min.js') ? '.min' : '').'.js', ['jquery'], $this->version, $in_footer );\r\n\r\n wp_enqueue_style( 'ce-font-awesome' );\r\n wp_enqueue_style( 'ce-select2' );\r\n wp_enqueue_style( 'ce-dataTables' );\r\n wp_enqueue_style( 'ce-dataTables-responsive' );\r\n wp_enqueue_style( 'ce-popup' );\r\n wp_enqueue_style( 'ce-prism' );\r\n wp_enqueue_style( 'ce-style' );\r\n\r\n wp_enqueue_script( 'ce-select2' );\r\n wp_enqueue_script( 'ce-dataTables' );\r\n wp_enqueue_script( 'ce-dataTables-responsive' );\r\n wp_enqueue_script( 'ce-popup' );\r\n wp_enqueue_script( 'ce-prism' );\r\n wp_enqueue_script( 'ce-admin' );\r\n\r\n }", "title": "" }, { "docid": "5f3f22207315e1bb9569fa27eca16e9e", "score": "0.6593407", "text": "function register_styles_and_scripts_for_plugin() \n {\n \n \n \n wp_enqueue_style('CustomStylesheet', plugins_url('scrollplugin/css/scrollplug.css'));\n \n wp_enqueue_script('CustomScript', plugins_url('scrollplugin/js/scrollscript.js'), array('jquery'), null, true);\n \n }", "title": "" }, { "docid": "2e5dc4b998cabe95692b85b1eb3da995", "score": "0.65903264", "text": "public function setJavascriptToInclude()\n {\n //$jsFolder = api_get_path(WEB_LIBRARY_JS_PATH);\n //$this->template->addResource($jsFolder.'ckeditor/ckeditor.js', 'js');\n }", "title": "" }, { "docid": "a670bfa3c01f792a0fe05ff51a06ec3b", "score": "0.65829766", "text": "function kmimos_include_admin_scripts(){\n wp_enqueue_style( 'kmimos_style', plugins_url('css/kmimos-admin.css', __FILE__) );\n }", "title": "" }, { "docid": "6345099a50215f4f159697b4af8387e0", "score": "0.65767896", "text": "public function front_enqueue_scripts_styles() {\n\t\t//plugin\n\t\twp_enqueue_style( 'fsn_image', plugin_dir_url( __FILE__ ) . 'includes/css/fusion-extension-image.css', false, '1.0.0' );\n\t}", "title": "" }, { "docid": "a06d44ebae238e5d90d36195cfbfe637", "score": "0.65763545", "text": "function foodie_pro_includes() {\n\t$includes_dir = trailingslashit( get_stylesheet_directory() ) . 'includes/';\n\n\t// Load the customizer library.\n\trequire_once $includes_dir . 'vendor/customizer-library/customizer-library.php';\n\n\t// Load all customizer files.\n\trequire_once $includes_dir . 'customizer/customizer-display.php';\n\trequire_once $includes_dir . 'customizer/customizer-settings.php';\n\n\t// Load everything in the includes root directory.\n\trequire_once $includes_dir . 'helper-functions.php';\n\trequire_once $includes_dir . 'compatability.php';\n\trequire_once $includes_dir . 'simple-grid.php';\n\trequire_once $includes_dir . 'widgeted-areas.php';\n\trequire_once $includes_dir . 'widgets.php';\n\n\t// End here if we're not in the admin panel.\n\tif ( ! is_admin() ) {\n\t\treturn;\n\t}\n\n\t// Load the TGM Plugin Activation class.\n\trequire_once $includes_dir . 'vendor/class-tgm-plugin-activation.php';\n\n\t// Load everything in the admin root directory.\n\trequire_once $includes_dir . 'admin/functions.php';\n}", "title": "" }, { "docid": "178a14b837c8542287dcf8b0f7a840cb", "score": "0.6571581", "text": "public function enqueue_scripts() {\n\n /**\n * All styles goes here\n */\n wp_enqueue_style( 'bediq-styles', plugins_url( 'assets/css/style.css', __FILE__ ), false, date( 'Ymd' ) );\n wp_enqueue_style( 'ui-styles', plugins_url( 'assets/css/ui.css', __FILE__ ), false, date( 'Ymd' ) );\n wp_enqueue_style( 'flexslider', plugins_url( 'assets/css/flexslider.css', __FILE__ ), false, date( 'Ymd' ) );\n\n /**\n * All scripts goes here\n */\n wp_enqueue_script( 'jquery' );\n wp_enqueue_script( 'jquery-ui-core' );\n wp_enqueue_script( 'jquery-ui-accordion' );\n wp_enqueue_script( 'jquery-ui-tabs' );\n wp_enqueue_script( 'flexslider', plugins_url( 'assets/js/jquery.flexslider.js', __FILE__ ), array( 'jquery' ), false, true );\n wp_enqueue_script( 'bediq-scripts', plugins_url( 'assets/js/script.js', __FILE__ ), array( 'jquery' ), false, true );\n\n\n /**\n * Example for setting up text strings from Javascript files for localization\n *\n * Uncomment line below and replace with proper localization variables.\n */\n // $translation_array = array( 'some_string' => __( 'Some string to translate', 'bediq' ), 'a_value' => '10' );\n // wp_localize_script( 'base-plugin-scripts', 'bediq', $translation_array ) );\n\n }", "title": "" }, { "docid": "791ad58061f379095fa7ea87436970cb", "score": "0.6565736", "text": "public function enqueue_scripts() : void {\n\n \\wp_enqueue_script(\n $this->theme->textdomain . '-app',\n $this->theme->path . '/style.css',\n array() , $this->theme->version,\n 'all'\n );\n\n }", "title": "" }, { "docid": "daa556b039c19c6011f2a6bcf067abcb", "score": "0.65649015", "text": "function tutka_scripts_styles() {\n\t\n\t\t/* Load main stylesheet\n\t\t * \n\t\t */\t\n\t\t\n\t\twp_enqueue_style( 'tutka-style', get_stylesheet_uri() );\n\t\t\n\t\t// load smoothness css libary from jquery ui\n\t\twp_enqueue_style( 'tutka-smoothness', get_template_directory_uri() . '/css/jquery-ui.css');\n\t\t\n\t\t\n\t\t/* Load jquery\n\t\t * \n\t\t */ \n\t\t// we don't need to load jquery, because it comes with the wordpress. \n\t\t\n\t\twp_enqueue_script( 'tutka-jquery', get_template_directory_uri() . '/js/jquery-1.9.1.min.js');\n\t\twp_enqueue_script( 'tutka-modernizr', get_template_directory_uri() . '/js/modernizr-2.6.2.min.js');\n\t\twp_enqueue_script( 'tutka-jqueryui', get_template_directory_uri() . '/js/jquery-ui-1.10.3.custom.min.js');\n\t\twp_enqueue_script( 'tutka-navigation', get_template_directory_uri() . '/js/navigation.js');\n\t\twp_enqueue_script( 'tutka-custom', get_template_directory_uri() . 'js/custom.js');\n\t\t\n\t\t// wp_enqueue_script( 'tutka-metaimage', get_template_directory_uri() . '/js/meta-image.js');\n\t \n\t}", "title": "" }, { "docid": "dab4f2e95266fa7015c28af67d17e3f5", "score": "0.6563", "text": "public function assets() {\n\t\twp_enqueue_style( 'lgobatto/css', asset_path( 'styles/main.css' ), false, null );\n\t\tif ( is_single() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\t\twp_enqueue_script( 'comment-reply' );\n\t\t}\n\t\twp_enqueue_script( 'lgobatto/js', asset_path( 'scripts/main.js' ), [ 'jquery' ], null, true );\n\t}", "title": "" }, { "docid": "71561d0cfe5e4f3770176edd8152ad1c", "score": "0.6561402", "text": "public function admin_enqueue_scripts()\n {\n if ($this->get('admin_enqueue_scripts')) {\n wp_enqueue_style($this->get('hookname'));\n }\n\n wp_enqueue_style('tiFyTinyMceExternalPlugins' . class_info($this)->getShortName());\n\n asset()->setInlineJs(\n \"let dashiconsChars=\" . json_encode($this->parseGlyphs()) .\n \",tinymceDashiconsl10n={'title':'{$this->get('title')}'};\",\n true\n );\n\n asset()->setInlineCss(\n \"i.mce-i-dashicons:before{\" .\n \"content:'\" . ($this->glyphs[$this->get('button')] ? $this->glyphs[$this->get('button')] : '') . \"';}\" .\n \"i.mce-i-dashicons:before,.mce-grid a.dashicons{font-family:'{$this->get('font-family')}'!important;}\"\n );\n }", "title": "" }, { "docid": "30f3bac13e07be3f88da814b85ab1e50", "score": "0.6561393", "text": "function enqueues() {\n // Basic Stylesheet\n wp_register_style(\n 'basic-style',\n get_template_directory_uri() . '/style.css',\n array(),\n '1.0.0',\n 'screen'\n );\n wp_enqueue_style('basic-style');\n\n wp_deregister_script('jquery');\n wp_register_script('jquery', includes_url('/js/jquery/jquery.js'), false, NULL, true);\n wp_enqueue_script('jquery');\n\n // init\n wp_enqueue_script(\n 'init',\n get_stylesheet_directory_uri() . '/javascript/all.min.js',\n array('jquery'),\n '1.0.0',\n true\n );\n}", "title": "" }, { "docid": "982e26ddc883eec3dc47c49b2d6853d8", "score": "0.6556851", "text": "public function includes() {\n\t\trequire_once( get_template_directory() . '/vendor/astoundify/theme-customizer/astoundify-themecustomizer.php' );\n\t\trequire_once( trailingslashit( dirname( __FILE__ ) ) . 'helper-functions.php' );\n\t}", "title": "" }, { "docid": "96590b0f3392da24324a881328726bf1", "score": "0.65505654", "text": "function enqueue() {\n\t\twp_enqueue_style( 'mypluginstyle', plugins_url( '/assets/mystyle.css', __FILE__ ) );\n\t\twp_enqueue_script( 'mypluginscript', plugins_url( '/assets/myscript.js', __FILE__ ) );\n\t\twp_enqueue_script( 'mypluginscript2', plugins_url( '/assets/myscript2.js', __FILE__ ) );\n\t}", "title": "" }, { "docid": "8cd0803ccb65ed97a34becb75d92a54a", "score": "0.6531567", "text": "function wp_arch_scripts_and_styles() {\n // If is NOT admin area...\n if (!is_admin()) {\n\n /*\n * Use jQuery from Google CDN - Faster load time for users that already have it cached.\n * */\n\n /**\n * Remove jQuery registered script.\n *\n * @return VOID\n *\n * @param string $handle Name of the script handle to be removed\n */\n wp_deregister_script('jquery');\n\n /**\n * Register jQuery script with CDN\n *\n * @return VOID\n *\n * @param string [$handle] Name of the script\n * @param string [$src] URL to the script\n * @param array [$deps] Array of the handles of all the registered scripts that this script depends on.\n * @param string [$ver] String specifying the script version number\n * @param boolean [$in_footer] Normally scripts are placed in the <head> section\n */\n wp_register_script('jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js', '1.10.2', false);\n\n /**\n * Enqueue jQuery script from CDN\n *\n * @return VOID\n *\n * @param string [$handle] Name of the script\n * @param string [$src] URL to the script\n * @param array [$deps] Array of the handles of all the registered scripts that this script depends on.\n * @param string [$ver] String specifying the script version number\n * @param boolean [$in_footer] Normally scripts are placed in the <head> section\n */\n wp_enqueue_script('jquery');\n\n /**\n * Enqueue Modernizr Script\n *\n * @return VOID\n *\n * @param string [$handle] Name of the script\n * @param string [$src] URL to the script\n * @param array [$deps] Array of the handles of all the registered scripts that this script depends on.\n * @param string [$ver] String specifying the script version number\n * @param boolean [$in_footer] Normally scripts are placed in the <head> section\n */\n wp_enqueue_script('modernizr', get_stylesheet_directory_uri() . '/assets/js/vendor/modernizr.min.js', array(), null, false);\n\n /**\n * Enqueue Site Scripts\n *\n * @return VOID\n *\n * @param string [$handle] Name of the script\n * @param string [$src] URL to the script\n * @param array [$deps] Array of the handles of all the registered scripts that this script depends on.\n * @param string [$ver] String specifying the script version number\n * @param boolean [$in_footer] Normally scripts are placed in the <head> section\n */\n wp_enqueue_script('common_scripts', get_stylesheet_directory_uri() . '/assets/js/common.min.js', array('jquery'), null, true);\n\n /**\n * Enqueue Style\n *\n * @return VOID\n *\n * @param string [$handle] Name of the script\n * @param string [$src] URL to the script\n * @param array [$deps] Array of the handles of all the registered scripts that this script depends on.\n * @param string [$ver] String specifying the script version number\n * @param string|boolean [$media] String specifying the media for which this stylesheet has been defined.\n */\n wp_enqueue_style('wpstyles', get_stylesheet_uri(), array(), 'all');\n\n /**\n * Enqueue Site Styles\n *\n * @return VOID\n *\n * @param string [$handle] Name of the script\n * @param string [$src] URL to the script\n * @param array [$deps] Array of the handles of all the registered scripts that this script depends on.\n * @param string [$ver] String specifying the script version number\n * @param string|boolean [$media] String specifying the media for which this stylesheet has been defined.\n */\n wp_enqueue_style('styles', get_stylesheet_directory_uri() . '/assets/css/global.min.css', array(), 'all');\n\n // If viewing local/development\n if ( $_SERVER[\"SERVER_ADDR\"] == '192.168.50.4' ) {\n /**\n * Add LiveReload script\n *\n * @return VOID\n *\n * @param string [$handle] Name of the script\n * @param string [$src] URL to the script\n * @param array [$deps] Array of the handles of all the registered scripts that this script depends on.\n * @param string [$ver] String specifying the script version number\n * @param boolean [$in_footer] Normally scripts are placed in the <head> section\n */\n wp_enqueue_script('wp_arch_livereload', '//192.168.50.4:35729/livereload.js?snipver=1', array(), true);\n }\n\n }\n}", "title": "" }, { "docid": "00ac1d0e174ff5b91526168cbe24de78", "score": "0.65309465", "text": "private function admin_scripts() {\n // hash for cache busting\n $hash = App::enqueue_hash();\n\n // WordPress color picker\n wp_enqueue_style('wp-color-picker');\n\n // Dragula JS\n wp_enqueue_script( \n 'anssp-dragula',\n App::base_url() . 'assets/vendor/dragula.min.js', \n [],\n $hash,\n true\n );\n\n // Custom JS\n wp_enqueue_script( \n 'anssp-adminpage',\n App::base_url() . 'assets/js/adminpage.js', \n ['jquery', 'wp-color-picker', 'anssp-dragula'],\n $hash,\n true\n );\n\n // Dragula CSS\n wp_enqueue_style( \n 'anssp-dragula',\n App::base_url() . 'assets/vendor/dragula.min.css',\n [], \n $hash \n );\n\n // Custom CSS\n wp_enqueue_style( \n 'anssp-adminpage',\n App::base_url() . 'assets/css/frontpage.css',\n [], \n $hash \n );\n }", "title": "" }, { "docid": "c9e61f6df258cbc618d75529ab529837", "score": "0.6528618", "text": "public function enqueue_scripts() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Allergenizer_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Allergenizer_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/allergenizer-admin.js', array( 'jquery' ), $this->version, false );\n\n\t}", "title": "" }, { "docid": "a39818395085e0b02abe93bc7ccca99d", "score": "0.65243393", "text": "public function wpScripts()\n {\n wp_enqueue_style('font_awesome_css', PFM_ASSETSURL . 'add-on/font-awesome/css/font-awesome.min.css', '1.0.0', false);\n wp_enqueue_style('bootstrap_css', PFM_ASSETSURL . 'add-on/bootstrap/css/bootstrap.min.css', '1.0.0', false);\n wp_enqueue_script('jquery', \"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js\", array(), '1.0.0', false);\n\n wp_enqueue_style('form-style', PFM_ASSETSURL . \"css/style.css\", array(), '1.0.0');\n\n wp_enqueue_script('bootstrap_js', PFM_ASSETSURL . 'add-on/bootstrap/js/bootstrap.min.js', '1.0.0', true);\n wp_enqueue_script('form-script', PFM_ASSETSURL . \"js/script.js\", array(), '1.0.0', true);\n\n wp_localize_script('form-script', 'frontend_form_object',\n array(\n 'ajaxurl' => admin_url('admin-ajax.php'),\n )\n );\n }", "title": "" }, { "docid": "f1f68132830a0c6297888958e86c8d4d", "score": "0.65239805", "text": "public function EnqueueScript(){\n function pure_load_scripts($hook) {\n\n // create my own version codes\n $pure_js_ver = date(\"ymd-Gis\", filemtime( plugin_dir_path( __FILE__ ) . 'assets/js/js.js' ));\n $pure_css_ver = date(\"ymd-Gis\", filemtime( plugin_dir_path( __FILE__ ) . 'assets/css/css.css' ));\n\n //\n wp_enqueue_script( 'pure_js', plugins_url( 'assets/js/js.js', __FILE__ ), array(), $pure_js_ver );\n wp_register_style( 'pure_css', plugins_url( 'assets/css/css.css', __FILE__ ), false, $pure_css_ver );\n wp_enqueue_style ( 'pure_css' );\n\n }\n add_action('wp_enqueue_scripts', 'pure_load_scripts',100);\n }", "title": "" }, { "docid": "9929ab4fcb2b7513a37e07d558dfe360", "score": "0.6522646", "text": "public function add_scripts_and_styles() {\n\t\tif ( 'development' === WP_ENV ) {\n\t\t\tUtils\\enqueue_script( 'modernizr', 'https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.js', [], null, false );\n\t\t} else {\n\t\t\t// Local version goes here (should be customized for each site).\n\t\t\tUtils\\enqueue_script( 'modernizr', 'modernizr.min.js', [], null, false );\n\t\t}\n\t}", "title": "" }, { "docid": "cb66695fbacdbeb8747d2e335fa7d501", "score": "0.65205747", "text": "function include_scripts(){\n wp_enqueue_script('main-script', get_template_directory_uri(). '/assets/js/main.js', array(), '1.0', true);\n }", "title": "" }, { "docid": "f9324e295e9ce5d61ec293c83f9ffe9f", "score": "0.6516527", "text": "function register_style_and_scripts() {\n\n\t\twp_register_style( 'wcmentor-style-css', get_stylesheet_directory_uri() . \"/css/style.css\", [], null );\n\t\twp_register_script( 'wcmentor-scripts-js', get_stylesheet_directory_uri() . \"/js/siteScripts.js\", [ 'jquery' ], null );\n\n\t}", "title": "" }, { "docid": "41c62930493bb707919403d45a7d5f5c", "score": "0.65108675", "text": "function customize_controls_enqueue_scripts() {\n\t\twp_enqueue_style( 'styles-control-group', plugins_url( '/inc/styles-control-group.css', __FILE__ ), array(), $this->version );\n\t}", "title": "" }, { "docid": "b6f6d97736a0bfdcdbba65d3cf07eb37", "score": "0.65096927", "text": "public function enqueue_scripts() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Watchimon_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Watchimon_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/watchimon.js', array( 'jquery' ), $this->version, false );\n\n\t}", "title": "" }, { "docid": "c352530187ef4675ddb54988dd449f3d", "score": "0.6508524", "text": "public function enqueue_script() {\n\t\t// styles\n\t\twp_enqueue_style('simple-crm-style');\n\n\t\t//jquery define\n\t\twp_enqueue_script( 'jquery' );\n\t}", "title": "" }, { "docid": "84d49ca3180817126f8cf17cf219c26f", "score": "0.65077347", "text": "function enqueue() {\n\t\twp_enqueue_script( 'media-upload' );\n\t\twp_enqueue_media();\n\t\twp_enqueue_style( 'mypluginstyle', $this->plugin_url . 'assets/mystyle.css' );\n\t\twp_enqueue_script( 'mypluginscript', $this->plugin_url . 'assets/myscript.js' );\n\t}", "title": "" }, { "docid": "dd29bd7d31a9aa9827cc2bf78c3a7253", "score": "0.65065", "text": "static function include_script($elements = array()){\n\t\t\t\t\n\t\t\t\t$elements = wp_parse_args($elements, array(\n\t\t\t\t\t'style' => 'html-option',\n\t\t\t\t));\t\t\t\t\n\n\t\t\t\tgdlr_core_include_utility_script();\n\n\t\t\t\twp_enqueue_media();\n\t\t\t\twp_enqueue_style('wp-color-picker');\n\t\t\t\twp_enqueue_style('gdlr-core-html-option', GDLR_CORE_URL . '/framework/css/' . $elements['style'] . '.css');\n\t\t\t\t\n\t\t\t\t// enqueue the script\n\t\t\t\twp_enqueue_script('gdlr-core-html-option', GDLR_CORE_URL . '/framework/js/html-option.js', array(\n\t\t\t\t\t'jquery', 'jquery-effects-core', 'wp-color-picker', 'jquery-ui-slider', 'jquery-ui-datepicker'\n\t\t\t\t), '1.4.5', true);\t\n\t\t\t\t\n\t\t\t\t// localize the script\n\t\t\t\t$html_option_val = array();\n\t\t\t\t$html_option_val['text'] = array(\n\t\t\t\t\t'ajaxurl' => GDLR_CORE_AJAX_URL,\n\t\t\t\t\t'error_head' => esc_html__('An error occurs', 'goodlayers-core'),\n\t\t\t\t\t'error_message' => esc_html__('Please refresh the page to try again. If the problem still persists, please contact administrator for this.', 'goodlayers-core'),\n\t\t\t\t\t'nonce' => wp_create_nonce('gdlr_core_html_option'),\n\t\t\t\t\t'upload_media' => esc_html__('Select or Upload Media', 'goodlayers-core'),\n\t\t\t\t\t'choose_media' => esc_html__('Use this media', 'goodlayers-core'),\n\t\t\t\t);\n\t\t\t\t$html_option_val['tabs'] = array(\n\t\t\t\t\t'title_text' => esc_html__('Item\\'s Title', 'goodlayers-core'),\n\t\t\t\t\t'tab_checkbox_on' => esc_html__('On', 'goodlayers-core'),\n\t\t\t\t\t'tab_checkbox_off' => esc_html__('Off', 'goodlayers-core')\n\t\t\t\t);\n\t\t\t\t$html_option_val['skin'] = array(\n\t\t\t\t\t'input' => esc_html__('Skin Name', 'goodlayers-core'),\n\t\t\t\t\t'empty_input' => esc_html__('Please fill the name in skin name box to create new skin.', 'goodlayers-core'),\n\t\t\t\t\t'duplicate_input' => esc_html__('This skin name has already been assigned, please try filling another name.', 'goodlayers-core'),\n\t\t\t\t\t'description' => esc_html__('* Please fill english character for skin name with no special characters. The skin you\\'re created can be used in Color/Background Wrapper Section', 'goodlayers-core')\n\t\t\t\t);\n\t\t\t\t$html_option_val['fontupload'] = array(\n\t\t\t\t\t'none' => esc_html__('You don\\'t have any font uploaded', 'goodlayers-core'),\n\t\t\t\t\t'font_name' => esc_html__('Font Name', 'goodlayers-core'),\n\t\t\t\t\t'font_name_p' => esc_html__('Fill in font name in English', 'goodlayers-core'),\n\t\t\t\t\t'eot' => esc_html__('EOT Font', 'goodlayers-core'),\n\t\t\t\t\t'ttf' => esc_html__('TTF Font', 'goodlayers-core'),\n\t\t\t\t\t'button' => esc_html__('Upload', 'goodlayers-core'),\n\t\t\t\t);\n\t\t\t\t$html_option_val['thumbnail_sizing'] = array(\n\t\t\t\t\t'name' => esc_html__('Thumbnail Name', 'goodlayers-core'),\n\t\t\t\t\t'width' => esc_html__('Width (px)', 'goodlayers-core'),\n\t\t\t\t\t'height' => esc_html__('Height (px)', 'goodlayers-core'),\n\t\t\t\t\t'add' => esc_html__('Add Thumbnail', 'goodlayers-core'),\n\t\t\t\t\t'empty_input' => esc_html__('Please fill all required fields', 'goodlayers-core'),\n\t\t\t\t\t'description' => esc_html__('*After creating new thumbnail, you have to regenerate the thumbnail for old images.', 'goodlayers-core') . ' ' .\n\t\t\t\t\t\tesc_html__('We recommend the \\'ONet Regenerate thumbnails\\' plugin for this process.', 'goodlayers-core')\n\t\t\t\t\t\t\n\t\t\t\t);\n\t\t\t\twp_localize_script('gdlr-core-html-option', 'html_option_val', $html_option_val);\n\n\t\t\t\t// for tmce initialization\n\t\t\t\t// $html_option_val['tmce'] = self::tmce_init();\n\t\t\t\tadd_action('admin_head', 'gdlr_core_html_option::late_include_script', 999);\n\t\t\t}", "title": "" }, { "docid": "db1a97ccdffbe4314b09e0f285ca505c", "score": "0.650497", "text": "function WPgalleries_frontend_enqueue_scripts_and_styles(){\n $class_path = get_template_directory_uri() . '/classes/prefix_WPgalleries/';\n // css\n wp_enqueue_script( 'frontend/WPgalleries-styles' );\n wp_enqueue_style('frontend/WPgalleries-styles', $class_path . 'WPgalleries.css', false, 1.0);\n // js\n wp_enqueue_script('frontend/WPgalleries-script', $class_path . 'WPgalleries.js', false, 1.0);\n }", "title": "" }, { "docid": "c23a6bc33facf390058b29453efad541", "score": "0.6504089", "text": "protected function loadAssets()\n {\n $this->addCss('css/mediamanager.css', 'core');\n $this->addJs('js/mediamanager-browser-min.js', 'core');\n }", "title": "" }, { "docid": "d70fae6fc9e6dffcd9e3ebf7763bf89e", "score": "0.64922166", "text": "public function load_scripts_styles() {\n\t\t$css_filename = 'style.css';\n\t\t$css_url = plugin_dir_url( __FILE__ ) . $css_filename;\n\t\t$css_path = plugin_dir_path( __FILE__ ) . $css_filename;\n\t\t$css_modified = filemtime( $css_path );\n\t\twp_enqueue_style( 'cvc-portfolio', $css_url, null, $css_modified );\n\n\t\t$js_filename = '/js/main.min.js';\n\t\t$js_url = plugin_dir_url( __FILE__ ) . $js_filename;\n\t\t$js_path = plugin_dir_path( __FILE__ ) . $js_filename;\n\t\t$js_modified = filemtime( $js_path );\n\t\twp_enqueue_script( 'cvc-portfolio', $js_url, null, $js_modified );\n\t}", "title": "" }, { "docid": "f89a6489730748570dbcd3496f1dcf11", "score": "0.64919513", "text": "public function front_assets()\n {\n wp_enqueue_script(\"pam-main-js\", PAM_ASSETS_PUBLIC . \"js/main.js\", array(\"jquery\"), \"1.0\", true);\n wp_enqueue_script(\"pam-style-css\", PAM_ASSETS_PUBLIC . \"css/style.js\", null, \"1.0\", true);\n\n // Send data from PHP to JavaScript using wp_localize_script\n $extra = array(\n \"name\" => \"babul\",\n \"age\" => 12,\n );\n\n wp_localize_script( \"pam-main-js\", \"extra\", $extra );\n }", "title": "" }, { "docid": "ad3a561204dbe7a6f16e83ecc74bca48", "score": "0.6490987", "text": "public function enqueues() {\n\t\t$theme = wp_get_theme();\n\t\t/**\n\t\t * Register scripts\n\t\t */\n\t\twp_register_style( 'font-awesome', get_template_directory_uri() . '/assets/vendors/font-awesome/font-awesome.css' );\n\t\twp_register_style( 'owl-carousel', get_template_directory_uri() . '/assets/vendors/owl.slider/owl.carousel.css' );\n\t\twp_register_style( 'plyr', get_template_directory_uri() . '/assets/vendors/plyr/plyr.css' );\n\t\twp_register_style( 'slick', get_template_directory_uri() . '/assets/vendors/slick/slick.css' );\n\t\twp_register_style( 'magnificPopup', get_template_directory_uri() . '/assets/vendors/magnific-popup/magnific-popup.css' );\n\t\twp_register_script( 'waypoints', get_template_directory_uri() . '/assets/vendors/waypoints/waypoints.js', array( 'jquery' ), $theme['Version'], true );\n\t\twp_register_script( 'viewport', get_template_directory_uri() . '/assets/vendors/viewport/viewport.js', array( 'jquery' ), $theme['Version'], true );\n\t\twp_register_script( 'superfish-hoverIntent', get_template_directory_uri() . '/assets/vendors/superfish/hoverIntent.min.js', array(), $theme['Version'], true );\n\t\twp_register_script( 'superfish', get_template_directory_uri() . '/assets/vendors/superfish/superfish.min.js', array(), $theme['Version'], true );\n\t\twp_register_script( 'plyr', get_template_directory_uri() . '/assets/vendors/plyr/plyr.js', array( 'jquery' ), $theme['Version'], true );\n\t\twp_register_script( 'owl-carousel', get_template_directory_uri() . '/assets/vendors/owl.slider/owl.carousel.min.js', array( 'jquery' ), $theme['Version'], true );\n\t\twp_register_script( 'slick', get_template_directory_uri() . '/assets/vendors/slick/slick.js', array(), $theme['Version'], true );\n\t\twp_register_script( 'odometer', get_template_directory_uri() . '/assets/vendors/odometer/odometer.min.js', array(), $theme['Version'], true );\n\t\twp_register_script( 'easypiechart', get_template_directory_uri() . '/assets/vendors/easypiechart/jquery.easypiechart.min.js', array(), $theme['Version'], true );\n\t\twp_register_script( 'stickem', get_template_directory_uri() . '/assets/vendors/stickem/jquery.stickem.js', array(), $theme['Version'], true );\n\t\twp_register_script( 'offscreen', get_template_directory_uri() . '/assets/vendors/offscreen/offscreen.min.js', array(), $theme['Version'], true );\n\t\twp_register_script( 'magnificPopup', get_template_directory_uri() . '/assets/vendors/magnific-popup/jquery.magnific-popup.min.js', array(), $theme['Version'], true );\n\t\twp_register_script( 'portum-object', get_template_directory_uri() . '/assets/js/portum.js', array(), $theme['Version'], true );\n\t\t$string = '';\n\t\t$api = get_theme_mod( 'portum_google_api_key', false );\n\t\tif ( ! empty( $api ) ) {\n\t\t\t$string = '?key=' . $api;\n\t\t}\n\n\t\twp_register_script( 'googlemaps', '//maps.googleapis.com/maps/api/js' . $string, array(), $theme['Version'], true );\n\n\t\t/**\n\t\t * Google fonts\n\t\t */\n\t\twp_enqueue_style( 'portum-google-fonts', '//fonts.googleapis.com/css?family=Lato:300,300i,400,400i,700,700i|Poppins:300,400,500,600,700|Hind:300,400,500,600', array(), $theme['Version'], 'all' );\n\n\t\t/**\n\t\t * Load stylesheet\n\t\t */\n\t\twp_enqueue_style( 'portum', get_stylesheet_uri() );\n\t\twp_enqueue_style(\n\t\t\t'portum-main',\n\t\t\tget_template_directory_uri() . '/assets/css/style-portum.css',\n\t\t\tarray(\n\t\t\t\t'font-awesome',\n\t\t\t\t'owl-carousel',\n\t\t\t\t'plyr',\n\t\t\t\t'slick',\n\t\t\t\t'magnificPopup',\n\t\t\t\t'portum',\n\t\t\t),\n\t\t\t$theme['Version']\n\t\t);\n\n\t\twp_enqueue_style( 'portum-style-overrides', get_template_directory_uri() . '/assets/css/overrides.css' );\n\n\t\t/**\n\t\t * Load scripts\n\t\t */\n\t\twp_enqueue_script(\n\t\t\t'portum-main',\n\t\t\tget_template_directory_uri() . '/assets/js/main.js',\n\t\t\tarray(\n\t\t\t\t'jquery',\n\t\t\t\t'offscreen',\n\t\t\t\t'owl-carousel',\n\t\t\t\t'waypoints',\n\t\t\t\t'superfish-hoverIntent',\n\t\t\t\t'superfish',\n\t\t\t\t'stickem',\n\t\t\t\t'slick',\n\t\t\t\t'offscreen',\n\t\t\t\t'plyr',\n\t\t\t\t'viewport',\n\t\t\t\t'googlemaps',\n\t\t\t\t'odometer',\n\t\t\t\t'magnificPopup',\n\t\t\t\t'easypiechart',\n\t\t\t\t'portum-object',\n\t\t\t),\n\t\t\t$theme['Version'],\n\t\t\ttrue\n\t\t);\n\n\t\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\t\twp_enqueue_script( 'comment-reply' );\n\t\t}\n\t}", "title": "" }, { "docid": "2b30c7f08081cc32799c73cb7e65c73c", "score": "0.6487661", "text": "public function support_screen_scripts() {\n\t\t$ver = Avada::get_theme_version();\n\t\twp_enqueue_style( 'avada_admin_css', trailingslashit( Avada::$template_dir_url ) . 'assets/admin/css/avada-admin.css', [], $ver );\n\t}", "title": "" }, { "docid": "9eb57bc9c950a4708bf5915253ecc221", "score": "0.6487358", "text": "public function includeScripts() {\n echo $this->combineScripts($this->sortScripts($this->_include));\n }", "title": "" }, { "docid": "db5e44306663c85eb9a3a193c272542d", "score": "0.64828163", "text": "public function kaya_pods_cpt_enqueue_styles() {\n\t\t\twp_enqueue_style('ppd-jquery-ui-css', plugins_url('css/jquery-ui-css.css', __FILE__));\n\t\t\twp_enqueue_script('masonry');\n\t\t\twp_enqueue_style('ppd-styles', plugins_url('css/styles.css', __FILE__));\n\t\t\twp_enqueue_style('owl.carousel.min', plugins_url('css/owl.carousel.min.css', __FILE__));\n\t\t\twp_enqueue_script( 'owl.carousel.min', plugin_dir_url( __FILE__ ) . 'js/owl.carousel.min.js', array(),'', 'true' );\n\t\t\twp_enqueue_script('pod-cpt-scripts', plugin_dir_url( __FILE__ ) . 'js/scripts.js', array(),'', 'true' );\n\t\t\twp_enqueue_style('ppd-responsive', plugins_url('css/responsive.css', __FILE__));\n\t\t\twp_localize_script( 'jquery', 'kaya_ajax_url', array( 'ajaxurl' => admin_url( 'admin-ajax.php' )));\n\t\t\twp_enqueue_script('jquery-ui-core');\n\t\t\twp_enqueue_script('jquery-ui-slider');\n\t\t}", "title": "" } ]
39882502c3c313ee8b844ee1282e1004
A basic test example.
[ { "docid": "0167264f99cf452910fcb0cb268364a0", "score": "0.0", "text": "public function test_recently_converted()\n\t{\n\t\t$given = [\n\t\t\t[\n\t\t\t\t'roman_numeral' => 'L',\n\t\t\t\t\"number_requested\" => 50,\n\t\t\t\t\"total_number_requested\" => 2,\n\t\t\t\t\"created_at\" => \"2019-02-11\"\n\t\t\t],\n\t\t\t[\n\t\t\t\t\"roman_numeral\" => \"D\",\n\t\t\t\t\"number_requested\" => 500,\n\t\t\t\t\"total_number_requested\" => 1,\n\t\t\t\t\"created_at\" => \"2019-02-11\"\n\t\t\t]\n\t\t];\n\n\t\t$this->post(route('recentlyConverted'), $given)\n\t\t\t->assertStatus(200)\n\t\t\t->assertJson($given);\n\t}", "title": "" } ]
[ { "docid": "597b9e62da897a1296a3a7ff4b51ff92", "score": "0.82857263", "text": "public function testBasicExample()\n {\n\n }", "title": "" }, { "docid": "9ec17ef48dcc37fefab1b634c98d8a53", "score": "0.76435244", "text": "public function testBasicExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "6fd09073b03ef116dc11fa310aaed1cf", "score": "0.7632476", "text": "public function testExample()\n {\n // Vérifier que la page de test est bien fonctionnelle\n $this -> assertTrue ( 1 + 1 == 2 );\n }", "title": "" }, { "docid": "6ac6ce176654ba5e9bb5d8142eafecc1", "score": "0.75844955", "text": "public function testBasicExample()\n {\n $this->printTestStartMessage(__FUNCTION__);\n $this->assertEquals(1,1);\n }", "title": "" }, { "docid": "106f044878ac131f519659ce1f2e9512", "score": "0.75291055", "text": "public function testBasicExampleDusk()\n {\n\t\t\n\t \n }", "title": "" }, { "docid": "0fcd471d9ec3e9d8e3c1da9a0676bd9e", "score": "0.74580055", "text": "function test_sample() {\n\t\t// Replace this with some actual testing code.\n\t\t$this->assertTrue( true );\n\t}", "title": "" }, { "docid": "dfaf02a3151b0d56f0cb1533196029c8", "score": "0.7449314", "text": "public function testBasicExample()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/')\n ->assertSee('セルマネ');\n });\n }", "title": "" }, { "docid": "f22d095e1b1fb8232c0bea946f9284ea", "score": "0.73547494", "text": "public function test() {\n\n\t}", "title": "" }, { "docid": "5a81dd236bac2c4a108ea266401a7510", "score": "0.7344755", "text": "function test_sample() {\n // Replace this with some actual testing code.\n $this->assertTrue( true );\n }", "title": "" }, { "docid": "9202058a5e85b1f837b9ac3c1105a66b", "score": "0.7338962", "text": "public function testExample()\n {\n $this->get('/turistas')\n ->assertStatus(200)\n ->assertSee('Las acacias coffee farm');\n }", "title": "" }, { "docid": "14e493b10bc183b1ac5d219dd9cbf104", "score": "0.732748", "text": "public function testBasicExample()\n {\n// integration test, must be loaded with Elastic as well\n// $this->visit('/')\n// ->see('Youtube Search');\n }", "title": "" }, { "docid": "ed9f4247b5016a063c1d8acb5adf9439", "score": "0.730086", "text": "public function testBasicExample()\n {\n $this->visit('/movies/index')\n ->see('Liste de mes films')\n ->see('Le seigneur des anneaux');\n }", "title": "" }, { "docid": "9f2b09ff99e20f9e75a5325d7d7b48aa", "score": "0.7289665", "text": "public function testSimple() {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "355c99151f633c8c1efcdf9ab8d6e429", "score": "0.72349685", "text": "public function testBasic()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "5461f17565a1036be0936fee2d1100cf", "score": "0.72310174", "text": "public function testExample()\n {\n $user = new User();\n $this->assertTrue($user->sample());\n\n }", "title": "" }, { "docid": "619446725e4e63089a7d4c7e5fddc2b0", "score": "0.7227839", "text": "public function testBasicTest()\n {\n $request = Request::create(\n '/yx2018/start',\n 'GET'\n );\n\n $response = app(Kernel::class)->handle($request);\n\n }", "title": "" }, { "docid": "e3962d87efc0f70fc13e303a394b89f0", "score": "0.72059184", "text": "public function testExample()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/')\n ->assertSee('Quick Heal')\n ->visit(\n $browser->attribute('#add_to_cart', 'href')\n )\n ->assertPathIs('/');\n \n \n });\n }", "title": "" }, { "docid": "88138acb50b4589346bd3e4580887c8c", "score": "0.7200502", "text": "public function test_hello()\n {\n $this->unit->set_test_items(array('test_name', 'result'));\n\n echo $this->unit->run(\n $this->TDD_model->say_hello(), \n 'is_string', \n 'Check if display hello world string'\n );\n }", "title": "" }, { "docid": "b38781160dd2043903a3fc8c3dbf650e", "score": "0.7180423", "text": "public function testExample()\n {\n \t\t$response = $this->get('/');\n\n $response->assertStatus(200);\n\n\n }", "title": "" }, { "docid": "bc2491a0ec9ff25c4f31dd13809eb51e", "score": "0.71719897", "text": "public function testBasicExample()\n\t{\n\t\t$response = $this->call('GET', '/');\n\n\t\t$this->assertEquals(200, $response->getStatusCode());\n\t}", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "68c66e96c5e19d6ae7db7168b28b265c", "score": "0.7171955", "text": "public function testExample()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "d3876883435434e62cd61c094dfdf3b3", "score": "0.7158473", "text": "public function testBasicTest()\n {\t \n $this->assertTrue(true);\n }", "title": "" }, { "docid": "d6d4a0dbf1bae8d7d9a19045cb59ad6b", "score": "0.7121433", "text": "public function test_simple()\n {\n $this->output(__METHOD__);\n $this->assertTrue(true, 'Expected Pass');\n }", "title": "" }, { "docid": "ab79c819b4399b258a0ecf6dcc5e82ec", "score": "0.711692", "text": "public function testBasicExample()\n {\n $response = $this->get('/');\n\n $response->assertStatus(200);\n $response->assertSee('InduLab 數學建模系統');\n $response->assertSee('姓名:');\n $response->assertSee('學校:');\n $response->assertSee('學號:');\n $response->assertSee('進行實驗:');\n $response->assertSee('開始建模');\n }", "title": "" }, { "docid": "49afe830bee3f3f3f21b0b05e58ab083", "score": "0.7093848", "text": "public function test_example()\n {\n $response = $this->get('/welcome');\n\n $response->assertStatus(200);\n }", "title": "" }, { "docid": "09f0bf47d893c2bb8ed25549d1dc0193", "score": "0.7093419", "text": "public function testBasicTest()\n {\n //コントローラのテスト\n\n //rootpathに問題なくアクセス出来ているか\n //$this->get('/')->assertStatus(200);\n //helloに正常にアクセスできるか\n //$this->get('/hello')->assertOK();\n //hogeという存在しないページにアクセスした際に404でページが検出されるか\n //$this->get('/hoge')->assertStatus(404);\n //指定したpathに<h1>が含まれているか\n //$this->get('/hello')->assertSee('<h1>');\n //指定したpathに用意したテキストが順に従って登場することを確認\n //$this->get('/hello')->assertSeeInOrder(['<html','<head','<body','<h1>']);\n\n for($i = 0;$i < 100;$i++)\n {\n factory(UserTest::class)->create();\n }\n $count = UserTest::get()->count();\n $usertest = UserTest::find(rand(1, $count));\n $data = $\n }", "title": "" }, { "docid": "b59b32369e63548904fb0bafcd766cb6", "score": "0.708521", "text": "public function testExample()\n {\n $this->browse(function ($browser) {\n $browser->loginAs(User::find(1))\n ->visit('/');\n $browser -> ('/')\n ->assertSee('We Work for You');\n $browser -> ('maps')\n ->assertSee('Lake Otis');\n });\n }", "title": "" }, { "docid": "b6bd2d065587a5ac1d073abcce0b4fec", "score": "0.70848566", "text": "public function testBasicExample()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/')\n ->assertPathIs('/');\n });\n }", "title": "" }, { "docid": "95e3598f4be1474323834b60ccc6fb76", "score": "0.7081555", "text": "public function test() {\n }", "title": "" }, { "docid": "83b283456ff0eed7dfcfd68a2113c168", "score": "0.70733815", "text": "public function testExample(): void\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "5d278223a4e18a1ad3bacc47e07c0436", "score": "0.7071417", "text": "public function testExample()\n {\n $response = $this->get('/search');\n $response->assertStatus(200);\n }", "title": "" }, { "docid": "f8a5c67930da3b4c65391e51b3bb91b0", "score": "0.70707864", "text": "public function testBasicExample()\n {\n $this->browse(function ($browser) {\n $browser->visit('/')\n -> clickLink('Register')\n ->assertSee('Register')\n ->value('#name','John Doe')\n ->value('#email','johndoe@gmail.com')\n ->value('#password','testing')\n ->value('#password-confirm','testing')\n ->click('button[type=\"submit\"]')\n ->assertPathIs('/home');\n }\n );\n }", "title": "" }, { "docid": "a43f2e17aa57537a2d39937b7e84d792", "score": "0.70482004", "text": "public function testExample()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/')\n ->assertSee('Hotel Management System')\n ->assertSeeLink('Manager Login')\n ->assertSeeLink('Staff Login')\n ->assertSeeLink('Admin Login')\n ->assertSeeLink('HOME')\n ->assertSeeLink('REGISTRATION');\n \n \n });\n }", "title": "" }, { "docid": "5786091afcf6f70e10d617ac33f9e24d", "score": "0.7042674", "text": "public function testBasculerMev()\n {\n }", "title": "" }, { "docid": "7da7adf5e7bb55feed7cb33f4e9c1952", "score": "0.7030824", "text": "public function testBasicExample()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/')\n ->assertSee('Laravel');\n });\n }", "title": "" }, { "docid": "ae6f56f66f77ffd2ee3ec82c29e23478", "score": "0.70302093", "text": "public function test_example()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "ae6f56f66f77ffd2ee3ec82c29e23478", "score": "0.70302093", "text": "public function test_example()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "ae6f56f66f77ffd2ee3ec82c29e23478", "score": "0.70302093", "text": "public function test_example()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "ae6f56f66f77ffd2ee3ec82c29e23478", "score": "0.70302093", "text": "public function test_example()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "1712f34bd4b614f2edca66f6578a355e", "score": "0.7026307", "text": "public function testExample()\n // Test ini dilakukan untuk memeriksa apakah login bisa di automatic testing atau tidak (Resolved)\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/login')\n ->assertSee('Sistem Informasi Web Lab')\n ->type('email','sekretaris2@gmail.com')\n ->type('password','1234')\n ->press('Login')\n ->assertPathIs('/home');\n });\n }", "title": "" }, { "docid": "11246568480b510e99be38681c8cda66", "score": "0.7025113", "text": "public function testBasicExample()\n {\n $this->visit('/')\n ->see('newsite')\n ->click('Docs')\n ->see('This site was')\n ->seePageIS('/docs');\n }", "title": "" }, { "docid": "fbec6dcd4259f60d287afcf4df5268e7", "score": "0.7018257", "text": "public function testBasicExample()\n {\n $response = $this->call('GET', '/');\n\n $this->assertEquals(200, $response->getStatusCode());\n }", "title": "" }, { "docid": "e605a813f6f5e9ca31d0c808e17b4623", "score": "0.69791603", "text": "public function testBasicExample()\n {\n // Logged In with following 2 lines\n $user = new \\Modules\\Admin\\Models\\User(array('username' => 'gaurav'));\n $this->be($user);\n\n $response = $this->action('GET', '\\Modules\\Admin\\Http\\Controllers\\DashboardController@index');\n $this->assertResponseStatus($response->status());\n }", "title": "" }, { "docid": "2e3b45a8d2df4245c6f982dd8bd0338d", "score": "0.69664794", "text": "public function testExample()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('request/create')\n ->type('name', 'test name')\n ->type('email', 'email@email')\n ->type('phone_number', 'test number')\n ->type('message', \"test message\")\n ->press('Отправить')\n ->assertSee(\"Сообщение успешно отправлено.\");\n });\n }", "title": "" }, { "docid": "dbe54f4a7148d0f9b7b680a35a08ae9f", "score": "0.6962724", "text": "public function testBasicExample()\n {\n $this->browse(function ($browser) {\n $browser->maximize()\n //login page\n ->visit('/')->pause(1500)->assertSee('Находи друзей с помощью doskeler!')->value('#email','kairat@mail.ru')\n ->value('#password','123123')->pause(4000)->press('Войти')->assertPathIs('/home')\n //home page\n ->assertSee('kairat')\n ->pause(2000)->value('#textarea','Запущен Тест на проверку')->press('Пост!')->pause(3000)\n ->value('#comment1','test comment!!')->press('#comment2')\n ->pause(5000)\n //community page\n ->visit('/community')->assertSee('Создать Сообщество')->press('#create')->pause(1500)->value('#title','TestCommunity')\n ->value('#desc','about test')->press('#save')->pause(3000)\n // chat page\n ->visit('/direct-messages')->pause(3000)->value('#area','Hi my friend')\n ->keys('#area','{enter}')\n ->pause(4000);\n \n });\n }", "title": "" }, { "docid": "1b306983f5af5fbfdcab87d42ac06afb", "score": "0.6962191", "text": "public function test_it_works() {\n\t\t$this->assertTrue( true );\n\t}", "title": "" }, { "docid": "7a7a0c02e89cf3356ca88b595fab2bc6", "score": "0.6946054", "text": "public function testBasicTest()\n {\n\n //Arrange\n //Create a server\n\n //Act\n //go to the server list\n\n //Assert\n //Check to see server data\n \n $response = $this->get('/');\n\n $response->assertStatus(200);\n }", "title": "" }, { "docid": "f04b0777727e92699057720681e248a0", "score": "0.69434613", "text": "public function testBasicExample()\n {\n //mostra els todos del usuari logat\n $user= factory (\\App\\User::class)->make();\n $task= factory (\\App\\Task::class);\n\n $user->addTask($task);\n $this->actingAs($user);\n $this->visit('/tasks')\n ->see('Laravel');\n }", "title": "" }, { "docid": "4851741d98f3d458af885a0cd6bb4873", "score": "0.69429696", "text": "public function test_example()\n {\n $response = $this->get('/');\n\n $response->assertStatus(200);\n }", "title": "" }, { "docid": "4851741d98f3d458af885a0cd6bb4873", "score": "0.69429696", "text": "public function test_example()\n {\n $response = $this->get('/');\n\n $response->assertStatus(200);\n }", "title": "" }, { "docid": "4851741d98f3d458af885a0cd6bb4873", "score": "0.69429696", "text": "public function test_example()\n {\n $response = $this->get('/');\n\n $response->assertStatus(200);\n }", "title": "" }, { "docid": "4851741d98f3d458af885a0cd6bb4873", "score": "0.69429696", "text": "public function test_example()\n {\n $response = $this->get('/');\n\n $response->assertStatus(200);\n }", "title": "" }, { "docid": "4851741d98f3d458af885a0cd6bb4873", "score": "0.69429696", "text": "public function test_example()\n {\n $response = $this->get('/');\n\n $response->assertStatus(200);\n }", "title": "" }, { "docid": "8e5a048c71fe9ad3bf887f5eeea4d9c1", "score": "0.6936575", "text": "public function test_helpfulness() {\n \n }", "title": "" }, { "docid": "899b251f699ebe36dfe3afc76a2499ec", "score": "0.6927259", "text": "public function testBasicExample()\n {\n $anexo = new Anexo();\n\n $response = $this->call('GET', 'helper/getAnexoByRuta/', ['id'=>1]);\n\n\n }", "title": "" }, { "docid": "a681597c968756d651b8e762b4988dcc", "score": "0.6916144", "text": "public function testExample() {\n\n $todo = new Todo(['value' => 'Test']);\n $this->assertEquals('Test', $todo->value);\n }", "title": "" }, { "docid": "22e447a0759528fa124baaf2e3de1f4e", "score": "0.6915696", "text": "public function test_BasicTest()\n {\n $response = $this->get('/');\n\n $foo = 'bar';\n $fla = 'mark';\n\n $response->assertStatus(200);\n }", "title": "" }, { "docid": "550cf58b117378eb01795b61f8aca08a", "score": "0.69110084", "text": "public function testBasicTest()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "550cf58b117378eb01795b61f8aca08a", "score": "0.69110084", "text": "public function testBasicTest()\n {\n $this->assertTrue(true);\n }", "title": "" } ]
563d6d14866fd9884056808d69018f35
Displays all coupons. Also used for searching coupons
[ { "docid": "ccf0658f7dfdeb4cedd958278d4107e7", "score": "0.66080034", "text": "public function actionGetCoupons()\n {\n if (isset($_POST['stop']))\n {\n die();\n }\n $couponsModel = new CouponModel();\n $sitesModel = new SitesModel();\n $terminalModel = new TerminalsModel();\n $accountsModel = new AccountsModel();\n\n $postvars['batchID'] = $this->sanitize($_POST['batchID']);\n $postvars['couponcode'] = $this->sanitize($_POST['couponcode']);\n $postvars['status'] = $this->sanitize($_POST['status']);\n $postvars['transdatefrom'] = $this->sanitize($_POST['transdatefrom']);\n $postvars['siteID'] = $this->sanitize($_POST['site']);\n $postvars['terminalID'] = $this->sanitize($_POST['terminal']);\n $postvars['source'] = $this->sanitize($_POST['source']);\n $postvars['promoname'] = $this->sanitize($_POST['promoname']);\n\n $page = $_POST['page']; // get the requested page\n $limit = $_POST['rows']; // get how many rows we want to have into the grid\n //retrieve data\n if ($postvars['couponcode'] != \"\")\n {\n $allcoupons = $couponsModel->getCouponsByCode($postvars['batchID'], $postvars['couponcode']);\n $query = 3;\n }\n else if ($postvars['status'] != \"\" || $postvars['transdatefrom'] != \"\"\n || $postvars['siteID'] != \"\" || $postvars['terminalID'] != \"\"\n || $postvars['source'] != \"\" || $postvars['promoname'] != \"\"\n || $postvars['couponcode'])\n {\n //check what field used to search coupons\n $i = 0;\n foreach ($postvars as $vars)\n {\n if ($vars != \"\")\n {\n $search[] = array('FieldID' => $i, 'Value' => $vars);\n }\n\n $i++;\n }\n //get WHERE statement depending on fields used to search coupons\n $wherefx = $this->constructWhereFx($search, 1);\n $allcoupons = $couponsModel->searchCoupons($wherefx, $search);\n $query = 1;\n }\n else\n {\n $allcoupons = $couponsModel->getCouponsByBatchID($postvars['batchID']);\n $query = 2;\n }\n //Get total number of coupon batch\n $couponcount = count($allcoupons);\n\n if ($couponcount > 0)\n {\n if ($couponcount > 0)\n {\n $total_pages = ceil($couponcount / $limit);\n }\n else\n {\n $total_pages = 0;\n }\n if ($page > $total_pages)\n {\n $page = $total_pages;\n }\n $start = $limit * $page - $limit;\n if ($couponcount == 0)\n $start = 0;\n\n if ($couponcount > 0)\n {\n //execute used queries to re-query for pagination\n if ($query == 1)\n {\n $allcoupons = $couponsModel->searchCoupons($wherefx, $search, $start, $limit);\n }\n else if ($query == 2)\n {\n $allcoupons = $couponsModel->getCouponsByBatchID($postvars['batchID'], $start, $limit);\n }\n else\n {\n $allcoupons = $couponsModel->getCouponsByCode($postvars['batchID'], $postvars['couponcode']);\n }\n $i = 0;\n foreach ($allcoupons as $coupon)\n {\n //get usernames\n $createdby = $coupon['CreatedBy'];//$createdby = $accountsModel->getUsername($coupon['CreatedByAID']);\n $reimbursedby = $accountsModel->getUsername($coupon['ReimbursedByAID']);\n $site = $sitesModel->getSiteName($coupon['SiteID']);\n $terminal = $terminalModel->getTerminalNamesUsingTerminalID($coupon['TerminalID']);\n //if coupon is used get transdate(DateUpdated)\n $transdate = \"\";\n $source = \"\";\n if ($coupon['Status'] == 3)\n {\n $transdate = date(\"M d, Y h:i A\", strtotime($coupon['DateUpdated']));\n $source = \"Cashier\";\n }\n $response['rows'][$i]['id'] = $coupon['CouponID'];\n $response['rows'][$i]['cell'] = array(\n $coupon['CouponBatchID'],\n $coupon['CouponID'],\n $coupon['CouponCode'],\n number_format($coupon['Amount'], 2, \".\", \",\"),\n $this->getDistributionTag($coupon['DistributionTagID']),\n $coupon['IsCreditable'] == 1 ? \"Yes\" : \"No\",\n $coupon['DateCreated'] == \"\" ? \"\" : date(\"M d, Y h:i A\", strtotime($coupon['DateCreated'])),\n $createdby,\n $coupon['ValidFromDate'] == \"\" ? \"\" : date(\"M d, Y h:i A\", strtotime($coupon['ValidFromDate'])),\n $coupon['ValidToDate'] == \"\" ? \"\" : date(\"M d, Y h:i A\", strtotime($coupon['ValidToDate'])),\n $this->stringStatus($coupon['Status']),\n isset($site[0]['SiteName']) == \"\" ? \"\" : $site[0]['SiteName'],\n isset($terminal[0]['TerminalName']) == \"\" ? \"\" : $terminal[0]['TerminalName'],\n $source,\n $transdate,\n $coupon['PromoName'] != NULL ? $coupon['PromoName'] : \"\",\n $coupon['DateReimbursed'] == \"\" ? \"\" : date(\"M d, Y h:i A\", strtotime($coupon['DateReimbursed'])),\n $reimbursedby,\n );\n\n $i++;\n }\n $response[\"page\"] = $page;\n $response[\"total\"] = $total_pages;\n $response[\"records\"] = $couponcount;\n }\n else\n {\n $i = 0;\n $response[\"page\"] = $page;\n $response[\"total\"] = $total_pages;\n $response[\"records\"] = $couponcount;\n }\n }\n else\n {\n $i = 0;\n $response[\"page\"] = 0;\n $response[\"total\"] = 0;\n $response[\"records\"] = 0;\n }\n echo json_encode($response);\n }", "title": "" } ]
[ { "docid": "034935a27498451bb11456c4992d69b3", "score": "0.73338395", "text": "public function index()\n {\n \n $coupons = Coupon::paginate();\n\n return view('admin.coupons.index', [\n 'coupons' => $coupons,\n ]);\n }", "title": "" }, { "docid": "19d6c982cd3c7fe9e7af6158d7e6bbe9", "score": "0.72944397", "text": "public function index()\n {\n $coupons = Coupon::paginate(25);\n return view('admin.coupons.index', ['coupons' => $coupons]);\n }", "title": "" }, { "docid": "05bc95f686a9651f2d4c582a15c51eeb", "score": "0.72889435", "text": "public function index()\n {\n $coupons = coupon::paginate(PAGINATION_COUNT);\n\n return view('Admin.coupons.index', compact('coupons'));\n }", "title": "" }, { "docid": "cce8680931f7349ef1f80166515da003", "score": "0.72777724", "text": "public function index()\n {\n $product_coupons = $this->product_coupon->paginate(10);\n return view('admin.product_coupons.index', compact('product_coupons'));\n }", "title": "" }, { "docid": "6235f43bfb919e8144a96b6ff5375af9", "score": "0.7198158", "text": "public function index()\n {\n $coupons = Coupons::all();\n return view('admin.coupons.index', compact('coupons'));\n }", "title": "" }, { "docid": "fcbf10ed9e13765d6f21a34ab5d26257", "score": "0.71358675", "text": "public function index()\n {\n return view('useCoupons');\n }", "title": "" }, { "docid": "70b073825a854391277f540156024b33", "score": "0.7134274", "text": "public function actionIndex()\n\t{\n\t\t$searchModel = new CouponSearch();\n\t\t$dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\t\t\n\t\treturn $this->render('index', [\n\t\t\t'searchModel' => $searchModel,\n\t\t\t'dataProvider' => $dataProvider,\n\t\t]);\n\t}", "title": "" }, { "docid": "99d1f016045c055ff33201daf6f0b72d", "score": "0.7032371", "text": "public function index()\n {\n $data = array(\n 'page_title' => 'Kuponer',\n 'coupons' => Coupons::all()\n );\n\n return view('admin.coupons.index')->with($data);\n }", "title": "" }, { "docid": "1dccda49f6e275bf84c246d4189d1304", "score": "0.6910077", "text": "public function index()\n {\n return view('backoffice.coupon.index',['items' => Coupon::all()]);\n }", "title": "" }, { "docid": "2d5165a267658ab6f1bd1592c786e376", "score": "0.6871413", "text": "public function index( Request $request ) {\n $coupons = Coupon::get();\n\n switch ( $request->show ) {\n case \"all\":\n break;\n case \"close\":\n $coupons = $coupons->where( 'active', 0 );\n break;\n default:\n $coupons = $coupons->where( 'active', 1 );\n break;\n }\n\n return view( 'admin.coupon.coupon_index' )\n ->with( 'coupons', $coupons );\n }", "title": "" }, { "docid": "36c7e3e8a03b0d064ff9c748d3cf7144", "score": "0.681443", "text": "public function index()\n {\n $result = Coupon::all();\n return view('admin.coupon',['coupon'=>$result]);\n }", "title": "" }, { "docid": "e263b0dafc16dc375d46364c436ab006", "score": "0.67967314", "text": "public function index()\n {\n return view(\"cupones.index\",[\n \"cupones\" => Cupon::all()\n ]);\n }", "title": "" }, { "docid": "1555fbe0da7d76f007c5c3096a013b18", "score": "0.6749288", "text": "public function index()\n {\n $data['coupens'] = Coupen::all();\n return view('Admin/Coupen/view')->with($data);\n }", "title": "" }, { "docid": "59a64cdb2930fde3dee0fec83feb8883", "score": "0.67211723", "text": "public function coupon()\n\t{\n\t\t$data['coupon'] = $this->System_model->select_all('coupon');\n\t\t$this->session->set_userdata('active', 'coupon');\n\t\t//load coupon view\n\t\t$this->load->view('layout/page_header');\n\t\t$this->load->view('page/coupon', $data);\n\t\t$this->load->view('layout/page_footer');\n\t}", "title": "" }, { "docid": "27798bf9045ab37314d56087223cafb7", "score": "0.6696669", "text": "public function show_coupon()\n {\n\n \t$coupon = Coupon::whereRaw('user_id = ? ', array(Auth::user()->id))->get();\n\n \treturn view('beacons.coupon', ['coupon' => $coupon]);\n\n }", "title": "" }, { "docid": "369621caaa4b84a3aff8eca5e40efc65", "score": "0.66829395", "text": "public function index()\n {\n $this->repository->pushCriteria(app('Prettus\\Repository\\Criteria\\RequestCriteria'));\n $coupons = $this->repository->all();\n\n if (request()->wantsJson()) {\n\n return response()->json([\n 'data' => $coupons,\n ]);\n }\n\n return view('coupons.index', compact('coupons'));\n }", "title": "" }, { "docid": "a56599ca6409705a31e22ab70a0a6685", "score": "0.66827476", "text": "private function ManageCouponsGrid(&$numCoupons)\n\t\t{\n\t\t\t$page = 0;\n\t\t\t$start = 0;\n\t\t\t$numCoupons = 0;\n\t\t\t$numPages = 0;\n\t\t\t$GLOBALS['CouponGrid'] = \"\";\n\t\t\t$GLOBALS['Nav'] = \"\";\n\t\t\t$max = 0;\n\n\t\t\tif (isset($_GET['sortOrder']) && $_GET['sortOrder'] == 'desc') {\n\t\t\t\t$sortOrder = 'desc';\n\t\t\t} else {\n\t\t\t\t$sortOrder = \"asc\";\n\t\t\t}\n\n\t\t\t$sortLinks = array(\n\t\t\t\t\"Name\" => \"c.couponname\",\n\t\t\t\t\"Coupon\" => \"c.couponcode\",\n\t\t\t\t\"Discount\" => \"c.couponamount\",\n\t\t\t\t\"Expiry\" => \"c.couponexpires\",\n\t\t\t\t\"NumUses\" => \"c.couponnumuses\",\n\t\t\t\t\"Enabled\" => \"c.couponenabled\"\n\t\t\t);\n\n\t\t\tif (isset($_GET['sortField']) && in_array($_GET['sortField'], $sortLinks)) {\n\t\t\t\t$sortField = $_GET['sortField'];\n\t\t\t\tSaveDefaultSortField(\"ManageCoupons\", $_REQUEST['sortField'], $sortOrder);\n\t\t\t} else {\n\t\t\t\tlist($sortField, $sortOrder) = GetDefaultSortField(\"ManageCoupons\", \"c.couponid\", $sortOrder);\n\t\t\t}\n\n\t\t\tif (isset($_GET['page'])) {\n\t\t\t\t$page = (int)$_GET['page'];\n\t\t\t} else {\n\t\t\t\t$page = 1;\n\t\t\t}\n\t\t\t$sortURL = sprintf(\"&sortField=%s&sortOrder=%s\", $sortField, $sortOrder);\n\n\t\t\t$GLOBALS['SortURL'] = $sortURL;\n\n\t\t\t// Limit the number of questions returned\n\t\t\tif ($page == 1) {\n\t\t\t\t$start = 1;\n\t\t\t} else {\n\t\t\t\t$start = ($page * ISC_COUPONS_PER_PAGE) - (ISC_COUPONS_PER_PAGE-1);\n\t\t\t}\n\t\t\t$start = $start-1;\n\n\t\t\t// Get the results for the query\n\t\t\t$couponResult = $this->_GetCouponList($start, $sortField, $sortOrder, $numCoupons);\n\n\t\t\t$numPages = ceil($numCoupons / ISC_COUPONS_PER_PAGE);\n\n\t\t\tif($numCoupons > ISC_COUPONS_PER_PAGE) {\n\t\t\t\t$GLOBALS['Nav'] = sprintf(\"(%s %d of %d) &nbsp;&nbsp;&nbsp;\", GetLang('Page'), $page, $numPages);\n\t\t\t\t$GLOBALS['Nav'] .= BuildPagination($numCoupons, ISC_COUPONS_PER_PAGE, $page, sprintf(\"index.php?ToDo=viewCoupons%s\", $sortURL));\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$GLOBALS['Nav'] = \"\";\n\t\t\t}\n\n\t\t\t$GLOBALS['SortField'] = $sortField;\n\n\t\t\tBuildAdminSortingLinks($sortLinks, \"index.php?ToDo=viewCoupons&amp;page=\".$page, $sortField, $sortOrder);\n\n\t\t\t$max = $start + ISC_COUPONS_PER_PAGE;\n\t\t\tif ($max > count($couponResult)) {\n\n\t\t\t\t$max = count($couponResult);\n\n\t\t\t}\n\t\t\tif ($numCoupons > 0) {\n\t\t\t\t// Display the coupons\n\t\t\t\twhile ($row = $GLOBALS[\"ISC_CLASS_DB\"]->Fetch($couponResult)) {\n\t\t\t\t\t$GLOBALS['Name'] = isc_html_escape($row['couponname']);\n\t\t\t\t\t$GLOBALS['CouponId'] = (int) $row['couponid'];\n\t\t\t\t\t$GLOBALS['Coupon'] = isc_html_escape($row['couponcode']);\n\n\t\t\t\t\tif ($row['coupontype'] == 0) {\n\t\t\t\t\t\t// Dollar value coupon code\n\t\t\t\t\t\t$GLOBALS['Discount'] = sprintf(\"%s\", FormatPrice($row['couponamount']));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Percentage value coupon code\n\t\t\t\t\t\t$GLOBALS['Discount'] = sprintf(\"%s%%\", number_format($row['couponamount'], GetConfig('DecimalPlaces'), GetConfig('DecimalToken'), GetConfig('ThousandsToken')) );\n\t\t\t\t\t}\n\n\t\t\t\t\tif ($row['couponexpires'] > 0) {\n\t\t\t\t\t\t$GLOBALS['Date'] = CDate($row['couponexpires']);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$GLOBALS['Date'] = GetLang('NA');\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif ($GLOBALS[\"ISC_CLASS_ADMIN_AUTH\"]->HasPermission(AUTH_Edit_Coupons)) {\n\t\t\t\t\t\t$GLOBALS['EditCouponLink'] = sprintf(\"<a title='%s' class='Action' href='index.php?ToDo=editCoupon&amp;couponId=%d'>%s</a>\", GetLang('CouponEdit'), $row['couponid'], GetLang('Edit'));\n\t\t\t\t\t\tif ($row['couponenabled'] == 1) {\n\t\t\t\t\t\t\t$GLOBALS['Enabled'] = sprintf(\"<a title='%s' href='index.php?ToDo=editCouponEnabled&amp;couponId=%d&amp;enabled=0'><img border='0' src='images/tick.gif'></a>\", GetLang('ClickToDisableCoupon'), $row['couponid']);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$GLOBALS['Enabled'] = sprintf(\"<a title='%s' href='index.php?ToDo=editCouponEnabled&amp;couponId=%d&amp;enabled=1'><img border='0' src='images/cross.gif'></a>\", GetLang('ClickToEnableCoupon'), $row['couponid']);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$GLOBALS['EditCouponLink'] = sprintf(\"<a class='Action' disabled>%s</a>\", GetLang('Edit'));\n\t\t\t\t\t\tif ($row['couponenabled'] == 1) {\n\t\t\t\t\t\t\t$GLOBALS['Enabled'] = '<img border=\"0\" src=\"images/tick.gif\" alt=\"tick\" />';\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$GLOBALS['Enabled'] = '<img border=\"0\" src=\"images/cross.gif\" alt=\"cross\" />';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\t$GLOBALS['NumUses'] = number_format($row['couponnumuses']);\n\t\t\t\t\t$GLOBALS['ViewOrdersLink'] = '';\n\t\t\t\t\tif($row['couponnumuses'] > 0) {\n\t\t\t\t\t\t$GLOBALS['ViewOrdersLink'] = sprintf(\"&nbsp;&nbsp;&nbsp;<a href='index.php?ToDo=viewOrders&amp;couponCode=%s' title='%s'>%s</a>\", $row['couponcode'], GetLang('ViewOrdersWithCoupon'), GetLang('ViewOrders'));\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate(\"coupons.manage.row\");\n\t\t\t\t\t$GLOBALS['CouponGrid'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate(true);\n\t\t\t\t}\n\t\t\t\t$GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate(\"coupons.manage.grid\");\n\t\t\t\treturn $GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate(true);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "717675059dfea1a98c1a751055712662", "score": "0.66399455", "text": "public function index()\n {\n $coupons = Coupon::where('status_code', 'promo')->orderBy('id','desc')->get();\n return view('coupons.index', compact('coupons'));\n }", "title": "" }, { "docid": "5a696d35ac0a458c1c9263bd48d106df", "score": "0.66297066", "text": "public function index()\n {\n $coupons = Coupon::orderBy('id','DESC')->get();\n foreach ($coupons as $key => $coupon) {\n $coupon->discount_type = '';\n $coupon->discount_value = '';\n if($coupon->percent_off){\n $coupon->discount_value = $coupon->percent_off;\n $coupon->discount_type = 'percentage';\n }else{\n $coupon->discount_value = $coupon->value_off;\n $coupon->discount_type = 'currency';\n }\n }\n return view('admin.coupon.index',compact('coupons'));\n }", "title": "" }, { "docid": "61bef9c0dac82db5937af7e0c0fead44", "score": "0.66165954", "text": "public function index(Request $request)\n {\n // $this->service->collectNewCoupons();\n $coupons = $this->service->paginated();\n\n return view('escritor::admin.coupons.index')->with('coupons', $coupons);\n }", "title": "" }, { "docid": "9c8f4d0effc1c211a86efef7039a4c9b", "score": "0.65979505", "text": "public function index(Request $request)\n {\n return view('admin.coupons.index', ['coupons' => Coupon::all()]);\n }", "title": "" }, { "docid": "86fb6f10288d026121ddf655d5b058f6", "score": "0.6557923", "text": "public function index()\n {\n $coupon = Coupon::all();\n $data = [\n 'coupon' => $coupon,\n ];\n return view('admin.coupon.show',$data);\n }", "title": "" }, { "docid": "156a00759a9fa61b78c7d1cad3914665", "score": "0.6544468", "text": "public function index()\n {\n $currencies = $this->__get('Currencies')->getCurrencyList();\n\n $this->View()->setAssign('currencies', $currencies);\n }", "title": "" }, { "docid": "883e9b4e2a80dc1e949c109c2ce854b3", "score": "0.6535315", "text": "public function display_couponcards(){\n\t\tif ($this->checkLogin('A') == ''){\n\t\t\tredirect('admin_ror');\n\t\t}else {\n\t\t\t$this->data['heading'] = 'Coupon Codes List';\n\t\t\t$condition = array();\n\t\t\t$this->data['couponCardsList'] = $this->couponcards_model->get_all_details(COUPONCARDS,$condition);\n\t\t\t$this->load->view('admin/couponcards/display_couponcards',$this->data);\n\t\t}\n\t}", "title": "" }, { "docid": "612fb27deb29fdd708b8b407da9c6f94", "score": "0.64870435", "text": "public function index()\n {\n $data['category_coupons'] = CouponCategory::where('status',1)->orderBy('id','desc')->get();\n return view('coupon::coupon-category.index',$data);\n }", "title": "" }, { "docid": "8a5d9071db157bf904ff2995548162e9", "score": "0.6453789", "text": "public function index()\n {\n $data['current_coupon'] = $this->Coupon_model->getAll();\n\n $this->load->view('backend/header.php');\n $this->load->view('backend/sidebar.php');\n $this->load->view('backend/list_coupon.php',$data); \n $this->load->view('backend/footer.php'); \n }", "title": "" }, { "docid": "efcb00b1c110750b1294ca736be631c9", "score": "0.64435035", "text": "public function displayAllAction() {\n $om = $this->getDoctrine()->getManager();\n $model = $om->getRepository(\"CrowdRiseBundle:Projet\")->findBy(array('statut' => 1, 'type' => 'ProjetCF'));\n $finance = $om->getRepository(\\CrowdRiseBundle\\Entity\\Financement::class)->findAll();\n return $this->render('CrowdRiseBundle:ProjetCf:listProjetCf.html.twig', array('tab' => $model, 'user' => $this->getUser(),'contribute'=>$finance));\n }", "title": "" }, { "docid": "41af87579df2256841bf6c711b378a2d", "score": "0.64251953", "text": "public function show(Coupon $coupon)\n {\n //\n }", "title": "" }, { "docid": "41af87579df2256841bf6c711b378a2d", "score": "0.64251953", "text": "public function show(Coupon $coupon)\n {\n //\n }", "title": "" }, { "docid": "41af87579df2256841bf6c711b378a2d", "score": "0.64251953", "text": "public function show(Coupon $coupon)\n {\n //\n }", "title": "" }, { "docid": "26ed6c5a5ea4b3607b277b86ba547db1", "score": "0.6393223", "text": "public function produtsList(){\n\n $this->display();\n }", "title": "" }, { "docid": "3f5a3db79c398b5ff35594e240336292", "score": "0.6388254", "text": "public function index()\n {\n $coupons = Coupon::paginate(10);\n $miscellaneous_masters = MiscellaneousMaster::get();\n\n return view('admin.coupon.create', compact('coupons', 'miscellaneous_masters'));\n\n }", "title": "" }, { "docid": "a6bda109c12f473da919879bb9c8bd44", "score": "0.6382705", "text": "public function index()\n\t{\n\t\tif (Auth::check()) \n\t\t{\n\t\t\t$coupons = new Coupons();\n\t\t\t$coupons_arr = $coupons->getCoupons();\n\t\t\treturn view('coupons.index',array('coupons'=>$coupons_arr));\n\t\t}\n\t\telse {\n\t\t\treturn redirect('/login');\n\t\t}\n\t}", "title": "" }, { "docid": "ec9dac8934a4d5edd12773ef1a2c4d07", "score": "0.6314657", "text": "public function edit_coupon() {\n\n $view = $this->getView('cart', 'html');\n $view->setLayout('edit_coupon');\n\n // Display it all\n $view->display();\n }", "title": "" }, { "docid": "e4a973eb150718557597205bd4293f02", "score": "0.6311417", "text": "public function show($id){\n $coupon = Coupons::find($id);\n\t\t\n return view('admin.coupons.show', [\n 'coupon' => $coupon\n ]);\n\n }", "title": "" }, { "docid": "53cc1d877fe2203f3752fd60ce37231d", "score": "0.6289316", "text": "public function cotizacion()\n {\n $data['cotizacion'] = $this->{$this->model}->listar_cotizacion();\n $data['clientes'] = $this->{$this->model}->listar_clientes();\n\n $this->load->view($this->views.'cotizacion',$data);\n }", "title": "" }, { "docid": "46fc2d833df4bfb055ec8d707acc7379", "score": "0.6231939", "text": "public function actionIndex()\n {\n $searchModel = new CoaSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "ced2bae7babadc1d7ef9a56ed6c55338", "score": "0.62132263", "text": "private function showAll()\n {\n $this->content.= \"<table id='customers'><tbody>\";\n foreach ($this->res as $list) {\n $this->content.= \"<tr><td><a href='/list/$list->token'>$list->titre</a></td></tr>\\n\";\n }\n $this->title='Les Listes';\n\n $adressModify = $_SERVER['HTTP_HOST'].$_SERVER[\"REDIRECT_URL\"] . '/create';\n $this->content.= \"</tbody></table>\";\n $this->content .= <<<END\n<a href=\"http://$adressModify\"><button>Créer une liste</button></a>\nEND;\n }", "title": "" }, { "docid": "4930b4a9604f18984e87f473a37516a9", "score": "0.62067366", "text": "public function index() {\n $data['get_perusahaan'] = $this->M_Perusahaan->getPerusahaan('cekKode');\n $this->template->backend($this->VIEW_PATH.\"/index\", \"Company\", $data);\n }", "title": "" }, { "docid": "b0ca72bb27156a95519fd77434235365", "score": "0.61906695", "text": "public function get_coupons()\n {\n return $this->__ws_call('get_coupons', Array(\n \n ));\n }", "title": "" }, { "docid": "73f2dff1c8d74cc21062269cff8ce7bc", "score": "0.6183515", "text": "public function index()\n {\n $items = $this->Commentaire->allBySignal();\n $this->render('admin.commentaires.index', compact('items'));\n }", "title": "" }, { "docid": "be467bd888daea919b72f3df3932dd69", "score": "0.61755437", "text": "public function coupons(): Collection\r\n {\r\n return Coupon::all();\r\n }", "title": "" }, { "docid": "31c53a9a566e408e24ac4a5e12d5a4c7", "score": "0.6123664", "text": "public function displayAll() {\n\t\techo \"Price: \" . $this->price .\"<br>\n\t\tSpeed: \" . $this->speed .\"<br>\n\t\tFuel: \" . $this->fuel .\"<br>\n\t\tMileage: \" . $this->mileage .\"<br>\n\t\tTax: \" . $this->tax . \"<br><br>\";\n\t}", "title": "" }, { "docid": "af94eb2c078e208f1cc4da57564e3440", "score": "0.6093316", "text": "function COMP() \n\t{\n\t$this->view->title = 'Search COMP';\n\t$this->view->userListview = $this->model->compList() ;\n\t$this->view->render('don/COMP'); \n\t}", "title": "" }, { "docid": "56fa715c493e9b49c1e8cddaa744d9b0", "score": "0.60531944", "text": "public function index(){\n $chapitres = $this->Chapitre->all();\n $this->render('admin.chapitres.index', compact('chapitres'));\n }", "title": "" }, { "docid": "c71ea0329f0e2c3745d9c4729aa3b8c3", "score": "0.6047415", "text": "public function index()\n {\n // return 'AdminCommissionsController@index';\n // $commissions = Commission::paginate(5);\n // $commissions = Commission::all();\n $commissions = DB::table('commissions')\n ->join('chapelles', 'commissions.chapelle_id', '=', 'chapelles.id')\n ->select('commissions.*', 'chapelles.name as chapelle')\n ->get(); \n\n return view('admin.param.commission.index', compact('commissions'));\n }", "title": "" }, { "docid": "d0dd5a1fbcaa562d317fe2a83b335dae", "score": "0.60215217", "text": "private function getCoupons()\n {\n global $woocommerce;\n \n $args = array(\n 'posts_per_page' => -1,\n 'orderby' => 'title',\n 'order' => 'asc',\n 'post_type' => 'shop_coupon',\n 'post_status' => 'publish',\n );\n \n $coupons = get_posts($args);\n return $coupons;\n }", "title": "" }, { "docid": "c618a8e49b7ae0783bab169fa842e116", "score": "0.6016346", "text": "function listCoupons($type = 'ids'){\n global $wpdb;\n global $DOPBSP;\n \n $result = array();\n \n if ($type == 'ids'){\n array_push($result, '0'); \n }\n else{\n array_push($result, $DOPBSP->text('SETTINGS_CALENDAR_COUPONS_NONE')); \n } \n \n if ($DOPBSP->classes->backend_settings_users->permission(wp_get_current_user()->ID, 'view-all-calendars')){\n $coupons = $wpdb->get_results('SELECT * FROM '.$DOPBSP->tables->coupons.' ORDER BY id ASC');\n }\n elseif ($DOPBSP->classes->backend_settings_users->permission(wp_get_current_user()->ID, 'use-booking-system')){\n $coupons = $wpdb->get_results($wpdb->prepare('SELECT * FROM '.$DOPBSP->tables->coupons.' WHERE user_id=%d OR user_id=0 ORDER BY id ASC',\n wp_get_current_user()->ID));\n }\n \n if ($wpdb->num_rows != 0){\n foreach ($coupons as $coupon){\n if ($type == 'ids'){\n array_push($result, $coupon->id); \n }\n else{\n array_push($result, $coupon->id.': '.$coupon->name); \n } \n }\n }\n \n return implode(';;', $result);\n }", "title": "" }, { "docid": "b33bc8d184dabd00bc44e19a4d2ad238", "score": "0.6012273", "text": "function display(){\n\t\t# GLobal Variables\n\t\tglobal $_db;\n\t\t\n\t\t# Get Search String\n\t\t$search_string\t\t\t\t\t\t\t\t\t\t\t\t\t= Form::get_str(\"search_string\");\n\t\t$_SESSION['search_string']\t\t\t\t\t\t\t\t\t\t= $search_string;\n\t\t\n\t\t# Search Companies\n\t\t$factory\t\t\t\t\t\t\t\t\t\t\t\t\t\t= new Company();\n\t\t$companies\t\t\t\t\t\t\t\t\t\t\t\t\t\t= $factory->from_sql(\"SELECT `uid` FROM `companies` WHERE `active` = 1 AND `name` LIKE \\\"%{$search_string}%\\\"\");\n\t\t\n\t\t# Generate Results\n\t\t$results = \"\";\n\t\tforeach ($companies as $item) {\n\t\t\t# Prepare Result Variables\n\t\t\t$title\t\t\t\t\t\t\t\t\t\t\t\t\t\t= $item->name;\n\t\t\t$link\t\t\t\t\t\t\t\t\t\t\t\t\t\t= \"?p=companies&action=profile&id=\" . $item->uid;\n\t\t\t$type\t\t\t\t\t\t\t\t\t\t\t\t\t\t= \"Company\";\n\t\t\t\n\t\t\t# Generate HTML from Template\n\t\t\t$results\t\t\t\t\t\t\t\t\t\t\t\t\t.= $this->search_item($title, $link, $type);\n\t\t}\n\t\t\n\n\t\t# Search Cost Centers\n\t\t$cost_factory\t\t\t\t\t\t\t\t\t\t\t\t\t= new CostCenter();\n\t\t$costcnts\t\t\t\t\t\t\t\t\t\t\t\t\t\t= $cost_factory->from_sql(\"SELECT `uid` FROM `cost_centers` WHERE `active` = 1 AND `name` LIKE \\\"%{$search_string}%\\\"\");\n\t\t\n\t\t# Generate Results\n\t\tforeach ($costcnts as $item) {\n\t\t\t# Prepare Result Variables\n\t\t\t$title\t\t\t\t\t\t\t\t\t\t\t\t\t\t= $item->name;\n\t\t\t$link\t\t\t\t\t\t\t\t\t\t\t\t\t\t= \"?p=costcenter&action=profile&id=\" . $item->uid;\n\t\t\t$type\t\t\t\t\t\t\t\t\t\t\t\t\t\t= \"Cost Center\";\n\t\t\t\n\t\t\t# Generate HTML from Template\n\t\t\t$results\t\t\t\t\t\t\t\t\t\t\t\t\t.= $this->search_item($title, $link, $type);\n\t\t}\n\t\t\n\t\t# Search Departments\n\t\t$dep_factory\t\t\t\t\t\t\t\t\t\t\t\t\t= new department();\n\t\t$departments\t\t\t\t\t\t\t\t\t\t\t\t\t= $dep_factory->from_sql(\"SELECT `uid` FROM `departments` WHERE `active` = 1 AND `name` LIKE \\\"%{$search_string}%\\\"\");\n\t\t\n\t\t# Generate Results\n\t\tforeach ($departments as $item) {\n\t\t\t# Prepare Result Variables\n\t\t\t$title\t\t\t\t\t\t\t\t\t\t\t\t\t\t= $item->name;\n\t\t\t$link\t\t\t\t\t\t\t\t\t\t\t\t\t\t= \"?p=department&action=profile&id=\" . $item->uid;\n\t\t\t$type\t\t\t\t\t\t\t\t\t\t\t\t\t\t= \"Department\";\n\t\t\t\n\t\t\t# Generate HTML from Template\n\t\t\t$results\t\t\t\t\t\t\t\t\t\t\t\t\t.= $this->search_item($title, $link, $type);\n\t\t}\n\t\t\n\t\t# Search Employees\n\t\t$emp_factory\t\t\t\t\t\t\t\t\t\t\t\t\t= new employee();\n\t\t$employees\t\t\t\t\t\t\t\t\t\t\t\t\t\t= $emp_factory->from_sql(\"SELECT `uid` FROM `employees` WHERE `active` = 1 AND `name` LIKE \\\"%{$search_string}%\\\"\");\n\t\t\n\t\t# Generate Results\n\t\tforeach ($employees as $item) {\n\t\t\t# Prepare Result Variables\n\t\t\t$title\t\t\t\t\t\t\t\t\t\t\t\t\t\t= $item->name;\n\t\t\t$link\t\t\t\t\t\t\t\t\t\t\t\t\t\t= \"?p=employee&action=add&id=\" . $item->company_id.\"&co=\".$item->cost_center_id.\"&dep=\".$item->department_id.\"&em=\".$item->uid;\n\t\t\t$type\t\t\t\t\t\t\t\t\t\t\t\t\t\t= \"Employee\";\n\t\t\t\n\t\t\t# Generate HTML from Template\n\t\t\t$results\t\t\t\t\t\t\t\t\t\t\t\t\t.= $this->search_item($title, $link, $type);\n\t\t}\n\t\t# Generate HTML from Template\n\t\t$file\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t= dirname(dirname(dirname(__FILE__))) . \"/frontend/html/search/search.html\";\n\t\t$vars\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t= array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"results\"\t\t\t=> $results,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"search_string\"\t\t=> $search_string\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t$template\t\t\t\t\t\t\t\t\t\t\t\t\t\t= new Template($file, $vars);\n\t\t$html\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t= $template->toString();\n\t\t\n\t\t# Display HTML\n\t\tprint $html;\n\t}", "title": "" }, { "docid": "3d93404fd306be51a7f8af9587ec717b", "score": "0.600478", "text": "public function display() {\n $listeObjets = $this->model->getListeObjets();\n $this->view->displayListeObjets($listeObjets);\n }", "title": "" }, { "docid": "d6457a6f9dd3ec7df2e9ce885f69f32a", "score": "0.59888005", "text": "function allAction()\n {\n $model = new TableCompanies();\n $this->_view->allCompanies = $model->getAllCompanies();\n\n return $this->_view;\n }", "title": "" }, { "docid": "e1e80ef8d162c7b456271b0b0f7cb381", "score": "0.59846497", "text": "public function show_companies()\n\t{\n\t\t$data['companies']=$this->companies_m->getAll();\n\t\t$this->load->view('backend_view/companies',$data);\n\t}", "title": "" }, { "docid": "fce27faffae83509eb6133d9b1fd1585", "score": "0.59672093", "text": "public function myCouponlist() {\n\t\t$customer_list=array();\n\t\t$limit_start=10;\n\t\t$limit_end=0;\n\t\tif(isset($_GET['iDisplayStart']))\n\t\t{\n\t\t\t$limit_end=$_GET['iDisplayStart'];\n\t\t}\n\t\tif(isset($_GET['iDisplayLength']))\n\t\t{\n\t\t\t$limit_start=$_GET['iDisplayLength'];\n\t\t}\n\t\t$customer_list=$this->advertisment_model->getCustomerList($this->session->userdata('user_id'),$limit_start,$limit_end);\n\t\t$data=array('iTotalRecords'=>$customer_list['iTotalRecords'],'sEcho'=>$_GET['sEcho'],'iTotalDisplayRecords'=>$customer_list['iTotalDisplayRecords'],'aaData'=>$customer_list['data']);\n\t\techo json_encode($data);\n\t\tdie;\n\t}", "title": "" }, { "docid": "58b1220014af1dc45c6f2f3505f6f7d8", "score": "0.5960212", "text": "public function index()\n {\n $coupure6 = Coupure6::paginate(15);\n\n return view('Coupure6guest.coupure6.index', compact('coupure6'));\n }", "title": "" }, { "docid": "efca908faba3dcbb1525e6ca87d55668", "score": "0.5956705", "text": "public function actionIndex()\n {\n $searchModel = new CursoSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "f01ca308021aad72e4ca497fbffe362d", "score": "0.594773", "text": "public function getCoupons() {\n\t\t$listEntries = Temboo_Results::getSubItemByKey($this->base, \"data\");\n\t\t$resultArray = array();\n\t\tif(!is_null($listEntries)) {\n\t\t\tforeach ($listEntries as $entry) {\n\t\t \tarray_push($resultArray, new Stripe_Coupon_output($entry));\n\t\t\t}\n\t\t}\n\t\treturn $resultArray;\n\t}", "title": "" }, { "docid": "44a8c7196356b0a9b482b4cedce98918", "score": "0.5935309", "text": "public function actionIndex()\n {\n $searchModel = new CurrencySearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "488a3649ff227e5897414515e739a1be", "score": "0.5927977", "text": "public function challanListAction(){\n $this->view->headTitle(ADMIN_PRODUCT_LIST);\n\n Zend_Layout::getMvcInstance()->assign('viewType', 'dataTable');//Telling Layout the we need datatable here\n $flashMessages = $this->_helper->flashMessenger->getMessages();\n\n if (is_array($flashMessages) && !empty($flashMessages)) {\n $this->view->success = $flashMessages[0];\n }\n //get All challan List\n $request = $this->getRequest();\n $poId = $request->getParam('orderId');\n $this->view->header = \"View All Challan for $poId\";\n $tblChallan = new Application_Model_DbTable_Challan();\n $this->view->challan = $tblChallan->getAllChallanByPOId($poId);\n\n }", "title": "" }, { "docid": "c1c8ff6b7c16fa081a13f382411a6204", "score": "0.5922619", "text": "public function coupon_detail()\n\t{\n\t\t$id_coupon = $this->input->get('id');\n\t\t//get data by id\n\t\t$data['coupon_details'] = $this->System_model->get_by_atr('coupon', array('id_coupon' => $id_coupon));\n\t\t//get user point\n\t\t$id = $this->session->userdata('id');\n\t\t$data['point'] = $this->System_model->get_by_atr('pelanggan', array('id_pelanggan' => $id));\n\t\t//load coupon details view\n\t\t$this->load->view('layout/page_header');\n\t\t$this->load->view('page/coupon_detail', $data);\n\t\t$this->load->view('layout/page_footer');\n\t}", "title": "" }, { "docid": "a63c4c95199c2bb2f57e87a0f3046fe5", "score": "0.5919502", "text": "public function index()\n {\n $billets = Billet::all();\n $coupons = Coupon::all();\n return view('home', ['billets' => $billets, 'coupons' => $coupons]);\n }", "title": "" }, { "docid": "b4d1c9709f3533d12f63f752f35f74c3", "score": "0.5919498", "text": "public function list_all_subscribers() {\n $subscribers = new subscriptionmodel();\n $list = $subscribers->listsubscribers();\n if($list !== null) {\n include( plugin_dir_path( __FILE__ ) . 'views/subscription-list-search.php');\n $this->render_list($list);\n }\n }", "title": "" }, { "docid": "ec7019cc0c062a8a5a3dd2ad71711b57", "score": "0.590922", "text": "public function showAllAction()\n {\n $em = $this->getDoctrine()->getManager();\n $commandes = $em->getRepository('CommandeBundle:Commande')->findAll();\n\n return $this->render('@Commande/admin/commande.html.twig', array(\n 'commandes' => $commandes,\n ));\n }", "title": "" }, { "docid": "06f41bcd05c1c6ee5608c3785a97371e", "score": "0.5895357", "text": "public function pro_list()\n {\n $this->templates->display('pro_list');\n }", "title": "" }, { "docid": "76761a004e8279d906055db1b4d9e317", "score": "0.58775055", "text": "public function index()\n {\n //send categoreis to this page\n $categories =Category ::all();\n\n return view('checkout')->with([\n 'categories'=>$categories,\n 'discount' => $this->getNumbers()->get('discount'),\n 'newTotal' => $this->getNumbers()->get('newTotal'),\n 'newTax'=> $this->getNumbers()->get('newTax'),\n 'newSubTotal'=>$this->getNumbers()->get('newSubTotal'),\n ]);\n }", "title": "" }, { "docid": "3f28c50f20fe2f7b2d8d07ab0d1ffb30", "score": "0.58635885", "text": "public function showAll()\n {\n $messagecount = Message::count();\n $projectcount = Project::count();\n $usercount = User::count();\n $constituencycount = Constituency::count();\n $users = DB::table('users')->where('user_role','=','Contractor')\n ->leftJoin('contractors','contractors.user_id','=','users.id')\n ->paginate(10);\n return view('admin.contractors', compact('users','messagecount','projectcount','usercount','constituencycount'));\n }", "title": "" }, { "docid": "5bab61bd61813892e1b46b3438d8e6da", "score": "0.5860625", "text": "public function index()\n {\n $date= Carbon::now()->format('Y-m-d');\n $collar=Coupon::all();\n \n \n return view('admin.coupons.index',compact('collar','date'));\n }", "title": "" }, { "docid": "2227e28ddd09da3191a64ecc77f4968e", "score": "0.5856187", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $produits = $em->getRepository('WCSHackBundle:produit')->findAll();\n\n return $this->render('produit/produit.html.twig', array(\n 'produits' => $produits,\n ));\n }", "title": "" }, { "docid": "ac90100c8984c85bab5cb85a6af69e0f", "score": "0.585406", "text": "public function listAll() \n { \n $articleRepo = new ArticleRepository();\n $articles = $articleRepo->getArticles();\n \n require ('./view/affichageAccueil.php');\n }", "title": "" }, { "docid": "a10ebd5d9d5c21d5458423672cfc963c", "score": "0.5824535", "text": "function cuentas(){\n $this->template['title'] = 'Cuenta';\n $this->template['titles'] = 'Cuentas';\n $this->template['ban'] = $this->tesoreria_model->obtenerBancos();\n $this->template['une'] = $this->tesoreria_model->obtenerUnidades();\n $this->template['ctabanune'] = $this->tesoreria_model->obtenerCuentasBancosUne();\n $this->template['contarcuentas'] = $this->tesoreria_model->contarcuentas();\n $this->_run('catalogos/cuentas/addshow');\n }", "title": "" }, { "docid": "8dba6fb6ac3bd06985e376aad2f83132", "score": "0.5817665", "text": "public function index()\n {\n $combis = Combi::get();\n\n return view('Combis.index',compact('combis'));\n }", "title": "" }, { "docid": "5af9017b402dc043a857bbf166bb3fb6", "score": "0.5810899", "text": "public function listNains()\n {\n $this->connect();\n if (($res = $this->_model->readNain()) !== false) {\n foreach ($res as $nain) {\n $nains[] = new Ville($nain);\n }\n include('Views/index.php');\n }\n }", "title": "" }, { "docid": "75f43229fec0af9c1cfbff034b5ea8a0", "score": "0.5809655", "text": "function comissaoAction()\n\t{\n\t\t$comissao = new Application_Model_DbTable_Comissao();\n\t\t$this->view->comissao = $comissao->fetchAll();\n\t}", "title": "" }, { "docid": "9b3b7778f7411900e1b7af831e5cbca7", "score": "0.58095586", "text": "public function listAction() \r\n\t{\r\n\t\t$conn = Tomato_Core_Db_Connection::getMasterConnection();\r\n\t\t$cateproGateway = new Tomato_Modules_Catepro_Model_CateproGateway();\r\n\t\t$cateproGateway->setDbConnection($conn);\r\n\t\t$categories = $cateproGateway->getCateproTree();\r\n\t\t$this->view->assign('categories', $categories);\r\n\t}", "title": "" }, { "docid": "86104c108096ad1c1a9797f0dca5415c", "score": "0.5804104", "text": "public function couponList(Request $request)\n { \n\t\t$sort_by = $request->get('sort-by');\n\t\t$order_by = $request->get('order-by');\n\t\t$coupons = new Coupons();\n $homeTitle = 'Discounts and Offers'; \n if(!empty($request->s)){\n $coupons = $coupons->where('coupon_code','like', '%'.$request->s.'%')->orwhere('discount','like', '%'.$request->s.'%'); \n }\n if(!empty($request->status)){\n\t\t\tif($request->status==1){\n\t\t\t$coupons = $coupons->where('status',1);\n\t\t\t}\n\t\t\telse if ($request->status==2){\n\t\t\t$coupons = $coupons->where('status',0);\n\t\t\t}\n\t\t} \n\t\t\n if($sort_by == 'status' && $order_by == 'desc'){\n $coupons->where('status', 1);\n }\n if($sort_by == 'status' && $order_by == 'asc'){\n $coupons->orderBy('status',0);\n } \n\t\t$coupons = $coupons->paginate(env('RECORD_PER_PAGE')); \n $coupons->appends($request->s,$request->status);\n\t\treturn view('admin.coupons.coupon-list',array('homeTitle'=>$homeTitle,'coupons'=>$coupons,'params'=>$request, 'sort_by'=> $sort_by , 'order_by' => $order_by))\n\t\t\t->with('i', ($request->input('page', 1) - 1) * env('RECORD_PER_PAGE'));\n }", "title": "" }, { "docid": "de6c76328dba62ae8500f8417163815d", "score": "0.58039945", "text": "function index()\n\t{\n\t\t// Lay tien te mac dinh\n\t\t$default \t= currency_get_default();\n\t\t$default_id = (isset($default->id)) ? $default->id : 0;\n\t\t\n\t\t// Lay danh sach\n\t\t$list = $this->currency_model->get_list();\n\t\t\n\t\t$actions = array('edit', 'del', 'set_default');\n\t\t$list = admin_url_create_option($list, strtolower(__CLASS__), 'id', $actions);\n\t\tforeach ($list as $row)\n\t\t{\n\t\t\t$row->_is_default = ($row->id == $default_id) ? TRUE : FALSE;\n\t\t\t\n\t\t\tforeach ($actions as $action)\n\t\t\t{\n\t\t\t\t$row->{'_can_'.$action} = ($this->_can_do($row, $action) && admin_permission_url($row->{'_url_'.$action})) ? TRUE : FALSE;\n\t\t\t}\n\t\t}\n\t\t$this->data['list'] = $list;\n\t\t\n\t\t// Hien thi view\n\t\t$this->_display();\n\t}", "title": "" }, { "docid": "c19ab223a29925d795438f29a8f7b948", "score": "0.5801384", "text": "public function index()\n {\n $countries = Countries::all();\n $mycountries = Countrie::all();\n $mycitie = Citie::all();\n \n return view('Admin.Countries.index',compact('countries','mycountries','mycitie'));\n }", "title": "" }, { "docid": "1ae1f4a9238d8fe98a3d21d329248b30", "score": "0.57984024", "text": "public function index_upfp_cartera()\n {\n return view('proceso-prp.consolidado.consolidado-ur.index');\n }", "title": "" }, { "docid": "a17f90bdc71d3a08f9c023ff9a860533", "score": "0.5798388", "text": "public function index()\n {\n $categories = Category::all();\n $commissions = Commission::orderBy('id', 'desc')->paginate(7);\n return view('admin.commissions.index')->withCategories($categories)->withCommissions($commissions);\n }", "title": "" }, { "docid": "ded5f1ccdf3a73610300f4d2a997090c", "score": "0.57965326", "text": "public function index()\n\t{\n\t\t$cursos = Curso::all();\n\t\treturn \\View::make('Curso/list_curso',compact('cursos'));\n\t}", "title": "" }, { "docid": "6b54fd1cfd7c4a3d24a52b9495a4c562", "score": "0.5795215", "text": "public function listecomm(){\n $data = array('liste' => Commune::all());\n $this->load->view('administration/circons/listecomm', $data);\n // le footer \n $this->load->view('footer_administration');\n }", "title": "" }, { "docid": "f799970361d5f013ef4147d0b89a5dcb", "score": "0.57914007", "text": "public function index()\n\t{\n\t\t$query = $this->db->select('c.id, c.nom, c.type, c.chef_id, j.pseudo AS chef_pseudo')\n\t\t\t\t\t\t ->from('clans c')\n\t\t\t\t\t\t ->join('joueurs j', 'j.id = c.chef_id')\n\t\t\t\t\t\t ->order_by('c.type, c.nom')\n\t\t\t\t\t\t ->get();\n\t\t$clans = $query->result();\n\n\t\t// On affiche les résultats\n\t\t$vars = array(\n\t\t\t'clans' => $clans,\n\t\t);\n\t\treturn $this->layout->view('staff/moderer_clans_tchats', $vars);\n\t}", "title": "" }, { "docid": "b521fd61fb8b2d466d1cb1408c8c6b5a", "score": "0.5786569", "text": "public function index()\n {\n $coupon = Coupon::all();\n return response()->json($coupon);\n }", "title": "" }, { "docid": "625a9340b3c0d4962e6474c9a9fd092b", "score": "0.57805026", "text": "public function getListCoches(){\n $all_coches = DB::table('crud_coches')->get();\n\n return view('crud_coches.listado')\n ->with('titulo', 'Listado de coches')\n ->with('coches', $all_coches);\n }", "title": "" }, { "docid": "534501a09bb5524c0246a5f069ab7fdd", "score": "0.5780409", "text": "public function all_subscriptions()\n \t{\n \t\t\n \t\t$subs = $this->shop->account->get_all_subscriptions( $this->data['shop']['shop_id'] );\n \t\t$this->render('subscriptions' , $subs );\n \t}", "title": "" }, { "docid": "61705d905254ca55112640b22d6abf7c", "score": "0.5779727", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $categorieProduits = $em->getRepository('ProduitBundle:CategorieProduit')->findAll();\n\n return $this->render('@Admin/categorieproduit/index.html.twig', array(\n 'categorieProduits' => $categorieProduits,\n ));\n }", "title": "" }, { "docid": "4bdfbaf78a58cadf041db5b1bcbd3afe", "score": "0.57788336", "text": "public function actionIndex()\n {\n $searchModel = new SuratCekalSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "895e1d600dadf093387a4bd3e1ae3a94", "score": "0.5778342", "text": "public function action_findAll() {\n // Get all the informations from the repository.\n $repo = new Repository_Supplier();\n $suppliers = $repo->getAll();\n \n // Transfert the information to the view.\n $view = View::factory('supplier/suppliers')\n ->set('suppliers', $suppliers);\n \n $this->template->title = __('Suppliers');\n $this->template->content = $view;\n }", "title": "" }, { "docid": "79b7c5c8eac54a3b7c89b361a3932df6", "score": "0.57771236", "text": "public function list()\n {\n $listCountries = $this->model->getCountries();\n $infection = $this->model->getWorldInfection();\n $worldDeath = $this->model->getWorldDeath();\n $worldHealing = $this->model->getWorldHealing();\n $worldPopulation = $this->model->getWorldPopulation();\n $this->view->displayHome($listCountries, $infection, $worldDeath, $worldHealing, $worldPopulation);\n }", "title": "" }, { "docid": "b5145932cdc4579ed2cde85f2c9de9d9", "score": "0.5776387", "text": "public function indexAction() {\n $this->view->categories = $this->_categories->getCategoriesPeriod($this->_period);\n }", "title": "" }, { "docid": "ae5c32aa2cd52339780b2f759f3aa66d", "score": "0.5775251", "text": "public function index()\n {\n $currency = Currency::orderBy('code', 'ASC')->paginate(10);\n return view('superadmin.currency.index', compact('currency'));\n }", "title": "" }, { "docid": "6c923e9af4359c07c98a192c6e038adb", "score": "0.57725734", "text": "public function actionIndex()\n {\n $searchModel = new Caritarif();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "2be96b070cb0adf0592ba0ce8053729f", "score": "0.57665074", "text": "public function index()\n {\n $conductores = Conductor::all();\n return view('admin.conductores.list_conductores')->with('conductores', $conductores);\n }", "title": "" }, { "docid": "439b805c5a64802b7bb066dfe7c88a35", "score": "0.57663035", "text": "public function VoirListeComptes() {\n return view('Administrateur/VoirListeComptes');\n }", "title": "" }, { "docid": "d9753100af5eee4b023d01498d263246", "score": "0.5762812", "text": "public function index()\n {\n $results = $this->CC->getItem('cpd');\n $item = $this->CC->parseItems($results['rows']);\n $params['item'] = (object) $item[0];\n\n if($item[0]->hasRelatedArticles > 0){\n $related = $this->CC->getAssociationSorted($item[0]->_qname, 'ers:related-association');\n $items = $this->CC->parseItems($related['rows']);\n foreach($items as $index => $item){\n $item->modules = $this->prepareModules($item->diseaseModules);\n }\n $params['items'] = (object) $items;\n }\n \n return view('professional.cpd')->with($params);\n }", "title": "" }, { "docid": "eda74c6091d148ac5cb7583bf89ab4a9", "score": "0.5753556", "text": "public function indexAction()\n\t{\n\t\t// Debemos recuperar las categorias para mostrarlas en el fomrulario como un selectbox\n\t\t$categories = new Application_Model_DbTable_Categories();\n\t\t$this->view->categories = $categories->getAllCategories();\n\t}", "title": "" }, { "docid": "bd702571f0f738765c4f69a54fc80583", "score": "0.57534355", "text": "public function show(Cotizacion $cotizacion)\n {\n //\n }", "title": "" }, { "docid": "369e436f434744c52366d0ad7b025604", "score": "0.575324", "text": "public function Cupos()\n\t{\n\t\t$data['titulo']=\"REPORTE DE CUPOS CLIENTES\";\t\n\t\t\n\t\t$data['clientes'] = $this -> Modelo_cliente -> Lista();\n\t\t$this -> load -> view('header',$data);\n\t\t$this -> load -> view('reportes/cliente/cupo',$data);\n\t\t$this -> load -> view( $this->session->userdata('tipo_de_usuario') );\n\t}", "title": "" }, { "docid": "b57e0754ecd85ddce6c349e9bcdf36cb", "score": "0.5753018", "text": "public function index()\n {\n $citations = $this->citationRepository->getPaginate($this->nbrPerPageCit);\n }", "title": "" }, { "docid": "9b0881ac1c6c5c624f76583e28e95f68", "score": "0.5747365", "text": "public function show($id)\n {\n $coupons = MerchantCoupons::where('user_id', decrypt($id))->get();\n return view('admin/manage-coupon', compact('coupons'));\n\n }", "title": "" }, { "docid": "4c3c1c2f75c92333dc58ecb1a5724aff", "score": "0.57455087", "text": "public function index(Coupon $coupon)\n {\n return view('coupon::dashboard', ['coupons' => $coupon->all()]);\n }", "title": "" } ]
a85529b134a836185490b2ea2474cb0a
Operation deleteWhatsAppMediaAsyncWithHttpInfo Delete media
[ { "docid": "3c742991e5213b1db01b3983d579972e", "score": "0.6380471", "text": "public function deleteWhatsAppMediaAsyncWithHttpInfo($sender, $whatsAppUrlDeletionRequest)\n {\n $request = $this->deleteWhatsAppMediaRequest($sender, $whatsAppUrlDeletionRequest);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($request) {\n return $this->deleteWhatsAppMediaResponse($response, $request->getUri());\n },\n function ($exception) {\n $statusCode = $exception->getCode();\n $response = $exception->getResponse();\n $e = new ApiException(\n \"[{$statusCode}] {$exception->getMessage()}\",\n $statusCode,\n $response ? $response->getHeaders() : null,\n $response ? (string) $response->getBody() : null\n );\n throw $this->deleteWhatsAppMediaApiException($e);\n }\n );\n }", "title": "" } ]
[ { "docid": "1d115c66d11b4e8867c2342882b7a51b", "score": "0.6430212", "text": "protected function deleteWhatsAppMediaRequest($sender, $whatsAppUrlDeletionRequest)\n {\n // verify the required parameter 'sender' is set\n if ($sender === null || (is_array($sender) && count($sender) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $sender when calling deleteWhatsAppMedia'\n );\n }\n // verify the required parameter 'whatsAppUrlDeletionRequest' is set\n if ($whatsAppUrlDeletionRequest === null || (is_array($whatsAppUrlDeletionRequest) && count($whatsAppUrlDeletionRequest) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $whatsAppUrlDeletionRequest when calling deleteWhatsAppMedia'\n );\n }\n\n $resourcePath = '/whatsapp/1/senders/{sender}/media';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n\n\n\n // path params\n if ($sender !== null) {\n $resourcePath = str_replace(\n '{' . 'sender' . '}',\n ObjectSerializer::toPathValue($sender),\n $resourcePath\n );\n }\n\n\n $headers = $this->headerSelector->selectHeaders(\n ['*/*'],\n ['application/json']\n );\n\n // for model (json/xml)\n if (isset($whatsAppUrlDeletionRequest)) {\n if ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($whatsAppUrlDeletionRequest));\n } else {\n $httpBody = $whatsAppUrlDeletionRequest;\n }\n } elseif (count($formParams) > 0) {\n if ($headers['Content-Type'] === 'multipart/form-data') {\n $boundary = '----'.hash('sha256', uniqid('', true));\n $headers['Content-Type'] .= '; boundary=' . $boundary;\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];\n foreach ($formParamValueItems as $formParamValueItem) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValueItem\n ];\n }\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents, $boundary);\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\Query::build($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('Authorization');\n if ($apiKey !== null) {\n $headers['Authorization'] = $apiKey;\n }\n // this endpoint requires HTTP basic authentication\n if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) {\n $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . \":\" . $this->config->getPassword());\n }\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('Authorization');\n if ($apiKey !== null) {\n $headers['Authorization'] = $apiKey;\n }\n // this endpoint requires OAuth (access token)\n if (!empty($this->config->getAccessToken())) {\n $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\Query::build($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "cd07f81ccef7d70b472d9f01bcca7a8f", "score": "0.63624007", "text": "public function deleteWhatsAppMediaAsync(string $sender, \\Infobip\\Model\\WhatsAppUrlDeletionRequest $whatsAppUrlDeletionRequest): PromiseInterface\n {\n $request = $this->deleteWhatsAppMediaRequest($sender, $whatsAppUrlDeletionRequest);\n\n return $this\n ->client\n ->sendAsync($request)\n ->then(\n function ($response) use ($request) {\n $this->deprecationChecker->check($request, $response);\n return $this->deleteWhatsAppMediaResponse($response, $request->getUri());\n },\n function (GuzzleException $exception) {\n $statusCode = $exception->getCode();\n\n $response = ($exception instanceof RequestException) ? $exception->getResponse() : null;\n\n $exception = new ApiException(\n \"[{$statusCode}] {$exception->getMessage()}\",\n $statusCode,\n $response?->getHeaders(),\n ($response !== null) ? (string)$response->getBody() : null\n );\n\n throw $this->deleteWhatsAppMediaApiException($exception);\n }\n );\n }", "title": "" }, { "docid": "8d318c96d54b6e2deca3d0f85c8958aa", "score": "0.6232341", "text": "public function deletemedia()\n {\n $soxId = $this->getEditObjectId();\n $sMediaId = $this->getConfig()->getRequestParameter(\"mediaid\");\n if ($sMediaId && $soxId) {\n $oMediaUrl = oxNew(\"oxMediaUrl\");\n $oMediaUrl->load($sMediaId);\n $oMediaUrl->delete();\n }\n }", "title": "" }, { "docid": "beb82647c299c07cc9be9dfc0b4a356a", "score": "0.6069311", "text": "public function deleteWhatsAppMedia(string $sender, \\Infobip\\Model\\WhatsAppUrlDeletionRequest $whatsAppUrlDeletionRequest)\n {\n $request = $this->deleteWhatsAppMediaRequest($sender, $whatsAppUrlDeletionRequest);\n\n try {\n try {\n $response = $this->client->send($request);\n $this->deprecationChecker->check($request, $response);\n return $this->deleteWhatsAppMediaResponse($response, $request->getUri());\n } catch (GuzzleException $exception) {\n $errorResponse = ($exception instanceof RequestException) ? $exception->getResponse() : null;\n\n throw new ApiException(\n \"[{$exception->getCode()}] {$exception->getMessage()}\",\n $exception->getCode(),\n $errorResponse?->getHeaders(),\n ($errorResponse !== null) ? (string)$errorResponse->getBody() : null\n );\n }\n } catch (ApiException $exception) {\n throw $this->deleteWhatsAppMediaApiException($exception);\n }\n }", "title": "" }, { "docid": "07e101c78f67af690144f5df36688139", "score": "0.60207576", "text": "private function deleteWhatsAppMediaRequest(string $sender, \\Infobip\\Model\\WhatsAppUrlDeletionRequest $whatsAppUrlDeletionRequest): Request\n {\n $allData = [\n 'sender' => $sender,\n 'whatsAppUrlDeletionRequest' => $whatsAppUrlDeletionRequest,\n ];\n\n $validationConstraints = [];\n\n $this\n ->addParamConstraints(\n [\n 'sender' => [\n new Assert\\NotBlank(),\n ],\n 'whatsAppUrlDeletionRequest' => [\n new Assert\\NotNull(),\n ],\n ],\n $validationConstraints\n );\n\n $this->validateParams($allData, $validationConstraints);\n\n $resourcePath = '/whatsapp/1/senders/{sender}/media';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n\n // path params\n if ($sender !== null) {\n $resourcePath = str_replace(\n '{' . 'sender' . '}',\n $this->objectSerializer->toPathValue($sender),\n $resourcePath\n );\n }\n\n $headers = [\n\n 'Content-Type' => 'application/json',\n ];\n\n // for model (json/xml)\n if (isset($whatsAppUrlDeletionRequest)) {\n $httpBody = ($headers['Content-Type'] === 'application/json')\n ? $this->objectSerializer->serialize($whatsAppUrlDeletionRequest)\n : $whatsAppUrlDeletionRequest;\n } elseif (count($formParams) > 0) {\n $formParams = \\json_decode($this->objectSerializer->serialize($formParams), true);\n\n if ($headers['Content-Type'] === 'multipart/form-data') {\n $boundary = '----' . hash('sha256', uniqid('', true));\n $headers['Content-Type'] .= '; boundary=' . $boundary;\n $multipartContents = [];\n\n foreach ($formParams as $formParamName => $formParamValue) {\n $formParamValueItems = (\\is_array($formParamValue)) ? $formParamValue : [$formParamValue];\n\n foreach ($formParamValueItems as $formParamValueItem) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValueItem\n ];\n }\n }\n\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents, $boundary);\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = $this->objectSerializer->serialize($formParams);\n } else {\n // for HTTP post (form)\n $httpBody = Query::build($formParams);\n }\n }\n\n $apiKey = $this->config->getApiKey();\n\n if ($apiKey !== null) {\n $headers[$this->config->getApiKeyHeader()] = $apiKey;\n }\n\n $defaultHeaders = [];\n\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = \\array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n foreach ($queryParams as $key => $value) {\n if (\\is_array($value)) {\n continue;\n }\n\n $queryParams[$key] = $this->objectSerializer->toString($value);\n }\n\n $query = Query::build($queryParams);\n\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "b5bd3e0ab76a3bf17879cdbf2af91007", "score": "0.5961046", "text": "public function deleteWhatsAppMediaAsync($sender, $whatsAppUrlDeletionRequest)\n {\n return $this->deleteWhatsAppMediaAsyncWithHttpInfo($sender, $whatsAppUrlDeletionRequest)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "title": "" }, { "docid": "7c9df47087a4549f01594b0717728185", "score": "0.59332633", "text": "public function delete($id)\n\t{\n\t\t$media = Media::find($id);\n\n\t\tif($media->user_id == Auth::user()->id || Auth::user()->admin == 1){\n\n\t\t\t$media_flags = MediaFlag::where('media_id', '=', $id)->get();\n\t\t\tforeach($media_flags as $media_flag){\n\t\t\t\t$media_flag->delete();\n\t\t\t}\n\n\t\t\t$media_likes = MediaLike::where('media_id', '=', $id)->get();\n\t\t\tforeach($media_likes as $media_like){\n\t\t\t\t$media_like->delete();\n\t\t\t}\n\n\t\t\t$comments = Comment::where('media_id', '=', $id)->get();\n\t\t\tforeach($comments as $comment){\n\t\t\t\t$comment_votes = CommentVote::where('comment_id', '=', $comment->id)->get();\n\t\t\t\tforeach($comment_votes as $comment_vote){\n\t\t\t\t\t$comment_vote->delete();\n\t\t\t\t}\n\n\t\t\t\t$comment_flags = CommentFlag::where('comment_id', '=', $comment->id)->get();\n\t\t\t\tforeach($comment_flags as $comment_flag){\n\t\t\t\t\t$comment_flag->delete();\n\t\t\t\t}\n\n\t\t\t\t$comment->delete();\n\t\t\t}\n\n\t\t\t// if the media type is a gif we need to remove the animation file too.\n\t\t\tif(strpos($media->pic_url, '.gif') > 0){\n\t\t\t\tunlink('./uploads/images/' . str_replace(\".gif\", \"-animation.gif\", $media->pic_url));\n\t\t\t}\n\n\t\t\t// remove the image\n\t\t\tunlink('./uploads/images/' . $media->pic_url);\n\n\n\t\t\t$media->delete();\n\n\t\t}\n\n\t\treturn Redirect::to('admin?section=media')->with(array('note' => Lang::get('media.delete_success'), 'note_type' => 'success') );\n\t}", "title": "" }, { "docid": "51ebdc9afc4be03e427506d78efd6a75", "score": "0.5814097", "text": "public function deleteAction(Request $request, Media $media)\n {\n $statusCode = 200;\n if ($request->isMethod(\"DELETE\")) {\n $em = $this->getEntityManager();\n $em->remove($media);\n $em->flush();\n $message = \"Message du serveur ! Le media a été supprimé avec succès !\";\n } else {\n $statusCode = 400;\n $message = \"Message du serveur ! Impossible de supprimer le media !\";\n }\n if ($request->isXmlHttpRequest()) {\n return new Response($message, $statusCode);\n }\n return $this->redirectToRoute('media_list');\n }", "title": "" }, { "docid": "2287badb7d9401a74de9237a965310c8", "score": "0.5785701", "text": "protected function deleteWhatsAppMediaApiException($apiException)\n {\n $statusCode = $apiException->getCode();\n\n if ($statusCode === 404) {\n $data = ObjectSerializer::deserialize(\n $apiException->getResponseBody(),\n 'string',\n $apiException->getResponseHeaders()\n );\n $apiException->setResponseObject($data);\n return $apiException;\n }\n return $apiException;\n }", "title": "" }, { "docid": "0cad2d4773a53632ac5870d63f344d87", "score": "0.5709776", "text": "private function deleteWhatsAppMediaResponse(ResponseInterface $response, UriInterface $requestUri): mixed\n {\n $statusCode = $response->getStatusCode();\n $responseBody = $response->getBody();\n $responseHeaders = $response->getHeaders();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf('[%d] API Error (%s)', $statusCode, $requestUri),\n $statusCode,\n $responseHeaders,\n $responseBody\n );\n }\n\n $responseResult = null;\n\n return $responseResult;\n }", "title": "" }, { "docid": "bd88ad65f1a2354b33524f491d859df4", "score": "0.56424356", "text": "public function destroy($id)\n {\n /* @var $media Media */\n $media = $this->query->findOrFail($id);\n\n $media->delete();\n\n return response([\n 'success' => true\n ]);\n }", "title": "" }, { "docid": "4a8872ae412dc3e4991520e3b1aa4a6e", "score": "0.56385404", "text": "public function destroy($id)\n {\n $media = cseo_media::find($id);\n\n $media_name = ('img/gallery/'. $media->media_name);\n $media_thumbnail = ('img/gallery/'. $media->media_thumbnail);\n $media_attachments = ('img/gallery/'. $media->media_attachments);\n\n File::delete($media_name, $media_thumbnail, $media_attachments);\n \n $media->delete();\n\n session()->flash('message', 'Successfully Deleted');\n\n\n return response()->json(['message' => \"Successfully Deleted\"]);\n }", "title": "" }, { "docid": "158fc34eb05a7a3c839bba8e9360467c", "score": "0.563413", "text": "public function destroy(Media $media)\n {\n try {\n $media->delete();\n\n Storage::disk('public')->delete(str_replace(\"/storage/\",\"\",$media->path));\n\n } catch ( \\Exception $e) {\n\n return response()->json(\n [\n 'errors' => [\n 'message' => 'Cannot delete Media. Is it being used?'\n ],\n ],\n Response::HTTP_OK\n );\n }\n\n return response()->json(\n null, Response::HTTP_NO_CONTENT\n );\n }", "title": "" }, { "docid": "2999f2cdd045b96e61a5d857da3aa012", "score": "0.5633848", "text": "public function removeMediaAction()\n {\n $params = $this->Request()->getParams();\n if (!isset($params['id']) || empty($params['id'])) {\n $this->View()->assign(['success' => false, 'message' => 'No valid media Id']);\n }\n $id = $params['id'];\n\n // Load the media model\n $media = Shopware()->Models()->find(Media::class, $id);\n\n // Check if the media is loaded.\n if ($media === null || empty($media)) {\n $this->View()->assign(['success' => false, 'message' => sprintf('Media with id %s not found', $id)]);\n\n return;\n }\n\n // Try to remove the media and the uploaded files.\n try {\n Shopware()->Models()->remove($media);\n Shopware()->Models()->flush();\n $this->View()->assign(['success' => true]);\n } catch (\\Doctrine\\ORM\\ORMException $e) {\n $this->View()->assign(['success' => false, 'message' => $e->getMessage()]);\n }\n }", "title": "" }, { "docid": "0d6640f36c0ca88fbe56977a74dad5f1", "score": "0.5609444", "text": "public function remove(MediaInterface $media);", "title": "" }, { "docid": "92721738cf261ef469fc2fbaf919f26c", "score": "0.56092334", "text": "public function delete($mediaId)\n {\n return $this->parseJSON('json', [self::API_DELETE, ['media_id' => $mediaId]]);\n }", "title": "" }, { "docid": "60b00d9de6be819ab3c1b3ba46d002a7", "score": "0.55922645", "text": "public function delete($mediaId)\n {\n return $this->httpPostJson('cgi-bin/material/del_material', ['media_id' => $mediaId]);\n }", "title": "" }, { "docid": "edf717b6e641226d0ad4940a9a6774ce", "score": "0.5553983", "text": "public function deleteWhatsAppMediaWithHttpInfo($sender, $whatsAppUrlDeletionRequest)\n {\n $request = $this->deleteWhatsAppMediaRequest($sender, $whatsAppUrlDeletionRequest);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n return $this->deleteWhatsAppMediaResponse($response, $request->getUri());\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? (string) $e->getResponse()->getBody() : null\n );\n }\n } catch (ApiException $e) {\n throw $this->deleteWhatsAppMediaApiException($e);\n }\n }", "title": "" }, { "docid": "2bed71f69f9fd4ba096e4530a80ac9de", "score": "0.5526379", "text": "public function destroy($id)\n {\n Media::find($id)->delete();\n\n $response = array(\n 'status' => 'success',\n 'msg' => trans('media.message_delete_succes_media'),\n );\n\n return response()->json($response);\n }", "title": "" }, { "docid": "71f480c74d6432e3c2b2ad8ffe48b68c", "score": "0.55232745", "text": "public function destroy(Media $media)\n {\n auth()->user()->clearMediaCollection($media['collection_name']);\n return \\response(null, \\Symfony\\Component\\HttpFoundation\\Response::HTTP_NO_CONTENT);\n }", "title": "" }, { "docid": "d6d17826dd69aa05c8b18720708dac88", "score": "0.5481906", "text": "private function deleteWhatsAppMediaApiException(ApiException $apiException): ApiException\n {\n $statusCode = $apiException->getCode();\n\n\n return $apiException;\n }", "title": "" }, { "docid": "6592121befd94d405c68b44144bb9368", "score": "0.54488164", "text": "public function destroy($id)\n {\n \t$media=Media::findOrFail($id);\n\n \t// Add policy\n\t\t$this->authorize('delete',$media);\n\n\t\t//remove from disk\n\t\tif(File::exists($media->path)){\n\t\t\tFile::delete($media->path);\n\t\t}\n\t\t//remove from DB\n \t$media->delete();\n\n\t\t$status=trans('general.delete_success');\n\n if(request()->expectsJson()){\n \treturn response()->json([\n \t\t'status'=>$status,\n\t\t\t]);\n }\n\n Session::flash('success',$status);\n\n\t\treturn redirect()->route('media.index');\n }", "title": "" }, { "docid": "69de8452e52973072c5c6b91e265a2cf", "score": "0.5446828", "text": "protected function deleteWhatsAppMediaResponse($response, $requestUri)\n {\n $statusCode = $response->getStatusCode();\n $responseBody = $response->getBody();\n $responseHeaders = $response->getHeaders();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf('[%d] Error connecting to the API (%s)', $statusCode, $requestUri),\n $statusCode,\n $responseHeaders,\n $responseBody\n );\n }\n\n $responseObject = null;\n\n if ($statusCode === 204) {\n $type = 'string';\n if ($type === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = (string) $responseBody;\n }\n $responseObject = ObjectSerializer::deserialize($content, $type, $responseHeaders);\n\n return [\n $responseObject,\n $statusCode,\n $responseHeaders\n ];\n }\n\n return [\n $responseObject,\n $statusCode,\n $responseHeaders\n ];\n }", "title": "" }, { "docid": "ae8a1155cc84f3b63b00ddff56375242", "score": "0.5441539", "text": "public function destroy($id)\n {\n $item = Model::findOrFail($id);\n $item->delete();\n return (new Resource($item))\n ->additional(['meta' => [\n 'message' => 'Media deleted',\n ]]);\n }", "title": "" }, { "docid": "2da99490668f349ef4e748710403cf8b", "score": "0.54329103", "text": "public function destroy(Media $media)\n {\n $photo = Media::destroy($media);\n\n return [\n \"status\" => \"success\",\n \"flash\" => [\"message\" => \"Media File [\" . $photo->name . \"] deleted\"],\n \"photo_id\" => $photo->id\n //\"page\" => $page\n ];\n }", "title": "" }, { "docid": "27b1841306af2ab131f21b2bf4abed98", "score": "0.54245996", "text": "static function deleteMedia ($id)\n {\n extract(Xoom::getConfig(\"rootdir\"));\n\n $searchBid = Response::id2name($id);\n $searchMedia = \"$rootdir/xoom-data/media/*/my-*-$searchBid.*\";\n $fileMedia = glob($searchMedia);\n foreach($fileMedia as $file) {\n unlink($file);\n }\n\n }", "title": "" }, { "docid": "9b66bacc05711c14a4f18acc0734ad9c", "score": "0.53760856", "text": "public function delete_Media($idMedia){\n $delete_Media = $this->database->prepare('DELETE FROM media WHERE idMedia = ?');\n $delete_Media->bindValue(1, $idCategory, PDO::PARAM_INT);\n return $delete_Media->execute();\n }", "title": "" }, { "docid": "10d00efb7c55f07c7da24803279e2d8d", "score": "0.53397334", "text": "public function destroy(Social_Media $social_Media)\n {\n //\n }", "title": "" }, { "docid": "a465602f1f2c4e26a5f5763ce05991ff", "score": "0.5339319", "text": "public function testDeleteMediaSpecificMedia() {\n\t\tstatic::$eventModel->deleteMedia(1, 1);\n\n\t\t$expectedTable = (new PHPUnit_ArrayDataSet(array(\n\t\t\t'Media' => array(\n\t\t\t\tparent::createMediaObject(2, 1, 1, 'members.jpg')\n\t\t\t)\n\t\t)))->getTable('Media');\n\n\t\t$actualTable = $this->getConnection()->createQueryTable('Media', 'SELECT * FROM Media WHERE EventID = 1');\n\n\t\t$this->assertEquals(2, $this->getConnection()->getRowCount('Media'));\n\t\t$this->assertTablesEqual($expectedTable, $actualTable);\n\t}", "title": "" }, { "docid": "1f544382c1d0f77bd6616fa0459e5836", "score": "0.5335916", "text": "public function media_destroy($id,$file_name){\n $this->fileName = $file_name;\n if(empty($this->fileName)){\n $this->errors[] = \"Le nom du fichier photo est manquant.\";\n return false;\n }\n if(!$id){\n $this->errors[] = \"Identifiant photo manquant.\";\n return false;\n }\n if(delete_by_id('media',$id)){\n unlink($this->productPath.'/'.$this->fileName);\n return true;\n } else {\n $this->error[] = \"Échec de la suppression de la photo ou PRM manquant.\";\n return false;\n }\n\n }", "title": "" }, { "docid": "fbc64f7c6458cdcf1bde2b12c6f72c24", "score": "0.53258836", "text": "protected function deleteMedia($mediaId)\n\t{\n\t\t$em = $this->getDoctrine()->getManager();\n\t\t$mediaRepository = $em->getRepository('NetFlexMediaBundle:Media');\n\t\t$mediaUploadService = $this->get('multi_media_uploader');\n\t\t\n\t\t$thisMedia = $mediaRepository->findOneById($mediaId);\n\t\t\n\t\t$mediaName = $thisMedia->getMediaName() . '.' . $thisMedia->getMediaExtension();\n\t\t\n\t\tif (true === $mediaUploadService->deleteFile($mediaName)) {\n\t\t\t$em->remove($thisMedia);\n\t\t\t$em->flush();\n\t\t\t\n\t\t\treturn ['mediaName' => $mediaName, 'status' => true];\n\t\t}\n\t\t\n\t\treturn ['mediaName' => $mediaName, 'status' => false];;\n\t}", "title": "" }, { "docid": "46228107fb9d40d67f450a0e531b9a6b", "score": "0.5321349", "text": "protected function p_delete_media($media = true, $thumb = true)\n\t{\n\t\tif (!$this->media_hash)\n\t\t{\n\t\t\tthrow new MediaHashNotFoundException;\n\t\t}\n\n\t\t// delete media file only if there is only one image OR the image is banned\n\t\tif ($this->total == 1 || $this->banned == 1 || \\Auth::has_access('comment.passwordless_deletion'))\n\t\t{\n\t\t\tif ($media === true)\n\t\t\t{\n\t\t\t\t$media_file = $this->get_media_dir();\n\t\t\t\tif (file_exists($media_file))\n\t\t\t\t{\n\t\t\t\t\tif (!unlink($media_file))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new MediaFileNotFoundException;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($thumb === true)\n\t\t\t{\n\t\t\t\t$temp = $this->op;\n\n\t\t\t\t// remove OP thumbnail\n\t\t\t\t$this->op = 1;\n\t\t\t\t$thumb_file = $this->get_media_dir(true);\n\t\t\t\tif (file_exists($thumb_file))\n\t\t\t\t{\n\t\t\t\t\tif (!unlink($thumb_file))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new MediaFileNotFoundException;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// remove reply thumbnail\n\t\t\t\t$this->op = 0;\n\t\t\t\t$thumb_file = $this->get_media_dir(TRUE);\n\t\t\t\tif (file_exists($thumb_file))\n\t\t\t\t{\n\t\t\t\t\tif (!unlink($thumb_file))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new MediaFileNotFoundException;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$this->op = $temp;\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "bced00bd0caeba16cddff40e35203086", "score": "0.52609104", "text": "public function removeMedia(Request $request)\n {\n $input = $request->all();\n $extraGroup = $this->extraGroupRepository->findWithoutFail($input['id']);\n try {\n if($extraGroup->hasMedia($input['collection'])){\n $extraGroup->getFirstMedia($input['collection'])->delete();\n }\n } catch (\\Exception $e) {\n Log::error($e->getMessage());\n }\n }", "title": "" }, { "docid": "f4a767b11f2ef466b16645475495d1db", "score": "0.52481264", "text": "function media_delete($id,$auth){\n global $lang;\n if($auth < AUTH_DELETE) return DOKU_MEDIA_NOT_AUTH;\n if(media_inuse($id)) return DOKU_MEDIA_INUSE;\n\n $file = mediaFN($id);\n\n // trigger an event - MEDIA_DELETE_FILE\n $data['id'] = $id;\n $data['name'] = utf8_basename($file);\n $data['path'] = $file;\n $data['size'] = (@file_exists($file)) ? filesize($file) : 0;\n\n $data['unl'] = false;\n $data['del'] = false;\n $evt = new Doku_Event('MEDIA_DELETE_FILE',$data);\n if ($evt->advise_before()) {\n $old = @filemtime($file);\n if(!@file_exists(mediaFN($id, $old)) && @file_exists($file)) {\n // add old revision to the attic\n media_saveOldRevision($id);\n }\n\n $data['unl'] = @unlink($file);\n if($data['unl']){\n addMediaLogEntry(time(), $id, DOKU_CHANGE_TYPE_DELETE, $lang['deleted']);\n $data['del'] = io_sweepNS($id,'mediadir');\n }\n }\n $evt->advise_after();\n unset($evt);\n\n if($data['unl'] && $data['del']){\n return DOKU_MEDIA_DELETED | DOKU_MEDIA_EMPTY_NS;\n }\n\n return $data['unl'] ? DOKU_MEDIA_DELETED : 0;\n}", "title": "" }, { "docid": "d856b8568cbd13c8488993c65e0da0af", "score": "0.5246961", "text": "public function removeMedia(Request $request)\n {\n $input = $request->all();\n $faq = $this->faqRepository->findWithoutFail($input['id']);\n try {\n if ($faq->hasMedia($input['collection'])) {\n $faq->getFirstMedia($input['collection'])->delete();\n }\n } catch (Exception $e) {\n Log::error($e->getMessage());\n }\n }", "title": "" }, { "docid": "ce3e597b135ccbd08b970fb5e749778d", "score": "0.5237566", "text": "public function deleteMediaImage($id, $image)\n {\n if (Page::where('id', $id)->exists()) {\n $site = site();\n $page = $site->pages()->where('id', $id)->firstOrFail();\n $images = $page->getMedia('images');\n\n foreach ($images as $index => $_image) {\n if ($index == $image) {\n $_image->delete();\n flash('Successfully deleted media image.');\n return redirect()->route('admin.pages.edit', $page);\n }\n }\n }\n\n flash('Page or media resource does not exist');\n return redirect()->route('admin.pages.index');\n }", "title": "" }, { "docid": "a56b9b765493ace3dfb46be3080b0685", "score": "0.5216695", "text": "public function deleteStoreAlbumCommentMedia($object_info) {\n\n $data = array();\n $userManager = $this->getUserManager();\n $sender_user = $userManager->findUserBy(array('id' => $object_info->user_id));\n // get entity manager object\n $media_id = $object_info->item_id;\n $container = NManagerNotificationBundle::getContainer();\n $dm = $container->get('doctrine.odm.mongodb.document_manager'); //getting doctrine mongo odm object.\n $comment_media = $dm->getRepository('MediaMediaBundle:StoreAlbumCommentMedia')\n ->find($media_id);\n\n if ($comment_media) {\n $dm->remove($comment_media);\n $dm->flush();\n $res_p = array('code' => 101, 'message' => 'SUCCESS', 'data' => $data);\n echo json_encode($res_p);\n exit();\n } else {\n $res_p = array('code' => 100, 'message' => 'RECORD_DOES_NOT_EXISTS', 'data' => $data);\n echo json_encode($res_p);\n exit();\n }\n }", "title": "" }, { "docid": "c8a589ec185889cbbbd39b80847aaa11", "score": "0.5195827", "text": "public function removeMedia(Request $request)\n {\n $input = $request->all();\n $wallet = $this->walletRepository->findWithoutFail($input['id']);\n try {\n if ($wallet->hasMedia($input['collection'])) {\n $wallet->getFirstMedia($input['collection'])->delete();\n }\n } catch (Exception $e) {\n Log::error($e->getMessage());\n }\n }", "title": "" }, { "docid": "f0f5beeb172508ee40e77b1d40826ce0", "score": "0.51860225", "text": "public function destroy(Service $service, Media $media)\n {\n $service->media()->where($media->getKeyName(), $media->getKey())->first()->delete();\n\n return intend([\n 'url' => route('adminarea.services.media.index', ['service' => $service]),\n 'with' => ['warning' => trans('cortex/foundation::messages.resource_deleted', ['resource' => trans('cortex/foundation::common.media'), 'identifier' => $media->getRouteKey()])],\n ]);\n }", "title": "" }, { "docid": "03b4f26788b71f0a403f782e6b864e38", "score": "0.5185329", "text": "public function destroy($id)\n {\n if (!$this->canDestroy()) {\n return abort(403);\n }\n $file = Media::findOrFail($id);\n return response()->json($file->delete());\n }", "title": "" }, { "docid": "dbf179f7f19a5ba4051ad3ab02ad4be1", "score": "0.5159422", "text": "public function deleted(MarkerMedia $markerMedia): void\n {\n $markerMedia->media->delete();\n }", "title": "" }, { "docid": "2df3d41db644a8b44e65671eaf116a73", "score": "0.5158109", "text": "public function destroy($id)\n {\n $media = $this->AdvertMedia->find($id);\n try{\n if(!empty($media->file)){\n unlink(public_path($this->imagepath.'/'.$media->file));\n }\n $media->delete();\n }\n catch(\\Exception $e){\n session()->flash('error_msg' , 'Couldn`t delete old media file! Error: '.$e->getMessage());\n }\n return redirect()->back()->with('success_msg', 'Advert Media deleted successfully!');\n }", "title": "" }, { "docid": "1c5318f01fa74180793dfaf2676f0ae5", "score": "0.51551896", "text": "public function removeMedia(Request $request)\n {\n $input = $request->all();\n $category = $this->categoryRepository->findWithoutFail($input['id']);\n try {\n if ($category->hasMedia($input['collection'])) {\n $category->getFirstMedia($input['collection'])->delete();\n }\n } catch (\\Exception $e) {\n Log::error($e->getMessage());\n }\n }", "title": "" }, { "docid": "32891dbf52019315a02e633c598c1a32", "score": "0.51508105", "text": "function delete()\n\t{\n\t\tJRequest::checkToken('request') or jexit(JText::_('JINVALID_TOKEN'));\n\t\t$app\t= JFactory::getApplication();\n\t\t$user\t= JFactory::getUser();\n\n\t\t// Get some data from the request\n\t\t$tmpl\t= JRequest::getCmd('tmpl');\n\t\t$paths\t= JRequest::getVar('rm', array(), '', 'array');\n\t\t$folder = JRequest::getVar('folder', '', '', 'path');\n\t\t\n\t\tif ($tmpl == 'component') {\n\t\t\t// We are inside the iframe\n\t\t\t$this->setRedirect('index.php?option=com_media&view=mediaList&folder='.$folder.'&tmpl=component');\n\t\t} else {\n\t\t\t$this->setRedirect('index.php?option=com_media&folder='.$folder);\n\t\t}\n\n\t\tif (!$user->authorise('core.delete','com_media'))\n\t\t{\n\t\t\t// User is not authorised to delete\n\t\t\tJError::raiseWarning(403, JText::_('JLIB_APPLICATION_ERROR_DELETE_NOT_PERMITTED'));\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Set FTP credentials, if given\n\t\t\tjimport('joomla.client.helper');\n\t\t\tJClientHelper::setCredentialsFromRequest('ftp');\n\n\t\t\t// Initialise variables.\n\t\t\t$ret = true;\n\n\t\t\tif (count($paths))\n\t\t\t{\n\t\t\t\tJPluginHelper::importPlugin('content');\n\t\t\t\t$dispatcher\t= JDispatcher::getInstance();\n\t\t\t\tforeach ($paths as $path)\n\t\t\t\t{\n\t\t\t\t\tif (IS_WIN) {\n\t\t\t\t\t\t$path = iconv(\"UTF-8\", \"GBK\", $path);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t/* \n\t\t\t\t\tif ($path !== JFile::makeSafe($path))\n\t\t\t\t\t{\n\t\t\t\t\t\t// filename is not safe\n\t\t\t\t\t\t$filename = htmlspecialchars($path, ENT_COMPAT, 'UTF-8');\n\t\t\t\t\t\tJError::raiseWarning(100, JText::sprintf('COM_MEDIA_ERROR_UNABLE_TO_DELETE_FILE_WARNFILENAME', substr($filename, strlen(COM_MEDIA_BASE))));\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t*/\n\n\t\t\t\t\t$fullPath = JPath::clean(COM_MEDIA_BASE . '/' . $folder . '/' . $path);\n\t\t\t\t\t$object_file = new JObject(array('filepath' => $fullPath));\n\t\t\t\t\tif (is_file($fullPath))\n\t\t\t\t\t{\n\t\t\t\t\t\t// Trigger the onContentBeforeDelete event.\n\t\t\t\t\t\t$result = $dispatcher->trigger('onContentBeforeDelete', array('com_media.file', &$object_file));\n\t\t\t\t\t\tif (in_array(false, $result, true)) {\n\t\t\t\t\t\t\t// There are some errors in the plugins\n\t\t\t\t\t\t\tJError::raiseWarning(100, JText::plural('COM_MEDIA_ERROR_BEFORE_DELETE', count($errors = $object_file->getErrors()), implode('<br />', $errors)));\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$ret &= JFile::delete($fullPath);\n\n\t\t\t\t\t\t// Trigger the onContentAfterDelete event.\n\t\t\t\t\t\t$dispatcher->trigger('onContentAfterDelete', array('com_media.file', &$object_file));\n\t\t\t\t\t\t\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * 2011-12-9 wengebin 修改!\n\t\t\t\t\t\t * 要支持中文,作为 windows 服务器,必须将 GBK/GB2312 格式的字符串转换成 UTF-8,\n\t\t\t\t\t\t * 因为 windows 服务器上读取的文件名默认是 GBK/GB2312 格式,\n\t\t\t\t\t\t * 而 linux 读取到的文件名默认是 UTF-8 格式,\n\t\t\t\t\t\t * 而我们的程序是 UTF-8,所以得出:windows 需要转换,而 linux 不需要转换!\n\t\t\t\t\t\t */\n\t\t\t\t\t\tif (IS_WIN) {\n\t\t\t\t\t\t\t$return_imgtitle = JText::sprintf('COM_MEDIA_DELETE_COMPLETE', substr(iconv('GBK', 'UTF-8', $fullPath), strlen(COM_MEDIA_BASE)));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$return_imgtitle = JText::sprintf('COM_MEDIA_DELETE_COMPLETE', substr($fullPath, strlen(COM_MEDIA_BASE)));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$this->setMessage($return_imgtitle);\n\t\t\t\t\t}\n\t\t\t\t\telse if (is_dir($fullPath))\n\t\t\t\t\t{\n\t\t\t\t\t\tif (count(JFolder::files($fullPath, '.', true, false, array('.svn', 'CVS','.DS_Store','__MACOSX'), array('index.html', '^\\..*','.*~'))) == 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// Trigger the onContentBeforeDelete event.\n\t\t\t\t\t\t\t$result = $dispatcher->trigger('onContentBeforeDelete', array('com_media.folder', &$object_file));\n\t\t\t\t\t\t\tif (in_array(false, $result, true)) {\n\t\t\t\t\t\t\t\t// There are some errors in the plugins\n\t\t\t\t\t\t\t\tJError::raiseWarning(100, JText::plural('COM_MEDIA_ERROR_BEFORE_DELETE', count($errors = $object_file->getErrors()), implode('<br />', $errors)));\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$ret &= JFolder::delete($fullPath);\n\n\t\t\t\t\t\t\t// Trigger the onContentAfterDelete event.\n\t\t\t\t\t\t\t$dispatcher->trigger('onContentAfterDelete', array('com_media.folder', &$object_file));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (IS_WIN) {\n\t\t\t\t\t\t\t\t$return_imgtitle = JText::sprintf('COM_MEDIA_DELETE_COMPLETE', substr(iconv('GBK', 'UTF-8', $fullPath), strlen(COM_MEDIA_BASE)));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$return_imgtitle = JText::sprintf('COM_MEDIA_DELETE_COMPLETE', substr($fullPath, strlen(COM_MEDIA_BASE)));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$this->setMessage($return_imgtitle);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//This makes no sense...\n\t\t\t\t\t\t\tJError::raiseWarning(100, JText::sprintf('COM_MEDIA_ERROR_UNABLE_TO_DELETE_FOLDER_NOT_EMPTY',substr($fullPath, strlen(COM_MEDIA_BASE))));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $ret;\n\t\t}\n\t}", "title": "" }, { "docid": "889da72678b35a1b18caf308ef685122", "score": "0.5142323", "text": "public function deleteAction( $id)\n {\n\n $request = $this->get('request');\n\n\n $em = $this->getDoctrine()->getManager();\n $entity = $em->getRepository('scrclubCMSBundle:Media')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Document entity.');\n }\n\n if($entity->getType() != \"embedded\")\n $entity->removeUpload();\n\n $em->remove($entity);\n $em->flush();\n\n\n return new Response('');\n }", "title": "" }, { "docid": "7ed55d21d18e3fed5c36860945417447", "score": "0.51352036", "text": "public function destroy($id)\n {\n $media = Photo::find($id);\n $media->delete();\n\n if(file_exists(public_path().$media->file))\n {\n unlink(public_path().$media->file);\n }\n \n $media->delete();\n return redirect()->back()->with('status','Deleted media successfully !');\n }", "title": "" }, { "docid": "ac3c14772b7e501e31b6df83abb449b0", "score": "0.50799394", "text": "public function deleteLike($mediaId)\n {\n return $this->adapter->delete(sprintf('%s/v1/media/%s/likes', self::ENDPOINT, $mediaId));\n }", "title": "" }, { "docid": "e44deb5c2c6490fec87ddf37d5f716d6", "score": "0.5039669", "text": "public function destroy($id)\n {\n CategoriaMedia::find($id)->delete();\n return redirect()->route('categoria_media.index')\n ->with('success','categoria_media deleted successfully');\n }", "title": "" }, { "docid": "a94b5791cec9185a31e3d6bacc14c679", "score": "0.5034732", "text": "public function deleteAvatarAsyncWithHttpInfo()\n {\n $returnType = '';\n $request = $this->deleteAvatarRequest();\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n return [null, $response->getStatusCode(), $response->getHeaders()];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "title": "" }, { "docid": "0095ec07744d53b0bd9641d1ec5c7fc6", "score": "0.5034683", "text": "public function destroy($id)\n {\n if(env('DEMO_LOCK') == 1){\n return back()->with('deleted','This action is disabled in the demo !');\n }\n $audio = Audio::findOrFail($id);\n\n\n if ($audio->thumbnail != null) {\n $content = @file_get_contents(public_path() . '/images/audio/thumbnails/' . $audio->thumbnail);\n if ($content) {\n unlink(public_path() . \"/images/audio/thumbnails/\" . $audio->thumbnail);\n }\n }\n if ($audio->poster != null) {\n $content = @file_get_contents(public_path() . '/images/audio/posters/' . $audio->poster);\n if ($content) {\n unlink(public_path() . \"/images/audio/posters/\" . $audio->poster);\n }\n }\n if ($audio->upload_video != null) {\n $content = @file_get_contents(public_path() . '/audio/' . $audio->upload_video);\n if ($content) {\n unlink(public_path() . \"/audio/\" . $audio->upload_video);\n }\n }\n $audio->delete();\n\n return back()->with('deleted', 'Audio has been deleted');\n\n }", "title": "" }, { "docid": "7f15e95396c0ee725f2d286014516016", "score": "0.5030395", "text": "public function index_delete($nID = NULL)\n {\n // Delete media\n return $this->lib_rest_media->deleteMedia($nID);\n }", "title": "" }, { "docid": "40c02e79db470a671aef76302993d486", "score": "0.50166035", "text": "public function destroy($id, $mediaId)\n {\n $media = $this->mediaRepository->findWithoutFail($mediaId);\n\n if (empty($media)) {\n Flash::error('Media not found');\n\n return redirect(route('media.index', $id));\n }\n\n $this->mediaRepository->delete($mediaId);\n if ($media->type == 'video') {\n File::delete(public_path().'/storage/'.$media->url.'.mp4');\n }\n else if ($media->type == 'mp3') {\n File::delete(public_path().'/storage/'.$media->url.'.mp3');\n }\n else if ($media->type == 'image') {\n File::delete(public_path().'/storage/'.$media->url);\n }\n Flash::success('Media deleted successfully.');\n\n return redirect(route('media.index', $id));\n }", "title": "" }, { "docid": "63be8126267c6e63805d489f3ee0bd7f", "score": "0.5013357", "text": "public function restReportsKeyFiguresConfigsDeleteAsyncWithHttpInfo()\n {\n $returnType = 'object';\n $request = $this->restReportsKeyFiguresConfigsDeleteRequest();\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = (string) $responseBody;\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "title": "" }, { "docid": "4c3be376ce16c46d5e5afefffaac8203", "score": "0.50105715", "text": "public function delete()\n {\n $this->media->delete();\n $this->media = new NoCoverImage();\n }", "title": "" }, { "docid": "14601a422229369d3e09d2a02a3a8a7f", "score": "0.49906218", "text": "public function deleteMedia($id=null) {\n if(empty($id) && empty($this->id))\n return false;\n\n if(empty($this->id))\n if(!$this->findFirstByid($id))\n return false;\n\n if($this->delete()) {\n unlink(\\Phalcon\\DI::getDefault()['config']['application']['privateMediaDir'] .'/' .$this->directory . '/' . $this->filename);\n return true;\n }\n else return false;\n }", "title": "" }, { "docid": "d6e7277b4d4bf7529237b02ed88290b8", "score": "0.49812204", "text": "public function delete()\n\t{\n\t\tJSession::checkToken('request') or jexit(JText::_('JINVALID_TOKEN'));\n\n\t\t$user\t= JFactory::getUser();\n\n\t\t// Get some data from the request\n\t\t$tmpl = $this->input->get('tmpl');\n\t\t$paths = $this->input->get('rm', array(), 'array');\n\t\t$folder = $this->input->get('folder', '', 'path');\n\n\t\t$redirect = 'index.php?option=com_media&folder=' . $folder;\n\n\t\tif ($tmpl == 'component')\n\t\t{\n\t\t\t// We are inside the iframe\n\t\t\t$redirect .= '&view=mediaList&tmpl=component';\n\t\t}\n\n\t\t$this->setRedirect($redirect);\n\n\t\t// Just return if there's nothing to do\n\t\tif (empty($paths))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\tif (!$user->authorise('core.delete', 'com_media'))\n\t\t{\n\t\t\t// User is not authorised to delete\n\t\t\tJError::raiseWarning(403, JText::_('JLIB_APPLICATION_ERROR_DELETE_NOT_PERMITTED'));\n\n\t\t\treturn false;\n\t\t}\n\n\t\t// Set FTP credentials, if given\n\t\tJClientHelper::setCredentialsFromRequest('ftp');\n\n\t\t$ret = true;\n\n\t\tJPluginHelper::importPlugin('content');\n\t\t$dispatcher\t= JEventDispatcher::getInstance();\n\n\t\tif (count($paths))\n\t\t{\n\t\t\tforeach ($paths as $path)\n\t\t\t{\n\t\t\t\tif ($path !== JFile::makeSafe($path))\n\t\t\t\t{\n\t\t\t\t\t$dirname = htmlspecialchars($path, ENT_COMPAT, 'UTF-8');\n\t\t\t\t\tJError::raiseWarning(100, JText::sprintf('COM_MEDIA_ERROR_UNABLE_TO_DELETE_FOLDER_WARNDIRNAME', substr($dirname, strlen(COM_MEDIA_BASE))));\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$fullPath = JPath::clean(implode(DIRECTORY_SEPARATOR, array(COM_MEDIA_BASE, $folder, $path)));\n\t\t\t\t$object_file = new JObject(array('filepath' => $fullPath));\n\n\t\t\t\tif (is_file($object_file->filepath))\n\t\t\t\t{\n\t\t\t\t\t// Trigger the onContentBeforeDelete event.\n\t\t\t\t\t$result = $dispatcher->trigger('onContentBeforeDelete', array('com_media.file', &$object_file));\n\n\t\t\t\t\tif (in_array(false, $result, true))\n\t\t\t\t\t{\n\t\t\t\t\t\t// There are some errors in the plugins\n\t\t\t\t\t\tJError::raiseWarning(100, JText::plural('COM_MEDIA_ERROR_BEFORE_DELETE', count($errors = $object_file->getErrors()), implode('<br />', $errors)));\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t$ret &= JFile::delete($object_file->filepath);\n\n\t\t\t\t\t// Trigger the onContentAfterDelete event.\n\t\t\t\t\t$dispatcher->trigger('onContentAfterDelete', array('com_media.file', &$object_file));\n\t\t\t\t\t$this->setMessage(JText::sprintf('COM_MEDIA_DELETE_COMPLETE', substr($object_file->filepath, strlen(COM_MEDIA_BASE))));\n\t\t\t\t}\n\t\t\t\telseif (is_dir($object_file->filepath))\n\t\t\t\t{\n\t\t\t\t\t$contents = JFolder::files($object_file->filepath, '.', true, false, array('.svn', 'CVS', '.DS_Store', '__MACOSX', 'index.html'));\n\n\t\t\t\t\tif (empty($contents))\n\t\t\t\t\t{\n\t\t\t\t\t\t// Trigger the onContentBeforeDelete event.\n\t\t\t\t\t\t$result = $dispatcher->trigger('onContentBeforeDelete', array('com_media.folder', &$object_file));\n\n\t\t\t\t\t\tif (in_array(false, $result, true))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// There are some errors in the plugins\n\t\t\t\t\t\t\tJError::raiseWarning(100, JText::plural('COM_MEDIA_ERROR_BEFORE_DELETE', count($errors = $object_file->getErrors()), implode('<br />', $errors)));\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$ret &= !JFolder::delete($object_file->filepath);\n\n\t\t\t\t\t\t// Trigger the onContentAfterDelete event.\n\t\t\t\t\t\t$dispatcher->trigger('onContentAfterDelete', array('com_media.folder', &$object_file));\n\t\t\t\t\t\t$this->setMessage(JText::sprintf('COM_MEDIA_DELETE_COMPLETE', substr($object_file->filepath, strlen(COM_MEDIA_BASE))));\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// This makes no sense...\n\t\t\t\t\t\tJError::raiseWarning(100, JText::sprintf('COM_MEDIA_ERROR_UNABLE_TO_DELETE_FOLDER_NOT_EMPTY', substr($object_file->filepath, strlen(COM_MEDIA_BASE))));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "17e156cf9fe9142f1b0878a08f1538be", "score": "0.4951321", "text": "public function postDelete($mediaId)\n {\n $media = Media::findOrFail($mediaId);\n $media->delete();\n\n return redirect($this->admin->currentUrl())->with('notifications_below_header', [['type' => 'success', 'icon' => 'check-circle', 'title' => 'Success!', 'message' => 'The Media was successfully deleted.', 'dismissable' => false]]);\n }", "title": "" }, { "docid": "06053e18653b4705aa838e4d0af423fe", "score": "0.49484244", "text": "public function testDeleteMedia() {\n\t\tstatic::$eventModel->deleteMedia(1);\n\n\t\t$expectedTable = (new PHPUnit_ArrayDataSet(array(\n\t\t\t'Media' => array()\n\t\t)))->getTable('Media');\n\n\t\t$actualTable = $this->getConnection()->createQueryTable('Media', 'SELECT * FROM Media WHERE EventID = 1');\n\n\t\t$this->assertEquals(1, $this->getConnection()->getRowCount('Media'));\n\t\t$this->assertTablesEqual($expectedTable, $actualTable);\n\t}", "title": "" }, { "docid": "ed7fbf2dffa57b3b98b146ea710beac9", "score": "0.49430403", "text": "public function removeMedia(Request $request)\n {\n $input = $request->all();\n $gallery = $this->galleryRepository->findWithoutFail($input['id']);\n try {\n if ($gallery->hasMedia($input['collection'])) {\n $gallery->getFirstMedia($input['collection'])->delete();\n }\n } catch (\\Exception $e) {\n Log::error($e->getMessage());\n }\n }", "title": "" }, { "docid": "3c3371d2601fbcf4731f06fb3f70b248", "score": "0.49365482", "text": "public function admin_remove($id) {\n\t\t$this->autoRender = false;\n\t\t$media = $this->Media->find('first', array('conditions' => array('media_id' => $id)));\n\t\tif ($this->delete_file($media['Media']['media_img'], 'medias')) {\n\t\t\t$this->Media->delete($id);\n\t\t\t$this->Session->setFlash(\"Le media à bien été supprimé !\", 'notif');\n\t\t\t$this->redirect($this->referer());\n\t\t}\n\t}", "title": "" }, { "docid": "3ddd8705ae8f681a0af8a66f483c1c8e", "score": "0.4933245", "text": "protected function removePhoto(Blog $blog, Media $media)\n {\n if ($media) {\n if (File::isFile(public_path() . $this->relative_path . $media->name)) {\n File::delete(public_path() . $this->relative_path . $media->name);\n }\n $blog->media()->where('id', $media->id)->delete();\n\n return response()->json('حذف تصویر با موفقیت انجام شد.');\n }\n\n return response()->json('While deleting image an error was occurred', 403);\n }", "title": "" }, { "docid": "9229ec11afc74df8598a75b3b27f3e95", "score": "0.49115074", "text": "public function delete_album_image_delete()\r\n\t{\r\n\t\t$details=array('album_image_id'=>$this->uri->segment(2));\r\n\t\t$response = $this->album_image_api->_delete_album_image($details);\r\n\t\t$this->response($response, REST_Controller::HTTP_OK);\r\n\t}", "title": "" }, { "docid": "f099b6fe5a1f2439e82719124dc302cd", "score": "0.490587", "text": "function rmFavoriteMedia($username, $mediaid) {\n if (!existFavoriteMedia($username, $mediaid)) {\n return 0;\n }\n\t$query = \"delete from favorite where username='$username' and mediaid = '$mediaid'\";\n\t$result = mysql_query( $query );\n\n\tif (!$result)\n\t{\n\t die (\"rmFavoriteMedia() failed. Could not query the database: <br />\". mysql_error());\n\t}\n return 1;\n}", "title": "" }, { "docid": "e9642253f486e2365c24850e8d7cadcf", "score": "0.49020717", "text": "public function deleteMessage($request);", "title": "" }, { "docid": "f6c1af18a42847cbe5fa865bc7fe0294", "score": "0.49017653", "text": "public function destroy($id)\n {\n if (Auth::check()) {\n Media::find($id)->delete();\n return redirect()->route('media.index')\n ->with('success', 'Media deleted successfully')->with('email',Auth::user()->email);\n } else\n return view('errors.permission');\n }", "title": "" }, { "docid": "b3f7caafdb55051aa54c66a5f8318231", "score": "0.4900302", "text": "public function destroy($id)\n {\n Media::destroy($id);\n return redirect()->route('media.index')->withFlashSuccess('Media profile is deleted successfully.');\n }", "title": "" }, { "docid": "ab43ed6bd6dce15e02505a9073b7692c", "score": "0.4893255", "text": "public function deleteDocument($id)\n {\n $business_id = request()->session()->get('user.business_id');\n if (!(auth()->user()->can('superadmin') || $this->moduleUtil->hasThePermissionInSubscription($business_id, 'essentials_module'))) {\n abort(403, 'Unauthorized action.');\n }\n\n try {\n $media = Media::findOrFail($id);\n if ($media->model_type == 'Modules\\Essentials\\Entities\\ToDo') {\n $todo = ToDo::findOrFail($media->model_id);\n\n //Can delete document only if task is assigned by or assigned to the user\n if (in_array(auth()->user()->id, [$todo->user_id, $todo->created_by])) {\n unlink($media->display_path);\n $media->delete();\n }\n }\n $output = [\n 'success' => true,\n 'msg' => __('lang_v1.success')\n ];\n } catch (\\Exception $e) {\n \\Log::emergency(\"File:\" . $e->getFile(). \"Line:\" . $e->getLine(). \"Message:\" . $e->getMessage());\n\n $output = [\n 'success' => false,\n 'msg' => __('messages.something_went_wrong')\n ];\n }\n\n return $output;\n }", "title": "" }, { "docid": "4c481bd04c5a671f438556923787a540", "score": "0.4883757", "text": "public function delete($id)\n {\n $this->tipemedia_id = $id;\n TipeMedia::find($id)->delete();\n session()->flash('message', 'Tipe Media deleted successfully.');\n }", "title": "" }, { "docid": "16225d8d65a926dd9c157ea0941ef218", "score": "0.48825893", "text": "function imap_delete($stream_id, $msg_no, $options = null) {}", "title": "" }, { "docid": "f73562ee32bb04315699cf613932e914", "score": "0.4877505", "text": "public function deleteWhatsAppMedia($sender, $whatsAppUrlDeletionRequest)\n {\n list($response) = $this->deleteWhatsAppMediaWithHttpInfo($sender, $whatsAppUrlDeletionRequest);\n return $response;\n }", "title": "" }, { "docid": "0c85fc4ecb0e41f9cb24d5ee89c1eaa9", "score": "0.4877389", "text": "public function deleteAction($id)\n {\n $delete = function($id) {\n try {\n $this->mediaManager->delete($id, true);\n } catch (MediaNotFoundException $e) {\n throw new EntityNotFoundException($this->mediaClass, $id, $e); // will throw 404 Entity not found\n }\n };\n\n $view = $this->responseDelete($id, $delete);\n\n return $this->handleView($view);\n }", "title": "" }, { "docid": "dcee09a9987ddf84f3f920ba32ecc92c", "score": "0.48638156", "text": "public function delete() {\n\n\t\t// Does the media already exist?\n\t\tif ( false === $this->exists( $this->ID ) ) {\n\n\t\t\treturn false;\n\n\t\t}\n\n\t\t// Build the full filename.\n\t\t$file = $this->media_dir . '/' . $this->media_name . '.' . $this->media_type;\n\n\t\t// Try and delete the file first.\n\t\tif ( ! unlink( $file ) ) {\n\n\t\t\treturn false;\n\n\t\t}\n\n\t\t// Create new database connection.\n\t\t$db = new Database;\n\n\t\t// Prepare the delete statement.\n\t\t$query = $db->connection->prepare( 'DELETE FROM ' . $db->prefix . 'media WHERE ID = ? LIMIT 1' );\n\n\t\t// Bind parameters to the query.\n\t\t$query->bindParam( 1, $this->ID );\n\n\t\t// Execute the query.\n\t\t$query->execute();\n\n\t\treturn $this->reset( true );\n\n\t}", "title": "" }, { "docid": "7a3c3c4d471698486a6647aa65414095", "score": "0.4858641", "text": "public function delete(array $args = [], array $assoc_args = [])\n {\n $hard_delete = (bool) $this->get_flag_value($assoc_args, 'hard', false);\n $upload_dir = rtrim($this->get_flag_value($assoc_args, 'upload-dir', wp_upload_dir()['basedir']), '/');\n\n if ($hard_delete) {\n \\WP_CLI::confirm('Permanently delete orphaned media?', $assoc_args);\n }\n if (! file_exists($upload_dir) || ! is_dir($upload_dir)) {\n \\WP_CLI::error(sprintf('Invalid upload directory: %s', $upload_dir));\n }\n\n $orphaned_media = $this->get_diff_table($assoc_args);\n if (count($orphaned_media) < 1) {\n \\WP_CLI::success('No orphaned media items to delete.');\n }\n\n\n // Output information about what the CLI command is doing.\n \\WP_CLI::line(sprintf('%s deleting %d orphaned media.', $hard_delete ? 'Hard' : 'Soft', count($orphaned_media)));\n\n // Create a progress bar.\n $progress = new \\cli\\progress\\Bar('Progress', count($orphaned_media));\n\n // loop through items\n $files_deleted = [];\n foreach ($orphaned_media as $orphan) {\n\n $progress->tick();\n\n // check directory exists\n $directory_path = $upload_dir . '/' . $orphan->Path;\n if (! file_exists($directory_path) || ! is_dir($directory_path)) {\n \\WP_CLI::warning(sprintf('Invalid directory %s. Skipping file %s.', $directory_path, $orphan->File));\n\n continue;\n }\n\n if (! is_writable($directory_path)) {\n \\WP_CLI::warning(sprintf('Directory %s is not writable. Skipping file %s.', $directory_path, $orphan->File));\n\n continue;\n }\n\n // create file list\n $files = [\n $directory_path . '/' . $orphan->File\n ];\n if ($orphan->Sizes) {\n $sizes = explode(' ', $orphan->Sizes);\n $file_name = pathinfo($orphan->File, PATHINFO_FILENAME);\n $file_extension = pathinfo($orphan->File, PATHINFO_EXTENSION);\n foreach ($sizes as $size) {\n $files[] = sprintf('%s%s%s-%s.%s', $directory_path, '/', $file_name, $size, $file_extension);\n }\n }\n\n // delete files\n if (! $hard_delete) {\n foreach ($files as $file) {\n $files_deleted[] = (object)[\n 'File' => $file,\n 'Deleted' => 1\n ];\n }\n\n continue;\n }\n\n foreach ($files as $file) {\n if (! file_exists($file)) {\n $files_deleted[] = (object)[\n 'File' => $file,\n 'Deleted' => 0\n ];\n\n \\WP_CLI::warning(sprintf('Skipping invalid file %s.', $file));\n\n continue;\n }\n\n $success = unlink($file);\n if (! $success) {\n $files_deleted[] = (object)[\n 'File' => $file,\n 'Deleted' => 0\n ];\n\n \\WP_CLI::warning(sprintf('Unable to delete file %s.', $file));\n\n continue;\n } else {\n $files_deleted[] = (object)[\n 'File' => $file,\n 'Deleted' => 1\n ];\n }\n }\n }\n\n $progress->finish();\n\n \\WP_CLI\\Utils\\format_items('table', $files_deleted, ['File', 'Deleted']);\n }", "title": "" }, { "docid": "78320f15a6bb5b4cd392f70255532172", "score": "0.48572713", "text": "function post_delete_media($obj_type, $obj) {\n\t//$obj_type = 'media';\n\t//$obj = get_object($obj_type, $id);\n\t//dump($obj);\n\t$mediaObj = $obj;\n\tglobal $resizeArray;\n\t$path = $obj->path;\n\t$src = $obj->src; \n\tif($site_id = $obj->site_id) {\n\t $siteObj = get_object('site', $site_id);\n\t $doc_root = site_directory($siteObj) ?: $_SERVER['DOCUMENT_ROOT'];\n\t} else {\n\t $doc_root = $_SESSION['media_dir'] ?: $_SERVER['DOCUMENT_ROOT'];\n\t}\n\n @unlink($doc_root.$path.$obj->filename);\n @unlink($doc_root.$path.$obj->src);\n if($obj->resize) { \n foreach($resizeArray as $dir => $rAr) {\n @unlink($doc_root.$path.\"$dir/\".$obj->filename);\n @unlink($doc_root.$path.\"$dir/\".$obj->filename);\n }\n }\n update_parent_media_list($obj);\n \n /** remove from media_collection_map */\n if($mediaObj->parent_type == 'media_collection' && in_array($mediaObj->parent_field, ['map', 'media']) && $mediaObj->parent_id > 0) {\n db_query(\"DELETE from media_collection_map WHERE media_id={$mediaObj->id} AND media_collection_id={$mediaObj->parent_id}\");\n }\n \n return;\n /*\n $imagedir = get_media_file($obj);\n $org_file = $imagedir.image_size_dir('org').$obj->filename;\n ////echo(\"Imagedir for media $id = $imagedir<br>org_flie=$org_file<br>\");\n //echo(\"removing $org_file\");\n @unlink($org_file);\n if($obj->resize) {\n $thumb_file = $imagedir.image_size_dir('thumb').$obj->src;\n $small_file = $imagedir.image_size_dir('small').$obj->src;\n $big_file = $imagedir.image_size_dir('big').$obj->src;\n @unlink($big_file);\n @unlink($small_file);\n @unlink($thumb_file);\n }\n\n if($obj->descriptiontype_id == 10) {\n ////echo(\"post add media $id rebuilding gallery<br>\");\n $ptype = $obj->property_type;\n $pid = $obj->parent_id;\n build_gallery($ptype, $pid); // PHOTO ALBUM\n update_gallery_count($ptype, $pid);\n }\n */\n}", "title": "" }, { "docid": "1a05403d551cfcd98841bf5ebd426507", "score": "0.48437396", "text": "public function attachmentsIdDeleteAsyncWithHttpInfo($id)\n {\n $returnType = '';\n $request = $this->attachmentsIdDeleteRequest($id);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n return [null, $response->getStatusCode(), $response->getHeaders()];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "title": "" }, { "docid": "19097167abae397f5079581092318ca9", "score": "0.48008117", "text": "public function testAudioDelete()\n\t{\n\t\t$client = static::createClient([], [\n\t\t\t'PHP_AUTH_USER' => $this->username,\n\t\t\t'PHP_AUTH_PW' => $this->password,\n\t\t]);\n\n\t\t$client->request('DELETE', '/api/audio/3/delete');\n\n\t\t$this->assertEquals(200, $client->getResponse()->getStatusCode());\n\t}", "title": "" }, { "docid": "37a4f92f151cafe76cdda31b4cbe10ef", "score": "0.47644293", "text": "public function removePostMedia($post_id,$media_id,$link_type=null)\n\t{\n\t\t$post_id = (integer) $post_id;\n\t\t$media_id = (integer) $media_id;\n\t\t\n\t\t$strReq = 'DELETE FROM '.$this->table.' '.\n\t\t\t\t'WHERE post_id = '.$post_id.' '.\n\t\t\t\t'AND media_id = '.$media_id.' ';\n\t\tif ($link_type != null) {\n\t\t\t$strReq .= \"AND link_type = '\".$this->con->escape($link_type).\"'\";\n\t\t}\n\t\t$this->con->execute($strReq);\n\t\t$this->core->blog->triggerBlog();\n\t}", "title": "" }, { "docid": "e2b261c343b4cc1a3a6c9d62b3d56dfc", "score": "0.476292", "text": "public function deleteMediaType($mediatype_id) {\n\t\ttry {\n\t\t\t\n\t\t\treturn $this->invoke('deleteMediaType', array('mediatype_id' => $mediatype_id));\n\t\t\t\n\t\t} catch (Exception $ex) {\n\t\t\tthrow $ex;\n\t\t}\n\t}", "title": "" }, { "docid": "19df5bb87b2aa6d04d509de33e78b4ef", "score": "0.47565398", "text": "public function destroy($id)\n {\n $model = SocialMedia::find($id);\n\n $model->delete();\n\n return back()->with('success' , 'SocialMedia Deleted Successfully') ;\n\n }", "title": "" }, { "docid": "1692a91a0556cb817df1ef64c3fd3a8d", "score": "0.47542456", "text": "public function Remove ($path, $media = self::MEDIA_ALL, $notMin = FALSE) {\n\t\treturn $this->execRemove($path, $media, $notMin, FALSE);\n\t}", "title": "" }, { "docid": "3d2a46d24cefc3cda59d98cd856feb84", "score": "0.47496876", "text": "public function deleteAction() {\n\t\t$id = $this->getInput('id');\n\t\t$info = Dhm_Service_Brand::get($id);\n\t\tif ($info && $info['id'] == 0) $this->output(-1, '无法删除');\n\t\tUtil_File::del(Common::getConfig('siteConfig', 'attachPath') . $info['logo']);\n\t\t$result = Dhm_Service_Brand::delete($id);\n\t\tif (!$result) $this->output(-1, '操作失败');\n\t\t$this->output(0, '操作成功');\n\t}", "title": "" }, { "docid": "362d1f0b0dfd5b1541613f939882874b", "score": "0.47491208", "text": "public function removeMedia(Media $media)\n {\n $message = '';\n\n if ($media->getMediaRelations()->isEmpty()) {\n\n foreach ($media->getMediaScreens() as $mediaScreen) {\n $this->uploader->removeFile($mediaScreen->getFilename());\n $this->entityManager->remove($mediaScreen);\n }\n\n $this->uploader->removeFile($media->getFilename());\n $this->entityManager->remove($media);\n\n $this->entityManager->flush();\n\n return (object)[\n 'success' => true,\n 'message' => $message\n ];\n }\n\n return (object)[\n 'success' => false,\n 'message' => $this->removeMediaMessages($media)\n ];\n }", "title": "" }, { "docid": "4415c48fa824865a0bd46ef6aa3980fa", "score": "0.47466236", "text": "function deleteMediaProperty($clientID,$propertyID){\n global $RSMmediaURL;\n $results= array();\n\n // prepare cURL\n $ch = curl_init($RSMmediaURL . \"api_deleteProperty.php\");\n $data = 'clientID=' . $clientID . '&propertyID=' . $propertyID;\n\n // set options\n curl_setopt($ch, CURLOPT_POST , true );\n curl_setopt($ch, CURLOPT_POSTFIELDS , $data);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true );\n curl_setopt($ch, CURLOPT_HEADER , 0 );\n\n // grab URL and receive xml\n $xmlret = curl_exec($ch);\n\n // close cURL resource, and free up system resources\n curl_close($ch);\n\n // parse xml\n $xml = simplexml_load_string($xmlret);\n $xml_elements = $xml -> rows -> row;\n\n foreach ($xml_elements[0] -> column as $propertyValue) {\n if ($propertyValue -> attributes() -> name == 'result' ) $results['result' ] = trim($propertyValue);\n if ($propertyValue -> attributes() -> name == 'description') $results['description'] = trim($propertyValue);\n }\n\n if(!isset($results['result'])) {\n $results['result' ] = \"NOK\";\n $results['description'] = \"Missing response deleting property: clientID=\" . $clientID . ', propertyID=' . $propertyID ;\n }\n\n return $results;\n}", "title": "" }, { "docid": "cfc9fb99162c98d7e6b184606665f3ab", "score": "0.4746122", "text": "function deleteMediaFile($clientID,$itemID,$propertyID){\n global $RSMmediaURL;\n $results= array();\n\n // prepare cURL\n $ch = curl_init($RSMmediaURL . \"api_deleteFile.php\");\n $data = 'clientID=' . $clientID . '&itemID=' . $itemID . '&propertyID=' . $propertyID;\n\n // set options\n curl_setopt($ch, CURLOPT_POST , true );\n curl_setopt($ch, CURLOPT_POSTFIELDS , $data);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true );\n curl_setopt($ch, CURLOPT_HEADER , 0 );\n\n // grab URL and receive xml\n $xmlret = curl_exec($ch);\n\n // close cURL resource, and free up system resources\n curl_close($ch);\n\n // parse xml\n $xml = simplexml_load_string($xmlret);\n $xml_elements = $xml -> rows -> row;\n\n foreach ($xml_elements[0] -> column as $propertyValue) {\n if ($propertyValue -> attributes() -> name == 'result' ) $results['result' ] = trim($propertyValue);\n if ($propertyValue -> attributes() -> name == 'description') $results['description'] = trim($propertyValue);\n }\n\n if(!isset($results['result'])) {\n $results['result' ] = \"NOK\";\n $results['description'] = \"Missing response deleting file: clientID=\" . $clientID . ', itemID=' . $itemID . ', propertyID=' . $propertyID ;\n }\n\n return $results;\n}", "title": "" }, { "docid": "f69bf2b8c50cb6cdb29c474dc243e422", "score": "0.4746091", "text": "public static function delete( $path )\n\t{\n\t\t$silo = Media::get_silo( $path, true );\n\t\tPlugins::act( 'media_delete_before', $path );\n\t\tif ( $path == '' ) {\n\t\t\t$result = false;\n\t\t}\n\t\telse {\n\t\t\t$result = $silo->silo_delete( $path );\n\t\t}\n\t\tPlugins::act( 'media_delete_after', $path, $result );\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "00d6d756f7e0055bbf1d04b9529fd612", "score": "0.47336054", "text": "public function deleteWhatsAppTemplateAsyncWithHttpInfo($sender, $templateName)\n {\n $request = $this->deleteWhatsAppTemplateRequest($sender, $templateName);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($request) {\n return $this->deleteWhatsAppTemplateResponse($response, $request->getUri());\n },\n function ($exception) {\n $statusCode = $exception->getCode();\n $response = $exception->getResponse();\n $e = new ApiException(\n \"[{$statusCode}] {$exception->getMessage()}\",\n $statusCode,\n $response ? $response->getHeaders() : null,\n $response ? (string) $response->getBody() : null\n );\n throw $this->deleteWhatsAppTemplateApiException($e);\n }\n );\n }", "title": "" }, { "docid": "985844a8152a977bdda04e4a06374b3c", "score": "0.47330695", "text": "public function cleanMedia() {\n /** @var \\Drupal\\media_entity\\MediaInterface $media */\n foreach ($this->media as $media) {\n $media->delete();\n }\n }", "title": "" }, { "docid": "a585cd3912fde2d2d8f98c9165ea019d", "score": "0.4724038", "text": "public function delete($image_id);", "title": "" }, { "docid": "350a3bb10b53e5a3100526d79b83725c", "score": "0.47182408", "text": "public function testDeleteAccountMedia()\n {\n }", "title": "" }, { "docid": "7a0a9f92f77c37b171c5bc7f039ec1d8", "score": "0.46881485", "text": "public function deleteAction()\n {\n header(\"Content-Type: Application/JSON\");\n \n $result = array(\n 'errors' => true,\n 'result' => $this->translate('Invalid request')\n );\n \n if ($this->getParam('id') && is_numeric($this->getParam('id'))) {\n try {\n $id = (int) $this->getParam('id');\n $this->model->remove($id);\n $result['errors'] = false;\n $result['result'] = $this->translate('Video removed');\n } catch (\\Exception $e) {\n $result['result'] = $e->getMessage();\n }\n }\n \n print_r(json_encode($result));\n }", "title": "" }, { "docid": "fbc14860605c49bd09c6fe4b3618044d", "score": "0.4686155", "text": "public function delete( $id ) {\n\t\t// -------------------------------------------------------------------------------------------------------------\n\t\t// Get the Calendar Media Entry\n\t\t// -------------------------------------------------------------------------------------------------------------\n\t\t$return = $this->getForId($id);\n\t\tif ( $return['status'] > 200 ) {\n\t\t\treturn $this->return_handler->results(400,\"Entry already deleted.\",new stdClass());\n\t\t}\n\t\t$calendar_media = $return['response'];\n\t\t// -------------------------------------------------------------------------------------------------------------\n\t\t// Remove the image from the calendar media folder (skipping the temp media folder)\n\t\t// -------------------------------------------------------------------------------------------------------------\n\t\t$this->load->model('file/file_upload');\n\t\t$return = $this->file_upload->delete('calendar',$calendar_media->media_url);\n\t\tif ( $return['status'] >= 300 ) {\n\t\t\treturn $return;\n\t\t}\n\t\t// -------------------------------------------------------------------------------------------------------------\n\t\t// Delete the Calendar Media Entry\n\t\t// -------------------------------------------------------------------------------------------------------------\n\t\t$return = $this->deleteTable($id);\n\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "fb8c836a1eeef84a619706efd9dad423", "score": "0.46861324", "text": "public function deleteMessage(int $messageId): void;", "title": "" }, { "docid": "c3d42d52f6026081cec7353ad4a2ece2", "score": "0.4678859", "text": "public function DELETEEntitySocialmedia( $entity_id, $gen_id) {\n $params = array();\n $params['entity_id'] = $entity_id;\n $params['gen_id'] = $gen_id;\n return CentralIndex::doCurl(\"DELETE\",\"/entity/socialmedia\",$params);\n }", "title": "" }, { "docid": "f6d132b0a38214fef78d57e9bf0c0712", "score": "0.46576297", "text": "public function destroy($id)\n {\n // Menghapus data kategori\n $socialmedia = SocialMedia::find($id);\n $socialmedia->delete();\n toastr()->success('Social Media berhasil dihapus!');\n return redirect()->route('socialmedias');\n }", "title": "" }, { "docid": "3d8ec64a0d7f6562ae0ff5ca19ec0267", "score": "0.4652561", "text": "public function hookActionProductDelete(array $params)\n {\n $ids_shops = $this->getContextShopsIds();\n $this->removeProductMedia($params['id_product'], $ids_shops)\n or $this->addContextError($this->l('An error occurred while attempting to delete media.'));\n }", "title": "" }, { "docid": "83f61fc47868b2347c3e9bd7c66f8b4d", "score": "0.4645183", "text": "public function delete()\n {\n if (!empty($this->_session)) {\n $bearer_token = $this->_session->getBearerToken();\n } else {\n $bearer_token = Session::$bearerToken;\n }\n \n $id = $this->_data['attributes']['id'];\n \n $request = new Request(\\MomaSDK\\MomaPIX::$apiURL.static::$_endpoint.\"/\".$id);\n \n $request -> setRequestHeader(\n array (\n \"Apikey: \". \\MomaSDK\\MomaPIX::$apiKey,\n \"Accept: \". \\MomaSDK\\MomaPIX::$acceptType,\n \"Content-Type: \". \\MomaSDK\\MomaPIX::$contentType,\n \"Authorization: Bearer \". $bearer_token\n )\n );\n \n $request -> setRequestType(\"DELETE\");\n $request -> execute();\n \n $response = $request->getResponse();\n \n return $response;\n \n }", "title": "" }, { "docid": "10a8cfe964b6a6aa8763a758299c6475", "score": "0.46404597", "text": "public function delete($pictureId);", "title": "" }, { "docid": "91ccbac3feead4f9f4deb0ae8b554b2e", "score": "0.46250865", "text": "public function deleteAttachment() {\n\n //check if file exists in the database\n $attachment = \\App\\Models\\Attachment::Where('attachment_uniqiueid', request()->route('uniqueid'))->first();\n\n //confirm thumb exists\n if ($attachment->attachment_directory != '') {\n if (Storage::exists(\"files/$attachment->attachment_directory\")) {\n Storage::deleteDirectory(\"files/$attachment->attachment_directory\");\n }\n }\n\n $attachment->delete();\n\n //hide and remove row\n $jsondata['dom_visibility'][] = array(\n 'selector' => '#expense_attachment_' . $attachment->attachment_id,\n 'action' => 'slideup-slow-remove',\n );\n\n //response\n return response()->json($jsondata);\n }", "title": "" }, { "docid": "f9b0a02154586fcfea069a8c4be9d845", "score": "0.46247777", "text": "public function destroy($id)\n {\n $imagen_auditorio = ImagenesAuditorio::where('id_auditorio','=',$id)->get();\n if (count($imagen_auditorio) == 0) {\n return $this->sendError('Imagenes por auditorio no encontradas');\n }\n ImagenesAuditorio::where('id_auditorio','=',$id)->delete();\n return $this->sendResponse($imagen_auditorio->toArray(), 'Imagenes por auditorio eliminadas con éxito');\n }", "title": "" }, { "docid": "022be76bdb6e515eb7a65775551dd00c", "score": "0.46147373", "text": "public function delete_vimeo_album() {\n // Checking wp_nonce\n check_ajax_referer( $this->wp_nonce, 'security' );\n\n if (empty($this->access_token)) {\n throw new Exception(\n 'You can not upload a file without an access token. You can find this token on your app page, or generate ' .\n 'one using `auth.php`.'\n );\n }\n\n // Checking if album id is exists or not\n if( empty($_POST['album_id']) ) {\n return;\n }\n\n // Instantiate the library with your client id, secret and access token (pulled from dev site)\n $lib = new Vimeo( $this->client_id, $this->client_secret, $this->access_token );\n\n $response = $lib->request( \n '/me/albums/'.$_POST['album_id'], \n '', \n 'DELETE' \n );\n\n if( $response ) {\n echo wp_json_encode($response['body']);\n }\n\n\n die();\n }", "title": "" } ]
29b6ce81f04506d47de91a2138134f01
/ CREATE TABLE IF NOT EXISTS Person( academicCode SERIAL PRIMARY KEY, personType PersonType, name VARCHAR(120) NOT NULL, username VARCHAR(15), address VARCHAR(256), birthdate DATE, nationality VARCHAR(30), nif CHAR(9) UNIQUE NOT NULL, password VARCHAR(256) NOT NULL, phoneNumber VARCHAR(12), imageURL VARCHAR(256), visible INTEGER DEFAULT 1, tsv tsvector );
[ { "docid": "87af4978fa60efa9c2e3c2be6f678d09", "score": "0.0", "text": "function isLoginCorrect($username, $password){\n global $conn;\n\n try{\n $query = 'SELECT * FROM PERSON WHERE LOWER(username) = LOWER(?) ';// AND password = ?\";\n\n $stmt = $conn->prepare($query);\n $stmt->execute(array($username));\n $user = $stmt->fetch();\n \n $result = password_verify($password, $user['password']);\n \n // $result !== false means it found the user with the password\n if($result !== false){\n return true; //$user['username'];\n }else{\n return false;\n }\n\n }catch(PDOException $e){\n //echo $query . \"<br>\" . $e->getMessage();\n return false;\n }catch(DatabaseException $e){\n //echo \"Unexpected Database Error: \" . $e->getMessage();\n return false;\n }catch(Exception $e){\n //echo \"Unexpected Database Error: \" . $e->getMessage();\n return false;\n }\n\n}", "title": "" } ]
[ { "docid": "153fd0470a87a8640a5144bafb8fba76", "score": "0.5986141", "text": "public static function rdv_create_table_function();", "title": "" }, { "docid": "7834baf70c6da971405a625e7223fda1", "score": "0.5847953", "text": "function create_table()\n {\n }", "title": "" }, { "docid": "7834baf70c6da971405a625e7223fda1", "score": "0.5847953", "text": "function create_table()\n {\n }", "title": "" }, { "docid": "82a382bc74202dffb87f4301c2b858fd", "score": "0.5704288", "text": "function create_assign_vaults_table(){\n $table_name = \"zv_assign_vaults\";\n $fields = array();\n if (!Schema::hasTable($table_name)){\n\n $fields[] = array('name' => 'user_id', 'type' => 'text');\n $fields[] = array('name' => 'chambers', 'type' => 'mediumtext');\n $fields[] = array('name' => 'secrets', 'type' => 'mediumtext');\n \n $response = $this->createTable($table_name, $fields);\n }\n\n }", "title": "" }, { "docid": "2f4374ccd93a48101e26a32011b1506c", "score": "0.5700471", "text": "public abstract function createTable();", "title": "" }, { "docid": "2044e1fd1a647c26e899449f62a5dc6f", "score": "0.5629068", "text": "public function createTable ()\n {\n }", "title": "" }, { "docid": "47ae39c80a90e4d049b0b41b331d00b1", "score": "0.5589965", "text": "function createCarsTable($db){\n $db->exec(\"CREATE TABLE IF NOT EXISTS cars (id INTEGER PRIMARY KEY, manufacturer TEXT, year INTEGER, price INTEGER)\");\n}", "title": "" }, { "docid": "eb012760f3447f1f39d091d6964fee53", "score": "0.5564832", "text": "private function create(){\n try {\n Capsule::schema()->create(\n 'pandi_token_table',\n function ($table) {\n /** @var \\Illuminate\\Database\\Schema\\Blueprint $table */\n $table->increments('id');\n $table->text('token');\n $table->string('token_type');\n $table->date('expires_at')->nullable();\n $table->timestamps();\n }\n );\n } catch (\\Exception $e) {\n echo \"Unable to create table: {$e->getMessage()}\";\n } \n }", "title": "" }, { "docid": "37c0ac55e684419a5c82d9d8494d2389", "score": "0.5553785", "text": "function createTableSql () {\n return \"CREATE TABLE IF NOT EXISTS users (\n username STRING PRIMARY KEY,\n password STRING);\n \";\n }", "title": "" }, { "docid": "5d09d021bb2574db94429b86ab3d5861", "score": "0.55530363", "text": "function createDatabaseTable($tableJSON,$typeTrans){\n $table = json_decode($tableJSON);\n $cols = array();\n foreach ($table->fields as $field){\n $myCol = \"'\".$field->name.\"' \".$typeTrans[$field->type];\n if ($field->name==$table->identifier_field){\n $myCol .= ' PRIMARY KEY';\n } else if ($field->required){\n $myCol .= \" NOT NULL\";\n }\n foreach ($field->properties as $prop){\n $myCol .= \" \".$prop;\n }\n $cols[] = $myCol;\n }\n $createTableSQL = \"CREATE TABLE \".$table->name.\" (\n \".implode($cols,\",\\n\").\"\n );\";\n return $createTableSQL;\n}", "title": "" }, { "docid": "2bd8efb6f8c2097504cff5cc59f5010d", "score": "0.5508995", "text": "private function createTable()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "084d217fb17ed6d7faff6645770e4860", "score": "0.5472643", "text": "private function create_table()\n {\n $sql = \"CREATE TABLE IF NOT EXISTS $this->table_name (\n id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, \n dns_type VARCHAR(10) NOT NULL,\n domain VARCHAR(30) NOT NULL,\n content VARCHAR(30) NOT NULL,\n ttl INT(6) DEFAULT 120\n )\";\n if ($this->conn->query($sql) !== TRUE) {\n die(\"Error creating table: \" . $this->conn->error);\n }\n }", "title": "" }, { "docid": "0e1e80ec6ec39b299ed949f7b13dbffa", "score": "0.5447638", "text": "public function createTable()\n {\n $sql = \"CREATE TABLE $this->tableName (\n id mediumint(9) NOT NULL AUTO_INCREMENT,\n name VARCHAR(255) DEFAULT '' NOT NULL,\n type VARCHAR(255) DEFAULT '' NOT NULL,\n max VARCHAR(255) DEFAULT '' NOT NULL,\n columns TEXT DEFAULT '' NOT NULL,\n remote_id VARCHAR(255) DEFAULT '' NOT NULL,\n UNIQUE KEY id (id)\n );\";\n\n dbDelta($sql);\n }", "title": "" }, { "docid": "b3b68b465daf4579a9c1bed15f3c0e71", "score": "0.5445108", "text": "public static function createTable()\n {\n }", "title": "" }, { "docid": "8934a4a003da70437158423a51a1ca26", "score": "0.5421983", "text": "function crearTablaMigracion() {\n\t\t\t$cnx= conectar_postgres();\n\t\t\t$cons = \"CREATE TABLE central.usuariosMigracion( usuario character varying(100) , nombre character varying(200), cedula character varying(200), clave character varying(200), cambioclave date, fechaultimoacceso date, fechacaducidad date, super integer , error text)WITH ( OIDS=FALSE)\";\n\t \t\t\n\t\t\t$res = @pg_query($cnx, $cons);\n\t\t\t\tif (!$res) {\n\t\t\t\t\n\t\t\t\t\techo \"<p class='error1'> Error de ejecucion </p>\".pg_last_error().\"<br>\";\n\t\t\t\t\techo \"<p class= 'subtitulo1'>Comando SQL </p> <br>\".$cons.\"<br>\"; \t\t\t\t\n\t\t\t\t\techo \"<br><br>\";\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "a66befd4bb04ca669de1230ba1444c7a", "score": "0.5421814", "text": "public function createTable( $type );", "title": "" }, { "docid": "95f79c6195a600792b59719bbeb72a68", "score": "0.54177797", "text": "private function createDummyTable() {}", "title": "" }, { "docid": "8966dc3545bee575ee19b9721af72827", "score": "0.5393391", "text": "function createTable($name = '') {\n\t\tif (!$name) {\n\t\t\t$name = \"table\" . strval($this->id);\n\t\t\t$this->id++;\n\t\t}\n\t\tself::$db->exec(\"CREATE TABLE $name (id INT PRIMARY KEY AUTO_INCREMENT,\" .\n\t\t\t\t\" letters VARCHAR(20), number INT, big TEXT, appt DATE, gender ENUM('male', 'female'))\");\n\t}", "title": "" }, { "docid": "8da6bb566dbdf541e5f68620cef316f1", "score": "0.535613", "text": "public function create_rent_table()\n {\n $this->connect();\n $this->connection->query(\"CREATE TABLE rent( \n Rent_Id INT(100) UNSIGNED PRIMARY KEY,\n Rent_Name VARCHAR(22) NOT NULL,\n Rent_Age VARCHAR(22) NOT NULL)\");\n $this->disconnect(); \n }", "title": "" }, { "docid": "f48a0177fee59c39af3406b8562ae9de", "score": "0.53460366", "text": "public function create_car_table()\n {\n $this->connect();\n $this->connection->query(\"CREATE TABLE car( \n Car_Id INT(100) UNSIGNED PRIMARY KEY,\n Car VARCHAR(22) NOT NULL,\n Car_Color VARCHAR(22) NOT NULL,\n Year_of_manufacture VARCHAR(22) NOT NULL )\");\n $this->disconnect(); \n }", "title": "" }, { "docid": "a750181b62549abfeb657be3d3344fc2", "score": "0.5336686", "text": "private function createTournamentTable()\n {\n $sql = 'CREATE TABLE IF NOT EXISTS ' . self::TOURNAMENT_TABLE . '\n (\n `id` INT(11) NOT NULL AUTO_INCREMENT,\n `grouping` VARCHAR(64),\n `casino` VARCHAR(64),\n `game` VARCHAR(64),\n `schedule` datetime,\n `cost` VARCHAR(64),\n `fee_percent` VARCHAR(64),\n `s_points` VARCHAR(64),\n `notes` VARCHAR(64),\n PRIMARY KEY (`id`)\n );';\n $this->query($sql);\n }", "title": "" }, { "docid": "beb99b3a059233c89d78f9b247233637", "score": "0.53140956", "text": "protected function createTable() {\n\t\t$columns = array(\n\t\t\t\t'cid'\t=>\t'int',\n\t\t\t\t'filename'\t=>\t'string',\n\t\t\t\t'status'\t=>\t'boolean',\n\t\t);\n\t\t$this->getDbConnection()->createCommand(\n\t\t\t\t$this->getDbConnection()->getSchema()->createTable($this->tableName(), $columns)\n\t\t)->execute();\n\t}", "title": "" }, { "docid": "5726cb3327ba5063a97874dd57ca9bbc", "score": "0.5309675", "text": "function db_createProductTable()\n{\n db_run(\"DROP TABLE IF EXISTS \" . TBL_PRODUCTS);\n\n db_run(\"CREATE TABLE \" . TBL_PRODUCTS .\n \"(prodid varchar(32) primary key,\n creation_date datetime,\n ownerid int unsigned,\n title text,\n paypal text,\n provision int,\n index owner_index(ownerid))\");\n}", "title": "" }, { "docid": "63d8799b344fd6acf51277d4acd7cfe0", "score": "0.530763", "text": "function trailsforthepeople_db_update_2001() {\n\t$db = db_connect();\n\n\t$sql='\n\t\tCREATE TABLE IF NOT EXISTS jobs (\n\t\t id serial,\n\t\t title varchar(100),\n\t\t start_time timestamp DEFAULT current_timestamp,\n\t\t end_time timestamp,\n\t\t creator_email varchar(100),\n\t\t percent_complete integer DEFAULT 0,\n\t\t status varchar(30),\n\t\t status_msg varchar(255),\n\t\t PRIMARY KEY(id)\n\t\t);\n\t\tGRANT ALL PRIVILEGES ON TABLE jobs TO trails;\n\t\tGRANT ALL PRIVILEGES ON SEQUENCE jobs_id_seq TO trails;\n\t';\n\n\t$result = pg_query($db, $sql) or exit(\"Error running query.\");\n}", "title": "" }, { "docid": "8c88eed475759eb2ffbd122ec44d7ccf", "score": "0.52625895", "text": "protected function createTable()\n {\n $stmt = 'CREATE TABLE IF NOT EXISTS \"' . $this->name;\n $stmt.= '\" (\"' . $this->keyColumnName . '\" TEXT PRIMARY KEY, \"';\n $stmt.= $this->valueColumnName . '\" TEXT);';\n $this->db->exec($stmt);\n }", "title": "" }, { "docid": "2191a443d7dc1a39ec9b42b446163b6e", "score": "0.5262407", "text": "function create_data_table($tablename,$userlink)\n {\n $sqlquery = \"CREATE TABLE IF NOT EXISTS `\". $tablename. \"` (\n `sid` INTEGER(11) NOT NULL,\n `data` TEXT,\n\t PRIMARY KEY (`sid`)\n ) ENGINE=InnoDB;\";\n mysql_query($sqlquery,$userlink);\n echo(mysql_error());\n }", "title": "" }, { "docid": "8ed10a7f36b43b7a0d9c710bf62b3046", "score": "0.52288735", "text": "abstract function createTable($tablename);", "title": "" }, { "docid": "90dd95d9fecf578eac1655e573c34075", "score": "0.5227762", "text": "public function create_table(){\n $sql = \"CREATE TABLE IF NOT EXISTS `\".$this->database.\"`.`\".$this->table.\"` ( \";\n $sql .= \"`competitor_ID` INT UNSIGNED NOT NULL AUTO_INCREMENT , \";\n $sql .= \"`competitor_firstname` VARCHAR(100) NOT NULL , \";\n $sql .= \"`competitor_lastname` VARCHAR(100) NOT NULL , \";\n $sql .= \"`competitor_email` VARCHAR(100) NULL , \";\n $sql .= \"`competitor_phone` VARCHAR(20) NULL , \";\n $sql .= \"`competitor_team_ID` INT UNSIGNED NOT NULL DEFAULT '0', \";\n $sql .= \"`competitor_team_name` VARCHAR(100) NULL , \";\n $sql .= \"`competitor_date_entered` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, \";\n $sql .= \"UNIQUE (`competitor_ID`, `competitor_team_ID`),\";\n $sql .= \"PRIMARY KEY (`competitor_ID`)\";\n $sql .= \") ENGINE = InnoDB;\";\n\n // echo('<pre>');\n // echo($sql);\n // echo('</pre>');\n\n $result = mysqli_query($this->connection, $sql);\n if(!$result){\n echo('There was a problem creating the COMPETITORS table!!!<br>');\n }\n }", "title": "" }, { "docid": "8af4ec50b1d8a3f78a33ab2a08dfdbd5", "score": "0.5216811", "text": "abstract protected function create_db_structure();", "title": "" }, { "docid": "c0334fff65b8c84d7e72e40188726b63", "score": "0.52139884", "text": "public function createPersona(){ \n \n $sql = \"INSERT INTO persona(nombres,apellidos,fecha_nac,dui) VALUES(?,?,?,?)\";\n #se guardan los parametros (datos recogidos) en una variable,como un arreglo\n $params = array($this->nombre,$this->apellido,$this->fecha_n,$this->dui);\n #Retorna el estado que devuelve el metodo executeRow \n return Database::executeRow($sql, $params);\n }", "title": "" }, { "docid": "676cb7820de90e0d730cd09b4447f882", "score": "0.5212091", "text": "private function create_user_table(){\n\t\t\t$sql = \"CREATE TABLE IF NOT EXISTS Users (\n\t\t\tid INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,\n\t\t\tfirstName VARCHAR(256),\n\t\t\tlastName VARCHAR(256),\n\t\t\temail VARCHAR(256),\n\t\t\tusername VARCHAR(256),\n\t\t\tpassword VARCHAR(256) \n\t\t\t)\";\n\t\t\t$this->query_exec($sql);\t\t \t\n\t\t}", "title": "" }, { "docid": "a8c5d0b5787961b5fc59bb04db6d1d7b", "score": "0.5201992", "text": "public function create_presentacion()\n {\n $this->addPermisoGlobal('sfsv');\n $tabla = \"du_presentacion\";\n $nom_tabla = $this->getNomTabla($tabla);\n $a_sql = [];\n\n $a_sql[] = \"CREATE TABLE IF NOT EXISTS $nom_tabla (\n id_schema integer NOT NULL,\n id_direccion integer NOT NULL,\n id_ubi integer NOT NULL,\n pres_nom text,\n pres_telf text,\n pres_mail text,\n zona text,\n observ text\n );\";\n $a_sql[] = \"ALTER TABLE $nom_tabla OWNER TO $this->user_orbix\";\n\n $this->executeSql($a_sql);\n\n $this->delPermisoGlobal('sfsv');\n }", "title": "" }, { "docid": "9a0b03591ba8d25747e045bca7533d83", "score": "0.519645", "text": "function define_table($table) {\n // The first field should be the primary key\n switch ($table) {\n case \"staff\":\n $table_name = \"TUSERS\";\n $structure_array = [\n array(\"db_name\" => \"UserCode\", \"type\" => \"text\", \"primary\" => TRUE),\n array(\"db_name\" => \"Email\", \"type\" => \"text\", \"isams\" => \"SchoolEmailAddress\", \"primary\" => FALSE),\n array(\"db_name\" => \"StaffID\", \"type\" => \"int\", \"isams\" => \"Id\", \"primary\" => FALSE),\n array(\"db_name\" => \"PersonID\", \"type\" => \"int\", \"isams\" => \"PersonId\", \"primary\" => FALSE),\n array(\"db_name\" => \"Initials\", \"type\" => \"text\", \"primary\" => FALSE),\n array(\"db_name\" => \"Title\", \"type\" => \"text\", \"primary\" => FALSE),\n array(\"db_name\" => \"First Name\", \"type\" => \"text\", \"isams\" => \"Forename\", \"primary\" => FALSE),\n array(\"db_name\" => \"Surname\", \"type\" => \"text\", \"primary\" => FALSE),\n array(\"db_name\" => \"Preferred Name\", \"type\" => \"text\", \"isams\" => \"PreferredName\", \"primary\" => FALSE),\n array(\"db_name\" => \"TeachingStaff\", \"type\" => \"int\", \"primary\" => FALSE)\n ];\n break;\n case \"pupils\":\n $table_name = \"TUSERS\";\n $structure_array = [\n array(\"db_name\" => \"UserCode\", \"type\" => \"text\", \"primary\" => FALSE),\n array(\"db_name\" => \"Email\", \"type\" => \"text\", \"isams\" => \"EmailAddress\", \"primary\" => FALSE),\n array(\"db_name\" => \"PupilID\", \"type\" => \"int\", \"isams\" => \"Id\", \"primary\" => TRUE),\n array(\"db_name\" => \"SchoolID\", \"type\" => \"text\", \"isams\" => \"SchoolId\", \"primary\" => FALSE),\n array(\"db_name\" => \"Initials\", \"type\" => \"text\", \"primary\" => FALSE),\n array(\"db_name\" => \"Title\", \"type\" => \"text\", \"primary\" => FALSE),\n array(\"db_name\" => \"First Name\", \"type\" => \"text\", \"isams\" => \"Forename\", \"primary\" => FALSE),\n array(\"db_name\" => \"Surname\", \"type\" => \"text\", \"primary\" => FALSE),\n array(\"db_name\" => \"Preferred Name\", \"type\" => \"text\", \"isams\" => \"Preferredname\", \"primary\" => FALSE)\n ];\n break;\n /*case \"boardinghouses\":\n $table_name = \"tblboardinghouses\";\n $structure_array = [\n [\"BoardingHouseID\", \"int\", \"Id\"],\n [\"HouseMaster\", \"text\"],\n [\"AssistantHouseMaster\", \"text\"],\n [\"Name\", \"text\"],\n [\"Code\", \"text\"],\n [\"Type\", \"text\"]\n ];\n break;\n case \"forms\":\n $table_name = \"tblforms\";\n $structure_array = [\n [\"FormID\", \"text\", \"Id\"],\n [\"Tutor\", \"text\"],\n [\"AssistantFormTutor\", \"text\"],\n [\"SecondAssistantFormTutor\", \"text\"],\n [\"NationalCurriculumYear\", \"int\"],\n [\"Author\", \"text\"],\n [\"Form\", \"text\"],\n [\"LastUpdated\", \"text\"]\n ];\n break;*/\n case \"terms\":\n $table_name = \"TTERMS\";\n $structure_array = [\n array(\"db_name\" => \"TermID\", \"type\" => \"int\", \"isams\" => \"Id\", \"primary\" => TRUE),\n array(\"db_name\" => \"Author\", \"type\" => \"text\", \"primary\" => FALSE),\n array(\"db_name\" => \"SchoolYear\", \"type\" => \"int\", \"primary\" => FALSE),\n array(\"db_name\" => \"Name\", \"type\" => \"text\", \"primary\" => FALSE),\n array(\"db_name\" => \"StartDate\", \"type\" => \"text\", \"primary\" => FALSE),\n array(\"db_name\" => \"FinishDate\", \"type\" => \"text\", \"primary\" => FALSE),\n array(\"db_name\" => \"LastUpdated\", \"type\" => \"text\", \"primary\" => FALSE)\n ];\n break;\n case \"sets\":\n $table_name = \"TGROUPS\";\n $structure_array = [\n array(\"db_name\" => \"SetID\", \"type\" => \"int\", \"isams\" => \"Id\", \"primary\" => TRUE),\n array(\"db_name\" => \"SubjectID\", \"type\" => \"int\", \"isams\" => \"SubjectId\", \"primary\" => FALSE),\n array(\"db_name\" => \"YearId\", \"type\" => \"int\", \"primary\" => FALSE),\n array(\"db_name\" => \"Name\", \"type\" => \"text\", \"primary\" => FALSE)\n ];\n break;\n case \"setteachers\":\n $table_name = \"TUSERGROUPS\";\n $structure_array = [\n array(\"db_name\" => \"SetListID\", \"type\" => \"int\", \"isams\" => \"SetTeacherId\", \"primary\" => TRUE),\n array(\"db_name\" => \"StaffId\", \"type\" => \"int\", \"primary\" => FALSE),\n array(\"db_name\" => \"SetId\", \"type\" => \"int\", \"isams\" => \"Id\", \"primary\" => FALSE),\n array(\"db_name\" => \"PrimaryTeacher\", \"type\" => \"int\", \"primary\" => FALSE),\n array(\"db_name\" => \"UserType\", \"type\" => \"text\", \"primary\" => FALSE),\n array(\"db_name\" => \"Name\", \"type\" => \"text\", \"primary\" => FALSE)\n ];\n break;\n case \"setlists\":\n $table_name = \"TUSERGROUPS\";\n $structure_array = [\n array(\"db_name\" => \"SetListID\", \"type\" => \"int\", \"isams\" => \"Id\", \"primary\" => TRUE),\n array(\"db_name\" => \"SetId\", \"type\" => \"int\", \"primary\" => FALSE),\n array(\"db_name\" => \"SchoolId\", \"type\" => \"text\", \"primary\" => FALSE)\n ];\n break;\n case \"subjects\":\n $table_name = \"TSUBJECTS\";\n $structure_array = [\n array(\"db_name\" => \"SubjectID\", \"type\" => \"int\", \"primary\" => TRUE),\n array(\"db_name\" => \"Title\", \"type\" => \"text\", \"primary\" => FALSE)\n ];\n break;\n default:\n return FALSE;\n break;\n }\n return [$table_name, $structure_array];\n}", "title": "" }, { "docid": "7ff6683bc93409ced9d8795f9d1bd31f", "score": "0.51878124", "text": "function sqlCriaTabela() {\n $sql = \"CREATE TABLE MyGuests (\n id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,\n nome VARCHAR(50) NOT NULL,\n email VARCHAR(50) NOT NULL,\n telefone VARCHAR(13) NOT NULL,\n mensagem VARCHAR(75) NOT NULL\n )\";\n return $sql;\n}", "title": "" }, { "docid": "8e0b5c86c8ad8440ae8e2a9b8d1e278d", "score": "0.51800376", "text": "public static function rdv_create_table_message_function();", "title": "" }, { "docid": "fd9ee30c66dc4423360280b85e480a05", "score": "0.5178208", "text": "function create_table($conn, $table) {\n\t\t$result = null;\n\t\tif (strcmp($table, TABLE1) == 0) {\n\t\t\t$query = \"CREATE TABLE $table(un VARCHAR(128) NOT NULL, \n\t\t\t\t\t\t\t\t\t\tpw VARCHAR(128) NOT NULL, \n\t\t\t\t\t\t\t\t\t\tpresalt VARCHAR(128) NOT NULL,\n\t\t\t\t\t\t\t\t\t\tpostsalt VARCHAR(128) NOT NULL,\n\t\t\t\t\t\t\t\t\t\tis_admin BOOLEAN NOT NULL,\n\t\t\t\t\t\t\t\t\t\tPRIMARY KEY(un))\";\n\t\t\t$result = $conn->query($query);\n\t\t} else if (strcmp($table, TABLE2) == 0) {\n\t\t\t// Signature = sequence of 20 bytes after header of file.\n\t\t\t$query = \"CREATE TABLE $table(malware_name VARCHAR(128) NOT NULL, \n\t\t\t\t\t\t\t\t\t\tbyte_signature CHAR(20) NOT NULL,\n\t\t\t\t\t\t\t\t\t\tun VARCHAR(128) NOT NULL, \n\t\t\t\t\t\t\t\t\t\tid SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT,\n\t\t\t\t\t\t\t\t\t\tPRIMARY KEY(id))\";\n\t\t\t$result = $conn->query($query);\n\t\t}\n\t\tif (!$result) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "9eea1880db8f7fd0c4f50c00e1886227", "score": "0.5165848", "text": "private function _createRegSignalTable()\n {\n //crea la tabla reg_signal si no existe\n $this->connection->exec(\"\n CREATE TABLE IF NOT EXISTS reg_user (\n user TEXT PRIMARY KEY,\n pass TEXT\n )\n \");\n\n \n //crea la tabla reg_signal si no existe\n $this->connection->exec(\"\n CREATE TABLE IF NOT EXISTS reg_signal (\n Id INTEGER PRIMARY KEY,\n user TEXT,\n nombre TEXT,\n autor TEXT,\n fecha TEXT,\n tamano INTEGER,\n descr TEXT,\n clasific TEXT,\n refSenial TEXT,\n tipoSenial TEXT,\n matSenial TEXT,\n kilometraje TEXT,\n cantHombres TEXT,\n estado TEXT,\n fechaConstr TEXT\n )\n \");\n }", "title": "" }, { "docid": "15e3fdaab8209b67e9a6fc694fe41e7e", "score": "0.5163093", "text": "public function Create()\n {\n // Columnas de la tabla \n $this->Colum('id_seccion')->INT(11)->PrimaryKey()->autoincrement()->NotNull();\n $this->Colum('grado_seccion')->ENUM('Primero','Segundo','Tercero','Cuarto','Quinto','Sesto')->DefaultNull();\n $this->Colum('char_seccion')->VARCHAR(1)->DefaultNull();\n $this->Colum('id_docente')->INT(11)->NotNull();\n // Claves foraneas de la tabla \n $this->ForeingKey('id_docente')->References('docentes','id_docente');\n }", "title": "" }, { "docid": "07850b0b146db02abeb178714f6d7d0d", "score": "0.5160545", "text": "function createDictionaryTable()\r\n {\r\n $result=false;\r\n if ($this->_connection!=null)\r\n {\r\n if ($this->_dictionary!='')\r\n {\r\n if ($this->_drivername=='borland_ibase')\r\n {\r\n $q=\"CREATE TABLE $this->_dictionary (\\n\";\r\n $q.=\" DICT_ID INTEGER NOT NULL,\\n\";\r\n $q.=\" DICT_TABLENAME VARCHAR(60) CHARACTER SET NONE COLLATE NONE,\\n\";\r\n $q.=\" DICT_FIELDNAME VARCHAR(60) CHARACTER SET NONE COLLATE NONE,\\n\";\r\n $q.=\" DICT_PROPERTY VARCHAR(60) CHARACTER SET NONE COLLATE NONE,\\n\";\r\n $q.=\" DICT_VALUE1 VARCHAR(60) CHARACTER SET NONE COLLATE NONE,\\n\";\r\n $q.=\" DICT_VALUE2 VARCHAR(200) CHARACTER SET NONE COLLATE NONE);\\n\";\r\n $this->execute($q);\r\n\r\n $q=\"ALTER TABLE $this->_dictionary ADD PRIMARY KEY (DICT_ID);\\n\";\r\n $this->execute($q);\r\n\r\n $result=true;\r\n }\r\n else\r\n {\r\n $q=\"CREATE TABLE $this->_dictionary (\";\r\n $q.=\" `dict_id` int(11) unsigned NOT NULL auto_increment,\";\r\n $q.=\" `dict_tablename` varchar(60) NULL,\";\r\n $q.=\" `dict_fieldname` varchar(60) NULL,\";\r\n $q.=\" `dict_property` varchar(60) NULL,\";\r\n $q.=\" `dict_value1` varchar(60) NULL,\";\r\n $q.=\" `dict_value2` text NULL,\";\r\n $q.=\" PRIMARY KEY (`dict_id`)\";\r\n $q.=\");\";\r\n $this->execute($q);\r\n\r\n $result=true;\r\n }\r\n }\r\n }\r\n return($result);\r\n }", "title": "" }, { "docid": "9bdd2ed696a1aee92367440720c864c4", "score": "0.51477236", "text": "public function createTable( $tableName, $datatype, $creationInfo, $key ) {\n $query = $this->getSqlCreateTable( $tableName, $datatype, $creationInfo, $key );\n $this->exec( $query );\n }", "title": "" }, { "docid": "c7e18905c1064f3fbfcaebebcdb4c2ef", "score": "0.5143648", "text": "abstract function createTable($tablename, $collation);", "title": "" }, { "docid": "7c7b7260ec41c03483086e1d24924999", "score": "0.51347923", "text": "function crearTablaMigracion() {\n\t\t\t$cnx= conectar_postgres();\n\t\t\t$cons = \"CREATE TABLE consumo.movimientoMigracion1( compania character varying(60) , almacenppal character varying(30) , fecha date , comprobante character varying(30) , tipocomprobante character varying(30) , numero character varying(25) , cedula character varying(15), detalle text, autoid integer , usuariocre character varying(50), fechacre timestamp without time zone, modificadox character varying(50), fechamod timestamp without time zone, estado character varying(2), cantidad double precision, vrcosto double precision, totcosto double precision , vrventa double precision, totventa double precision,\n porciva double precision, vriva double precision, porcretefte double precision, vrretefte double precision, porcdescto double precision, vrdescto double precision, porcica double precision, vrica double precision, centrocosto character varying(100) , idsolicitud integer, aprobadox character varying(50), fechaaprobac timestamp without time zone, nodocafectado character varying(10), docafectado character varying(30), numerocontrato character varying(15), tipotraslado character varying(1), almacenppald character varying(30), idtraslado integer , anio integer , nofactura character varying(50), vrfactura double precision, incluyeiva integer ,\n compcontable character varying(50), numcompcont character varying(100), conceptortefte character varying(200), regmedicamento double precision, noliquidacion integer, numservicio integer, grupo character varying(150), vobo integer, usuariovobo character varying(200), fechavobo timestamp with time zone, notanovisado character varying(500), numorden integer, idescritura integer, numerocontrolados double precision, idregistro serial , cum character varying(1500), motivodev character varying(1000), fechadespacho date, motivodevolucion text, lote character(150), error text )WITH ( OIDS=FALSE)\";\n\t \t\t\n\t\t\t$res = @pg_query($cnx, $cons);\n\t\t\t\tif (!$res) {\n\t\t\t\t\n\t\t\t\t\techo \"<p class='error1'> Error de ejecucion </p>\".pg_last_error().\"<br>\";\n\t\t\t\t\techo \"<p class= 'subtitulo1'>Comando SQL </p> <br>\".$cons.\"<br>\"; \t\t\t\t\n\t\t\t\t\techo \"<br><br>\";\t\t\t\n\t\t\t\t\t//echo \"<br><br>\";\n\t\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "241405e72021758049abc0756e809f74", "score": "0.51314497", "text": "function createRFIDTable($tablename)\n{\n $db = DB::getInstance();\n\n $value = '';\n $sql = \"CREATE TABLE IF NOT EXISTS $tablename (\n `Time` DATETIME NOT NULL,\n `Pressure` DOUBLE NULL,\n `Voltage` DOUBLE NULL,\n `Current` DOUBLE NULL,\n PRIMARY KEY (`Time`),\n UNIQUE INDEX `Time_UNIQUE` (`Time` ASC))\nENGINE = InnoDB\";\n\n if (!$db->query($sql, $value)->error())\n {\n\n return true;\n }\n\n\treturn false;\n\n}", "title": "" }, { "docid": "3d65e16bf7f7cf3ab887ee29aa185bef", "score": "0.51268435", "text": "private function createTable($propertiesMetaData, $tableName) {\r\n $columns = array();\r\n $columns[] = 'UUID VARCHAR(40) NOT NULL';\r\n foreach ($propertiesMetaData as $definition) {\r\n if ($definition['name'] !== 'UUID') {\r\n $columntype = $this->getDatabaseType($definition['type']);\r\n $columnsize = isset($definition['size']) ? '('.$definition['size'].')' : '';\r\n $columns[] = $this->escapeTableOrColumnName($definition['name']). ' '.$columntype.$columnsize;\r\n }\r\n }\r\n $columns[] = 'PRIMARY KEY (UUID)';\r\n $query = 'CREATE TABLE '.$tableName.' ('.implode(',', $columns).')';\r\n $this->executeNoResultQuery($query);\r\n }", "title": "" }, { "docid": "95591bb459d02bd4fd0d0622bae5b093", "score": "0.51263213", "text": "function createTable() {\n\t}", "title": "" }, { "docid": "423ae9336c2c5c9af92cfb61efd38826", "score": "0.5124149", "text": "public function run()\n {\n Person::create([\n 'cpf' => '03256858530',\n 'registration_number' => '5619199',\n 'registry_entity' => 'SSP',\n 'registry_entity_uf_id' => 17,\n 'name' => 'Jobson Tenório do Nascimento',\n 'mother' => 'Lúcia Maria Tenório do Nascimento',\n 'father' => 'João Pereira do Nascimento',\n ]);\n }", "title": "" }, { "docid": "dcb4cb0cd9d352cbbbc0d69b63fcab9c", "score": "0.5102832", "text": "protected function createTable()\n {\n $schema = $this->db->createSchema();\n $schema->create($this->table)\n ->int('id')->increment()\n ->varchar('key', 255)\n ->int('start')\n ->int('ttl')\n ->text('value')\n ->primary('id');\n\n $this->db->query($schema);\n }", "title": "" }, { "docid": "151104b589716af463c948ef141286c7", "score": "0.5101091", "text": "public function initTable()\r\n {\r\n $sm = $this->connection->getSchemaManager();\r\n if (!$sm->tablesExist([$this->policyTableName])) {\r\n $schema = new Schema();\r\n $table = $schema->createTable($this->policyTableName);\r\n $table->addColumn('id', 'integer', array('autoincrement' => true));\r\n $table->addColumn('p_type', 'string', ['notnull' => false]);\r\n $table->addColumn('v0', 'string', ['notnull' => false]);\r\n $table->addColumn('v1', 'string', ['notnull' => false]);\r\n $table->addColumn('v2', 'string', ['notnull' => false]);\r\n $table->addColumn('v3', 'string', ['notnull' => false]);\r\n $table->addColumn('v4', 'string', ['notnull' => false]);\r\n $table->addColumn('v5', 'string', ['notnull' => false]);\r\n $table->setPrimaryKey(['id']);\r\n $sm->createTable($table);\r\n }\r\n }", "title": "" }, { "docid": "c9603b2d7e1cbd6d83e4431e8840db5d", "score": "0.50932366", "text": "public function createMigrationTable() {}", "title": "" }, { "docid": "4f734825d6a69c35214cdd44248efcd1", "score": "0.50927585", "text": "function createPartyTable($conn){\n $sql = \"CREATE TABLE AdventureDB.PartyTable (\n PartyID INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,\n Name VARCHAR(60) NOT NULL\n )\";\t\n $ptCreated = $conn->query($sql);\n if($GLOBALS['debug']){\n if ($ptCreated) {\n echo \"<br>DEBUG:PartyTable created successfully\";\n } else {\n echo \"<br>DEBUG:Error creating PartyTable: \" . $conn->error;\n }\n } \n}", "title": "" }, { "docid": "9ef7ecbbb084f57f4dfed7c167dccc99", "score": "0.5089461", "text": "function creatDB(){\r\n $conn = OpenCon();\r\n $sql = \"CREATE TABLE IF NOT EXISTS `csv` (\r\n `TRAIN_LINE` varchar(100) NOT NULL,\r\n `ROUTE_NAME` varchar(100) NOT NULL,\r\n `RUN_NUMBER` varchar(100) NOT NULL,\r\n `OPERATOR_ID` varchar(100) NOT NULL,\r\n PRIMARY KEY (`RUN_NUMBER`)\r\n )\";\r\n\r\n if ($conn->query($sql) === TRUE) {\r\n return \" <label class='text-success'>Table was created successfully <label>\";\r\n } else {\r\n return \" <label class='text-success'> Table is already exists </label>\" . $conn->error;\r\n }\r\n $conn->close();\r\n}", "title": "" }, { "docid": "bf4b6ced0e08c945d023269f5230d906", "score": "0.50886726", "text": "public function create ($presentation){\r\n\r\n $sql = \"INSERT INTO PONENCIA(cod_documento,fecha_publicacion,isbn,nombre_congreso) VALUES (\".$presentation->getCod_documento().\",\r\n '\".$presentation->getFecha_publicacion().\"',\r\n '\".$presentation->getIsbn().\"',\r\n '\".$presentation->getNombre_Congreso().\"'\r\n );\";\r\n \r\n pg_Exec($this->conexion,$sql);\r\n }", "title": "" }, { "docid": "1b75168e175a26df2e9e095f2f8491ad", "score": "0.50810623", "text": "function trailsforthepeople_db_update_2004() {\n\t$db = db_connect();\n\n\t$sql='\n\t\tCREATE TABLE IF NOT EXISTS hint_maps (\n\t\t id serial,\n\t\t title varchar(100),\n\t\t image_filename_local varchar(255),\n\t\t last_edited TIMESTAMP DEFAULT current_timestamp,\n\t\t last_refreshed TIMESTAMP DEFAULT current_timestamp,\n\t\t url_external VARCHAR(2083),\n\t\t PRIMARY KEY(id)\n\t\t);\n\t\tGRANT ALL PRIVILEGES ON TABLE hint_maps TO trails;\n\t\tGRANT ALL PRIVILEGES ON SEQUENCE hint_maps_id_seq TO trails;\n\t';\n\n\t$result = pg_query($db, $sql) or exit(\"Error running query.\");\n}", "title": "" }, { "docid": "a91f1c54660b73cf9f9fc7c780924657", "score": "0.5080392", "text": "public function createTable(){\nreturn $this->pdo->exec(\n\"CREATE TABLE `user` (\n `id` int(11) NOT NULL AUTO_INCREMENT,\n `name` varchar(45) DEFAULT NULL,\n `text` text,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\"\n);\n}", "title": "" }, { "docid": "223b29277f49725abedefffdad947317", "score": "0.5077988", "text": "public function insert($persona);", "title": "" }, { "docid": "ed20a5740e4acdbaf854cc0c5f2f3108", "score": "0.50760347", "text": "function create_person($person_data) {\n $person_id = $this->model->insert($person_data);\n return $person_id;\n }", "title": "" }, { "docid": "1ea2716862aa2f95817d068c7a1e1f11", "score": "0.5065649", "text": "function initialTable()\n{\n\n $conn = dbConnect();\n\n // sql to create table\n $sql = \"CREATE TABLE IF NOT EXISTS userlist (\nu varchar(50) NOT NULL,\np text NOT NULL,\nd varchar(30) NOT NULL\nPRIMARY KEY (`u`)\n)\";\n\n if ($conn->query($sql) === TRUE) {\n $result= true;\n } else {\n echo \"Error creating table: \" . $conn->error;\n $result= false; \n }\n\n $conn->close();\n return $result;\n}", "title": "" }, { "docid": "d7aec967da1c36b19edf38c7f4d62b9c", "score": "0.5063516", "text": "function create_users_table($conn)\r\n{\r\n$conn->query(\"CREATE TABLE IF NOT EXISTS users (\r\n\tid INT PRIMARY KEY AUTO_INCREMENT,\r\n\tlogin VARCHAR(255) UNIQUE,\r\n\tmail VARCHAR(255) UNIQUE,\r\n\tgroupe VARCHAR(20),\r\n\tpassword VARCHAR(255),\r\n\ttoken VARCHAR(255))\");\r\n}", "title": "" }, { "docid": "566fecfd0815491468b9c265169efafd", "score": "0.5043106", "text": "private function create_table(){\n\n $sql = \"CREATE TABLE IF NOT EXISTS mails ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,\n company TEXT NULL,\n contactName TEXT NULL,\n contactMail TEXT NULL,\n invoiceCenter TEXT NULL,\n payment TEXT NULL,\n dMessage TEXT NULL,\n bookLike TEXT NULL,\n yMessage TEXT NULL,\n attention INTEGER NULL,\n date TEXT NULL)\";\n\n $this->db->query($sql);\n }", "title": "" }, { "docid": "7e3d4bedc6368465a4d1cd1076913227", "score": "0.50424373", "text": "public function init()\n {\n $db = CasbinRule::getDb();\n $tableName = CasbinRule::tableName();\n $table = $db->getTableSchema($tableName);\n if (!$table) {\n $res = $db->createCommand()->createTable($tableName, [\n 'id' => 'pk',\n 'ptype' => 'string',\n 'v0' => 'string',\n 'v1' => 'string',\n 'v2' => 'string',\n 'v3' => 'string',\n 'v4' => 'string',\n 'v5' => 'string',\n ])->execute();\n }\n }", "title": "" }, { "docid": "584b666cbcb1554bdb98d23a07a39e9f", "score": "0.50379586", "text": "public function createSchema();", "title": "" }, { "docid": "f6832200ae73570010e45d424e29cd46", "score": "0.5036406", "text": "function views_pgsql_create_table_sql($name, $table) {\n $sql_fields = array();\n foreach ($table['fields'] as $field_name => $field) {\n $sql_fields[] = _views_pgsql_create_field_sql($field_name, _views_pgsql_process_field($field));\n }\n\n $sql_keys = array();\n if (isset($table['primary key']) && is_array($table['primary key'])) {\n $sql_keys[] = 'PRIMARY KEY ('. implode(', ', $table['primary key']) .')';\n }\n if (isset($table['unique keys']) && is_array($table['unique keys'])) {\n foreach ($table['unique keys'] as $key_name => $key) {\n $sql_keys[] = 'CONSTRAINT {'. $name .'}_'. $key_name .'_key UNIQUE ('. implode(', ', $key) .')';\n }\n }\n\n $sql = \"CREATE TABLE {\". $name .\"} (\\n\\t\";\n $sql .= implode(\",\\n\\t\", $sql_fields);\n if (count($sql_keys) > 0) {\n $sql .= \",\\n\\t\";\n }\n $sql .= implode(\",\\n\\t\", $sql_keys);\n $sql .= \"\\n)\";\n $statements[] = $sql;\n\n if (isset($table['indexes']) && is_array($table['indexes'])) {\n foreach ($table['indexes'] as $key_name => $key) {\n $statements[] = _views_pgsql_create_index_sql($name, $key_name, $key);\n }\n }\n\n return $statements;\n}", "title": "" }, { "docid": "9d3ded820ead4f963eb767a0012c6d42", "score": "0.5031128", "text": "function create_table(){\n\t\t$tables = array();\n\t\t/**\n\t\t* Table structure for table 'documents'\n\t\t*/\n\t\n\t\t$fields = array(\n\t\t\tarray(\"user_access_identifier\"\t\t\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"auto_increment\"\t,\"key\"),\n\t\t\tarray(\"user_access_client\"\t\t\t\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"default '0'\"),\n\t\t\tarray(\"user_access_domain\"\t\t\t\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"default '0'\"\t\t,\"key\"),\n\t\t\tarray(\"user_access_browser\"\t\t\t\t,\"varchar(255)\"\t\t,\"\"\t\t\t,\"default ''\"),\n\t\t\tarray(\"user_access_platform\"\t\t\t,\"varchar(50)\"\t\t,\"NOT NULL\"\t,\"default ''\"),\n\t\t\tarray(\"user_access_ip_address\"\t\t\t,\"varchar(15)\"\t\t,\"\"\t\t\t,\"default ''\"\t\t,\"key\"),\n\t\t\tarray(\"user_access_reverse_dns_lookup\"\t,\"varchar(255)\"\t\t,\"NOT NULL\"\t,\"default ''\"),\n\t\t\tarray(\"user_access_referer\"\t\t\t\t,\"varchar(255)\"\t\t,\"NOT NULL\"\t,\"default ''\"\t\t,\"key\"),\n\t\t\tarray(\"user_access_accept_language\"\t\t,\"varchar(10)\"\t\t,\"\"\t\t\t,\"default ''\"),\n\t\t\tarray(\"user_access_user_identifier\"\t\t,\"integer\"\t\t\t,\"NOT NULL\"\t,\"default '-1'\"\t\t,\"key\"),\n\t\t\tarray(\"user_access_session_identifier\"\t,\"varchar(50)\"\t\t,\"NOT NULL\"\t,\"default '0'\"),\n\t\t\tarray(\"user_access_referal_qstring\"\t\t,\"text\"\t\t\t\t,\"\"\t\t\t,\"default ''\"),\n\t\t\tarray(\"user_access_bot_name\"\t\t\t,\"varchar(50)\"\t\t,\"\"\t\t\t,\"default ''\")\n\t\t\t\n\t\t);\n\t\t$primary =\"user_access_identifier\";\n\t\t$tables[count($tables)] = array(\"user_access\", $fields, $primary);\n\n\t\t$fields = array(\n\t\t\tarray(\"access_log_owner\"\t\t\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"default '0'\",\"key\"),\n\t\t\tarray(\"access_log_client\"\t\t\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"default '0'\"),\n\t\t\tarray(\"access_log_date\"\t\t\t\t,\"datetime\"\t\t\t,\"NOT NULL\"\t,\"default '0000-00-00 00:00:00'\"),\n\t\t\tarray(\"access_log_url\"\t\t\t\t,\"varchar(255)\"\t\t,\"NOT NULL\"\t,\"\"),\n\t\t\tarray(\"access_log_query_string\"\t\t,\"text\"\t\t\t\t,\"\"\t\t\t,\"\"),\n\t\t\tarray(\"access_log_type\"\t\t\t\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"default '0'\")\n\t\t);\n\t\t\n\t\t$primary =\"\";\n\t\t$tables[count($tables)] = array(\"user_access_log\", $fields, $primary);\n\n\t\t$fields = array(\n\t\t\tarray(\"access_ip\"\t\t\t,\"varchar(15)\"\t,\"NOT NULL\"\t,\"default '0.0.0.0'\"\t,\"key\"),\n\t\t\tarray(\"access_country\"\t\t,\"varchar(2)\"\t,\"NOT NULL\"\t,\"default ''\")\n\t\t);\n\t\t\n\t\t$primary =\"\";\n\t\t$tables[count($tables)] = array(\"user_access_ip_lookup\", $fields, $primary);\n\t\t\n\t\t\n\t\t$fields = array(\n\t\t\tarray(\"low_ip\"\t\t\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"default ''\"),\n\t\t\tarray(\"high_ip\"\t\t\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"default ''\"),\n\t\t\tarray(\"country_code\"\t,\"varchar(2)\"\t\t,\"NOT NULL\"\t,\"default ''\")\n\t\t);\n\t\t\n\t\t$primary =\"\";\n\t\t$tables[count($tables)] = array(\"user_access_ip_2_country\", $fields, $primary);\n\t\t\n\t\t\n\t\t$fields = array(\n\t\t\tarray(\"tld\"\t\t\t\t,\"varchar(5)\"\t\t,\"NOT NULL\"\t,\"default ''\"\t,\"key\"),\n\t\t\tarray(\"country\"\t\t\t,\"varchar(255)\"\t\t,\"NOT NULL\"\t,\"default ''\"),\n\t\t\tarray(\"fips104\"\t\t\t,\"varchar(5)\"\t\t,\"NOT NULL\"\t,\"default ''\"),\n\t\t\tarray(\"iso2\"\t\t\t,\"varchar(5)\"\t\t,\"NOT NULL\"\t,\"default ''\"),\n\t\t\tarray(\"iso3\"\t\t\t,\"varchar(5)\"\t\t,\"NOT NULL\"\t,\"default ''\"),\n\t\t\tarray(\"isono\"\t\t\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"default ''\"),\n\t\t\tarray(\"capital\"\t\t\t,\"varchar(255)\"\t\t,\"NOT NULL\"\t,\"default ''\"),\n\t\t\tarray(\"region\"\t\t\t,\"varchar(255)\"\t\t,\"NOT NULL\"\t,\"default ''\"),\n\t\t\tarray(\"currency\"\t\t,\"varchar(255)\"\t\t,\"NOT NULL\"\t,\"default ''\"),\n\t\t\tarray(\"currencycode\"\t,\"varchar(5)\"\t\t,\"NOT NULL\"\t,\"default ''\")\n\t\t);\n\t\t\n\t\t$primary =\"tld\";\n\t\t$tables[count($tables)] = array(\"user_access_countries\", $fields, $primary);\n\n\t\t\n\t\t$fields = array(\n\t\t\tarray(\"referal_identifier\"\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"auto_increment\"\t,\"key\"),\n\t\t\tarray(\"referal_url\"\t\t\t,\"varchar(255)\"\t\t,\"NOT NULL\"\t,\"default ''\")\n\t\t);\n\t\t\n\t\t$primary =\"referal_identifier\";\n\t\t$tables[count($tables)] = array(\"user_access_referals\", $fields, $primary);\n\t\t\n\t\treturn $tables;\n\t}", "title": "" }, { "docid": "9a00ee1e66f2d073bfaaea7ea3103693", "score": "0.5026719", "text": "private function createDatabaseStructure() {\n\t\t$sql = \"\ncreate table account (\n id int auto_increment not null,\n email VARCHAR(255),\n password VARCHAR(255),\n realname VARCHAR(255),\n groups VARCHAR(255),\n timedate timestamp default CURRENT_TIMESTAMP,\n lastseen timestamp,\n status char(1),\n primary key(id),\n unique index(email)\n);\n\ncreate table page (\n id int auto_increment not null,\n title VARCHAR(255),\n primary key(id),\n unique index(title)\n);\n\ncreate table page_version (\n id int auto_increment not null,\n page_id int not null,\n account_id int not null,\n content VARBINARY(100000000),\n commitcomment VARCHAR(255),\n read_permission VARCHAR(255),\n timedate timestamp default CURRENT_TIMESTAMP,\n primary key(id)\n);\n\t\t\";\n\t}", "title": "" }, { "docid": "1bfb6349a85b51d0a1ff126eee863559", "score": "0.5011662", "text": "function synteny_table($newsession_id, $synfilename) {\n\t## initialize bool\n\t$bool = 'true';\n\t\n\t## Get the first line of the file\n\t$header_line = exec(\"head -n 1 tmp/\" . $newsession_id . $synfilename);\n\t## split the line into items\n\t$header_pieces = explode(\"\\t\",$header_line);\n\t\n\t## the file header line is good\n\tif( $bool == 'true'){\n\t\t## Initialize a string to create fields for additional columns\n\t\t$userdef = \"\";\n\t\t## Iterate from the 7th column till the end\n\t\tfor( $i = 6; $i < count( $header_pieces); $i++){\n\t\t\t$userdef .= \"`\".$header_pieces[$i].\"`\".\"varchar(100) DEFAULT NULL,\";\n\t\t}\n\t\t## Check if there is a length function\n\t\t$check_length = array_search('length', $header_pieces);\n\t\t## if not create a column\n\t\tif($check_length == '') {\n\t\t\t$userdef .= \"`length` varchar(100) DEFAULT NULL,\";\n\t\t}\n\t\t## get the create statement\n\t\t$createTable = \"CREATE TABLE `{$newsession_id}_synteny` (\n\t\t\t`id` int(10) NOT NULL AUTO_INCREMENT,\n\t\t\t`org1` varchar(250) NOT NULL,\n\t\t\t`org1_start` int(10) unsigned NOT NULL,\n\t\t\t`org1_end` bigint(20) unsigned NOT NULL,\n\t\t\t`org2` varchar(250) NOT NULL,\n\t\t\t`org2_start` int(10) unsigned NOT NULL,\n\t\t\t`org2_end` bigint(20) unsigned NOT NULL,\n\t\t\t$userdef\n\t\t\t`SYNcolor` varchar(8) DEFAULT NULL,\n\t\t\tPRIMARY KEY (`id`),\n\t\t\tKEY `org1_start` (`org1_start`),\n\t\t\tKEY `org1_end` (`org1_end`),\n\t\t\tKEY `org2_start` (`org2_start`),\n\t\t\tKEY `org2_end` (`org2_end`)\n\t\t) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;\";\n\t\t## execute the \n\t\t$result = mysql_query($createTable);\n\t\tif(! $result){\n\t\t\t$bool = \"Unable to create the synteny table.<br>\" . mysql_error();\n\t\t}\n\t}\n\t## return the boolean information\n\treturn $bool;\n}", "title": "" }, { "docid": "57bb94994ded35efa778dfd6228a6d67", "score": "0.50104326", "text": "function Vytvor_tab_pri(){\r\n \r\n $db = napoj_db();\r\n\r\n $sql =<<<EOF\r\n CREATE TABLE PRIHLASENY\r\n (ID INTEGER PRIMARY KEY AUTOINCREMENT,\r\n ID_POUZ INT NOT NULL,\r\n ID_PRET INT NOT NULL,\r\n FOREIGN KEY(ID_POUZ) REFERENCES POUZIVATELIA(ID),\r\n FOREIGN KEY(ID_PRET) REFERENCES PRETEKY(ID));\r\nEOF;\r\n\r\n $ret = $db->exec($sql);\r\n if(!$ret){\r\n echo $db->lastErrorMsg();\r\n } else {\r\n echo \"Table created successfully<br>\";\r\n }\r\n $db->close();\r\n}", "title": "" }, { "docid": "f703d9870f7180da587ef3b3b4bb8de9", "score": "0.50075436", "text": "public function generales_personas($clave,$nombre,$paterno,$materno,$calle,$numero,$colonia,$cp,$pais,$estado,$municipio,$nacionalidad,$rfc,$nss,$curp,$genero,$correo,$telefono,$celular,$fecha_nac,$fecha,$hora,$status, $edad, $civil) {\n $sqli = \"insert into personas (persona_cve,persona_nombre,persona_paterno ,persona_materno,persona_calle,persona_calle_numero,persona_colonia,persona_cp,pais_id,est_id,mcp_id,nacionalidad_id,persona_rfc ,persona_nss ,persona_curp, persona_genero,persona_correo, persona_tel_fijo, persona_tel_movil, persona_fecnac, persona_registro_dia, persona_registro_hora, persona_status, persona_edad, persona_edo_civil ) \"\n .\"values ('$clave','$nombre','$paterno','$materno','$calle','$numero','$colonia','$cp','$pais','$estado','$municipio','$nacionalidad','$rfc','$nss','$curp', '$genero','$correo', '$telefono', '$celular','$fecha_nac', '$fecha', '$hora', '$status', '$edad','$civil');\";\n $resulti = pg_query($this->conexion, $sqli) or die(\"Error pn: \". pg_last_error());//persona nueva\n $this->inserts='1';\n \n $sqlnpid=\"select * from vw_personas where persona_cve = '$clave'\";\n $resultnpid=pg_query($this->conexion,$sqlnpid) or die(\"Error npid: \". pg_last_error());//nueva persona id\n $rownpid= pg_fetch_array($resultnpid);\n $this->npid=$rownpid['persona_id'];\n }", "title": "" }, { "docid": "0b56e94f2ec759c2c36a55793e009f1d", "score": "0.4997946", "text": "public function createTable()\n {\n $table = self::$table_name;\n $SQL = <<<EOD\n CREATE TABLE IF NOT EXISTS `$table` (\n `unassigned_id` INT(11) NOT NULL AUTO_INCREMENT,\n `file_path` TEXT NOT NULL,\n `file_md5` VARCHAR(64) NOT NULL DEFAULT '',\n `extension` VARCHAR(64) NOT NULL DEFAULT '',\n `locale_locale` VARCHAR(2) NOT NULL DEFAULT 'EN',\n `locale_source` TEXT NOT NULL,\n `locale_source_plain` TEXT NOT NULL,\n `locale_md5` VARCHAR(64) NOT NULL DEFAULT '',\n `locale_type` ENUM ('DEFAULT', 'CUSTOM', 'METRIC') NOT NULL DEFAULT 'DEFAULT',\n `translation_text` TEXT NOT NULL,\n `translation_text_plain` TEXT NOT NULL,\n `translation_md5` VARCHAR(64) NOT NULL DEFAULT '',\n `timestamp` TIMESTAMP,\n PRIMARY KEY (`unassigned_id`)\n )\n COMMENT='Unassigned locale sources for the i18nEditor',\n ENGINE=InnoDB\n AUTO_INCREMENT=1\n DEFAULT CHARSET=utf8\n COLLATE='utf8_general_ci'\nEOD;\n try {\n $this->app['db']->query($SQL);\n $this->app['monolog']->addDebug(\"Created table '\".self::$table_name);\n } catch (\\Doctrine\\DBAL\\DBALException $e) {\n throw new \\Exception($e);\n }\n }", "title": "" }, { "docid": "9b9733760aec2bb9142ad6f94e10bdc5", "score": "0.49864718", "text": "function show_create_table($table)\n\t{\n\t\t$query = $this->write_query(\"\n\t\t\tSELECT a.attnum, a.attname as field, t.typname as type, a.attlen as length, a.atttypmod as lengthvar, a.attnotnull as notnull\n\t\t\tFROM pg_class c\n\t\t\tLEFT JOIN pg_attribute a ON (a.attrelid = c.oid)\n\t\t\tLEFT JOIN pg_type t ON (a.atttypid = t.oid)\n\t\t\tWHERE c.relname = '{$this->table_prefix}{$table}' AND a.attnum > 0\n\t\t\tORDER BY a.attnum\n\t\t\");\n\n\t\t$lines = array();\n\t\t$table_lines = \"CREATE TABLE {$this->table_prefix}{$table} (\\n\";\n\n\t\twhile($row = $this->fetch_array($query))\n\t\t{\n\t\t\t// Get the data from the table\n\t\t\t$query2 = $this->write_query(\"\n\t\t\t\tSELECT pg_get_expr(d.adbin, d.adrelid) as rowdefault\n\t\t\t\tFROM pg_attrdef d\n\t\t\t\tLEFT JOIN pg_class c ON (c.oid = d.adrelid)\n\t\t\t\tWHERE c.relname = '{$this->table_prefix}{$table}' AND d.adnum = '{$row['attnum']}'\n\t\t\t\");\n\n\t\t\tif(!$query2)\n\t\t\t{\n\t\t\t\tunset($row['rowdefault']);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$row['rowdefault'] = $this->fetch_field($query2, 'rowdefault');\n\t\t\t}\n\n\t\t\tif($row['type'] == 'bpchar')\n\t\t\t{\n\t\t\t\t// Stored in the engine as bpchar, but in the CREATE TABLE statement it's char\n\t\t\t\t$row['type'] = 'char';\n\t\t\t}\n\n\t\t\t$line = \" {$row['field']} {$row['type']}\";\n\n\t\t\tif(strpos($row['type'], 'char') !== false)\n\t\t\t{\n\t\t\t\tif($row['lengthvar'] > 0)\n\t\t\t\t{\n\t\t\t\t\t$line .= '('.($row['lengthvar'] - 4).')';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(strpos($row['type'], 'numeric') !== false)\n\t\t\t{\n\t\t\t\t$line .= '('.sprintf(\"%s,%s\", (($row['lengthvar'] >> 16) & 0xffff), (($row['lengthvar'] - 4) & 0xffff)).')';\n\t\t\t}\n\n\t\t\tif(!empty($row['rowdefault']))\n\t\t\t{\n\t\t\t\t$line .= \" DEFAULT {$row['rowdefault']}\";\n\t\t\t}\n\n\t\t\tif($row['notnull'] == 't')\n\t\t\t{\n\t\t\t\t$line .= ' NOT NULL';\n\t\t\t}\n\n\t\t\t$lines[] = $line;\n\t\t}\n\n\t\t// Get the listing of primary keys.\n\t\t$query = $this->write_query(\"\n\t\t\tSELECT ic.relname as index_name, bc.relname as tab_name, ta.attname as column_name, i.indisunique as unique_key, i.indisprimary as primary_key\n\t\t\tFROM pg_class bc\n\t\t\tLEFT JOIN pg_index i ON (bc.oid = i.indrelid)\n\t\t\tLEFT JOIN pg_class ic ON (ic.oid = i.indexrelid)\n\t\t\tLEFT JOIN pg_attribute ia ON (ia.attrelid = i.indexrelid)\n\t\t\tLEFT JOIN pg_attribute ta ON (ta.attrelid = bc.oid AND ta.attrelid = i.indrelid AND ta.attnum = i.indkey[ia.attnum-1])\n\t\t\tWHERE bc.relname = '{$this->table_prefix}{$table}'\n\t\t\tORDER BY index_name, tab_name, column_name\n\t\t\");\n\n\t\t$primary_key = array();\n\t\t$primary_key_name = '';\n\n\t\t$unique_keys = array();\n\n\t\t// We do this in two steps. It makes placing the comma easier\n\t\twhile($row = $this->fetch_array($query))\n\t\t{\n\t\t\tif($row['primary_key'] == 't')\n\t\t\t{\n\t\t\t\t$primary_key[] = $row['column_name'];\n\t\t\t\t$primary_key_name = $row['index_name'];\n\t\t\t}\n\n\t\t\tif($row['unique_key'] == 't')\n\t\t\t{\n\t\t\t\t$unique_keys[$row['index_name']][] = $row['column_name'];\n\t\t\t}\n\t\t}\n\n\t\tif(!empty($primary_key))\n\t\t{\n\t\t\t$lines[] = \" CONSTRAINT $primary_key_name PRIMARY KEY (\".implode(', ', $primary_key).\")\";\n\t\t}\n\n\t\tforeach($unique_keys as $key_name => $key_columns)\n\t\t{\n\t\t\t$lines[] = \" CONSTRAINT $key_name UNIQUE (\".implode(', ', $key_columns).\")\";\n\t\t}\n\n\t\t$table_lines .= implode(\", \\n\", $lines);\n\t\t$table_lines .= \"\\n)\\n\";\n\n\t\treturn $table_lines;\n\t}", "title": "" }, { "docid": "268aa781748e841032822bd02c9d97a5", "score": "0.49860802", "text": "public function createTable() {\n\n $sql = \"CREATE TABLE IF NOT EXISTS `bk_color_codes` (\n\t\t`id` int(11) NOT NULL AUTO_INCREMENT,\n\t\t`name` varchar(30) NOT NULL DEFAULT '',\n\t\t`color` varchar(7) NOT NULL DEFAULT '',\n\t\t`text` varchar(7) NOT NULL DEFAULT '',\t\t\n\t\t`display_order` int(11) NOT NULL DEFAULT 0,\n `id_space` int(11) NOT NULL DEFAULT 1,\n `who_can_use` int(11) NOT NULL DEFAULT 1,\n\t\tPRIMARY KEY (`id`)\n\t\t);\";\n\n $this->runRequest($sql);\n\n $this->addColumn(\"bk_color_codes\", \"who_can_use\", \"int(11)\", 1);\n }", "title": "" }, { "docid": "7c79fac73ede9c54d21f4d069492f298", "score": "0.49818558", "text": "public function create_table($table, $definition, $index = array())\n {\n $create_sql = \"CREATE TABLE $table (\";\n if (!is_array($definition)) {\n throw new KumbiaException(\"Definición invalida para crear la tabla '$table'\");\n }\n $create_lines = array();\n $index = array();\n $unique_index = array();\n $primary = array();\n //$not_null = \"\";\n //$size = \"\";\n foreach ($definition as $field => $field_def) {\n if (isset($field_def['not_null'])) {\n $not_null = $field_def['not_null'] ? 'NOT NULL' : '';\n } else {\n $not_null = '';\n }\n if (isset($field_def['size'])) {\n $size = $field_def['size'] ? '('.$field_def['size'].')' : '';\n } else {\n $size = '';\n }\n if (isset($field_def['index'])) {\n if ($field_def['index']) {\n $index[] = \"INDEX($field)\";\n }\n }\n if (isset($field_def['unique_index'])) {\n if ($field_def['unique_index']) {\n $index[] = \"UNIQUE($field)\";\n }\n }\n if (isset($field_def['primary'])) {\n if ($field_def['primary']) {\n $primary[] = \"$field\";\n }\n }\n if (isset($field_def['auto'])) {\n if ($field_def['auto']) {\n $gen = $this->fetch_one(\"SELECT COUNT(*) FROM RDB\\$GENERATORS WHERE RDB\\$GENERATOR_NAME = UPPER('{$table}_{$field}_seq')\");\n if (!$gen[0]) {\n $this->query(\"INSERT INTO RDB\\$GENERATORS (RDB\\$GENERATOR_NAME) VALUES (UPPER('{$table}_{$field}_seq'))\");\n }\n $this->query(\"SET GENERATOR {$table}_{$field}_seq TO 1;\");\n }\n }\n if (isset($field_def['extra'])) {\n $extra = $field_def['extra'];\n } else {\n $extra = '';\n }\n $create_lines[] = \"$field \".$field_def['type'].$size.' '.$not_null.' '.$extra;\n }\n $create_sql .= join(',', $create_lines);\n $last_lines = array();\n if (count($primary)) {\n $last_lines[] = 'PRIMARY KEY('.join(',', $primary).')';\n }\n if (count($index)) {\n $last_lines[] = join(',', $index);\n }\n if (count($unique_index)) {\n $last_lines[] = join(',', $unique_index);\n }\n if (count($last_lines)) {\n $create_sql .= ','.join(',', $last_lines).')';\n }\n\n return $this->query($create_sql);\n }", "title": "" }, { "docid": "f7148a7870b18013320f12291d046c6d", "score": "0.49713978", "text": "public function initialize()\n\t{\n\t // attributes\n\t\t$this->setName('persona');\n\t\t$this->setPhpName('Persona');\n\t\t$this->setClassname('Persona');\n\t\t$this->setPackage('lib.model');\n\t\t$this->setUseIdGenerator(true);\n\t\t// columns\n\t\t$this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null);\n\t\t$this->addColumn('NOMBRE', 'Nombre', 'VARCHAR', false, 50, null);\n\t\t$this->addColumn('APELLIDO', 'Apellido', 'VARCHAR', false, 50, null);\n\t\t$this->addForeignKey('TIPO_DOCUMENTO_ID', 'TipoDocumentoId', 'INTEGER', 'tipo_documento', 'ID', false, null, null);\n\t\t$this->addColumn('NRO_DOCUMENTO', 'NroDocumento', 'INTEGER', false, 14, null);\n\t\t$this->addForeignKey('SEXO_ID', 'SexoId', 'INTEGER', 'tipo_sexo', 'ID', false, null, null);\n\t\t$this->addColumn('CELULAR', 'Celular', 'VARCHAR', false, 20, null);\n\t\t$this->addColumn('EMAIL', 'Email', 'VARCHAR', false, 50, null);\n\t\t$this->addForeignKey('NACIONALIDAD_ID', 'NacionalidadId', 'INTEGER', 'nacionalidad', 'ID', false, null, null);\n\t\t$this->addForeignKey('ESTADO_CIVIL_ID', 'EstadoCivilId', 'INTEGER', 'estado_civil', 'ID', false, null, null);\n\t\t$this->addColumn('FECHA_NACIMIENTO', 'FechaNacimiento', 'DATE', false, null, null);\n\t\t$this->addColumn('LUGAR_NACIMIENTO', 'LugarNacimiento', 'VARCHAR', false, 50, null);\n\t\t$this->addColumn('OBSERVACIONES', 'Observaciones', 'LONGVARCHAR', false, null, null);\n\t\t$this->addColumn('CREATED_AT', 'CreatedAt', 'TIMESTAMP', false, null, null);\n\t\t$this->addForeignKey('CREATED_BY_ID', 'CreatedById', 'INTEGER', 'sf_guard_user', 'ID', true, null, null);\n\t\t$this->addColumn('UPDATED_AT', 'UpdatedAt', 'TIMESTAMP', false, null, null);\n\t\t$this->addForeignKey('UPDATED_BY_ID', 'UpdatedById', 'INTEGER', 'sf_guard_user', 'ID', false, null, null);\n\t\t$this->addColumn('DELETED_AT', 'DeletedAt', 'TIMESTAMP', false, null, null);\n\t\t$this->addForeignKey('DELETED_BY_ID', 'DeletedById', 'INTEGER', 'sf_guard_user', 'ID', false, null, null);\n\t\t// validators\n\t}", "title": "" }, { "docid": "6463999ca9529c8f95db9bac83fa0594", "score": "0.4970952", "text": "public function setup()\n {\n $this->oApp->getDB()->createTable('UserAuth', \"UserID INTEGER UNSIGNED NOT NULL,\nAuthToken VARCHAR(255) NOT NULL,\nLastUseTime TIMESTAMP NOT NULL,\nINDEX Unique_UserAuth(UserID, AuthToken)\");\n }", "title": "" }, { "docid": "c79c1c770705e9a10bbddb4413803c21", "score": "0.49694878", "text": "abstract public function createGenericDeviceTable($tablename);", "title": "" }, { "docid": "d0c0ff36952e8ad0d4ac3a5f6d540abb", "score": "0.49621987", "text": "public static function create_tables()\n {\n }", "title": "" }, { "docid": "a778e3c65f871886174beee68fdff103", "score": "0.4958818", "text": "public function createPerson() {\n $personType = $_POST[\"status\"];\n\n $dbc = DB::withConfig();\n \n $ok = true;\n error_log($personType);\n if($personType == \"student\") {\n $dao = new StudentDAO($dbc);\n // TODO have a better security for the password\n $person = new Student(null, $_POST[\"firstName\"] . ' ' . $_POST[\"lastName\"], \n $_POST[\"mail\"], $this->hashPass($_POST[\"password\"]), \n $_POST[\"year\"]);\n } else if($personType == \"teacher\") {\n error_log(\"Teacher\");\n $dao = new TeacherDAO($dbc);\n $person = new Teacher(null, $_POST[\"firstName\"] . ' ' . $_POST[\"lastName\"], \n $_POST[\"mail\"], $this->hashPass($_POST[\"password\"]), \n $_POST[\"speciality\"]);\n } else {\n // new type of person?\n $ok = false;\n error_log(\"none\");\n }\n \n if( $ok == true) {\n $ok = $dao->insert($person);\n }\n\n $data = array( \"ok\" => $ok);\n $this->view->setData($data);\n }", "title": "" }, { "docid": "7a1847bdee744644f239be9bab43f8e1", "score": "0.49574018", "text": "function VerifyHealthSurveyTable($connection, $dbName) {\n if(!TableExists(\"HEALTH_SURVEY\", $connection, $dbName))\n {\n $query = \"CREATE TABLE HEALTH_SURVEY (\n ID int(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY,\n NAME VARCHAR(45),\n ADDRESS VARCHAR(90), \n DATE VARCHAR(10), \n AGE VARCHAR(3), \n GENDER VARCHAR(15), \n SYMPTOMS VARCHAR(250)\n )\";\n\n if(!mysqli_query($connection, $query)) echo(\"<p>Error creating table.</p>\");\n }\n}", "title": "" }, { "docid": "1846c2b99db80f967cb0e7c3f4b34f12", "score": "0.49561435", "text": "function create_structure() {\n\trun_query('\n\t\tCREATE TABLE IF NOT EXISTS scores (\n\t\t\tid \t\t\t\tINT(11) NOT NULL AUTO_INCREMENT,\n\t\t\tscore\t\t\tINT(11) DEFAULT 0,\n\t\t\tattempts\t\tINT(11) DEFAULT 0,\n\t\t\tfirst_name\t\tVARCHAR(255) DEFAULT NULL,\n\t\t\tlast_name\t\tVARCHAR(255) DEFAULT NULL,\n\t\t\temail\t\t\tVARCHAR(255) DEFAULT NULL,\n\t\t\taddress_1\t\tVARCHAR(255) DEFAULT NULL,\n\t\t\taddress_2\t\tVARCHAR(255) DEFAULT NULL,\n\t\t\taddress_3\t\tVARCHAR(255) DEFAULT NULL,\n\t\t\tpostcode\t\tVARCHAR(255) DEFAULT NULL,\n\t\t\torganisation\tVARCHAR(255) DEFAULT NULL,\n\t\t\tcreated\t\t\tDATETIME DEFAULT NULL,\n\t\t\tupdated\t\t\tDATETIME DEFAULT NULL,\n\t\t\tip_address\t\tVARCHAR(255) DEFAULT NULL,\n\t\t\tprofanity\t\tBOOLEAN DEFAULT NULL,\n\t\t\tPRIMARY KEY (id)\n\t\t);\n\t');\n\n\t// create_dummy_content();\n}", "title": "" }, { "docid": "69731a9127e5cd13f63571ca956b5405", "score": "0.49498463", "text": "public function createTable() {\n $dropTestRepoIfExists = \"DROP TABLE IF EXISTS test_repo\";\n $this->conn()->exec($dropTestRepoIfExists);\n\n // create table 'test_table'\n $createTestRepo = \"CREATE TABLE IF NOT EXISTS test_repo (\n id serial,\n name text,\n age int\n )\";\n $this->conn()->exec($createTestRepo);\n }", "title": "" }, { "docid": "f1f2277957a1eb7a9d51cb121f4613b2", "score": "0.49443987", "text": "public static function newTable() {\n\t\ttry {\n\t\t\tDB::getInstance()->createTable(self::$table_name, array('name' => 'VARCHAR(80)', 'status' => 'INT(1)'));\n\t\t} catch(TableCreationFailedException $e) {\n\t\t\tthrow $e;\n\t\t}\t\t\n\t\t\n\t}", "title": "" }, { "docid": "1b5d8f8b26f550b494d1fe16cbf60b19", "score": "0.49373046", "text": "public function up()\n {\n $table = $this->table('users');\n $table->addColumn('name', 'string')\n ->addColumn('birthday', 'date')\n ->addColumn('username', 'string')\n ->addColumn('password', 'string')\n ->addColumn('zip_code_address', 'string', ['null' => true])\n ->addColumn('address', 'string', ['null' => true])\n ->addColumn('number_address', 'string', ['null' => true])\n ->addColumn('complement_address', 'string', ['null' => true])\n ->addColumn('district_address', 'string', ['null' => true])\n ->addColumn('city_address', 'string', ['null' => true])\n ->addColumn('state_address', 'string', ['null' => true])\n ->addColumn('number_sus', 'string', ['null' => true])\n ->addColumn('responsible_familiar', 'boolean', ['null' => true])\n ->addColumn('responsible_number_sus', 'string', ['null' => true])\n ->addColumn('document_responsible', 'string', ['null' => true])\n ->addColumn('mother_name', 'string', ['null' => true])\n ->addColumn('unknown_mother', 'boolean', ['null' => true])\n ->addColumn('gender', 'string', ['null' => true])\n ->addColumn('sexual_orientation', 'string', ['null' => true])\n ->addColumn('breed', 'string', ['null' => true])\n ->addColumn('cellphone', 'string', ['null' => true])\n ->addColumn('phone', 'string', ['null' => true])\n ->addColumn('deficiency', 'boolean', ['null' => true])\n ->addColumn('deficiency_type', 'string', ['null' => true])\n ->addColumn('created', 'datetime')\n ->addColumn('modified', 'datetime', ['null' => true])\n ->create();\n\n\n /*\n - Nome completo *\n - Data Nascimento *\n - N° Cartão Sus\n - Responsável familiar?\n Não >> N/ Cartão SUS responsável\n - Sexo *\n - Raça/Cor (Branca, Preta, Parda, Amarela, Indigena) *\n - Nome da Mãe *\n - Desconhecido\n - Telefone celular\n - Email\n - Senha\n - Possui Plano de Saúde privado?\n - Orientação sexual? (Heterossexual, Lésbica, Travesti, gay, Bissexual, Transsexual, Outro)\n - Tem alguma deficiência?\n - Sim >> (Auditiva, Visual, Física, Intelectual/Cognitiva, Outra)\n */\n }", "title": "" }, { "docid": "e9638d31ec261e447f3bc6c9dfa7682b", "score": "0.49336767", "text": "function create_table()\n\t\t{\n\t\t\t$n_args = func_num_args();\n\t\t\t$args = func_get_args();\n\t\t\t\t//args[0] = tablename\n\t\t\t\t//args[$i > 0] = array('fieldname' => \"\", 'type' => \"\", 'size' => \"\", 'null' => \"\", 'flags' => \"\")\n\t\t\t\t// ... ... ...\n\t\t\t\t//args[] = array('PK' => array(PK_fields))\n\t\t\t\t//args[] = array('FK' => array(FK_fields))\n\t\t\t\t//args[] = array('CHECK' => array(check_fields))\n\t\t\t\t//args[] = array('UNIQUE' => array(unique_fields))\n\n\t\t\tif($args[1][0] == \"fields\")\n\t\t\t\t$fields = array_slice($args[1], 1);\n\t\t\telse\n\t\t\t\t$fields = array_slice($args, 1);\n\n\t\t\t$query = \"CREATE TABLE {$args[0]} (\";\n\t\t\tfor($i = 0; $i < $n_args && array_key_exists(\"fieldname\", $fields[$i]); $i++) {\n\t\t\t\t$query .= $fields[$i]['fieldname'];\n\n\t\t\t\tswitch($fields[$i]['type']) {\n\t\t\t\t\tcase 'integer':\n\t\t\t\t\tcase 'varchar':\n\t\t\t\t\tcase 'char':\n\t\t\t\t\tcase 'date':\n\t\t\t\t\tcase 'time':\n\t\t\t\t\tcase 'blob':\n\t\t\t\t\tcase 'boolean':\n\t\t\t\t\t\t$type = strtoupper($fields[$i]['type']);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif($fields[$i]['size'] > 0)\n\t\t\t\t\t$type .= \"(\" . $fields[$i]['size'] . \")\";\n\n\t\t\t\t$query .= \" $type\";\n\t\t\t\tforeach($fields[$i]['flags'] as $flag) {\n\t\t\t\t\t//references TABLE FIELD ON_UPDATE ON_DELETE\n\t\t\t\t\tif(preg_match(\"/^references (.+?) (.+?) (.+?) (.+?)$/\", $flag, $data))\n\t\t\t\t\t\t$query .= \" REFERENCES $data[1]($data[2]) ON UPDATE $data[3] ON DELETE $data[4]\";\n\t\t\t\t\telseif($flag == \"primary\")\n\t\t\t\t\t\t$query .= \" PRIMARY KEY\";\n\t\t\t\t\telseif($flag == \"AI\")\n\t\t\t\t\t\t$query .= \"\";\n\t\t\t\t\telseif(preg_match(\"/^check (.+)$/\", $flag, $data))\n\t\t\t\t\t\t$query .= \" CHECK (\" . $args[$i]['fieldname'] . \" $data[1])\";\n\t\t\t\t\telseif($flag == \"unique\")\n\t\t\t\t\t\t$query .= \" UNIQUE\";\n\t\t\t\t\telseif(preg_match(\"/^default:(.+)$/\", $flag, $data)) {\n\t\t\t\t\t\t$sep = \"\";\n\t\t\t\t\t\tif(!is_numeric($data[1]))\n\t\t\t\t\t\t\t$sep = \"\\\"\";\n\t\t\t\t\t\t$query .= \" DEFAULT {$sep}{$data[1]}{$sep}\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif($fields[$i]['null'] == 'not')\n\t\t\t\t\t$query .= \" NOT NULL, \";\n\t\t\t\telse\n\t\t\t\t\t$query .= \", \";\n\t\t\t}\n\n\t\t\tfor( ; $i < $n_args; $i++) {\n\t\t\t\tif(array_key_exists(\"PK\", $fields[$i]))\n\t\t\t\t\t$query .= \"PRIMARY KEY (\" . implode(\", \", $fields[$i][\"PK\"]) . \"), \";\n\t\t\t\telseif(array_key_exists(\"UNIQUE\", $fields[$i]))\n\t\t\t\t\t$query .= \"UNIQUE (\" . implode(\", \", $fields[$i][\"UNIQUE\"]) . \"), \";\n\t\t\t\telseif(array_key_exists(\"FK\", $fields[$i])) {\n\t\t\t\t\tforeach($fields[$i][\"FK\"] as $fk => $val) {\n\t\t\t\t\t\tpreg_match(\"/^(.+?) (.+?) (.+?) (.+?)$/\", $val, $data);\n\t\t\t\t\t\t$query .= \"FOREIGN KEY ($fk) REFERENCES $data[1]($data[2]) ON UPDATE $data[3] ON DELETE $data[4], \";\n\t\t\t\t\t}\n\t\t\t\t} elseif(array_key_exists(\"CHECK\", $fields[$i])) {\n\t\t\t\t\tforeach($fields[$i][\"CHECK\"] as $check) {\n\t\t\t\t\t\t$query .= \"CHECK ($check), \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(substr($query, -2) == \", \")\n\t\t\t\t$query = substr($query, 0, -2);\n\n\t\t\t$query .= \")\";\n\n\t\t\t$this->_dbhandle->exec($query);\n\t\t}", "title": "" }, { "docid": "14bc4e0c054fa7c248980416b1398f00", "score": "0.49248645", "text": "private function createTable ()\n {\n $db = $this->getDefaultAdapter();\n\n try {\n $db->query(\"CREATE TABLE IF NOT EXISTS `well` (\n `id` int(20) NOT NULL AUTO_INCREMENT,\n `wl_county_code` varchar(20) DEFAULT NULL,\n `wl_nbr` varchar(20) DEFAULT NULL,\n `wl_version` varchar(20) DEFAULT NULL,\n `well_tag_nbr` varchar(20) DEFAULT NULL,\n `name_last` varchar(60) DEFAULT NULL,\n `name_first` varchar(60) DEFAULT NULL,\n `name_mi` varchar(20) DEFAULT NULL,\n `name_company` varchar(60) DEFAULT NULL,\n `street` varchar(100) DEFAULT NULL,\n `city` varchar(60) DEFAULT NULL,\n `state` varchar(60) DEFAULT NULL,\n `zip` varchar(20) DEFAULT NULL,\n `type_of_log` varchar(20) DEFAULT NULL,\n `depth_first_water` int(8) DEFAULT NULL,\n `depth_drilled` int(8) DEFAULT NULL,\n `completed_depth` int(8) DEFAULT NULL,\n `post_static_water_level` int(8) DEFAULT NULL,\n `start_date` date DEFAULT NULL,\n `complete_date` date DEFAULT NULL,\n `received_date` date DEFAULT NULL,\n `startcard_nbr` varchar(20) DEFAULT NULL,\n `bonded_license_nbr` text,\n `work_new` tinyint(1) DEFAULT NULL,\n `work_abandonment` tinyint(1) DEFAULT NULL,\n `work_deepening` tinyint(1) DEFAULT NULL,\n `work_alteration` tinyint(1) DEFAULT NULL,\n `work_conversion` tinyint(1) DEFAULT NULL,\n `work_other` tinyint(1) DEFAULT NULL,\n `use_domestic` tinyint(1) DEFAULT NULL,\n `use_irrigation` tinyint(1) DEFAULT NULL,\n `use_community` tinyint(1) DEFAULT NULL,\n `use_livestock` tinyint(1) DEFAULT NULL,\n `use_industrial` tinyint(1) DEFAULT NULL,\n `use_injection` tinyint(1) DEFAULT NULL,\n `use_thermal` tinyint(1) DEFAULT NULL,\n `use_dewatering` tinyint(1) DEFAULT NULL,\n `use_piezometer` tinyint(1) DEFAULT NULL,\n `use_other` tinyint(1) DEFAULT NULL,\n `township` varchar(20) DEFAULT NULL,\n `township_char` varchar(10) DEFAULT NULL,\n `range` varchar(20) DEFAULT NULL,\n `range_char` varchar(20) DEFAULT NULL,\n `sctn` varchar(20) DEFAULT NULL,\n `qtr160` varchar(20) DEFAULT NULL,\n `qtr40` int(20) DEFAULT NULL,\n `tax_lot` varchar(20) DEFAULT NULL,\n `street_of_well` varchar(100) DEFAULT NULL,\n `location_county` varchar(60) DEFAULT NULL,\n `longitude` varchar(60) DEFAULT NULL,\n `latitude` varchar(60) DEFAULT NULL,\n `bonded_name_last` varchar(100) DEFAULT NULL,\n `bonded_name_first` varchar(100) NOT NULL,\n `created` int(20) NOT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;\");\n } catch (Exception $e) {\n throw new Zend_Exception($e->getMessage());\n }\n }", "title": "" }, { "docid": "e1df79c905b83a8c6520554ad61103bf", "score": "0.49205193", "text": "public function run()\n {\n Tutor::create([\n 'first_name' => 'Jesus',\n 'last_name' => 'Perez',\n 'email' => 'sdjkfdf@mail.com',\n 'phone' => '12334343',\n 'work_phone' => '23423434',\n 'gender' => '0',\n 'birth_date' => new Carbon(),\n 'street' => 'sdfsd',\n 'street_number' => '221323',\n 'neighborhood' => 'Tecnologico',\n 'community' => 'Tec',\n 'city' => 'Monterrey',\n 'zipcode' => '433243',\n 'state' => 'Nuevo Leon',\n 'country' => 'Mexico',\n 'campus_code' => 'MTY',\n 'grupo' => 1,\n\n 'user_name' => 'sdfsfsdf',\n\n 'gerente_id' => Gerente::first()->id,\n 'tetra_id' => Tetra::first()->id,\n ]);\n }", "title": "" }, { "docid": "62c42e38f4d016e5424a223b7f7a5304", "score": "0.49193382", "text": "public function createTable()\n {\n $table = self::$table_name;\n $table_contact = FRAMEWORK_TABLE_PREFIX.'contact_contact';\n $foreign_key_1 = self::$table_name.'_ibfk_1';\n $foreign_key_2 = self::$table_name.'_ibfk_2';\n $foreign_key_3 = self::$table_name.'_ibfk_3';\n\n $SQL = <<<EOD\n CREATE TABLE IF NOT EXISTS `$table` (\n `id` INT(11) NOT NULL AUTO_INCREMENT,\n `contact_id` INT(11) NOT NULL DEFAULT '-1',\n `contact_login` VARCHAR(64) NOT NULL DEFAULT '',\n `contact_name` VARCHAR(128) NOT NULL DEFAULT '',\n `contact_type` ENUM('PERSON','COMPANY') NOT NULL DEFAULT 'PERSON',\n `contact_status` ENUM('ACTIVE','LOCKED','PENDING','DELETED'),\n `person_id` INT(11) NOT NULL DEFAULT '-1',\n `person_gender` ENUM('MALE','FEMALE') NOT NULL DEFAULT 'MALE',\n `person_title` VARCHAR(32) NOT NULL DEFAULT '',\n `person_first_name` VARCHAR(128) NOT NULL DEFAULT '',\n `person_last_name` VARCHAR(128) NOT NULL DEFAULT '',\n `person_nick_name` VARCHAR(128) NOT NULL DEFAULT '',\n `person_birthday` DATE NOT NULL DEFAULT '0000-00-00',\n `company_id` INT(11) NOT NULL DEFAULT '-1',\n `company_name` VARCHAR(128) NOT NULL DEFAULT '',\n `company_department` VARCHAR(128) NOT NULL DEFAULT '',\n `communication_phone` VARCHAR(255) NOT NULL DEFAULT '',\n `communication_email` VARCHAR(255) NOT NULL DEFAULT '',\n `address_id` INT(11) NOT NULL DEFAULT '-1',\n `address_street` VARCHAR(128) NOT NULL DEFAULT '',\n `address_zip` VARCHAR(32) NOT NULL DEFAULT '',\n `address_city` VARCHAR(128) NOT NULL DEFAULT '',\n `address_area` VARCHAR(128) NOT NULL DEFAULT '',\n `address_state` VARCHAR(128) NOT NULL DEFAULT '',\n `address_country_code` VARCHAR(8) NOT NULL DEFAULT '',\n `category_id` INT(11) NOT NULL DEFAULT -1,\n `category_name` VARCHAR(64) NOT NULL DEFAULT '',\n `category_access` ENUM('ADMIN','PUBLIC') NOT NULL DEFAULT 'ADMIN',\n `tags` VARCHAR(512) NOT NULL DEFAULT '',\n `order_name` VARCHAR(256) NOT NULL DEFAULT '',\n `timestamp` TIMESTAMP,\n PRIMARY KEY (`id`),\n INDEX `contact_id_idx` (`contact_id` ASC) ,\n INDEX `contact_name_idx` (`contact_name` ASC) ,\n INDEX `contact_status_idx` (`contact_status` ASC) ,\n CONSTRAINT `$foreign_key_1`\n FOREIGN KEY (`contact_id` )\n REFERENCES `$table_contact` (`contact_id` )\n ON DELETE CASCADE,\n CONSTRAINT `$foreign_key_2`\n FOREIGN KEY (`contact_name` )\n REFERENCES `$table_contact` (`contact_name` )\n ON DELETE CASCADE\n ON UPDATE CASCADE\n )\n COMMENT='Summary/Overview over all contacts'\n ENGINE=InnoDB\n AUTO_INCREMENT=1\n DEFAULT CHARSET=utf8\n COLLATE='utf8_general_ci'\nEOD;\n try {\n $this->app['db']->query($SQL);\n $this->app['monolog']->addInfo(\"Created table 'contact_overview'\", array(__METHOD__, __LINE__));\n } catch (\\Doctrine\\DBAL\\DBALException $e) {\n throw new \\Exception($e);\n }\n }", "title": "" }, { "docid": "1ac04a60c4fb8a5ca987b3b55381ddc2", "score": "0.49148524", "text": "function createUsersTable($conn){\r\n \r\n $statement =\r\n \r\n \"create table Users(\r\n \r\nuser_id Integer not null auto_increment,\r\n \r\nprimary key (user_id), \r\n\r\n\r\nuser_username varchar(15) not null,\r\n\r\n\r\nuser_fname varchar(35) not null, \r\n \r\nuser_lname varchar(35) not null,\r\n\r\n\r\nuser_isactive Integer not null,\r\n \r\nuser_password varchar(80) not null\r\n \r\n) ENGINE=InnoDB\";\r\n \r\n if(!$result = mysqli_query($conn, $statement)){\r\n \r\n echo \"\\nThere was an error creating the Users Table\";\r\n echo \"Please contact the System Administrator\";\r\n return false;\r\n } else {\r\n mysqli_free_result($result);\r\n echo \"\\nUsers Table was created successfully.\";\r\n return true;\r\n }\r\n}", "title": "" }, { "docid": "79d331f1a3467bc28f91c88079c9adc1", "score": "0.49139455", "text": "public function __construct()\n\n {\n parent::__construct();\n\n $this->tablename=\"personne\";\n $this->id = 'null' ;\n $this->id_service = 0 ;\n $this->nom_personne = \"\" ;\n $this->prenom_personne = \"\" ;\n $this->genre_personne = '' ;\n $this->date_naiss_personne = date(\"\") ;\n $this->lieu_naiss_personne = \"\" ;\n $this->nationalite_personne = \"\" ;\n $this->typepiece_personne = '' ;\n $this->numpiece_personne = \"\" ;\n $this->photo_personne = \"\" ;\n $this->details_personne = \"\" ;\n $this->flag_personne = 0 ;\n }", "title": "" }, { "docid": "2ef2a6bbed67823a8f4e03d4ee7f879d", "score": "0.4913583", "text": "public function postCreateRepresentante(PersonDTO $person)\n {\n // `position`, `column_9`, `company_name`, `id_person_type`, `total`)\n // VALUES (NULL, 'ASD', 'ASD', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);\n\n $name = $person->getName();\n $last_name = $person->getLastName();\n $email = $person->getEmail();\n $document = $person->getDocumentNumber();\n $phone = $person->getPhoneNumer();\n $city = $person->getCity();\n $total = $person->getTotal();\n $documentType = $person->getIdDocumentType();\n $position = $person->getPosition();\n $id_person_type = $person->getIdPersonType();\n $company_name = $person->getCompanyName();\n $invitado = $person->getInvitado();\n $centro = $person->getCentro();\n $codigo_estudiante = $person->getCodigoEstudiante();\n $sql = \"INSERT INTO person (name,last_name,email,document_number,phone_number,city,total, id_document_type, position,id_person_type,company_name,guest,centro, codigo_estudiante) \n VALUES('$name','$last_name','$email','$document','$phone','$city','$total','$documentType','$position','$id_person_type','$company_name','$invitado', '$centro', '$codigo_estudiante')\";\n\n try {\n $this->db->executeInstruction($sql);\n $last_id = $this->db->getConnect()->insert_id;\n return [\"error\" => \"false\", \"message\" => \"Se registro el estudiante exitosamente!\", \"id\"=> $last_id];\n } catch (Exception $e) {\n return [\"error\" => \"true\", \"message\" => \"Error al registrar!\"];\n }\n }", "title": "" }, { "docid": "029f3f97cb6023079cf6f6f32761eaf5", "score": "0.49118644", "text": "public function run()\n {\n Personal::create([\n 'dni' => '37590136',\n 'nombre' => 'Carlos Lisandro',\n 'apellido' => 'Villalba',\n 'fecha_nacimiento' => '1993-09-14',\n 'telefono' => '3764660653',\n 'email' => 'elcarlosvillalba@gmail.com',\n 'fecha_alta' => '2007-05-05',\n 'cuil' => '22-1231231-11',\n 'sexo_id' => 1,\n 'domicilio_id' => 1,\n 'estado_vacacion_id' => 1,\n 'estado_vacacion_id' => 1,\n 'dias_correspondido_id' => 1\n ]);\n }", "title": "" }, { "docid": "f8708ee3d28a3e5b439e5739b672c029", "score": "0.4911096", "text": "public function CreateTable()\n {\n $CT =<<<EOF\n CREATE TABLE IF NOT EXISTS CHAT\n (chat_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,\n posted_on DATETIME NOT NULL,\n user_name VARCHAR(50) NOT NULL,\n message TEXT NOT NULL);\nEOF;\n $this->exec($CT); \n }", "title": "" }, { "docid": "5c1f44a658b142a4fa76559481697c14", "score": "0.49089694", "text": "public function create($table,$name,$type=null){\n\t\tif($this->exist($table))\n\t\t\treturn false;\n $sql = 'CREATE TABLE '.$table.'(';\n if($type==null){\n $arrname = array_keys($name);\n $arrtype = array_values($name);\n }else{\n $arrname = explode(\"|\", $name);\n $arrtype = explode(\"|\", $type);\n }\n for($i=0;$i<count($arrname);$i++){\n if($i==count($arrname)-1){\n $sql = $sql.$arrname[$i].\" \".$arrtype[$i].\"\";\n }else{\n $sql = $sql.$arrname[$i].\" \".$arrtype[$i].\",\";\n }\n \n }\n $sql = $sql.');';\n $re = $this->query($sql);\n if($re){\n return true;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "e6c81dd4ab31c975cd01a3915fee226a", "score": "0.4908147", "text": "public function create_table() {\n\n\t\tglobal $wpdb;\n\t\t\n\t\t$table_name \t = $this->table_name;\n\t\t$charset_collate = $wpdb->get_charset_collate();\n\n\t\t$query = \"CREATE TABLE {$table_name} (\n\t\t\tid bigint(10) NOT NULL AUTO_INCREMENT,\n\t\t\ttype varchar(255) NOT NULL,\n\t\t\tname text NOT NULL,\n\t\t\tcolor text NOT NULL,\n\t\t\tcolor_text text,\n\t\t\tis_default tinyint(1) NOT NULL,\n\t\t\tis_visible tinyint(1) NOT NULL,\n\t\t\tis_bookable tinyint(1) NOT NULL,\n\t\t\tauto_pending varchar(20),\n\t\t\tcalendar_id bigint(10) NOT NULL,\n\t\t\tPRIMARY KEY id (id)\n\t\t) {$charset_collate};\";\n\n\t\trequire_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n\t\tdbDelta( $query );\n\n\t}", "title": "" }, { "docid": "dc6dc981a265126552fb229043c8f684", "score": "0.49078804", "text": "function agregarClientePersonaPHP($cedula,$genero,$nombre,$apellidoI,$apellidoII,$nacimiento,$idestado,$idnacionalidad,$telefono,$factura,$idDistrito,$señas)\n{\n $conexion = conectar_PostgreSQL();\n $query = \"select insertarClientePersona($cedula, '$genero','$nombre','$apellidoI','$apellidoII','$nacimiento',cast($idestado as smallint), cast($idnacionalidad as smallint),'$telefono',$factura,cast($idDistrito as smallint),'$señas');\";\n $result = pg_query($conexion, $query) or die('ERROR AL INSERTAR DATOS: ' . pg_last_error());\n\n if ($result ->execute())\n echo \"('error':0, 'mensaje':'El registro de persona se ha insertado satisfactoriamente')\";\n else\n {\n $error=$result->errorInfo()[2];\n echo \"error\";\n }\n // Free resultset liberar los datos\n pg_free_result($result);\n\n // Closing connection cerrar la conexión\n pg_close($conexion);\n}", "title": "" }, { "docid": "eb46dd970d9978451f4b62eebfcda86c", "score": "0.49076742", "text": "function mkSqlite3($table, $struct){\n\tglobal $regex;\n\t$keys = array();\n\t$split = explode(\"\\n\", $struct);\n\n\t$carry = array();\n\tforeach($split as $k => $line){\n\t\t//echo \"1:$line\\n\";\n\t\t$line = preg_replace($regex['f'], $regex['t'], $line);\n\t\t//echo \"2:$line\\n\";\n\n\t\tswitch(true){\n\t\t\tcase (stripos(trim($line), 'PRIMARY KEY') === 0):\n\t\t\t\t# -- unset($split[$k]);\n\t\t\tbreak;\n\t\t\tcase (stripos($line, 'enum(') !== false):\n\t\t\t\tpreg_match(\"@enum\\(([^)]*)\\)@\", $line, $m);\n\t\t\t\t$a = explode(',', str_replace(\"'\", \"\",$m[1]));\n\t\t\t\t$g = 0;\n\t\t\t\tforeach ($a as $t){\n\t\t\t\t\tif(strlen($t) > $g) $g = strlen($t); \n\t\t\t\t}\n\t\t\t\t$g = ceil( $g / 10) * 10;\n\t\t\t\tif($g > 255) $g = 255;\n\n\t\t\t\t$carry[] = preg_replace(\"@ enum\\(.*\\)@i\", \" varchar($g)\", $line); \n\t\t\tbreak;\n\t\t\tcase (stripos($line, 'KEY ') !== false):\n\t\t\t\t$line = str_replace(' FULLTEXT','', $line);\n\t\t\t\tif(substr($line,-1) == ',')\n\t\t\t\t\t$line = substr($line, 0, -1);\n\t\t\t\t$keys[] = 'CREATE ' . preg_replace(\"@(KEY) \\\"([^\\\"]+?)\\\"(.*)@\",\"INDEX idx_{$table}_$2 ON \\\"{$table}\\\"$3\",trim($line)) . ';';\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$carry[] = $line;\n\t\t\tbreak;\t\n\t\t}\n\t}\n\t// test and correct tailing lines commas\n\tif(substr($carry[(count($carry) - 2)],-1) == ',')\n\t\t$carry[(count($carry) -2)] = substr($carry[(count($carry) - 2)], 0, -1);\n\n $rv = join(\"\\n\",$carry);\n $f = array(' auto_increment', ' AUTO_INCREMENT',' CURRENT_TIMESTAMP');\n $t = array(' primary key autoincrement', ' primary key autoincrement', \" '0000-00-00 00:00:00'\");\n $rv = str_replace($f, $t, $rv);\t\t\n $rv .= \"\\n\" . join(\"\\n\", $keys) . \"\\n\";\n\n return \"-- Structure of table '$table'\\n\" \n \t\t. cnvEscapes($rv)\n \t\t. \"\\n\\n\";\n}", "title": "" }, { "docid": "afe9756d383baf9d99de28e66578e27a", "score": "0.490764", "text": "public function createTableSeq() {\n }", "title": "" }, { "docid": "6d7dc659c636460596e2011dd53220f8", "score": "0.4907391", "text": "protected function create(Blueprint $table)\n {\n $table->increments('id');\n\n $table->text('public_id');\n $table->text('secret_key');\n $table->string('type');\n $table->text('data');\n\n $table->timestamps();\n }", "title": "" }, { "docid": "3daba4ad65e3d4d9e3326e7f179c5f60", "score": "0.4904832", "text": "private function create_role_table(){\n\t\t\t$sql = \"CREATE TABLE IF NOT EXISTS Roles(\n\t\t\tid INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,\n\t\t\trole VARCHAR(128) NOT NULL,\n\t\t\tuser_id INT(6) NOT NULL\t \t \n\t\t\t)\";\n\t\t\t$this->query_exec($sql);\t\t \t\n\t\t}", "title": "" }, { "docid": "256b2e1834c4a1b5de67f8112134b90e", "score": "0.4899294", "text": "protected function prepareTestTableWithData()\n {\n $createTableSql = \"create table people (id INTEGER PRIMARY KEY AUTOINCREMENT, first_name TEXT NOT NULL, last_name TEXT NOT NULL)\";\n $statement = DatabaseManager::connection()->getPdo()->prepare($createTableSql);\n $statement->execute();\n\n $insertSql = \"insert into people (first_name,last_name) values ('john','doe'),('jane','doe')\";\n $statement = DatabaseManager::connection()->getPdo()->prepare($insertSql);\n $statement->execute();\n }", "title": "" }, { "docid": "053ca0a36ee6442446806a7d8dffc1a4", "score": "0.4897279", "text": "public function create(){\n if(!empty($this->columns)){\n $db_string = \"CREATE TABLE IF NOT EXISTS $this->name (\";\n $db_string .= \"ID INT AUTO_INCREMENT, \";\n\n foreach($this->columns as $col){\n $db_string .= $col['Name'] . \" \";\n $db_string .= $col['Type'] . \" \";\n\n // Addd the column attributes if they are there.\n if(!empty($col['Attributes'])){\n foreach($col['Attributes'] as $attr){\n $db_string .= $attr . ' ';\n }\n }\n\n // Add the commer to seperate this col\n $db_string .= ',';\n }\n \n // Assign the primary key of the table.\n $db_string .= \"PRIMARY KEY(ID)\";\n $db_string .= ');';\n\n // Execute the query\n $db = new Db();\n $db = $db->get();\n try{\n $db->exec($db_string);\n }\n catch(PDOException $e){\n die($e->getMessage());\n }\n }\n else{\n die(\"Cannot create the new table. No columns have been added.\");\n }\n }", "title": "" }, { "docid": "a9ddd066948a7ccc74fe8542b54951d2", "score": "0.48949558", "text": "abstract public function createIndexTable();", "title": "" }, { "docid": "5630febd0b71adcf3612e09f366c0b66", "score": "0.48917085", "text": "protected function createTable()\n {\n YII_DEBUG && Yii::trace(\"Creating access token table '{$this->getTableName()}'\", 'oauth2.storage.accesstoken');\n $this->getDb()->createCommand()->createTable($this->getTableName(), array(\n 'AccessToken' => 'string NOT NULL PRIMARY KEY',\n 'ClientId' => 'string NOT NULL',\n 'UserId' => 'string',\n 'Expires' => 'TIMESTAMP NOT NULL',\n 'Scope' => 'text',\n ));\n }", "title": "" } ]
06ea1df7e601f16ec922125eff2dab12
Index Page for this controller. Maps to the following URL or or Since this controller is set as the default controller in config/routes.php, it's displayed at So any other public methods not prefixed with an underscore will map to /index.php/welcome/
[ { "docid": "c4cf136ea39da71ad8c60ff0a0b6628c", "score": "0.0", "text": "public function __construct()\n\t{\n\t\t\tparent::__construct();\n\t\t\t//untuk bikin dari view manggil model 'My_Model.php'\n\t\t\t$this->load->model('model');\n\t}", "title": "" } ]
[ { "docid": "c89e4aa9fe2cefb81155596ca16fa6e9", "score": "0.73142195", "text": "public function index() {\n\n\t\techo 'index method of controller_default';\n\n\t}", "title": "" }, { "docid": "2ae52aad383adef61194aa5ee88d9ca6", "score": "0.7255195", "text": "public function index()\n {\n $this->load->view('welcome');\n }", "title": "" }, { "docid": "c8ee39212c2a35e768ae5f4b631b539a", "score": "0.72365713", "text": "public function getIndex(){\n\n\t\t\treturn view('pages.welcome');\n\n\t\t}", "title": "" }, { "docid": "8ba2bad3a25739ea30952c8f105f6775", "score": "0.7224256", "text": "public function index()\n\t{\n\t\treturn view('welcome');\n\t}", "title": "" }, { "docid": "8ba2bad3a25739ea30952c8f105f6775", "score": "0.7224256", "text": "public function index()\n\t{\n\t\treturn view('welcome');\n\t}", "title": "" }, { "docid": "8ba2bad3a25739ea30952c8f105f6775", "score": "0.7224256", "text": "public function index()\n\t{\n\t\treturn view('welcome');\n\t}", "title": "" }, { "docid": "8ba2bad3a25739ea30952c8f105f6775", "score": "0.7224256", "text": "public function index()\n\t{\n\t\treturn view('welcome');\n\t}", "title": "" }, { "docid": "8ba2bad3a25739ea30952c8f105f6775", "score": "0.7224256", "text": "public function index()\n\t{\n\t\treturn view('welcome');\n\t}", "title": "" }, { "docid": "8ba2bad3a25739ea30952c8f105f6775", "score": "0.7224256", "text": "public function index()\n\t{\n\t\treturn view('welcome');\n\t}", "title": "" }, { "docid": "8ba2bad3a25739ea30952c8f105f6775", "score": "0.7224256", "text": "public function index()\n\t{\n\t\treturn view('welcome');\n\t}", "title": "" }, { "docid": "43a34f37ceacf157a26d5f297602c78b", "score": "0.7199695", "text": "public function action_index()\n\t{\n\t\treturn Response::forge(View::forge('welcome/index'));\n\t}", "title": "" }, { "docid": "ccd5a69d39bba2b5c9c6245973ce1fe3", "score": "0.71841127", "text": "public function Index()\n {\n $this->routeAuth();\n\n $this->standardView('Index');\n }", "title": "" }, { "docid": "b573f9e29fbf746aab01ae6efdb1f291", "score": "0.7103235", "text": "public function index()\n {\n\n \treturn view('seeker.pages.welcome');\n\n }", "title": "" }, { "docid": "f47cd60c702687a456718b104beeb253", "score": "0.70975786", "text": "public function index()\n\t{\n\t\t$this->load->helper('url');\n\t\t$this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "738e2cd27acf4a3da3087c24f8a37b96", "score": "0.70716625", "text": "public function Index()\n\t{\n\t\t$this->load->view('index');\n\t}", "title": "" }, { "docid": "dcee67da60b8f7b74e4d74a54e396e9d", "score": "0.7068835", "text": "public function index()\r\n\t{\r\n\t\t$this->load->helper('url');\r\n\r\n\t\t$this->load->view('welcome_message');\r\n\t}", "title": "" }, { "docid": "d4c97d0530e1f8fdf0dc539f1a4fc82d", "score": "0.70621866", "text": "public function index(){\n//\t\tredirect(base_url() . 'defaultstart');\n\n $this->_view('welcome');\n\t}", "title": "" }, { "docid": "26ae348ec135433b36386e85515f234a", "score": "0.7029236", "text": "public function index()\n\t{\n\t\t\n\t\t$this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "e7f8089146dcd0d0d610ae2c72bd1e9a", "score": "0.7025378", "text": "public function index()\n\t{\n\t\t$this->load->view('index');\n\t}", "title": "" }, { "docid": "da2361ee3d8c956fea5322931aac9594", "score": "0.7009768", "text": "public function index()\n {\n $this->display(\"index\");\n }", "title": "" }, { "docid": "f5407de5233b21525070c9c7e712459c", "score": "0.69852954", "text": "public function index()\n {\n return view (\"welcome\");\n }", "title": "" }, { "docid": "1661768829ad5aff2ba03ffced80c134", "score": "0.69728696", "text": "public function index()\t{\n\t\t$this->load->view('index');\n\t}", "title": "" }, { "docid": "2629d7acba01e550f51edb6d8209ed06", "score": "0.6947212", "text": "public function index() {\n echo \"This is the index page\";\n }", "title": "" }, { "docid": "f98a1166979aa71dcc6f80a8bf7d6bdd", "score": "0.6943594", "text": "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "f98a1166979aa71dcc6f80a8bf7d6bdd", "score": "0.6943594", "text": "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "f98a1166979aa71dcc6f80a8bf7d6bdd", "score": "0.6943594", "text": "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "f98a1166979aa71dcc6f80a8bf7d6bdd", "score": "0.6943594", "text": "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "f98a1166979aa71dcc6f80a8bf7d6bdd", "score": "0.6943594", "text": "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "f98a1166979aa71dcc6f80a8bf7d6bdd", "score": "0.6943594", "text": "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "f98a1166979aa71dcc6f80a8bf7d6bdd", "score": "0.6943594", "text": "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "f98a1166979aa71dcc6f80a8bf7d6bdd", "score": "0.6943594", "text": "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "f98a1166979aa71dcc6f80a8bf7d6bdd", "score": "0.6943594", "text": "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "f98a1166979aa71dcc6f80a8bf7d6bdd", "score": "0.6943594", "text": "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "f98a1166979aa71dcc6f80a8bf7d6bdd", "score": "0.6943594", "text": "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "f98a1166979aa71dcc6f80a8bf7d6bdd", "score": "0.6943594", "text": "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "f98a1166979aa71dcc6f80a8bf7d6bdd", "score": "0.6943594", "text": "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "f98a1166979aa71dcc6f80a8bf7d6bdd", "score": "0.6943594", "text": "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "f98a1166979aa71dcc6f80a8bf7d6bdd", "score": "0.6943594", "text": "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "f98a1166979aa71dcc6f80a8bf7d6bdd", "score": "0.6943594", "text": "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "7b693ad33621bb553322198d699939a0", "score": "0.69323677", "text": "public function index()\n {\n return view(\"welcome\");\n }", "title": "" }, { "docid": "7b693ad33621bb553322198d699939a0", "score": "0.69323677", "text": "public function index()\n {\n return view(\"welcome\");\n }", "title": "" }, { "docid": "7b693ad33621bb553322198d699939a0", "score": "0.69323677", "text": "public function index()\n {\n return view(\"welcome\");\n }", "title": "" }, { "docid": "1120b0047f12ac78da85245bfd95297e", "score": "0.6932349", "text": "public function index()\r\n\t{\r\n\t\tgotoView(\"general/home\", \"Home\");\r\n\t}", "title": "" }, { "docid": "566f0031e14c610c52dfc14a49a5f9ff", "score": "0.69291043", "text": "public function indexAction()\n {\n $this->view('home/index', []);\n }", "title": "" }, { "docid": "3d4bc083f7c41498611a6a745e110a9e", "score": "0.69246054", "text": "public function index()\t{\n\t\t$this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "ee8afcb57e8c2e56e3e6a85cec3d9348", "score": "0.6918268", "text": "public function indexAction()\n {\n $this->render('home/index', array(\n 'title' => 'Home'\n ));\n }", "title": "" }, { "docid": "d85b8d66ad924d71fa04cd7f3cd8712f", "score": "0.6896834", "text": "public function index()\n {\n $this->view('home/index');\n }", "title": "" }, { "docid": "0112a5fd98d77e14593621754a900038", "score": "0.68779767", "text": "function index()\n\t\t{\n\t\t\t$this->load->view('home_index');\n\t\t}", "title": "" }, { "docid": "4f5f18b56869fd6e94ac063592a25380", "score": "0.6874878", "text": "public function getIndex()\n {\n return view('welcome');\n }", "title": "" }, { "docid": "f6adcef89cf2717c35f073dc0eac3a64", "score": "0.68712145", "text": "public function index()\n\t{\n\t\t$this->load->view('home');\n\t}", "title": "" }, { "docid": "f6adcef89cf2717c35f073dc0eac3a64", "score": "0.68712145", "text": "public function index()\n\t{\n\t\t$this->load->view('home');\n\t}", "title": "" }, { "docid": "13981b5f581b70c5178a44c50a0d25d2", "score": "0.68637", "text": "public function index()\r\n\t{\r\n\t\t//$this->load->view('welcome_message');\r\n\t}", "title": "" }, { "docid": "8564307627d1083bda5be27264f1f3f7", "score": "0.6860116", "text": "public function index()\n\t{\n//\t\t$this->output->enable_profiler(TRUE);\n//\t\t$this->load->view('welcome_message');\n\t\t$this->home();\n\t}", "title": "" }, { "docid": "cb70a19866f9febaa9466b10106104f5", "score": "0.68492687", "text": "public function index()\n\t{ \n\t\t$this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "998fd95e71724e738ee5ebefcbad3664", "score": "0.68412215", "text": "public function index()\n\t{\n\t\t$this->load->helper('debug');\n\t\tdebug_all( $this );\n\t\t$this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "df3b6b32984c8017376bd5a5b34de0f6", "score": "0.6835194", "text": "public function Index() {\n global $mu;\n $mu->data['title'] = \"The Index Controller\";\n\t\t$mu->data['main'] = \"<h1>The Index Controller</h1>\";\n\t\t$mu->data['favicon'] = $mu->request->base_url . '/img/muffin.ico'; \n\t\t$mu->data['top_image']= $mu->request->base_url .'/img/muffin.png';\n }", "title": "" }, { "docid": "f1bf713f5b6ffdb5d8672b49580aa18a", "score": "0.68325204", "text": "public function index()\n\t{\n\t\treturn view('Main.home');\n\t}", "title": "" }, { "docid": "3e0a16fa05465e17e10f14ad19635fb9", "score": "0.6823928", "text": "public function index()\n\t{ \n \n //$this->load->view('home/index');\n\n\t\techo \"Home Page\";\n\n\t}", "title": "" }, { "docid": "0697371e938405e06d61b5272c76055a", "score": "0.6814544", "text": "public function index()\n\t{\n\t\t$this->load->helper('url');\n\n\t\t$this->load->view('home_view');\n\t}", "title": "" }, { "docid": "d4a599c07c9175c6fed9e5e06b697ac6", "score": "0.6812026", "text": "public function index()\n\t{\n\t\treturn view('main.home');\n\t}", "title": "" }, { "docid": "9e7ad2247586111cc60e1f30431fad86", "score": "0.68104774", "text": "public function index()\n\t{\n\t\t$this->load->helper('url');\n\t\t$this->load->database();\n\t\t$this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "7a06940b7b89b1900d626c9c116bee9c", "score": "0.6788247", "text": "public function index()\n\t{\n\n\t\t$data['heading'] = \"CI Home Page\";\n\n\t\t$this->load->view('includes/header');\n\t\t$this->load->view('home_view', $data);\n\t\t$this->load->view('includes/footer');\n\t}", "title": "" }, { "docid": "694ec9539ab8476cbf824c8900aebd5e", "score": "0.6787772", "text": "public function index() {\n return view('welcome');\n }", "title": "" }, { "docid": "18c09ed2e22d834ce0d7446a7a24cad9", "score": "0.67801183", "text": "public function indexAction()\n {\n $this->_forward('welcome');\n\n\n }", "title": "" }, { "docid": "e23411c31864d7cb4e3d7cadb9747307", "score": "0.6766785", "text": "public function index()\n {\n if (isLoggedIn())\n {\n redirect('posts');\n }\n\n $data = [\n 'title' => 'Welcome',\n 'description' => 'Simple social network built on myMVC PHP framework'\n ];\n\n $this->loadView('pages/index', $data);\n }", "title": "" }, { "docid": "e75c125de384ce9e432e95f0d85057b8", "score": "0.67641175", "text": "public function index()\n {\n return view('welcome');\n }", "title": "" }, { "docid": "e75c125de384ce9e432e95f0d85057b8", "score": "0.67641175", "text": "public function index()\n {\n return view('welcome');\n }", "title": "" }, { "docid": "e75c125de384ce9e432e95f0d85057b8", "score": "0.67641175", "text": "public function index()\n {\n return view('welcome');\n }", "title": "" }, { "docid": "e75c125de384ce9e432e95f0d85057b8", "score": "0.67641175", "text": "public function index()\n {\n return view('welcome');\n }", "title": "" }, { "docid": "e75c125de384ce9e432e95f0d85057b8", "score": "0.67641175", "text": "public function index()\n {\n return view('welcome');\n }", "title": "" }, { "docid": "e75c125de384ce9e432e95f0d85057b8", "score": "0.67641175", "text": "public function index()\n {\n return view('welcome');\n }", "title": "" }, { "docid": "e75c125de384ce9e432e95f0d85057b8", "score": "0.67641175", "text": "public function index()\n {\n return view('welcome');\n }", "title": "" }, { "docid": "e75c125de384ce9e432e95f0d85057b8", "score": "0.67641175", "text": "public function index()\n {\n return view('welcome');\n }", "title": "" }, { "docid": "e75c125de384ce9e432e95f0d85057b8", "score": "0.67641175", "text": "public function index()\n {\n return view('welcome');\n }", "title": "" }, { "docid": "e75c125de384ce9e432e95f0d85057b8", "score": "0.67641175", "text": "public function index()\n {\n return view('welcome');\n }", "title": "" }, { "docid": "e75c125de384ce9e432e95f0d85057b8", "score": "0.67641175", "text": "public function index()\n {\n return view('welcome');\n }", "title": "" }, { "docid": "e75c125de384ce9e432e95f0d85057b8", "score": "0.67641175", "text": "public function index()\n {\n return view('welcome');\n }", "title": "" }, { "docid": "e75c125de384ce9e432e95f0d85057b8", "score": "0.67641175", "text": "public function index()\n {\n return view('welcome');\n }", "title": "" }, { "docid": "e75c125de384ce9e432e95f0d85057b8", "score": "0.67641175", "text": "public function index()\n {\n return view('welcome');\n }", "title": "" }, { "docid": "e75c125de384ce9e432e95f0d85057b8", "score": "0.67641175", "text": "public function index()\n {\n return view('welcome');\n }", "title": "" }, { "docid": "e75c125de384ce9e432e95f0d85057b8", "score": "0.67641175", "text": "public function index()\n {\n return view('welcome');\n }", "title": "" }, { "docid": "5d4e0ccf87bfa1bc7426cd164600e587", "score": "0.6757463", "text": "public function index()\n\t{\n\t\treturn view('home');\n\t}", "title": "" }, { "docid": "5d4e0ccf87bfa1bc7426cd164600e587", "score": "0.6757463", "text": "public function index()\n\t{\n\t\treturn view('home');\n\t}", "title": "" }, { "docid": "5d4e0ccf87bfa1bc7426cd164600e587", "score": "0.6757463", "text": "public function index()\n\t{\n\t\treturn view('home');\n\t}", "title": "" }, { "docid": "e1edaef77b26489b6b583f71e6725b57", "score": "0.6753584", "text": "public function index()\n\t{\n\t\t// echo \"func/index\";\n\t\t// $this->load->view('welcome_message');\n\t}", "title": "" }, { "docid": "84434f5a72c9de737f728b61b4b8ff42", "score": "0.67535394", "text": "public function index() \n {\n return view('welcome'); \n }", "title": "" }, { "docid": "736b9f565cf787b46ec5a1f37da1a1c7", "score": "0.6734798", "text": "public function index()\n { \n\n /**\n * Carregando o metodo dashboard() como default do controller\n * Loading the method dashboard() as controller default\n */\n $this->dashboard();\n \n }", "title": "" }, { "docid": "1078144dfeb46284727daa15cf91b54f", "score": "0.6733424", "text": "public function index()\n\t{\n\t\t$this->load->view('home_page');\n\n\t}", "title": "" }, { "docid": "b19061866e10b8131e29197f5aea65ff", "score": "0.67219067", "text": "public function index()\n {\n $data = [\n 'title' => 'INDEX'\n ];\n\n $this->view('pages/index', $data);\n }", "title": "" }, { "docid": "a41954c11fc91d04ddd21e3e4645d449", "score": "0.6712543", "text": "public function getIndex()\n\t{\n\t\treturn view('home');\n\t}", "title": "" }, { "docid": "b085c6b7b9b4ef232288055169e4eeca", "score": "0.6711513", "text": "public function index()\n\t{\n\t\treturn view('pages.home');\n\t}", "title": "" }, { "docid": "8341d2aa59f87ad09d271e40d094b51b", "score": "0.67108494", "text": "public function index()\n\t{\n\t return view('welcome_message');\n\t}", "title": "" }, { "docid": "cab2f85c3bae10db5b6e1f1e0005950d", "score": "0.67034876", "text": "public function index()\n {\n $data['title'] = 'Home';\n return view('frontend.official.welcome',$data);\n }", "title": "" }, { "docid": "25541989d51fa6c050fd7f3f5b4bcedc", "score": "0.66976446", "text": "public function index()\n {\n\t\treturn view('/site/home');\n }", "title": "" }, { "docid": "bd2b9467fd73a10228c55289770d10dc", "score": "0.6691367", "text": "public function index() {\n\t\treturn view('home');\n\t}", "title": "" }, { "docid": "96205916c36e5e843fff6223199d9572", "score": "0.66811305", "text": "public function index()\n\t{\n\t\t//\n\t\t// Do nothing\n\t\t//\n\t}", "title": "" }, { "docid": "13ef5818e4d917b88d9a7f841688c352", "score": "0.66693515", "text": "public function index() {\n // inside redirects to front page\n $this->data['message'] = $this->session->flashdata('message');\n if (!$this->is_authenticated()) {\n return;\n }\n\n $data['title'] = 'Welcome';\n\t\t$this->load->view('welcome', $data);\n\t}", "title": "" }, { "docid": "415efa116cc47adeee1f165aec14c2ba", "score": "0.6667821", "text": "public function index()\t{\n\t\t\n\t\t$this->home();\n\t\n\t}", "title": "" }, { "docid": "0f28a14f503211d310ddde068cb94816", "score": "0.6658973", "text": "public function index()\n {\n return view('welcome');\n\n }", "title": "" }, { "docid": "46d1ab5f97969303dda456a35bd24cf6", "score": "0.6644901", "text": "public function Index()\n {\n echo \"This is the index\";\n }", "title": "" }, { "docid": "4b40a1595cd51b160d44350ec22a2a3d", "score": "0.66442394", "text": "public function index()\n {\n echo \"<pre>\";\n echo \"I am loaded in Controller\";\n echo \"</pre>\";\n // Do task\n app(Say::class)->hello('World');\n // load the view and pass the sharks\n return view('IACoreModule::welcome');\n }", "title": "" } ]
41daa5ad4dd36733f4cd72bb5795566d
retornar el valor de la variable del servidor: $_SESSION['nombre']
[ { "docid": "a78ae01283877c1d715aad1154bbaa25", "score": "0.64568985", "text": "function revisar_usuario(){\n return isset($_SESSION['nombre']);\n}", "title": "" } ]
[ { "docid": "52df4ff57213ac768dd23682b01ebecb", "score": "0.6449828", "text": "private function usuario(){\n session_start();\n return $_SESSION['data'];\n }", "title": "" }, { "docid": "59c15619f7744e7ae3af7f884bd5b360", "score": "0.64238375", "text": "public function getUserName(){\r\n return $_SESSION['userName'];\r\n }", "title": "" }, { "docid": "7848a3e6a640ae0bae9f00c15a1216e0", "score": "0.6377211", "text": "public function setUsuarioActual($usuario){\n $_SESSION['usuario'] = $usuario;\n }", "title": "" }, { "docid": "058465ccfed5231b20350a4856619f2f", "score": "0.6345973", "text": "public static function iniciaSesion($usuario){\n\t\t$_SESSION['sesion'] = 'OK';\n\t\t$_SESSION['nombreUsuario'] = $usuario[\"NOMBRESUSUARIO\"];\n\t\t$_SESSION['apellidoUsuario'] = $usuario[\"APELLIDOSUSUARIO\"];\n\t\t$_SESSION['rol'] = $usuario[\"ID_ROL\"];\n\t\t$_SESSION['nombreRol'] = $usuario[\"NOMBREROL\"];\n\t}", "title": "" }, { "docid": "43d75aa9e0184eb561361aa004bda26f", "score": "0.634402", "text": "function segurtasunaAnonimo(){\r\n\t\tif (empty($_SESSION[\"nick\"])) {\r\n\t\t\techo \"<script> window.location.assign('nickaSartu.php');</script>\";\r\n\t\t\texit();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "eea5b9795c57c64651580d921671545f", "score": "0.6259942", "text": "function get($name)\n {\n print $_SESSION[$name];\n }", "title": "" }, { "docid": "07478d5fd181ea7ca77a3f418500eea2", "score": "0.62514293", "text": "function getUsuarioLogado(){\r\n\t\tif(isset($_SESSION['email_the']) && isset($_SESSION['nome'])){\r\n\t\t$this->usuario_logado = true;\r\n\t\t}\r\n\t\treturn $this->usuario_logado;\t\r\n\t}", "title": "" }, { "docid": "b4f465c39d4f8c72f8ab6478c9f09868", "score": "0.6230361", "text": "public function procesar_sesion($usuario) {\n // Destruir las variables sesion anteriores \n destruir_sesion(); \n // Generar una nueva sesion\n session_start();\n $_SESSION[\"nick\"] = $usuario;\n redirecciona()->to(\"/admin\"); \n }", "title": "" }, { "docid": "6002619204d9953017d36831175ff463", "score": "0.61748624", "text": "public function retriveUsername() {\n return $_SESSION[$this->sessionUsername];\n }", "title": "" }, { "docid": "8195e3d48dfad9fabe795384875e9f59", "score": "0.6121893", "text": "public function getUserNameSession(){\n return $_SESSION[self::$LoggedInUserID];\n }", "title": "" }, { "docid": "8195e3d48dfad9fabe795384875e9f59", "score": "0.6121893", "text": "public function getUserNameSession(){\n return $_SESSION[self::$LoggedInUserID];\n }", "title": "" }, { "docid": "c56ddd296d6b6e1f282172d925e6eaae", "score": "0.6107899", "text": "public static function get($name){\n return $_SESSION[$name];\n }", "title": "" }, { "docid": "351747034b4241d60d87bf86f3f320d5", "score": "0.61046743", "text": "public function comprobarNombreUsuario() {\n\t\t\t$nombre = $_REQUEST[\"nombre\"];\n\t\t\t$result = $this->usuario->existeNombre($nombre);\n\t\t\techo $result;\n\t\t}", "title": "" }, { "docid": "5533b4022fca2318f1a41249172de465", "score": "0.6077572", "text": "public static function Mostrar_Nome() : string\n {\n return Login_Session::get_usuario_nome();\n }", "title": "" }, { "docid": "136bd5ce2118b72c199e33c63f1ed485", "score": "0.6054216", "text": "function provjeriSesiju (){\n session_name(self::SESSION_NAME);\n if(session_id() == \"\"){\n session_start();\n }\n if (isset($_SESSION[self::ID])){\n $id = $_SESSION[self::ID];\n } else {\n return null;\n }\n return $id;\n }", "title": "" }, { "docid": "66603c959fcca15a9651ddf94ab06475", "score": "0.60310054", "text": "public static function iniciar_sesion($id_usuario, $nombre_usuario) {\n //$_SESSION -> crea y controla las sesiones en las paginas web\n //iniciamos la sesion evaluando si ya se a iniciado o no\n if(session_id() == ''){\n //si el if se cumple entonces se crea la sesion\n session_start();\n }\n //le asignamos un nombre a la sesion y un valor\n $_SESSION['id_usuario'] = $id_usuario;\n $_SESSION['nombre_usuario'] = $nombre_usuario;\n }", "title": "" }, { "docid": "c1bcdea763875127c6564a0ebb52720a", "score": "0.60250497", "text": "private function getSessionUser(){\n if($_SESSION['userLogged']){\n $ret = \"Usuário logado.\";\n }else{\n $ret = \"Usuário não está logado.\";\n }\n return $ret;\n }", "title": "" }, { "docid": "c1c14ea581424829ed2455779500ec7c", "score": "0.5995156", "text": "public static function getUsername()\n {\n return $_SESSION['email'];\n }", "title": "" }, { "docid": "4119869913c8dd2a8df5b40991dbe3e1", "score": "0.5972184", "text": "public function __get($name){\n \t///######## IF THE SESSION KEY HAS BEEN SET\n\t if(isset($_SESSION[$name]) === true){\n\t\t ///########==================================================\n\t\t ///######## SET THE SESSION NAME\n\t\t ///########==================================================\n return($_SESSION[$name]);\n ///########==================================================\n }\n }", "title": "" }, { "docid": "b40ac68afdda2379e9935913544984e3", "score": "0.5958796", "text": "public function getSessionName() : string\n {\n return session_name();\n }", "title": "" }, { "docid": "06ed35ccff3b1727bb2c65d8502b5f57", "score": "0.5958616", "text": "function set_session($username){\n $_SESSION['uname'] = $username;\n }", "title": "" }, { "docid": "dcb773652d971b3cfa365702fefd3e2a", "score": "0.5949422", "text": "public function showSession($nom_session){\n //message de création de session\n $mess = \"Session ajouté à la BDD : Nom : $nom_session\";\n echo '<script>console.log(\"'.$mess.'\")</script>';\n }", "title": "" }, { "docid": "ebbdaee28dc9285784cc62807e6d039b", "score": "0.59363383", "text": "function fGetSession()\r\n\t{\r\n\t\t$name = strtolower(urldecode($_POST[\"name\"]));\r\n\t\tif ($name == 'status')\r\n\t\t{\r\n\t\t\tif($this->phpsession->get('logged_in') == true)\r\n\t\t\t{\r\n\t\t\t\t$nameName = $this->phpsession->get('userName');\r\n\t\t\t\t$time = $this->phpsession->get('login_time');\r\n\t\t\t\t$user = $this->phpsession->get('user');\r\n\t\t\t\t$person = $this->phpsession->get('personId');\r\n\t\t\t\techo ('1/'. $nameName . '/' . $time . '/' . $user . '/' . $person);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\techo ('0/');\r\n\t\t}\r\n\t\t\t\r\n\t}", "title": "" }, { "docid": "7784e59c94da22512ca97928b0dd89e2", "score": "0.59256923", "text": "function save_auth($username){\n\t$_SESSION[SESSION_AUTH_KEY] = $username;\n}", "title": "" }, { "docid": "df9adf8b3899c279b6b19f6a0eb7c21c", "score": "0.59249", "text": "public static function get($name)\n\t{\n\t\treturn $_SESSION[$name];\n\t}", "title": "" }, { "docid": "74da609931b088df095a06805159b968", "score": "0.59168375", "text": "function getUsername()\n{\n if(isset($_SESSION['USERNAME']) AND !empty($_SESSION['USERNAME']))\n {\n $username = $_SESSION['USERNAME'];\n }\n else\n {\n $username = 'Guest';\n }\n return $username;\n}", "title": "" }, { "docid": "7418d72c2a8d7bd19c6856cc85e7ca96", "score": "0.5904852", "text": "function validar_session() {\n if (empty($_SESSION) or empty($_SESSION['identificacion']) or ! isset($_SESSION['identificacion'])) {\n echo \"sin acceso al sistema ingrese a la plataforma\";\n exit();\n } else {\n return $_SESSION['identificacion'];\n }\n }", "title": "" }, { "docid": "12e060328ce4bb0f92cda40e8149ec16", "score": "0.5888495", "text": "function estaLogeado()\n\t{\n\t\tsession_start();\n\t\t//preguntamos si $_SESSION[\"nombre\"], ya que es la variable con la que registramos la session\n\t\tif(!isset($_SESSION[\"nombre\"])){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "6b8df103ae44cab5f5920a85d786d22b", "score": "0.58876115", "text": "public static function name(){\n\t\treturn session_name();\n\t}", "title": "" }, { "docid": "e7cd962b3ad6ec6d793a1fd6572b4e81", "score": "0.58646274", "text": "function session_set( $e_mail, $valor ) {\n $_SESSION[ $e_mail ] = $valor;\n}", "title": "" }, { "docid": "d1f86593fadf2da5b75c900718454fea", "score": "0.58456105", "text": "function set_session_name($first_name){\n $_SESSION['first_name'] = $first_name;\n }", "title": "" }, { "docid": "d974063c8f56deb34a54f8a9087ab277", "score": "0.5837683", "text": "function mostrar_usuario()\n{\n\t\n\techo \"<div align=\\\"right\\\">\";\n\techo \"<font face=\\\"Verdana\\\" size=\\\"1\\\" color=\\\"#333366\\\">\";\n\techo \"<b>Usuario: </b>\";\n\techo $_SESSION['nombre_usuario'];\n\techo \"&nbsp&nbsp&nbsp\"; \n\techo \"<a href=\\\"salir.php\\\">Salir</a>\";\n\techo \"</font>\";\n\techo \"<div align=\\\"right\\\">\";\n}", "title": "" }, { "docid": "871e894865462c2cfbd60208585fe42b", "score": "0.5835869", "text": "public function sessionSet( $clave, $valor ) {\n\n \t\t$_SESSION[$clave] = $valor;\n \t}", "title": "" }, { "docid": "7f97b437074b42f9d7113c43f8ba9daa", "score": "0.5833615", "text": "public function getSessionName()\n {\n if (!isset($this->value) || empty($this->value)) {\n $this->setValue($this->generateSessionName());\n }\n return $this->getValue();\n }", "title": "" }, { "docid": "de06d05e0f4eb1aa396c87cc0912f2fc", "score": "0.58310086", "text": "function paciente_unico(){\n $fbd = FachadaBD::getInstance();\n $cedula = $_POST[\"cedula\"];\n\t$result = $fbd->consultarDispositivosPosiblesBD();\n\n $valido = verificar_campos();\n\n if (!$valido) {\n\t echo '<div class=\"alert alert-danger\">Todos los campos son obligatorios. Por favor, intente de nuevo.</div>'; \n } else {\n $valido = !($fbd->validarPacienteBD($cedula));\n\n\t if ($valido) {\n\t // Guardo los valores enviados en la variable $_SESSION\n $_SESSION['nombre']=$_POST['nombre']; \n $_SESSION['apellido']=$_POST['apellido'];\n $_SESSION['cedula']=$_POST['cedula'];\n $_SESSION['profesion']=$_POST['profesion'];\n $_SESSION['residencia']=$_POST['residencia'];\n $_SESSION['nacimiento']=$_POST['dpYears'];\n header('Location: nuevoPaciente2.php');\n } else{\n\t echo '<div class=\"alert alert-danger\">El paciente ya se encuentra en la Base de Datos.</div>';\n\t }\n }\n}", "title": "" }, { "docid": "d5c333574fb1439c5be0ca2fabf01490", "score": "0.58287185", "text": "function username_from_session()\n{\n $username = '';\n\n // extract username from SESSION superglobal\n if (isset($_SESSION['user'])) {\n $username = $_SESSION['user'];\n }\n\n return $username;\n}", "title": "" }, { "docid": "fc8bd51708edb4e767a98b0ccebe4d41", "score": "0.5827984", "text": "function get_user_name(){\n return isset($_SESSION['username']) ? $_SESSION['username'] : null; \n}", "title": "" }, { "docid": "66377e32132680db2a82ea6d76a77b66", "score": "0.58122826", "text": "public function get($name, $value = '')\r\n {\r\n if ($this->has($name)) {\r\n\r\n return $_SESSION[$name] ?: $value;\r\n }\r\n\r\n if(! empty($value)) {\r\n\r\n return $value;\r\n }\r\n\r\n throw new Exception(\"Session [ $name ] does not exists.\");\r\n }", "title": "" }, { "docid": "d1618324a5e553c54002161ab88e4be4", "score": "0.58118844", "text": "public function getSessionName();", "title": "" }, { "docid": "75235882c90de79ffb7642e2888ea919", "score": "0.58115983", "text": "function dameNombre(){\n global $nombre;\n\n //Esta variable es de ambito local (Solo funciona dentro de esta) y nada tiene que ver\n //con la variable con el mismo nombre que esta afuera\n $nombre = \"El nombre es \" . $nombre;\n }", "title": "" }, { "docid": "807be994932fade9d980774c7053ee6d", "score": "0.58090955", "text": "public static function mensaje($ms=null){\n unset($_SESSION['mensaje']);\n $_SESSION['mensaje']=$ms;\n}", "title": "" }, { "docid": "d94ddd040021f461c706b629e87d7fc0", "score": "0.58046037", "text": "public function getUserCustomerName() {\n\t return $_SESSION['usuario']['clientenombre'];\n }", "title": "" }, { "docid": "6c35a6bd85a54916b39f1c421df7f7df", "score": "0.57993466", "text": "public function setUserNameSession($value){\n if(!is_string($value)){\n throw new Exception(\"Value is not valid.\");\n }\n $_SESSION[self::$LoggedInUserID] = $value;\n }", "title": "" }, { "docid": "b7746ccf413279a93f28d7f33f70061b", "score": "0.5791506", "text": "function registar(){\n $id_utilizador = insereUtilizador($_POST['nome'],$_POST['login'],$_POST['password']);\n /* vai buscar os dados do utilizador inseridos na Base de dados para iniciar uma sessao */\n $utilizador = pesquisa('Utilizador','ID_Utilizador',$id_utilizador); \n\n /* inicia as variaveis de sessao */\n $_SESSION['ID_Utilizador'] = $utilizador[0]->ID_Utilizador;\n $_SESSION['nome'] = $utilizador[0]->nome;\n $_SESSION['login'] = $utilizador[0]->login;\n\n header('Location:index.php');\n }", "title": "" }, { "docid": "c2fc06380a64c78694f6c5d54d61a469", "score": "0.57872754", "text": "static function SetVar($name, $value)\r\n\t{\r\n\t\tglobal $HTTP_SESSION_VARS;\r\n\t\tif (is_array(@$_SESSION)) $_SESSION[$name] = $value;\r\n\t\tif (is_array($HTTP_SESSION_VARS)) $HTTP_SESSION_VARS[$name] = $value;\r\n\t\treturn $value;\r\n\t}", "title": "" }, { "docid": "0fa57f57eb8721f58cdaedd1c5da1883", "score": "0.5778767", "text": "function aanmelden() {\n // sessie starten\n session_start();\n // gebruikers id opslaan\n $_SESSION['gebruiker'] = $this->gebruikersId;\n echo \"session: \" . $_SESSION['gebruiker'];\n }", "title": "" }, { "docid": "9ca2c3e7c8f983bd75d6be6dd5c79d97", "score": "0.576372", "text": "function comprobarSession(){\n if(!isset($_SESSION['usuario'])){\n header('Location: ' . RUTA);\n }\n}", "title": "" }, { "docid": "8fcd03e1c88a63cdd64eb6e99a932501", "score": "0.57626224", "text": "public static function getUserName() {\n\t\treturn isset ($_SESSION['username']) ? $_SESSION['username'] : null;\n\t}", "title": "" }, { "docid": "b9d09392ff254b838b2b60a5533696df", "score": "0.57552713", "text": "public static function get(string $name)\n {\n $exists = self::exists($name);\n if ($exists){\n return $_SESSION[$name];\n } \n\n return (\"\");\n\n }", "title": "" }, { "docid": "4be163010a7f8b5836c9618a1f78a21b", "score": "0.5744358", "text": "public static function set($clave, $valor)\n {\n if (!empty($clave)) {\n $_SESSION[$clave] = $valor;\n }\n }", "title": "" }, { "docid": "5f8c528465203835dccbfaad8a1f2c21", "score": "0.57432765", "text": "public function login($usuario) {\n session_start();\n $_SESSION['ID_USUARIO'] = $usuario->idUsuario;\n $_SESSION['USUARIO'] = $usuario->usuarioName;\n $_SESSION['ADMIN'] = $usuario->admin;\n }", "title": "" }, { "docid": "e36e7cbe307cc17e4c24de1b0534976a", "score": "0.57400435", "text": "function controle($opcao){\n\tif(!$_SESSION[$opcao] || $opcao=='alteracao'){\n\t\t$SQL_op = mysql_fetch_object(sel(\"controle\",\"valor\",\"WHERE titulo='$opcao' AND ativo='1' LIMIT 1 \"));\n\t\tif(!$SQL_op->valor){\n\t\t\t\n\t\t\tif($opcao=='mensagem_interval') $valor = '60000'; //tempo padrao do sistema sem usuario\n\t\t\t//exemplos\n\t\t\t//if($opcao=='settings_folder') $valor = '/var/www/sites/printdots.com.br/app';\n\t\t\tif($opcao=='printdots_ip') $valor = 'http://200.158.67.22/printdots.com.br/app';\n\t\t\tif($opcao=='dirbase') $valor = '/home/printdots/public_html/app';\n\t\t\t//if($opcao='e') $valor = '5';\n\t\t\t\n\t\t\treturn $valor;\n\t\t\t$_SESSION[$opcao] = $valor;\n\t\t}else{\n\t\t\treturn $SQL_op->valor;\n\t\t\t$_SESSION[$opcao] = $SQL_op->valor;\n\t\t}\n\t}else{\n\t\treturn $_SESSION[$opcao];\n\t}\n}", "title": "" }, { "docid": "6abe49e009eaf9b96b117ee9277e64b8", "score": "0.5738989", "text": "function logar($conexao,$id,$senha){\n\t\t\t$select = mysqli_query($conexao,\"select id,senha from usuario where id=$id and senha='$senha'\");\n\t\tif(mysqli_fetch_row($select)>0){\n\t\t\tsession_start();\n\t\t\t$_SESSION['id'] = $id;\n\t\t\theader(\"location:../home.php\");\n\t\t}else{\n\t\t\tsession_start();\n\t\t\tunset($_SESSION['id']);\n\t\t\theader(\"location:../index.php\");\n\t\t}\n\t}", "title": "" }, { "docid": "bdc3f34b3d9ad75e286e846f5ca1fa86", "score": "0.5725608", "text": "function get($name) {\r\n\t\tif (isset($_SESSION[$name])) return $_SESSION[$name];\r\n\t\telse return false;\r\n\t}", "title": "" }, { "docid": "3cc014a5d2c61b0f07458c6ea6ef76f1", "score": "0.5725071", "text": "function getSessionVar($name)\n{\n\tif (!empty($_SESSION[$name])) {\n\t\treturn $_SESSION[$name];\n\t}\n\tif (!empty($_COOKIE[$name])) {\n\t\treturn $_COOKIE[$name];\n\t}\n}", "title": "" }, { "docid": "2e4e960755e6a840896fac618a68cb91", "score": "0.57201433", "text": "public function get($name) {\n if (isset($_SESSION[$name])) {\n return $_SESSION[$name];\n }\n }", "title": "" }, { "docid": "ac1428f7c888f00fdf405579fd766f19", "score": "0.57134557", "text": "public function setUserNameSession($value){\n if(!is_string($value)){\n throw new SessionException(\"Value is not valid.\");\n }\n $_SESSION[self::$LoggedInUserID] = $value;\n }", "title": "" }, { "docid": "2ab112d17b64ea76a5a63e33aa4a72dc", "score": "0.5693324", "text": "function ident () {\r\n\t\t$email = isset($_POST['email'])?trim($_POST['email']):'';\r\n\t\t$mdp = isset($_POST['mdp'])?trim($_POST['mdp']):'';\r\n\t\t$msg = \"\";\r\n\t\t$nom = 'SELECT nom FROM client c\tWHERE c.id =: session_id() ';\r\n\r\n\r\n\t\trequire(\"./modele/utilisateurBD.php\");\r\n\r\n\r\n\t\tif (count($_POST)==0)\r\n\t\t\trequire(\"vue/utilisateur/ident.tpl\");\r\n\r\n\t\telse {\r\n\t\t\tif ($bool = verifS_ident($email, $mdp, $err) && verif_bd($email, $mdp, $profil)) { //$bool=verifS_ident($nom, $num, $err)) &&\r\n\t\t\t\t//echo ('<br />PROFIL : <pre>'); print_r ($profil); echo ('</pre><br />'); die(\"ident\");\r\n\t\t\t\tif ($email == \"loueur@voitures.com\") {\r\n\t\t\t\t\t$_SESSION['profil'] = $profil;\r\n\t\t\t\t\t$nexturl = \"index.php?controle=loueur&action=stock\";\r\n\t\t\t\t\theader(\"Location:\" . $nexturl); // On retourne à la page index !!!\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t//session_start(); //fait dans index\r\n\t\t\t\t$_SESSION['profil'] = $profil;\r\n\t\t\t\t$nexturl = \"index.php?controle=utilisateur&action=accueil\";\r\n\t\t\t\theader(\"Location:\" . $nexturl); // On retourne à la page index !!!\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif (!$bool)\r\n\t\t\t\t\t$msg = $err;\r\n\t\t\t\telse\r\n\t\t\t\t\t$msg = \"Utilisateur inconnu !\";\r\n\t\t\t\trequire(\"vue/utilisateur/ident.tpl\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3ef14c6c6d9eb0264a85f294d541f63e", "score": "0.5682493", "text": "function get_user_name(){\r\n return isset($_SESSION['username']) ? ($_SESSION['username']) : null;\r\n}", "title": "" }, { "docid": "188c5a2d90e4ff4c6eee45e569c0aee5", "score": "0.56772697", "text": "private function getVariable($name){\n return $this->session->get($name);\n }", "title": "" }, { "docid": "d6855df22589d27a72e0631913e37543", "score": "0.5645705", "text": "public static function get_mensaje(){\n if(!empty($_SESSION['mensaje'])){\n echo\"\n\t <script>\n\t\t document.getElementById('mensaje').style.display='block';\n\t\t</script>\n\t \";\n echo utf8_decode($_SESSION['mensaje']);\n\t //echo $_SESSION['mensaje'];\n\t unset($_SESSION['mensaje']);\n }\n}", "title": "" }, { "docid": "cb9495ede2251ecf925fe6be4b9eaccd", "score": "0.56414473", "text": "public function action_cambiar(){\n\t\tswitch (Input::get(\"idioma\")) {\n\t\t\tcase 'en':\n\t\t\t\tSession::put('sesion_idioma', 'en');\n\t\t\t\tbreak;\n\t\t\tcase 'es':\n\t\t\t\tSession::put('sesion_idioma', 'es');\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSession::put('sesion_idioma', 'en');\n\t\t\t\tbreak;\n\t\t}\n\t\treturn Session::get('sesion_idioma');\n\t}", "title": "" }, { "docid": "c0760b730342910d50d0da440027644f", "score": "0.56345916", "text": "private function registro() {\n\t\t$nombre = (isset($_POST[\"nombre\"]) ? $_POST[\"nombre\"] : \"\");\n\t\t$email = (isset($_POST[\"email\"]) ? $_POST[\"email\"] : \"\");\n\t\t$password = (isset($_POST[\"password\"]) ? $_POST[\"password\"] : \"\");\n\n\t\t$sql = \"SELECT idUsuario FROM Usuario where nombre = '\". $nombre .\"'\";\n\t\t$conn = $this->getConexion();\n\t\t\n\t\t$result = $conn->query($sql);\n\n\t\tif ($result->num_rows == 0) {\n\t\t\t$sql = \"INSERT INTO Usuario (nombre, email, password) VALUES \";\n\t\t\t$sql .= \"('\". $nombre .\"', '\". $email .\"', md5('\". $password .\"'))\";\n\n \t\tif($conn->query($sql)) {\n \t\t\t$sql = \"SELECT idUsuario FROM Usuario where idUsuario = LAST_INSERT_ID()\";\n \t\t\t$result = $conn->query($sql);\n\n \t\t\tif ($result->num_rows > 0) {\n\t\t \t\tif($row = $result->fetch_assoc()) {\n\t\t \t\t\t$_SESSION[\"idUsuario\"] = $row[\"idUsuario\"];\n\t\t \t\t\t$_SESSION[\"nombre\"] = $nombre;\n\t\t \t\t\theader(\"Location: inicio.php\");\n\t\t \t\t}\n\t\t \t}\n \t\t}\n \t} else {\n \t\tthrow new Exception(\"El usuario ya existe en el sistema.\");\n \t}\n\t}", "title": "" }, { "docid": "3602e8df059343fd7d1dd16284825adf", "score": "0.5631249", "text": "public function setVariable($variable, $valor){\n\t\t\tif (isset($_SESSION[$variable])){\n\t\t\t\t$_SESSION[$variable] = $valor;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "952694ce0f07b33a5fade8645d1ccc76", "score": "0.5627979", "text": "function getUsername($conn, $username) {\n $sqlGetUsername = \"SELECT Username FROM Names\n WHERE Username='$username'\";\n $resultGetUsername = mysqli_query($conn,$sqlGetUsername);\n if (!$resultGetUsername)\n {\n echo \"Problem finding user<br>\";\n } else {\n $rowUsername = mysqli_fetch_row($resultGetUsername);\n $username = $rowUsername[0];\n }\n // set session variable for Username\n $_SESSION[\"username\"] = $username;\n return $username;\n }", "title": "" }, { "docid": "4c53f352d75fd151f7136f7702338d59", "score": "0.56258327", "text": "public static function session_name() {\n return session_name();\n }", "title": "" }, { "docid": "e24c45ff02c2bfc52d610829821631c6", "score": "0.56168777", "text": "public function sesion($app){\n\t\tif(empty($_SESSION['idUsuario'])){\n\t\t\t $app->redirect('./hibrido/public/404.html');\n\t\t}\n\t}", "title": "" }, { "docid": "91e01c28e09d2f795c1778e1d708ebd8", "score": "0.56137604", "text": "function visitasSesion()\n{\n $resul = \"\";\n if (isset($_SESSION['contador'])) {\n $_SESSION['contador'] = $_SESSION['contador'] + 1;\n $resul = 'Número de visitas: ' . $_SESSION['contador'];\n } else {\n $_SESSION['contador'] = 1;\n $resul = 'Bienvenido a nuestra página web';\n }\n return $resul;\n}", "title": "" }, { "docid": "afcb1c3d82afce454323cbdc23274a6c", "score": "0.56095946", "text": "function sesion()\r\n{\r\n if($_SESSION[\"SESSION\"])\r\n { echo\"<table border='0' align='center' cellspacing='0' class='p_cuadro'>\r\n <tr>\r\n <td width='204' rowspan='2'><div align='center'><img src='../webpanel/imagenes/p_logo.jpg' alt='Logo Derechoteca' width='185' height='36' longdesc='http://www.derechoteca.com'></div></td>\r\n <td width='2'></td>\r\n <td height='21' class='p_subtit3'>Bienvenido (a) </td>\r\n <td><div align='center'><a href='../index.php' class='p_link2'>Ver Sitio Web</a></a> <span class='p_link2'>| </span><a href='panel.php' class='p_link2'>Panel de Administraci&oacute;n</a> <span class='p_link2'>| </span><a href='?pa=salir' class='p_link2'>Cerrar Sesi&oacute;n</a></div></td>\r\n </tr>\r\n <tr>\r\n <td>&nbsp;</td>\r\n <td width='246' height='21' class='p_nombre'>$_SESSION[NOMBRE]</td>\r\n <td width='315'>\r\n\t <div align='center'>\r\n\t <select class='p_combo' onchange='goSelect(this)' size='1' name='m'> \t\t \r\n\t <option value='#' selected='selected'>MENÚ DE ADMINISTRACI&Oacute;N </option>\r\n\t <option value='#' target='top'>__________________________________________________ </option>\r\n\t <option value='#' target='top'> C O M U N E S </option>\r\n\t <option value='#' target='top'>__________________________________________________ </option>\t\t \r\n\t\t <option value='panel.php?pa=titulo'>Título del Sitio Web</option>\r\n\t <option value='panel.php?pa=pie'>Pie de P&aacute;gina</option>\r\n \t <option value='panel.php?pa=inicio'>Inicio</option>\r\n\t <option value='panel.php?pa=etiquetas'>Etiquetas</option>\r\n\t <option value='panel.php?pa=usuario'>Datos del Usuario</option>\r\n\t <option value='panel.php?pa=logo'>Cargar Logotipo al Sitio Web</option>\r\n\t <option value='#' target='top'>__________________________________________________ </option>\r\n\t <option value='#' target='top'> OPCIONES DEL MENU </option>\r\n\t <option value='#' target='top'>__________________________________________________ </option>\t\t \r\n\t\t <option value='panel.php?pa=nmodulo'>--- Crear una nueva opción en el menu ---</option>\";\r\n\t $res=mysql_query(\"SELECT * FROM contenido WHERE tipo='modular' order by nro\");\r\n while ($row=mysql_fetch_object($res))\r\n\t\t echo\"<option value='panel.php?pa=$row->subtipo&id=$row->id'>$row->titulo</option>\";\r\n\t\t \r\n\t \r\n\t\t echo\"<option value='#' target='top'>__________________________________________________ </option>\r\n\t\t <option value='#' target='top'>SELECCIONAR DISEÑO </option>\r\n\t\t <option value='#' target='top'>__________________________________________________ </option>\t\t \";\r\n\t\t $d=dir(\"../temas\");\r\n while($entry=$d->read())\r\n\t\t {if($entry<>'.' and $entry<>'..')\r\n echo \"<option value='sql.php?tema=$entry' target='top'>Diseño $entry</option>\";\r\n }\r\n $d->close();\r\n echo\"</select></div></td> </tr></table>\";\r\n }\r\n}", "title": "" }, { "docid": "f2c54c791ba50cab82855b1d74341104", "score": "0.5609347", "text": "public static function getUsername() {\n self::log(0,\"HelperFunctions::getUsername()\", \"Fetching session username.\");\n if(isset($_SESSION['uname'])) {\n return $_SESSION['uname'];\n }\n return \"Unregistered\";\n }", "title": "" }, { "docid": "602541ceb65a3fdba6b186827d22d3ea", "score": "0.5608946", "text": "public function get()\n\t{\n\t\t//kiem tra ton tai session\n\t\tif (isset($_SESSION['user'])) {\n\t\t\t$user = $_SESSION['user'];\n\t\t} else {\n\t\t\t$user = '';\n\t\t}\n\n\t\treturn $user;\n\n\t}", "title": "" }, { "docid": "fac780d6438f1849e235ec790705cd22", "score": "0.55991805", "text": "public function __get($name)\n {\n if(isset($_SESSION[$name])) {\n return $_SESSION[$name];\n }\n }", "title": "" }, { "docid": "c6d1ba2ecf5af88b20d9b35c5927d72a", "score": "0.5594856", "text": "public function setUsernameInSession($name)\n {\n $_SESSION[self::$usernameInSession] = $name;\n }", "title": "" }, { "docid": "8319f98d9af87c6a8ede71f6cfec657d", "score": "0.5588931", "text": "function user() {\n\t\treturn $_SESSION['user'];\n\t}", "title": "" }, { "docid": "16dd71d2bf17be61e1d1e54b1452a61e", "score": "0.5585794", "text": "public function setlogado() {\n if (isset($_SESSION['dmrlogin']) && (!empty($_SESSION['dmrlogin']))) {\n $id = $_SESSION['dmrlogin'];\n $sql = \"SELECT * FROM corretores WHERE id = :id \";\n $sql=$this->db->prepare($sql);\n $sql->bindValue(':id',$id);\n \n $sql->execute();\n if ($sql->rowCount() > 0) {\n $this->userInfo = $sql->fetch();\n }\n }\n }", "title": "" }, { "docid": "cf12e603a2636ba75cf2592c4736fd2a", "score": "0.557948", "text": "public function setUserInfo()\r\n {\r\n $_SESSION['Username'] = $this->username;\r\n $_SESSION['LoggedIn'] = 1;\r\n }", "title": "" }, { "docid": "d2927399a065dcaa34e7020fbed2d79a", "score": "0.5579048", "text": "public function getUsername() {\n if (isset($_SESSION['username']))\n return $_SESSION['username'];\n else\n return false;\n }", "title": "" }, { "docid": "e2969202dd36e41b7d99a19cabfbbff0", "score": "0.55704993", "text": "public function getUsernameInSession()\n {\n if(isset($_SESSION[self::$usernameInSession]))\n {\n return $_SESSION[self::$usernameInSession];\n }\n\n return null;\n }", "title": "" }, { "docid": "ddc5f7aef70a9bd3a8f629aadd31ff34", "score": "0.5570042", "text": "public function dispUsername(){\t// gets username to display??? \r\n\t\t$db = new PDO('mysql:host=142.156.193.61;dbname=test',$username,'MAJiK');\r\n\t\t$id = $_SESSION['nodeID'];\r\n\t\t$username = $_SESSION['username'];\r\n\t\t$password = $_SESSION['password'];\r\n\t\t$rows = $db->query('SELECT username FROM authusers WHERE nodeID = \"' .$id. '\"');\r\n\t\tforeach ($rows as $row){\r\n\t\t\tfor($i=0; $i < sizeof($row)/2; $i++){\r\n\t\t\t\techo \" \" . $row[$i] ;\r\n\t\t\t}\r\n\t\t\techo \"<br />\";\r\n\t\t}\r\n\t\treturn $this->username;\r\n\t}", "title": "" }, { "docid": "eaf20f2213ea7080fbd91415365439ee", "score": "0.55677557", "text": "private function login() {\n $nombreUsuario = $this->arrayPost['nombreUsuario'];\n $contrasena = $this->arrayPost['contrasena'];\n\n $paginaInicio = \"home.php\";\n $paginaLogin = \"login.html\";\n\n // Traer datos de la base\n $usuarioAEvaluar = $this->modelo->obtenerUsuario($nombreUsuario);\n\n // Los credenciales hacen match\n if (!is_null($usuarioAEvaluar) && $usuarioAEvaluar->obtenerContrasena() == $contrasena) {\n $_SESSION['nombreUsuario'] = $nombreUsuario;\n $_SESSION['contrasena'] = $contrasena;\n include_once $paginaInicio;\n }\n else {\n echo \"\\nCredenciales inválidos\";\n session_destroy();\n include_once $paginaLogin;\n }\n\n }", "title": "" }, { "docid": "c30c56d2fc7832a6872ab37f43228537", "score": "0.55660486", "text": "public function get($key) { return $_SESSION[$key]; }", "title": "" }, { "docid": "fbdc842295e037aea8d7dca8e5947c7f", "score": "0.55624753", "text": "public function usuario_autentificado(){\n \n\n @session_start();\n function revisar_usuario_session(){\n\n if($_SESSION['tipo_usuario']=='Admin' or $_SESSION['tipo_usuario']=='Proveedor'){\n\n return isset($_SESSION['usuario']);\n }else{\n return 0;\n }\n }\n\n if(!revisar_usuario_session()){\n header('location:../../');\n exit();\n }\n\n\n }", "title": "" }, { "docid": "1697c24556f02bae2d588ae7bf52830c", "score": "0.55579746", "text": "function login_usuario($username,$password,$sender)\n{\n $usuario_validado = validar($username,$password);\n if (!($usuario_validado == null))\n {\n $sesion=new THttpSession;\n $sesion->open();\n $sesion['tipo_nomina']=\"EMPLEADOS\";\n $sesion['login']=$usuario_validado->login;\n $sesion['cedula']=$usuario_validado->cedula;\n $sesion['email']=$usuario_validado->email;\n /* Con el número de cédula del usuario, se localizan los datos de la\n * organizacion a la que pertenece.\n */\n $sql=\"SELECT n.cod_organizacion, o.nombre, o.rif, d.codigo, d.nombre_completo, d.siglas\n FROM organizacion.personas_nivel_dir n, organizacion.organizaciones o, organizacion.direcciones d\n WHERE ((d.codigo = n.cod_direccion) and (o.codigo = n.cod_organizacion) and (n.cedula = '$usuario_validado->cedula'))\";\n $resultado=cargar_data($sql,$sender);\n $sesion['cod_organizacion'] = $resultado[0]['cod_organizacion'];\n $sesion['rif_organizacion'] = $resultado[0]['rif'];\n $sesion['nombre_organizacion'] = $resultado[0]['nombre'];\n $sesion['cod_direccion'] = $resultado[0]['codigo'];\n $sesion['siglas_direccion'] = $resultado[0]['siglas'];\n $sesion['nombre_direccion'] = $resultado[0]['nombre_completo'];\n $sesion->close();\n return true;\n } \n else\n { return false; }\n}", "title": "" }, { "docid": "e3281dba745c02d219b346c58e8943b7", "score": "0.5556276", "text": "function login($usuario) {\n $_SESSION[\"email\"] = $usuario[\"email\"];\n setcookie(\"email\", $usuario[\"email\"], time()+3600);\n }", "title": "" }, { "docid": "97b14d80ff9afd15ad61bacd836ade6a", "score": "0.5551328", "text": "public function get($name)\n {\n \treturn $this->session->userdata($name);\n }", "title": "" }, { "docid": "2492487b798e5ee553ba189e86a9d291", "score": "0.5543946", "text": "function identification ($login,$pass){\r\n try{\r\n $bdd = new PDO('mysql:host=localhost;dbname=identification;charset=utf8','root',''); \r\n }\r\n catch(Exception $e){\r\n die(\"Erreur : \". $e->getMessage());\r\n }\r\n\r\n //$query = $bdd->query('SELECT * FROM utilisateur WHERE mail= \\''.$login.'\\' and password = \\''.$pass.'\\'');\r\n $query = $bdd->query(\"SELECT * FROM utilisateur WHERE mail= '\".$login.\"' and password = '\".$pass.\"'\");\r\n if($result = $query->fetch()){\r\n $_SESSION['prenom'] = $result[3];\r\n $_SESSION['nom'] = $result[2];\r\n $_SESSION['pseudo'] = $result[4];\r\n $_SESSION['login'] = 'logged';\r\n $_SESSION['email'] = $login;\r\n\t\t\t$_SESSION['gender'] = $result[5];\r\n\t\t\t$_SESSION['birth'] = $result[6];\r\n\t\t\t$_SESSION['activity'] = $result[7];\r\n header('location: ../utilisateur/profil.php');\r\n }\r\n \r\n else header('location: identificationErreur.php');\r\n \r\n }", "title": "" }, { "docid": "744b4b572c93da100689c0381a8e3f39", "score": "0.5540522", "text": "function getSession(){\r\n $contenu_sess = \"!--- Affichage du contenu de la session ---!\";\r\n $contenu_sess .= \"<pre>\";\r\n $contenu_sess .= print_r($_SESSION, true);\r\n $contenu_sess .= \"</pre>\";\r\n return $contenu_sess;\r\n }", "title": "" }, { "docid": "dfb8ca1923f0f1959c0beb6071141c9b", "score": "0.5527811", "text": "public static function get($name)\n {\n return $_SESSION[$name] ?? null;\n }", "title": "" }, { "docid": "2884b1fc81b1a83d247ad82bdd392588", "score": "0.5521941", "text": "function his_chara()\n {\n return Session::get('his_chara');\n }", "title": "" }, { "docid": "a3a0eb241ea98d0432b751146c7c49ff", "score": "0.5521263", "text": "function connecter($id,$login,$type){\n\t$_SESSION['idVisiteur']= $id;\n\t$_SESSION['login']= $login;\n $_SESSION['type']=$type;\n \n\n}", "title": "" }, { "docid": "6e4c7b4f3da0eb68b34dddbcbe26958c", "score": "0.551682", "text": "function setSessionVar($name, $value)\n{\n\t$_SESSION[$name] = $value;\n\tsession_register($name);\n\treturn true;\n}", "title": "" }, { "docid": "c926d3497d91622852c592d96707cf5e", "score": "0.5516452", "text": "function nurseSession($id, $name, $username, $password, $status, $hospital_id){\n\t$_SESSION['nurse_name'] = $name;\n\t$_SESSION['nurse_username'] = $username;\n\t$_SESSION['nurse_password'] = $password;\n\t$_SESSION['nurse_id'] = $id;\n\t$_SESSION['nurse_status'] = $status;\n\t$_SESSION['nurse_hospital_id'] = $hospital_id;\n}", "title": "" }, { "docid": "f5948a8bc9bb74129b66b74505a83377", "score": "0.551483", "text": "static public function ingresoController($datos){\r\n if(isset($datos[\"ingresoNombre\"])){\r\n \r\n $tabla = \"usuarios\";\r\n $item = \"correo\";\r\n $valor = $datos[\"ingresoNombre\"];\r\n\r\n $respuesta = loginModel::SeleccionarIngresoModel($tabla,$item,$valor);\r\n $encriptarContraseña = crypt($datos[\"ingresoPassword\"], '$2a$07$asxx54ahjppf45sd87a5a4dDDGsystemdev$');\r\n if ($respuesta != null){\r\n\r\n\r\n if ($respuesta[\"correo\"] == $datos[\"ingresoNombre\"] && $respuesta[\"contrasena\"] == $encriptarContraseña) {\r\n $_SESSION[\"iniciarSesion\"] = \"ok\";\r\n $_SESSION[\"nivel\"] = $respuesta[\"nivel\"];\r\n $_SESSION[\"id\"] = $respuesta[\"id\"];\r\n $_SESSION[\"imagen\"] = $respuesta[\"imagen\"];\r\n // $_SESSION[\"fecha_nacimiento\"] = respuesta[\"\"]\r\n return \"match\";\r\n } else {\r\n \r\n return \"no-match\";\r\n }\r\n }else{\r\n return \"no-match\";\r\n } \r\n }\r\n }", "title": "" }, { "docid": "be2de732df5d49bcfdb898f0aa122de9", "score": "0.55087674", "text": "function item($name = '') {\n if ($name) {\n $n = $this->security->xss_clean($name);\n if (isset($_SESSION[$n]) && !empty($_SESSION[$n])) {\n return $_SESSION[$n];\n }\n return NULL;\n }\n return $_SESSION;\n }", "title": "" }, { "docid": "aed8009178c7c2e1306d9fd093fec369", "score": "0.55087125", "text": "function getsession(){\n return \"12345678901234567890123456789012345678901234567890\";\n }", "title": "" }, { "docid": "93c5dfbebeefedc8c4dff40e9b9170d1", "score": "0.55042577", "text": "function usuarioEstaLogado(){\r\n\t\treturn isset($_SESSION['usuario_logado']);\r\n\t}", "title": "" }, { "docid": "b85f8cf1a64bc44c497123f17e5f9d0d", "score": "0.54940987", "text": "public function loguear($id) {\n $_SESSION[\"idUser\"] = $id;\n }", "title": "" }, { "docid": "71fd161bf4c3463100fba7e99f11bb51", "score": "0.5485461", "text": "function selecionarUsuario() {\n \n if ($_SESSION['tipo_usuario'] == \"Professor\") {\n $getUsuario = select(\"professor\", \"nome_professor AS nome\", \"WHERE id_professor = '\".$_SESSION['id_usuario'].\"'\");\n } else if ($_SESSION['tipo_usuario'] == \"Aluno\") {\n $getUsuario = select(\"aluno\", \"nome_aluno AS nome\", \"WHERE id_aluno = \".$_SESSION['id_usuario']);\n } else {\n return \"Administrador\";\n }\n \n foreach ($getUsuario as $usuario) {\n $nome = utf8_encode($usuario->nome);\n }\n \n return $nome;\n}", "title": "" }, { "docid": "36dce3119ba7c6729031339ea06a34f4", "score": "0.548108", "text": "function get( $name ) {\n\t\tif ( isset( $this->_session_var[$name] ) ) {\n\t\t\treturn $this->_session_var[$name];\n\t\t} else {\n\t\t\t$null\t\t\t\t\t\t=\tnull;\n\t\t\treturn $null;\n\t\t}\n\t}", "title": "" }, { "docid": "24125b9146653949ecc2b1ddce09df5e", "score": "0.5479991", "text": "function saveSession()\n{\n\tif (!$this->sessName) return;\n\t$s = array(\n\t\t'sql' => $this->sql,\n\t\t'hash' => $this->hash,\n\t\t'length' => $this->length,\n\t\t'filter' => $this->filter,\n\t\t'page' => $this->pager->getValue('active'),\n\t\t'sortarray' => $this->sortArray,\n\t);\n\n\t$this->app->setSession($this->sessName, $s);\n}", "title": "" } ]
9351f03217c1ce1005189e382da1c8c3
Enqueues Styles and Scripts
[ { "docid": "cdac5e0affb70d241ef5bca8e1a6937d", "score": "0.0", "text": "function enqueue_scripts() {\n $path = plugins_url( 'wp-user-frontend' );\n\n //for multisite upload limit filter\n if ( is_multisite() ) {\n require_once ABSPATH . '/wp-admin/includes/ms.php';\n }\n\n require_once ABSPATH . '/wp-admin/includes/template.php';\n\n wp_enqueue_style( 'wpuf-global', $path . '/css/wpuf-global.css' );\n }", "title": "" } ]
[ { "docid": "8dda12aa5db6d9a2857871f7978567b0", "score": "0.77409726", "text": "public function outputScriptStyle()\n {\n \\add_action('wp_enqueue_scripts', array($this, 'enqueueScript'));\n \\add_action('wp_head', array($this, 'addHeaderStyles'));\n }", "title": "" }, { "docid": "34e858438b669a82addbfc20ff7f6417", "score": "0.73445535", "text": "static function register_script_style() {\n\n\t}", "title": "" }, { "docid": "ec5e71555549d4c7fe3cf14a4f56161b", "score": "0.7258285", "text": "public function register_scripts_and_styles() {\r\n \t\r\n\t\tglobal $jck_wt;\r\n\t\t\r\n\t\tif( ( function_exists('is_product') && is_product() ) && $this->is_enabled() ){\t\r\n \t\t\r\n \t\t// CSS\r\n \t\t\r\n \t\t$this->load_file( $this->slug . '-css', '/assets/frontend/css/main.css' );\r\n \t\t\r\n \t\t// Scripts\r\n \t\t\r\n\t\t\t$this->load_file( $this->slug . '-script', '/assets/frontend/js/main.js', true );\r\n\t\t\t\r\n\t\t\t$vars = array(\r\n\t\t\t\t'ajaxurl' => admin_url( 'admin-ajax.php' ),\r\n\t\t\t\t'nonce' => wp_create_nonce( $this->ajax_nonce_string ),\r\n\t\t\t\t'loading_icon' => plugins_url('assets/frontend/img/loading.gif', __FILE__),\r\n\t\t\t\t'slug' => $this->slug,\r\n\t\t\t\t'options' => $jck_wt\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\twp_localize_script( $this->slug . '-script', 'jck_wt_vars', $vars );\r\n\t\t\t\r\n\t\t\tadd_action( 'wp_head', array( $this, 'dynamic_css' ) );\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3a0707b0c8946d302f10181f4fbc0a9d", "score": "0.72410184", "text": "public function register_styles_scripts(){\n if(is_admin()) return false;\n\n global $eventon_re;\n\n $evOpt = evo_get_options('1');\n if( evo_settings_val('evcal_concat_styles',$evOpt, true))\n wp_register_style( 'evo_RE_styles',$eventon_re->plugin_url.'/assets/RE_styles.css');\n\n wp_register_script('evo_RE_script',$eventon_re->plugin_url.'/assets/RE_script.js', array('jquery'), $eventon_re->version, true );\n wp_localize_script(\n 'evo_RE_script',\n 'evore_ajax_script',\n array(\n 'ajaxurl' => admin_url( 'admin-ajax.php' ) ,\n 'postnonce' => wp_create_nonce( 'evore_nonce' )\n )\n );\n\n $this->print_scripts();\n add_action( 'wp_enqueue_scripts', array($this,'print_styles' ));\n }", "title": "" }, { "docid": "6ac046457883f30714af089b3058be2d", "score": "0.72026753", "text": "public function enqueue_scripts() {\n\t\tif ( ! self::$IS_ENQUEUED ) {\n\t\t\t\n\t\t\tadd_action('wp_footer', array(&$this, '_xe_print_scripts'), 20);\n\t\t\twp_enqueue_style('x-editable');\n\t\t\t\n\t\t\tself::$IS_ENQUEUED = true;\n\t\t}\n\t}", "title": "" }, { "docid": "9a653ec86996cb744ca016496f7f94db", "score": "0.71121174", "text": "function add_styles_scripts() {\n require('includes/front/enqueue.php'); \n }", "title": "" }, { "docid": "61856f32b5b6864cd618a26fd1b189ff", "score": "0.71046317", "text": "public static function register_scripts_styles() {\n\t\tScript_And_Style_Helpers::register_script(\n\t\t\t'sgdg_gallery_init',\n\t\t\t'frontend/js/shortcode.min.js',\n\t\t\tarray( 'jquery' )\n\t\t);\n\t\tScript_And_Style_Helpers::register_style( 'sgdg_gallery_css', 'frontend/css/shortcode.min.css' );\n\n\t\tScript_And_Style_Helpers::register_script(\n\t\t\t'sgdg_imagelightbox_script',\n\t\t\t'bundled/imagelightbox.min.js',\n\t\t\tarray( 'jquery' )\n\t\t);\n\t\tScript_And_Style_Helpers::register_style( 'sgdg_imagelightbox_style', 'bundled/imagelightbox.min.css' );\n\t\tScript_And_Style_Helpers::register_script(\n\t\t\t'sgdg_imagesloaded',\n\t\t\t'bundled/imagesloaded.pkgd.min.js',\n\t\t\tarray( 'jquery' )\n\t\t);\n\t\tScript_And_Style_Helpers::register_script( 'sgdg_justified-layout', 'bundled/justified-layout.min.js' );\n\t}", "title": "" }, { "docid": "e70d64cc11a68bab23a6f44f8f061ac6", "score": "0.7103672", "text": "public function enqueue()\n {\n\n $script_uri = YATRI_THEME_URI . 'mantrabrain-theme/customizer/controls/builder/';\n\n //wp_enqueue_script('jquery-ui-resizable');\n wp_enqueue_script('yatri-builder-builder-js', $script_uri . 'builder.js', array('jquery', 'jquery-ui-draggable'), YATRI_THEME_VERSION);\n\n wp_enqueue_style('yatri-builder-control-css', $script_uri . 'builder.css', array(), YATRI_THEME_VERSION);\n\n\n }", "title": "" }, { "docid": "3990830452415cb5eb8b56ece62bf00b", "score": "0.7098683", "text": "public static function _enqueue_scripts() {\n\t\twp_enqueue_style('wordfence-font', 'https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,500,500i,700,700i,900,900i', '', WORDFENCE_VERSION);\n\t\twp_enqueue_style('wordfence-ionicons-style', wfUtils::getBaseURL() . wfUtils::versionedAsset('css/wf-ionicons.css'), '', WORDFENCE_VERSION);\n\t\twp_enqueue_style('wordfenceOnboardingCSS', wfUtils::getBaseURL() . wfUtils::versionedAsset('css/wf-onboarding.css'), '', WORDFENCE_VERSION);\n\t\twp_enqueue_style('wordfence-colorbox-style', wfUtils::getBaseURL() . wfUtils::versionedAsset('css/wf-colorbox.css'), '', WORDFENCE_VERSION);\n\t\t\n\t\twp_enqueue_script('jquery.wfcolorbox', wfUtils::getBaseURL() . wfUtils::versionedAsset('js/jquery.colorbox-min.js'), array('jquery'), WORDFENCE_VERSION);\n\t}", "title": "" }, { "docid": "dc3dfd1bf5d5f7b8f56b5bcb92441d2c", "score": "0.7092372", "text": "public function admin_enqueue_scripts()\n {\n if (get_current_screen()->id !== self::getAttr('hookname')) :\n return;\n endif;\n\n if (self::getAttr('render') === 'metaboxes') :\n wp_enqueue_style('tiFyCoreOptionsTemplateMetaboxes', self::tFyAppUrl() . '/assets/css/metaboxes.css', [], 171030);\n endif;\n\n do_action('tify_options_enqueue_scripts');\n }", "title": "" }, { "docid": "abf412c32490b6fdaf97a02cbb5de87b", "score": "0.70777947", "text": "public function add_styles_and_scripts() {\n\n\t\tif ( $this->is_rtl() ) {\n\t\t\twp_enqueue_style( 'a8c-wpcom-masterbar-rtl', $this->wpcom_static_url( '/wp-content/mu-plugins/admin-bar/rtl/wpcom-admin-bar-rtl.css' ), array(), JETPACK__VERSION );\n\t\t\twp_enqueue_style( 'a8c-wpcom-masterbar-overrides-rtl', $this->wpcom_static_url( '/wp-content/mu-plugins/admin-bar/masterbar-overrides/rtl/masterbar-rtl.css' ), array(), JETPACK__VERSION );\n\t\t} else {\n\t\t\twp_enqueue_style( 'a8c-wpcom-masterbar', $this->wpcom_static_url( '/wp-content/mu-plugins/admin-bar/wpcom-admin-bar.css' ), array(), JETPACK__VERSION );\n\t\t\twp_enqueue_style( 'a8c-wpcom-masterbar-overrides', $this->wpcom_static_url( '/wp-content/mu-plugins/admin-bar/masterbar-overrides/masterbar.css' ), array(), JETPACK__VERSION );\n\t\t}\n\n\t\t// Local overrides.\n\t\twp_enqueue_style( 'a8c_wpcom_css_override', plugins_url( 'overrides.css', __FILE__ ), array(), JETPACK__VERSION );\n\n\t\tif ( ! Jetpack::is_module_active( 'notes ' ) ) {\n\t\t\t// Masterbar is relying on some icons from noticons.css.\n\t\t\twp_enqueue_style( 'noticons', $this->wpcom_static_url( '/i/noticons/noticons.css' ), array(), JETPACK__VERSION . '-' . gmdate( 'oW' ) );\n\t\t}\n\n\t\twp_enqueue_script(\n\t\t\t'jetpack-accessible-focus',\n\t\t\tJetpack::get_file_url_for_environment( '_inc/build/accessible-focus.min.js', '_inc/accessible-focus.js' ),\n\t\t\tarray(),\n\t\t\tJETPACK__VERSION,\n\t\t\tfalse\n\t\t);\n\t\twp_enqueue_script(\n\t\t\t'a8c_wpcom_masterbar_tracks_events',\n\t\t\tJetpack::get_file_url_for_environment(\n\t\t\t\t'_inc/build/masterbar/tracks-events.min.js',\n\t\t\t\t'modules/masterbar/tracks-events.js'\n\t\t\t),\n\t\t\tarray( 'jquery' ),\n\t\t\tJETPACK__VERSION,\n\t\t\tfalse\n\t\t);\n\n\t\twp_enqueue_script(\n\t\t\t'a8c_wpcom_masterbar_overrides',\n\t\t\t$this->wpcom_static_url( '/wp-content/mu-plugins/admin-bar/masterbar-overrides/masterbar.js' ),\n\t\t\tarray( 'jquery' ),\n\t\t\tJETPACK__VERSION,\n\t\t\tfalse\n\t\t);\n\t}", "title": "" }, { "docid": "1c042df9ef184316c54a950eb3616ea7", "score": "0.7072815", "text": "function enq_script_style($hook) {\n if(is_admin()){\n\t\tif ( ( 'post.php' != $hook ) && ( 'soc-share/admin/settings.php' != $hook ) ) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\twp_register_style( 'soc_share_css', SOCSHAREURL . 'admin/req/soc-share-admin.css', false, '1.0.0' );\n\t\twp_enqueue_style( 'soc_share_css' );\n\t\twp_enqueue_script( 'soc-share', SOCSHAREURL . 'admin/req/soc-share-admin.js', array( 'jquery' ) );\n\t\twp_enqueue_script( 'soc-share-color-js', SOCSHAREURL . 'admin/req/js-color.js', array( 'jquery' ) );\n\t}\n\telse{\n\t\twp_register_style( 'soc_share_css_wp', SOCSHAREURL . 'wp/req/style.css', false, '1.0.0' );\n\t\twp_enqueue_style( 'soc_share_css_wp' );\n\t\twp_register_style( 'fontAwesome', SOCSHAREURL . 'wp/req/font-awesome.css', false, '1.0.0' );\n\t\twp_enqueue_style( 'fontAwesome' );\n\t\twp_enqueue_script( 'soc-share', SOCSHAREURL . 'wp/req/script.js', array( 'jquery' ) );\n\t}\n}", "title": "" }, { "docid": "8ea8dfa18a7b6259d7ae3132c6fd75d8", "score": "0.6998796", "text": "public function admin_enqueue_script_style() {\n\t\t// All files needed by UI\n\t\t$ui = WP_CPL_Admin_UI::get_instance();\n\t\t$ui->enqueue( apply_filters( 'wp_cpl_admin_ignore_js', array() ) );\n\n\t\t// Other files needed by the main plugin\n\t\t// Nothing Yet!\n\t}", "title": "" }, { "docid": "470b918c35000bdfffce1029ba2811ee", "score": "0.69582397", "text": "private function register_scripts_and_styles() {\n\t\tif ( is_admin() ) {\n\t\t\t$this->load_file( self::slug . '-admin-script', '/assets/backend/js/functions.js', true );\n\t\t\t$this->load_file( self::slug . '-admin-style', '/assets/backend/css/style.css' );\n\t\t} else {\n\t\t\t$this->load_file( self::slug . '-bootstrap-js', '/assets/frontend/js/bootstrap.js', true );\n\t\t\t$this->load_file( self::slug . '-touchspin-js', '/assets/frontend/js/bootstrap.touchspin.js', true );\n\t\t\t$this->load_file( self::slug . '-card-js', '/assets/frontend/js/card.js', true );\n\t\t\t$this->load_file( self::slug . '-smoothproducts-js', '/assets/frontend/js/smoothproducts.min.js', true );\n\t\t\t$this->load_file( self::slug . '-script', '/assets/frontend/js/functions.js', true );\n\n\t\t\t$this->load_file( self::slug . '-style', '/assets/frontend/css/style.css' );\n\t\t\t$this->load_file( self::slug . '-card-css', '/assets/frontend/css/card.css' );\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "83d959b582fdf6eb1a0a590a9a8dc9a1", "score": "0.6954946", "text": "public function scripts_registered() {\n wp_enqueue_style( '<%= plugin_prefix %>-editor-style', plugin_dir_url( __FILE__ ) . 'assets/css/frontend.css', array(), filemtime( plugin_dir_path( __FILE__ ) . 'assets/css/frontend.css' ));\n wp_enqueue_style( '<%= plugin_prefix %>-frontend-style', plugin_dir_url( __FILE__ ) . 'assets/css/editor.css', array(), filemtime( plugin_dir_path( __FILE__ ) . 'assets/css/editor.css' ));\n wp_enqueue_script( '<%= plugin_prefix %>-frontend-style', plugin_dir_url( __FILE__ ) . 'assets/js/main.js', array( 'jquery' ), filemtime( plugin_dir_path( __FILE__ ) . 'assets/js/main.js' ));\n }", "title": "" }, { "docid": "5ad59dc3969a34cb1134456f239b76e2", "score": "0.694801", "text": "function awesome_script_enque()\n{\n wp_enqueue_style('customstyle', get_template_directory_uri().'/css/awesome.css', array(), '1.0.0', 'all');\n wp_enqueue_script('customscript', get_template_directory_uri.'/js/awesome.js', array(), '1.0.0', true);\n}", "title": "" }, { "docid": "cfe2bfa960d837b1b930f9d5c07b6a6c", "score": "0.69417906", "text": "public function front_scripts_styles() {\n\t\twp_register_style(\n\t\t\t'events-maker-front', EVENTS_MAKER_URL . '/css/front.css'\n\t\t);\n\n\t\twp_enqueue_style( 'events-maker-front' );\n\n\t\twp_register_script(\n\t\t\t'events-maker-sorting', EVENTS_MAKER_URL . '/js/front-sorting.js', array( 'jquery' )\n\t\t);\n\n\t\twp_enqueue_script( 'events-maker-sorting' );\n\t}", "title": "" }, { "docid": "8d0b93bdfd6a01f8d84f9dc18c466a33", "score": "0.6917166", "text": "private static function setup_styles_and_scripts_for_styler() {\n\t\t$plugin_url = FrmAppHelper::plugin_url();\n\t\t$version = FrmAppHelper::plugin_version();\n\t\t$js_dependencies = array( 'wp-i18n', 'wp-hooks', 'formidable_dom' );\n\n\t\tif ( FrmAppHelper::pro_is_installed() ) {\n\t\t\t$js_dependencies[] = 'jquery-ui-datepicker';\n\t\t}\n\n\t\twp_register_script( 'formidable_style', $plugin_url . '/js/admin/style.js', $js_dependencies, $version );\n\t\twp_register_style( 'formidable_style', $plugin_url . '/css/admin/style.css', array(), $version );\n\t\twp_print_styles( 'formidable_style' );\n\n\t\twp_print_styles( 'formidable' );\n\t\twp_enqueue_script( 'formidable_style' );\n\t}", "title": "" }, { "docid": "7fbed9d00318883c4cca6ff2f3e49317", "score": "0.69159615", "text": "private function _registerScriptsStyles() {\n\t\t\n\t\twp_register_style('x-editable', X_EDITABLE_URL . '/assets/bootstrap-editable.min.css', array('bootstrap'), false );\n\t}", "title": "" }, { "docid": "76748b5cbe74532ad097dae15d295fd7", "score": "0.6901949", "text": "public function insert_inline_scripts() {\n }", "title": "" }, { "docid": "76748b5cbe74532ad097dae15d295fd7", "score": "0.6901949", "text": "public function insert_inline_scripts() {\n }", "title": "" }, { "docid": "e41f9358361a831568ab8468f38a00a5", "score": "0.68976575", "text": "public function enque_script_and_css() {\n\t\t$screen = get_current_screen();\n\t\t$post_type = $screen ? $screen->post_type : '';\n\t\tif ( 'shop_order' == $post_type ) {\n\t\t\twp_enqueue_style(\n\t\t\t\t'woo-postfinancecheckout-admin-styles',\n\t\t\t\tWooCommerce_PostFinanceCheckout::instance()->plugin_url() . '/assets/css/admin.css',\n\t\t\t\tarray(),\n\t\t\t\t1\n\t\t\t);\n\t\t\twp_enqueue_script(\n\t\t\t\t'postfinancecheckout-admin-js',\n\t\t\t\tWooCommerce_PostFinanceCheckout::instance()->plugin_url() . '/assets/js/admin/management.js',\n\t\t\t\tarray(\n\t\t\t\t\t'jquery',\n\t\t\t\t\t'wc-admin-meta-boxes',\n\t\t\t\t),\n\t\t\t\t1\n\t\t\t);\n\n\t\t\t$localize = array(\n\t\t\t\t'i18n_do_void' => __( 'Are you sure you wish to process this void? This action cannot be undone.', 'woo-postfinancecheckout' ),\n\t\t\t\t'i18n_do_completion' => __( 'Are you sure you wish to process this completion? This action cannot be undone.', 'woo-postfinancecheckout' ),\n\t\t\t);\n\t\t\twp_localize_script( 'postfinancecheckout-admin-js', 'postfinancecheckout_admin_js_params', $localize );\n\t\t}\n\t}", "title": "" }, { "docid": "14e3c47379533439149538f2a9efd12a", "score": "0.6897002", "text": "private function _define_widget_script_and_style()\n {\n wp_enqueue_script( 'jquery', plugin_dir_url( __FILE__ ) . '../thirdparty/jquery-1.11.3.min.js', array(), '1.11.3', true );\n wp_enqueue_script( $this->_identifier.'-subpages', plugin_dir_url( __FILE__ ) . '../static/js/subpages.js', array('jquery'), $this->_version, true );\n wp_enqueue_style( $this->_identifier.'-subpages', plugin_dir_url( __FILE__ ) . '../static/css/subpages.css', array(), $this->_version, 'all' ); \n }", "title": "" }, { "docid": "adc093a7f6a85ce484a473c0bd651a5f", "score": "0.6895762", "text": "public function enqueueStyle()\n {\n $scLabel = Stringify::toSnake($this->getWidgetLabel());\n\n $e = new Enqueuer();\n $e->addFrontendStyle($scLabel.'-style', Path::child('/widgets/'.$scLabel.'/css/widget.css'), array());\n $e->enqueue();\n }", "title": "" }, { "docid": "2dea85e0fb8c4261dea1638b400b5596", "score": "0.688445", "text": "function enqueue_shortcode_scripts() {\r\n\t\t\twp_enqueue_style( $this->shortcode . '-css', mpc_get_plugin_path( __FILE__ ) . '/shortcodes/' . $this->shortcode . '/css/' . $this->shortcode . '.css', array(), MPC_MASSIVE_VERSION );\r\n\t\t\twp_enqueue_script( $this->shortcode . '-js', mpc_get_plugin_path( __FILE__ ) . '/shortcodes/' . $this->shortcode . '/js/' . $this->shortcode . MPC_MASSIVE_MIN . '.js', array( 'jquery' ), MPC_MASSIVE_VERSION );\r\n\t\t}", "title": "" }, { "docid": "92e0e920cec96f7d65edbc1a79689562", "score": "0.6881576", "text": "function add_scripts() {\n\twp_enqueue_style( 'parent-style', get_stylesheet_uri() );\n\twp_enqueue_style( 'prefix-font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css', array(), '4.5.0' );\n\twp_enqueue_script( 'scripts', get_theme_root_uri().'/zerif-lite-child/js/scripts.js', array('jquery') );\n}", "title": "" }, { "docid": "acfdf6dbf9374f9b48a78243521d4d9e", "score": "0.68680376", "text": "public function enqueue_scripts() {\n\n\t\t$rtl = is_rtl() ? '-rtl' : '';\n\t\t$suffix = SCRIPT_DEBUG ? '' : '.min';\n\n\t\twp_enqueue_style( 'wpcw-admin', \\Contact_Widgets::$assets_url . \"css/admin{$rtl}{$suffix}.css\", [], Plugin::$version );\n\n\t\twp_enqueue_style( 'font-awesome', \\Contact_Widgets::$fa_url, [], '4.7.0' );\n\n\t\twp_enqueue_script( 'wpcw-admin', \\Contact_Widgets::$assets_url . \"js/admin{$suffix}.js\", [ 'jquery' ], Plugin::$version, true );\n\n\t\tinclude 'social-networks.php';\n\n\t\tif ( $GLOBALS['is_IE'] ) {\n\n\t\t\twp_enqueue_style( 'wpcw-admin-ie', \\Contact_Widgets::$assets_url . \"css/admin-ie{$rtl}{$suffix}.css\", [ 'wpcw-admin' ], Plugin::$version );\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "52edab66293586953fabe4ad17e92a1e", "score": "0.68670994", "text": "private function register_scripts_and_styles() {\n\t\tif(is_admin()) {\n \t\t$this->load_file(PLUGIN_NAME, '/' . self::slug . '/js/admin.js', true);\n\t\t\t$this->load_file(PLUGIN_NAME, '/' . self::slug . '/css/admin.css');\n\t\t} else { \n \t\t$this->load_file(PLUGIN_NAME, '/' . self::slug . '/js/admin.css', true);\n\t\t\t$this->load_file(PLUGIN_NAME, '/' . self::slug . '/css/widget.css');\n\t\t} // end if/else\n\t}", "title": "" }, { "docid": "0d7c07b2667674da4646785c1ab27146", "score": "0.6854404", "text": "public function loadStylesScripts() {\r\n \r\n wp_register_style( 'cb-amcharts', CB_URL . 'public/dist/amcharts/style.css' );\r\n wp_register_style( 'cb-amcharts-export', CB_URL . 'public/dist/amcharts/plugins/export/export.css' );\r\n wp_register_style( 'cb-rangeslider', CB_URL . 'public/css/rangeslider.css' );\r\n wp_register_style( 'cb-awesomplete', CB_URL . 'public/css/awesomplete.css' );\r\n wp_register_style( 'cb-style', CB_URL . 'public/css/style.css' );\r\n \r\n wp_register_script( 'cb-amcharts', CB_URL . 'public/dist/amcharts/amcharts.js', [], false, true );\r\n wp_register_script( 'cb-amcharts-export', CB_URL . 'public/dist/amcharts/plugins/export/export.js', [], false, true );\r\n wp_register_script( 'cb-serial', CB_URL . 'public/dist/amcharts/serial.js', [], false, true );\r\n wp_register_script( 'cb-amstock', CB_URL . 'public/dist/amcharts/amstock.js', [], false, true );\r\n wp_register_script( 'cb-jscolor', CB_URL . 'public/js/jscolor.js', [], false, true );\r\n wp_register_script( 'cb-rangeslider', CB_URL . 'public/js/rangeslider.min.js', ['jquery'], false, true );\r\n wp_register_script( 'cb-awesomplete', CB_URL . 'public/js/awesomplete.js', [], false, true );\r\n wp_register_script( 'cb-main', CB_URL . 'public/js/main.js', ['jquery'], false, true );\r\n \r\n wp_enqueue_style( 'cb-amcharts' );\r\n wp_enqueue_style( 'cb-amcharts-export' );\r\n wp_enqueue_style( 'cb-rangeslider' );\r\n wp_enqueue_style( 'cb-awesomplete' );\r\n wp_enqueue_style( 'cb-style' );\r\n \r\n wp_enqueue_script( 'cb-amcharts' );\r\n wp_enqueue_script( 'cb-amcharts-export' );\r\n wp_enqueue_script( 'cb-serial' );\r\n wp_enqueue_script( 'cb-amstock' );\r\n wp_enqueue_script( 'cb-jscolor' );\r\n wp_enqueue_script( 'cb-rangeslider' );\r\n wp_enqueue_script( 'cb-awesomplete' );\r\n wp_enqueue_script( 'cb-main' );\r\n \r\n wp_localize_script( 'cb-main', 'ajaxcb',\r\n [\r\n 'url' => admin_url('admin-ajax.php'),\r\n 'nonce' => wp_create_nonce('ajaxcb-nonce'),\r\n 'plugin_url' => CB_URL\r\n ]\r\n );\r\n \r\n }", "title": "" }, { "docid": "2fb3fb5e8b49ccb7b29a4850747cbf8f", "score": "0.68513054", "text": "function elegantbakerytheme_scripts() {\n\n\t\t$primary_style = 'elegantbakerytheme-style';\n\n\t\twp_enqueue_style( $primary_style, get_stylesheet_uri(), array(), _S_VERSION );\n\t\t\n\t\t//Enqueue Foundation\n\t\twp_enqueue_style( 'foundation-style', get_stylesheet_directory_uri() . '/assets/css/vender/foundation.css');\n\t\twp_enqueue_script('foundation-script', get_stylesheet_directory_uri() . '/assets/js/vender/foundation.js', array(), false, true);\n\t\t// Enqueue custom css style sheet\n\t\twp_enqueue_style( 'custom-style', get_stylesheet_directory_uri() . '/assets/css/custom.css', array($primary_style));\n\n\t\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\t\twp_enqueue_script( 'comment-reply' );\n\t\t}\n\t}", "title": "" }, { "docid": "06e77931dd3cd0a02efb709579465f5d", "score": "0.6833993", "text": "function ins_admin_js_and_css(){\n\n wp_register_style( 'adminStyle', plug_infos('url') . '/inc/css/'.plug_infos('name').'.css', array(), 'all' );\n wp_register_style( 'fa', plug_infos('url') . '/inc/vendor/font-awesome/css/font-awesome.min.css', array(), 'all' );\n wp_register_style( 'Bootstrap', plug_infos('url') . '/inc/vendor/bootstrap.min.css', array(), 'all' );\n\n ##################| [ Scripts - fontEnd ] |###################### \n wp_register_script( 'adminScripts', plug_infos('url') . '/inc/js/'.plug_infos('name').'.js', array('jquery'), true );\n wp_register_script( 'Bootstrap', plug_infos('url') . '/inc/vendor/bootstrap.min.js', array('jquery'), true );\n\n ##################| [ enqueing all ] |###################### \n \n $stylEnqueu_adm = [\n 'adminStyle','Bootstrap','fa'\n ];\n $scriptEnque_adm = [\n 'adminScripts','Bootstrap'\n ];\n\n foreach ($stylEnqueu_adm as $style ) { wp_enqueue_style( $style ); }\n foreach ($scriptEnque_adm as $script ) { wp_enqueue_script( $script ); }\n}", "title": "" }, { "docid": "4559b53233e31077411819a62c8c739a", "score": "0.6833274", "text": "public static function enqueueScripts() {\n\n\t\t/**\n\t\t * Enqueue front-end assets.\n\t\t */\n\t\tadd_action('wp_enqueue_scripts', function ($hook) {\n\t\t\tScripts::toEnqueueScript('theme', 'ecrannoir-wptheme-theme-scripts');\n\t\t\twp_script_add_data('ecrannoir-wptheme-theme-scripts', 'async', true );\n\t\t\tScripts::toEnqueueStyle('theme');\n\t\t});\n\n\t\t/**\n\t\t * Enqueue admin assets.\n\t\t */\n\t\tadd_action('admin_enqueue_scripts', function($hook) {\n\t\t\tScripts::toEnqueueScript('admin');\n\t\t\tScripts::toEnqueueStyle('admin');\n\t\t});\n\n\t\t/**\n\t\t * Enqueue editor assets.\n\t\t */\n\t\tadd_action('enqueue_block_editor_assets', function($hook) {\n\t\t\t// Skip block registration if Gutenberg is not enabled/merged.\n\t\t\tif ( ! function_exists( 'register_block_type' ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tScripts::toRegisterScript('editor', 'ecrannoir-blocks-editor');\n\t\t\trequire_once (THEME_ROOT_DIR_THEME . 'dist/blocks/dynamicblock.php');\n\n\t\t\tregister_block_type( 'ecrannoir/blocks', array( \n\t\t\t\t'editor_script' => 'ecrannoir-blocks-editor',\n\t\t\t));\n\t\t\tScripts::toEnqueueStyle( 'editor', 'ecrannoir-block-editor-styles' );\n\t\t});\n\n\t\tadd_action( 'init', function($hook) {\n\n\t\t\t// require_once (THEME_ROOT_DIR_THEME . 'dist/blocks/dynamicblock.php');\n\t\t} );\n\n\t\t/**\n\t\t * Enqueue Login Assets\n\t\t */\n\t\tadd_action( 'login_enqueue_scripts', function() {\n\t\t\tScripts::toEnqueueScript('login');\n\t\t\tScripts::toEnqueueStyle('login');\n\n\t\t\t$style = function() {\n\t\t\t\t?>\n\t\t\t\t<style type=\"text/css\">\n\t\t\t\t#login h1 a, .login h1 a {\n\t\t\t\t\tbackground-image: url(<?php echo get_template_directory_uri() . '/dist/img/logo.svg'; ?>);\n\t\t\t\t\tbackground-size: 80%;\n\t\t\t\t\theight: 100px;\n\t\t\t\t\twidth: 100%;\n\t\t\t\t}\n\t\t\t\t</style>\n\t\t\t\t<?php\n\t\t\t};\n\t\t\t$style();\n\t\t\t\t\n\t\t});\n\n\n\t}", "title": "" }, { "docid": "7fd922a52b007a379c627a5ed6a397f2", "score": "0.68305874", "text": "function enaThemeEnqueues(){\n\twp_enqueue_style( \"enaCSS\", get_template_directory_uri() . \"/css/style.css\", array(), \"1.0.0\", \"all\" );\n\n\t//Adding Custom JS and jQuery\n\twp_enqueue_script(\"jquery\");\n\twp_enqueue_script(\"enaJS\", get_template_directory_uri() . \"/js/script.js\", array(), \"1.0.0\", true);\n}", "title": "" }, { "docid": "daaeef4d4885e0d958716fc624aeaf04", "score": "0.68278867", "text": "function tidy_scripts() {\n wp_dequeue_style( 'wp-block-library' );\n wp_dequeue_style( 'contact-form-7' );\n wp_deregister_script('wp-embed');\n wp_deregister_script('jquery');\n wp_enqueue_script('jquery');\n }", "title": "" }, { "docid": "81cb3323b38e595a7018c04148cd3219", "score": "0.6821928", "text": "public static function scripts_and_styles() {\n\t\tif ( is_singular() && ( '0' != get_comments_number() || \\DevHub\\post_type_has_source_code() ) ) {\n\t\t\twp_enqueue_script( 'wporg-developer-function-reference', get_template_directory_uri() . '/js/function-reference.js', array( 'jquery', 'syntaxhighlighter-core', 'syntaxhighlighter-brush-php' ), '20140515', true );\n\t\t\twp_enqueue_style( 'syntaxhighlighter-core' );\n\t\t\twp_enqueue_style( 'syntaxhighlighter-theme-default' );\n\n\t\t\twp_enqueue_script( 'wporg-developer-user-notes', get_template_directory_uri() . '/js/user-notes.js', array(), '20140912', true );\n\t\t\tif ( get_option( 'thread_comments' ) ) {\n\t\t\t\twp_enqueue_script( 'comment-reply' );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "54bf285b1b701c4b72ee247fa53b1305", "score": "0.6802864", "text": "public function load_scripts_styles() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Plugin_Name_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Plugin_Name_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_style( 'yzes-admin.css',\n\t\t\t\t\t\t YZES_URL . 'admin/assets/css/pl-admin.css',\n\t\t\t\t\t\t\tarray(), $this->version,\n\t\t\t\t\t\t\t'all'\n\t\t);\n\t\twp_enqueue_script( 'yzes-admin.js',\n\t\t\t\t\t\t\tYZES_URL . 'admin/assets/js/pl-admin.js',\n\t\t\t\t\t\t\tarray( 'jquery' ),\n\t\t\t\t\t\t\t$this->version,\n\t\t\t\t\t\t\tfalse\n\t\t);\n\n\t\twp_enqueue_script(\n\t\t\t'mszy-ajax.js',\n\t\t\tYZES_URL . 'admin/assets/js/ajax.js',\n\t\t\tarray( 'jquery' ),\n\t\t\t$this->version,\n\t\t\tfalse\n\t\t);\n\n\t\twp_localize_script( 'mszy-ajax.js',\n\t\t\t\t\t\t\t'data',\n\t\t\t\t\t\t\tarray('ajax_url'=>admin_url('admin-ajax.php'))\n\t\t);\n\n\t}", "title": "" }, { "docid": "5b0378b70e6f5ab7e7f54a413ca31daf", "score": "0.6787168", "text": "function register_admin_styles_scripts() {\n\t\twp_enqueue_media();\n\t\twp_enqueue_script('media-upload');\n\n\t\t//$configfiles = glob( self::get_path( dirname( __FILE__ ) ) .'configs/{{_widgetSlug}}-*.php' );\n\t\tif(file_exists(self::get_path( dirname( __FILE__ ) ) .'configs/fieldgroups-{{_widgetSlug}}.php')){\n\t\t\tinclude self::get_path( dirname( __FILE__ ) ) .'configs/fieldgroups-{{_widgetSlug}}.php';\t\t\n\t\t}else{\n\t\t\treturn;\n\t\t}\n\t\tforeach ($configfiles as $key=>$fieldfile) {\n\t\t\tinclude $fieldfile;\n\t\t\tif(!empty($group['scripts'])){\n\t\t\t\tforeach($group['scripts'] as $script){\n\t\t\t\t\twp_enqueue_script( '{{slug}}-'.strtok($script, '.'), self::get_url( 'assets/js/'.$script , dirname(__FILE__) ) , array('jquery') );\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!empty($group['styles'])){\n\t\t\t\tforeach($group['styles'] as $style){\n\t\t\t\t\twp_enqueue_style( '{{slug}}-'.strtok($style, '.'), self::get_url( 'assets/css/'.$style , dirname(__FILE__) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\twp_enqueue_style( '{{slug}}-panel-styles', self::get_url( 'assets/css/panel.css', dirname(__FILE__) ) );\n\t\twp_enqueue_script( '{{slug}}-panel-script', self::get_url( 'assets/js/panel.js', dirname(__FILE__) ), array( 'jquery' ) );\n\n\n\t}", "title": "" }, { "docid": "aece566cb9b3da386c3efc8c2b744701", "score": "0.67810446", "text": "protected function renderJavaScriptAndCss() {}", "title": "" }, { "docid": "c110d79e4a30e898b42a5a59f796a170", "score": "0.6779556", "text": "public function enqueue_scripts() {\n\n\t\tif ( ! $this->is_component_page() ) {\n\t\t\treturn;\n\t\t}\n\n\t\twp_enqueue_style( 'shortcodes-ultimate-admin', $this->plugin_url . 'admin/css/admin.css', array( 'su-icons' ), $this->plugin_version );\n\n\t}", "title": "" }, { "docid": "ab390ceacc153ae2009026fae1c823f5", "score": "0.67771363", "text": "public function enqueueStyles()\n {\n /**\n * This function is provided for demonstration purposes only.\n *\n * An instance of this class should be passed to the run() function\n * defined in PluginsLoader as all of the hooks are defined\n * in that particular class.\n *\n * The PluginsLoader will then create the relationship\n * between the defined hooks and the functions defined in this\n * class.\n */\n wp_enqueue_style(\n 'fontawesome',\n 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css',\n '',\n '5.14.0',\n 'all'\n );\n\n wp_enqueue_style(\n $this->plugin_name.'-font-loader',\n $this->caseTrackerFontsUrl(),\n array(),\n null\n );\n wp_enqueue_style(\n $this->plugin_name.'-public-main-style',\n JOSBIZ_PLUGIN_PUBLIC_DIR .'css/public-style.css',\n array(),\n 101,\n 'all'\n );\n wp_enqueue_style(\n $this->plugin_name.'-public-calendar-view-style',\n JOSBIZ_PLUGIN_PUBLIC_DIR .'css/case-tracker-calendar.css',\n array(),\n 101,\n 'all'\n );\n }", "title": "" }, { "docid": "d62fa186aca7c139e751d10d94389228", "score": "0.6776908", "text": "public function enqueue_scripts() {\n\t\t$page = filter_input( INPUT_GET, 'page', FILTER_SANITIZE_STRING );\n\n\t\t// Enqueue scripts and styles on the edit screen of the Block post type.\n\t\tif ( $this->slug === $page ) {\n\t\t\twp_enqueue_style(\n\t\t\t\t$this->slug,\n\t\t\t\t$this->plugin->get_url( 'css/admin.settings.css' ),\n\t\t\t\tarray(),\n\t\t\t\t$this->plugin->get_version()\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "547f98cf888890c2414b2871c67d3e14", "score": "0.67768687", "text": "public function enqueue_scripts() {\n\n\t\tif ( ! $this->is_component_page() ) {\n\t\t\treturn;\n\t\t}\n\n\t\twp_enqueue_style( 'shortcodes-ultimate-admin', $this->plugin_url . 'admin/css/admin.css', array(), $this->plugin_version );\n\n\t}", "title": "" }, { "docid": "91aae4c686bdab956e9690920f3e57c5", "score": "0.67739064", "text": "public function front_end_enqueue_scripts() {\n\n\t\t$rtl = is_rtl() ? '-rtl' : '';\n\t\t$suffix = SCRIPT_DEBUG ? '' : '.min';\n\n\t\twp_enqueue_style( 'wpcw', \\Contact_Widgets::$assets_url . \"css/style{$rtl}{$suffix}.css\", [], Plugin::$version );\n\n\t\twp_enqueue_style( 'font-awesome', \\Contact_Widgets::$fa_url, [], '4.7.0' );\n\n\t\tif ( is_customize_preview() ) {\n\n\t\t\tif ( ! wp_script_is( 'jquery', 'enqueued' ) ) {\n\n\t\t\t\twp_enqueue_script( 'jquery' );\n\n\t\t\t}\n\n\t\t\twp_enqueue_script( 'wpcw-helper', \\Contact_Widgets::$assets_url . \"js/customize-preview-helper{$suffix}.js\", [ 'jquery' ], Plugin::$version, true );\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "ac9964f89f678fb79ff53f77d79d1770", "score": "0.6769496", "text": "public function enqueue() {\n wp_enqueue_style( 'wp-amd-jquery-ui', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/themes/base/jquery-ui.css', array() );\n wp_enqueue_style( 'wp-amd-customize-editor-control', WP_AMD_URL . 'static/styles/wp.amd.editor.style.css', array( 'wp-amd-jquery-ui' ) );\n \n wp_enqueue_script( 'wp-amd-ace', WP_AMD_URL . 'static/scripts/src/ace/ace.js', array(), '', true );\n wp_enqueue_script( 'wp-amd-customize-editor-control', WP_AMD_URL . 'static/scripts/wp.amd.editor.style.js', array( 'jquery', 'wp-amd-ace', 'jquery-ui-resizable' ), '', true );\n \n wp_localize_script( 'wp-amd-customize-editor-control', 'wp_amd_customize_editor_control', array(\n 'done' => __( 'Done' ),\n 'cancel' => __( 'Cancel' ),\n ) );\n }", "title": "" }, { "docid": "dc4432af22c01f422a72e22ad35dd530", "score": "0.6767437", "text": "function encuentroinf_script_enqueue() {\r\n\t\t//CSS\r\n\t\twp_enqueue_style('bootstrap', get_template_directory_uri().'/css/bootstrap.min.css', array(), '4.1.3', 'all');\r\n\t\twp_enqueue_style('eiestilo', get_template_directory_uri().'/css/encuentro.css', array(), '1.0.0', 'all');\r\n\r\n\t\t//JS\r\n\t\twp_enqueue_script('jquery');\r\n\t\twp_enqueue_script('bootstrapjs', get_template_directory_uri().'/js/bootstrap.min.js', array(), '1.0.0', true);\r\n\t\twp_enqueue_script('eijs', get_template_directory_uri().'/js/encuentro.js', array(), '1.0.0', true);\r\n\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "677b5e33c718fd49b180ffb75e4da733", "score": "0.67670524", "text": "public function admin_style_scripts() {\n\t\t\twp_enqueue_style('coresol-setting-page-admin', plugin_dir_url( __FILE__ ) . 'css/coresol-setting-admin.css');\n\t\t\twp_register_style( 'coresol-jquery-ui-datepicker', plugin_dir_url( __FILE__ ) . 'css/coresol-datepicker.css', false, false, false );\n\t\t\t\n\t\t\twp_enqueue_script('coresol-setting-page-admin', plugin_dir_url( __FILE__ ) . 'js/coresol-setting-admin.js');\n\t\t}", "title": "" }, { "docid": "4e2e364f17825d5a49062cb16ef727e4", "score": "0.6763656", "text": "function _s_scripts() {\n\twp_enqueue_style( '_s-style', get_stylesheet_uri() );\n}", "title": "" }, { "docid": "f8f02aa2906799964be380239f8afc2f", "score": "0.67617446", "text": "function _scripts_styles_loader() {\n\n\t$thesettings = Sycle_Appointments()->settings->get_settings();\n\n\t// todo - genbrug token?\n\t$localizeparams = array(\n\t\t'ajax_url' => admin_url( 'admin-ajax.php' ),\n\t\t'sycle_nonce' => wp_create_nonce( 'sycle_nonce_val' )\n\t);\n\t\t// todo - load via sycle.js instead\n\tif ($thesettings['places_api']) {\n\t\t$localizeparams[] = $thesettings['places_api'];\n\t\twp_enqueue_script('gplaces', 'https://maps.googleapis.com/maps/api/js?key='.esc_attr($thesettings['places_api']).'&libraries=places', array('jquery','sycle'),false,true);\n\t}\n\n\t// This is the minified js version, dev is in /assets/js/\n\twp_register_script('sycle', $this->plugin_url . 'js/sycle-min.js', array('jquery','jquery-validate-script','jquery-ui-datepicker'),false,true);\n\twp_enqueue_style('sycle', $this->plugin_url . 'css/sycle.css', array(), false);\n\twp_localize_script(\n\t\t'sycle',\n\t\t'sycle_ajax_object',\n\t\t$localizeparams\n\t);\n\twp_enqueue_script('sycle');\n\n\t// TODO - Check the shortcode is used before loading bloat .js\n\twp_enqueue_script('jquery-ui-datepicker');\n\t// TODO - Check the shortcode is used before loading bloat .js\n\twp_register_script( 'jquery-validate-script', $this->plugin_url . 'assets/js/jquery-validation/dist/jquery.validate.min.js' ,array( 'jquery'));\n\n\twp_enqueue_style( 'jquery-ui' );\n\n\t// TODO - we can do this better - include style in plugin css perhaps?\n\t// Also: https://github.com/stuttter/wp-datepicker-styling/blob/master/datepicker.css\n\twp_enqueue_style('e2b-admin-ui-css','//ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/themes/base/jquery-ui.css',false,\"1.9.0\",false);\n}", "title": "" }, { "docid": "504e878713f7693ed7df397dda40d3ee", "score": "0.6761714", "text": "public function addScripts () {\n\t\tglobal $post;\n\n\t\tif ( is_singular( 'car' ) ) {\n\n\t\t\t//style\n\t\t\twp_enqueue_style( 'fancybox', JWA_CAR_PLUGIN_URL . '/assets/css/jquery.fancybox.min.css', '', JWA_CAR_VERSION );\n\t\t\twp_enqueue_style( 'slick-theme', JWA_CAR_PLUGIN_URL . '/assets/css/slick-theme.css', '', JWA_CAR_VERSION );\n\t\t\twp_enqueue_style( 'slick', JWA_CAR_PLUGIN_URL . '/assets/css/slick.css', '', JWA_CAR_VERSION );\n\n\n\t\t\t//js\n\t\t\twp_enqueue_script( 'slick', JWA_CAR_PLUGIN_URL . '/assets/js/slick.min.js', [ 'jquery' ],\n\t\t\t\tJWA_CAR_VERSION,\n\t\t\t\ttrue );\n\t\t\twp_enqueue_script( 'fancybox', JWA_CAR_PLUGIN_URL . '/assets/js/jquery.fancybox.min.js', [ 'jquery' ],\n\t\t\t\tJWA_CAR_VERSION,\n\t\t\t\ttrue );\n\t\t}\n\n\t\tif ( is_archive( JWA_CAR_POST_TYPE ) || has_shortcode( $post->post_content, 'jwa_car_filter' ) ) {\n\t\t\twp_enqueue_script( 'rangeSlider', JWA_CAR_PLUGIN_URL . '/assets/js/ion.rangeSlider.min.js', [ 'jquery' ],\n\t\t\t\tJWA_CAR_VERSION,\n\t\t\t\ttrue );\n\t\t\twp_enqueue_style( 'rangeSlider', JWA_CAR_PLUGIN_URL . '/assets/css/ion.rangeSlider.min.css' );\n\t\t}\n\n\t\twp_enqueue_style( 'style-car', JWA_CAR_PLUGIN_URL . '/assets/css/style-car.css', '', self::versionFile( '/assets/css/style-car.css' ) );\n\n\t\twp_enqueue_script( 'main-сar', JWA_CAR_PLUGIN_URL . '/assets/js/main.js', [ 'jquery' ],\n\t\t\tself::versionFile( '/assets/js/main.js' ),\n\t\t\ttrue );\n\n\t\twp_enqueue_script( 'select', JWA_CAR_PLUGIN_URL . '/assets/js/select2.min.js', [ 'jquery' ],\n\t\t\tJWA_CAR_VERSION,\n\t\t\ttrue );\n\n\t\twp_enqueue_script( 'IncrementBox', JWA_CAR_PLUGIN_URL . '/assets/js/jquery.IncrementBox.js', [ 'jquery' ],\n\t\t\tJWA_CAR_VERSION,\n\t\t\ttrue );\n\t\twp_enqueue_style( 'select', JWA_CAR_PLUGIN_URL . '/assets/css/select2.min.css', '', self::versionFile( '/assets/css/select2.min.css' ) );\n\n\t\twp_localize_script( 'main-сar', 'jwaCarFilter', [\n\t\t\t'ajaxUrl' => admin_url( 'admin-ajax.php' ),\n\t\t\t'filter' => get_post_type_archive_link( JWA_CAR_POST_TYPE ),\n\t\t] );\n\n\t\tif ( $this->style !== 'default' ) {\n\t\t\twp_enqueue_style( 'presets', JWA_CAR_PLUGIN_URL . '/assets/css/presets/style-' . $this->style . '.css', [ 'style-car' ],\n\t\t\t\tself::versionFile( '/assets/css/presets/style-' . $this->style . '.css' ) );\n\t\t}\n\t}", "title": "" }, { "docid": "c8049076bafcde8059437c4fd47ae6e8", "score": "0.67587334", "text": "function customize_controls_enqueue_scripts() {\r\n\t\t/**\r\n\t\t * @var WP_Scripts $wp_scripts\r\n\t\t */\r\n\t\tglobal $wp_scripts;\r\n\r\n\t\twp_enqueue_script( $this->plugin->script_handles['widgets-pane'] );\r\n\r\n\t\t// Why not wp_localize_script? Because we're not localizing, and it forces values into strings\r\n\t\t$exports = array(\r\n\t\t\t'sidebarsEligibleForPostMessage' => $this->get_sidebars_supporting_partial_refresh(),\r\n\t\t\t'widgetsEligibleForPostMessage' => $this->get_widgets_supporting_partial_refresh(),\r\n\t\t);\r\n\t\t$wp_scripts->add_data(\r\n\t\t\t$this->plugin->script_handles['widgets-pane'],\r\n\t\t\t'data',\r\n\t\t\tsprintf( 'var _wpCustomizePartialRefreshWidgets_exports = %s;', json_encode( $exports ) )\r\n\t\t);\r\n\t}", "title": "" }, { "docid": "0be11a4032e75d2a53c6c8bfb7205acd", "score": "0.6758096", "text": "function ema_load_scripts(){\n \n wp_enqueue_style( 'vender', get_template_directory_uri() . '/vendor/css/all.min.css', false, '1.0');\n wp_enqueue_style( 'normalizer', get_template_directory_uri() . '/assets/css/main.css', false, '1.0');\n \n wp_enqueue_script( 'jquery' );\n wp_enqueue_script( 'jqery', get_template_directory_uri() . '/assets/js/main.js', array('jquery'), '1.0');\n}", "title": "" }, { "docid": "8016f91835a371d18b8c1fe3f9172d49", "score": "0.67508316", "text": "function scripts_styles() {\n\t// Dequeue Core block styles.\n\twp_dequeue_style( 'wp-block-library' );\n}", "title": "" }, { "docid": "89595c3d444c4eb6aa42942adeed26d2", "score": "0.67496973", "text": "public function scripts()\n {\n if ($this->canPay()) {\n wp_enqueue_style(\"{$this->id}-form\", plugin_dir_url(__DIR__) . 'css/form.css', []);\n }\n }", "title": "" }, { "docid": "474ee17eab120583b116c73bd21c4641", "score": "0.67442393", "text": "public function front_enqueue_scripts_styles() {\n\t\twp_register_script('bootstrap_hover_dropdown', plugin_dir_url( __FILE__ ) . 'includes/js/bootstrap-hover-dropdown.min.js', array('jquery'), '2.1.3', true);\n\t\t//plugin\n\t\twp_register_script( 'fsn_menu', plugin_dir_url( __FILE__ ) . 'includes/js/fusion-extension-menu.js', array('jquery','fsn_core','bootstrap_hover_dropdown'), '1.1.16', true );\n\t\twp_enqueue_style( 'fsn_menu', plugin_dir_url( __FILE__ ) . 'includes/css/fusion-extension-menu.css', false, '1.0.0' );\n\t}", "title": "" }, { "docid": "fd398d28beced37c920253563a0193c0", "score": "0.67338157", "text": "function wpdocs_theme_name_scripts() {\n\t\twp_enqueue_style( 'Style', get_stylesheet_uri() );\n\t\twp_enqueue_style( 'Hint', get_template_directory_uri() . '/css/hint.min.css');\n\t\twp_enqueue_style( 'AOScss', '//cdn.rawgit.com/michalsnik/aos/2.0.4/dist/aos.css');\n\t\twp_enqueue_script( 'Slick', get_template_directory_uri() . '/js/slick.min.js', array('jquery') );\n\t\twp_enqueue_script( 'AOS', '//cdn.rawgit.com/michalsnik/aos/2.0.4/dist/aos.js');\n\t\twp_enqueue_script( 'Magic', get_template_directory_uri() . '/js/scripts.js');\n\t}", "title": "" }, { "docid": "abfff179044333c53b39367ec17113f8", "score": "0.67300284", "text": "public function define_theme_scripts()\n\t{\n\t\twp_enqueue_script( $this->theme_name . '-js' , get_stylesheet_directory_uri() . '/public/js/app.js' , array() , $this->version , true );\n\n\t\t/** Enqueue a conditional html 5 ie fix. **/\n\t\twp_enqueue_script( $this->theme_name . '-html5' , 'https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js' , array() , $this->version , true );\n \twp_script_add_data( $this->theme_name . '-html5' , 'conditional' , 'lt IE 9' );\n\t}", "title": "" }, { "docid": "5a7231f2188f1ee45ce666f6e97eb9b8", "score": "0.67292315", "text": "function frontend_foobar_js_and_css() {\r\n if ( !$this->frontend_has_foobar() ) return;\r\n \r\n $this->admin_foobar_css_enqueue();\r\n $this->admin_foobar_js_enqueue();\r\n }", "title": "" }, { "docid": "82529764a2f0a1ee9a2ed5abd159c35e", "score": "0.6715445", "text": "function waorder_scripts(){\n //wp_enqueue_style('waorder-responsive', get_template_directory_uri() . '/css/responsive.css', array(), strtotime('now'), 'all');\n //wp_enqueue_style('slim-select', get_template_directory_uri() . '/css/slim-select.css', array(), strtotime('now'), 'all');\n\n\n if( !get_post_meta( get_the_ID(), '_elementor_edit_mode', true ) ):\n wp_deregister_script('jquery');\n wp_deregister_script( 'wp-embed' );\n endif;\n\n //wp_enqueue_script('waorder', get_template_directory_uri() . '/js/scripts.js', array(), strtotime('now'), true);\n}", "title": "" }, { "docid": "7e0dbc67c716e09ddf77d4e0e4fac8be", "score": "0.67120844", "text": "function theme_setup_styles_and_scripts()\n{\n\twp_enqueue_style(\n\t\t'wilvyrux-injection',\n\t\tget_theme_file_uri() .\n\t\t'/assets/css/editor.min.css',\n\t\tarray(),\n\t\t'all' \n\t); \n \n \n wp_enqueue_script(\n\t\t'all-scripts',\n get_theme_file_uri() .\n\t\t'/assets/js/editor.js',\n\t\tarray(),\n\t\t'all'\n\t); \n \n \n \n // gravity_form_enqueue_scripts(2, true);\n\n}", "title": "" }, { "docid": "60e8e6b28b9be746a89b75ecbac41e36", "score": "0.67073536", "text": "public function insertCss() {\r\n wp_enqueue_style('thickbox');\r\n $theme = self::get('theme', 'simple');\r\n wp_register_style('ipenelo-calendar-public', $this->_pluginUrl . '/themes/' . $theme . '/css/styles-public.css', array());\r\n wp_enqueue_style('ipenelo-calendar-public');\r\n }", "title": "" }, { "docid": "3482082491f38805065ba8cbddd943ec", "score": "0.67017114", "text": "function awesome_script_enqueue(){\n\t wp_enqueue_style('customstyle',get_template_directory_uri().'/css/awesome.css',array(),\n\t\t filemtime(get_template_directory() . '/css/awesome.css'),'all');\n\n\t //this\n\t wp_enqueue_script('customjs',get_template_directory_uri().'/js/javascript.js',array(),\n\t\t filemtime(get_template_directory() . '/js/javascript.js'),true);\n\t}", "title": "" }, { "docid": "dd0e77f3c8b329295fb81427194474f9", "score": "0.66997445", "text": "public function enqueue()\n \t{\n wp_enqueue_style('mfn-builder', get_theme_file_uri('/functions/builder/assets/builder.css'), false, time(), 'all');\n \t\twp_enqueue_script('mfn-builder', get_theme_file_uri('/functions/builder/assets/builder.js'), array('jquery'), time(), true);\n \t}", "title": "" }, { "docid": "e8a1c13585266ccc91d15a0f4d90c67d", "score": "0.6695321", "text": "public function enqueue_styles_scripts() {\n\t\tif ( bp_is_active( 'groups' ) ) {\n\t\t\t// Styles\n\t\t\twp_enqueue_style( $this->plugin_slug . '-plugin-styles', plugins_url( 'css/public.css', __FILE__ ), array(), $this->version );\n\n\t\t\t// IE specific\n\t\t\t// global $wp_styles;\n\t\t\t// wp_enqueue_style( $this->plugin_slug . '-ie-plugin-styles', plugins_url( 'css/public-ie.css', __FILE__ ), array(), $this->version );\n\t\t\t// $wp_styles->add_data( $this->plugin_slug . '-ie-plugin-styles', 'conditional', 'lte IE 9' );\n\n\t\t\t// Scripts\n\t\t\twp_enqueue_script( $this->plugin_slug . '-plugin-script', plugins_url( 'js/public.min.js', __FILE__ ), array( 'jquery' ), $this->version );\n\t\t}\n\t}", "title": "" }, { "docid": "a13c8f9f83be1afece28a14c4559f732", "score": "0.66924983", "text": "public function enqueue_scripts() {\n\t\twp_enqueue_script( 'bsme-bootstrap-js-add', WP_JELLY_JS. '/bootstrap.min.js', array( 'jquery' ), $this->version, false );\n\t\twp_enqueue_script('wpjelly-export-admin', WP_JELLY_JS.'/export-admin.js',array('jquery'), $this->version, false);\n\t\t$bsmarg = array(\n\t\t 'post_type' => 'elementor_library',\n\t\t);\n\t\t$getallmetaquery = get_posts($bsmarg);\n\t\t$metaData = array();\n\t\tforeach($getallmetaquery as $key => $value){\n\t\t $metaData[] = get_post_meta($value->ID,'_bsm_mainelement', true);\n\t\t}\n\t\t$metaDataEncoded=json_encode($metaData);\n\t\t$siteUrl=get_site_url();\n\t\twp_localize_script('wpjelly-export-admin', 'wpjellyTemplateControl', array(\n\t\t 'meta' => $metaDataEncoded,\n\t\t 'ajaxurl' => admin_url('admin-ajax.php'),\n\t\t 'backurl' => admin_url('admin.php?page=wpjelly-template-importer-menu'),\n\t\t 'siteUrl' => $siteUrl,\n\t\t 'imageUrl' => WP_JELLY_IMG\n\t\t));\n\t}", "title": "" }, { "docid": "4dfab5ba227bff884facabaf9810a9e8", "score": "0.6691071", "text": "function ox_scripts_styles() {\n\t$postfix = ( defined( 'SCRIPT_DEBUG' ) && true === SCRIPT_DEBUG ) ? '' : '.min';\n\n\twp_enqueue_script( 'ox', get_template_directory_uri() . \"/assets/js/wisipro{$postfix}.js\", array(), OX_VERSION, true );\n\t\t\n\twp_enqueue_style( 'ox', get_template_directory_uri() . \"/assets/css/wisipro{$postfix}.css\", array(), OX_VERSION );\n }", "title": "" }, { "docid": "988225a6030e4d89828c0195ebd9e68c", "score": "0.66907734", "text": "function starkers_script_enqueuer() {\n\n\t\twp_register_style( 'screen', get_stylesheet_directory_uri().'/style.css', '', '', 'screen' );\n wp_enqueue_style( 'screen' );\n\n wp_register_script( 'slideshow', get_template_directory_uri().'/js/vendor/jquery.flexslider-min.js', array('jquery'), 1, TRUE );\n\t}", "title": "" }, { "docid": "b4834ddf1ebd2857b246d5ddce168d20", "score": "0.6687206", "text": "function admin_styles_script(){\n wp_register_style('WHFStyle', STYLE. 'admin.css', array(), '1.0');\n wp_enqueue_style('WHFStyle');\n wp_enqueue_script('jQuery', SCRIPT. 'jquery-1.11.0.min.js', array(), '1.11.0');\n wp_enqueue_script('globalScript', SCRIPT. 'globalScript.js', array(), '1.0');\n }", "title": "" }, { "docid": "45bc323ace8f36e4f82d09fc4a78d2b6", "score": "0.66741186", "text": "public function enqueue()\n {\n if (! empty($this->stylesheets)) {\n foreach ($this->stylesheets as $stylesheet) {\n if ($this->shouldEnqueue($stylesheet)) {\n wp_enqueue_style(\n $stylesheet['id'],\n $stylesheet['src'],\n $stylesheet['dependencies'],\n $stylesheet['version'],\n $stylesheet['media']\n );\n }\n }\n }\n\n if (! empty($this->scripts)) {\n $media_enqueued = false;\n \n foreach ($this->scripts as $script) {\n if ($this->shouldEnqueue($script)) {\n if (array_key_exists('media', $script) && $script['media'] && !$media_enqueued) {\n wp_enqueue_media();\n $media_enqueued = true;\n }\n\n wp_enqueue_script(\n $script['id'],\n $script['src'],\n $script['dependencies'],\n $script['version'],\n $script['in_footer']\n );\n \n if (isset($script['localization']) && !empty($script['localization'])) {\n $l10n = [];\n\n if (isset($script['localization']['callback']) && !empty($script['localization']['callback'])) {\n if (is_array($script['localization']['callback']) && is_string($script['localization']['callback'][0])) {\n if ($this->app->has($script['localization']['callback'][0])) {\n $script['localization']['callback'][0] = $this->app->get($script['localization']['callback'][0]);\n }\n }\n\n if (is_callable($script['localization']['callback'])) {\n $args = isset($script['localization']['args']) ? $script['localization']['args'] : [];\n $l10n = call_user_func_array($script['localization']['callback'], $args);\n }\n }\n \n wp_localize_script(\n $script['id'],\n $script['localization']['js_object_name'],\n $l10n\n );\n }\n }\n }\n }\n }", "title": "" }, { "docid": "7ad158a32db77ecb6dcaa5cd24845231", "score": "0.66702133", "text": "public function custom_wp_enqueue_scripts_action() {\n\t\twp_enqueue_style( $this->textdomain . '-style', $this->custom_url . '/css/frontend.css' );\n\t\twp_enqueue_script( $this->textdomain, $this->custom_url . '/js/frontend.js', array( 'jquery' ), false, true );\n\n\t\t$l10n = array(\n\t\t\t'textDomain' => $this->textdomain,\n\t\t\t'ajaxUrl' => $this->get_ajax_url(),\n\t\t\t'optionName' => $this->get_option_name(),\n\t\t\t'text' => array(\n\n\t\t\t)\n\t\t);\n\n\t\twp_localize_script( $this->textdomain, 'sFonts', $l10n );\n\t}", "title": "" }, { "docid": "fdd9a02b49d93af7b7c63fc2baed7505", "score": "0.66689473", "text": "public function css() {\n\t\tif ($this->css != false) {\n\t\t\tif($this->scriptTo) {\n\t\t\t\t$elem = pzk_element($this->scriptTo);\n\t\t\t\tif(file_exists('default/skin/'.pzk_app()->getPathByName() . '/themes/' . pzk_request()->getDefaultTheme() .'/css/'.$this->css.'.css')) {\n\t\t\t\t\t$elem->append(pzk_parse('<html.css src=\"/default/skin/'.pzk_app()->getPathByName() . '/themes/' . pzk_request()->getDefaultTheme() .'/css/'.$this->css.'.css\" />'));\n\t\t\t\t} else if(file_exists('default/skin/'.pzk_app()->getPathByName().'/css/'.$this->css.'.css')) {\n\t\t\t\t\t$elem->append(pzk_parse('<html.css src=\"/default/skin/'.pzk_app()->getPathByName().'/css/'.$this->css.'.css\" />'));\n\t\t\t\t} else if (file_exists('default/skin/'.pzk_app()->getPackageByName().'/css/'.$this->css.'.css')) {\n\t\t\t\t\t$elem->append(pzk_parse('<html.css src=\"/default/skin/'.pzk_app()->getPackageByName().'/css/'.$this->css.'.css\" />'));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif($page = pzk_page())\n\t\t\t\t\t$page->addObjCss($this->css);\n\t\t\t}\n\n\t\t}\n\t\tif ($this->cssExternalLink != false) {\n\t\t\tif($this->scriptTo) {\n\t\t\t\t$elem = pzk_element($this->scriptTo);\n\t\t\t\t$elem->append(pzk_parse('<html.css src=\"'.$this->cssExternalLink.'\" />'));\n\t\t\t} else {\n\t\t\t\tif($page = pzk_page()) {\n\t\t\t\t\t$page->addExternalCss($this->cssExternalLink);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "26c2fd2cd86512d22a56f84e957805be", "score": "0.666056", "text": "public function enqueue_scripts() {\n\t\twp_enqueue_style( 'slick', RT_CORE_URL . 'assets/css/slick.min.css', array(), '1.6.0' );\n\t\tif ( function_exists( 'WC' ) ) {\n\t\t\twp_enqueue_style( 'thumbelina', RT_CORE_URL . 'assets/css/thumbelina.css', array(), '1.0.0' );\n\t\t\twp_enqueue_style( 'cloudzoom', RT_CORE_URL . 'assets/css/cloudzoom.css', array(), '3.1.0' );\n\t\t\twp_enqueue_script( 'cloudzoom', RT_CORE_URL . 'assets/js/cloudzoom.js', array( 'jquery' ), '3.1.0', true );\n\t\t\twp_enqueue_script( 'thumbelina', RT_CORE_URL . 'assets/js/thumbelina.js', array( 'jquery' ), '1.0.0', true );\n\t\t}\n\t\twp_enqueue_style( 'rtcore-main', RT_CORE_URL . 'assets/css/main.css', array(), '1.0.0' );\n\t\twp_enqueue_script( 'slick', RT_CORE_URL . 'assets/js/slick.min.js', array( 'jquery' ), '1.6.0', true );\n\t\twp_enqueue_script( 'rtcore-main', RT_CORE_URL . 'assets/js/main.js', array( 'jquery' ), '1.0.0', true );\n\t}", "title": "" }, { "docid": "9acf85a439308c2944c36934cf307241", "score": "0.6659229", "text": "function suitbuilder_scripts() {\n\tglobal $suitbuilder_customizer_all_values;\n\t/*google font*/\n\twp_enqueue_style( 'suitbuilder-google-fonts',suitbuilder_google_fonts() );\n\n\twp_enqueue_style( 'suitbuilder-style', get_stylesheet_uri() );\n\t\n\t/*inline style*/\n\twp_add_inline_style('suitbuilder-style', suitbuilder_get_inline_style() );\n\n\n\t// thirdparty style file\n\twp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/assets/src/css/bootstrap.css' );\n\twp_enqueue_style( 'font-awesome-v5', get_template_directory_uri() . '/assets/src/css/fontawesome/css/all.css' );\n\n\twp_enqueue_style( 'slick', get_template_directory_uri() . '/assets/src/css/slick.css' );\n\t//main theme style\n\twp_enqueue_style( 'mobileMenu', get_template_directory_uri() . '/assets/src/css/suitbuilderMenu.css' );\n\twp_enqueue_style( 'mainStyle', get_template_directory_uri() . '/assets/src/css/main.css' );\n\t\n\twp_enqueue_script( 'suitbuilder-navigation', get_template_directory_uri() . '/assets/src/js/navigation.js', array(), '20151215', true );\n\n\twp_enqueue_script( 'suitbuilder-skip-link-focus-fix', get_template_directory_uri() . '/assets/src/js/skip-link-focus-fix.js', array(), '20151215', true );\n\t// thirdparty assets\n\twp_enqueue_script( 'jquery-bootstrap', get_template_directory_uri() . '/assets/src/js/bootstrap.js', array('jquery'), true );\n\twp_enqueue_script( 'jquery-slick', get_template_directory_uri() . '/assets/src/js/slick.js', array('jquery'), true );\n\twp_enqueue_script( 'suitbuilder-mobile-menu', get_template_directory_uri() . '/assets/src/js/mobileMenu.js', array('jquery'), true );\n\n\twp_enqueue_script( 'suitbuilder-main', get_template_directory_uri() . '/assets/src/js/main.js', array('jquery'), true );\n\n\n\twp_localize_script( 'suitbuilder-main', 'customzier_values', $suitbuilder_customizer_all_values);\n\n\n\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\twp_enqueue_script( 'comment-reply' );\n\t}\n}", "title": "" }, { "docid": "a4f71582f3a1306509b1d1f7164e06a3", "score": "0.66581947", "text": "public function scripts() {\n\t\t\tglobal $jobhunt_version;\n\n\t\t\t/**\n\t\t\t * Styles\n\t\t\t */\n\n\t\t\t$should_minify_css = apply_filters( 'jobhunt_should_minify_css', false );\n\t\t\t$css_suffix = $should_minify_css ? '.min' : '';\n\n\t\t\t$css_vendors = apply_filters( 'jobhunt_css_vendors', array(\n\t\t\t\t'font-awesome'\t=> array(\n\t\t\t\t\t'css_file' \t\t\t=> 'fontawesome/css/all.css',\n\t\t\t\t\t'has_minified_file'\t=> true,\n\t\t\t\t\t'minified_css_file'\t=> 'fontawesome/css/all.min.css',\n\t\t\t\t\t'version'\t\t\t=> '5.12.0'\n\t\t\t\t),\n\t\t\t\t'line-awesome'\t=> array(\n\t\t\t\t\t'css_file' \t\t\t=> 'line-awesome/css/line-awesome.css',\n\t\t\t\t\t'has_minified_file'\t=> true,\n\t\t\t\t\t'minified_css_file'\t=> 'line-awesome/css/line-awesome.min.css',\n\t\t\t\t\t'version'\t\t\t=> '1.3.0'\n\t\t\t\t),\n\t\t\t\t'animate'\t\t=> array(\n\t\t\t\t\t'css_file' \t\t\t=> 'animate.css/animate.css',\n\t\t\t\t\t'has_minified_file' => true,\n\t\t\t\t\t'minified_css_file' => 'animate.css/animate.min.css',\n\t\t\t\t\t'version' => '3.7.2'\n\t\t\t\t),\n\t\t\t) );\n\n\t\t\t$should_minify_css = apply_filters( 'jobhunt_should_minify_css', true );\n\n\t\t\tforeach( $css_vendors as $handle => $css_vendor ) {\n\n\t\t\t\tif ( $should_minify_css && $css_vendor['has_minified_file'] ) {\n\t\t\t\t\t$css_file = $css_vendor['minified_css_file'];\n\t\t\t\t} else {\n\t\t\t\t\t$css_file = $css_vendor['css_file'];\n\t\t\t\t}\n\n\t\t\t\tif ( isset( $css_vendor['version'] ) && !empty ( $css_vendor['version'] ) ) {\n\t\t\t\t\t$version = $css_vendor['version'];\n\t\t\t\t} else {\n\t\t\t\t\t$version = $jobhunt_version;\n\t\t\t\t}\n\n\t\t\t\twp_register_style( $handle, get_template_directory_uri() . '/assets/vendors/' . $css_file, '', $version );\n\t\t\t\twp_enqueue_style( $handle );\n\t\t\t}\n\n\n\t\t\twp_enqueue_style( 'jobhunt-style', get_template_directory_uri() . '/style.css', '', $jobhunt_version );\n\t\t\twp_style_add_data( 'jobhunt-style', 'rtl', 'replace' );\n\n\t\t\tif( apply_filters( 'jobhunt_use_predefined_colors', true ) ) {\n\t\t\t\t$color_css_file = apply_filters( 'jobhunt_primary_color', 'pink-purple' );\n\t\t\t\twp_enqueue_style( 'jobhunt-color', get_template_directory_uri() . '/assets/css/colors/' . $color_css_file . '.css', '', $jobhunt_version );\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Fonts\n\t\t\t */\n\t\t\tif ( apply_filters( 'jobhunt_load_default_fonts', true ) ) {\n\t\t\t\t$google_fonts = apply_filters( 'jobhunt_google_font_families', array(\n\t\t\t\t\t'quicksand' => 'Quicksand:300,400,500,700',\n\t\t\t\t\t'montserrat' => 'Montserrat:100,200,300,400,500,600,700,800,900',\n\t\t\t\t\t'varela' => 'Varela+Round'\n\t\t\t\t) );\n\n\t\t\t\t$query_args = array(\n\t\t\t\t\t'family' => implode( '%7c', $google_fonts ),\n\t\t\t\t\t'subset' => urlencode( 'latin,latin-ext' ),\n\t\t\t\t);\n\n\t\t\t\t$fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );\n\n\t\t\t\twp_enqueue_style( 'google-font-quicksand-montserrat-varela', $fonts_url, array(), null );\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Scripts\n\t\t\t */\n\t\t\t$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';\n\n\t\t\twp_enqueue_script( 'jobhunt-skip-link-focus-fix', get_template_directory_uri() . '/assets/js/skip-link-focus-fix' . $suffix . '.js', array(), '20130115', true );\n\t\t\twp_enqueue_script( 'popper', get_template_directory_uri() . '/assets/js/popper' . $suffix . '.js', array( 'jquery' ), '1.14.3', true );\n\t\t\twp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/assets/js/bootstrap' . $suffix . '.js', array( 'jquery' ), '4.1.1', true );\n\t\t\twp_enqueue_script( 'slick', get_template_directory_uri() . '/assets/js/slick' . $suffix . '.js', array(), '1.8.0', true );\n\n\t\t\t$waypoints_js_handler = function_exists( 'jobhunt_is_elementor_activated' ) && jobhunt_is_elementor_activated() ? 'elementor-waypoints' : 'jobhunt-waypoints';\n\t\t\twp_enqueue_script( $waypoints_js_handler, get_template_directory_uri() . '/assets/js/jquery.waypoints'. $suffix . '.js', array( 'jquery' ), $jobhunt_version, true );\n\n\t\t\tif( jobhunt_has_sticky_header() || is_singular( 'resume' ) ) {\n\t\t\t\twp_enqueue_script( 'waypoints-sticky', get_template_directory_uri() . '/assets/js/waypoints-sticky'. $suffix . '.js', array( 'jquery' ), $jobhunt_version, true );\n\t\t\t}\n\n\t\t\twp_enqueue_script( 'jobhunt-navigation', get_template_directory_uri() . '/assets/js/navigation' . $suffix . '.js', array(), $jobhunt_version, true );\n\n\t\t\tif( apply_filters( 'jobhunt_enable_scrollup', true ) ) {\n wp_enqueue_script( 'jquery-easing', get_template_directory_uri() . '/assets/js/jquery.easing' . $suffix . '.js', array( 'jquery' ), $jobhunt_version, true );\n wp_enqueue_script( 'jobhunt-scrollup', get_template_directory_uri() . '/assets/js/scrollup' . $suffix . '.js', array( 'jquery' ), $jobhunt_version, true );\n }\n\n $gmaps_api_key = apply_filters( 'jobhunt_gmaps_browser_api', '' );\n\t\t\tif( apply_filters( 'jobhunt_enable_location_geocomplete', false ) && ! empty( $gmaps_api_key ) ) {\n\t\t\t\twp_enqueue_script( 'jobhunt-google-maps', 'https://maps.google.com/maps/api/js?key=' . $gmaps_api_key . '&libraries=places', array(), $jobhunt_version, true );\n\t\t\t\twp_enqueue_script( 'jquery-geocomplete', get_template_directory_uri() . '/assets/js/jquery.geocomplete' . $suffix . '.js', array( 'jobhunt-google-maps' ), $jobhunt_version, true );\n\t\t\t}\n\n\t\t\tif( apply_filters( 'jobhunt_enable_live_search', false ) ) {\n\t\t\t\twp_enqueue_script( 'jquery-ui-autocomplete' );\n\t\t\t}\n\n\t\t\twp_enqueue_script( 'jobhunt-scripts', get_template_directory_uri() . '/assets/js/jobhunt.js', array( 'bootstrap' ), $jobhunt_version, true );\n\n\t\t\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\t\t\twp_enqueue_script( 'comment-reply' );\n\t\t\t}\n\n\t\t\tif ( has_nav_menu( 'handheld' ) ) {\n\t\t\t\t$jobhunt_l10n = array(\n\t\t\t\t\t'expand' => esc_html__( 'Expand child menu', 'jobhunt' ),\n\t\t\t\t\t'collapse' => esc_html__( 'Collapse child menu', 'jobhunt' ),\n\t\t\t\t);\n\n\t\t\t\twp_localize_script( 'jobhunt-navigation', 'jobhuntScreenReaderText', $jobhunt_l10n );\n\t\t\t}\n\n\t\t\t$jobhunt_js_options = apply_filters( 'jobhunt_localize_script_data', array(\n\t\t\t\t'ajax_url'\t\t\t\t\t\t=> admin_url( 'admin-ajax.php' ),\n\t\t\t\t'ajax_loader_url'\t\t\t\t=> get_template_directory_uri() . '/assets/images/ajax-loader.gif',\n\t\t\t\t'enable_live_search' => apply_filters( 'jobhunt_enable_live_search', false ),\n\t\t\t\t'enable_location_geocomplete'\t=> apply_filters( 'jobhunt_enable_location_geocomplete', false ) && ! empty( $gmaps_api_key ),\n\t\t\t\t'location_geocomplete_options'\t=> apply_filters( 'jobhunt_location_geocomplete_options', array() ),\n\t\t\t) );\n\n\t\t\twp_localize_script( 'jobhunt-scripts', 'jobhunt_options', $jobhunt_js_options );\n\t\t}", "title": "" }, { "docid": "9e33367218cd38d4539a972a2a40cc91", "score": "0.66478705", "text": "function theme_scripts_and_styles() {\n console.log('theme_scripts_and_styles...');\n\n global $wp_styles;\n\n // Don't do this in the Admin Panel\n if (is_admin()) return;\n\n // comment reply script for threaded comments\n /*\n if ( is_singular() AND comments_open() AND (get_option('thread_comments') == 1)) {\n wp_enqueue_script( 'comment-reply' );\n }\n */\n\n // Extensions\n /*\n wp_enqueue_style( 'vendor_jssocials_css', get_stylesheet_directory_uri() . '/assets/vendor/jssocials-0.2.0/jssocials.css', array(), '', 'all' );\n wp_enqueue_style( 'vendor_jssocials_css_theme', get_stylesheet_directory_uri() . '/assets/vendor/jssocials-0.2.0/jssocials-theme-flat.css', array(), '', 'all' );\n wp_enqueue_script( 'vendor_jssocials_js', (get_stylesheet_directory_uri().'/assets/vendor/jssocials-0.2.0/jssocials.js'), array('jquery'), '', true );\n */\n\n // Theme Stuff\n wp_enqueue_style( 'site_css', get_stylesheet_directory_uri() . '/assets/css/style.css', array(), '', 'all' );\n wp_enqueue_script( 'site_js', (get_stylesheet_directory_uri().'/assets/js/site.js'), array('jquery'), '', true );\n wp_enqueue_script( 'social_card_js', (get_stylesheet_directory_uri().'/assets/js/social_card.js'), array(), '', true );\n wp_deregister_script('jquery');\n\n\n }", "title": "" }, { "docid": "ba1d714623ff6a68c2d39cf1b3e98ae9", "score": "0.66449773", "text": "public function admin_enqueue_scripts()\n {\n\n if(!$this->is_allowed_page()){\n return;\n }\n \n do_action('toolset_enqueue_styles', array(\n 'toolset-bs-component-style',\n 'wp-jquery-ui-dialog',\n 'ddl-dialogs-css',\n 'glyphicons'\n ));\n\n $current_screen = 'front_end';\n if(is_admin()){\n $get_screen = get_current_screen();\n $current_screen = $get_screen->base;\n }\n \n $get_components = $this->all_css_components();\n\n do_action('toolset_enqueue_scripts', array(\n 'toolset-css-component-buttons',\n 'toolset-css-component-events',\n\t\t\t\t'toolset-css-component-grids',\n 'toolset-event-manager'\n ));\n\n do_action('toolset_localize_script', 'toolset-css-component-events', 'Toolset_CssComponent', array(\n 'DDL_CSS_JS' => array(\n 'current_screen' => $current_screen,\n 'available_css' => $get_components['css'],\n 'button_toggle_show' => __('Show Bootstrap buttons','ddl-layouts'),\n 'button_toggle_hide' => __('Hide Bootstrap buttons','ddl-layouts'),\n 'group_label_bs_components' => __('Bootstrap Elements:','ddl-layouts'),\n 'group_label_bs_css' => __('Bootstrap CSS:','ddl-layouts'),\n 'group_label_other' => __('Other Elements:','ddl-layouts'),\n 'codemirror_pop_message' => __('Got markup for \"<span class=\"bs_pop_element_name_codemirror\">Element</span>\"? Now paste it into the editor.','ddl-layouts'),\n 'tinymce_pop_message' => __('Got markup for \"<span class=\"bs_pop_element_name_tinymce\">Element</span>\"? Before you paste HTML into the editor, <br>remember to switch to HTML editing. Then, paste the code into the editor.','ddl-layouts'),\n 'available_components' => $get_components['components'],\n 'other' => $get_components['other'],\n 'hide_editor_pop_msg' => (get_option( 'toolset_bs_component_hide_pop_msg' )) ? get_option( 'toolset_bs_component_hide_pop_msg' ) : \"no\",\n 'show_bs_buttons_cm_status' => (get_option( 'toolset_bs_component_show_buttons_cm_status' )) ? get_option( 'toolset_bs_component_show_buttons_cm_status' ) : \"no\",\n 'show_bs_buttons_tinymce_status' => (get_option( 'toolset_bs_component_show_buttons_tinymce_status' )) ? get_option( 'toolset_bs_component_show_buttons_tinymce_status' ) : \"no\",\n 'toggle_button_label_toggle' => __('Toggle Bootstrap Components', \"wpv-views\"),\n 'toggle_button_tooltip' => __('Bootstrap Components Toggle', \"wpv-views\"),\n ),\n )\n );\n\n\t\t\tdo_action('toolset_localize_script', 'toolset-css-component-grids', 'Toolset_CssComponent_Grids', array(\n 'button'\t=> array(\n\t\t\t\t\t\t'label'\t=> __( 'Grid', 'wpv-views' )\n\t\t\t\t\t),\n\t\t\t\t\t'dialog'\t=> array(\n\t\t\t\t\t\t'title'\t\t=> __( 'Bootstrap Grid', 'wpv-views' ),\n\t\t\t\t\t\t'content'\t=> $this->get_grid_dialog_content(),\n\t\t\t\t\t\t'insert'\t=> __( 'Insert grid', 'wpv-views' ),\n\t\t\t\t\t\t'cancel'\t=> __( 'Cancel', 'wpv-views' ),\n\t\t\t\t\t)\n )\n );\n }", "title": "" }, { "docid": "140f7daad66a3997975718ad7238228c", "score": "0.6643558", "text": "function enqueue_scripts_for_hook_invoker() {\n\twp_enqueue_script( 'code-editor' );\n\twp_enqueue_style( 'code-editor' );\n\n\twp_enqueue_style( 'dependency-enqueuer-ie', 'https://example.com/ie.css', array(), '1' );\n\twp_style_add_data( 'dependency-enqueuer-ie', 'conditional', 'lt IE 9' );\n}", "title": "" }, { "docid": "cf72522148e0ec688fd50c2f585fe024", "score": "0.6640312", "text": "public function enqueue_front_end_scripts()\n {\n\n // Plugin styles from the front-end. \n wp_register_style('wpbs-wc-front-end-style', WPBS_WC_PLUGIN_DIR_URL . 'assets/css/style-front-end.min.css', array(), WPBS_WC_VERSION);\n wp_enqueue_style('wpbs-wc-front-end-style');\n\n\n }", "title": "" }, { "docid": "64c5fc2976fb5c7c9a1424a8413f4aa1", "score": "0.6638526", "text": "public function wsh_enqueue_style_scripts(){\n\n\t\t\twp_enqueue_style( 'wsh_admin_setting_style', plugin_dir_url( __FILE__ ) . '/assets/css/wocommerce-save-price-history-style.css', array() );\n\t\t\twp_enqueue_style( 'wsh_wc_admin_style', plugin_dir_url( __FILE__ ) . '/assets/css/wc-admin.css', array() );\n\n\t\t\twp_register_script( 'wsh_admin_setting_script', plugin_dir_url( __FILE__ ) . '/assets/js/wocommerce-save-price-history-script.js', array( 'jquery' ) );\n\n\t\t wp_localize_script( 'wsh_admin_setting_script', 'securityObj', array(\n\t\t 'ajaxurl' => admin_url( 'admin-ajax.php' ),\n\t\t 'security' => wp_create_nonce( 'search-products' )\n\t\t ));\n\n\t\t wp_enqueue_script( 'wsh_admin_setting_script' );\n\n\t\t\twp_enqueue_script( 'jquery-ui-autocomplete' );\n\t\t\twp_enqueue_script( 'wsh_admin_setting_script_select2', plugin_dir_url( __FILE__ ) . '/assets/js/select2.min.js' , array('jquery'));\n\n\t\t}", "title": "" }, { "docid": "6fce76e3f59d41876dd835d77ac974f6", "score": "0.66384643", "text": "protected function enqueue_scripts_and_styles() {}", "title": "" }, { "docid": "7f967452aa73d3e3e0378b1d553e41a0", "score": "0.6637238", "text": "public function enqueue_styles_and_scripts() {\r\n\r\n\t\tglobal $current_screen;\r\n\r\n\t\t// needs to be enqueued for *any* post type using the block editor\r\n\t\tif ( $current_screen &&\r\n\t\t $current_screen->is_block_editor &&\r\n\t\t use_block_editor_for_post_type( $current_screen->post_type ) ) {\r\n\r\n\t\t\t// enqueue scripts:\r\n\t\t\t$this->enqueue_script( 'custom-pattern-editor' );\r\n\r\n\t\t\t// enqueue styles:\r\n\t\t\t$this->enqueue_style( 'custom-pattern-editor' );\r\n\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "39924494c40e099fd9767826daddfbdd", "score": "0.66367", "text": "public function registerScripts()\n {\n // Note: timeline styles are only loaded when the shortcode is used\n wp_register_style('fontawesome_4', '//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css', [], '4.7.0');\n wp_register_style('timeline_plugin_css', $this->asset_url . '/css/timeline.css', [ 'fontawesome_4'], $this->version);\n\n // Note: timeline scripts are only loaded when the shortcode is used\n wp_register_script('timeline_plugin_js', $this->asset_url . '/js/timeline.js', [], $this->version);\n }", "title": "" }, { "docid": "7a0db67257ce6b8ee4fa1e1b9eb01a24", "score": "0.6634562", "text": "public function enqueue_styles()\n {\n // Load up the Theme Option Enhancements\n if ($this->themeoptions_enhancements_enabled) {\n wp_enqueue_style(\n $this->slug . '-themeoptions-enhancements',\n DIVIROIDS_PLUGIN_ASSETS_CSS_URL . 'diviroids-admin-customizations-themeoptions-enhancements.css',\n array(),\n DIVIROIDS_PLUGIN_VERSION,\n 'all'\n );\n }\n\n // Load up the Divi Builder Enhancements\n if ($this->divibuilder_enhancements_enabled) {\n wp_enqueue_style(\n $this->slug . '-divibuilder-enhancements',\n DIVIROIDS_PLUGIN_ASSETS_CSS_URL . 'diviroids-admin-customizations-divibuilder-enhancements.css',\n array(),\n DIVIROIDS_PLUGIN_VERSION,\n 'all'\n );\n }\n\n // Load up the Visual Builder Enhancements\n if ($this->visualbuilder_enhancements_enabled) {\n wp_enqueue_style(\n $this->slug . '-visualbuilder-enhancements',\n DIVIROIDS_PLUGIN_ASSETS_CSS_URL . 'diviroids-public-customizations-visualbuilder-enhancements.css',\n array(),\n DIVIROIDS_PLUGIN_VERSION,\n 'all'\n );\n }\n }", "title": "" }, { "docid": "4b61f7d4b5b22e6e5e21f1867a6cbb12", "score": "0.6629143", "text": "function register_scripts_and_styles() {\n\t\twp_register_style( 'exchange-customer-history-admin', $this->directory_url . '/lib/admin.css' );\n\t}", "title": "" }, { "docid": "b74ef8bb23a7dd4b8b501c6ef86d1288", "score": "0.66261727", "text": "public static function register_scripts_styles() {\n\t\tScript_And_Style_Helpers::register_and_enqueue_style( 'sgdg_options_grid', 'admin/css/options-grid.min.css' );\n\t}", "title": "" }, { "docid": "bbc2744904168cd1779de7fe1a6e0d63", "score": "0.6625106", "text": "function buddyboss_child_scripts_styles()\n{\n /*\n * Styles\n */\n // Premium Web Fonts\n wp_enqueue_style( 'premium-web-font', get_stylesheet_directory_uri() . '/fonts/style.css' );\n\n wp_enqueue_style( 'header-account', get_stylesheet_directory_uri().'/css/header-account.css' );\n wp_enqueue_style( 'buddyboss-child-custom', get_stylesheet_directory_uri().'/css/custom.css' );\n wp_enqueue_script( 'buddyboss-child-js', get_stylesheet_directory_uri(). '/js/custom-scripts.js', array( 'jquery' ),'1.0',true );\n wp_dequeue_script( 'buddyboss-main' ); \n wp_enqueue_script( 'buddyboss-js', get_stylesheet_directory_uri(). '/js/buddyboss.js', array( 'jquery' ),'1.0',true );\n\n // Remove filterbar CSS\n\twp_dequeue_style( 'Tribe__Events__Filterbar__View-css' );\n}", "title": "" }, { "docid": "022c7d1d594f1a7d81675c668c5b0b97", "score": "0.66201776", "text": "private function register_common_scripts() {\n\t\twp_enqueue_style(\n\t\t\t'nmv-data-manager-fontello',\n\t\t\tNMV_DATA_MANAGER_URL . 'src/assets/css/fontello.css',\n\t\t\tarray(),\n\t\t\t'1.0.0',\n\t\t\t'all'\n\t\t);\n\t\twp_enqueue_style(\n\t\t\t'nmv-data-manager-base',\n\t\t\tNMV_DATA_MANAGER_URL . 'src/assets/css/base.css',\n\t\t\tarray(),\n\t\t\t'1.0.0',\n\t\t\t'all'\n\t\t);\n\t}", "title": "" }, { "docid": "e72b7d428bfaabe58ea4fc88e638a33d", "score": "0.66188633", "text": "function masterScripts() {\n $time = time();\n wp_enqueue_style( 'main-style', get_stylesheet_directory_uri().'/dist/min/style.min.css?nocache='.$time, array(), null );\n\n // wp_enqueue_script( 'vendor-script', $urlObj->scriptUrl('vendor', $useMin), array('jquery'), null, true );\n wp_enqueue_script( 'main-script', get_stylesheet_directory_uri().'/dist/min/script.min.js?nocache='.$time, array('jquery'), null, true );\n}", "title": "" }, { "docid": "b04e75526adc3254b6af248dcae0d77a", "score": "0.6618147", "text": "public function enqueue_styles_scripts() {\n $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';\n wp_enqueue_script( 'ywsl_frontend', YITH_YWSL_ASSETS_URL . '/js/frontend' . $suffix . '.js', array( 'jquery' ), YITH_YWSL_VERSION, true );\n wp_enqueue_style( 'ywsl_frontend', YITH_YWSL_ASSETS_URL . '/css/frontend.css' );\n }", "title": "" }, { "docid": "607777e22b16759acfcafe4758577c43", "score": "0.6607951", "text": "function awesome_script_enqueue()\n{\n\t//css\n\twp_enqueue_style('bootstrap',get_template_directory_uri(). '/css/bootstrap.min.css',array(),'3.3.6', 'all');\n wp_enqueue_style('customstyle',get_template_directory_uri(). '/css/white.css',array(),'1.0.0', 'all');\n\t//js\n\twp_enqueue_script('jquery');\n wp_enqueue_style('customjs',get_template_directory_uri().'/js/white.js',array(),'1.0.0',true);\n wp_enqueue_style('bootstrapjs',get_template_directory_uri().'/js/bootstrap.min.js',array(),'3.3.6',true);\n\n}", "title": "" }, { "docid": "8515e9730bcfe87dfb514aaf7ed7aaf9", "score": "0.6606181", "text": "function wosci_scripts_styles() {\n\tglobal $wp_styles;\n\n\t/*\n\t * Adds JavaScript to pages with the comment form to support\n\t * sites with threaded comments (when in use).\n\t */\n\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) )\n\t\twp_enqueue_script( 'comment-reply' );\n\n\t/*\n\t * Adds JavaScript for handling the navigation menu hide-and-show behavior.\n\t */\n\twp_enqueue_script( 'wosci-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '1.0', true );\n\n\t$font_url = wosci_get_font_url();\n\tif ( ! empty( $font_url ) )\n\t\twp_enqueue_style( 'wosci-fonts', esc_url_raw( $font_url ), array(), null );\n\n\t/*\n\t * Loads our main stylesheet.\n\t */\n\twp_enqueue_style( 'wosci-style', get_stylesheet_uri() );\n\n\t/*\n\t * Loads the Internet Explorer specific stylesheet.\n\t */\n\twp_enqueue_style( 'wosci-ie', get_template_directory_uri() . '/css/ie.css', array( 'wosci-style' ), '20121010' );\n\t$wp_styles->add_data( 'wosci-ie', 'conditional', 'lt IE 9' );\n}", "title": "" }, { "docid": "18bccbe5ca99816c3d3feae9e7e3f86b", "score": "0.66059875", "text": "public function ws_theme_enqueue_scripts_and_styles()\n\t{\n\t\t$manifest = json_decode(file_get_contents(get_template_directory() . '/package.json', true));\n\t\t$asset_version = $manifest->version;\n\t\twp_enqueue_style('ws-main-stylesheet', get_stylesheet_uri(), [], $asset_version);\n\n\t\twp_enqueue_script('ws-custom-js', get_template_directory_uri() . '/assets/dist/js/bundle.min.js', array('jquery'), $asset_version, true);\n\t\twp_localize_script(\n\t\t\t'ws-custom-js',\n\t\t\t'php_object',\n\t\t\t[\n\t\t\t\t'ajax_url' => admin_url('admin-ajax.php'),\n\t\t\t]\n\t\t);\n\n\t\tif (is_singular() && comments_open() && get_option('thread_comments')) {\n\t\t\twp_enqueue_script('comment-reply');\n\t\t}\n\t}", "title": "" }, { "docid": "6b789966addf2579ecbe355fff268842", "score": "0.6605495", "text": "function ssBlankThemeEnqueueScripts() {\n //-- main css\n wp_enqueue_style( 'ssbt-css-main', get_stylesheet_uri() );\n\n //-- bootstrap css\n wp_enqueue_style( 'ssbt-css-bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css', array(), 'v4.0.0', 'all' );\n\n //-- bootstrap js\n wp_enqueue_script( 'ssbt-js-bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array(), 'v4.0.0', true );\n }", "title": "" }, { "docid": "a8178bf3c630ce99fa90f4cd0067681c", "score": "0.6596133", "text": "function sme_script_enqueue() {\r\n\t// CSS\r\n\twp_enqueue_style('normalize', get_template_directory_uri().'/css/normalize.css', array(), '', 'all');\r\n\twp_enqueue_style('bootstrap', get_template_directory_uri().'/css/bootstrap.min.css', array(), '4.1.3', 'all');\r\n\twp_enqueue_style('customstyle', get_template_directory_uri().'/css/sme.css', array(), '1.0.0', 'all');\r\n\t// JS\r\n\twp_enqueue_script('jquery');\r\n\twp_enqueue_script('bootstrapjs', get_template_directory_uri().'/js/bootstrap.min.js', array(), '4.1.3', true);\r\n\twp_enqueue_script('customjs', get_template_directory_uri().'/js/kodadesign.js', array(), '1.0.0', true);\r\n}", "title": "" }, { "docid": "a3541778cc520cd2f8a7e94a37f0105d", "score": "0.65954834", "text": "function gp_load_style_scripts() {\n\t\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\t\twp_enqueue_script( 'comment-reply' );\n\t\t}\n\n\t wp_register_script('modernizr', get_template_directory_uri().'/js/modernizr-2.6.2.min.js','1.0', 'all');\n\t\twp_register_script('gumby', get_template_directory_uri().'/js/gumby.min.js','1.0', 'all', true);\n\n\t wp_enqueue_script( 'modernizr');\n\t wp_enqueue_script( 'jquery' );\n\t wp_enqueue_script( 'gumby' );\n\n\t\twp_register_style('gumby', get_template_directory_uri().'/css/gumby.css','1.0', 'all');\n\n\n\t wp_enqueue_style( 'gumby' );\n\t\twp_enqueue_style( 'style', get_stylesheet_uri() );\n\n\t}", "title": "" }, { "docid": "969e7a2e428a399eab96ef90643622bc", "score": "0.6589437", "text": "function sua_formatura_scripts()\n{\n // CSS\n wp_enqueue_style('all', get_theme_file_uri('/css/all.css'), array(), '1.6');\n wp_enqueue_style('font-awesome', get_theme_file_uri('/assets/font-awesome/css/font-awesome.min.css'), array(), '1.0');\n wp_enqueue_style('iconmoon', get_theme_file_uri('/assets/iconmoon/css/iconmoon.css'), array(), '1.0');\n wp_enqueue_style('app', get_theme_file_uri('/css/app.css'), array('all'), '1.8');\n wp_enqueue_style('custom', get_theme_file_uri('/css/custom.css'), array('app'), '1.8');\n // JS\n wp_enqueue_script('all', get_theme_file_uri('/js/all.js'), array('jquery'), '1.5', true);\n wp_enqueue_script('app', get_theme_file_uri('/js/app.js'), array('jquery'), '1.5', true);\n}", "title": "" }, { "docid": "20260d3a0868aadb780fe19b971b9e25", "score": "0.6588865", "text": "function addThemeScripts() \n {\n global $wp_version;\n wp_enqueue_script('thickbox');\n\n wp_enqueue_script('constructor-layout', CONSTRUCTOR_DIRECTORY_URI .'/admin/js/jquery.layout.js', array('jquery'));\n wp_enqueue_script('constructor-custom', CONSTRUCTOR_DIRECTORY_URI .'/admin/js/jquery-ui-custom.js', array('jquery'));\n// wp_enqueue_script('constructor-accordion', CONSTRUCTOR_DIRECTORY_URI .'/admin/js/jquery.ui.accordion.js', array('jquery','jquery-ui-core'));\n// wp_enqueue_script('constructor-widget', CONSTRUCTOR_DIRECTORY_URI .'/admin/js/jquery.ui.widget.js', array('jquery','jquery-ui-core'));\n// wp_enqueue_script('constructor-mouse', CONSTRUCTOR_DIRECTORY_URI .'/admin/js/jquery.ui.mouse.js', array('jquery','jquery-ui-core'));\n// wp_enqueue_script('constructor-slider', CONSTRUCTOR_DIRECTORY_URI .'/admin/js/jquery.ui.slider.js', array('jquery','jquery-ui-core'));\n wp_enqueue_script('constructor-colorpicker', CONSTRUCTOR_DIRECTORY_URI .'/admin/js/colorpicker.js', array('jquery'));\n wp_enqueue_script('constructor-settings', CONSTRUCTOR_DIRECTORY_URI .'/admin/js/settings.js', array('jquery'));\n wp_enqueue_script('constructor-messages', CONSTRUCTOR_DIRECTORY_URI .'/admin/js/messages.js', array('jquery'));\n wp_print_scripts();\n }", "title": "" }, { "docid": "c4dc6e80763d7b11cd5e2c2ef0015024", "score": "0.6569871", "text": "public function wp_enqueue_scripts() {\n\t\t$post = get_post();\n\t\tif ( is_singular() ) { \n\t\t\tif ( has_shortcode( $post->post_content, 'csanr_publications_browse' ) ) {\n\t\t\t\twp_enqueue_style( 'publication-browse-shortcode', plugins_url( 'css/publication-browse-shortcode.css', __FILE__ ) );\n\t\t\t}\n\t\t\tif ( has_shortcode( $post->post_content, 'csanr_publications' ) ) {\n\t\t\t\twp_enqueue_style( 'publications-shortcode', plugins_url( 'css/publications-shortcode.css', __FILE__ ) );\n\t\t\t}\n\t\t}\n\t\tif ( is_single() && $this->publications_post_type == get_post_type() ) {\n\t\t\twp_enqueue_style( 'publication', plugins_url( 'css/publication.css', __FILE__ ) );\n\t\t}\n\t\t$taxonomies = array( $this->publications_authors_taxonomy, $this->publications_programs_taxonomy, $this->publications_topics_taxonomy, $this->publications_keywords_taxonomy );\n\t\tif ( is_post_type_archive( $this->publications_post_type ) || is_tax( $taxonomies ) ) {\n\t\t\twp_enqueue_style( 'publications-archive', plugins_url( 'css/publications.css', __FILE__ ), array( 'spine-theme' ) );\n\t\t}\n\t}", "title": "" }, { "docid": "f8af8cabd1a49a2ff83f858804c68bc1", "score": "0.65649784", "text": "function premix_scripts() {\n\t\twp_enqueue_style( 'plugins', \tget_template_directory_uri() . '/css/plugins.css', array(), '1.0' );\n\t\twp_enqueue_style( 'style', \t\tget_template_directory_uri() . '/css/style.css', array(), '1.0' );\n\t\twp_enqueue_style( 'custom', \tget_template_directory_uri() . '/css/custom.css' );\n\t\twp_enqueue_style( 'premix-style', \tget_stylesheet_uri() , array('bootstrap', 'font-awesome'), '1.0');\n\n\n\t\twp_enqueue_script( 'premix-modernizr', get_template_directory_uri() . '/js/vendor/modernizr-2.8.3.min.js', array('jquery'), '2.8.3', false );\n\t\twp_enqueue_script( 'premix-plugin', \tget_template_directory_uri() . '/js/plugins.js', array('jquery'), '1.0', false );\n\t\twp_enqueue_script( 'premix-main', \tget_template_directory_uri() . '/js/main.js', array('jquery'), '1.0', false );\n\t\t\n\t\twp_enqueue_style( 'premix-style', get_stylesheet_uri() );\n\n\t\twp_enqueue_script( 'premix-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20151215', true );\n\n\t\twp_enqueue_script( 'premix-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151215', true );\n\n\t\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\t\twp_enqueue_script( 'comment-reply' );\n\t\t}\n\n\t\twp_add_inline_style('premix-style', apply_filters('premix_infile_css','') );\n\n\t}", "title": "" }, { "docid": "257ca4fedbbd43a83e10c46dc12b6e88", "score": "0.65621275", "text": "public function enqueue_editor_assets() {\n\t\tif ( THEMEISLE_GUTENBERG_ANIMATION_DEV ) {\n\t\t\t$version = time();\n\t\t} else {\n\t\t\t$version = THEMEISLE_GUTENBERG_ANIMATION_DEV;\n\t\t}\n\n\t\twp_enqueue_script(\n\t\t\t'themeisle-gutenberg-animation',\n\t\t\tplugin_dir_url( $this->get_dir() ) . $this->slug . '/build/build.js',\n\t\t\tarray( 'wp-i18n', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-editor', 'wp-element', 'wp-hooks' ),\n\t\t\t$version\n\t\t);\n\n\t\twp_set_script_translations( 'themeisle-gutenberg-animation', 'textdomain' );\n\t}", "title": "" }, { "docid": "7f1b82824536b18aca70045328b70a67", "score": "0.65606487", "text": "public function vca_asm_frontend_enqueue() {\n\t\tglobal $vca_asm_activities;\n\n\t\twp_register_script( 'isotope-metafizzy', VCA_ASM_RELPATH . 'js/jquery.isotope.min.js', array( 'jquery' ), '2013.11.6.1', true );\n\t\twp_register_script( 'jquery-scrollTo', VCA_ASM_RELPATH . 'js/jquery.scrollTo.min.js', array( 'jquery' ), '2013.11.6.1', true );\n\t\twp_register_script( 'vca-asm-activities', VCA_ASM_RELPATH . 'js/vca-asm-activities.js', array( 'jquery', 'isotope-metafizzy' ), '2013.11.15.7', true );\n\t\twp_register_script( 'vca-asm-profile', VCA_ASM_RELPATH . 'js/profile.js', array( 'jquery' ), '2013.11.6.1', true );\n\t\twp_register_script( 'vca-asm-strength-meter-init', VCA_ASM_RELPATH . 'js/strength-meter-init.js', array( 'jquery' ), '2013.11.6.1', true );\n\n\t\twp_enqueue_script( 'vca-asm-profile' );\n\n\t\twp_register_style( 'vca-asm-activities-style', VCA_ASM_RELPATH . 'css/activities.css', false, '2014.11.1.2' );\n\t\twp_register_style( 'vca-asm-isotope-style', VCA_ASM_RELPATH . 'css/isotope.css', false, '2013.11.6.3' );\n\n\t\tif ( is_singular( $vca_asm_activities->activity_types ) ) {\n\t\t\twp_enqueue_style( 'vca-asm-activities-style' );\n\t\t}\n\t}", "title": "" }, { "docid": "502e62edc2b0028bb5d68cea03f3016d", "score": "0.65579426", "text": "function wppp_frontend_scripts() {\n\n\tif ( WPPP_Settings::get_instance()->is_default_styles_enabled() )\n\t\twp_enqueue_style( 'wppp-default-styles', WPPP_URL . '/assets/front-end.styles.css', array(), WPPP_VERSION );\n\n\tif ( WPPP_Settings::get_instance()->is_default_scripts_enabled() )\n\t\twp_enqueue_script( 'wppp-default-scripts', WPPP_URL . '/assets/front-end.scripts.js', array( 'jquery' ), WPPP_VERSION );\n}", "title": "" } ]
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "9901a816a89a0da059211d01758d103d", "score": "0.0", "text": "public function update(Request $request, Home $home)\n {\n //\n }", "title": "" } ]
[ { "docid": "b253a586f54d8fcd444353d114e8da96", "score": "0.7603298", "text": "public function update(IResource $resource)\r\n {\r\n }", "title": "" }, { "docid": "1e58026b8952df10026ace5fc59fe274", "score": "0.7424714", "text": "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 ]\n ]);\n }", "title": "" }, { "docid": "08694713de71165eda639b86061c2dd3", "score": "0.70635", "text": "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "title": "" }, { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.7058482", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "718f7d64347dbb970d3af2645ff41b28", "score": "0.6622888", "text": "public function update(Request $request, Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "c36ab864eb8fe4e400b9bf654b24e104", "score": "0.6336904", "text": "public function updateStream($path, $resource, array $config = []);", "title": "" }, { "docid": "1833fc434e2b6d8845470c7071f16b05", "score": "0.62108016", "text": "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "title": "" }, { "docid": "713301f4bdde89af420365911069870f", "score": "0.6199262", "text": "public function update(ResourceTypeInterface $resourceType)\n\t{\n\t\t$this->setObjectToCache($resourceType);\n\t\t$this->setObjectToCache($resourceType, 'identifier');\n\t\t$this->objectManager->persist($resourceType);\n\t}", "title": "" }, { "docid": "0926078283b626a7cbcf1c37921b4293", "score": "0.61245036", "text": "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "title": "" }, { "docid": "78d3c773d3a549209d09486c7233c7b5", "score": "0.6088965", "text": "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "title": "" }, { "docid": "f6f8def0ac709abf6dd95f0dfa35d868", "score": "0.6055291", "text": "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "title": "" }, { "docid": "5334ba4a6880a32048930c6aab0c2e72", "score": "0.6020192", "text": "public function update($path);", "title": "" }, { "docid": "9ce64536e4f158c8d6da887e4483a653", "score": "0.5976241", "text": "public function updateResource($resource, $resource_id, $resource_data)\n {\n $this->addCallData('resource', $resource);\n $this->addCallData('URL', 'admin/' . $resource);\n $this->addCallData('METHOD', 'PUT');\n foreach ($resource_data as $property => $data) {\n $this->buildChildData($property, $data);\n }\n $this->commitChildData();\n return $this->updateRecord($resource_id);\n }", "title": "" }, { "docid": "9f880585b8f772551748224960e1114a", "score": "0.5974869", "text": "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "title": "" }, { "docid": "8bf08d6952a759b61a0c0f2a1c1e4e68", "score": "0.5940399", "text": "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "title": "" }, { "docid": "eaee54943a52f02e9d836bade5ff0c75", "score": "0.5940387", "text": "public function updateStream($path, $resource, Config $config)\n {\n }", "title": "" }, { "docid": "48a6e00b66b63cd7ac857215e12bb74f", "score": "0.58987194", "text": "public function update_($resource, ...$id) {\n\t\t$this->_checkResource ( $resource, function () use ($id) {\n\t\t\tif (! $this->hasErrors ()) {\n\t\t\t\tparent::_update ( ...$id );\n\t\t\t} else {\n\t\t\t\techo $this->displayErrors ();\n\t\t\t}\n\t\t} );\n\t}", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5893692", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "3ec460d4bbd98e23f7e38b492a7d650e", "score": "0.5861878", "text": "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "title": "" }, { "docid": "d7478480534fcc66d2484d02792ff42b", "score": "0.5833519", "text": "public function softwareUpdate(SoftwareRequest $request, $id)\n {\n $software=Software::find($id);\n /* dd($software); */\n $input= $request->all();\n $input['slug']=Str::slug($request->title);\n if($request->hasFile('image')) {\n if($request->image==$software->image){\n $input['image']=$software->image;\n }else{\n $fileName=$request->file('image')->store('photos','public');\n\n $input['image'] =$fileName;\n \n @unlink('storage/'.$software->image);\n }\n\n \n\n } else {\n\n $input['image']=$software->image;\n\n }\n $software->update([\n 'title'=>$request->title,\n 'content'=>$request->content,\n 'image'=>$input['image'],\n 'slug'=>$input['slug'],\n ]);\n /* dd($software); */\n\n return new SoftwareResource($software);\n }", "title": "" }, { "docid": "9c026a6af96c287558697ce10089af64", "score": "0.5832908", "text": "public function put($resourceId)\n {\n $resourceId = intval($resourceId);\n if (!array_key_exists(\n $resourceId,\n $this->repositoryIndex\n )) {\n header('Not Found', true, 404);\n exit();\n }\n\n $key = $this->repositoryIndex[$resourceId];\n $this->repository[$key] = $this->requestBody;\n\n echo json_encode($this->repository[$key]);\n }", "title": "" }, { "docid": "4bc6a6b46ecee85bd6f0b6a0548271b3", "score": "0.5831529", "text": "public function update(Request $request, $resource, $id)\n {\n return $this->repository->update($id, $request->all());\n }", "title": "" }, { "docid": "0c03c39e441c2fe392d76d6370ae3ce2", "score": "0.580588", "text": "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "title": "" }, { "docid": "95a0aa456b419b2ce1456ae7f9c023ec", "score": "0.5793507", "text": "public function updateRecord($id)\n {\n // Check if the record exists\n $resource = $this->shopifyData['resource'];\n $resource_singular = $this->shopifyData['SINGULAR_NAME'];\n $compare_property_value = $id;\n\n $tempShopifyData = $this->shopifyData;\n $tempShopifyData['METHOD'] = 'GET';\n switch ($this->shopifyData['resource']) {\n case 'collects':\n case 'variants':\n $compare_property_name = 'id';\n $tempShopifyData['URL'] = 'admin/' . $resource . '/' . $id . '.json';\n break;\n case 'metafields':\n // metafields requires a resource id and metafield id, therefore, we're setting the URL from where it's being called\n $tempShopifyData['URL'] = $tempShopifyData['URL'];\n break;\n case 'inventory_levels':\n $compare_property_name = 'inventory_item_ids';\n $tempShopifyData['URL'] .= '?' . $compare_property_name . '=' . urlencode($compare_property_value);\n break;\n default:\n $compare_property_name = 'ids';\n $tempShopifyData['URL'] .= '?' . $compare_property_name . '=' . urlencode($compare_property_value);\n }\n \n $result = $this->call($tempShopifyData);\n if ((isset($result->$resource) && count($result->$resource) == 1) || property_exists($result, $resource_singular)) {\n // update the record\n $resource = $this->shopifyData['resource'];\n $currentShopifyData = $this->shopifyData;\n $currentShopifyData['METHOD'] = 'PUT';\n\n switch ($resource) {\n case 'smart_collections':\n // if smart_collections, determine whether to use order.json or #id.json\n if (isset($currentShopifyData['DATA']) && array_has($currentShopifyData['DATA'], 'products')) {\n $currentShopifyData['URL'] = str_replace(\".json\", '/' . $id . '/order.json', $currentShopifyData['URL']);\n }\n break;\n case 'inventory_levels':\n $currentShopifyData['URL'] = str_replace(\".json\", '/set.json', $currentShopifyData['URL']);\n break;\n default:\n $currentShopifyData['URL'] = self::PREFIX . '/' . $resource . '/' . $id . '.json';\n }\n\n\n if (isset($currentShopifyData['DATA'])) {\n $result = $this->call($currentShopifyData, $currentShopifyData['DATA']);\n } else {\n $result = $this->call($currentShopifyData);\n }\n $this->resetData();\n return $result;\n }\n }", "title": "" }, { "docid": "9aebab206cbd3cb1ae7fc60ffdd5c17a", "score": "0.5756501", "text": "public function updateSingle($request, $response, $args){\n\t\t$response = $this->gateway($this->getNeededCap(__FUNCTION__), $response);\n\t\tif ( $response->getStatusCode() != 200 ){\n\t \t\treturn $response;\n\t \t}\n\t\t//TODO check data type & id against resource > via middleware, serve 409 error on mismatch\n\t \t$resource_model_class = $this->resource_model_class;\n\t \t$resource_slug = $resource_model_class::getResourceSlug();\n \t\t$resource = $args[$resource_slug];\n\t\t$input = $request->getParsedBody()['data'];\n \t\t$return = $this->validateAndSave($resource,$input);\n \t\treturn $response->withJsonAPI($return['to_json'],$return['code']);\n\t}", "title": "" }, { "docid": "3b6c3aaa23b4fb918ebc093545c13dc6", "score": "0.5754183", "text": "public function update($entity);", "title": "" }, { "docid": "7fa7323735ca22c15cfa4866e023dcb7", "score": "0.573585", "text": "public function setResource($resource);", "title": "" }, { "docid": "cd5df57c2c83d7637ab39eb4c24ca282", "score": "0.5719882", "text": "public function update(Request $request, $id)\n {\n $product = Product::findOrFail($id);\n $this->validate($request, [\n 'category_id' => 'required',\n 'unit_id' => 'required',\n 'name' => [\n 'required',\n Rule::unique('products')->ignore($product->id),\n ],\n 'purchase_price' => 'required',\n 'sell_price' => 'required',\n 'quantity' => 'required',\n ]);\n\n $product->category_id = $request->category_id;\n $product->unit_id = $request->unit_id;\n $product->name = $request->name;\n $product->sku = Helpers::getSKUProduct($request->name, $request->id);\n $product->barcode = Helpers::getBarcodeProduct($request->name);\n $product->description = $request->description;\n //TODO: update image in storage path\n $product->image = $request->image;\n $product->quantity = $request->quantity;\n $product->quantity_alert = $request->quantity_alert;\n $product->cost_price = Helpers::calculateCostPrice($product->purchase_price, $product->quantity, $request->purchase_price, $request->quantity);\n $product->purchase_price = $request->purchase_price;\n $product->sell_price = $request->sell_price;\n $product->status = $request->status;\n\n $product->update();\n\n return new ProductResource($product);\n }", "title": "" }, { "docid": "cbf8435986892ace3d4dbcfbf62f6804", "score": "0.57152486", "text": "public function isUpdateResource();", "title": "" }, { "docid": "8759752add8b6db67fed4d69cb0208e8", "score": "0.568281", "text": "public function update()\n\t{\n\t\tparent::update();\n\t\t$this->write();\n\t}", "title": "" }, { "docid": "b867c63b8317ab70317f7b53e3441ded", "score": "0.5681209", "text": "public function update(ProductUpdateRequest $request, $id)\n {\n $product = Product::findOrFail($id);\n $product->update($request->all());\n return (new ProductResource($product->loadMissing('imageable')))-> response()->setStatusCode(200);\n }", "title": "" }, { "docid": "ea54f106887794c3110ad39c81f775dc", "score": "0.5676903", "text": "public function update($record, ResourceObjectInterface $resource, EncodingParametersInterface $params);", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5676235", "text": "public function update($data);", "title": "" }, { "docid": "8a46c9ac29aec2f0c66f61cd6abd3e2a", "score": "0.56704843", "text": "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "title": "" }, { "docid": "6aaf7100103df61dd639ff4267dc6860", "score": "0.5659974", "text": "public function update ($resource = false, $key = false) {\n\t\t$resource = ($resource) ? $resource : $this->resource;\n\t\t$key = ($key) ? $key : $this->key;\n\n\t\tif (DB::execute (\n\t\t\t'update `#prefix#lock` set modified = ?, expires = ? where resource = ? and resource_id = ?',\n\t\t\tgmdate ('Y-m-d H:i:s'),\n\t\t\tgmdate ('Y-m-d H:i:s', time () + $this->timeout),\n\t\t\t$resource,\n\t\t\t$key\n\t\t)) {\n\t\t\treturn true;\n\t\t}\n\t\t$this->error = DB::error ();\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8061c9b36c6d17c20d2017115145496d", "score": "0.5640494", "text": "public function update(Request $request, $id)\n {\n try {\n DB::beginTransaction();\n\n $product = Product::find($id);\n\n $data = $request->except('img');\n\n if ($request->hasFile('img')) {\n if ($product->img && file_exists(storage_path('app/public/'.$product->img))) {\n Storage::delete('public/'.$product->img);\n }\n\n $img_path = $request->file('img')->store('products/img', 'public');\n $data['img'] = $img_path;\n $data['img_url'] = url('/storage/'.$img_path);\n }\n\n if (!$data['is_discount']) {\n $data['after_discount'] = null;\n }\n\n $product = $product->fill($data);\n $product->save();\n\n DB::commit();\n\n return redirect()->route('product.index')->with('success', 'Successfully updated product !');\n\n } catch (\\Exception $error) {\n DB::rollBack();\n return $error->getMessage();\n }\n }", "title": "" }, { "docid": "bbd99fadb318f4a784afaa2bfa18ce90", "score": "0.56302124", "text": "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "title": "" }, { "docid": "8eb8ff4a40a42fb82a98ac5091c3a8b4", "score": "0.56226414", "text": "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "title": "" }, { "docid": "b7bac3ceb1b9b8584ebd61b08fa09788", "score": "0.5607913", "text": "public function putAction()\n {\n /** XXX **/\n\n $this->view->message = sprintf('Resource #%s Updated', $id);\n $this->_response->ok();\n }", "title": "" }, { "docid": "861587caf58c3f620dbafce99fe22615", "score": "0.5604896", "text": "public function update($id, $request);", "title": "" }, { "docid": "f646252110cf32a5b2f73f7d1462f12e", "score": "0.56038505", "text": "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "title": "" }, { "docid": "87604b965f2923e2345b489944eb16ab", "score": "0.55845344", "text": "public function update(IEntity $entity);", "title": "" }, { "docid": "b1223c0e87edc0874663308fb5757224", "score": "0.55769825", "text": "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.5568501", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.5568501", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.5568501", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "c596fddf408b359acc12fe17624de997", "score": "0.5564084", "text": "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.5562276", "text": "public function update($id, $data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.5562276", "text": "public function update($id, $data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.5562276", "text": "public function update($id, $data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.5562276", "text": "public function update($id, $data);", "title": "" }, { "docid": "910ec5bfd0a0132f45d218d96931bc8b", "score": "0.5561243", "text": "public function update(Request $request, $id)\n {\n\n $request->validate([\n 'resource_name' => 'required',\n 'about_content' => 'required',\n 'sort_order' => 'required|numeric'\n ]);\n\n $form_data = array(\n 'resource_name' => $request->resource_name,\n 'slug' => $this->slugify($request->resource_name),\n 'about_content' => $request->about_content,\n 'sort_order' => $request->sort_order\n );\n\n Resource::whereId($id)->update($form_data);\n\n return redirect('resource')->with('success', 'Data is successfully updated');\n }", "title": "" }, { "docid": "b3d8abec86ebbd8bf61bddeb5110ba38", "score": "0.5560055", "text": "abstract public function put($data);", "title": "" }, { "docid": "ffe74e555ccf4883e40a207b843213c6", "score": "0.5557402", "text": "public function update($id, EditResourceImageRequest $request)\n {\n $resourcecenterImage = ResourceCenterImage::findOrFail($id);\n $this->setUpdatedModelValues($request, $resourcecenterImage);\n // if file, we have additional requirements before saving\n if ($this->newFileIsUploaded()) {\n $this->deleteExistingImages($resourcecenterImage);\n $this->setNewFileExtension($request, $resourcecenterImage);\n }\n\n $resourcecenterImage->update([\n 'book_name' => $request->input('book_name'),\n 'category_name' => $request->input('category_name')\n ]); \n\n $resourcecenterImage->save();\n// check for file, if new file, overwrite existing file\n if ($this->newFileIsUploaded()){\n $file = $this->getUploadedFile();\n $this->saveImageFiles($file, $resourcecenterImage);\n }\n $thumbnailPath = $this->thumbnailPath;\n $imagePath = $this->imagePath;\n alert()->success('Congrats!', 'image edited!');\n return view('resourcecenter-image.view', compact('resourcecenterImage',\n 'thumbnailPath',\n 'imagePath'));\n }", "title": "" }, { "docid": "90cec2e0050ecd5971be612c49157c4a", "score": "0.5556887", "text": "public function testUpdateSupplierUsingPUT()\n {\n }", "title": "" }, { "docid": "9c243572303715ea37744cfc162e1a3c", "score": "0.5555651", "text": "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "title": "" }, { "docid": "45212faae39cc84fb7d386bd5ccbacd2", "score": "0.55542725", "text": "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "title": "" }, { "docid": "9bd927a2b7c7b6455cfb1d5512fcad31", "score": "0.5545186", "text": "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "title": "" }, { "docid": "efa4460a1f0a94dc49a588c86ce1c95e", "score": "0.5540548", "text": "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "title": "" }, { "docid": "49f2830a1f4c7d89a0738cee238723c4", "score": "0.5537848", "text": "public function update(Request $request, $id)\n {\n $product = Product::findOrFail($id);\n if ($request->hasFile('photo')){\n if ($product->photo !== NULL){\n unlink(public_path($product->photo));\n }\n\n }\n $product->CategoryID = $request->CategoryID;\n $product->SKU = $request->SKU;\n $product->ProductName = $request->ProductName;\n $product->ProductDescription = $request->ProductDescription;\n $product->QTY = $request->QTY;\n $product->Price = $request->Price;\n $product->AvailSize = $request->AvailSize;\n $product->AvailColor = $request->AvailColor;\n $product->Size = $request->Size;\n $product->Color = $request->Color;\n $product->photo = $request->photo;\n\n $product['photo'] = '/upload/photo/'.time().'.'.$request->photo->getClientOriginalExtension();\n $request->photo->move(public_path('/upload/photo/'), $product['photo']);\n\n $product->save();\n\n return response()->json([\n 'success' => true,\n 'message' => 'Product Updated' ]);\n }", "title": "" }, { "docid": "6747a7ea594ba3a1e21cae4d1cb18d9f", "score": "0.5537238", "text": "public function update (Request $request, $id)\n {\n $request_data = $request->all();\n\n // only validate attributes provided (ignore missing)\n $validation_rules = array_keys($request_data['data']['attributes']);\n $request_data_validation = $this->validateRequestResourceObject($request_data['data'], $this->model, $id, true, $validation_rules);\n\n // respond with error\n if (!empty($request_data_validation['errors'])) {\n return Response::make([ 'errors' => $request_data_validation['errors'] ], $request_data_validation['error_code']);\n }\n\n // fetch resource\n $resource = $this->model->findOrFail($id);\n\n // ACL\n if (!is_null(config('jsonapi.acl.check_access')) && config('jsonapi.acl.check_access') !== false) {\n $errors = JsonApiAclUtils::accessCheck($request->route()->getName(), Auth::user(), $resource);\n if (!empty($errors)) {\n return Response::make([ 'errors' => $errors ], 403);\n }\n }\n\n // update resource\n $resource->fill($request_data['data']['attributes']);\n $resource->save();\n\n // return updated resource\n return Response::item($request, $resource->toArray(), $this->model, 200);\n }", "title": "" }, { "docid": "c4d2a2fa9101020663f7a49d7cc6ddac", "score": "0.55360836", "text": "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "title": "" }, { "docid": "6e9e95959e33006f578a3965f633d7d6", "score": "0.55359083", "text": "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "title": "" }, { "docid": "6c30ee958f97e8028b342b7519dfbdae", "score": "0.5526088", "text": "public function testUpdateInventoryStorageActivity()\n {\n }", "title": "" }, { "docid": "294674761e7a90c0f3c7b7cbb244ad5a", "score": "0.55250585", "text": "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "title": "" }, { "docid": "265c7e4e1d9ccb8f2d919846c5c6d0e1", "score": "0.55101085", "text": "public function update($id, $input);", "title": "" }, { "docid": "f83dd36256d02e1f966e7e748f03289a", "score": "0.5510089", "text": "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "title": "" }, { "docid": "0dc3227cc620ff2bfcf02b42a09128f6", "score": "0.5507262", "text": "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "title": "" }, { "docid": "98955a07074c5f9d7b65cb4edac55bd6", "score": "0.5500848", "text": "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.5497986", "text": "public function update($id);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.5497986", "text": "public function update($id);", "title": "" }, { "docid": "2a1018c32a03eb53bdc4e273d245eb4b", "score": "0.5496668", "text": "function updateProduct() {\n\n $params = [\n 'name' => $this->product\n ];\n \n $response = getResponse(getConfigVar(\"api_url\"), \"products\", $params, [],'body');\n \n $this->qty = $response[\"results\"][0][\"qty\"];\n $this->price = $response[\"results\"][0][\"price\"];\n \n $product = get_page_by_title( $this->product, OBJECT, 'product' );\n \n $productID = $product->ID;\n \n update_post_meta( $productID, \"_stock\", $this->qty );\n update_post_meta( $productID, \"_price\", $this->price );\n }", "title": "" }, { "docid": "a3080528f24f5a6310506fe05f776170", "score": "0.5495836", "text": "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "title": "" }, { "docid": "04652c1da37c7a438475c8d281a1b9fb", "score": "0.54956913", "text": "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "title": "" }, { "docid": "807c599f788606e6432d3e0633f87027", "score": "0.5495411", "text": "public function update(Request $request,$id)\n {\n $product = Product::find($id);\n if ($request->updateimage) {\n $position = strpos($request->updateimage, ';');\n $sub=substr($request->updateimage, 0 ,$position);\n $ext=explode('/', $sub)[1];\n $name=time().\".\".$ext;\n $img=Image::make($request->updateimage)->resize(240,200);\n $upload_path='product/';\n $image_url=$upload_path.$name;\n $img->save($image_url);\n $product->image = $image_url;\n }\n $product->title = $request->title;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n return response()->json($product);\n\n }", "title": "" }, { "docid": "48fef9aa4b1db49fbd41de594ae52cd6", "score": "0.5494868", "text": "public function put($path, $data = null);", "title": "" }, { "docid": "9ecc82591ba06b6a36749ed98ac6605d", "score": "0.5494812", "text": "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "title": "" }, { "docid": "7b02b905255b0a4884cf4da903ed88b2", "score": "0.54943573", "text": "public function update(Request $request, $id)\n {\n $product = Product::where('id', $id);\n\n if ($request->file('image')) {\n File::delete(public_path('images/' . $product->first()->image));\n $file = $request->file('image');\n $file_name = uniqid() . $file->getClientOriginalName();\n $file->move(public_path('/images'), $file_name);\n } else {\n $file_name = $product->first()->image;\n }\n\n $product->update([\n 'category_id' => $request->category_id,\n 'title' => $request->title,\n 'image' => $file_name,\n 'total_quantity' => $request->total_quantity,\n 'price' => $request->price,\n 'description' => $request->description,\n ]);\n\n $product = Product::find($product->first()->id);\n $product->color()->sync($request->color_id);\n $product->size()->sync($request->size_id);\n return redirect()->back()->with('success', 'updated success');\n }", "title": "" }, { "docid": "d93eb8ea18e437ad56170f6f49f20674", "score": "0.5493479", "text": "public function update(Entity $entity);", "title": "" }, { "docid": "bc41011f4e9854a51487a136c85c2353", "score": "0.5486055", "text": "public function updateEntity($entity = null);", "title": "" }, { "docid": "2e6523045766c061920aeea9222af1fe", "score": "0.548556", "text": "public function edit(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "73aed3f2cb201636304e3d5dda73a09e", "score": "0.5485112", "text": "public function markAsChanged(ResolvedResource $resource);", "title": "" }, { "docid": "2a7096bf2a727a86ecc99d0ede5d263f", "score": "0.5484617", "text": "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "title": "" }, { "docid": "61329b7ef8ead3531f1a05acebdc3cd5", "score": "0.54805785", "text": "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "title": "" }, { "docid": "d6605be9a7cd37fa11f95b43e9749bd9", "score": "0.54665846", "text": "public function update($path, $time = null);", "title": "" }, { "docid": "5b72ae8e940480dd3b49bab90e39b090", "score": "0.54580057", "text": "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }", "title": "" }, { "docid": "0464e78c66c09f2b7a0600a8792cb854", "score": "0.54538196", "text": "public function update(Request $request, $id)\n {\n $validation = $request->validate([\n 'name' => 'required',\n 'email' => 'required',\n 'phone' => 'required',\n 'address' => 'required',\n 'city' => 'required',\n 'state' => 'required',\n 'country' => 'required',\n 'shop_name' => 'required',\n 'photo' => 'required'\n ]);\n\n $supplier = Supplier::find($id);\n $supplier->name = $request->name;\n $supplier->email = $request->email;\n $supplier->phone = $request->phone;\n $supplier->address = $request->address;\n $supplier->city = $request->city;\n $supplier->state = $request->state;\n $supplier->country = $request->country;\n $supplier->shop_name = $request->shop_name;\n $supplier->photo = $request->photo;\n $supplier->status = 1;\n\n $photo = $request->newphoto;\n $old_photo = $supplier->photo;\n if ($photo) {\n if ($old_photo) {\n unlink($old_photo);\n }\n $first_position = strpos($photo, ';');\n $second_position = substr($photo, 0, $first_position);\n $ext = explode('/', $second_position)[1];\n $photo_name = Str::random(20).time().'.'.$ext;\n Image::make($photo)->resize(500, 400)->save(public_path('uploads/suppliers/' . $photo_name));\n $supplier->photo = 'uploads/suppliers/'.$photo_name;\n }\n $supplier->save();\n }", "title": "" }, { "docid": "db96875d174f9e13964b6e7754664378", "score": "0.5453324", "text": "public function update(Request $request, $id)\n {\n $slider = Slider::find($id);\n\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $filename = time() . '.' . $image->getClientOriginalExtension();\n $location = public_path('assets/img/slider/' . $filename);\n Image::make($image)->resize(1920, 1080)->save($location);\n $oldFilename = $slider->image;\n $slider->image = $filename;\n Storage::delete($oldFilename);\n }\n $slider->save();\n Session::flash('success', 'The slider was successfully updated!');\n return redirect()->route('admin.slider');\n }", "title": "" }, { "docid": "247e5b3a01495ebf8d4c534d42ea515f", "score": "0.5451975", "text": "public function update(Request $request,$id){\n\n //validation\n $validator = Validator::make($request->all(), [\n 'name'=>'required|max:120',\n 'price'=>'required|numeric',\n 'discount'=>'required|numeric',\n 'description'=>'required',\n 'photo'=>'image',\n ]);\n if ($validator->fails()) {\n return redirect()->back()\n ->withErrors($validator)\n ->withInput(); \n\n } \n\n $inputs=[\n 'name'=>$request->input('name'),\n 'price'=>$request->input('price'),\n 'discount'=>$request->input('discount'),\n 'description'=>$request->input('description'),\n\n ];\n\n $product=Product::find($id);\n $product->update($inputs);\n if(!empty($request->file('photo'))){\n if(file_exists('uploads/products/'.$product->photo)){\n unlink('uploads/products/'.$product->photo);\n\n }\n \n //rename picture name\n $newName='product_'.time().'.'.$request->file('photo')->getClientOriginalExtension();\n //submit picture\n $request->file('photo')->move('uploads/products',$newName);\n $product->update(['photo'=>$newName]);\n }\n return redirect()->route('admin.product');\n\n }", "title": "" }, { "docid": "7866059d59e3ac76fe1a71f510712109", "score": "0.54499257", "text": "public function putStream($path, $resource, array $config = []);", "title": "" }, { "docid": "26fc5abe042df3b46cf35fa63b5ce2f0", "score": "0.5449095", "text": "public function update(Request $request, $id)\n {\n // Update the resource with the addressed ID\n $subcategory = Subcategory::where('id', $request['subcategory_id'])->first();\n $subcategory_uuid = DB::table('product_subcategory')->where('product_id', $id)->value('uuid');\n $subcategory_id = DB::table('product_subcategory')->where('product_id', $id)->value('id');\n $unit = Unit::where('id', $request['unit_id'])->first();\n $unit_uuid = DB::table('product_unit')->where('product_id', $id)->value('uuid');\n $unit_id = DB::table('product_unit')->where('product_id', $id)->value('id');\n\n $product = Product::find($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->description = $request['description'];\n $product->updated_by = Config::get('apiuser');\n $product->subcategories()->sync($subcategory->id);\n $product->subcategories()->updateExistingPivot($subcategory->id, array('uuid' => $subcategory_uuid, 'id' => $subcategory_id));\n $product->units()->sync($unit->id);\n $product->units()->updateExistingPivot($unit->id, array('uuid' => $unit_uuid, 'id' => $unit_id));\n $product->save();\n return response()->json([\n 'action' => 'update',\n 'status' => 'OK',\n 'entity' => $product->uuid,\n 'type' => 'product',\n 'user' => Config::get('apiuser')\n ], 200);\n }", "title": "" }, { "docid": "b482822e086a7ebee09ff81c09e4225d", "score": "0.54443336", "text": "public function update(Request $request, $id)\n {\n \\Validator::make($request->all(), [\n 'nama_product' => 'required', 'string', 'max:255', 'min:2',\n 'deskripsi' => 'required', 'string', 'max:255', 'min:8',\n 'stok' => 'required', 'max:1000',\n 'images' => 'file|image|mimes:jpeg,png,jpg',\n 'price' => 'required', 'max:20',\n ])->validate();\n \n $edit_product = Product::findOrFail($id);\n $edit_product->nama_product = $request->get('nama_product');\n $edit_product->deskripsi = $request->get('deskripsi');\n $edit_product->stok = $request->get('stok');\n if($request->file('images')){\n if($edit_product->images && file_exists(storage_path('app/public/' . $edit_product->images))){\n Storage::delete('public/'.$edit_product->images);\n $file = $request->file('images')->store('product_images', 'public');\n $edit_product->images = $file;\n }else{\n if($request->file('images')){\n $file = $request->file('images')->store('product_images', 'public');\n $edit_product->images = $file;\n }\n }\n }\n $edit_product->price = $request->get('price');\n \n if($request->get('status')){\n $edit_product->status = $request->get('status');\n }else{\n $edit_product->status = \"publish\";\n }\n\n \\Auth::user()->productId()->save($edit_product);\n\n return redirect()->route('manage-product.index')->with('status', 'Update Product Success!!');\n }", "title": "" }, { "docid": "fb30184e0b309716563a37352db2582d", "score": "0.54377544", "text": "public function put($data)\n {\n }", "title": "" }, { "docid": "90bfecb108e2227ad224fef4f176d822", "score": "0.54307973", "text": "public function update(ProductRequest $r, $id)\n {\n $r->validate([\n 'picture' => ['mimes:jpg,png,jpeg'], \n ]);\n\n $oldProduct = Product::findOrFail($id);\n\n if($r->hasFile('picture')) {\n \\Storage::disk('public')->delete('images/products/' . $oldProduct->picture);\n $file = $r->file('picture');\n $extension = $file->extension();\n $imgName = \\Str::slug($r->product_name) . '-' . time() . '.' . $extension;\n $file->storeAs('/images/products/', $imgName, 'public');\n } else {\n $imgName = $oldProduct->picture;\n }\n\n $oldProduct->update([\n 'product_name' => $r->product_name,\n 'picture' => $imgName,\n 'price' => $r->price,\n 'description' => $r->description,\n 'status' => $r->status,\n ]);\n\n return redirect()->route('admin.products.index')->with('success', 'Product Updated Successfully.');\n }", "title": "" }, { "docid": "e46fca820619683596020187e9c6b3b8", "score": "0.5428267", "text": "public function updateImg(Request $request,$id)\n {\n $image = $request->file('image');\n $old_image = $request->get('old_image');\n\n $img_name =\"p_\".time().'.'.$image->getClientOriginalExtension();\n $path = $request->image->storeAs('products',$img_name,'public');\n\n $product = Product::find($id);\n $product->image = $path;\n $product->save();\n\n // return $image->getClientOriginalName();\n $exists = Storage::disk('public')->exists($old_image);\n if ($exists) {\n Storage::disk('public')->delete($old_image);\n } \n return $path;\n \n }", "title": "" }, { "docid": "90e900559eee2b9d3f91997a4f2fc922", "score": "0.5425519", "text": "public function update(StoreUpdateProductRequest $request, $id)\n {\n if(!$product = Product::find($id))\n return redirect()->back();\n\n $data = $request->all();\n\n if ($request->hasFile('image') && $request->image->isValid()) {\n\n if ($product->image && Storage::exists($product->image)){\n Storage::delete($product->image);\n }\n\n $imagePath = $request->image->store('products');\n $data['image'] = $imagePath;\n }\n \n $product->update($data);\n \n return redirect()->route('products.index')->with( 'message', 'Produto Editado'); \n }", "title": "" }, { "docid": "2fa0754ebc118bc9b4b721eefefed641", "score": "0.5423651", "text": "public function update(StoreEditPartenaire $request, $id)\n {\n $partenaire = Partenaire::find($id);\n $partenaire->name = $request->name;\n $partenaire->url = $request->url;\n if($request->image != null){\n $partenaire->image = $request->image->store('','imgPartenaire');\n }\n $partenaire->save();\n return redirect()->route('partenaires.index',['partenaire'=> $partenaire->id]);\n \n }", "title": "" }, { "docid": "4d95f134a6e85e43f3f6f5bbc5cc2d52", "score": "0.54214805", "text": "public function update(Request $request, $id)\n {\n $nombre = $request->input('nombre');\n $imagen = $request->file('imagen');\n $descripcion = $request->input('descripcion');\n\n $ruta = \"-\";\n if($imagen){\n $ruta = $imagen->store('public'); \n $ruta = str_replace('public','storage',$ruta);\n }\n\n $categoria = Categoria::findOrFail($id);\n\n if($ruta!==\"-\"){\n $img = str_replace(\"storage/\", \"public/\", $categoria->imagen);\n $img = \"storage/\".$img;\n Storage::delete(asset('/storage/9yBlOG6KxNwaRoIrAKNpbBRr16q5PQyohbflIDcp.png'));\n }else{\n $ruta = $categoria->imagen;\n }\n\n $categoria->nombre = $nombre;\n $categoria->descripcion = $descripcion;\n $categoria->imagen = $ruta;\n $categoria->update();\n\n return redirect()->route('categoria.index');\n }", "title": "" }, { "docid": "a28ba9c40e06592529f38d6d19b89b16", "score": "0.5416986", "text": "public function update($id) {\n \n }", "title": "" }, { "docid": "67efbd9de14b40fa42d329e7897936e4", "score": "0.5415358", "text": "public function updatePreview()\n\t{\n\t\t // delete all files stored in the cache with the id of $this->id.'*.*';\n\t\t$fileHelper = new CFileHelper();\n\t\t$ff = $fileHelper->findFiles(Yii::app()->imageCache->imagePath('thumb'));\n\t\t$len = strlen($this->id);\n\t\t$info = new FileInformation();\n\t\tforeach ($ff as $f) {\n\t\t\t$info->path = $f;\n\t\t\tif (substr($info->filename, 0, $len) == $this->id){\n\t\t\t\tunlink($f);\n\t\t\t}\t\n\t\t}\t\n\t\t// let resource space do the work\n\t\t\n\t\t$s = Yii::app()->config->resourceSpaceApi.'api_import?id='.$this->id;\n\t\tif (Yii::app()->config->useCurl) {\n\t\t\tYii::log('Resource Space update through curl('.$s.')', CLogger::LEVEL_WARNING, 'application.models.Art.updatePreview');\t\t\t\n\t\t\t$run = Yii::app()->curl->run($s);\n\t\t} else {\t\t\t\n\t\t\tYii::log('Resource Space update through file_get_content('.$s.')', CLogger::LEVEL_WARNING, 'application.models.Art.updatePreview');\t\t\t\n\t\t\t$run = file_get_contents($s);\n\t\t}\t\n\t\tif ((is_object($run) && $run->hasErrors()) || (substr($run, 0, 33) != 'File added / updated for resource') ) {\n\t\t\tYii::log('Resource Space update failed.', CLogger::LEVEL_WARNING, 'application.models.Art.updatePreview');\t\t\t\n\t\t\t$this->addError('file', 'The resource space definition could not be updated.');\n\t\t} else {\n\t\t\tYii::log('Resource Space updated.', CLogger::LEVEL_INFO, 'application.models.Art.updatePreview');\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "e77df2eef2b14f6f8a9a8237b99d6e65", "score": "0.5412412", "text": "public function update($id)\n\t{\n\t\t$v = Validator::make(Input::all(), array('file|image'));\n\n\t\tif($v->fails()) return Redirect::back()->withErrors($v)->withInput();\n\n\t\t$p = Product::find($id)->update(Input::all());\n\n\t\tif(Input::hasFile('file')){\n\n\t\t\tInput::file('file')->move('uploads', 'product_'.$id.'.jpg');\n\n\t\t}\n\n\t\treturn Redirect::route('products.index')->with('alert.success', Alert::text('supp'));\n\t\t\n\t}", "title": "" } ]
516029356bb6b93d28993e197f6ae83f
Get department by name
[ { "docid": "f1442c003729fa99dbc51fd332a46feb", "score": "0.67391896", "text": "public function dept(Request $request, $deptName)\n {\n $department = $this->api->teamByName($deptName);\n $ids = collect($department->memberships)->pluck('id');\n $profiles = Profile::whereIn('api_id', $ids)\n ->with('user',\n 'user.organizations',\n 'user.organizations.organization',\n 'user.organizations.role')\n ->get();\n\n foreach ($profiles as $profile)\n foreach ($profile->user->organizations as $organization)\n if ($organization->organization->api_id == $department->id) {\n $person = &$department->memberships[$ids->search($profile->api_id)];\n $person->position = $organization->title;\n $person->role = $organization->role;\n }\n\n return response()->json($department);\n }", "title": "" } ]
[ { "docid": "79cc3149f4a1b377c73054dbde20d57c", "score": "0.72757906", "text": "function get_department(int $id) : string\n\t{\n\t\t$CI =& get_instance();\n\t\t$CI->db->select('name');\n\t\t$CI->db->from('departements');\n\t\t$CI->db->where('id', $id);\n\t\treturn $CI->db->get()->row()->name;\n\t}", "title": "" }, { "docid": "f1a73a4a0c76387ba476557c2c647959", "score": "0.70136195", "text": "public function getOneDepartment($id)\n {\n $query = 'SELECT * FROM ' . $this->tableName . ' WHERE `id`=' .$id;\n return $this->getOne($query);\n }", "title": "" }, { "docid": "6e4b3ffc66495fb5f7f30d1056acb8ec", "score": "0.6991636", "text": "private function getSingleDepartment($name, $year) {\n // get the nested array\n $data = $this->getDepartmentSaleByMonth($year);\n\n // retrieve the 1-d array based on $name key\n $result = $data[$name];\n\n return $result;\n }", "title": "" }, { "docid": "045b0a8360603209656325de77f670ca", "score": "0.69688344", "text": "function getDepartment($code)\r\n\t{\r\n\t\treturn $this->catalog->getDepartment($code);\r\n\t}", "title": "" }, { "docid": "31109fc41bf96fa540bf659d505e75a1", "score": "0.6946552", "text": "public function getByDepartment()\n {\n return $this->hasOne(Departments::className(), ['ID' => 'ByDepartmentID']);\n }", "title": "" }, { "docid": "45d73e70dea88f48600cbf95d4ee296c", "score": "0.68670905", "text": "function getDepartment($dbConn, $department_id){\n // Try to carry out the database search\n try{\n $sqlQuery = \"SELECT department_name\n FROM timesheets_department\n WHERE department_id = :department_id\";\n\n $stmt = $dbConn->prepare($sqlQuery);\n $stmt->execute(array(':department_id' => $department_id));\n $rows = $stmt->fetchObject();\n\n // Check the query returned some results\n if($stmt->rowCount() > 0){\n $department_name = $rows->department_name;\n\n } else{\n $department_name = null;\n }\n\n // Log the exception\n } catch(Exception $e){\n $retval = \"<p>Query failed: \" . $e->getMessage() . \"</p>\\n\";\n $department_name = null;\n }\n\n \n return $department_name;\n \n }", "title": "" }, { "docid": "48cdcaefd9e778d37e171a3b3f758a30", "score": "0.68577", "text": "public function getDepartment()\n {\n if (array_key_exists(\"department\", $this->_propDict)) {\n return $this->_propDict[\"department\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "dacadaac8f95086d4d24b71f77c83a2f", "score": "0.6848269", "text": "public function getDepartmentName()\n\t{\n\t\treturn $this->departmentName;\n\t}", "title": "" }, { "docid": "ca6909b12d60552b0d145c1956ae358b", "score": "0.68138105", "text": "public function getDepartment()\n {\n return $this->hasOne(Department::className(), ['id' => 'department_id']);\n }", "title": "" }, { "docid": "ca6909b12d60552b0d145c1956ae358b", "score": "0.68138105", "text": "public function getDepartment()\n {\n return $this->hasOne(Department::className(), ['id' => 'department_id']);\n }", "title": "" }, { "docid": "396a5ceb06fc0e56cf5eb33b50396b5f", "score": "0.67626256", "text": "public function getDepartment()\n {\n return $this->_department;\n }", "title": "" }, { "docid": "5fb1d525ff8282656c7c86995d1ad903", "score": "0.67575574", "text": "public function department()\n {\n return $this->hasOne(Department::class);\n }", "title": "" }, { "docid": "2ee7c85f390820b979923a20beae6e6c", "score": "0.6747083", "text": "public function getDepartment()\n {\n return $this->hasOne(Department::className(), ['dept_id' => 'department_id']);\n }", "title": "" }, { "docid": "334331e5d7285d67106605fac86972a0", "score": "0.6720447", "text": "public function department()\n {\n return $this->hasOne(Department::class, 'id', 'department_id');\n }", "title": "" }, { "docid": "5a098ff9897513c5a052779cabc2b996", "score": "0.67192554", "text": "public function getDepartment()\n {\n return isset($this->Department) ? $this->Department : null;\n }", "title": "" }, { "docid": "aa5566aaabce5c67254b406e29c6367a", "score": "0.6670749", "text": "abstract static function getDept_id(string $dept_name):int;", "title": "" }, { "docid": "6f501652e4c63c9320f40d9f21aff2d5", "score": "0.6641496", "text": "public function getDepartment($orderBy=' departmentId') {\n $systemDatabaseManager = SystemDatabaseManager::getInstance();\n $query = \"SELECT * FROM department ORDER BY $orderBy\";\n return $systemDatabaseManager->executeQuery($query,\"Query: $query\");\n }", "title": "" }, { "docid": "71a91f497b0b3222e1b7262ef79e9a7c", "score": "0.66312325", "text": "private function getDepartmentName($did)\n\t{\n\t\t$db = Db::getLink();\n\t\t$stmt = $db->prepare(\n\t\t\t\"SELECT `name` FROM `department` WHERE `id` = ?;\"\n\t\t);\n\t\t$stmt->bind_param('i', $did);\n\t\t$stmt->execute();\n\t\t$stmt->bind_result($name);\n\t\t$stmt->fetch();\n\t\t$stmt->close();\n\t\treturn $name;\n\t}", "title": "" }, { "docid": "efcae1aa2f551df468bc27b4cfb84566", "score": "0.661999", "text": "public function getDepartment() {\n return $this->department;\n }", "title": "" }, { "docid": "0eb9f03f3c19adf44da893b576233565", "score": "0.66079336", "text": "public function department_name()\n {\n return $this->hasOne('App\\Department','id','department');\n }", "title": "" }, { "docid": "c0db3b604d0f34198650d54e7239cc1d", "score": "0.6595965", "text": "public function findDepartmentProduct($department)\r\n {\r\n\r\n }", "title": "" }, { "docid": "7ea5d302bce02ee4e414763434a66c4f", "score": "0.65951914", "text": "function get_department_by_section(int $id) : object\n\t{\n\t\t$CI =& get_instance();\n\t\t$CI->db->select('a.name, a.id');\n\t\t$CI->db->from('departements a');\n\t\t$CI->db->join('sections b', 'a.id = b.dept_id');\n\t\t$CI->db->where('b.id', $id);\n\t\treturn $CI->db->get()->row();\n\t}", "title": "" }, { "docid": "d81cffa60fa5df8792b9632b36ccc617", "score": "0.6581127", "text": "private function get($departmentId) {\n $dept = new Dept($departmentId);\n\n return ($dept->getId() ? $dept : null);\n }", "title": "" }, { "docid": "fafb4577eb629b2b663b7afe23238627", "score": "0.65628296", "text": "public function getDepartment($department_id)\n {\n $id = intval( $department_id );\n $department = Department::find( $id);\n if( is_null($department) ) {\n return response()->json( [ 'error' => construct_error(404,'DEP_02','Department not exist','department_id')],404);\n } \n return response()->json($department );\n\n }", "title": "" }, { "docid": "818f2d70f83a6c91a984b6b43837756c", "score": "0.6556996", "text": "public function department()\n {\n return $this->hasOne(Department::class, 'DeptID', 'defaultdeptid');\n }", "title": "" }, { "docid": "984576b58c7009b3da6c6b9b221c3111", "score": "0.65480244", "text": "public function getForDepartment()\n {\n return $this->hasOne(Departments::className(), ['ID' => 'ForDepartmentID']);\n }", "title": "" }, { "docid": "c5a61b74f025b243b28f4680e7300096", "score": "0.64499056", "text": "public function show(Department $department)\n {\n return $department;\n }", "title": "" }, { "docid": "c5a61b74f025b243b28f4680e7300096", "score": "0.64499056", "text": "public function show(Department $department)\n {\n return $department;\n }", "title": "" }, { "docid": "2703af971da5801df169290d86439ae6", "score": "0.6439237", "text": "public function getDepartement();", "title": "" }, { "docid": "9d5d8efd52265ad7900791fee33f4737", "score": "0.64207864", "text": "public function getDept()\n {\n return $this->dept;\n }", "title": "" }, { "docid": "644a450ea251f95e3ff221b2a473b6f5", "score": "0.6413694", "text": "function getDepartmentsName($id = null) {\n\t\t// import department db\n\t\tApp::import('Model','Department');\n\t\t$this->Department = & new Department();\n\t\t# fetch list of active departments \n\t\t$departments_name = $this->Department->find('all',array('conditions'=>array('Department.status'=>'1' , 'Department.id'=>$id),'fields'=>array('id','name')));\n\t\treturn $departments_name;\n\t}", "title": "" }, { "docid": "0bc59b8631ce51a172246733f68617d7", "score": "0.6408726", "text": "function find_department_by_person($personid){\r\n\t\t\t$p = $this->find('first', array('conditions'=> array('Person.id' => $personid)));\r\n\t\t\treturn $p['Person']['belongs'];\r\n\t\t}", "title": "" }, { "docid": "03a412328e0d136881e60d7313e2d72b", "score": "0.6344683", "text": "public function getDep()\n {\n return $this->hasOne(Department::className(), ['id_dep' => 'id_dep']);\n }", "title": "" }, { "docid": "26a8e9cb1a103489bd52533d29005c80", "score": "0.6285187", "text": "function getDepartmentByID($depId){\n\t\t$link = openDBConnection();\n\t\t// fetch the department from the db\n\t\t$query = \"SELECT ID, Name, DepartmentID FROM Department WHERE ID = $depId\";\n\t\t$result = mysql_query($query, $link) or die('Errant query: ' . $query);\n\t\t\n\t\t$elements = array();\n\t\tif(mysql_num_rows($result)) {\n\t\t\twhile ($row = mysql_fetch_assoc($result)) {\n\t\t\t\t$elements = $row;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tcloseDBConnection($link);\n\t\treturn $elements;\n\t}", "title": "" }, { "docid": "4ab25a79472a152312f521d502dabc53", "score": "0.62848246", "text": "public function getByDepartment($dept_id){\n\t\t$st = $this->db->query(\"SELECT firstname FROM employee WHERE emp_id = ANY(SELECT emp_id FROM emp_dept WHERE dept_id = \".$dept_id.\")\");\n\n\t\treturn $st->fetchAll(PDO::FETCH_ASSOC);\n\t}", "title": "" }, { "docid": "d4491367030bd2650221c899741126c2", "score": "0.6278423", "text": "function getDept()\n {\n return $this->dept;\n }", "title": "" }, { "docid": "d0df925507515bdda3faa4b5136c399b", "score": "0.62759244", "text": "public function findDepartment($id){\n $department = department::find($id);\n //return $department;\n return view('add_department',['department'=>$department]);\n }", "title": "" }, { "docid": "2326c6931d9d351121752a2441eacb15", "score": "0.62628585", "text": "public function getdeptname($loginname)\n {\n if (empty($loginname))\n {\n return InterfaceError::ERR_INVALIDPARAMS;\n }\n\n $deptid = $this->getuserinfo($loginname)['DeptID'];\n\n $sql = \"SELECT DeptName FROM tblDepartment WHERE\n DeptID = $deptid\";\n\n $ret = $this->runSQL($sql);\n\n if (0 == sizeof($ret))\n {\n return InterfaceError::ERR_INVALIDPARAMS;\n }\n\n return $ret[0]['DeptName'];\n\n }", "title": "" }, { "docid": "297dea09a1088e2ee4b4f211ec0dbef7", "score": "0.6254549", "text": "public function department()\n {\n return $this->belongsTo(Department::class);\n }", "title": "" }, { "docid": "297dea09a1088e2ee4b4f211ec0dbef7", "score": "0.6254549", "text": "public function department()\n {\n return $this->belongsTo(Department::class);\n }", "title": "" }, { "docid": "4f5f84b96d96d7bf8a00943f57cdd959", "score": "0.6253521", "text": "public function getDepartmentId()\n\t{\n\t\treturn $this->department_id;\n\t}", "title": "" }, { "docid": "20f52193312601b9db0f677fc59d019b", "score": "0.6241742", "text": "public function getAllDepartmentNames()\n {\n $this->recursive = -1;\n return $this->find(\"list\", array('fields' => array('id', 'name'), 'order' => array('name' => 'asc')));\n }", "title": "" }, { "docid": "730532529d45d803adc67d7ca85b9286", "score": "0.6219192", "text": "function get_department_by_object()\n {\n $success = false;\n $departmentName = '';\n $objectId = $this->input->post('object_id');\n if ($objectId && is_numeric($objectId)) {\n $this->load->model('departements_model');\n $department = $this->departements_model->get_departement_by_objet($objectId);\n if ($department) {\n $success = true;\n $departmentName = $department->name;\n }\n }\n\n echo json_encode(array('success' => $success, 'department_name' => $departmentName));\n }", "title": "" }, { "docid": "d55a0b8b75fafb0068a5db84e8c632a7", "score": "0.6209376", "text": "public function department()\n {\n return $this->belongsTo(Department::class, 'department_id');\n }", "title": "" }, { "docid": "d56dc1ce03a567bd231d0c462299793e", "score": "0.6181535", "text": "public function get($id)\n {\n $department = Department::find($id);\n if (!$department) {\n throw new ModelNotFoundException(\"Department doesn't not exist with ID \" . $id);\n }\n return $department;\n }", "title": "" }, { "docid": "22dca9fb3a3fd0a42182d7c0f4d77304", "score": "0.61516595", "text": "public function department($id)\n {\n $response = $this->request()->get($this->api_url(\"livechat/department/$id\"))->send();\n return $this->handle_response($response, new LivechatActionException());\n }", "title": "" }, { "docid": "1864179db0728bbb52a762dd9d89bc1d", "score": "0.6150503", "text": "public function department() {\n if (permission::permitted('formdata-departments')=='fail'){\n\t\t return view('errors.permission-denied');\n \n }\n\n $data = table::department()->select('tbl_form_department.*','tbl_form_company.company','tbl_people.firstname')->leftjoin('tbl_form_company', 'tbl_form_department.comp_code', '=', 'tbl_form_company.id')->leftjoin('tbl_people', 'tbl_form_department.manager', '=', 'tbl_people.id')->get();\n $c = table::company()->get();\n return view('admin.fields.department', compact('data','c'));\n }", "title": "" }, { "docid": "e0ae9794525635dbbe9b6c960df60d62", "score": "0.6144275", "text": "public function show(Department $department)\n {\n //\n }", "title": "" }, { "docid": "e0ae9794525635dbbe9b6c960df60d62", "score": "0.6144275", "text": "public function show(Department $department)\n {\n //\n }", "title": "" }, { "docid": "e0ae9794525635dbbe9b6c960df60d62", "score": "0.6144275", "text": "public function show(Department $department)\n {\n //\n }", "title": "" }, { "docid": "e0ae9794525635dbbe9b6c960df60d62", "score": "0.6144275", "text": "public function show(Department $department)\n {\n //\n }", "title": "" }, { "docid": "e0ae9794525635dbbe9b6c960df60d62", "score": "0.6144275", "text": "public function show(Department $department)\n {\n //\n }", "title": "" }, { "docid": "601a5fa96865b2f2470dcdcba59111d5", "score": "0.61323583", "text": "public function userdepartment($id) {\n if (!$this->server->verifyResourceRequest(OAuth2\\Request::createFromGlobals())) {\n $this->server->getResponse()->send();\n } else {\n $this->load->model('organization_model');\n $result = $this->organization_model->getDepartment($id);\n if (empty($result)) {\n $this->output->set_header(\"HTTP/1.1 422 Unprocessable entity\");\n } else {\n echo json_encode($result);\n }\n }\n }", "title": "" }, { "docid": "2570d1b6334a3a4003fdb4bc94e7a568", "score": "0.6115827", "text": "public function department()\n {\n \treturn $this->belongsTo('Modules\\Admin\\Models\\Department', 'departments_id', 'departments_id');\n }", "title": "" }, { "docid": "290048a908349369b2ab78d21d82e808", "score": "0.6111814", "text": "public function department($department)\n {\n return $this->setProperty('department', $department);\n }", "title": "" }, { "docid": "f4eba1e9797dedb4ece1053c81e1eade", "score": "0.61062545", "text": "public function getDepartmentDetail($id)\n {\n $this->recursive = 0;\n return $this->findById($id);\n }", "title": "" }, { "docid": "10e1b83be7541871c79571adabd559bf", "score": "0.6103249", "text": "public function deptName(){\n\t\treturn ucwords(mb_strtolower($this->department));\n\t}", "title": "" }, { "docid": "5317013e14cc15065a5eb762a74945c8", "score": "0.607775", "text": "public function department()\n {\n return $this->belongsTo('App\\Department', 'dCode', 'dCode');\n }", "title": "" }, { "docid": "5317013e14cc15065a5eb762a74945c8", "score": "0.607775", "text": "public function department()\n {\n return $this->belongsTo('App\\Department', 'dCode', 'dCode');\n }", "title": "" }, { "docid": "935fa0f142d163a2cf4e526743327316", "score": "0.60468185", "text": "public function getDepartments(){\r\n return $this->getRelated('Multiple\\Frontend\\Models\\Departments');\r\n }", "title": "" }, { "docid": "0d2167a413c88d77bc85e88814b8511c", "score": "0.60395825", "text": "function section_by_department(int $id) : object\n\t{\n\t\t$CI =& get_instance();\n\t\t$CI->db->where('dept_id', $id);\n\t\treturn $CI->db->get('sections')->row();\n\t}", "title": "" }, { "docid": "1ce857269ce6d1c7e897d06bb11db13c", "score": "0.603623", "text": "function get_rec_dpm_name($id){\n $CI = & get_instance();\n if($id != 0){\n $CI->db->where('departmentid',$id);\n $dpm = $CI->db->get(db_prefix().'departments')->row();\n if($dpm->name){\n return $dpm->name;\n }else{\n return '';\n }\n \n }else{\n return '';\n }\n}", "title": "" }, { "docid": "00100852cf3de9017bead9cdb4d6870e", "score": "0.6021409", "text": "public function getDeptOne()\r\n {\r\n return $this->hasOne(Dept::className(), ['DEP_ID' => 'DEP_ID']);\r\n }", "title": "" }, { "docid": "feddbffd475cd9d24bfd08544b46eb45", "score": "0.6021035", "text": "public function show($department=null)\n {\n //\n $dept = Department::where(['id'=>$department])->first();\n if(!$dept){\n abort(404);\n }\n// return response()->json($dept);\n return view('departments.show', ['department'=>$dept]);\n }", "title": "" }, { "docid": "15d29741ef4cecd8a4d186cc331f3871", "score": "0.6013938", "text": "public function show(Department $department)\n {\n return response($department);\n }", "title": "" }, { "docid": "c6864ea5f380c8434a623353df685eef", "score": "0.59991634", "text": "public function department()\n {\n return $this->belongsTo(Department::class, 'code_dep_id');\n }", "title": "" }, { "docid": "2855d4a3172d34d4cb565cf2b9a6542f", "score": "0.5995482", "text": "public function dept()\n {\n return $this->belongsTo('App\\Department','dept_id','id');\n }", "title": "" }, { "docid": "73e3578818698de988bf67645595da65", "score": "0.5939476", "text": "public function getDepartments(Request $request)\n {\n \t$can = $this->odoo->fields(['name'])\n ->get('hr.department');\n\n \treturn response()->json(['data'=> $this->utf8_converter($can)],200, [], JSON_UNESCAPED_UNICODE);\n }", "title": "" }, { "docid": "7290bbdfac1b66621928aff8becdac34", "score": "0.5933406", "text": "public function department(){\n return $this->belongsTo(Department::class);\n }", "title": "" }, { "docid": "dcd62a4ad57d1fb5943ac4f7d240f427", "score": "0.591051", "text": "public function department_list() {\n \n $pageTitle = '';\n $pageData = [\n 'pageTitle' => 'Departments List',\n 'formAction' => '',\n 'redirecturl' => '',\n 'getEditDayaUrl' => url('admin/get_complain_type_edit_data'),\n 'delUrl' => url('admin/delete_department_data'),\n ];\n $list = Department::get();\n return View('backend.Departements.list', compact('list', 'pageData'));\n }", "title": "" }, { "docid": "545e21ed823ae177d99efb96213654fb", "score": "0.5910306", "text": "public function departments()\n {\n $response = $this->request()->get($this->api_url(\"livechat/department\"))->send();\n return $this->handle_response($response, new LivechatActionException(), ['departments']);\n }", "title": "" }, { "docid": "32398176ba69ab9bb56014da1fc1cae3", "score": "0.5899805", "text": "public function getdeptinfo($deptid)\n {\n if (empty($deptid))\n {\n return InterfaceError::ERR_INVALIDPARAMS;\n }\n\n $sql = 'SELECT a.Name, b.DeptName from tblEmployee as a, tblDepartment'.\n ' as b where a.EmployeeID = b.ManagerID and a.DeptID = '.$deptid;\n $ret = $this->runSQL($sql);\n\n if (0 == sizeof($ret)) {\n return InterfaceError::ERR_NOSUCHUSER; \n }\n\n $managername = $ret[0];\n return $managername;\n }", "title": "" }, { "docid": "0ef1578cc807fa57c7dc68befbeae29d", "score": "0.5881155", "text": "public static function getFacultyByDepartment()\n {\n \n $sql =\"SELECT \n concat( \n p.\\\"per_firstName\\\",' ',\n p.\\\"per_lastName\\\",' -- ',d.dpt_code) as per_name,\n f.\\\"facultyID\\\", \n d.dpt_code\n FROM \n tbl_j_person p, \n tbl_n_faculty f, \n tbl_b_department d\n WHERE \n p.\\\"personID\\\" = f.\\\"facultyID\\\" AND\n f.\\\"departmentID\\\" = d.\\\"departmentID\\\" AND f.ex_fac_active=true \n order by d.dpt_code, p.\\\"per_firstName\\\"\n\n ;\n \";\n \n $fac = Faculty::model()->findAllBySql($sql);\n \n $i=0;\n foreach ($fac as $item) {\n\n \n $data[$i]= array('id'=>$item->facultyID,'text'=>$item->per_name); \n //echo CHtml::listData($item2, 'programmeCode', 'pro_name','departmentID');\n \n $i++;\n }\n \n \n \n return $data;\n \n\n }", "title": "" }, { "docid": "48545efd2c3426f023727dbb3495422f", "score": "0.5866216", "text": "public function show(department $department)\n {\n //return view('admin.add-department');\n }", "title": "" }, { "docid": "1b99319b0ae3fa0a6b8547aa28338e30", "score": "0.5851303", "text": "function getDepartments()\r\n\t{\r\n\t\t$departments = array();\r\n\t\t$codes = $this->db->GetAll(\"SELECT department, count(*) as num FROM reformedfaculty GROUP BY department ORDER BY department\");\r\n\t\tforeach($codes as $code)\r\n\t\t{\r\n\t\t\t$department = $this->getDepartment($code['department']);\r\n\t\t\t$name = ($department['name'])?$department['name']:'*'.$code['department'];\r\n\t\t\t$departments[] = array('code'=>$code['department'], 'name'=>$name.' ('.$code['num'].')');\r\n\t\t}\r\n\t\treturn $departments;\r\n\t}", "title": "" }, { "docid": "6826b56b0051215afcb57a4104d7c5e6", "score": "0.5831914", "text": "public function getDeptt(){\n $query = $this->db->get('departments');\n return $query->result();\n }", "title": "" }, { "docid": "159edf9e22156ef5a65d16be241d2647", "score": "0.5826977", "text": "protected function _getVarsFSValueDepartment($arr)\r\n\t{\r\n\t\tglobal $classDb;\r\n\t\tglobal $varsPluginAccountingAccount;\r\n\r\n\t\t$rows = $classDb->getSelect(array(\r\n\t\t\t'idModule' => 'accounting',\r\n\t\t\t'strTable' => 'accountingEntityDepartmentFSValueJpn',\r\n\t\t\t'arrLimit' => array(),\r\n\t\t\t'arrOrder' => array(),\r\n\t\t\t'flagAnd' => 1,\r\n\t\t\t'arrWhere' => array(\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'flagType' => 'num',\r\n\t\t\t\t\t'strColumn' => 'idEntity',\r\n\t\t\t\t\t'flagCondition' => 'eq',\r\n\t\t\t\t\t'value' => $varsPluginAccountingAccount['idEntityCurrent'],\r\n\t\t\t\t),\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'flagType' => 'num',\r\n\t\t\t\t\t'strColumn' => 'numFiscalPeriod',\r\n\t\t\t\t\t'flagCondition' => 'eq',\r\n\t\t\t\t\t'value' => $arr['numFiscalPeriod'],\r\n\t\t\t\t),\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'flagType' => 'num',\r\n\t\t\t\t\t'strColumn' => 'idDepartment',\r\n\t\t\t\t\t'flagCondition' => 'eq',\r\n\t\t\t\t\t'value' => $arr['idDepartment'],\r\n\t\t\t\t),\r\n\t\t\t),\r\n\t\t));\r\n\r\n\t\treturn $rows['arrRows'][0];\r\n\t}", "title": "" }, { "docid": "84cf7cb74e4a53d8fab011e06930424d", "score": "0.5816576", "text": "public function getDepartment($reload = false)\n\t{\n\t\tif ($this->department !== null && !$reload) {\n\t\t\treturn $this->department;\n\t\t}\n\n\t\tif ($this->department_id === null || $this->department_id <= 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\t$this->department = kyDepartment::get($this->department_id);\n\t\treturn $this->department;\n\t}", "title": "" }, { "docid": "a5442d5f0dc1e0d1bea45d97d5c884b8", "score": "0.57996535", "text": "public function getOrganizationDepartment()\n {\n return $this->organizationDepartment;\n }", "title": "" }, { "docid": "06464f8a4e83682b9efc4b8923c0264c", "score": "0.5781351", "text": "public function departments()\n {\n return $this->belongsTo(Department::class, 'departments_id');\n }", "title": "" }, { "docid": "25475685aa09140af51f78cc0f7d5451", "score": "0.57748467", "text": "public function departmentDetails(){\n return $this->hasOne('App\\Model\\Department','id','department_id');\n }", "title": "" }, { "docid": "991302e92ecb7f474d8320fb07e383af", "score": "0.5774497", "text": "function getFacultyByDepartment($dept_code, $order_by='lastname')\r\n\t{\r\n\t\treturn $this->db->GetAll(\"SELECT r.* FROM reformedfaculty r,faculty_department d WHERE d.department_code LIKE '$dept_code' AND r.active_status=1 AND r.uid = d.faculty_username ORDER BY $order_by\");\r\n\t}", "title": "" }, { "docid": "26f0f404c795a45f4ed74a02a2798d07", "score": "0.57635134", "text": "public function getDepartments() {\n $sql = sprintf('select * from department where companyId=' . $this->getId());\n $fields = $this->getAdapter()->fetchAll($sql);\n return $fields;\n }", "title": "" }, { "docid": "4dd515de02c94dce1e9d079ddef87801", "score": "0.57443047", "text": "static public function oGetDept($iDeptNo){\n\t\t$oDB = self::oDB(self::$sDBName);\n\n\t\t//if already queryed\n\t\tif(!is_null(self::$aInstancePool[$iDeptNo]))\n\t\t\treturn self::$aInstancePool[$iDeptNo];\n\n\t\t$sSql = \"SELECT * FROM dept WHERE dept_no = '$iDeptNo'\";\n\t\t$iDbq = $oDB->iQuery($sSql);\n\t\t$aRow = $oDB->aFetchAssoc($iDbq);\n\t\tif($aRow ===false || $oDB->iNumRows($iDbq)>1)\n\t\t\treturn null;\n\t\t$oCDept = new CDept($aRow);\n\t\tself::$aInstancePool[$iDeptNo] = $oCDept;\n\t\treturn $oCDept;\n\t}", "title": "" }, { "docid": "fda14ab94875386d8166b3d376656e98", "score": "0.57413083", "text": "function call_find_dept($ORG_ID) {\n\t\tglobal $db_dpis2, $DPISDB, $ORGTAB;\n\n\t\t$cmd = \"\tselect ORG_ID , ORG_NAME, ORG_ID_REF, ORG_ACTIVE\n\t\t\t\t\t\t from $ORGTAB where ORG_ID = $ORG_ID \";\n\t\t$count_data = $db_dpis2->send_cmd($cmd);\n//\t\techo \"cmd=$cmd<br>\";\n\t\t$data2 = $db_dpis2->get_array();\n\t\tif ($data2[ORG_ID_REF]==$ORG_ID) {\n\t\t\t$dept = $ORG_ID;\n//\t\t\techo \"1..$dept<br>\";\n\t\t} else if ($data2[ORG_ID_REF]) {\n\t\t\t$dept = $ORG_ID.\",\".call_find_dept($data2[ORG_ID_REF]);\n//\t\t\techo \"2..$dept<br>\";\n\t\t} else {\n\t\t\t$dept = \"\";\n//\t\t\techo \"3..$dept<br>\";\n\t\t}\n\n\t\treturn $dept;\n\t}", "title": "" }, { "docid": "6079a4274c9eb34d1a61c5c87501b146", "score": "0.57387537", "text": "public function show(Dept $dept)\n {\n //\n }", "title": "" }, { "docid": "34d295bd718ec98298b5710e65ec2a0d", "score": "0.5736365", "text": "public function departamentByIdAdminR_get($id) {\n \n \n $rs = $this->tenant_model->getDepartamentByIdAdminR($id);\n \n if (!is_null($rs)) {\n $this->response($rs, 200);\n } else {\n $this->response(array('error' => 'NO HAY RESULTADOS'), 404);\n }\n }", "title": "" }, { "docid": "419a5fe724108238cc2cffb5774e2f1b", "score": "0.57105005", "text": "public function existsDepartmentByName(string $name)\n {\n $query = $this->departmentTable->newSelect();\n $query->select(1)->where(['name LIKE' => $name]);\n $row = $query->execute()->fetch();\n return !empty($row);\n }", "title": "" }, { "docid": "e9363c4373d3f514b57be0a3c0379058", "score": "0.57102174", "text": "public function getDefaultDepartment($context)\n\t{\n\t\tswitch ($context) {\n\t\t\tcase 'ticket':\n\t\t\t\t$opt = 'core.tickets.default_department';\n\t\t\t\t$check_field = 'is_tickets_enabled';\n\t\t\t\tbreak;\n\t\t\tcase 'chat':\n\t\t\t\t$opt = 'core.chat.default_department';\n\t\t\t\t$check_field = 'is_chat_enabled';\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new \\InvalidArgumentException(\"Unknown context `$context`\");\n\t\t}\n\n\t\t$dep_id = App::getSetting($opt);\n\t\t$dep = null;\n\t\tif ($dep_id) {\n\t\t\t$dep = $this->find($dep_id);\n\t\t}\n\n\t\tif (!$dep) {\n\t\t\t// There should always be a correct default set, but this is\n\t\t\t// error handling in case\n\t\t\t$dep_id = App::getDb()->fetchColumn(\"\n\t\t\t\tSELECT d.id\n\t\t\t\tFROM departments d\n\t\t\t\tLEFT JOIN departments AS subdep ON (subdep.parent_id = d.id)\n\t\t\t\tWHERE subdep.id IS NULL AND d.$check_field = 1\n\t\t\t\tORDER BY d.display_order ASC\n\t\t\t\tLIMIT 1\n\t\t\t\");\n\n\t\t\tif ($dep_id) {\n\t\t\t\t$dep = $this->find($dep_id);\n\t\t\t}\n\t\t}\n\n\t\treturn $dep;\n\t}", "title": "" }, { "docid": "3603d1efa347be4912a54470da659845", "score": "0.5707411", "text": "public function departments()\n {\n $self = 'departments';\n\n if (Auth::user()->user_name !== 'admin') {\n $get_perm = permission::permitted($self);\n\n if ($get_perm == 'access denied') {\n return redirect('permission-error')->with([\n 'message' => language_data('You do not have permission to view this page'),\n 'message_important' => true\n ]);\n }\n }\n\n $departments = Department::all();\n return view('admin.departments')->with('departments', $departments);\n\n }", "title": "" }, { "docid": "7bbabbce283e50c8153db367628e137e", "score": "0.56930274", "text": "public function getDepartment(string $departmentId)\n {\n $query = $this->getDepartmentQuery();\n $query->where([$this->departmentTable->getTablename() . '.id' => $departmentId]);\n $row = $query->execute()->fetch('assoc');\n if (empty($row)) {\n return [];\n }\n $department = $this->formatter->formatDepartment($row);\n return $department;\n }", "title": "" }, { "docid": "d971d4e110b0a91aa2ca1ab9753fec47", "score": "0.5687327", "text": "public function departments(){\r\n\r\n\t\t$data['departments'] = $this->db->select('lab_department_id, department_name')->from('lab_departments')->get()->result_array();\r\n\r\n\t\t$data['view'] = 'lab/departments';\r\n\t\t$this->load->view('layout', $data);\t\r\n\r\n\t}", "title": "" }, { "docid": "5faa7415c970fdbc284a53e576b88387", "score": "0.56837904", "text": "public function show($id)\n {\n $department = DB::table('departments')->where('id',$id)->first();\n return response()->json($department);\n }", "title": "" }, { "docid": "d23da0377458f50a8af2f9a38231b15e", "score": "0.5677596", "text": "public function setDepartment($val)\n {\n $this->_propDict[\"department\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "62890cbc729a3f6a9cb0a50bd2718470", "score": "0.56773084", "text": "public function index()\n {\n return Department::all();\n }", "title": "" }, { "docid": "62890cbc729a3f6a9cb0a50bd2718470", "score": "0.56773084", "text": "public function index()\n {\n return Department::all();\n }", "title": "" }, { "docid": "ffac94a7699d0f0d6185d44d24e83dac", "score": "0.5668498", "text": "public function getdepartment(){\n\t $deptname = $this->input->post('apost');\n $postname =\t$this->hrmmodel->get_listspfic1('job_open','job_nameofpost','job_id',$deptname)->job_nameofpost;\t\n $postadno =\t$this->hrmmodel->get_listspfic1('job_open','job_adverno','job_id',$deptname)->job_adverno;\t\n\t $selectfield='job_id,job_department';\n\t $datawh=array('job_nameofpost'=>$postname, 'job_adverno'=>$postadno);\n\t $dept=$this->hrmmodel->get_listspficemore('job_open',$selectfield,$datawh);\t\t\n\t // $dept = $this->hrmmodel->get_listspfic2('job_open','job_id','job_department','job_nameofpost',$postname,'job_department');\n\t\tforeach($dept as $deptn): ?>\n \t\t\t<option id='adept' value=\"<?php echo $deptn->job_id;?>\"><?php echo $deptn->job_department; ?></option>\n<?php \tendforeach;\n\t}", "title": "" }, { "docid": "d185978563cbc18ee049e2cd8d8e2e32", "score": "0.565763", "text": "public function show($id)\n {\n if (!$this->roles->detail) {\n return response()->json(['error' => 'Unauthorized!'], 401);\n }\n\n $item = $this->departmentService->find($this->user->company->id, $id);\n return $item;\n }", "title": "" }, { "docid": "406f3a7e5578741905ea05eaef12510d", "score": "0.56566256", "text": "public function department()\n {\n //return $this->belongsTo('App\\Department', 'department', 'department_id');\n return $this->belongsTo('App\\Department', 'department_id', 'department_id');\n }", "title": "" }, { "docid": "03e8e4e9b2506055b3279247ff7559a8", "score": "0.56313056", "text": "public function SelectHRMDepartments()\r\n {\r\n global $username;\r\n $selDept = $this->deptAccessObj->getDepartmentAccess($username,\"'BO'\");\r\n $select = \"SELECT sno,deptname FROM department WHERE status ='Active'AND sno !='0' AND sno IN (\".$selDept.\") \";\r\n $result = mysql_query($select,$this->db);\r\n return $result;\r\n }", "title": "" } ]
b74f5c1d82fbd9a89d2d8daab12eae14
Get the card/gateway logos and other gatewayrequired details.
[ { "docid": "6cfe6e4851073e9c7e2cf37293c36f93", "score": "0.51095474", "text": "function get_logos()\n\t{\n\t\t$inst_id=ecommerce_test_mode()?get_option('ipn_test'):get_option('ipn');\n\t\t$address=str_replace(chr(10),'<br />',escape_html(get_option('pd_address')));\n\t\t$email=get_option('pd_email');\n\t\t$number=get_option('pd_number');\n\t\treturn do_template('ECOM_LOGOS_WORLDPAY',array('_GUID'=>'4b3254b330b3b1719d66d2b754c7a8c8','INST_ID'=>$inst_id,'PD_ADDRESS'=>$address,'PD_EMAIL'=>$email,'PD_NUMBER'=>$number));\n\t}", "title": "" } ]
[ { "docid": "f321d4881b1150a7865ac44c7e30d617", "score": "0.59638923", "text": "function schema_get_card_gateway() {\n\n $gateway_settings = array();\n\n $payment_settings = schema_get('/settings/payments');\n $card_method = null;\n foreach ($payment_settings['methods'] as $method) {\n if ($method['id'] === 'card') {\n $card_method = $method;\n break;\n }\n }\n if ($card_method) {\n $card_gateway = null;\n foreach ($payment_settings['gateways'] as $gateway) {\n if ($gateway['id'] === $card_method['gateway']) {\n $card_gateway = $gateway;\n break;\n }\n }\n if ($card_gateway) {\n $gateway_settings = $card_gateway;\n // TODO: normalize key resolution for multiple gateways\n if ($card_gateway['id'] === 'stripe') {\n if ($card_gateway['mode'] === 'live') {\n $gateway_settings['publishable_key'] = $card_gateway['live_publishable_key'];\n } else {\n $gateway_settings['publishable_key'] = $card_gateway['test_publishable_key'];\n }\n }\n }\n }\n\n return $gateway_settings;\n}", "title": "" }, { "docid": "71287fdd7ff03bca5f854256f2e7eca9", "score": "0.58612496", "text": "public function getGatewayLogo()\n {\n return $this->_gatewayLogo;\n }", "title": "" }, { "docid": "e917c554d7a95228c3cf269c64b78033", "score": "0.57823294", "text": "public function gateway_info() {\n\n // Load language\n $this->CI->lang->load( 'paypal_admin', $this->CI->config->item('language'), FALSE, TRUE, MIDRUB_BASE_PAYMENTS_PAYPAL );\n\n // Create and return array\n return array(\n 'gateway' => $this->CI->lang->line('paypal'),\n 'configuration' => array(\n array(\n 'type' => 'text_input',\n 'slug' => 'paypal_merchant_id',\n 'label' => $this->CI->lang->line('paypal_merchant_id')\n ),\n array(\n 'type' => 'text_input',\n 'slug' => 'paypal_public_key',\n 'label' => $this->CI->lang->line('paypal_public_key')\n ),\n array(\n 'type' => 'text_input',\n 'slug' => 'paypal_private_key',\n 'label' => $this->CI->lang->line('paypal_private_key')\n )\n\n )\n \n );\n\n }", "title": "" }, { "docid": "fd92a89d85b7be58226b0d610a3276bf", "score": "0.573685", "text": "function CLIENT_getActiveNetDevices($clientNameOrIP)\n{\n\t//Get the network card information lines reported by ifconfig\n\t$res = CLIENT_executeOnClientOrIP($clientNameOrIP,\"m23-getActiveNetDevices\",'export LC_ALL=C; ifconfig | egrep \"[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]\" | tr -s [:blank:]',\"root\",false);\n\n\t$lines = explode(\"\\n\",$res);\n\n\t$i=0;\n\tforeach ($lines as $line)\n\t{\n\t\t//Don't parse empty lines\n\t\tif (empty($line)) continue;\n\n\t\t//Don't parse lines without HWaddr (that are the only lines that conatin network device information)\n\t\tif (strpos($line,\"HWaddr\") === false) continue;\n\n\t\t//vmnet1 Link encap:Ethernet HWaddr 00:52:66:23:00:23\n\t\t$temp = explode(\" \",$line);\n\t\t//Get the name of the network device (e.g. eth0)\n\t\t$out[$i]['dev'] = $temp[0];\n\n\t\t//Get the type of the network device (e.g. Ethernet)\n\t\t$tmp2 = explode(\":\",$temp[2]);\n\t\t$out[$i]['type'] = $tmp2[1];\n\n\t\t//Get the mac address of the network device (e.g. 00:52:66:23:00:23)\n\t\t$out[$i++]['mac'] = $temp[4];\n\t}\n\treturn($out);\n}", "title": "" }, { "docid": "a4a49d4a25a64c72f5a999b5802b6642", "score": "0.5564176", "text": "public function info()\n {\n if (!$this->id) {\n return null;\n }\n \n if (!$this->braintree_card) {\n $this->braintree_card = Braintree_CreditCard::find($this->id);\n }\n \n if (!$this->braintree_card) {\n return null;\n }\n \n $return = array(\n 'id' => $this->id,\n 'last4' => $this->braintree_card->last4,\n 'brand' => $this->braintree_card->cardType,\n 'exp_month' => $this->braintree_card->expirationMonth,\n 'exp_year' => $this->braintree_card->expirationYear,\n 'name' => $this->braintree_card->cardholderName,\n 'address_line1' => null,\n 'address_line2' => null,\n 'address_city' => null,\n 'address_state' => null,\n 'address_zip' => null,\n 'address_country' => null,\n );\n \n if ($this->braintree_card->billingAddress) {\n $return = array_merge($return, array(\n 'address_line1' => $this->braintree_card->billingAddress->streetAddress,\n 'address_line2' => $this->braintree_card->billingAddress->extendedAddress,\n 'address_city' => $this->braintree_card->billingAddress->locality,\n 'address_state' => $this->braintree_card->billingAddress->region,\n 'address_zip' => $this->braintree_card->billingAddress->postalCode,\n 'address_country' => $this->braintree_card->billingAddress->countryName,\n ));\n }\n \n return $return;\n }", "title": "" }, { "docid": "d6118526cfb48d8373b59e3f44f444df", "score": "0.55542386", "text": "function getGateway()\r\n {\r\n }", "title": "" }, { "docid": "66c3f5ec9d00931a1fa4b685e9abd207", "score": "0.5543935", "text": "public static function get_device_details()\n {\n $device_details = array(\n 'deviceType' => 'UNKNOWN', // DESKTOP, SMARTPHONE, TABLET, TV, and UNKNOWN\n 'deviceName' => 'UNKNOWN',\n\t\t\t'deviceOS' => 'UNKNOWN',\n\t\t\t'browser' => 'UNKNOWN',\n\t\t\t'ipAddress' => '0.0.0.0',\n );\n \n if(empty($_SERVER['HTTP_USER_AGENT'])) {\n\t\t\t$device_details['Warning'] = 'User Agent is empty.';\n\t\t\t\n\t\t\tself::create_log($device_details['Warning'], 'get_device_details() Error');\n\t\t\treturn $device_details;\n\t\t}\n\t\t\n\t\t$user_agent = strtolower(filter_var($_SERVER['HTTP_USER_AGENT'], FILTER_SANITIZE_STRING));\n\t\t\n\t\tif (empty($user_agent)) {\n\t\t\t$device_details['Warning'] = 'Probably the merchant Server has problems with PHP filter_var function!';\n\t\t\t\n\t\t\tself::create_log($device_details['Warning'], 'get_device_details() Error');\n\t\t\treturn $device_details;\n\t\t}\n\t\t\n\t\t$device_details['deviceName'] = $user_agent;\n\t\t\n foreach (self::$device_types as $d) {\n if (strstr($user_agent, $d) !== false) {\n if(in_array($d, array('linux', 'windows', 'macintosh'), true)) {\n $device_details['deviceType'] = 'DESKTOP';\n } else if('mobile' === $d) {\n $device_details['deviceType'] = 'SMARTPHONE';\n } else if('tablet' === $d) {\n $device_details['deviceType'] = 'TABLET';\n } else {\n $device_details['deviceType'] = 'TV';\n }\n\n break;\n }\n }\n\n foreach (self::$devices as $d) {\n if (strstr($user_agent, $d) !== false) {\n $device_details['deviceOS'] = $d;\n break;\n }\n }\n\n foreach (self::$browsers as $b) {\n if (strstr($user_agent, $b) !== false) {\n $device_details['browser'] = $b;\n break;\n }\n }\n\n // get ip\n\t\tif (!empty($_SERVER['REMOTE_ADDR'])) {\n\t\t\t$ip_address = filter_var($_SERVER['REMOTE_ADDR'], FILTER_VALIDATE_IP);\n\t\t}\n\t\tif (empty($ip_address) && !empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n\t\t\t$ip_address = filter_var($_SERVER['HTTP_X_FORWARDED_FOR'], FILTER_VALIDATE_IP);\n\t\t}\n\t\tif (empty($ip_address) && !empty($_SERVER['HTTP_CLIENT_IP'])) {\n\t\t\t$ip_address = filter_var($_SERVER['HTTP_CLIENT_IP'], FILTER_VALIDATE_IP);\n\t\t}\n\t\tif (!empty($ip_address)) {\n\t\t\t$device_details['ipAddress'] = (string) $ip_address;\n\t\t}\n \n return $device_details;\n }", "title": "" }, { "docid": "a3ef3bf64d12a9b97ee8cc1434bf5b1a", "score": "0.5491918", "text": "public function getStripeCardInformation($subscription) {\n $_subscription = $subscription;\n $customerId = $_subscription->getCustomerId();\n $requestData = array();\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n // Magedelight here we are using object manager because stripe payment method is optional payment method,\n // stripe class may be exist or not(In construct it gives error).\n $collection = $objectManager->create('\\Magedelight\\Stripe\\Model\\Cards')\n ->getCollection()\n ->addFieldToSelect('*')->addFieldToFilter('customer_id', array('eq' => $customerId));\n $gatewayCustomerId = $collection->getFirstItem()->getStripeCustomerId();\n if ($gatewayCustomerId) {\n $requestData['id'] = $gatewayCustomerId;\n $restApiObject = $objectManager->create('\\Magedelight\\Stripe\\Model\\Api\\Rest');\n $restResponse = $restApiObject->getCustomerCards($requestData);\n if (array_key_exists('result_data', $restResponse)) {\n $restResponseObject = json_decode($restResponse['result_data']);\n $cards = $restResponseObject->sources->data;\n if (count($cards) < 0) {\n return;\n }\n $additionalInfo = $_subscription->getAdditionalInfo();\n $additionalInfo = !is_array($additionalInfo) ? unserialize($additionalInfo) : $additionalInfo;\n if (isset($additionalInfo['subscription_id'])) {\n $subscriptionId = $this->_encryptor->decrypt($additionalInfo['subscription_id']);\n foreach ($cards as $card) {\n if ($card->id == $subscriptionId) {\n return $card->last4;\n }\n }\n }\n } else {\n return;\n }\n }\n\n return;\n }", "title": "" }, { "docid": "0a77c1dcf7186a873968beb65eb0c25a", "score": "0.5487335", "text": "private function _getDeviceInfo(){\n\t\t$method = isset($_GET['device']) ? $_GET['device'] : ini_get('browscap');\n\t\tswitch($method){\n\t\t\tcase 'browscapini':\n\t\t\t\t$agent = $this->_browscapini();\n\t\t\t\tbreak;\n\t\t\tcase 'phpbrowscap':\n\t\t\t\t$agent = $this->_phpbrowscap();\n\t\t\t\tbreak;\n\t\t\tcase 'categorizr':\n\t\t\t\t$agent = $this->_categorizer();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif(!empty($method) && !is_null($method)){\n\t\t\t\t\t$agent = $this->_browscapini();\n\t\t\t\t} else {\n\t\t\t\t\tif(!isset($agent) && file_exists($this->dirs['browscap'])){\n\t\t\t\t\t\t$agent = $this->_phpbrowscap();\n\t\t\t\t\t}\n\t\t\t\t\tif(!isset($agent) && file_exists($this->dirs['categorizr'])){\n\t\t\t\t\t\t$agent = $this->_categorizer();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t\tif(isset($agent)){\n\t\t\t$this->test['device_detection']['info'] = $agent;\n\t\t\t$this->test['data']['initial'] = $this->data;\n\t\t} else {\n\t\t\t$info = date('H:i:s').\" - OpenTrack::_getDeviceInfo() >> \\r\\n\";\n\t\t\t$info .= \">>\\tNo device detection methods were successful. Please ensure you have implemented at least one of the possible methods.\\r\\n\";\n\t\t\t$info .= \">>\\tAlternatively, initiate this class with the first parameter as false to skip device detection.\";\n\t\t\t$this->_log($info);\n\t\t}\n\t}", "title": "" }, { "docid": "e740fddc4d0ed586552c005647723612", "score": "0.5447355", "text": "private function getCardLogoOptions() {\n return [\n [\n 'name' => $this->l('American Express/AMEX'),\n 'id_option' => 'american-express',\n ],\n [\n 'name' => $this->l('Dankort'),\n 'id_option' => 'dankort',\n ],\n [\n 'name' => $this->l('Diners'),\n 'id_option' => 'diners',\n ],\n [\n 'name' => $this->l('Discover'),\n 'id_option' => 'discover',\n ],\n [\n 'name' => $this->l('Forbrugsforeningen'),\n 'id_option' => 'forbrugsforeningen',\n ],\n [\n 'name' => $this->l('JCB'),\n 'id_option' => 'jcb',\n ],\n [\n 'name' => $this->l('Mastercard/Maestro'),\n 'id_option' => 'mastercard',\n ],\n [\n 'name' => $this->l('UnionPay'),\n 'id_option' => 'unionpay',\n ],\n [\n 'name' => $this->l('Visa/VPay/Visa Electron '),\n 'id_option' => 'visa',\n ],\n ];\n }", "title": "" }, { "docid": "508669f762f2256242da0b114e453fcc", "score": "0.54358673", "text": "private function getMoocInfo()\n {\n $tokenMooc = '';\n $user = $this->getUser();\n if ($user) {\n $tokenMooc = $user->getTokenMooc();\n }\n $mup = $this->container->get('bor_core.mooc_provider');\n\n return array('mooc_enter_url' => $mup->getURL(), 'mooc_login_url' => $mup->getLoginURL(), 'token_mooc' => $tokenMooc);\n }", "title": "" }, { "docid": "dc45bfa6617ef9a7c0225bf3af0f779e", "score": "0.5354292", "text": "public function cards() {\r\n\r\n $cards = array();\r\n\r\n $cards['amex'] = array( 'name' => 'American Express', 'value' => 'emex', 'image' => DEFAULT_IMAGES_LOC . '/card_amexp.png' );\r\n $cards['visa'] = array( 'name' => 'Visa', 'value' => 'visa', 'image' => DEFAULT_IMAGES_LOC . '/card_visa.png' );\r\n $cards['discover'] = array( 'name' => 'Discover', 'value' => 'discover', 'image' => DEFAULT_IMAGES_LOC . '/card_discover.png' );\r\n $cards['mastercard'] = array( 'name' => 'Mastercard', 'value' => 'mastercard', 'image' => DEFAULT_IMAGES_LOC . '/card_mastercard.png' );\r\n\r\n if( method_exists( $this->gateway, 'cards_accepted' ) ) {\r\n $cards = $this->gateway->cards_accepted( $cards );\r\n }\r\n\r\n return $cards;\r\n\r\n}", "title": "" }, { "docid": "af705f64716b6f3704b41b22f065b706", "score": "0.53239965", "text": "public function get_info()\n\t\t{\n\t\t\treturn array(\n\t\t\t\t'name'=>'First Data/LinkPoint API, North America',\n\t\t\t\t'description'=>'API implementation of the First Data/LinkPoint payment gateway, for North America.'\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "93bf9c34e1dc949e12f0075607777544", "score": "0.52559525", "text": "public function getGateway();", "title": "" }, { "docid": "28f72dbedf1112647527f84cad163f5b", "score": "0.5210313", "text": "public function connectionInfo()\n {\n $sftp_info = $this->sftpConnectionInfo();\n $mysql_info = $this->databaseConnectionInfo();\n $redis_info = $this->cacheserverConnectionInfo();\n $info = array_merge(\n array_combine(\n array_map(function ($key) {\n return \"sftp_$key\";\n }, array_keys($sftp_info)),\n array_values($sftp_info)\n ),\n array_combine(\n array_map(function ($key) {\n return \"mysql_$key\";\n }, array_keys($mysql_info)),\n array_values($mysql_info)\n ),\n array_combine(\n array_map(function ($key) {\n return \"redis_$key\";\n }, array_keys($redis_info)),\n array_values($redis_info)\n )\n );\n\n // Can only Use Git on dev/multidev environments\n if (!in_array($this->id, ['test', 'live',])) {\n $git_info = $this->gitConnectionInfo();\n $info = array_merge(\n array_combine(\n array_map(function ($key) {\n return \"git_$key\";\n }, array_keys($git_info)),\n array_values($git_info)\n ),\n $info\n );\n }\n\n return $info;\n }", "title": "" }, { "docid": "353b6aea2c86252d579e87b42b0f590e", "score": "0.51166385", "text": "protected function getMerchantInfo() {\n $din_params = $this->container->getParameter('payonline');\n\n if ($this->container->getParameter('kernel.environment') === 'dev') {\n $gateway_params = $din_params['dev'];\n } else {\n $gateway_params = $din_params['prod'];\n }\n\n return $gateway_params;\n }", "title": "" }, { "docid": "69e741b57de1ac63e0f5e6c1588ac52a", "score": "0.5110818", "text": "function get_info()\n\t\t{\n\t\t\tlist($status, $reason, $container_count, $total_bytes) =\n\t\t\t$this->cfs_http->head_account();\n\t\t\t#if ($status == 401 && $this->_re_auth()) {\n\t\t\t# return $this->get_info();\n\t\t\t#}\n\t\t\tif ($status < 200 || $status > 299) {\n\t\t\t\tthrow new JO_Api_Rackspace_Exception_Invalidresponse(\n\t\t\t\t\t\t\"Invalid response (\".$status.\"): \".$this->cfs_http->get_error());\n\t\t\t}\n\t\t\treturn array($container_count, $total_bytes);\n\t\t}", "title": "" }, { "docid": "e8cbe9b823246f5f8a0eb7e5f4b90289", "score": "0.5108039", "text": "public function getDevices(){\r\n ini_set('soap.wsdl_cache_enabled',0);\r\n ini_set('soap.wsdl_cache_ttl',0);\r\n \r\n $soapUrl = \"https://middleware-dev.mainone.net/net-boss/wsdl/1\";\r\n \r\n $context = stream_context_create ([ \r\n 'ssl' => [ \r\n 'verify_peer' => false,\r\n 'verify_peer_name' => false,\r\n 'allow_self_signed' => true \r\n ] \r\n ]);\r\n \r\n $client = new \\SoapClient ( $soapUrl, array (\r\n //'trace' => 1,\r\n 'sream_context' => $context \r\n ));\r\n \r\n if (!$client) {\r\n echo (\"Could not connect to SOAP server\\n\");\r\n }\r\n \r\n try {\r\n $result = $client->authenticate( \"api\", \"P@99word123\" );\r\n if (! $result) {\r\n return (\"Could not authenticate with the server\\n\");\r\n } else {\r\n $result = $client->getAuthenticatedUid();\r\n $devices = $client->core_getDevices();\r\n return $devices;\r\n }\r\n } catch ( \\Exception $e ) {\r\n print_r ( $e );\r\n }\r\n }", "title": "" }, { "docid": "7820b345326782d9c2c93329927941a7", "score": "0.5085233", "text": "private function getGateway(){\n return (new PaymentController)->getGateway();\n }", "title": "" }, { "docid": "d903c86a53e9ecf440c3f7b29dcea5d5", "score": "0.50845796", "text": "function listGuards()\n {\n return $this->guards->listServices();\n }", "title": "" }, { "docid": "6d8f7e1a70741387156dcbef2f6205f9", "score": "0.5054013", "text": "private function getInfoGPON($interface)\n {\n $input = $this->telnet->exec(\"show gpon onu detail-info {$interface}\");\n if (!$input) throw new Exception(\"Empty response on command ' gpon onu detail-info {$interface}'\");\n if(preg_match('/No related information to show/', $input)) {\n throw new Exception('No related information to show');\n }\n @list($info, $logs) = explode(\"------------------------------------------\", $input);\n if(!$logs || !$info) {\n throw new Exception(\"Error parse ont information\");\n }\n $lines = explode(\"\\n\", $info);\n $ont_info = [];\n foreach ($lines as $line) {\n if(preg_match('/^(.*?)\\:(.*)$/', trim($line), $m)) {\n $val = trim($m[2]);\n switch (trim($m[1])) {\n case 'Name': $ont_info['name'] = $val; break;\n case 'Type': $ont_info['type'] = $val; break;\n case 'State': $ont_info['state'] = $val; break;\n case 'Configured channel': $ont_info['configured_channel'] = $val; break;\n case 'Current channel': $ont_info['current_channel'] = $val; break;\n case 'Admin state': $ont_info['admin_state'] = $val; break;\n case 'Phase state': $ont_info['phase_state'] = $val; break;\n case 'Config state': $ont_info['config_state'] = $val; break;\n case 'Authentication mode': $ont_info['auth_mode'] = $val; break;\n case 'SN Bind': $ont_info['sn_bind'] = $val; break;\n case 'Serial number': $ont_info['serial'] = $val; break;\n case 'Password': $ont_info['password'] = $val; break;\n case 'Description': $ont_info['description'] = $val; break;\n case 'Vport mode': $ont_info['vport_mode'] = $val; break;\n case 'DBA Mode': $ont_info['dba_mode'] = $val; break;\n case 'ONU Status': $ont_info['onu_status'] = $val; break;\n case 'OMCI BW Profile': $ont_info['bw_profile'] = $val; break;\n case 'Line Profile': $ont_info['line_profile'] = $val; break;\n case 'Service Profile': $ont_info['service_profile'] = $val; break;\n case 'ONU Distance': $ont_info['onu_distance'] = $val; break;\n case 'Online Duration': $ont_info['online_duration'] = $val; break;\n case 'FEC': $ont_info['fec'] = $val; break;\n case 'FEC actual mode': $ont_info['fec_actual_mode'] = $val; break;\n case '1PPS+ToD': $ont_info['pps1_tod'] = $val; break;\n case 'Auto replace': $ont_info['auto_replace'] = $val; break;\n case 'Multicast encryption': $ont_info['mcast_encrypt'] = $val; break;\n case 'Multicast encryption current state': $ont_info['mcast_encrypt_current_state'] = $val; break;\n }\n }\n }\n $ont_logs = [];\n foreach (explode(\"\\n\", $logs) as $line) {\n if(preg_match('/^([0-9]{1,3})[ ]{1,3}([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2})[ ]{1,}([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2})[ ]{1,}(.*)/', trim($line), $m)) {\n $ont_logs[] = [\n '_id' => trim($m[1]),\n 'authpath_time' => trim($m[2]),\n 'dereg_time' => trim($m[3]),\n 'reason' => trim($m[4]),\n ];\n } elseif (preg_match('/^([0-9]{1,3})[ ]{1,3}([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2})[ ]{1,}([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2})/', trim($line), $m)) {\n $ont_logs[] = [\n '_id' => trim($m[1]),\n 'authpath_time' => trim($m[2]),\n 'dereg_time' => trim($m[3]),\n 'reason' => '',\n ];\n }\n }\n $ont_info['logs'] = $ont_logs;\n return [\n 'type' => 'gpon',\n 'data' => $ont_info,\n ];\n }", "title": "" }, { "docid": "a5f615af1303e9320cad9d3f57441b27", "score": "0.5039754", "text": "public function getSupportedGateways()\n\t{\n\t\t$package = json_decode( file_get_contents(__DIR__.'/../../../composer.json' ), true );\n\t\treturn $package[ 'extra' ][ 'gateways' ];\n\t}", "title": "" }, { "docid": "cb7d7b3648f5109512656d6b9f794bfa", "score": "0.5011004", "text": "function getRegLogos($acct, $alid) {\n\t\t$db=$this->dbh;\n\t\t$out=array();\n\t\t// set up private branded filter\n\t\t$sql=\"select Acc_EnablePrivateBranded from Accounts where Acc_ID='$acct'\";\n\t\t$res=mysql_query($sql,$db);\n\t\tif ($res) {\n\t\t\t$row=mysql_fetch_assoc($res);\n\t\t\tmysql_free_result($res);\n\t\t}\n\n\t\t$sql=\"select Logo_ID, Logo_Name, Logo_RelativeURL from Logos where AL_ID='$alid' || \".\n\t\t\"(Acc_ID='$acct' && AL_ID=0)\";\n\t\tif ($row['Acc_EnablePrivateBranded'] < 1) {\n\t\t\t$sql.=\" || Logo_ID=1\";\n\t\t}\n\t\t$res=mysql_query($sql,$db);\n\t\tif ($res) {\n\t\t\twhile (($row=mysql_fetch_assoc($res))!=false) {\n\t\t\t\t$out[]=$row;\n\t\t\t}\n\t\t\tmysql_free_result($res);\n\t\t}\n\t\treturn $out;\n\t}", "title": "" }, { "docid": "62b7c028e9ab657b5922813392c8547c", "score": "0.5007108", "text": "public function getPaymentInfo();", "title": "" }, { "docid": "db38f8897e615cced62b4193ec2ffbcf", "score": "0.49972022", "text": "public function get_system_information()\n {\n $curl_version = '';\n if (function_exists('curl_version')) {\n $curl_version = curl_version();\n $curl_version = $curl_version['version'].', '.$curl_version['ssl_version'];\n } elseif (extension_loaded('curl')) {\n $curl_version = __('cURL installed but unable to retrieve version.', 'wpcloudplugins');\n }\n\n // WP memory limit.\n $wp_memory_limit = Helpers::return_bytes(WP_MEMORY_LIMIT);\n if (function_exists('memory_get_usage')) {\n $wp_memory_limit = max($wp_memory_limit, Helpers::return_bytes(@ini_get('memory_limit')));\n }\n\n // Return all environment info. Described by JSON Schema.\n $environment = [\n 'home_url' => get_option('home'),\n 'site_url' => get_option('siteurl'),\n 'version' => OUTOFTHEBOX_VERSION,\n 'cache_directory' => OUTOFTHEBOX_CACHEDIR,\n 'cache_directory_writable' => (bool) @fopen(OUTOFTHEBOX_CACHEDIR.'/test-cache.log', 'a'),\n 'wp_version' => get_bloginfo('version'),\n 'wp_multisite' => is_multisite(),\n 'wp_memory_limit' => $wp_memory_limit,\n 'wp_debug_mode' => (defined('WP_DEBUG') && WP_DEBUG),\n 'wp_cron' => !(defined('DISABLE_WP_CRON') && DISABLE_WP_CRON),\n 'language' => get_locale(),\n 'external_object_cache' => wp_using_ext_object_cache(),\n 'server_info' => isset($_SERVER['SERVER_SOFTWARE']) ? wp_unslash($_SERVER['SERVER_SOFTWARE']) : '',\n 'php_version' => phpversion(),\n 'php_post_max_size' => Helpers::return_bytes(ini_get('post_max_size')),\n 'php_max_execution_time' => ini_get('max_execution_time'),\n 'php_max_input_vars' => ini_get('max_input_vars'),\n 'curl_version' => $curl_version,\n 'max_upload_size' => wp_max_upload_size(),\n 'default_timezone' => date_default_timezone_get(),\n 'curl_enabled' => (function_exists('curl_init') && function_exists('curl_exec')),\n 'allow_url_fopen' => ini_get('allow_url_fopen'),\n 'gzip_compression_enabled' => extension_loaded('zlib'),\n 'mbstring_enabled' => extension_loaded('mbstring'),\n 'flock' => (false === strpos(ini_get('disable_functions'), 'flock')),\n 'zip_archive' => class_exists('ZipArchive'),\n 'secure_connection' => is_ssl(),\n 'hide_errors' => !(defined('WP_DEBUG') && defined('WP_DEBUG_DISPLAY') && WP_DEBUG && WP_DEBUG_DISPLAY) || 0 === intval(ini_get('display_errors')),\n 'gravity_forms' => class_exists('GFForms'),\n 'formidableforms' => class_exists('FrmAppHelper'),\n 'gravity_pdf' => class_exists('GFPDF_Core'),\n 'gravity_wpdatatables' => class_exists('WPDataTable'),\n 'wpforms' => defined('WPFORMS_VERSION'),\n 'contact_form_7' => defined('WPCF7_PLUGIN'),\n 'woocommerce' => class_exists('WC_Integration'),\n 'woocommerce_product_documents' => class_exists('WC_Product_Documents'),\n ];\n\n // Get Theme info\n $active_theme = wp_get_theme();\n\n // Get parent theme info if this theme is a child theme, otherwise\n // pass empty info in the response.\n if (is_child_theme()) {\n $parent_theme = wp_get_theme($active_theme->template);\n $parent_theme_info = [\n 'parent_name' => $parent_theme->name,\n 'parent_version' => $parent_theme->version,\n 'parent_author_url' => $parent_theme->{'Author URI'},\n ];\n } else {\n $parent_theme_info = [\n 'parent_name' => '',\n 'parent_version' => '',\n 'parent_version_latest' => '',\n 'parent_author_url' => '',\n ];\n }\n\n $active_theme_info = [\n 'name' => $active_theme->name,\n 'version' => $active_theme->version,\n 'author_url' => esc_url_raw($active_theme->{'Author URI'}),\n 'is_child_theme' => is_child_theme(),\n ];\n\n $theme = array_merge($active_theme_info, $parent_theme_info);\n\n // Get Active plugins\n require_once ABSPATH.'wp-admin/includes/plugin.php';\n\n if (!function_exists('get_plugin_data')) {\n return [];\n }\n\n $active_plugins = (array) get_option('active_plugins', []);\n if (is_multisite()) {\n $network_activated_plugins = array_keys(get_site_option('active_sitewide_plugins', []));\n $active_plugins = array_merge($active_plugins, $network_activated_plugins);\n }\n\n $active_plugins_data = [];\n\n foreach ($active_plugins as $plugin) {\n $data = get_plugin_data(WP_PLUGIN_DIR.'/'.$plugin);\n $active_plugins_data[] = [\n 'plugin' => $plugin,\n 'name' => $data['Name'],\n 'version' => $data['Version'],\n 'url' => $data['PluginURI'],\n 'author_name' => $data['AuthorName'],\n 'author_url' => esc_url_raw($data['AuthorURI']),\n 'network_activated' => $data['Network'],\n ];\n }\n\n include sprintf('%s/templates/admin/system_information.php', OUTOFTHEBOX_ROOTDIR);\n }", "title": "" }, { "docid": "8cdad33eda33edb5659a5b1582788113", "score": "0.49830413", "text": "function wpsc_gateway_name() {\n\tglobal $wpsc_gateway;\n\t$display_name = '';\n\n\t$payment_gateway_names = get_option( 'payment_gateway_names' );\n\n\t// Use gateway internal name if set\n\tif ( isset( $payment_gateway_names[ $wpsc_gateway->gateway['internalname'] ] ) && ( $payment_gateway_names[ $wpsc_gateway->gateway['internalname'] ] != '' || wpsc_show_gateway_image() ) ) {\n\t\t$display_name = $payment_gateway_names[ $wpsc_gateway->gateway['internalname'] ];\n\t}\n\n\t$display_name = apply_filters( 'wpsc_gateway_name', $display_name, $wpsc_gateway->gateway );\n\n\t// If no display name or image, use default\n\tif ( $display_name == '' && ! wpsc_show_gateway_image() ) {\n\t\t$display_name = __( 'Credit Card', 'wpsc' );\n\t}\n\n\treturn $display_name;\n}", "title": "" }, { "docid": "20e39cb449f26e63021f73d9b172932c", "score": "0.4981418", "text": "public function getDriverInfo()\n {\n }", "title": "" }, { "docid": "69888cf852bc467e0169573e1c3adbad", "score": "0.49765298", "text": "public function get_debug_info() {\n\n\t\t$mg_text = array();\n\n\t\t$auth = new Auth();\n\n\t\t$mg_text[] = '<strong>App ID/Pass:</strong> ' . ( $auth->is_clients_saved() ? 'Yes' : 'No' );\n\t\t$mg_text[] = '<strong>Tokens:</strong> ' . ( ! $auth->is_auth_required() ? 'Yes' : 'No' );\n\n\t\treturn implode( '<br>', $mg_text );\n\t}", "title": "" }, { "docid": "a1e8b4e814d0ed5502d16b329ccbb47b", "score": "0.4974296", "text": "public function getPlatformInfo()\n {\n return [\n \"name\" => \"ILIAS\",\n \"version\" => self::version()->getILIASVersion(),\n \"h5pVersion\" => self::plugin()->getPluginObject()->getVersion()\n ];\n }", "title": "" }, { "docid": "6dc253f2e07c6a8ba21930df44c09e2e", "score": "0.49654603", "text": "static function getGatewayOptions()\r\n {\r\n $options = array(\r\n 'sslseal',\r\n 'nuclear_HTTPS',\r\n 'gateway_environment',\r\n 'currency',\r\n 'use_ssl',\r\n 'mpesa_secret_key',\r\n 'mpesa_api_key',\r\n 'mpesa_short_code',\r\n 'pmpro_mpesa_uid',\r\n 'tax_state',\r\n 'tax_rate',\r\n 'accepted_credit_cards'\r\n );\r\n\r\n return $options;\r\n }", "title": "" }, { "docid": "f329386e1bf7a0f8024efb1110a303b0", "score": "0.49532506", "text": "public function getAllCryptoCardGeneralInfo($options = [])\n {\n return $this->send(\n $this->endpoint.\"/data/cards/general\",\n 'GET',\n ['query' => array_merge($this->getEndpointConfiguration(), $options)]\n );\n }", "title": "" }, { "docid": "5e27a79d752454ffa7aad6c5bc938992", "score": "0.49409807", "text": "public static function admin_display_payment_gateways()\n {\n $return = array (\n 'name' => self::gateway_name,\n 'title' => 'CC - LinkPoint',//how it's displayed in admin\n );\n\n return $return;\n }", "title": "" }, { "docid": "b9bcac3ba721c7c8eb8098a56fdeb338", "score": "0.49396548", "text": "public function getDeepLinkingHeader($request)\n\t{\t\n\t $loginData=$request->getAttribute(\"loginData\");\n\t if(!$loginData)\n\t\t\treturn;\n\t\t$authchecksum = $loginData[\"AUTHCHECKSUM\"];\n\n\t\t$this->loggedInProfileId = $loginData[\"PROFILEID\"];\n\t\t$this->loggedInUsername = $loginData[\"USERNAME\"];\n\t\t$this->loggedInGender = $loginData[\"GENDER\"];\n\t\tif(!$this->loggedInProfileId)\n\t\t\treturn;\n\t\t$isIosDeep = JsMemcache::getInstance()->get(\"iosDeepLinking_\".$this->loggedInProfileId);\n\n\t\tif(!$isIosDeep && MobileCommon::isIOSPhone())\n\t\t{\n\n\t\t\t$this->date = date(\"Y-m-d H:i:s\", strtotime(\"-1 week\"));\n\t\t\t$conditionValue = $this->verifyDeepLinkingConditions();\n\t\t\t$loggedInData = $this->loggedInUserCondition($this->loggedInProfileId);\n\t\t\tif($conditionValue && $loggedInData)\n\t\t\t{\n\t\t\t\t$isIosDeep = 1;\n\t\t\t}\n\t\t}\n\t\tif($isIosDeep==1)\n\t\t{\n\t\t\t$SITE_URL = str_replace(\"http:\",\"\",sfConfig::get('app_site_url'));\n\t\t\t$trackingId = $this->fetchApiData($request);\n\t\t\t$profilechecksum=$request->getParameter('profilechecksum');\n\t\t\t$stype = $request->getParameter('stype');\n\t\t\tJsMemcache::getInstance()->set(\"iosDeepLinking_\".$this->loggedInProfileId,1);\t\t\t\t\n\t\t\t$headerURL = 'comjeevansathi:'.$SITE_URL.'?{\"profilechecksum\":\"'.$profilechecksum.'\",\"trackingId\":\"'.$trackingId.'\",\"landingScreen\":\"'.self::LANDING_SCREEN.'\",\"stype\":\"'.$stype.'\",\"authchecksum\":\"'.$authchecksum.'\",\"username\":\"'.$this->loggedInUsername.'\",\"gender\":\"'.$this->loggedInGender.'\"}';\n\t\t\treturn($headerURL);\n\t\t}\n\t\tJsMemcache::getInstance()->set(\"iosDeepLinking_\".$this->loggedInProfileId,2);\t\t\n\t}", "title": "" }, { "docid": "e20d8435407a5f3b50ee029c9b3686e6", "score": "0.49359334", "text": "abstract public function getGateway();", "title": "" }, { "docid": "a23580713c2fe07c3a39134cbfe461b6", "score": "0.4935563", "text": "public function get_info()\n\t\t{\n\t\t\treturn array(\n\t\t\t\t'name'=>'Authorize.Net AIM',\n\t\t\t\t'description'=>'Authorize.net Advanced Integration Method.'\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "6c0d5496eeb57ca078cce5267466fe9a", "score": "0.49300596", "text": "function browser_info() {\n\t\t$info = get_browser(null, true);\n\t\t$browser = $info['browser'] . ' ' . $info['version'];\n\t\t$os = $info['platform'];\n\t\t$ip = $_SERVER['REMOTE_ADDR'];\n\t\t\n\t\treturn array('ip' => $ip, 'browser' => $browser, 'os' => $os);\n\t}", "title": "" }, { "docid": "4db7517f363b8dd6a34b6134cc778259", "score": "0.49154058", "text": "public function getCardInformation($subscription) {\n $additionalInfo = $subscription->getAdditionalInfo();\n $additionalInfo = !is_array($additionalInfo) ? unserialize($additionalInfo) : $additionalInfo;\n $cardId = isset($additionalInfo['subscription_id']) ? $additionalInfo['subscription_id'] : null;\n if ($cardId == null) {\n return;\n }\n $subscriptionId = $this->_encryptor->decrypt($cardId);\n \n $this->_objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n $this->_allcardcollection = $this->_objectManager->create('Magedelight\\Cybersource\\Model\\Cards');\n \n $result = $this->_allcardcollection->getCollection()\n ->addFieldToFilter('subscription_id', $subscriptionId)\n ->getData();\n if (count($result) >= 1) {\n return $result[0]['cc_last_4'];\n }\n\n return;\n }", "title": "" }, { "docid": "457c07a07229cba0bb91a645f7099fdd", "score": "0.48917615", "text": "function add_cardcom_gateway($methods) {\r\n $methods[] = 'WC_Gateway_Cardcom';\r\n return $methods;\r\n }", "title": "" }, { "docid": "daeaa989fc62342f85e3e96e2704bad5", "score": "0.48813367", "text": "protected function get_gateway() {\n\n\t\treturn $this->gateway;\n\t}", "title": "" }, { "docid": "9a1cf984e5281ec047aec87cc47950b7", "score": "0.48808226", "text": "protected abstract function getMerchantInformation();", "title": "" }, { "docid": "c9635ccc74758bf92858ab8708250776", "score": "0.48805442", "text": "private function _getShopInfo()\n {\n // Load the shopify model\n $this->_loadShopify();\n\n return $this->Shopify_model->accessAPI( 'shop.json' );\n }", "title": "" }, { "docid": "7eab17040ef767107387aa33e57cbf1d", "score": "0.48762813", "text": "public function details(Request $request)\n {\n\n $this->validate($request,\n [\n 'device_type' => 'in:android,ios',\n ]);\n\n try {\n\n if ($user = User::find(Auth::user()->id)) {\n\n if ($request->has('device_token')) {\n $user->device_token = $request->device_token;\n }\n\n if ($request->has('device_type')) {\n $user->device_type = $request->device_type;\n }\n\n if ($request->has('device_id')) {\n $user->device_id = $request->device_id;\n }\n\n $user->save();\n\n if ($user->language != null) {\n app()->setLocale($user->language);\n }\n\n $align = ($user->language == 'ar') ? 'text-align: right' : '';\n\n $user->currency = config('constants.currency');\n $user->sos = config('constants.sos_number', '911');\n $user->app_contact = config('constants.app_contact', '5777');\n $user->measurement = config('constants.distance', 'Kms');\n\n\n $user->cash = (int)config('constants.cash');\n $user->card = (int)config('constants.card');\n $user->payumoney = (int)config('constants.payumoney');\n $user->paypal = (int)config('constants.paypal');\n $user->paypal_adaptive =\n (int)config('constants.paypal_adaptive');\n $user->braintree = (int)config('constants.braintree');\n $user->paytm = (int)config('constants.paytm');\n\n $user->stripe_secret_key =\n config('constants.stripe_secret_key');\n $user->stripe_publishable_key =\n config('constants.stripe_publishable_key');\n $user->stripe_currency =\n config('constants.stripe_currency');\n\n $user->payumoney_environment =\n config('constants.payumoney_environment');\n $user->payumoney_key =\n config('constants.payumoney_key');\n $user->payumoney_salt =\n config('constants.payumoney_salt');\n $user->payumoney_auth =\n config('constants.payumoney_auth');\n\n $user->paypal_environment =\n config('constants.paypal_environment');\n $user->paypal_currency =\n config('constants.paypal_currency');\n $user->paypal_client_id =\n config('constants.paypal_client_id');\n $user->paypal_client_secret =\n config('constants.paypal_client_secret');\n\n $user->braintree_environment =\n config('constants.braintree_environment');\n $user->braintree_merchant_id =\n config('constants.braintree_merchant_id');\n $user->braintree_public_key =\n config('constants.braintree_public_key');\n $user->braintree_private_key =\n config('constants.braintree_private_key');\n\n $user->referral_count =\n config('constants.referral_count', '0');\n $user->referral_amount =\n config('constants.referral_amount', '0');\n $user->referral_text =\n trans('api.user.invite_friends');\n $user->referral_total_count =\n (new ReferralResource)->get_referral('user',\n Auth::user()->id)[0]->total_count;\n $user->referral_total_amount =\n (new ReferralResource)->get_referral('user',\n Auth::user()->id)[0]->total_amount;\n $user->referral_total_text =\n \"<p style='font-size:16px; color: #000; $align'>\"\n . trans('api.user.referral_amount') . \": \"\n . (new ReferralResource)->get_referral('user',\n Auth::user()->id)[0]->total_amount . \"<br>\"\n . trans('api.user.referral_count') . \": \"\n . (new ReferralResource)->get_referral('user',\n Auth::user()->id)[0]->total_count . \"</p>\";\n $user->ride_otp =\n (int)config('constants.ride_otp');\n\n return $user;\n } else {\n return response()->json(['error' => trans('api.user.user_not_found')],\n 422);\n }\n } catch (Exception $e) {\n return response()->json(['error' => trans('api.something_went_wrong')],\n 500);\n }\n }", "title": "" }, { "docid": "a894371338e0c742d27d8f2ea9368aae", "score": "0.48618814", "text": "public static function get_details() {\r\n\r\n\t\t$class_title = esc_html__( 'LearnDash Group Logo/List ', 'uncanny-pro-toolkit' );\r\n\r\n\t\t$kb_link = 'https://www.uncannyowl.com/knowledge-base/ld-group-logo-list/';\r\n\r\n\t\t/* Sample Simple Description with shortcode */\r\n\t\t$class_description = esc_html__( 'Add group-specific logos to any page, including registration pages. A shortcode to list a user’s LearnDash Groups is also available.', 'uncanny-pro-toolkit' );\r\n\r\n\t\t/* Icon as fontawesome icon */\r\n\t\t$class_icon = '<i class=\"uo_icon_pro_fa uo_icon_fa fa fa-file-image-o \"></i><span class=\"uo_pro_text\">PRO</span>';\r\n\r\n\t\t$tags = 'learndash';\r\n\t\t$type = 'pro';\r\n\r\n\t\treturn array(\r\n\t\t\t'title' => $class_title,\r\n\t\t\t'type' => $type,\r\n\t\t\t'tags' => $tags,\r\n\t\t\t'kb_link' => $kb_link, // OR set as null not to display\r\n\t\t\t'description' => $class_description,\r\n\t\t\t'dependants_exist' => self::dependants_exist(),\r\n\t\t\t'settings' => false,\r\n\t\t\t'icon' => $class_icon,\r\n\t\t);\r\n\r\n\t}", "title": "" }, { "docid": "1391217a01fbc0fd3ead84e658975777", "score": "0.48604444", "text": "private function getHipayGateways()\n {\n $hipayGateways = array();\n $availableGateways = WC()->payment_gateways->payment_gateways();\n foreach ($availableGateways as $gateway) {\n if ($gateway instanceof Hipay_Gateway_Local_Abstract) {\n $hipayGateways[$gateway->id] = $gateway->method_title;\n }\n }\n return $hipayGateways;\n }", "title": "" }, { "docid": "64269b0d1f9901ee475accd494220311", "score": "0.48466516", "text": "function get_interfaces_with_gateway() {\n\tglobal $config;\n\t$ints = array();\n\t$vfaces = array(\n\t\t\t'bridge.?*',\n\t\t\t'ppp.?*',\n\t\t\t'sl.?*',\n\t\t\t'gif.?*',\n\t\t\t'faith.?*',\n\t\t\t'lo.?*',\n\t\t\t'ng.?*',\n\t\t\t'vlan.?*',\n\t\t\t'pflog.?*',\n\t\t\t'pfsync.?*',\n\t\t\t'enc.?*',\n\t\t\t'tun.?*',\n\t\t\t'carp.?*'\n\t\t);\n\t$ifdescrs = get_interface_list(\"active\",\"physical\",$vfaces);\n\n\t/* loop interfaces, check config for outbound */\n\tforeach ($ifdescrs as $ifdescr => $ifname) {\n\t\t$friendly = $ifname['friendly'];\n\t\tswitch ($config['interfaces'][$friendly]['ipaddr']) {\n\t\tcase \"dhcp\":\n\t\tcase \"carpdev-dhcp\":\n\t\tcase \"pppoe\":\n\t\tcase \"pptp\":\n\t\t\t$ints[] = $friendly;\n\t\t\tbreak;\t\n\t\tdefault:\n\t\t\tif ($config['interfaces'][$friendly]['pointtopoint']) \n\t\t\t\t$ints[] = $friendly;\n\t\t\telse if ($config['interfaces'][$friendly]['gateway'] <> \"\")\n\t\t\t\t$ints[] = $friendly;\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn $ints;\n}", "title": "" }, { "docid": "08edff12079f768b213dcaebf70a053e", "score": "0.48416692", "text": "function connectionInfo() {\r\n\t\tif ($this->db_type == \"pg\") {\r\n\t\t\t$info = \"HOST: \" . pg_host($this->db_cursor) . \" \";\r\n\t\t\t$info .= \"DBNAME: \" . pg_dbname($this->db_cursor) . \" \";\r\n\t\t\treturn $info;\r\n\t\t} else {\r\n\t\t\tdie(\"Diese Methode ist nur fuer PostgreSQL implementiert\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0b684cfea68325b850ce2e7a34b91697", "score": "0.48413885", "text": "function getOsDetailsCsv($hostname) {\n\t\t$hostname = checkHostnameForDashes($hostname); \n\t\texec(escapeshellcmd(\"wmic /node:$hostname os get version, caption, countryCode /format:csv\"), $output, $result);\n\t\tif ($result == 0) {\n\t\t\treturn [explode(',', $output[2]), $result];\n\t\t} \n\t\treturn [$output, $result];\n\t}", "title": "" }, { "docid": "606f13e978dda42011258c9d6cd8b9e7", "score": "0.4837288", "text": "public function get_gateway() {\n\t\treturn $this->gateway;\n\t}", "title": "" }, { "docid": "1e2fd402ced51a240beee9dbec959a7f", "score": "0.4832696", "text": "abstract public function getFrontendGatewayOptions();", "title": "" }, { "docid": "6eb6f6e85c9b18429cf6502e50a71258", "score": "0.48184407", "text": "public function info()\n {\n $info = array();\n $info['author'] = 'Chris Graham';\n $info['organisation'] = 'ocProducts';\n $info['hacked_by'] = null;\n $info['hack_version'] = null;\n $info['version'] = 2;\n $info['locked'] = false;\n $info['parameters'] = array('param', 'filter', 'video_filter', 'select', 'video_select', 'zone', 'title', 'sort', 'days', 'render_if_empty', 'max', 'start', 'pagination', 'root', 'guid', 'as_guest');\n return $info;\n }", "title": "" }, { "docid": "dd1a07f232de17f2600a8f8ef4f3c0e6", "score": "0.48183236", "text": "public function card()\n {\n $user = Auth::user();\n $bizpay = Merchant::findorFail($user->merchant_id);\n $gateways = ($bizpay->gateways->all());\n $gatewayCredentials = $user->customerDetail->all();\n\n if (count($gatewayCredentials) < 1) {\n $credential1 = \"\";\n $credential2 = \"\";\n\n //TODO: Multi-gateway: check for default\n\n foreach ($gateways as $gateway) {\n if ($gateway->gateway == 1) {\n $credential1 = $gateway->credential_1;\n $credential2 = $gateway->credential_2;\n }\n }\n\n return view('dashboard.merchant.create', compact('credential1', 'credential2'));\n } else {\n $card = ($gatewayCredentials[0]);\n\n return view('dashboard.client.card', compact('card'));\n }\n\n }", "title": "" }, { "docid": "3ef2c8fc3e18334722257635122c27a3", "score": "0.48166502", "text": "public function describeCustomerGateways($request)\n {\n if (!$request instanceof Amazon_EC2_Model_DescribeCustomerGatewaysRequest) {\n require_once ('Amazon/EC2/Model/DescribeCustomerGatewaysRequest.php');\n $request = new Amazon_EC2_Model_DescribeCustomerGatewaysRequest($request);\n }\n \n require_once ('Amazon/EC2/Model/DescribeCustomerGatewaysResponse.php');\n return Amazon_EC2_Model_DescribeCustomerGatewaysResponse::fromXML($this->_invoke($this->_convertDescribeCustomerGateways($request)));\n}", "title": "" }, { "docid": "9538b19fb1812abfad50f2029837e168", "score": "0.48075867", "text": "public static function fetchUserCreditCardDetails() {\n $db = new Db();\n $sessionObj = new LibSession();\n $userId = $sessionObj->get('userID');\n $cardDetails = $db->selectRecord(\"general\", \"*\", \" nUserId=\".intval($userId));\n \n if(!empty($cardDetails)) { \n foreach ($cardDetails as $key=>$value) {\n $cardDetails->$key = self::decrytCreditCardDetails($value);\n }\n }\n Logger::info($cardDetails);\n return $cardDetails;\n }", "title": "" }, { "docid": "ad4860daf0399b75a3436ef36721dabd", "score": "0.48074836", "text": "public static function admin_display_payment_gateways()\n {\n $return = array (\n 'name' => self::gateway_name,\n 'title' => 'ePay.dk',//how it's displayed in admin\n );\n\n return $return;\n }", "title": "" }, { "docid": "2b537b51c1dc3121e928b1c1879d2f1c", "score": "0.47982457", "text": "public function get_info()\n\t\t{\n\t\t\treturn array(\n\t\t\t\t'name'=>'iDEAL',\n\t\t\t\t'custom_payment_form'=>'backend_payment_form.htm',\n\t\t\t\t'description'=>'iDEAL payment method'\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "05d70e5ecc0e335fd35f9ca5de2bfeae", "score": "0.47908682", "text": "public function info()\n {\n $info = array();\n $info['author'] = 'Chris Graham';\n $info['organisation'] = 'ocProducts';\n $info['hacked_by'] = null;\n $info['hack_version'] = null;\n $info['version'] = 2;\n $info['locked'] = false;\n $info['parameters'] = array(\n 'filter',\n 'param',\n 'efficient',\n 'select',\n 'select_b',\n 'title',\n 'zone',\n 'sort',\n 'days',\n 'lifetime',\n 'pinned',\n 'no_links',\n 'give_context',\n 'include_breadcrumbs',\n 'max',\n 'start',\n 'pagination',\n 'root',\n 'attach_to_url_filter',\n 'render_if_empty',\n 'guid',\n 'as_guest',\n );\n return $info;\n }", "title": "" }, { "docid": "1e1e85a8d3bc1b889c66aacdd3dacdb6", "score": "0.4790676", "text": "function nzshpcrt_get_gateways() {\n\n\tglobal $nzshpcrt_gateways;\n\n\tif ( !is_array( $nzshpcrt_gateways ) )\n\t\twpsc_core_load_gateways();\n\n\treturn $nzshpcrt_gateways;\n\n}", "title": "" }, { "docid": "a80d739e8dcdf48f5f08858d76a7830e", "score": "0.4774174", "text": "public function getDebugInfos() {\n $requestHeaders = $this->__getLastRequestHeaders();\n $request = $this->__getLastRequest();\n $responseHeaders = $this->__getLastResponseHeaders();\n $response = $this->__getLastResponse();\n\n $msg = '';\n $msg .= \"Request Headers:\\n\" . $requestHeaders . \"\\n\";\n $msg .= \"Request:\\n\" . $request . \"\\n\";\n\n $msg .= \"Response Headers:\\n\" . $responseHeaders . \"\\n\";\n $msg .= \"Response:\\n\" . $response . \"\\n\";\n return $msg;\n }", "title": "" }, { "docid": "37e6bf28779462db84f584806e31d83b", "score": "0.4771513", "text": "public function info() {\n\t\t\n\t\t// get Magento config\n\t $config = Mage::getConfig()->getResourceConnectionConfig(\"default_setup\");\n\n\t $dbinfo = array(\n\t \"host\" => $config->host,\n\t \"user\" => $config->username,\n\t \"pass\" => $config->password,\n\t \"dbname\" => $config->dbname\n\t );\n\n\t return $dbinfo; \t\n }", "title": "" }, { "docid": "51fb0ca59b1103de327102912606c7f0", "score": "0.47680572", "text": "function _getClientInfos()\n {\n $this->arrClient['useragent'] = htmlspecialchars($_SERVER['HTTP_USER_AGENT'], ENT_QUOTES, CONTREXX_CHARSET);\n if (stristr($this->arrClient['useragent'],\"phpinfo\")) {\n $this->arrClient['useragent'] = \"<b>p_h_p_i_n_f_o() Possible Hacking Attack</b>\";\n }\n\n $this->arrClient['language'] = htmlspecialchars($_SERVER['HTTP_ACCEPT_LANGUAGE'], ENT_QUOTES, CONTREXX_CHARSET);\n\n $this->_getProxyInformations(); // get also the client ip\n\n $this->arrClient['host'] = @gethostbyaddr($this->arrClient['ip']);\n if ($this->arrClient['host'] == $this->arrClient['ip']) { // is remote host available?\n $this->arrClient['host'] = '';\n } else {\n $arrStrHost = explode(\".\",$this->arrClient['host']);\n if (count($arrStrHost)>=3) {\n $this->arrClient['hostname'] = $arrStrHost[count($arrStrHost)-2].'.'.$arrStrHost[count($arrStrHost)-1];\n $this->arrClient['country'] = $arrStrHost[count($arrStrHost)-1];\n } else {\n $this->arrClient['hostname'] = \"\";\n $this->arrClient['country'] = \"\";\n }\n }\n\n $this->_getReferer();\n $this->_checkForSpider();\n $this->_checkMobilePhone();\n\t\t\n\t\t// Anonymize if necessary\n\t\tif ($this->arrConfig['exclude_identifying_info']['status']) {\n\t\t\t// Exclude the least significant part from the hostname or ip address\n\t\t\t$this->arrClient['ip'] = preg_replace('/[0-9a-fA-F]+$/', '*', $this->arrClient['ip']);\n\t\t\t$this->arrClient['host'] = preg_replace('/^[a-zA-Z0-9-_]+\\./', '*.', $this->arrClient['host']);\n\t\t}\n\t\t\n $this->md5Id = md5($this->arrClient['ip'].$this->arrClient['useragent'].$this->arrClient['language'].$this->arrProxy['ip'].$this->arrProxy['host']);\n }", "title": "" }, { "docid": "2c32cecfadc6d787a3aab1f95eb990c3", "score": "0.47649986", "text": "public function getPaymentGateway();", "title": "" }, { "docid": "e30960e8e8db9f21ae961ae91ac450c1", "score": "0.47572395", "text": "public function getPlatform(){\n echo $this->platform;\n }", "title": "" }, { "docid": "ea3e26643b2cd81cf766632fd0118071", "score": "0.47553578", "text": "function it_exchange_2checkout_addon_get_card_types() {\n\n\t$cards = array(\n\n\t\tarray(\n\t\t\t'name' => 'Amex',\n\t\t\t'slug' => 'amex',\n\t\t\t'lengths' => '15',\n\t\t\t'prefixes' => '34,37',\n\t\t\t'checksum' => true\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'Discover',\n\t\t\t'slug' => 'discover',\n\t\t\t'lengths' => '16',\n\t\t\t'prefixes' => '6011,622,64,65',\n\t\t\t'checksum' => true\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'MasterCard',\n\t\t\t'slug' => 'mastercard',\n\t\t\t'lengths' => '16',\n\t\t\t'prefixes' => '51,52,53,54,55',\n\t\t\t'checksum' => true\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'Visa',\n\t\t\t'slug' => 'visa',\n\t\t\t'lengths' => '13,16',\n\t\t\t'prefixes' => '4,417500,4917,4913,4508,4844',\n\t\t\t'checksum' => true\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'JCB',\n\t\t\t'slug' => 'jcb',\n\t\t\t'lengths' => '16',\n\t\t\t'prefixes' => '35',\n\t\t\t'checksum' => true\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'Maestro',\n\t\t\t'slug' => 'maestro',\n\t\t\t'lengths' => '12,13,14,15,16,18,19',\n\t\t\t'prefixes' => '5018,5020,5038,6304,6759,6761',\n\t\t\t'checksum' => true\n\t\t)\n\n\t);\n\n\treturn $cards;\n}", "title": "" }, { "docid": "f48047f398e684dd4b5375625f9773f1", "score": "0.4741485", "text": "private function getUserInfo(){\n\t\t$this->guest_ip = isset($_SERVER['REMOTE_ADDR'])?$_SERVER['REMOTE_ADDR']:0;\n\t\t\n\t\t$this->request_time = isset($_SERVER['REQUEST_TIME'])?date(\"Y-m-d H:i:s\",$_SERVER['REQUEST_TIME']):date(\"Y-m-d H:i:s\");\n\t\t\n\t\t$this->guest_current_page = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];\n\t\t$this->guest_prev_page = isset($_SERVER['HTTP_REFERER'])?$_SERVER['HTTP_REFERER']:0;\n\t\tif ($this->guest_prev_page == \"\") {\n\t\t\t$this->guest_prev_page = \"direct\";\n\t\t}\n\t\t$browser = new Browser();\n\t\t$this->guest_browser \t\t\t= $browser->getBrowser();\n\t\t$this->guest_browser_version \t= $browser->getVersion();\n\t\t$this->guest_platform \t\t\t= $browser->getPlatform();\n\t\t$this->guest_AOL_version \t\t= $browser->isAol()?$browser->getAolVersion():Null;\n\t\t$this->guest_is_mobile \t\t\t= intval($browser->isMobile());\n\t\t$this->guest_is_mobile \t\t\t= intval($browser->isRobot());\n\t\t$this->guest_is_robot \t\t\t= intval($browser->isRobot());\n\t}", "title": "" }, { "docid": "f119d0add68c761aab9b0094f99bb1fd", "score": "0.47412616", "text": "public function getHogFromServices() {\n return $this->hogfrom;\n }", "title": "" }, { "docid": "d7c8b11a2b1fa7b4cfc5702388f11010", "score": "0.47380033", "text": "public function get_info_defaults()\n {\n clearos_profile(__METHOD__, __LINE__);\n\n // TODO: implementent extensions\n }", "title": "" }, { "docid": "e10533b1bd70b65a4d343358ef91d914", "score": "0.4737394", "text": "function appthemes_get_escrow_details( APP_Escrow_Order $order ) {\n\n\t$gateway_id = $order->get_gateway();\n\t$gateway = APP_Gateway_Registry::get_gateway( $gateway_id );\n\n\tif ( $gateway && ( APP_Gateway_Registry::is_gateway_enabled( $gateway_id ) || current_user_can( 'manage_options' ) ) ) {\n\n\t\tif ( ! ( $gateway instanceof APP_Escrow_Payment_Processor ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$options = APP_Gateway_Registry::get_gateway_options( $gateway_id );\n\t\treturn $gateway->get_details( $order, $options );\n\n\t} else {\n\t\treturn false;\n\t}\n\n}", "title": "" }, { "docid": "f0f21995fca0eeeea74c1a76611d4bbf", "score": "0.47370005", "text": "function geomraid_processinfo_get() {\n\t$a_return = [];\n\t$a_return['1'] = [\n\t\t'type' => '1',\n\t\t'x-devdir' => '/dev/mirror',\n\t\t'x-notifier' => 'raid_gmirror',\n\t\t'x-processor' => 'gmirror_process_updatenotification',\n\t\t'x-page-maintenance' => 'disks_raid_gmirror_tools.php',\n\t\t'x-page-information' => 'disks_raid_gmirror_info.php',\n\t\t'x-button' => 'button_raid1',\n\t\t'gt-type' => gtext('RAID-1')\n\t];\n\t$a_return['5'] = [\n\t\t'type' => '5',\n\t\t'x-devdir' => '/dev/raid5',\n\t\t'x-notifier' => 'raid_graid5',\n\t\t'x-processor' => 'graid5_process_updatenotification',\n\t\t'x-page-maintenance' => 'disks_raid_graid5_tools.php',\n\t\t'x-page-information' => 'disks_raid_graid5_info.php',\n\t\t'x-button' => 'button_raid5',\n\t\t'gt-type' => gtext('RAID-5')\n\t];\n\t$a_return['0'] = [\n\t\t'type' => '0',\n\t\t'x-devdir' => '/dev/stripe',\n\t\t'x-notifier' => 'raid_gstripe',\n\t\t'x-processor' => 'gstripe_process_updatenotification',\n\t\t'x-page-maintenance' => 'disks_raid_gstripe_tools.php',\n\t\t'x-page-information' => 'disks_raid_gstripe_info.php',\n\t\t'x-button' => 'button_raid0',\n\t\t'gt-type' => gtext('RAID-0')\n\t];\n\t$a_return['JBOD'] = [\n\t\t'type' => 'JBOD',\n\t\t'x-devdir' => '/dev/concat',\n\t\t'x-notifier' => 'raid_gconcat',\n\t\t'x-processor' => 'gconcat_process_updatenotification',\n\t\t'x-page-maintenance' => 'disks_raid_gconcat_tools.php',\n\t\t'x-page-information' => 'disks_raid_gconcat_info.php',\n\t\t'x-button' => 'button_jbod',\n\t\t'gt-type' => gtext('JBOD')\n\t];\n\treturn $a_return;\n}", "title": "" }, { "docid": "c959fe70652ea1258f2fc5e388580e46", "score": "0.47315514", "text": "function ciscotools_upgrade_get_infos($deviceID)\r\n{\r\n\t// get all infromation from the DB\r\n $device = ciscotools_upgrade_get_device($deviceID);\r\n if($device === false)\r\n { // Error getting device infos\r\n ciscotools_upgrade_table($deviceID, 'update', UPGRADE_STATUS_INFO_ERROR);\r\n return false;\r\n }\r\n\r\n\t// just format SNMP information from $device to another format!\r\n $snmp = ciscotools_upgrade_get_snmp($device);\r\n if($snmp === false) {\r\n\t\t// Error getting SNMP infos\r\n ciscotools_upgrade_table($deviceID, 'update', UPGRADE_STATUS_SNMP_ERROR);\r\n return false;\r\n }\r\n \r\n $model = ciscotools_upgrade_get_version($device);\r\n if($model === false) {\r\n\t\t// Error getting image infos\r\n ciscotools_upgrade_table($deviceID, 'update', UPGRADE_STATUS_IMAGE_INFO_ERROR);\r\n return false;\r\n }\r\n\r\n $infos = array();\r\n foreach($device as $key => $value) $infos['device'][$key] = $value;\r\n foreach($snmp as $key => $value) $infos['snmp'][$key] = $value;\r\n foreach($model as $key => $value) $infos['model'][$key] = $value;\r\n\r\n return $infos;\r\n}", "title": "" }, { "docid": "f39694f8ba300efce4c0942a44d52047", "score": "0.47307914", "text": "public function getRequiredCardFields()\n {\n return array\n (\n 'email',\n );\n }", "title": "" }, { "docid": "b70a2ca0ab231cc5343182cf0a38022a", "score": "0.47278872", "text": "public function getDeviceStatus_shell()\n {\n $aResponse = array();\n $aResponse['code'] = 0;\n $aResponse['status'] = 404;\n $aResponse['data'] = NULL;\n $sformat = isset($_REQUEST['format']) ? $_REQUEST['format'] : '' ; // Get response Format (json,xml,html etc.)\n $sAuth = isset($_REQUEST['auth']) ? $_REQUEST['auth'] : '' ;// Check if Authentication is required.\n $this->isAuthenticationRequired = $sAuth;\n \n // Optionally require connections to be made via HTTPS\n if( $this->isHTTPSRequired && $_SERVER['HTTPS'] != 'on' )\n {\n $aResponse['code'] = 2;\n $aResponse['status'] = $aApiResponseCode[ $aResponse['code'] ]['HTTP Response'];\n $aResponse['data'] = $aApiResponseCode[ $aResponse['code'] ]['Message'];\n\n // Return Response to browser. This will exit the script.\n $this->webResponse($sformat, $aResponse);\n }\n \n if($this->isAuthenticationRequired)\n {\n //START : Authorisation\n $sUsername = isset($_REQUEST['username']) ? $_REQUEST['username'] : '' ; // Get the username of webservice \n $sPassword = isset($_REQUEST['password']) ? $_REQUEST['password'] : '' ; // Get the password of webservice \n $this->webAuthorisation($sUsername, $sPassword,$sformat); // Check if username and password is valid.\n // END : Authorisation\n }\n \n #INPUTS\n $sDevice = isset($_REQUEST['dvc']) ? $_REQUEST['dvc'] : '' ;\n \n $aResult = array();\n $aResult['msg'] = \"\";\n $aResult['response']= 0;\n $aResult['status'] = 0;\n \n $sValves = \"\"; // Valve Devices Initialization.\n $sRelays = \"\"; // Relay Devices Initialization.\n $sPowercenter = \"\"; // Power Center Devices Initialization.\n $iCntValves = \"0\"; // Valve Devices Count Initialization.\n $iCntRelays = \"0\"; // Relay Devices Count Initialization.\n $iCntPowercenter = \"0\"; // Power Center Devices Initialization.\n \n $this->load->model('home_model');\n $iActiveMode = $this->home_model->getActiveMode();\n\t\t\t\n\t\t\t//Get the number of Devices(Blower,Light and Heater) from the settings.\n\t\t\tlist($sIP,$sPort,$sExtra) = $this->home_model->getSettings();\n \n //if($iActiveMode == 2) // START : If Mode is Manual.\n {\n if($sDevice != '') // START : If device type is not empty\n {\n $sResponse = get_rlb_status_shell(); // Get the relay borad response from server.\n if($sDevice == \"V\") // START : If Device is Valve\n {\n if($sResponse['valves'] != '') // START : Checked if Valve Devices are available\n {\n $sValves = $sResponse['valves']; // Valve Devices.\n $iCntValves = strlen($sValves); // Count of Valve Devices.\n \n $aResponse['code'] = 1;\n $aResponse['status'] = $this->aApiResponseCode[ $aResponse['code'] ]['HTTP Response'];\n $aResponse['data'] = $sValves;\n\n // Return Response to browser. This will exit the script.\n $this->webResponse($sformat, $aResponse);\n } // END : Checked if Valve Devices are available\n else\n {\n $aResponse['code'] = 5;\n $aResponse['status'] = $this->aApiResponseCode[ $aResponse['code'] ]['HTTP Response'];\n $aResponse['data'] = 'Valve devices not available.';\n\n // Return Response to browser. This will exit the script.\n $this->webResponse($sformat, $aResponse);\n }\n } // if($sDevice == \"V\") END : If Device is Valve\n else if($sDevice == \"R\") // START : If Device is Relay.\n {\n if($sResponse['relay'] != '')\n {\n $sRelays = $sResponse['relay']; // Relay Devices.\n $iCntRelays = strlen($sRelays); // Count of Relay Devices.\n \n $aResponse['code'] = 1;\n $aResponse['status'] = $this->aApiResponseCode[ $aResponse['code'] ]['HTTP Response'];\n $aResponse['data'] = $sRelays;\n \n $this->webResponse($sformat, $aResponse);\n }\n else\n {\n $aResponse['code'] = 5;\n $aResponse['status'] = $this->aApiResponseCode[ $aResponse['code'] ]['HTTP Response'];\n $aResponse['data'] = 'Relay devices not available.';\n\n // Return Response to browser. This will exit the script.\n $this->webResponse($sformat, $aResponse);\n }\n } // END : If Device is Relay.\n else if($sDevice == \"PC\") // START : If Device is Power Center.\n {\n if($sResponse['powercenter'] != '')\n {\n $sPowercenter = $sResponse['powercenter']; // Power Center Devices.\n $iCntPowercenter= strlen($sPowercenter); // Count of Power Center Devices.\n \n $aResponse['code'] = 1;\n $aResponse['status'] = $this->aApiResponseCode[ $aResponse['code'] ]['HTTP Response'];\n $aResponse['data'] = $sPowercenter;\n \n $this->webResponse($sformat, $aResponse);\n }\n else\n { \n $aResponse['code'] = 5;\n $aResponse['status'] = $this->aApiResponseCode[ $aResponse['code'] ]['HTTP Response'];\n $aResponse['data'] = 'Power Center devices not available.';\n\n // Return Response to browser. This will exit the script.\n $this->webResponse($sformat, $aResponse);\n }\n } // END : If Device is Power Center.\n\t\t\t\t\telse if($sDevice == \"PS\")// START : If Device is PUMPS.\n\t\t\t\t\t{\n\t\t\t\t\t\t$sPumps \t\t= '';\n\t\t\t\t\t\tfor($i=0;$i<3;$i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$aPumpDetails = $this->home_model->getPumpDetails($i);\n\t\t\t\t\t\t\t//Variable Initialization to blank.\n\t\t\t\t\t\t\t$sPumpNumber \t= '';\n\t\t\t\t\t\t\t$sPumpType \t= '';\n\t\t\t\t\t\t\t$relay_number = '';\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(is_array($aPumpDetails) && !empty($aPumpDetails))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t foreach($aPumpDetails as $aResultEdit)\n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t\t$sPumpNumber = $aResultEdit->pump_number;\n\t\t\t\t\t\t\t\t$sPumpType = $aResultEdit->pump_type;\n\t\t\t\t\t\t\t\t$relay_number = $aResultEdit->relay_number;\n\t\t\t\t\t\t\t\t$sPumpClosure = $aResultEdit->pump_closure;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif($sPumpType != '' && $sPumpClosure == '1')\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif($sPumpType == '12' || $sPumpType == '24')\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif($sPumpType == '24')\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tif($sResponse['relay'] != '')\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$sRelays = $sResponse['relay']; // Relay Devices.\n\t\t\t\t\t\t\t\t\t\t\t\tif(isset($sRelays[$relay_number]) && $sRelays[$relay_number] != '')\n\t\t\t\t\t\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\t\t\t\t\t\t$sPumps .= $sRelays[$relay_number];\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t$aResponse['code'] = 5;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$aResponse['status'] = $this->aApiResponseCode[ $aResponse['code'] ]['HTTP Response'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t$aResponse['data'] = 'Device Number is not Valid';\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t$this->webResponse($sformat, $aResponse);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$aResponse['code'] = 5;\n\t\t\t\t\t\t\t\t\t\t\t\t$aResponse['status'] = $this->aApiResponseCode[ $aResponse['code'] ]['HTTP Response'];\n\t\t\t\t\t\t\t\t\t\t\t\t$aResponse['data'] = 'Devices not available.';\n\n\t\t\t\t\t\t\t\t\t\t\t\t$this->webResponse($sformat, $aResponse);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse if($sPumpType == '12')\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif($sResponse['powercenter'] != '')\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$sPowercenter = $sResponse['powercenter']; // Power Center Devices.\n\t\t\t\t\t\t\t\t\t\t\t\tif(isset($sPowercenter[$relay_number]) && $sPowercenter[$relay_number] != '')\n\t\t\t\t\t\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\t\t\t\t\t\t$sPumps .= $sPowercenter[$relay_number];\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t$aResponse['code'] = 5;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$aResponse['status'] = $this->aApiResponseCode[ $aResponse['code'] ]['HTTP Response'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t$aResponse['data'] = 'Device Number is not Valid';\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t$this->webResponse($sformat, $aResponse);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$aResponse['code'] = 5;\n\t\t\t\t\t\t\t\t\t\t\t\t$aResponse['status'] = $this->aApiResponseCode[ $aResponse['code'] ]['HTTP Response'];\n\t\t\t\t\t\t\t\t\t\t\t\t$aResponse['data'] = 'Device not available.';\n\n\t\t\t\t\t\t\t\t\t\t\t\t$this->webResponse($sformat, $aResponse);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(preg_match('/Emulator/',$sPumpType) || preg_match('/Intellicom/',$sPumpType))\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tif($sResponse['pump_seq_'.$sPumpNumber.'_st'] > 0)\n\t\t\t\t\t\t\t\t\t\t\t\t$sPumps .= 1;\n\t\t\t\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t\t\t\t\t$sPumps .= 0;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$aResponse['code'] = 5;\n\t\t\t\t\t\t\t\t\t$aResponse['status'] = $this->aApiResponseCode[ $aResponse['code'] ]['HTTP Response'];\n\t\t\t\t\t\t\t\t\t$aResponse['data'] = 'Pump devices not configured properly or Closure is set to 0.';\n\n\t\t\t\t\t\t\t\t\t// Return Response to browser. This will exit the script.\n\t\t\t\t\t\t\t\t\t$this->webResponse($sformat, $aResponse);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(isset($sResponse['pump_seq_'.$i.'_st']))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$sPumps .= '.';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$aResponse['code'] = 1;\n\t\t\t\t\t\t$aResponse['status'] = $this->aApiResponseCode[ $aResponse['code'] ]['HTTP Response'];\n\t\t\t\t\t\t$aResponse['data'] = $sPumps;\n\t\t\t\t\t\n\t\t\t\t\t\t$this->webResponse($sformat, $aResponse);\n\t\t\t\t\t\t\n\t\t\t\t\t}// END : If Device is PUMPS.\n\t\t\t\t\telse if($sDevice == \"T\")// START : If Device is Temperature Sensor.\n\t\t\t\t\t{\n\t\t\t\t\t\t$sTemprature\t= \tarray();\n\t\t\t\t\t\t/* $sTemprature[0] = $sResponse['TS0'];\n\t\t\t\t\t\t$sTemprature[1] = $sResponse['TS1'];\n\t\t\t\t\t\t$sTemprature[2] = $sResponse['TS2'];\n\t\t\t\t\t\t$sTemprature[3] = $sResponse['TS3'];\n\t\t\t\t\t\t$sTemprature[4] = $sResponse['TS4'];\n\t\t\t\t\t\t$sTemprature[5] = $sResponse['TS5']; */\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor($i=0; $i<=5; $i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$sTemprature[$i]['temp'] = $sResponse['TS'.$i];\t\n\t\t\t\t\t\t\t$sTemprature[$i]['name'] = $this->home_model->getDeviceName($i,'T');;\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$aResponse['code'] = 1;\n\t\t\t\t\t\t$aResponse['status'] = $this->aApiResponseCode[ $aResponse['code'] ]['HTTP Response'];\n\t\t\t\t\t\t$aResponse['data'] = json_encode($sTemprature);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$this->webResponse($sformat, $aResponse);\n\t\t\t\t\t\t\n\t\t\t\t\t}// END : If Device is Temperature Sensor.\n\t\t\t\t\telse if($sDevice == \"B\")// START : If Device is Blower.\n\t\t\t\t\t{\n\t\t\t\t\t\t$sBlower\t= \tarray();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Number of blower set on the setting Page.\n\t\t\t\t\t\t$iNumBlower\t=\t$sExtra['BlowerNumber'];\n\t\t\t\t\t\t\n\t\t\t\t\t\t//If Blower is not set or count is 0.\n\t\t\t\t\t\tif($iNumBlower == 0 || $iNumBlower == '')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$aResponse['code'] = 5;\n\t\t\t\t\t\t\t$aResponse['status'] = $this->aApiResponseCode[ $aResponse['code'] ]['HTTP Response'];\n\t\t\t\t\t\t\t$aResponse['data'] = 'Blower Devices are not available!';\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->webResponse($sformat, $aResponse);\n\t\t\t\t\t\t\texit;\n\t\t\t\t\t\t}//If Blower is not set or count is 0.\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor($i=0; $i<$iNumBlower; $i++)\t\t\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//Blower Details\n\t\t\t\t\t\t\t$aBlowerDetails = $this->home_model->getBlowerDeviceDetails($i);\n\t\t\t\t\t\t\tif(!empty($aBlowerDetails))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$sRelays = $sResponse['relay'];\n\t\t\t\t\t\t\t\t$sPowercenter = $sResponse['powercenter'];\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tforeach($aBlowerDetails as $aBlower)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$sBlowerStatus\t=\t'';\n\t\t\t\t\t\t\t\t\t$sRelayDetails = unserialize($aBlower->light_relay_number);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//Blower Operated Type and Relay\n\t\t\t\t\t\t\t\t\t$sRelayType = $sRelayDetails['sRelayType'];\n\t\t\t\t\t\t\t\t\t$sRelayNumber = $sRelayDetails['sRelayNumber'];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif($sRelayType == '24')\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$sBlowerStatus = $sRelays[$sRelayNumber];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif($sRelayType == '12')\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$sBlowerStatus = $sPowercenter[$sRelayNumber];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$sBlower[$i] = $sBlowerStatus;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$aResponse['code'] = 1;\n\t\t\t\t\t\t$aResponse['status'] = $this->aApiResponseCode[ $aResponse['code'] ]['HTTP Response'];\n\t\t\t\t\t\t$aResponse['data'] = json_encode($sBlower);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$this->webResponse($sformat, $aResponse);\n\t\t\t\t\t\t\n\t\t\t\t\t}// END : If Device is Blower.\n\t\t\t\t\telse if($sDevice == \"L\")// START : If Device is Light.\n\t\t\t\t\t{\n\t\t\t\t\t\t$sLight\t= \tarray();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Number of blower set on the setting Page.\n\t\t\t\t\t\t$iNumLight\t=\t$sExtra['LightNumber'];\n\t\t\t\t\t\t\n\t\t\t\t\t\t//If Blower is not set or count is 0.\n\t\t\t\t\t\tif($iNumLight == 0 || $iNumLight == '')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$aResponse['code'] = 5;\n\t\t\t\t\t\t\t$aResponse['status'] = $this->aApiResponseCode[ $aResponse['code'] ]['HTTP Response'];\n\t\t\t\t\t\t\t$aResponse['data'] = 'Light Devices are not available!';\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->webResponse($sformat, $aResponse);\n\t\t\t\t\t\t\texit;\n\t\t\t\t\t\t}//If Blower is not set or count is 0.\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor($i=0; $i<$iNumLight; $i++)\t\t\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//Light Details\n\t\t\t\t\t\t\t$aLightDetails = $this->home_model->getLightDeviceDetails($i);\n\t\t\t\t\t\t\tif(!empty($aLightDetails))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$sRelays = $sResponse['relay'];\n\t\t\t\t\t\t\t\t$sPowercenter = $sResponse['powercenter'];\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tforeach($aLightDetails as $aLight)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$sLightStatus\t=\t'';\n\t\t\t\t\t\t\t\t\t$sRelayDetails = unserialize($aLight->light_relay_number);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//Light Operated Type and Relay\n\t\t\t\t\t\t\t\t\t$sRelayType = $sRelayDetails['sRelayType'];\n\t\t\t\t\t\t\t\t\t$sRelayNumber = $sRelayDetails['sRelayNumber'];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif($sRelayType == '24')\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$sLightStatus = $sRelays[$sRelayNumber];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif($sRelayType == '12')\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$sLightStatus = $sPowercenter[$sRelayNumber];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$sLight[$i] = $sLightStatus;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$aResponse['code'] = 1;\n\t\t\t\t\t\t$aResponse['status'] = $this->aApiResponseCode[ $aResponse['code'] ]['HTTP Response'];\n\t\t\t\t\t\t$aResponse['data'] = json_encode($sLight);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$this->webResponse($sformat, $aResponse);\n\t\t\t\t\t\t\n\t\t\t\t\t}// END : If Device is Heater.\n\t\t\t\t\telse if($sDevice == \"H\")// START : If Device is Heater.\n\t\t\t\t\t{\n\t\t\t\t\t\t$sHeater\t= \tarray();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Number of blower set on the setting Page.\n\t\t\t\t\t\t$iNumHeater\t=\t$sExtra['HeaterNumber'];\n\t\t\t\t\t\t\n\t\t\t\t\t\t//If Blower is not set or count is 0.\n\t\t\t\t\t\tif($iNumHeater == 0 || $iNumHeater == '')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$aResponse['code'] = 5;\n\t\t\t\t\t\t\t$aResponse['status'] = $this->aApiResponseCode[ $aResponse['code'] ]['HTTP Response'];\n\t\t\t\t\t\t\t$aResponse['data'] = 'Heater Devices are not available!';\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->webResponse($sformat, $aResponse);\n\t\t\t\t\t\t\texit;\n\t\t\t\t\t\t}//If Blower is not set or count is 0.\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor($i=0; $i<$iNumHeater; $i++)\t\t\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//Heater Details\n\t\t\t\t\t\t\t$aHeaterDetails = $this->home_model->getHeaterDeviceDetails($i);\n\t\t\t\t\t\t\tif(!empty($aHeaterDetails))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$sRelays = $sResponse['relay'];\n\t\t\t\t\t\t\t\t$sPowercenter = $sResponse['powercenter'];\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tforeach($aHeaterDetails as $aHeater)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$sHeaterStatus\t=\t'';\n\t\t\t\t\t\t\t\t\t$sRelayDetails = unserialize($aHeater->light_relay_number);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//Heater Operated Type and Relay\n\t\t\t\t\t\t\t\t\t$sRelayType = $sRelayDetails['sRelayType'];\n\t\t\t\t\t\t\t\t\t$sRelayNumber = $sRelayDetails['sRelayNumber'];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif($sRelayType == '24')\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$sHeaterStatus = $sRelays[$sRelayNumber];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif($sRelayType == '12')\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$sHeaterStatus = $sPowercenter[$sRelayNumber];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$sHeater[$i] = $sHeaterStatus;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$aResponse['code'] = 1;\n\t\t\t\t\t\t$aResponse['status'] = $this->aApiResponseCode[ $aResponse['code'] ]['HTTP Response'];\n\t\t\t\t\t\t$aResponse['data'] = json_encode($sHeater);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$this->webResponse($sformat, $aResponse);\n\t\t\t\t\t\t\n\t\t\t\t\t}// END : If Device is Heater.\n\t\t\t\t\t\n } // END : If device type is not empty. if($sDevice != '')\n else\n {\n $aResponse['code'] = 5;\n $aResponse['status'] = $this->aApiResponseCode[ $aResponse['code'] ]['HTTP Response'];\n $aResponse['data'] = 'Invalid Device Type.';\n\n // Return Response to browser. This will exit the script.\n $this->webResponse($sformat, $aResponse);\n }\n } // END : If Mode is Manual.\n /*else\n {\n $aResponse['code'] = 5;\n $aResponse['status'] = $this->aApiResponseCode[ $aResponse['code'] ]['HTTP Response'];\n $aResponse['data'] = 'Invalid mode to perform this operation.';\n\n // Return Response to browser. This will exit the script.\n $this->webResponse($sformat, $aResponse);\n }*/\n \n }", "title": "" }, { "docid": "fe87138c448eab3e7dbce9f34057b52a", "score": "0.47265697", "text": "public function getGateway()\n {\n return Guzzle::get('gateway')->url;\n }", "title": "" }, { "docid": "0689b805cffb6fd1027174d24723441e", "score": "0.47082525", "text": "public function infos_disks(){\n\t\t# var disk_a = [{\"free_size\":195334180,\"total_size\":239347164,\"label\":\"internal-disk\",\"id\":2,\"mount_point\":\"/Disque dur/Enregistrements\"}];\n\t\tif(preg_match('#var disk_a = \\[(.*)\\];#', $this->details_url(), $values)){\n\t\t\treturn json_decode($values[1]);\n\t\t} else\n\t\t\tthrow new Exception(\"Magneto : pas d'info sur l'espace disque\");\n\t}", "title": "" }, { "docid": "6a3e9b125dddb2f9f6c857a3f6d8a63d", "score": "0.4683245", "text": "function wpsc_gateway_internal_name() {\n\tglobal $wpsc_gateway;\n\treturn $wpsc_gateway->gateway['internalname'];\n}", "title": "" }, { "docid": "a60061cabf6e48b776424001230c9f23", "score": "0.46809304", "text": "public static function getCardTypes()\n {\n return static::$cardtypes;\n }", "title": "" }, { "docid": "b046507bf7fcacd3ee570dc9f31b3ab9", "score": "0.46767536", "text": "public function getEnvironmentInformation () {\n\t\t$info = array();\n\t\t$info['domain_name'] = Mage::getBaseUrl();\n\t\t$info['framework'] = 'magento';\n\t\t$info['edition'] = 'default';\n\t\tif(method_exists('Mage','getEdition')) $info['edition'] = Mage::getEdition();\n\t\t$info['version'] = Mage::getVersion();\n\t\t$info['php_version'] = phpversion();\n\t\t$info['feed_types'] = Mage::getStoreConfig(Ced_CsMarketplace_Model_Feed::XML_FEED_TYPES);\n\t\t$info['admin_name'] = Mage::getStoreConfig('trans_email/ident_general/name');\n\t\t$info['country_id'] = Mage::getStoreConfig('general/store_information/merchant_country');\n\t\tif($info['country_id']=='')\n\t\t{\n\t\t\t$info['country_id'] = Mage::getStoreConfig('general/country/default');\n\t\t}\n\t\tif(strlen($info['admin_name']) == 0) $info['admin_name'] = Mage::getStoreConfig('trans_email/ident_sales/name');\n\t\t$info['admin_email'] = Mage::getStoreConfig('trans_email/ident_general/email');\n\t\tif(strlen($info['admin_email']) == 0) $info['admin_email'] = Mage::getStoreConfig('trans_email/ident_sales/email');\n\t\t$info['installed_extensions_by_cedcommerce'] = $this->getCedCommerceExtensions(true);\n\t\t\n\t\treturn $info;\n\t}", "title": "" }, { "docid": "dbbbaf11b44bce7b0c5391a713683e8d", "score": "0.4675165", "text": "abstract function get_provider_information();", "title": "" }, { "docid": "2525eedb273cab725b59b57adb493aee", "score": "0.4674364", "text": "function getCard() {\n return $this->subscriptionDetails->card();\n }", "title": "" }, { "docid": "6d8005a30f6b65b62ded306a388228b5", "score": "0.46731907", "text": "public function getSNMPObjects(){\r\n ini_set('soap.wsdl_cache_enabled',0);\r\n ini_set('soap.wsdl_cache_ttl',0);\r\n \r\n $soapUrl = \"https://middleware-dev.mainone.net/net-boss/wsdl/1\";\r\n \r\n $context = stream_context_create ([ \r\n 'ssl' => [ \r\n 'verify_peer' => false,\r\n 'verify_peer_name' => false,\r\n 'allow_self_signed' => true \r\n ] \r\n ]);\r\n \r\n $client = new \\SoapClient ( $soapUrl, array (\r\n //'trace' => 1,\r\n 'sream_context' => $context \r\n ));\r\n \r\n if (!$client) {\r\n echo (\"Could not connect to SOAP server\\n\");\r\n }\r\n \r\n try {\r\n $result = $client->authenticate( \"api\", \"P@99word123\" );\r\n if (! $result) {\r\n return (\"Could not authenticate with the server\\n\");\r\n } else {\r\n $result = $client->getAuthenticatedUid();\r\n $devices = $client->core_getObjectsByDeviceIdAndPlugin(51, \"SNMP\");\r\n return $devices;\r\n }\r\n } catch ( \\Exception $e ) {\r\n print_r ( $e );\r\n }\r\n }", "title": "" }, { "docid": "b1ed26b0502cab83b955d27d0c36e39f", "score": "0.46727768", "text": "public function info()\n {\n $info = array();\n $info['author'] = 'Chris Graham';\n $info['organisation'] = 'ocProducts';\n $info['hacked_by'] = null;\n $info['hack_version'] = null;\n $info['version'] = 4;\n $info['update_require_upgrade'] = true;\n $info['locked'] = false;\n return $info;\n }", "title": "" }, { "docid": "51c64c732f3e8d9d08e904ee74267acc", "score": "0.46717924", "text": "public function info()\n {\n return Mage::helper('dealer4dealer_xcore')->getVersion();\n }", "title": "" }, { "docid": "1762a1c3010711cfaf4c0ce8ad452155", "score": "0.466313", "text": "public function init_gateways() {\r\n\r\n if ( ! class_exists( 'WC_Payment_Gateway' ) ) {\r\n return;\r\n }\r\n\r\n if ( class_exists( 'WC_Payment_Gateway_CC' ) ) {\r\n include_once( dirname( __FILE__ ) . '/lib/Opay.Payment.Integration.Shell.php' ); // 載入SDK\r\n include_once( dirname( __FILE__ ) . '/lib/class-wc-gateway-opay.php' );\r\n include_once( dirname( __FILE__ ) . '/lib/helpers/OpayPaymentHelper.php' ); // 載入金流Helper\r\n }\r\n\r\n // 載入語系檔\r\n load_plugin_textdomain( 'opay', false, plugin_basename( dirname( __FILE__ ) ) . '/translation' );\r\n\r\n add_filter( 'woocommerce_payment_gateways', array( $this, 'add_gateways' ) );\r\n add_filter( 'woocommerce_order_details_after_order_table', array( $this, 'order_details_payment_method' ), 10, 2 );\r\n }", "title": "" }, { "docid": "cf233574bc89fc119b69d827bcc58d27", "score": "0.46627778", "text": "public function getBankLogosThumbnailpath()\n {\n return $this->bankLogosThumbnailpath;\n }", "title": "" }, { "docid": "4fbd603ef0dfcf6de1c917452f60ea5a", "score": "0.46596283", "text": "public function get_all_dhcp_server_network(){\n return $this->query('/ip/dhcp-server/network/getall');\n }", "title": "" }, { "docid": "2a3ccefda554015807ea04c88af30c32", "score": "0.4657937", "text": "function info()\n\t{\n\t\t$info=array();\n\t\t$info['author']='Chris Graham';\n\t\t$info['organisation']='ocProducts';\n\t\t$info['hacked_by']=NULL;\n\t\t$info['hack_version']=NULL;\n\t\t$info['version']=2;\n\t\t$info['locked']=false;\n\t\t$info['parameters']=array('param','zone');\n\t\treturn $info;\n\t}", "title": "" }, { "docid": "c06c75ddbafa8d2e8bde8c16f1921528", "score": "0.46571425", "text": "function getGateway( $interface ){\n $return = array( false, \"\");\n $out = my_shell_exec(\"ip -4 route list type unicast dev $interface exact 0/0\");\n //$ret = strstr( $out, \"src\", True); // find & remove src\n $found = preg_match( \"/default via (([0-9]{1,3}\\.){3}[0-9]{1,3})/m\", $out, $ips ); // filter ip address\n if ( $found ){\n $return[1] = $ips[1];\n }\n return $return;\n }", "title": "" }, { "docid": "4fe6d52a642590d0f5f3c39181cfa39c", "score": "0.46561536", "text": "public function info()\n {\n $info = array();\n $info['author'] = 'Chris Graham';\n $info['organisation'] = 'ocProducts';\n $info['hacked_by'] = null;\n $info['hack_version'] = null;\n $info['version'] = 1;\n $info['locked'] = false;\n $info['parameters'] = array();\n return $info;\n }", "title": "" }, { "docid": "81709712f3054e25aa61f0047c4a946c", "score": "0.4653516", "text": "protected function cards()\n {\n return [\n //(new Tmsdashboard)->companyName(),\n ];\n }", "title": "" }, { "docid": "c8326e4dcadc456f4b55f82f28d8dfb8", "score": "0.46530426", "text": "public function getInfo() {\r\n\t\t\t$this->sendPacket('i');\r\n\t\t\t\r\n\t\t\tfread($this->socket, 11);\r\n\t\t\t$srvinfos = array(\r\n\t\t\t\t'password' => ord(fread($this->socket, 1)),\r\n\t\t\t\t'players' => $this->toInteger(fread($this->socket, 2)),\r\n\t\t\t\t'maxplayers' => $this->toInteger(fread($this->socket, 2)),\r\n\t\t\t\t'hostname' => $this->getPacket(4),\r\n\t\t\t\t'gamemode' => $this->getPacket(4),\r\n\t\t\t\t'mapname' => $this->getPacket(4)\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\treturn $srvinfos;\r\n\t\t}", "title": "" }, { "docid": "cec1d90c522cf89ba43dc9355d806db6", "score": "0.46457043", "text": "function getCardFields($amount, $fp_sequence, $api_login_id, $transaction_key, $prefill = false)\n{\n $time = time();\n $fp = AuthorizeNetDPM::getFingerprint($api_login_id, $transaction_key, $amount, $fp_sequence, $time);\n $sim = new AuthorizeNetSIM_Form(\n array(\n 'x_amount' => $amount,\n 'x_fp_sequence' => $fp_sequence,\n 'x_fp_hash' => $fp,\n 'x_fp_timestamp' => $time,\n 'x_relay_response'=> \"TRUE\",\n 'x_login' => $api_login_id,\n )\n );\n\n $str = '\n '.$sim->getHiddenFieldString().'\n <fieldset>\n <div>\n <label>Credit Card Number</label>\n <input required type=\"text\" class=\"text\" size=\"16\" name=\"x_card_num\" value=\"'.($prefill ? '6011000000000012' : '').'\"></input>\n </div>\n <div>\n <label>Expiration Date</label>\n <input required type=\"text\" class=\"text\" size=\"4\" name=\"x_exp_date\" value=\"'.($prefill ? '04/17' : '').'\"></input>\n </div>\n <div id=\"CCV\">\n <label>CCV <span class=\"explanation\">(three-letter security code on back)</span></label>\n <input required type=\"text\" class=\"text\" size=\"4\" name=\"x_card_code\" value=\"'.($prefill ? '782' : '').'\"></input>\n </div>\n </fieldset>';\n\n $req = (!isset($_SESSION['customer']) || $_SESSION['customer']) ? \"required\" : \"\";\n\n return $str.'\n <fieldset>\n <div>\n <label>First Name on card</label>\n <input '.$req.' type=\"text\" class=\"text\" size=\"15\" name=\"x_first_name\" value=\"'.($prefill ? 'John' : '').'\"></input>\n </div>\n <div>\n <label>Last Name on card</label>\n <input '.$req.' type=\"text\" class=\"text\" size=\"14\" name=\"x_last_name\" value=\"'.($prefill ? 'Doe' : '').'\"></input>\n <input type=\"button\" id=\"sameName\" value=\"Also the order recipient\" onClick=\"copyName()\"></input>\n </div>\n </fieldset>\n <fieldset>\n <div>\n <label>Billing Address</label>\n <input '.$req.' type=\"text\" class=\"text\" size=\"30\" name=\"x_address\" value=\"'.($prefill ? '123 Main Street' : '').'\"></input>\n </div>\n <div>\n <label>City</label>\n <input '.$req.' type=\"text\" class=\"text\" size=\"15\" name=\"x_city\" value=\"'.($prefill ? 'Boston' : '').'\"></input>\n </div>\n </fieldset>\n <fieldset>\n <div>\n <label>State</label>\n <input '.$req.' type=\"text\" class=\"text\" size=\"4\" name=\"x_state\" value=\"AK\"></input>\n </div>\n <div>\n <label>Zip Code</label>\n <input '.$req.' type=\"text\" class=\"text\" size=\"9\" name=\"x_zip\" value=\"'.($prefill ? '02142' : '').'\"></input>\n </div>\n <div>\n <input '.$req.' type=\"hidden\" class=\"text\" size=\"5\" name=\"x_country\" value=\"US\"></input>\n </div>\n </fieldset>\n ';\n}", "title": "" }, { "docid": "4e2e33ca7aa5fc19ce7bb16e3d5fee8f", "score": "0.46454984", "text": "public function getCCDetails($creditCards, $isRest = false)\n {\n $ccDetails = array();\n $cards = (array) $creditCards;\n \n if (empty($cards)) {\n $cards = array(\n 'AX',\n 'BC',\n 'CUP-Debit',\n 'DC',\n 'DS',\n 'JC',\n 'CA',\n 'VI',\n 'AT',\n 'CB',\n 'DL',\n 'DN',\n 'DR',\n 'DV',\n 'EC',\n 'IK',\n 'MC'\n );\n }\n \n foreach ($cards as $cc) {\n switch ($cc) {\n case 'AMEX':\n case 'AX':\n $ccDetails[] = array(\n 'code' => $cc,\n 'name' => 'American Express',\n 'image' => $this->container->get(\"TTRouteUtils\")->generateMediaURL('/media/images/americanexpress.png', null, $isRest)\n );\n break;\n case 'BC':\n $ccDetails[] = array(\n 'code' => $cc,\n 'name' => 'BC Card',\n 'image' => ''\n );\n break;\n case 'CUP-Debit':\n $ccDetails[] = array(\n 'code' => $cc,\n 'name' => 'China UnionPay - Debit',\n 'image' => $this->container->get(\"TTRouteUtils\")->generateMediaURL('/media/images/cup.png', null, $isRest)\n );\n break;\n case 'DINERS':\n case 'DC':\n $ccDetails[] = array(\n 'code' => $cc,\n 'name' => 'Diners Club',\n 'image' => $this->container->get(\"TTRouteUtils\")->generateMediaURL('/media/images/diners.png', null, $isRest)\n );\n break;\n case 'DS':\n $ccDetails[] = array(\n 'code' => $cc,\n 'name' => 'Discover',\n 'image' => ''\n );\n break;\n case 'JCB Int':\n case 'JC':\n $ccDetails[] = array(\n 'code' => $cc,\n 'name' => 'Japan Credit Bureau',\n 'image' => $this->container->get(\"TTRouteUtils\")->generateMediaURL('/media/images/jcb.png', null, $isRest)\n );\n break;\n case 'MASTER':\n case 'CA':\n $ccDetails[] = array(\n 'code' => $cc,\n 'name' => 'Euro/Mastercard',\n 'image' => $this->container->get(\"TTRouteUtils\")->generateMediaURL('/media/images/mastercard.png', null, $isRest)\n );\n break;\n case 'VISA':\n case 'VI':\n $ccDetails[] = array(\n 'code' => $cc,\n 'name' => 'Visa',\n 'image' => $this->container->get(\"TTRouteUtils\")->generateMediaURL('/media/images/visa.png', null, $isRest)\n );\n break;\n default:\n // AT, CB, DL, DN, DR, DV, EC, IK, MC\n $ccDetails[] = array(\n 'code' => $cc,\n 'name' => $cc,\n 'image' => ''\n );\n }\n }\n \n if (!is_array($creditCards)) {\n $ccDetails = $ccDetails[0];\n }\n \n return $ccDetails;\n }", "title": "" }, { "docid": "1e25fa8f0270e03ab493b1beb73863fe", "score": "0.4645276", "text": "public static function getApcliCfgInfo(){\n\n\t\t$apcliInfo = array();\n\t\t$apcliInfo['apCliEnable']\t\t=\t`uci get wireless.@wifi-iface[0].ApCliEnable`;\n\t\t$apcliInfo['apCliSsid']\t\t\t=\t`uci get wireless.@wifi-iface[0].ApCliSsid`;\n\t\t$apcliInfo['apCliAuthMode']\t =\t`uci get wireless.@wifi-iface[0].ApCliAuthMode`;\n\t\t$apcliInfo['apCliEncrypType']\t=\t`uci get wireless.@wifi-iface[0].ApCliEncrypType`;\n\t\t$apcliInfo['apCliWPAPSK']\t\t=\t`uci get wireless.@wifi-iface[0].ApCliWPAPSK`;\n\t\treturn $apcliInfo;\n\t\t\n\t}", "title": "" }, { "docid": "242792bd6251bdfe47acd2335842c5ad", "score": "0.46447548", "text": "public function getCreditCardTypes() {\n $cardTypes = array();\n $setting = new Cart66Setting();\n $cards = Cart66Setting::getValue('auth_card_types');\n if($cards) {\n $cards = explode('~', $cards);\n if(in_array('mastercard', $cards)) {\n $cardTypes['MasterCard'] = 'mastercard';\n }\n if(in_array('visa', $cards)) {\n $cardTypes['Visa'] = 'visa';\n }\n if(in_array('amex', $cards)) {\n $cardTypes['American Express'] = 'amex';\n }\n if(in_array('discover', $cards)) {\n $cardTypes['Discover'] = 'discover';\n }\n }\n return $cardTypes;\n }", "title": "" }, { "docid": "68b1f9f162b8a0d3a8cb002d4b692a86", "score": "0.46429387", "text": "function PCO_InformacionConexionBD()\n\t{\n\t\techo \"<hr><center><blink><b><font color=yellow>\".$MULTILANG_Detalles.\":</font></b></blink><br>\";\n\t\techo $MULTILANG_Controlador.': '.$ConexionPDO->getAttribute(PDO::ATTR_DRIVER_NAME).'<br>';\n\t\techo $MULTILANG_Version.' '.$MULTILANG_Servidor.': '.$ConexionPDO->getAttribute(PDO::ATTR_SERVER_VERSION).'<br>';\n\t\techo $MULTILANG_Estado.': '.$ConexionPDO->getAttribute(PDO::ATTR_CONNECTION_STATUS).'<br>';\n\t\techo $MULTILANG_Version.' '.$MULTILANG_Cliente.': '.$ConexionPDO->getAttribute(PDO::ATTR_CLIENT_VERSION).'<br>';\n\t\techo $MULTILANG_InfoAdicional.': '.$ConexionPDO->getAttribute(PDO::ATTR_SERVER_INFO).'<hr>';\n\t}", "title": "" }, { "docid": "d4923e9f50e36f53809c47939763964a", "score": "0.46428642", "text": "public function info()\n {\n $info = array();\n $info['author'] = 'Chris Graham';\n $info['organisation'] = 'ocProducts';\n $info['hacked_by'] = null;\n $info['hack_version'] = null;\n $info['version'] = 2;\n $info['locked'] = false;\n $info['parameters'] = array();\n return $info;\n }", "title": "" }, { "docid": "d4923e9f50e36f53809c47939763964a", "score": "0.46428642", "text": "public function info()\n {\n $info = array();\n $info['author'] = 'Chris Graham';\n $info['organisation'] = 'ocProducts';\n $info['hacked_by'] = null;\n $info['hack_version'] = null;\n $info['version'] = 2;\n $info['locked'] = false;\n $info['parameters'] = array();\n return $info;\n }", "title": "" }, { "docid": "594586f2c5fdf920b422e66593e4fff9", "score": "0.46425092", "text": "function wpsc_show_gateway_image(){\n\tglobal $wpsc_gateway;\n\tif( isset($wpsc_gateway->gateway['image']) && !empty($wpsc_gateway->gateway['image']) )\n\t\treturn true;\n\telse\n\t\treturn false;\n}", "title": "" }, { "docid": "c6b7acc851d9ecd0904c31db8fb074e9", "score": "0.46407256", "text": "public function getManagedDevices()\n {\n if (array_key_exists(\"managedDevices\", $this->_propDict)) {\n return $this->_propDict[\"managedDevices\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "c6b7acc851d9ecd0904c31db8fb074e9", "score": "0.46407256", "text": "public function getManagedDevices()\n {\n if (array_key_exists(\"managedDevices\", $this->_propDict)) {\n return $this->_propDict[\"managedDevices\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "aac269ea3d8f879e813427c7d2db6f36", "score": "0.46402103", "text": "public function info() {\n\n $response = $this->Frostbite->query('serverInfo');\n\n if (Hash::get($response, 0) !== 'OK') {\n return false;\n }\n\n $mapping = $this->_serverInfoMapping;\n for ($i = 0; $i < (4 - $response[8]); $i++) {\n unset($mapping[12 - $i]);\n }\n $mapping = array_values($mapping);\n\n $return = [];\n foreach ($mapping as $key => $structure) {\n\n list($field, $format) = $structure;\n\n if ($field === 'unknown') {\n continue;\n }\n\n $value = Hash::get($response, $key);\n\n switch ($format) {\n case 'int':\n $value = (int) $value;\n break;\n case 'bool':\n $value = $this->Frostbite->boolean($value);\n break;\n case 'float':\n $value = ceil($value);\n break;\n }\n\n $return[$field] = $value;\n\n }\n\n # Mode text\n $mode = Hash::get($return, 'currentGamemode');\n $return['currentGamemodeText'] = Hash::get(DataBf4::$modes, $mode);\n\n # Map text, expansion pack\n $map = Hash::get($return, 'currentMap');\n $return['currentMapText'] = Hash::get(DataBf4::$maps, $map . '.name');\n $return['expansion'] = Hash::get(DataBf4::$maps, $map . '.expansion');\n\n # Images\n $return['images'] = [\n 'map_large' => '/rcon/img/bf4/maps/large/' . strtolower($map) . '.jpg',\n 'map_medium' => '/rcon/img/bf4/maps/medium/' . strtolower($map) . '.jpg',\n 'map_wide' => '/rcon/img/bf4/maps/wide/' . strtolower($map) . '.jpg',\n ];\n\n # Team names\n $return['teams'] = [\n 0 => 'Joining',\n ];\n $teams = [];\n if ($mode) {\n $teams = Hash::get(DataBf4::$teams, $mode, []);\n }\n if ($map && ! $teams) {\n $teams = Hash::get(DataBf4::$maps, $map . '.teams', []);\n }\n foreach ($teams as $n => $team) {\n $return['teams'][$n] = $team;\n }\n\n return $return;\n\n $mode = Hash::get($response, 4);\n $map = Hash::get($response, 5);\n\n return [\n 'status' => Hash::get($response, 0),\n 'serverName' => Hash::get($response, 1),\n 'currentPlayercount' => (int) Hash::get($response, 2),\n 'effectiveMaxPlayercount' => (int) Hash::get($response, 3),\n 'currentGamemode' => $mode,\n 'currentGamemodeText' => Hash::get(DataBf4::$modes, $mode),\n 'currentMap' => $map,\n 'currentMapText' => Hash::get(DataBf4::$maps, $map . '.name'),\n 'expansion' => Hash::get(DataBf4::$maps, $map . '.expansion'),\n 'roundsPlayed' => (int) Hash::get($response, 6),\n 'roundsTotal' => (int) Hash::get($response, 7),\n 'ranked' => $this->Frostbite->boolean(Hash::get($response, 13)),\n 'punkBuster' => $this->Frostbite->boolean(Hash::get($response, 14)),\n 'hasGamePassword' => $this->Frostbite->boolean(Hash::get($response, 15)),\n 'serverUpTime' => (int) Hash::get($response, 16),\n 'roundTime' => (int) Hash::get($response, 17),\n 'gameIpAndPort' => Hash::get($response, 18),\n 'punkBusterVersion' => Hash::get($response, 19),\n 'joinQueueEnabled' => $this->Frostbite->boolean(Hash::get($response, 20)),\n 'region' => Hash::get($response, 21),\n 'closestPingSite' => Hash::get($response, 22),\n 'country' => Hash::get($response, 23),\n 'blazePlayerCount' => (int) Hash::get($response, 24),\n 'blazeGameState' => Hash::get($response, 25),\n 'images' => [\n 'map_large' => '/rcon/img/bf4/maps_large/' . strtolower($map) . '.jpg',\n 'map_medium' => '/rcon/img/bf4/maps_medium/' . strtolower($map) . '.jpg',\n 'map_wide' => '/rcon/img/bf4/maps_wide/' . strtolower($map) . '.jpg',\n ],\n ];\n\n }", "title": "" } ]
1b9dd925fab1da693c6afb3bfa5aa503
Checks if the file exists
[ { "docid": "84127715ec9c213ea197f8f34d28564c", "score": "0.0", "text": "function file_exists_path($file) {\n $paths = explode(PATH_SEPARATOR, get_include_path());\n foreach ($paths as $path) {\n\tif (file_exists($path . '/' . $file)) {\n\t return true;\n\t}\n }\n return false;\n}", "title": "" } ]
[ { "docid": "c995981a505f214379a25e1f0103c829", "score": "0.7899095", "text": "public function exists($file) {}", "title": "" }, { "docid": "c995981a505f214379a25e1f0103c829", "score": "0.7899095", "text": "public function exists($file) {}", "title": "" }, { "docid": "ef2ad51de370940c60a27c67ee03129c", "score": "0.78196067", "text": "function exists() {\r\n\t\treturn file_exists($this->path);\r\n\t}", "title": "" }, { "docid": "80514e5d95e2686911d4461957b96572", "score": "0.7772581", "text": "private function exists() {\n\n\t\t//Check first the global flag.\n\t\tif(self::$dev_ignore) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn file_exists($this->filename);\n\t}", "title": "" }, { "docid": "73148bd1d385821d8c3a2d90c1dcc64c", "score": "0.776616", "text": "public function exists()\n\t{\n\t\t$path = $this->filespace() . DS . $this->get('item_id') . DS;\n\t\t$path .= ltrim($this->get('filename'), DS);\n\n\t\treturn file_exists($path);\n\t}", "title": "" }, { "docid": "018be69d7729d27de3aec967b8f11cd2", "score": "0.7725104", "text": "public function isExists()\n {\n return file_exists($this->toString());\n }", "title": "" }, { "docid": "53d669c58fb477d5d789e267726aa839", "score": "0.7694388", "text": "public function exists() {\n\t\treturn file_exists($this->_path);\n\t}", "title": "" }, { "docid": "39c2747a3766640869e88d2c37f15092", "score": "0.769045", "text": "public function fileExists()\n\t{\n\t\tif ( ! file_exists( $this->file )) \n\t\t\tthrow new Exception(\"File not found \".$this->file);\n\t\treturn;\n\t}", "title": "" }, { "docid": "e40b09ac4a9b7c509568a97b2455a267", "score": "0.7681426", "text": "public function exists($file);", "title": "" }, { "docid": "abc71e37b740be29556b334fd26795c0", "score": "0.7655551", "text": "public function exists()\n\t{\n\t\treturn file_exists($this->link('file'));\n\t}", "title": "" }, { "docid": "e014ed2258caf386e28281768fbb226c", "score": "0.7644628", "text": "public function exists()\n\t{\n\t\treturn file_exists($this->path());\n\t}", "title": "" }, { "docid": "c520a263321aab85e806315d00d4b897", "score": "0.7589944", "text": "public function exist(): bool {\n\t\treturn is_file($this->path);\n\t}", "title": "" }, { "docid": "d0636172e61cb54ce256ee969e2e7357", "score": "0.7587998", "text": "public function isExisting() : bool\n {\n\n return file_exists($this->path);\n }", "title": "" }, { "docid": "49a9303e8717f385a81e1f30364e9e95", "score": "0.7584292", "text": "public function exists()\n {\n return is_file($this->getPath() . DS . $this->getName());\n }", "title": "" }, { "docid": "46b38cb839be986d54183933234b1cf6", "score": "0.75696087", "text": "public function exists(){\n return file_exists($this->value);\n }", "title": "" }, { "docid": "d7678e1b5c7184e8ea7b6d6323fdd213", "score": "0.7562369", "text": "public function exists()\n {\n return file_exists($this->getPath());\n }", "title": "" }, { "docid": "e7c8361e6e3f8a9aa09e09b73aa0b7db", "score": "0.7557257", "text": "function fileExists($file)\r\n {\r\n $fp = @fopen($file, 'r', true);\r\n if (is_resource($fp)) {\r\n @fclose($fp);\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "dcdebb01d52d7d3fcac67085c359a23c", "score": "0.7556309", "text": "public function exist($file_path){\n return file_exists($file_path);\n }", "title": "" }, { "docid": "92f794b906ef60f6d575e6b1f522b722", "score": "0.75559855", "text": "function file_found(){\n \n if(file_exists($this->file)){\n return true;\n }\n \n else{\n return false;\n }\n \n }", "title": "" }, { "docid": "c9d0be224f0297344a23a09c0c94c39a", "score": "0.7526633", "text": "public function fileExists(string $filename): bool;", "title": "" }, { "docid": "9b7f042c4f15b746cc92d8e14a6a112f", "score": "0.74733317", "text": "public function fileExists()\n {\n $sourceType = $this->craft()->assetSources->getSourceTypeById($this->source->id);\n\n // If the folder has a parent, lets get that path.\n $parentPath = '';\n if(!empty($this->folder->parent)){\n $parentPath = $this->folder->parent->path;\n }\n\n return $sourceType->fileExists($parentPath, $this->filename);\n }", "title": "" }, { "docid": "9d363b31a03130be6a77d5249b79debd", "score": "0.74624634", "text": "public function exists()\n {\n clearos_profile(__METHOD__, __LINE__);\n\n if ($this->superuser) {\n\n $options['validate_exit_code'] = FALSE;\n\n $shell = new Shell();\n $exit_code = $shell->execute(File::COMMAND_LS, escapeshellarg($this->filename), TRUE, $options);\n\n if ($exit_code == 0)\n return TRUE;\n else\n return FALSE;\n } else {\n clearstatcache();\n if (file_exists($this->filename))\n return TRUE;\n else\n return FALSE;\n }\n }", "title": "" }, { "docid": "2dd7d5ab8862c363dc2f3d5e97cbd1b9", "score": "0.74577135", "text": "public function check_file($filename)\n {\n \treturn file_exists($filename);\n }", "title": "" }, { "docid": "24d6d1af60f5dcd64245968801da3230", "score": "0.744875", "text": "function exists() {\n\t\t$this->load();\n\t\treturn $this->fileExists;\n\t}", "title": "" }, { "docid": "8b1a81c7b07d0cdc39a962287456f477", "score": "0.74220794", "text": "private function isResultFileExists(): bool\n {\n return file_exists(self::RESULT_FILE);\n }", "title": "" }, { "docid": "8c4dad6c65527130149fd6c5b4b41023", "score": "0.7374015", "text": "public function exists($file_name = null){\r\n\t\t$file = $this->__fileConstruct($this->getPath(),$file_name);\r\n\t\tif($file->exists()){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "b06f2c1b82f7890760bde3271ad62c79", "score": "0.73405117", "text": "public function exists()\n {\n return !empty($this->file);\n }", "title": "" }, { "docid": "7ff786518857ec164c369b5656477a37", "score": "0.73398495", "text": "function is_file_exists($filename) {\n\t\t\t\t\t$file = './your_data_path/'.$filename;\n\n\t\t\t\t\treturn file_exists($file);\n\t\t\t\t}", "title": "" }, { "docid": "4963564ac70519c4624ac317d7b480f0", "score": "0.73372996", "text": "function exists($file) {\n return is_file(zmgFileHelper::cleanPath($file));\n }", "title": "" }, { "docid": "2862194440a1a8700bf8fadbea0311fb", "score": "0.73051757", "text": "public function exists() {\n return file_exists($this->uri);\n }", "title": "" }, { "docid": "60ab1fdec3a6ae73a13b215c6a2d150f", "score": "0.7282764", "text": "public function exists($filePath) \n { \n return file_exists($filePath); \n }", "title": "" }, { "docid": "af103ed275505931ac684643c033e08c", "score": "0.7272621", "text": "function exists() {\n\t\t$exists = file_exists($this->getFullPath());\n\t\treturn $exists;\n\t}", "title": "" }, { "docid": "2ba7ba01d48b5773bb414ea10ebb039c", "score": "0.72507477", "text": "public function pathExist($path) {\n return file_exists($path);\n }", "title": "" }, { "docid": "5ca6eac6453618e4379610e850781920", "score": "0.7244819", "text": "function fileExists($filename)\n\t{\n\t\treturn file_exists($this->tplPath.\"/\".$filename);\n\t}", "title": "" }, { "docid": "5abc2a14244fc7a903b6a296777c5f67", "score": "0.7239627", "text": "public function checkIfFileExists($file_path)\n {\n if (File::exists($file_path)):\n return true;\n else:\n return false;\n endif;\n }", "title": "" }, { "docid": "b81a83fad8212dc8dc3b4f82ca38e9dd", "score": "0.7225121", "text": "public static function exists($file) {\n return file_exists($file);\n }", "title": "" }, { "docid": "8d470ef5684c00116bb37945b8f9ced7", "score": "0.7203529", "text": "private function fileExists(){\n \n // Check if file already exists\n if (file_exists($this -> targetFile)) {\n // Image already exists on the server\n // Insert Error Event handling \n\n\n $this -> uploadOk = 0;\n }\n \n }", "title": "" }, { "docid": "6255d2c6ee251d9f53f474925a1994ee", "score": "0.7184019", "text": "private function _server_file_exists( $path ){\n \treturn (@fopen($path,\"r\") == true);\n\t}", "title": "" }, { "docid": "07ced93a9c4bc218c041549b72002668", "score": "0.71780634", "text": "function file_exists($filename)\n{\n}", "title": "" }, { "docid": "927bf17cf55133ce3f1b6cf35570d060", "score": "0.71347624", "text": "protected function fileExists($file) {\n // return is_file( $file['path'] );\n \treturn is_file( $file['thumb'] );\n }", "title": "" }, { "docid": "88f7f90a93cae2173185bd36bf478c27", "score": "0.71244574", "text": "protected function checkFileExists()\n {\n if (!file_exists($this->file->store->get($this->variant))) {\n throw new HttpException(404, Yii::t('FileModule.base', 'Could not find requested file!'));\n }\n }", "title": "" }, { "docid": "6704a1cb1bab4d015f40f1e930a8f30e", "score": "0.7096585", "text": "public function fileExists($file)\n\t{\n\t\tif (file_exists($file)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8f700d2fe70d08c3aff0c3f5ac6d0699", "score": "0.709492", "text": "public static function fileExists($file) {\n return self::fixFilename($file) !== null;\n }", "title": "" }, { "docid": "b9c3c5f9eccec0088b94ad41d0d0976f", "score": "0.70948184", "text": "private static function fileExists($file)\n {\n if (!is_file($file) || !file_exists($file))\n return false;\n\n return true;\n }", "title": "" }, { "docid": "6a47cfeaac59281461c8d50f7d13f82b", "score": "0.70944107", "text": "private function crontab_file_exists()\n\t\t{\n\n\t\t\treturn file_exists($this->cron_file);\n\n\t\t}", "title": "" }, { "docid": "75f82261c4c85eae0e54842e2f044202", "score": "0.70692295", "text": "function FileExistInCache()\n\t\t{\n\t\t\tif (file_exists($this->physical_location_and_file))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "a1972014b32952ef9c7901ec47cd3eae", "score": "0.7052353", "text": "public function hasFile()\n {\n return is_file($this->bean->dir.$this->bean->file);\n }", "title": "" }, { "docid": "b5401c54c53bf3fcc166d381f1651ea5", "score": "0.7024464", "text": "function file_exists($file_id) {\n // Check if the file exists in the list of available files. Actual destination types may have more efficient ways of doing this.\n $files = $this->list_files();\n return isset($files[$file_id]);\n }", "title": "" }, { "docid": "3c266c38435e7f55d4d396c8c7b39ff5", "score": "0.70236915", "text": "public static function file_exists($path)\n {\n \\clearstatcache(true, $path);\n return \\file_exists($path);\n }", "title": "" }, { "docid": "ec29474e7fbd91cff034aaeb4fb16a67", "score": "0.70179445", "text": "public function sourceFileExists()\n {\n return file_exists($this->source);\n }", "title": "" }, { "docid": "4b8dc5be8b6e5945bddcc6f5cdf9cc31", "score": "0.7013189", "text": "public function exists(): bool\n {\n $filepath = $this->filepath;\n\n return $this->isUrl ? @file_get_contents($filepath) !== false : file_exists($filepath);\n }", "title": "" }, { "docid": "c02d21f14e58bb5cd50704e4e8283761", "score": "0.7010265", "text": "public function fileExist($file)\r\n\t{\r\n\t\t$cURL = curl_init($file);\r\n\t\tcurl_setopt($cURL, CURLOPT_RETURNTRANSFER, true);\r\n\t\tcurl_setopt($cURL, CURLOPT_FOLLOWLOCATION, true);\r\n\t\t$result = curl_exec($cURL);\r\n\t\t$response = curl_getinfo($cURL, CURLINFO_HTTP_CODE);\r\n\t\tcurl_close($cURL);\r\n\r\n\t\tif ($response != 200) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "b4c8b61441c6b26a042117db32c26e76", "score": "0.699322", "text": "public function existsCacheFile()\r\n {\r\n return is_file($this->cachedir . $this->cachefile);\r\n }", "title": "" }, { "docid": "8abe3bd49f69c152f2e8c403f6e4aba6", "score": "0.69916314", "text": "protected function _file_exists($path = null) {\n\t\tif (!$path) {\n\t\t\treturn false;\n\t\t} elseif ($this->_is_dir($path)) {\n\t\t\treturn true;\n\t\t} elseif (ftp_size($this->_connection, $path) > 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "f4a9eb162192985ea24f426c5089cd11", "score": "0.69905984", "text": "function zbase_file_exists($filename)\r\n{\r\n\treturn file_exists(zbase_directory_separator_fix($filename));\r\n}", "title": "" }, { "docid": "759b3f398f6c523cefb49a3ec1b5299d", "score": "0.69863135", "text": "public function exists(string $filename): bool\n {\n return file_exists($this->resource($filename));\n }", "title": "" }, { "docid": "62087949bd94d05e5b589574e08590e7", "score": "0.6977625", "text": "public function rfile_exists($file)\n\t{\n\t\t$args = $this->encryptParam(trim($file));\n\t\t$this->add_enc_chk($args);\n\t\t$request = xmlrpc_encode_request(\"rfile_exists\", $args);\n\t\t$status = $this->sendRequest($request);\n\t\tif ( $status === 0 )\n\t\t\treturn 1;\n\t\tif ( empty($status) )\n\t\t\treturn -1;\n\t\t// File does not exist.\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "9dec989037110a1dc4f41166941e7e09", "score": "0.69624007", "text": "function verify_file($name) {\n\tglobal $dir;\n\t$testPath = $dir . $name;\n\tif (!file_exists($testPath)) {\n\t\techo \"File doesn't exist: '\".$testPath.\"'.\\n\";\n\t\texit;\n\t}\n}", "title": "" }, { "docid": "ba23f23f71f5ab5c38ef44743fbd1687", "score": "0.6954721", "text": "public static function exists($path) {\n \n }", "title": "" }, { "docid": "48b0385aefeb79af73b3218a636737ec", "score": "0.6932267", "text": "public static function assertFileExists($filepath)\n {\n return file_exists($filepath);\n }", "title": "" }, { "docid": "c85154ace3e6a6bbf5ba33b3927d2c69", "score": "0.6926245", "text": "public function fileExists($name)\n\t{\n\t\treturn file_exists($this->getBasePath() . DIRECTORY_SEPARATOR . $name);\n\t}", "title": "" }, { "docid": "75d6004fe7a62cf1eed8dc21a97e2b80", "score": "0.69176286", "text": "private function minerFileExists($filepath) {\n\n $ip = self::$ip;\n $pw = self::$pw;\n $type = self::$type;\n\n $command = \"[ -f $filepath ] && echo '1' || echo '0'\";\n $response = self::sshExec($ip, $pw, $command);\n\n if ($response == 1) {\n return TRUE;\n } else {\n return FALSE;\n }\n\n }", "title": "" }, { "docid": "f7b57cae728c95efff7c146e129abcf9", "score": "0.6896332", "text": "public static function exists($filename)\n {\n return file_exists((string)$filename);\n }", "title": "" }, { "docid": "0315b0046cd14a076b2aea898eee3cbb", "score": "0.6896039", "text": "public function isDocumentExist()\n {\n $fullPath = $this->getPath() . $this->getFullName();\n return file_exists($fullPath);\n }", "title": "" }, { "docid": "a354cba06dd2ddb568322be0ce63ce9b", "score": "0.6894791", "text": "public function exists()\n {\n \n return file_exists($this->getDir().'/composer.json');\n \n }", "title": "" }, { "docid": "707e07e6e9fc0e350617ac9848d28fb8", "score": "0.6894021", "text": "function if_remote_file_exists($file)\n\t{\n\t\t$ch = curl_init($file);\n\n\t\tcurl_setopt($ch, CURLOPT_NOBODY, true);\n\t\tcurl_exec($ch);\n\t\t$retcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n\t\t// $retcode >= 400 -> not found, $retcode = 200, found.\n\t\tcurl_close($ch);\n\t\treturn $retcode==200;\n\t}", "title": "" }, { "docid": "08476215460e5f6ffa4b4bdc336747c4", "score": "0.6885452", "text": "function exists($file)\n\t{\n\t\treturn is_file(JPath::clean($file));\n\t}", "title": "" }, { "docid": "58d3412970cdacf7fc8736c13e028658", "score": "0.6883484", "text": "public function fileExists($path)\n {\n return $this->driver->fileExists($path);\n }", "title": "" }, { "docid": "24737a234a03460f0adb5d056b0d960c", "score": "0.6878342", "text": "public static function fileExists(string $path)\n {\n if (is_file($path) && is_readable($path)) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "d16fe97f921d7e5b785e2ff207237187", "score": "0.6873108", "text": "private function pathExists($path, $file = false)\n\t\t{\n\t\t\treturn $this->run(sprintf(\"[ %s %s ] && echo 'true' || echo 'false'\", $file ? \"-f\" : \"-d\", $path)) == \"true\";\n\t\t}", "title": "" }, { "docid": "d83ae1847ac55b02b2d974adcfe88b7a", "score": "0.6862238", "text": "public function fileExists($identifier) {\n\t}", "title": "" }, { "docid": "0bf688bcc14cb24b0d3ae1358b0fc3d5", "score": "0.6855714", "text": "private function exists($path)\n\t{\n\t\t// Get the path which will be uploaded\n\t\tif (self::$upload_clean_file_name == TRUE)\n\t\t{\n\t\t\t$fm_settings = $this->_getFilemanagerSettings();\n\t\t\t$this->load->library('filemanager', $fm_settings);\n\t\t\t$file_name = $this->filemanager->cleanFilename($path);\n\n\t\t\t$path_segments = explode('/', $path);\n\t\t\tarray_pop($path_segments);\n\n\t\t\t$path = implode('/', $path_segments) .'/'. $file_name;\n\t\t}\n\n\t\t$full_file_path = DOCPATH . Settings::get('files_path') . '/' . $path;\n\n\t\tlog_message('error', 'exists() $full_file_path : ' . $full_file_path);\n\n\t\t// 1. If file exists on server\n\t\treturn file_exists($full_file_path);\n\t}", "title": "" }, { "docid": "65a1ef174d68aec094b4c5c282594857", "score": "0.6853067", "text": "public function hasFile(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "936cc77483d1c0c1bf934cb2323b07a2", "score": "0.6834464", "text": "public static function exists( $file )\n {\n return file_exists($file);\n }", "title": "" }, { "docid": "12152426131a07bb105aafa9fca08dc9", "score": "0.6826868", "text": "public final function exists()\n {\n if(file_exists($this->cache_file)) return true;\n return false;\n }", "title": "" }, { "docid": "514b16f8f5e941db55c7f538ce09de2d", "score": "0.682268", "text": "public static function exists($path);", "title": "" }, { "docid": "cc3d7165c936025ce765b2f30a2c3857", "score": "0.6820131", "text": "public function exists($file)\n {\n return file_exists($this->path . $file);\n }", "title": "" }, { "docid": "fcb78c24afcea82beeaff703ee755950", "score": "0.68037033", "text": "protected function fileExists(string $file): bool\n\t{\n\t\t$file = realpath($file);\n\n\t\tif ($file === false) {\n\t\t\t$file = '';\n\t\t}\n\n\t\treturn file_exists($file);\n\t}", "title": "" }, { "docid": "0e08fceb5ff597d0728ed6294d7e73d6", "score": "0.6796793", "text": "public function exists(string $path): bool;", "title": "" }, { "docid": "1c8328c99acc1009f26a60aa5e2de255", "score": "0.67896414", "text": "public function ficheiroExiste()\n {\n if (file_exists($this->target_file)) {\n $this->msg .= \"Já existe um ficheiro com esse nome.<br /> Altera o nome e tenta novamente.<br />\";\n $this->uploadOk = 0;\n }\n }", "title": "" }, { "docid": "87f6629848254442b3e33d58fa4660e0", "score": "0.67813283", "text": "public function exists($path);", "title": "" }, { "docid": "87f6629848254442b3e33d58fa4660e0", "score": "0.67813283", "text": "public function exists($path);", "title": "" }, { "docid": "87f6629848254442b3e33d58fa4660e0", "score": "0.67813283", "text": "public function exists($path);", "title": "" }, { "docid": "87f6629848254442b3e33d58fa4660e0", "score": "0.67813283", "text": "public function exists($path);", "title": "" }, { "docid": "87f6629848254442b3e33d58fa4660e0", "score": "0.67813283", "text": "public function exists($path);", "title": "" }, { "docid": "87f6629848254442b3e33d58fa4660e0", "score": "0.67813283", "text": "public function exists($path);", "title": "" }, { "docid": "a8b74dceae9256256e295f06c8399fae", "score": "0.6775965", "text": "public function exists(string $filename)\n {\n $this->checkReadiness();\n\n return $this->storage->exists($this->basePath . '/' . $filename);\n }", "title": "" }, { "docid": "77268c262f37b25e022ef142318d7a25", "score": "0.6773082", "text": "function SERVER_fileExists($file)\n{\n\t$amount = SERVER_runInBackground('SERVER_fileExists'.md5($file), \"ls $file | grep -c $file\",\"root\", false);\n\treturn($amount > 0);\n}", "title": "" }, { "docid": "50dc739e2ad5f7e02dd4996a2c870624", "score": "0.6764457", "text": "public function testExists()\n {\n // Add method stub\n $this->client\n ->expects($this->once())\n ->method('doesObjectExist')\n ->willReturn(true);\n\n // Perform test\n $this->assertEquals(true, $this->fileService->exists(__FILE__));\n }", "title": "" }, { "docid": "d01100cb15da3ceb8011bd161ac99ce9", "score": "0.67524505", "text": "static function exists(string $path) { return is_file(\"$path.idx\"); }", "title": "" }, { "docid": "512fb54aa3b3bf4dce9363d5a16651ad", "score": "0.6751212", "text": "function exists($strFileName=NULL)\n\t{\n\t\treturn file_exists($this->_strPath.$strFileName);\n\t}", "title": "" }, { "docid": "cb17744c187294259a884528c85c97d1", "score": "0.6731854", "text": "protected function fileExists(string $path)\n {\n if (! $this->filesystem->exists($path)) return false;\n \n $this->error(sprintf('The view %s already exists in the directory!', $this->filesystem->basename($path)));\n\n return true;\n }", "title": "" }, { "docid": "dd264eef895dbd904f376db75bbfb544", "score": "0.6719751", "text": "final public static function exists ($f)\n {\n if (!file_exists ($f))\n return false;\n return true;\n }", "title": "" }, { "docid": "b4eb0b5e588ed8e981f60fde0bde1c10", "score": "0.6718927", "text": "public function exists(){\n if (file_exists($this->_target_file)) {\n echo \"Sorry, file already exists.\";\n $this->error = true;\n }\n return $this;\n }", "title": "" }, { "docid": "d097ec244764e94e5ccc5cb26fe7e5b5", "score": "0.6712633", "text": "function file_exists_2gb($filename) {\n\tglobal $config;\n\n\tif ($config[\"cacti_server_os\"] != \"win32\") {\n\t\tsystem(\"test -f $filename\", $rval);\n\t\treturn ($rval == 0);\n\t}else{\n\t\treturn 0;\n\t}\n}", "title": "" }, { "docid": "92463c723ff399bcd9d6c7ae39d3493b", "score": "0.6680213", "text": "public static function exists($path)\r\n {\r\n return file_exists($path);\r\n }", "title": "" }, { "docid": "1d43d6c601482e3a86444de603e86c6d", "score": "0.6669156", "text": "final public function fileExists($version=null):bool\n {\n return $this->commonFileExists(null,$version);\n }", "title": "" }, { "docid": "d769555e85a6739c1fd8c0beda8aadb4", "score": "0.66644824", "text": "function file_exists_url($url)\n {\n $file = $url;\n $file_headers = @get_headers($file);\n if ($file_headers[0] == 'HTTP/1.1 404 Not Found') {\n $exists = false;\n } else {\n $exists = true;\n }\n }", "title": "" }, { "docid": "04393b5dd46691219fd4423ff0b61d8f", "score": "0.66637534", "text": "private function checkFileExists($url) {\n\t\tif(strpos($url,'?') !== false) $url = substr($url,0,strpos($url,'?'));\n\t\t$pathInfo = pathinfo($url);\n\t\tif(count($pathInfo) < 3) $this->raiseError();\n\t\tif(!in_array($pathInfo['extension'],array('jpeg','jpg','jpe','png','gif','JPEG','JPG','JPE','PNG','GIF'))) $this->raiseError();\n\t\t$path = explode('/',$pathInfo['dirname']);\n\t\tif(count($path) > 1) {\n\t\t\t$assetId = array_search('assets',$path);\n\t\t\tif($assetId > 0) {\n\t\t\t\t$realPath = '../' . implode('/',array_slice($path,$assetId,count($path) - $assetId));\n\t\t\t\tif(strpos($pathInfo['basename'],'AssetLibraryPreview') !== false) {\n\t\t\t\t\t$realPath .= '/' . substr($pathInfo['basename'],strpos($pathInfo['basename'],'-'));\n\t\t\t\t} else {\n\t\t\t\t\t$realPath .= '/' . $pathInfo['basename']; \n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->raiseError();\n\t\t\t}\n\t\t\tif(file_exists($realPath)) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\t$this->raiseError();\n\t\t\t}\n\t\t} else {\n\t\t\t$this->raiseError();\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "fe964c3612dc4497d1b67f921216fcb3", "score": "0.66636825", "text": "function exists($fileName){\n\t\techo $fileName;\n\t\treturn file_exists($this->CACHE_DIR . $fileName) ? ($this->currentTime - $this->EXPIRE_TIME < filemtime($this->CACHE_DIR . $fileName)) : FALSE;\n\t}", "title": "" }, { "docid": "5af91c2e8fc1d2c99c324ded8dca72f5", "score": "0.6652145", "text": "public function fileExists(FileEntity $file)\n {\n // If we are missing a key then we know for sure it does not exist in the store\n if (!$file->getValue('dat_ans_key'))\n return false;\n\n // Construct the full request with all params\n $url = $this->requestUrl;\n $url .= \"&function=file_exists&folder=\".rawurlencode($this->ansFolder);\n $url .= \"&file=\".rawurlencode($file->getValue('dat_ans_key'));\n\n $response = file_get_contents($url);\n\n if ($response)\n {\n $xml = simplexml_load_string($response);\n if (rawurldecode($xml->retval) == \"1\")\n {\n return true;\n }\n else\n {\n $this->errors[] = new Error\\Error(rawurldecode($xml->message));\n return false;\n }\n }\n\n return false;\n }", "title": "" } ]
5261584a6db23927f1cfae54067d30ef
check if user is signed in
[ { "docid": "c5b51f089f84af8ade259818acd7305e", "score": "0.7568193", "text": "public function is_signed_in(){\n \n return $this->signed_in; \n }", "title": "" } ]
[ { "docid": "615dbf7a86a9240f2aa9ea953da35a55", "score": "0.79211664", "text": "protected function isUserLoggedIn() {}", "title": "" }, { "docid": "615dbf7a86a9240f2aa9ea953da35a55", "score": "0.79211664", "text": "protected function isUserLoggedIn() {}", "title": "" }, { "docid": "1f852ad8737bc3538a4e21c06128acb8", "score": "0.7898126", "text": "private function check_the_login(){\n \n if(isset($_SESSION['login_user'])){\n \n $this->login_user = $_SESSION['login_user'];\n $this->signed_in = true;\n \n }else{\n unset($this->login_user);\n $this->signed_in = false;\n }\n \n }", "title": "" }, { "docid": "b832359aad20547363f3d3762b798ce5", "score": "0.78423387", "text": "public function userIsLoggedIn() {\n return auth()->check() ;\n }", "title": "" }, { "docid": "71c8febac0eb476e0657dee469c973ff", "score": "0.78313595", "text": "public function loggedIn()\n {\n if($this->di->session->get('user'))\n {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "de5bcfb1187527f6cf96802bce06ecb0", "score": "0.78109276", "text": "public function UserIsSignedInOrRecirectToSignIn() {\n\t\t\n\t\tif(!isset($_SESSION['accountUser'])) { \n\t\t\trequire(TP_PAGESPATH . '/pages_login/PLogin.php');\n\t\t}\n\t}", "title": "" }, { "docid": "c340cd8f01ee5f4c30fe187ea5d6db87", "score": "0.7758274", "text": "private function isSingIn()\n\t{\n\t\tif ($this->session->isLoggon && $this->session->isAdmin) {\n\t\t\treturn true;\n\t\t}\n\t\tredirect('service/sign-out', 'refresh');\n\t}", "title": "" }, { "docid": "30e712a513ae1461f2ae7bcea5367786", "score": "0.77466613", "text": "private function isSingIn()\n {\n if ($this->session->isLoggon && $this->session->isAdmin) {\n return true;\n }\n redirect('logout', 'refresh');\n }", "title": "" }, { "docid": "ee6e387e238e5d6524834b0cf026fa2d", "score": "0.77371687", "text": "public function is_logged_in() {\n\n\t}", "title": "" }, { "docid": "37366bc742113d6b83854da307dfdfb0", "score": "0.7730581", "text": "public function logged_in()\n {\n if (isset($_SESSION['user_data'])) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "09097e090468ddb916ed38b91e50cbff", "score": "0.76703054", "text": "public function isLoggedIn()\n {\n return isset($_SESSION['user']);\n }", "title": "" }, { "docid": "ede4079ca7bbd31131cb574c5eac3f90", "score": "0.765436", "text": "private function isLoggedIn()\n {\n return isset($_SESSION['user']); \n }", "title": "" }, { "docid": "7e75f487796d74b4cbda2c7524d9311f", "score": "0.7644805", "text": "public function loggedIn()\n {\n if ($this->userId) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "2b68fff53a4e2c2c813e8f0d75364066", "score": "0.7640042", "text": "public function loggedIn(){\r\n if (isset($_SESSION['user_session']))\r\n return true;\r\n else\r\n return false;\r\n }", "title": "" }, { "docid": "9d4f213d370e5852e06358aa5d878aa6", "score": "0.760337", "text": "public function isLoggedIn();", "title": "" }, { "docid": "9d4f213d370e5852e06358aa5d878aa6", "score": "0.760337", "text": "public function isLoggedIn();", "title": "" }, { "docid": "9d61b025379539421f84b21a9b81238c", "score": "0.75890976", "text": "function isLoggedIn()\n{\n\treturn auth()->check();\n}", "title": "" }, { "docid": "bee30f9cfc7dc7a1b09b39a58bbd053b", "score": "0.7559924", "text": "function isLoggedIn(){\n return $this->auth->isLoggedIn();\n }", "title": "" }, { "docid": "a7c34f19a04c15aa8d4b53e45444ad82", "score": "0.75492394", "text": "public function isLoggedIn()\n {\n return true;\n }", "title": "" }, { "docid": "ccbbdb3b4c5a48412f342c652bdd7f2c", "score": "0.7548342", "text": "function is_logged_in()\n {\n //check session\n //return logged in user_id or false\n }", "title": "" }, { "docid": "8112810dd0e06932d484d0e7ab7f14f3", "score": "0.75425094", "text": "public static function isLoggedIn()\n {\n return (bool)Users::getCurrentUser();\n }", "title": "" }, { "docid": "f9bced8ce069624427aa6d2ebef09cc6", "score": "0.7542127", "text": "public function logged_in()\n\t{\n\t\treturn $this->_me != NULL;\n\t}", "title": "" }, { "docid": "1253f60d0e3a7f4d3bdf031d21563143", "score": "0.7526119", "text": "public function loggedIn()\n {\n if(isset($_SESSION['user']) && !empty($_SESSION['user'])) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "2495401b8a858db85e0619a3fed7a580", "score": "0.7525522", "text": "public function loggedIn()\n {\n return $this->user() != null;\n }", "title": "" }, { "docid": "38ca2ac989ab362bcf6fb3c1c7d42618", "score": "0.7516188", "text": "public function isLoggedIn()\n {\n if(Session::get('user_id') != '') {\n $this->user_id=Session::get('user_id');\n $this->role_id=Session::get('role_id');\n return true;\n }else {\n return false;\n }\n }", "title": "" }, { "docid": "73fcba3046f882502e7f61c4b9cf36c0", "score": "0.75135094", "text": "static function checkForLogIn()\n {\n if (isset($_SESSION['username'])) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "e8d6cb6f452e9d80a80fdf96e7b0e4d3", "score": "0.7506973", "text": "public function is_loggedin(){\n if(isset($_SESSION['user_session'])){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "21e6578b667b88b0e6480b7fd15d84fc", "score": "0.74969363", "text": "public function isLoggedIn()\n {\n return $this->session->has('user');\n }", "title": "" }, { "docid": "d13afe834a49ca412535a4774a455a3a", "score": "0.7494468", "text": "private function if_user_logged_in()\n {\n\n session_start();\n\n if(!empty($_SESSION)){\n\n if(isset($_SESSION[\"user_id\"]) && isset($_SESSION[\"user_type\"])){\n \n return true;\n\n }else{\n\n return false;\n }\n\n }else{\n\n return false;\n }\n }", "title": "" }, { "docid": "3b3b38bd72af36851d68abb3d16a14cb", "score": "0.7492744", "text": "function logged_in() {\n\t\treturn isset($_SESSION['USERID']);\n \n\t}", "title": "" }, { "docid": "5e7a76de096c7f8642b4177a007347ed", "score": "0.74855506", "text": "public function is_user_logged_in(){\n\t\treturn $this->session->userdata('current_user_id') != FALSE;\n\t}", "title": "" }, { "docid": "9d8ece50214e95f8f02e82752dee85cb", "score": "0.7475757", "text": "protected function _logged_in()\n\t{\n\t\t$authentic = Auth::instance();\n\t\t\n\t\tif ($authentic->logged_in())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\t\n\t\t}\n\t}", "title": "" }, { "docid": "298cf3feba5a26cae9d455e646f4a788", "score": "0.7471428", "text": "function logged_in(){\n\t\tif((isset($_SESSION['user_id']) || isset($_SESSION['username'])) && (!empty($_SESSION['user_id']) || !empty($_SESSION['username']))){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "f7d4331f712a94928852e80e7d283682", "score": "0.7469335", "text": "protected function loggedIn() {\n return isset($_SESSION) && array_key_exists(self::user, $_SESSION);\n }", "title": "" }, { "docid": "77a6e941d39155209f720033b868e383", "score": "0.7448662", "text": "static function isLoggedIn() {\n $user = self::currentUser();\n return isset($user) && $user != null;\n }", "title": "" }, { "docid": "5a054c55abf9ab0d0ab0f95ffae0e14b", "score": "0.7438993", "text": "public function is_logged_in()\n {\n return isset($this->user);\n }", "title": "" }, { "docid": "3717350f2c13c464184e3a8bee54e340", "score": "0.7437725", "text": "private static function is_logged_in () {\n\t\t# Check for the existence of the cookie\n\t\tif (isset($_COOKIE[\"user_id\"])) {\n\t\t\treturn (true);\n\t\t} else {\n\t\t\treturn (false);\n\t\t}\n\t}", "title": "" }, { "docid": "0d8fb236ec4e994c8b2cac223cb50a9a", "score": "0.7436348", "text": "public function is_loggedin()\n {\n if (isset($_SESSION['user_session'])) {\n return true;\n }\n }", "title": "" }, { "docid": "53ccd5aaaa74d062d4fab69cae48a2a2", "score": "0.7436149", "text": "public function isLoggedIn()\n {\n return ($this->userInfo->userid ? true : false);\n }", "title": "" }, { "docid": "f71cc68b6513c14b08778a25bc620abd", "score": "0.74258226", "text": "public function isAuthenticated(){\n return $_SESSION['loggedIn'];\n }", "title": "" }, { "docid": "c26b95fb2d8c01b3b923e09048cfa653", "score": "0.74241406", "text": "public function isloggedin()\n {\n return Session::userIsLoggedIn();\n }", "title": "" }, { "docid": "5ffa991787fbf194cd06089fa8a2e1d0", "score": "0.7422449", "text": "public static function check()\n {\n if (!empty($_SESSION['LOGGED_IN_USER'])){\n return true;\n } else{\n return false;\n }\n }", "title": "" }, { "docid": "01d6aa1743e913a1bf589b1c183265d9", "score": "0.7421845", "text": "public static function loggedIn(): bool\n {\n // Check if user is in the session\n return isset($_SESSION['user']);\n }", "title": "" }, { "docid": "64c0f5a105e73097a0134d4fc9f81848", "score": "0.7418848", "text": "public function is_logged_in()\n\t{\n\t\treturn ($this->session->userdata('iduser') != FALSE);\n\t}", "title": "" }, { "docid": "a2d643bbdc02d77642dd614277a66f3e", "score": "0.7418275", "text": "public static function isAuthenticated() {\n\n return isset($_SESSION[Security::SESSION_USER]) && $_SESSION[Security::SESSION_USER]->id > 0;\n\n }", "title": "" }, { "docid": "3de5bc33cd578a595b51f053f328e770", "score": "0.7414794", "text": "public function isLoggedIn(){\n // Apakah user_session sudah ada di session\n if(isset($_SESSION['user_session']))\n {\n return true;\n }\n }", "title": "" }, { "docid": "57d59da8bfcdbe1fb5169c66bd9b5dec", "score": "0.7413137", "text": "function is_logged_in() \n {\n return (empty($this->userID) || $this->userID == \"\") ? false : true;\n }", "title": "" }, { "docid": "ac7fdb8b297a1925f2d12b618beb55ca", "score": "0.73948634", "text": "public function is_google_user_logged_in(){\n\t\treturn $this->session->userdata('current_google_user_id') != FALSE;\n\t}", "title": "" }, { "docid": "6dbd0b515c48d33204d779b524e14eb8", "score": "0.73940766", "text": "public function logged_in() {\n return !empty($this->session->userdata('user_id'));\n }", "title": "" }, { "docid": "a2cab33c7d70126f02771972d30d6bd4", "score": "0.73843277", "text": "public function is_user_auth(){\n if($this->user_id==auth()->user()->id){\n return true;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "a8a5648da275bcd44513e9e57a325a22", "score": "0.7378162", "text": "private function _logged_in()\n {\n /*if(someone is logged in)\n RETURN TRUE;*/\n }", "title": "" }, { "docid": "677014b270e611f7695f27a99bee48c3", "score": "0.7374284", "text": "public static function isLoggedIn(){\n if(!self::exists('is_logged_in')&& self::get('is_logged_in')!==true){\n \n header('location:' . URL . 'user/login.php');\n exit;\n }\n }", "title": "" }, { "docid": "42691e64a7a601cae24712a47cd246a3", "score": "0.7373801", "text": "public function isUserLoggedIn() {\r\n\t\treturn ($this->coreAuthenticationFactory->isUserLoggedIn ());\r\n\t}", "title": "" }, { "docid": "9c8934d29544a038bec074e9175b9143", "score": "0.7372312", "text": "function checkUserSignedIn() {\n\t@session_start();\t//Start the session with no warning in case it already exists\n\n\t//If the user Id is not set, return false\n\tif (!isset($_SESSION['userId']))\n\t\treturn FALSE;\n\n\t//Attempt to get the user id with the session data\n\t$userId = getUserId($_SESSION['username'], $_SESSION['password']);\n\n\t//If the gathered user id is -1 or it is different from the previous userId (which should never happen)\n\tif($userId == '-1' || $userId != $_SESSION['userId']) {\n\t\tuserSignOut();\t//perform a sign out\n\t\treturn FALSE;\t//and return false\n\t}\n\n\t//If all the checks are fine return true\n\treturn TRUE;\n}", "title": "" }, { "docid": "275c153b8ea29ee33fd73cada3a41d7f", "score": "0.7362548", "text": "public function isLoggedIn() {\n $auth_cookie = Cookie::get(\"auth_cookie\"); //get hash from browser\n //check if cookie is valid\n if ($auth_cookie != '' && $this->cookieIsValid($auth_cookie)) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "64ae1a3af313143c86b0f907443b8fbd", "score": "0.735976", "text": "public function isLoggedIn()\n {\n // check session for user id\n if(isset($_SESSION['user']['id'])) {\n // return true;\n return $_SESSION['user']['id'];\n }\n else {\n return false;\n }\n }", "title": "" }, { "docid": "38d3c010dafb7c6eaef7da5008def8af", "score": "0.7359561", "text": "public function logged_in ()\n\t\t{\n\t\t\tif(!isset($_SESSION))\n\t\t\t{\n\t\t\t\tsession_start();\n\t\t\t}\n\t\t\treturn isset($_SESSION['id']);\n\t\t}", "title": "" }, { "docid": "0e3c67c350f6551893187f01bc23326e", "score": "0.73582876", "text": "function loggedIn()\n\t{\n\t\treturn $this->hasFunction(AUTH_FUNCTION_LOGGED_IN_ATTRIBUTE);\n\t}", "title": "" }, { "docid": "7b09178e84843c8aadd69b36feaf3d7e", "score": "0.7357118", "text": "public function is_logged_in()\n {\n // Check if user session has been set\n if (isset($_SESSION['session'])) {\n return true;\n }\n }", "title": "" }, { "docid": "a3a43d99300af4ca0a6c17e8385879f2", "score": "0.7354335", "text": "function is_logged_in()\n\t{\n\t\treturn require_login();\n\t}", "title": "" }, { "docid": "57914f90b476d14ab2984b6b06e28e24", "score": "0.73523515", "text": "public function isLoggedIn()\r\n {\r\n if ($this->session->has('AUTH_NAME') AND $this->session->has('AUTH_EMAIL') AND $this->session->has('AUTH_CREATED') AND $this->session->has('AUTH_UPDATED')) {\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "14442fb950cb067afbed4d7ea6e9e581", "score": "0.7352243", "text": "public function is_authenticated() {\n \n // get user\n $user = $this->CI->_auth->get_user($this->get_user_name());\n \n // does the user exist?\n if ($user == NULL) return false;\n \n return $this->CI->session->userdata(self::KEY_AUTH) == true;\n \n }", "title": "" }, { "docid": "c3eae6264e83652ddc8fcaee31b935b3", "score": "0.73518056", "text": "function checkSignedIn() {\n\tglobal $muse; // App settings & database\n\t// Only let logged in people come through\n\tif( !$_SESSION['signedIn'] ) {\n\t\taddNarrativeToXML(\"You have been signed out. Please <a href=\\\"signin.php\\\">sign in</a> to continue.\");\n\t\techo $muse['xml']->saveXML();\n\t\texit();\n\t}\n}", "title": "" }, { "docid": "190b3d3a0848e13c4c45a03d31dd4716", "score": "0.7350983", "text": "private function checkIfLoggedIn()\n {\n if (!session()->has('user')) {\n abort(403, 'You are not logged in.');\n }\n }", "title": "" }, { "docid": "652c4cc16829097c31aba11d064e8da3", "score": "0.7348717", "text": "function isLoggedIn() {\n\treturn isset($_SESSION['user_id']);\n}", "title": "" }, { "docid": "980f05d48e9d8fe42a46ffbe2b121075", "score": "0.73434305", "text": "public static function is_user_logged_in() {\r\n if (isset($_SESSION['user_id'])) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }", "title": "" }, { "docid": "48a36043c9356ee52cebc355543aa844", "score": "0.7342306", "text": "public function loggedIn()\n {\n $CI = &get_instance();\n if ($CI->session->has_userdata('user_id')) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "3563f339d4bcfdcea233cb689c6496ee", "score": "0.7340621", "text": "private function isLoggedin()\n\t{\n\t\t$this->idletime = 18000;\n\n\t\tif ((time()-$_SESSION['timestamp'])>$this->idletime)\n\t\t{\n\t\t\t$message = \"You are signed out from the previous session ! Please try sign in again!\";\n\t\t\t$this->logout($message);\n\t\t}\n\t\telseif($this->logged_in() == false)\n\t\t{\n\t\t\t$message = \"Invalid session !! Please try sign in again.\";\n\t\t\t$this->logout($message);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$_SESSION['timestamp'] = time();\n\t\t}\n\t}", "title": "" }, { "docid": "59b2c7eea008e8e1ab6a2a470126f025", "score": "0.7340594", "text": "public function is_logged_in()\n {\n if (isset($_SESSION['user_session'])) {\n return true;\n }\n }", "title": "" }, { "docid": "16060bfbaab7e679b129da6e4529b64f", "score": "0.73383754", "text": "function loggedIn() {\n\t\treturn isset($_SESSION['username']);\n\t}", "title": "" }, { "docid": "3d8eb581ae5e4f9df69083803c4c460b", "score": "0.7336527", "text": "public function isUserLoggedIn()\n {\n return $this->user_is_logged_in;\n }", "title": "" }, { "docid": "56d317942465e59621f31edd83c99ff4", "score": "0.7333949", "text": "public function isUserLoggedIn()\n {\n return $this->container->get('security.authorization_checker')\n ->isGranted('IS_AUTHENTICATED_FULLY');\n }", "title": "" }, { "docid": "c86c0c3fb2af5b2dd3e1fac0eddd5ac5", "score": "0.7329812", "text": "public function is_logged_in()\n\t{\n\t\tif(isset($_SESSION['userSession']))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "1a469227d4f629323020049bc3f369a4", "score": "0.73287994", "text": "public function checkAuth ()\n {\n if ($this->storage->isAvailable()) {\n if ($this->storage->get(self::$prefix . 'userId') !== NULL) {\n return true;\n } else {\n $this->logout();\n return false;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "f325eb04ec5a7790b64c26051d22b62c", "score": "0.7321639", "text": "function isLoggedIn(){\r\n APP::import('Component','Auth');\r\n $auth = new AuthComponent;\r\n $auth ->Session = $this->Session;\r\n $user = $auth->user();\r\n return !empty($user);\r\n \r\n }", "title": "" }, { "docid": "9f73f30c2756414d45cc554e8872cbdb", "score": "0.7318186", "text": "public function isUserAuthenticated () : bool {\n return $this->mainController->isUserAuthenticated();\n }", "title": "" }, { "docid": "1d71bc920c36db9f85b7cab6bf108e91", "score": "0.7317811", "text": "public static function loggedIn()\n\t{\n\t\treturn isset($_SESSION['id']);\n\t}", "title": "" }, { "docid": "1755bc07c77122ccb2d2c9b05662f1de", "score": "0.73175627", "text": "function logged_in() {\n\t\n\treturn isset( $_SESSION['user_id'] );\n}", "title": "" }, { "docid": "6c108672f8aff02fd98fe9a0eb496c6b", "score": "0.73145586", "text": "static public function isLoggedIn(){\n \treturn (self::getInstance()->getId()>1);\n }", "title": "" }, { "docid": "97bd13ae85f7c53024e516ef691d8a57", "score": "0.731125", "text": "public static function isLoggedIn(){\r\n\t\treturn isset($_SESSION[\"id\"]);\r\n\t}", "title": "" }, { "docid": "59786c6e15d335b21587369100456664", "score": "0.73088396", "text": "function isLoggedIn()\n\t{\n\t\tif ( $this->_isAuthorized() ){\t\n\t\t\treturn true;\n\t\t} else return false;\n\t\n\t}", "title": "" }, { "docid": "292c5b01890e2b9a05bb0735ec7e5eff", "score": "0.7304366", "text": "public function isUserLoggedIn() \n {\n if (!isset($_SESSION['user_id']) || !isset($_SESSION['is_logged_in'])) {\n return false;\n } else {\n return true;\n }\n }", "title": "" }, { "docid": "86aa3525773c3ffadd5829f0c53c650f", "score": "0.7303414", "text": "function wv_is_user_loggedin() {\n $output = 0;\n if (is_user_logged_in()) {\n $output = 1;\n } else {\n $output = 0;\n }\n return $output;\n }", "title": "" }, { "docid": "3e95986b3d579c8efd2abb5428de1acf", "score": "0.73010147", "text": "public static function isLoggedIn()\n {\n self::startSession();\n return isset($_SESSION['user']);\n }", "title": "" }, { "docid": "1cda2b0c173c431d1e57584cd1ccd2c6", "score": "0.7300776", "text": "public function isLoggedIn()\n {\n if (isset($_SESSION['username'], $_SESSION['email'])) {\n return true;\n } else {\n $url=URL::getURI('login/required');\n header(\"location:$url\");\n }\n }", "title": "" }, { "docid": "a55f462ef69bd49b2778c8ba701bb127", "score": "0.7298455", "text": "function isLoggedIn() {\n\treturn isset($_SESSION['user']);\n}", "title": "" }, { "docid": "f3de3a6a657c557d39f08ce5e867c789", "score": "0.7286829", "text": "protected function isLoggedIn()\n\t{\n\t\treturn is_user_logged_in();\n\t}", "title": "" }, { "docid": "99904b42430c1f8adfb8c384299693bf", "score": "0.72867405", "text": "public function logged_in()\r\n\t{\r\n\t\treturn (bool) $this->session->userdata('identity');\r\n\t}", "title": "" }, { "docid": "16135f7d888cc46a310e7bc5b25dfc70", "score": "0.7283704", "text": "public static function check()\n {\n if(isset($_SESSION['auth_user'])) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "daddc935c9e1fb3a86ae7e2cd254ebde", "score": "0.7276627", "text": "public static function isLoggedIN()\n {\n if (\\Auth::check() )\n {\n //get current username\n\t\t\t$user = Session::get('username');\n\t\t\treturn $user;\n }\n else\n {\n //DENIED ACCESS. Kick Out\n Session::set_flash('error', 'Please Login');\n Response::redirect('user/login');\n }\n }", "title": "" }, { "docid": "65075f3a1ef7e1555ba1986d9e7f57df", "score": "0.7276069", "text": "private function checkUserLoggedIn(): bool\n {\n $user = JFactory::getUser();\n if ($user->id > 0) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "2842855c684e872e695a207c774d1818", "score": "0.7272308", "text": "public function isUserLoggedIn()\n {\n return (isset($this->session->sUserId) && !empty($this->session->sUserId));\n }", "title": "" }, { "docid": "450f4bd1510ddcff9ff1e684ed7dc1c4", "score": "0.72704077", "text": "public static function isLoggedIn()\n {\n if(isset($_SESSION[static::$sessionKey]))\n return (self::getUser(false) ? true : false);\n \n return false;\n }", "title": "" }, { "docid": "f418d979523135f5452e9fde1a3c525f", "score": "0.72641015", "text": "public static function isLoggedIn(): bool {\n return Session::instance()->has(AccessControl::SESSION_AUTH_KEY);\n }", "title": "" }, { "docid": "8b5f27aff570ed16f47fc0239f716cb3", "score": "0.726223", "text": "public function loggedIn ()\r\n {\r\n\r\n if (isset($_SESSION['userID'])) {\r\n return true;\r\n } else {\r\n header('Location: login');\r\n exit;\r\n }\r\n }", "title": "" }, { "docid": "cd55fef7f062eceda10f0374fb139e63", "score": "0.726195", "text": "public function is_authenticated(){\n\t\tif(isset($_SESSION['uid']) && $_SESSION['ip'] == $_SERVER['REMOTE_ADDR']){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "a62eb98c95bce8b124a7763a45139e72", "score": "0.72610116", "text": "function loggedIn(){\r\n\tif(Session::exists('loggedIn') && Session::get('loggedIn')==1){\r\n\t\treturn TRUE;\r\n\t}\r\n\telse\r\n\t\treturn FALSE;\r\n}", "title": "" }, { "docid": "32d1814a74843892f4a2f063d5dd4ac5", "score": "0.72599655", "text": "public function logged_in()\n\t{\n\t\t$status = FALSE;\n\n\t\t// Get the user from the session\n\t\t$user = $this->_session->get($this->_config['session_key']);\n\n\t\tif ( ! is_object($user))\n\t\t{\n\t\t\t// Attempt auto login\n\t\t\tif ($this->auto_login())\n\t\t\t{\n\t\t\t\t// Success, get the user back out of the session\n\t\t\t\t$user = $this->_session->get($this->_config['session_key']);\n\t\t\t}\n\t\t}\n\n\t\t// check from DB if set in config\n\t\tif ($this->_config['strong_check'])\n\t\t{\n\t\t\t$user = $this->_get_object($user, TRUE);\n\t\t}\n\n\t\tif (is_object($user)\n\t\t\tAND is_subclass_of($user, 'Model_MangoRauth_User')\n\t\t\tAND $user->loaded()\n\t\t\tAND $user->is_active\n\t\t)\n\t\t{\n\t\t\t// Everything is okay so far\n\t\t\t$status = TRUE;\n\t\t}\n\n\t\treturn $status;\n\t}", "title": "" }, { "docid": "23f18863c6dadf90fb4408ea91eb7b4f", "score": "0.7259893", "text": "public function isLoggedIn()\n {\n $userId = $this->session->offsetGet('sUserId');\n\n return !empty($userId);\n }", "title": "" }, { "docid": "23f18863c6dadf90fb4408ea91eb7b4f", "score": "0.7259893", "text": "public function isLoggedIn()\n {\n $userId = $this->session->offsetGet('sUserId');\n\n return !empty($userId);\n }", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "acbe123a9dee29ba29c6475816f863a2", "score": "0.0", "text": "public function store(Request $request) {\n\t\t//\n\t}", "title": "" } ]
[ { "docid": "6fd12939ad43e0b8465f714deb95dc17", "score": "0.68325156", "text": "protected function storeResources()\n {\n try {\n $this->storage->get('version');\n } catch (\\Exception $e) {\n $this->storeVersion();\n }\n\n $resources = $this->resources(['format' => 'json']);\n $this->storage->put('resources', $resources);\n }", "title": "" }, { "docid": "d0bfac5fb1dbb1b2eafc131014133a72", "score": "0.67544043", "text": "public function store()\n\t{\n $this->resourceForm->validate(Input::all());\n $resource = Resource::create(\n Input::only('id_number', 'first_name', 'last_name', 'time_zone', 'extension_num', 'extension_pin', 'primary_phone', 'secondary_phone', 'active')\n );\n return Redirect::to('resources');\n\t}", "title": "" }, { "docid": "53b23500f551bbef6ad4a65447665f8a", "score": "0.6527683", "text": "public function store() {}", "title": "" }, { "docid": "35ea40baf62f42e40aaed808f3011b13", "score": "0.64787066", "text": "public function store()\n {\n if (!$this->id) {\n $this->insertObject();\n } else {\n $this->updateObject();\n }\n }", "title": "" }, { "docid": "14f9113e10ab16db8b93522fa5bed4d4", "score": "0.6436744", "text": "public function store() {\n // TODO: Implement store() method.\n }", "title": "" }, { "docid": "26fc32d420262b338412a368e56f3c24", "score": "0.64273345", "text": "protected function store() {\n if (count($this->storage) > 0) {\n set_transient($this->hash, $this->storage, self::$expire);\n } else {\n delete_transient($this->hash);\n }\n }", "title": "" }, { "docid": "6cd571f4466b5901b43a82652b434634", "score": "0.64145803", "text": "public function store(CreateRequest $request)\n {\n Resource::create($request->only(['name', 'type','resource_starts','resource_ends','exclude_weekends']));\n\n return redirect(route('resources.index'))->withSuccess('Resource created!');\n }", "title": "" }, { "docid": "635cb61885cca5673270994e1d7049ef", "score": "0.64108855", "text": "public function store()\n {\n return $this->sendResponse(\n new $this->resource($this->model->create($this->request->all())),\n 'successfully created.',\n true,\n 201\n );\n }", "title": "" }, { "docid": "8f52d18a0b337a866245dca6174b31f7", "score": "0.6383452", "text": "public function store()\n {\n $data = request()->validate([\n 'name' => 'required|unique:storage_locations',\n 'nickname' => 'nullable',\n 'description' => 'required',\n 'storage_type_id' => 'exists:storage_types,id'\n ]);\n\n $location = StorageLocation::create($data);\n\n session()->flash('flash', ['message' => 'Storage Location added successfully!', 'level' => 'success']);\n\n return redirect(route('storage.locations.index'));\n }", "title": "" }, { "docid": "e6a2ecff8be90a692566c0ac3bcd7773", "score": "0.6366602", "text": "public function store()\r\n\t\t{\r\n\t\t\t//\r\n\t\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" } ]
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "83f277a96c502035a215a12cd9e55d69", "score": "0.0", "text": "public function create()\n {\n //\n $categories = CentralClienteCategory::all();\n $prioritys = Priority::all();\n $statuses = Status::all();\n\n return view('front.central-cliente.front.tickets.create', compact('categories', 'statuses', 'prioritys'));\n }", "title": "" } ]
[ { "docid": "06ec3b32b9b222f39c5dee97c3ecbb36", "score": "0.7939633", "text": "public function create()\n\t{\n\t\treturn view('admin.resource.create');\n\t}", "title": "" }, { "docid": "1e65cd3b7532e9fb4c8629f59550be03", "score": "0.7734893", "text": "public function create()\n\t{\n\t\treturn view('admin.resources.create');\n\t}", "title": "" }, { "docid": "03bfd9797acc7936efbf149267039e5d", "score": "0.77260846", "text": "public function create()\n {\n return view('resource.create');\n }", "title": "" }, { "docid": "03bfd9797acc7936efbf149267039e5d", "score": "0.77260846", "text": "public function create()\n {\n return view('resource.create');\n }", "title": "" }, { "docid": "ffef4ac93b8831ae51d698379f4d9c1b", "score": "0.76836234", "text": "public function create()\n\t{\n\t\treturn view('resources.create');\n\t}", "title": "" }, { "docid": "63ad7fad99855a56a3b8abf3768cf47e", "score": "0.76252395", "text": "public function create()\n {\n return $this->showForm(\"create\");\n }", "title": "" }, { "docid": "139c49a6b5671df4af660eea4515972f", "score": "0.7600047", "text": "public function create()\n {\n return view('resources/form');\n }", "title": "" }, { "docid": "a6c7271eaebfd5b50fc91fc80fb19496", "score": "0.7468657", "text": "public function create()\n\t{\n\t\treturn view('forms.create');\n\t}", "title": "" }, { "docid": "6839a79b61064ed2d6b3c87e3aff015a", "score": "0.7459504", "text": "public function create()\n\t\t{\n\t\t\t\t// redirect to the form for creating a new entry inside the db\n\t\t\t\treturn view('create');\n\t\t}", "title": "" }, { "docid": "c21d88e95f75db4b51a6283406449c62", "score": "0.74483985", "text": "public function create()\n {\n //\n return view('resources.create');\n }", "title": "" }, { "docid": "53d013f46afef2a72260a723badd83b2", "score": "0.7388776", "text": "public function ShowForm() {\n return view('create');\n }", "title": "" }, { "docid": "b8d67d3c176a25f495b53af4d1b3e1a3", "score": "0.7346452", "text": "public function new()\n {\n $this->addBreadcrumb($this->instance, 'new');\n $this->authorize('create', $this->resourceType);\n\n return $this->view('new')\n ->with('type', $this->resourceType)\n ->with('instance', $this->instance)\n ->with('isUpdate', false);\n }", "title": "" }, { "docid": "b02f187b18d57a59d040d78094241c78", "score": "0.73457384", "text": "public function create_new()\n\t{\n\t\treturn View::make('admin.suppliers.create_supplier_form'); \n\t}", "title": "" }, { "docid": "4b843526f491cc00abff867e0dcae2bc", "score": "0.73384815", "text": "public function create()\n {\n $this->authorize('create', $this->getResourceModel());\n\n $class = $this->getResourceModel();\n return view($this->filterCreateView('_resources.create'), $this->filterCreateViewData([\n 'record' => new $class(),\n 'resourceAlias' => $this->getResourceAlias(),\n 'resourceRoutesAlias' => $this->getResourceRoutesAlias(),\n 'resourceTitle' => $this->getResourceTitle(),\n ]));\n }", "title": "" }, { "docid": "9814fd9ae63509e6eb41bf23f7a94615", "score": "0.72809595", "text": "public function create()\n {\n return view('forms.create');\n }", "title": "" }, { "docid": "a80df900a28f26c9116cae9aec9ae74b", "score": "0.7249939", "text": "public function create()\n\t{\n\t\treturn view(\"PO.form\");\n\t}", "title": "" }, { "docid": "6e54ebe7445f04b4e2540c09999df2ed", "score": "0.7249304", "text": "public function create()\n\t{\n\t\treturn view(\"retur-pembelian.form\");\n\t}", "title": "" }, { "docid": "7f97efa8cb776b86e66d91838826ac4e", "score": "0.72424", "text": "public function create()\n\t{\n\t\treturn View::make('forms.create');\n\t}", "title": "" }, { "docid": "8832246a5df8f4c7afcc8e46925833e8", "score": "0.72392076", "text": "public function create()\n {\n return view(self::VIEW_PATH_NAME . '.form');\n }", "title": "" }, { "docid": "83219f179e8e94a735c68ba031340531", "score": "0.7238169", "text": "public function create()\n {\n // TODO: return view with form\n }", "title": "" }, { "docid": "6cf89a013084a50bc3817996f9e0c883", "score": "0.72137976", "text": "public function actionCreate()\n {\n $this->renderPartial('form', array('scenario'=>'create'), false, true);\n }", "title": "" }, { "docid": "bff0d963f5957fded51be0c1b9cc5b0d", "score": "0.7155907", "text": "public function actionCreate()\r\n {\r\n $resource = new Resource();\r\n $typeResource = TypeResource::find()->all();\r\n \r\n\r\n if ($resource->load(Yii::$app->request->post()) && $resource->save()) {\r\n\r\n return $this->redirect(['view','id' => $resource->id]);\r\n\r\n }\r\n\r\n return $this->render('create',[\r\n 'resource' => $resource,\r\n 'typeResource' => $typeResource\r\n ]);\r\n }", "title": "" }, { "docid": "f94b74924ee0cca1c87e741d9a20dc31", "score": "0.7134313", "text": "public function create() {\n $viewData = $this->getDefaultViewData();\n $viewData[\"mode\"] = \"ADD\";\n $viewData[\"student\"] = new Student();\n\n return view('pages.students.form', $viewData);\n }", "title": "" }, { "docid": "9736289698140cf16452b76256ddbe3c", "score": "0.713098", "text": "public function create()\n {\n $permissions = PermissionGroup::get();\n $pageTitle = trans(config('dashboard.trans_file').'add_new');\n $submitFormRoute = route('roles.store');\n $submitFormMethod = 'post';\n return view(config('dashboard.resource_folder').$this->controllerResource.'form', compact('permissions', 'pageTitle', 'submitFormRoute', 'submitFormMethod'));\n }", "title": "" }, { "docid": "e1317794bf2d1789fb3df24f34664b93", "score": "0.7128814", "text": "public function create()\n {\n return view('admin.' . $this->obj_name . '.form');\n }", "title": "" }, { "docid": "1d24e602d0fddfe9bed3a8265b26b901", "score": "0.7128243", "text": "protected function newAction()\n {\n return $this->renderForm('new');\n }", "title": "" }, { "docid": "da898f34b0c52bea25c9b79c320b2dda", "score": "0.71265686", "text": "public function create()\n {\n return view('paperforms.create');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "750adc77c36f18c747b430100ee399b2", "score": "0.7114242", "text": "public function create()\n\t{\n\t\treturn view('supir.create');\n\t}", "title": "" }, { "docid": "21b741286121defb618cafb010ad9311", "score": "0.7101174", "text": "public function create()\n {\n return view('admin.crud.edit-new');\n }", "title": "" }, { "docid": "e9b21b0a79fd33b3521e801165da14b6", "score": "0.71004754", "text": "public function create()\n {\n // HTML FORM TO SHOW THE FORM WHERE ROLE CAN BE CREATED\n }", "title": "" }, { "docid": "653c27662115e09b10c289bcc247b0ed", "score": "0.7085364", "text": "public function create()\n {\n return view('backend.Faces.form');\n }", "title": "" }, { "docid": "f95a7ddf5c279983b88920ab48796002", "score": "0.70726883", "text": "public function create()\n {\n return view('asset::Admin/Form');\n }", "title": "" }, { "docid": "44edfc8de23a19733eb2da7dd143c6af", "score": "0.7069517", "text": "public function create()\n {\n return view('backend.pragyansubject.addform');\n }", "title": "" }, { "docid": "aaf039b41e70ea5c5580f174d0a32a5e", "score": "0.70679444", "text": "public function create()\n {\n return view('admin.addnew');\n }", "title": "" }, { "docid": "b5c63b58d384c1cc1e048d0ed39e9059", "score": "0.70607215", "text": "public function create()\n {\n //display the create form of a new item\n return view('items.create_form');\n }", "title": "" }, { "docid": "2564f7e29b410c07eef4654312bbe9bc", "score": "0.7060122", "text": "public function create()\n {\n $data['action'] = 'penjualan.store';\n return view('penjualan.form', $data);\n }", "title": "" }, { "docid": "2a113ccb1bc187d2ab6a5b9b7f32db35", "score": "0.70526356", "text": "public function newAction()\n {\n $this->view->newOrdenForm = new NewOrdenForm(null,array('required'=>''));\n $this->view->clienteForm = new ClienteNewForm(null,array('required'=>''));\n }", "title": "" }, { "docid": "2b3d89889319d795b9c5394468d0ea54", "score": "0.7052032", "text": "public function create()\n {\n return view('frontend.formulir'); \n }", "title": "" }, { "docid": "91cae3ef8fac8cbaf75c5bcaed69ef7a", "score": "0.7050331", "text": "public function create()\n {\n return view('perjadin.create');\n }", "title": "" }, { "docid": "bb6992f3db8b85054e34d06ac94efe13", "score": "0.70479286", "text": "public function create()\n {\n return view('fish-mgmt/create');\n }", "title": "" }, { "docid": "c064473eb86d48e72f7ffb601c196ae9", "score": "0.70187074", "text": "public function create()\n {\n //\n return view('Partners/Admin/form');\n }", "title": "" }, { "docid": "66b746538eaf7a550c7b3a12968b96a6", "score": "0.70147324", "text": "public function create()\n {\n return view('supplier.form');\n }", "title": "" }, { "docid": "66b746538eaf7a550c7b3a12968b96a6", "score": "0.70147324", "text": "public function create()\n {\n return view('supplier.form');\n }", "title": "" }, { "docid": "f61bf3a97df7312aaecce2030ad738da", "score": "0.700798", "text": "public function create(){\n config(['global.icon_content_title' => 'icon-bookmark']);\n config(['global.text_content_title' => 'Add Supplier']);\n config(['global.parent_text_content_title' => 'Suppliers']);\n\n //set submit route\n config(['global.submit_link' => 'store.supplier']);\n //set index route\n config(['global.index_link' => '/suppliers']);\n\n return view('supplier.create');\n }", "title": "" }, { "docid": "64c776e59f1522c2eaee823d173e2039", "score": "0.7004277", "text": "public function create()\n\t{\n\t\treturn view('product.new');\n\t}", "title": "" }, { "docid": "6d8ac76b2319312ec6d7c116d3c07dd5", "score": "0.69991225", "text": "public function create()\n {\n return view(\"admin.dokter.form\");\n }", "title": "" }, { "docid": "cd66cdfb79b8372ac27d1bcfeebf98ed", "score": "0.6994213", "text": "public function create()\n\t{\n\t\t// return View::make('avverbi.create');\n\t\treturn View::make('avverbi.edit');\n\t}", "title": "" }, { "docid": "12adf4e56f62b6fd6b2be421f733cdb4", "score": "0.698434", "text": "public function create()\n {\n return view( 'create' );\n }", "title": "" }, { "docid": "9dcc76daa4540b48df51e0c54a0f942e", "score": "0.6982116", "text": "public function create()\n {\n return view('escola.form');\n }", "title": "" }, { "docid": "b9dcd814df4a67ac3130f45aff38f1ee", "score": "0.6968916", "text": "public function create()\n {\n return view('nbform.create');\n }", "title": "" }, { "docid": "a2b4f48997315d69d4a978b07c86041b", "score": "0.696862", "text": "public function create()\n {\n return view('jamkerja.add');\n }", "title": "" }, { "docid": "3eabc09401aef2dfb0754b7c694a026f", "score": "0.6963395", "text": "public function create()\n\t{\n\t\treturn View::make('phanhois.create');\n\t}", "title": "" }, { "docid": "9cb057d0f77e53e0cce5708d50a6481b", "score": "0.6962359", "text": "public function create()\n {\n return view('new');\n }", "title": "" }, { "docid": "6e09ea0495ecf33b6615199f96a87dd9", "score": "0.6958075", "text": "public function create()\n {\n return view('inventaris.create');\n }", "title": "" }, { "docid": "12098cfc6ac9ec83d75a978a0c5abde4", "score": "0.6956841", "text": "public function showCreateForm()\n {\n return view('posts.new');\n }", "title": "" }, { "docid": "ea30089b05638deecfcdcc640118738c", "score": "0.69564354", "text": "public function create()\n {\n return view('student.add');\n }", "title": "" }, { "docid": "aaad424e12d96a3efd02522d0acdf881", "score": "0.695643", "text": "public function create()\n {\n return view('actions.create');\n }", "title": "" }, { "docid": "219163df6bc3d5b0129ff62049e525c0", "score": "0.69501215", "text": "public function create()\n {\n return view('example.form');\n }", "title": "" }, { "docid": "0224b799194fa807284fdd74a5365a99", "score": "0.6949657", "text": "public function create()\n {\n return view('anggota.form');\n }", "title": "" }, { "docid": "e9d5ae41977e28632b79e3a6a94d5e87", "score": "0.69485426", "text": "public function create()\n {\n return view('Add');\n }", "title": "" }, { "docid": "bab776a4c16cf35a4a18dc0e698ea074", "score": "0.69469535", "text": "public function create()\n {\n return view(\"users.create_form\");\n }", "title": "" }, { "docid": "1c5fb8d39758b496bbe1461e2d19ee6b", "score": "0.6941957", "text": "public function newAction()\n {\n $entity = new Rio();\n $form = $this->createCreateForm($entity);\n\n return $this->render('AppBundle:Rio:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "14ece53d5ad54ed8cdddb207f598627a", "score": "0.6938155", "text": "public function create()\n {\n //adicionar\n $professores = Professor::all();\n $action = route('disciplinas.store');\n return view('admin.disciplinas.form', compact('action', 'professores'));\n }", "title": "" }, { "docid": "4dd85a7dd2279e41326acf30c85b837f", "score": "0.6929724", "text": "public function create()\n {\n return view('QuanTriVien.form');\n }", "title": "" }, { "docid": "978bcc6315cbc834f3ebe718240ae1d3", "score": "0.6928802", "text": "public function create()\n {\n return view('actions.create');\n }", "title": "" }, { "docid": "f36ee7fce6062ca5f8a13e9136a3aa5f", "score": "0.6926847", "text": "public function create()\n {\n //\n return view('admin.cars.add');\n }", "title": "" }, { "docid": "c4416390a701ec4941a20dc3ab095a2a", "score": "0.6919174", "text": "public function create()\n\t{\n\t\treturn view('create');\n\t}", "title": "" }, { "docid": "a93a79fd5f85cdfcd02d43c4b981bd37", "score": "0.6917769", "text": "public function create()\n {\n return view('admin.rehber.create');\n\n }", "title": "" }, { "docid": "d08acefd41013b35198e14cd32167263", "score": "0.6913158", "text": "public function create()\n {\n //\n return view('hod.hod_form');\n }", "title": "" }, { "docid": "efa6db85e06a4cb8b256acb0956225d4", "score": "0.6907753", "text": "public function create()\n\t{\n\t\treturn View::make('student.create');\n\t}", "title": "" }, { "docid": "2d2afb827796ab149976949e6f7f1657", "score": "0.6902585", "text": "public function create()\n\t{\n\t\treturn View::make('penilaians.create');\n\t}", "title": "" }, { "docid": "b026faf0a320028862c1ad2d3bb9025a", "score": "0.68951064", "text": "public function create()\n {\n return view('Libro.create');\n }", "title": "" }, { "docid": "aa1b2912cd7ceea8a2b811ee2651b393", "score": "0.68948513", "text": "public function create()\n {\n return view(\"information.create\");\n }", "title": "" }, { "docid": "a097895685f56669e51313d103d810e7", "score": "0.6894119", "text": "public function create()\n {\n return view('sale-cow.form');\n }", "title": "" }, { "docid": "db3a97e80baaa42e7f0f5bbe728a3432", "score": "0.6890917", "text": "public function actionCreate()\n {\n $model = $this->findModel();\n\n $this->saveModel($model);\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "6769fe63e35d4f98abe507728065b246", "score": "0.6890337", "text": "public function create()\r\n {\r\n return view('superadmin::create');\r\n }", "title": "" }, { "docid": "732fe73681252d8413ea359a6e09f8bb", "score": "0.6889954", "text": "public function create()\n {\n //\n return view('cars.new');\n }", "title": "" }, { "docid": "862bc40da984894b74df33cb4c0d4659", "score": "0.68857306", "text": "public function create()\n {\n return view ('anggota-new');\n }", "title": "" }, { "docid": "145cf1b2c8cc73b6dcddfbab958e798f", "score": "0.68844", "text": "public function create()\n {\n return view('ovhapi::create');\n }", "title": "" }, { "docid": "bfb90be64c471e95e334f369a13f5087", "score": "0.6882399", "text": "public function create()\n {\n //\n return view('Admin.Recom.add');\n }", "title": "" }, { "docid": "61dcb96ea6324e696f199e33bd9faa7f", "score": "0.6877785", "text": "public function create()\n\t{\n\t\t//add new car\n\t\treturn View::make('cars.create');\n\t}", "title": "" }, { "docid": "de77b116e66ae6b2ef708621f63ada16", "score": "0.6877583", "text": "public function create()\n {\n return view('manager.crud.create');\n }", "title": "" }, { "docid": "14cab6c0f95bbfd3db85915cbf823b72", "score": "0.6877049", "text": "public function create()\n\t{\n\t $config = $this->getFormData();\n\n return view('client.create', $config);\n\t}", "title": "" }, { "docid": "9337b2142bbd4240614c97696097e5e6", "score": "0.6876477", "text": "public function create()\n {\n return view( 'form.product', [\n 'isCreate' => true,\n 'categorys' => Category::all(),\n 'title' => 'New Product',\n 'product' => new Product(),\n 'navActive' => 'addProduct',\n ] );\n }", "title": "" }, { "docid": "f0df442854712f9c3ad7e77a1f7f3a88", "score": "0.68750143", "text": "public function create()\n {\n return view(\"cartera.create\");\n }", "title": "" }, { "docid": "a23b6ed7018a2e2dd2c29907dfbe28e0", "score": "0.6874092", "text": "public function create() {\n\t\treturn view( 'backend.career.create' );\n\t}", "title": "" }, { "docid": "15ba46136d8015267c72f493447d645a", "score": "0.6871153", "text": "public function create()\n {\n return view('materiku::create');\n }", "title": "" }, { "docid": "19bc1da827e1cabb7b0a120ffe2b00ed", "score": "0.6870422", "text": "public function create()\n {\n return view('additive/create');\n }", "title": "" }, { "docid": "e82caa6fdd89369a0306a198d2febd53", "score": "0.6865163", "text": "public function actionCreate()\n {\n $model = new ShowWith;\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "354e1ae6b1f6e5a63b1294b3c9b61c1c", "score": "0.6864961", "text": "public function create()\n {\n return view('turno_new');\n }", "title": "" }, { "docid": "2a71d846a803ec0f01b511570f628c2f", "score": "0.686378", "text": "public function get_create()\n\t{\n\t\t$this->layout->title = 'New Relationship';\n\t\t$this->layout->content = View::make('relationships.create');\n\t}", "title": "" }, { "docid": "46163db00cf7d58cd76418e971c834ad", "score": "0.6862573", "text": "public function create()\n\t{\n\t\treturn view('palestra.create');\n\t}", "title": "" }, { "docid": "d46a9ae5fd9725a20632fb60f3ec32f6", "score": "0.6861084", "text": "public function adminCreate()\n {\n $configuration = $this->getFormFieldData();\n $configuration ['title_name'] = trans('app.file_upload');\n $configuration ['title'] = trans('app.resources');\n $configuration ['back_to_list'] = route('app.resources.index');\n return view('admin.adminForm',$configuration);\n }", "title": "" }, { "docid": "1c0601360736a4b5109044192d5528ed", "score": "0.68608975", "text": "public function create()\n {\n $data = array();\n $data['add'] = trans('main.add');\n return view('service.form', $data);\n }", "title": "" }, { "docid": "c2f03754ef7971403714c63774c1d964", "score": "0.68597066", "text": "public function create()\n {\n return view('modules.products.form');\n }", "title": "" }, { "docid": "68eac3e9797e63312bcbb06b4b9195ef", "score": "0.6857692", "text": "public function create()\n {\n return view('mineral.create');\n }", "title": "" }, { "docid": "b6cf76e82d6be800a92287cc947f7fa7", "score": "0.68555033", "text": "public function newAction()\n {\n $entity = new Plancapacitacion();\n $form = $this->createForm(new PlancapacitacionType(), $entity);\n\n // Incluimos camino de migas\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem(\"Inicio\", $this->get(\"router\")->generate(\"hello_page\"));\n $breadcrumbs->addItem(\"Capacitaciones\", $this->get(\"router\")->generate(\"pantalla_modulo\",array('id'=>3)));\n $breadcrumbs->addItem(\"Plan de capacitaciones\", $this->get(\"router\")->generate(\"pantalla_capacitaciones\"));\n $breadcrumbs->addItem(\"Registrar plan\",\"\");\n \n return $this->render('CapacitacionBundle:Plancapacitacion:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" } ]
e76550f7e18c809d919e6946079c739c
Gets the HTML to add to the header for the specific category
[ { "docid": "c803bb7419e4244f907d398483ecee3f", "score": "0.6884527", "text": "public static function getHeaderHtml($catId, $page_id = 0)\n {\n $db = DataAccess::getInstance();\n\n if (($page_id == 1 || $page_id == 69) && ($db->get_site_setting(\"show_category_head_element_in_details\") == 1)) {\n //do not display the header elements in the listing details page\n return ('');\n }\n\n $start = \"\\n<!-- Category Specific Start -->\\n\";\n $end = \"\\n<!-- Category Specific End -->\\n\";\n\n $catId = (int)$catId;\n\n if (!$catId) {\n //get defautl text\n $text = $db->get_text(true, 3);\n $header = self::_parseTpl($text[500961]);\n return ($header ? $start . $header . $end : '');\n }\n\n //see \"which header html\" to use\n $cat = $db->GetRow(\"SELECT * FROM \" . geoTables::categories_table . \" WHERE `category_id`=?\", array($catId));\n\n if (!$cat) {\n //could not get info for category use default\n return self::getHeaderHtml(0, $page_id);\n }\n\n $which = $cat['which_head_html'];\n $parent = $cat['parent_id'];\n\n $return = array();\n\n if ($which == 'parent') {\n return self::getHeaderHtml($parent, $page_id);\n }\n if ($which == 'cat' || $which == 'cat+default') {\n //append category specific!\n $langRow = $db->GetRow(\"SELECT `head_html` FROM \" . geoTables::categories_languages_table . \" WHERE `category_id`=? AND `language_id`=?\", array($catId, $db->getLanguage()));\n if ($langRow && $langRow['head_html']) {\n $return[] = self::_parseTpl(geoTemplate::parseExternalTags(geoString::fromDB($langRow['head_html'])));\n }\n }\n if ($which == 'default' || $which == 'cat+default') {\n $text = $db->get_text(true, 3);\n if ($text[500961]) {\n $return[] = self::_parseTpl($text[500961]);\n }\n }\n\n $header = implode(\"\\n\\n\", $return);\n return ($header ? $start . $header . $end : '');\n }", "title": "" } ]
[ { "docid": "e4eb6a8de02af7a0e52c038fee70a73d", "score": "0.7141225", "text": "function category_heading()\n {\n global $IN, $TMPL, $DB;\n\n if ( ! ereg(\"^C\", $IN->QSTR))\n {\n \t\t\treturn;\n \t\t}\n \t\t\n \t\tif ( ! is_numeric(substr($IN->QSTR, 1)))\n \t\t{\n \t\t\treturn;\n \t\t}\n \t\t \n\t\t$cat_id = substr($IN->QSTR, 1);\n\t\t\n\t\t$query = $DB->query(\"SELECT cat_name, cat_image FROM exp_categories WHERE cat_id = '\".$DB->escape_str($cat_id).\"'\");\n\t\t\n\t\tif ($query->num_rows == 0)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$TMPL->tagdata = preg_replace(\"/\".LD.\"category_image\\s*\".RD.\"/s\", $query->row['cat_image'], $TMPL->tagdata);\t\n\t\t$TMPL->tagdata = preg_replace(\"/\".LD.\"category_name\\s*\".RD.\"/s\", $query->row['cat_name'], $TMPL->tagdata);\t\n\n\t\treturn $TMPL->tagdata;\n }", "title": "" }, { "docid": "37e29960589ef696a4d5a8837e953bb5", "score": "0.61967754", "text": "function get_combined_categories_content_title()\n{\n global $page;\n\n $title = l10n('Albums').' ';\n\n $is_first = true;\n $all_categories = array_merge(array($page['category']), $page['combined_categories']);\n foreach ($all_categories as $idx => $category)\n {\n $title.= $is_first ? '' : ' + ';\n $is_first = false;\n\n $title.= get_cat_display_name(array($category));\n\n if (count($all_categories) > 1) // should be always the case\n {\n $other_cats = $all_categories;\n unset($other_cats[$idx]);\n\n $params = array(\n 'category' => array_shift($other_cats),\n );\n\n if (count($other_cats) > 0)\n {\n $params['combined_categories'] = $other_cats;\n }\n $remove_url = make_index_url($params);\n\n $title.=\n '<a id=\"TagsGroupRemoveTag\" href=\"'.$remove_url.'\" style=\"border:none;\" title=\"'\n .l10n('remove this tag from the list')\n .'\"><img src=\"'\n .get_root_url().get_themeconf('icon_dir').'/remove_s.png'\n .'\" alt=\"x\" style=\"vertical-align:bottom;\" >'\n .'<span class=\"pwg-icon pwg-icon-close\" ></span>'\n .'</a>';\n }\n }\n\n return $title;\n}", "title": "" }, { "docid": "33a56e593ce369bed6218d09951a750d", "score": "0.6067851", "text": "public function category()\n {\n echo \"<h1>PAGE CATEGORIE DU CONTROLEUR</h1>\";\n }", "title": "" }, { "docid": "51bf4d68e323d796c95302f5392d1653", "score": "0.60270494", "text": "function headBlock($category)\n{\n\tglobal $conf_title, $conf_charset, $conf_description, $conf_language, $lastmod;\n\tglobal $whoami;\n\n\t$thetitle = $conf_title;\n\tif ($category)\n\t\t$thetitle .= \" ($category)\";\n\t$head = '<?xml version=\"1.0\"';\n\tif (isset($conf_charset) && $conf_charset != 'utf-8')\n\t\t$head .= \" encoding=\\\"$conf_charset\\\"\";\n\t$head .= \"?\".\">\".<<<End\n<rdf:RDF\n xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n xmlns=\"http://purl.org/rss/1.0/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n>\n<channel rdf:about=\"$whoami\">\n <title>$thetitle</title>\n <link>$whoami</link>\n <description>$conf_description</description>\n\nEnd;\n\tif ($lastmod)\n\t\t$head .= \" <dc:date>\".w3cdate($lastmod).\"</dc:date>\\n\";\n\t$head .= <<<End\n <language>$conf_language</language>\n <items>\n <rdf:Seq>\n\nEnd;\n\treturn $head;\n}", "title": "" }, { "docid": "3f7b2b9f092b4c134625b6128ac2587b", "score": "0.59885603", "text": "public function header() {\n $html = <<<HTML\n<nav>\n <ul class=\"left\">\n <li><a href=\"./\">The Felis Agency</a></li>\n </ul>\nHTML;\n\n $additional = $this->headerAdditional();\n if(count($this->links) > 0){\n $html .= '<ul class=\"right\">';\n foreach($this->links as $link){\n $html .= '<li><a href=\"' .\n $link['href'] . '\">' .\n $link['text'] . '</a></li>';\n\n }\n $html .= '</ul>';\n }\n\n $html .= <<<HTML\n</nav>\n<header class=\"main\">\n <h1><img src=\"images/comfortable.png\" alt=\"Felis Mascot\"> $this->title\n <img src=\"images/comfortable.png\" alt=\"Felis Mascot\"></h1>\n $additional\n</header>\nHTML;\n return $html;\n }", "title": "" }, { "docid": "579719cfe8ecc8b186595f0e0d8ef71d", "score": "0.59144914", "text": "public function hookDisplayHeader()\n {\n return NostoHeaderContent::get($this);\n }", "title": "" }, { "docid": "d96814efcf2cca1325c5ee97f487be88", "score": "0.5904188", "text": "public function setCategory($category)\n {\n $this->header_list['category'] = array($category);\n return $this;\n }", "title": "" }, { "docid": "542e79217c4b7215127074a4ee96bca3", "score": "0.59012324", "text": "public function addCategory($category)\n {\n $this->header_list['category'][] = $category;\n return $this;\n }", "title": "" }, { "docid": "0f409794a96ba37627078175789dcf2a", "score": "0.58914703", "text": "function uamswp_fad_title($html) { \n\t\t// global $condition_title;\n\t\t//you can add here all your conditions as if is_page(), is_category() etc.. \n\t\tif ( strlen(single_cat_title( '', false )) < 34 ) {\n\t\t\t$html = single_cat_title( '', false ) . ' | Conditions | ' . get_bloginfo( \"name\" );\n\t\t} else {\n\t\t\t$html = single_cat_title( '', false ) . ' | ' . get_bloginfo( \"name\" );\n\t\t}\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "91db86a81b591b578de9ca873186144b", "score": "0.5877719", "text": "public function getCategory()\n {\n return $this->httpGet('wxaapi/newtmpl/getcategory');\n }", "title": "" }, { "docid": "c7cce8e9d06cf5db7b969e91d23ed7c2", "score": "0.5864278", "text": "function category()\n {\n $data['website_id'] = $this->admin_header->website_id();\n $data['table'] = $this->get_category_table($data['website_id']);\n $data['heading'] = 'Event Category';\n $data['title'] = \"Event Category | Administrator\";\n $this->load->view('template/meta_head', $data);\n $this->load->view('event_header');\n $this->admin_header->index();\n $this->load->view('view_category', $data);\n $this->load->view('template/footer_content');\n $this->load->view('script');\n $this->load->view('template/footer');\n }", "title": "" }, { "docid": "a895a00b68bc28f8d1f8afcc2d235ce7", "score": "0.583472", "text": "function ADV_WFAQ_Add_Header_Content($value, $column_name, $term_id) {\n global $wpdb;\n if ($column_name == \"header_name\") {\n $term_name = get_term_by('id', $term_id, 'wpwfaq');\n $cat_name = $term_name->slug;\n $shortcode = \"[worxfaq category='\" . $cat_name . \"']\";\n return $shortcode;\n } else if ($column_name == \"header_name3\") {\n $view_url = admin_url(\"edit.php?post_type=worxfaq&page=worxFaq\");\n $grp_settings = \"<a href='\" . esc_url($view_url) . \"'>View</a>\";\n return $grp_settings;\n }\n}", "title": "" }, { "docid": "dd3273606f29e3847843f05c6b381b34", "score": "0.5829512", "text": "protected function getHeader() {\n return $this->hm->getTpl(\n 'header',\n array_merge(\n array('title' => $this->getPageTitle()),\n $this->config,\n $this->placeholders\n )\n );\n }", "title": "" }, { "docid": "22b2a7dcb61130fa170153a017abd4a7", "score": "0.58217466", "text": "public function index() {\n $data['title'] = $this->html->getTitle();//I already have that code: $this->html->setTitle('Categories'); in CategoriesController.php (There will be echo $title; in header.php)\n return $this->view->render('admin/common/header', $data);//$this->view returns a ViewFactory.php Object (Refer to the coreClasses() function in Application.php class)...and $view is a View.php Object (returned from render() function)\n }", "title": "" }, { "docid": "780922023293fb0f38cf0efcb206f8a8", "score": "0.58084196", "text": "public function toString() {\n\t\tif ($this->_name == null) {\n\t\t\t$res = \"<h1>Categories</h1>\";\n\t\t}\n\t\telse {\n\t\t\tif ($this->_parent == null) {\n\t\t\t\t$res = \"<h1>\".$this->_name.\"::<a class='categoryLink' href='#categories?categoryName=null' data-categoryLink='null'>return</a></h1>\";\n\t\t\t}\n\t\t\telse\n\t\t\t\t$res = \"<h1>\".$this->_name.\"::<a class='categoryLink' href='#categories?categoryName=\".$this->_parent.\"' data-categoryLink='\".$this->_parent.\"'>return</a></h1>\";\n\t\t}\n\t\t$res .= \"<section class='row'><ul class='col-lg-12 col-md-12 col-sm-12 col-xs-12' id='categorie-list'>\";\n for ($i = 0; $i < count($this->_listCategories); $i++) {\n $res .= $this->_listCategories[$i]->toString();\n }\n $res .= \"</ul></section>\";\n\t\treturn $res;\n }", "title": "" }, { "docid": "8934be3c9410628ebd51989f8e594c91", "score": "0.58004224", "text": "public function buildHeaderTagline() {\n\t\t$headerTagline = array();\n\t\t$wsItems = array();\n\n\t\t// loop through all components received and\n\t\t// add to _wsItems based on subsection then groupId\n\t\t$wsItems = $this->getSectionElementData($this->_globalElementsData, 'global_component');\n\t\tif(isset($wsItems['header_tagline']))\n\t\t\t$this->_wsItems['header_tagline'] = $wsItems['header_tagline'];\n\n\t\tif(!empty($this->_wsItems)) {\n\t\t\tif(isset($this->_wsItems['header_tagline'])) {\n\t\t\t\tforeach($this->_wsItems['header_tagline'] as $item) {\n\t\t\t\t\tif(isset($item['title']))\n\t\t\t\t\t\t$headerTagline = $item;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(!empty($headerTagline))\n\t\t{\n\t\t\treturn $headerTagline;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn '';\n\t\t}\n\t}", "title": "" }, { "docid": "85237f2a3717738f1f7217d322f6325e", "score": "0.57988733", "text": "public function showheader()\n {\n \n $allmunes=Mainmenu::with('category')->get();\n \n $categories = Category::all();\n return view('dashboard.categories.showheader', compact('categories','allmunes'));\n }", "title": "" }, { "docid": "f58018b91911e52bb0d0b292f5a9878b", "score": "0.57902855", "text": "function rioexp_add_category_blog_header() { \n\tif ( is_home() || is_search() ) {\n\t the_category();\n }\n}", "title": "" }, { "docid": "1e430089862a0538021098fc7c0c8810", "score": "0.57831305", "text": "public function htmlHeader()\n {\n $header =\n\"<html>\n<head>\n<title>\".$this->title.\" - \".Site::config('site_name').\" | \".CMS_NAME.\"</title>\n<meta http-equiv='content-type' content='text/html; charset=utf-8'>\n<meta http-equiv='expires' content='-1' >\n<meta http-equiv='expires' content='Mon, 01 Jan 1970 23:59:59 GMT'>\n<meta http-equiv='pragma' content='no-cache'>\n\";\n\n $header .=\n $this->jsAndCssHeaderElements().\n PHP_EOL.\n $this->dropMenuJavascript().\n $this->extra_header.\n \"</head>\".PHP_EOL.\n '<body'.$this->body_props.'>'.PHP_EOL;\n\n return $header;\n }", "title": "" }, { "docid": "bd33daba72633dbde85c55024ab6ec47", "score": "0.5776926", "text": "function meta_categories() {\n\t\t$html = '';\n\t\tif ( get_post_type() === $this->post_type ) {\n\t\t\t/* translators: used between list items, there is a space after the comma */\n\t\t\t$categories_list = $this->get_terms_list( $this->get_post_id(), $this->config['tax'], true );\n\t\t\tif ( is_array( $categories_list ) && $this->config['term_count'] > 0 ) {\n\t\t\t\t$categories_list = array_slice( $categories_list, 0, $this->config['term_count'] );\n\t\t\t}\n\t\t\t$html .= sprintf( '<span class=\"meta-item meta-cat\">%1$s</span>', join( $this->config['term_sep'], $categories_list ) ); // WPCS: XSS OK.\n\t\t}\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "4915dda2bf94468f24a6cf4db2d853a1", "score": "0.5764845", "text": "public function category();", "title": "" }, { "docid": "5d9a55732da555350092de902d241f04", "score": "0.5762187", "text": "private function getContentHeader() {\n\t\t$header = array(\n\t\t\t\"type\" => 'multiple',\n\t\t\t'title' => \"News - Add article\",\n\t\t\t'url' => \"new/add/\",\n\t\t\t'titles' => array(\n\t\tarray(\n\t\t \"content\" => \"News - View all\",\n\t\t \"url\" => \"new/all\",\n\t\t),\n\t\t),\n\t\t);\n\t\treturn $header;\n\t}", "title": "" }, { "docid": "9c900424e5793607de8378fb3869de74", "score": "0.5749297", "text": "public function getCategory(){\n echo $this->category;\n }", "title": "" }, { "docid": "b11b7483a4b28de2cec4ee4224b101d1", "score": "0.5735337", "text": "function getAdminPageHeader() {\n\t\t\t\t$rss_url = \"test\";\n\t\t\t\t\n\t\t\t\t$feed = fetch_feed($rss_url);\n\t\t\t\t\n\t\t\t\tif(!is_wp_error($feed)) {\n\t\t\t\t\t$maxitems = $feed->get_item_quantity(5);\n\t\t\t\t\t$feed_items = $feed->get_items(0, $maxitems); \n\t\t\t\t}\n\t\t\t\t?>\n\t\t\t<div id=\"socrates_plugin_header\">\n <div id=\"socrates_plugin_header_title\">\n\t\t\t\t\t<div id=\"socrates_plugin_header_title_title\">Random Links</div>\n\t\t\t\t</div>\n\t\t\t\t<div id=\"socrates_plugin_header_content\">\n\t\t\t\t\t<div id=\"socrates_plugin_header_content_left\">\n\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t<?php /*\n\t\t\t\t\t\t\t\tif ($maxitems == 0) echo '<li>Error Retrieving Feed</li>';\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tforeach($feed_items as $item) { ?>\n\t\t\t\t\t\t\t\t\t<li><a href=\"<?php echo $item->get_permalink(); ?>\"><?php echo $item->get_title(); ?></a>\n\t\t\t\t\t\t\t\t\t<?php if($feed_items[count($feed_items) - 1] != $item) echo '<li><div class=\"socrates_plugin_header_content_left_division\"></div></li>'; ?>\n\t\t\t\t\t\t\t\t<?php } */?>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div id=\"socrates_plugin_header_bottom\"></div>\n\t\t\t</div>\n\t\t\t<?php\n\t\t\t}", "title": "" }, { "docid": "8a486e6bfdba4e448a5882cf0a254be0", "score": "0.5731308", "text": "function generate_html_header()\n {\n $first = $this->e->GetEntryByID($this->ids[0]);\n $res = $first->fetch_assoc();\n\n // Get the date\n $date = explode(\" \", $res[\"date\"])[0];\n ?>\n <h1>Trip Report - <?php echo $date; ?></h1>\n <div id=\"content\">\n <p class=\"description\">Trip report by <?php echo $this->user; ?>.</p>\n <?php\n }", "title": "" }, { "docid": "97a14e74630f8234a704ec4566e79350", "score": "0.5728474", "text": "function getTitle () {\n\t\t\treturn _sb('menu_categories');\n\t\t}", "title": "" }, { "docid": "5c23fb5ae4cb2a64d42f9c8e123cbaa5", "score": "0.57090765", "text": "function getHtmlHeader()\n\t{\n\t\tis_a($this, 'Context') ? $self = $this : $self = self::getInstance();\n\t\treturn $self->html_header;\n\t}", "title": "" }, { "docid": "d9fd833a254f0b791d8efbddd58005ac", "score": "0.56755763", "text": "public static function get_archive_header() {\n\t\tglobal $wp_query;\n\t\t$obj = get_queried_object();\n\t\t$heading = '';\n\t\t$subheading = array();\n\t\t$found = '';\n\n\t\tif ( is_tag() && $obj && isset( $obj->name ) ) {\n\t\t\t$heading = ucwords( $obj->name );\n\t\t}\n\n\t\tif ( is_category() && $obj && isset( $obj->name ) ) {\n\t\t\t$heading = ucwords( $obj->name );\n\t\t\tswitch ( $heading ) {\n\t\t\t\tcase 'Video':\n\t\t\t\t\t$heading = 'Videos';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'Gallery':\n\t\t\t\t\t$heading = 'Galleries';\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t$year = get_query_var( 'year' );\n\t\t$month = get_query_var( 'monthnum' );\n\t\t$day = get_query_var( 'day' );\n\t\tif ( is_year() ) {\n\t\t\t$heading = $year;\n\t\t}\n\n\t\tif ( is_month() ) {\n\t\t\t$heading = date( 'F Y', strtotime( $year . '-' . $month . '-01' ) );\n\t\t}\n\n\t\tif ( is_day() ) {\n\t\t\t$heading = date( 'F d, Y', strtotime( $year . '-' . $month . '-' . $day ) );\n\t\t}\n\n\t\tif ( $age = get_query_var( 'age' ) ) {\n\t\t\t$age = preg_replace( '/(\\d+)/', ' $1 ', $age );\n\t\t\t$heading = ucwords( $age ) . ' Old';\n\t\t}\n\n\t\tif ( $found = $wp_query->found_posts ) {\n\t\t\t$found = number_format( $found );\n\t\t\t$label = 'item';\n\t\t\tif ( $found > 1 ) {\n\t\t\t\t$label .= 's';\n\t\t\t}\n\t\t\t$subheading[] = $found . ' ' . $label;\n\t\t}\n\n\t\t$page = intval( get_query_var( 'paged' ) );\n\t\tif ( $page > 1 ) {\n\t\t\t$suffix = Daddio_Helpers::ordinal_suffix( $page, false );\n\t\t\t$subheading[] = $page . '<sup>' . $suffix . '</sup> page';\n\t\t}\n\n\t\tif ( ! empty( $subheading ) ) {\n\t\t\t$separator = ' <span class=\"separator\" aria-hidden=\"true\">&bull;</span> ';\n\t\t\t$subheading = implode( $separator, $subheading );\n\t\t}\n\n\t\tif ( empty( $heading ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$context = array(\n\t\t\t'heading' => $heading,\n\t\t\t'subheading' => $subheading,\n\t\t);\n\t\treturn Sprig::render( 'archive-header.twig', $context );\n\t}", "title": "" }, { "docid": "6e6a61369a9b4a6e7fccd93981c856a2", "score": "0.56746227", "text": "public function renderHeader()\n {\n if ($this->header !== false || !empty($this->header)) {\n $content = ArrayHelper::getValue($this->header, 'label', '');\n $options = ArrayHelper::getValue($this->header, 'options', ['class' => 'header']);\n $header = Ui::tag('div', $content, $options);\n $lines[] = Ui::beginTag('div', ['class' => 'content']);\n $lines[] = $header;\n return implode(\"\\n\", $lines);\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "3169efa28eae85fe20e5855b3d18212f", "score": "0.5659202", "text": "function lsx_post_meta_category() {\n\t\t$post_categories = wp_get_post_categories( get_the_ID() );\n\t\t$cats = array();\n\n\t\tforeach ( $post_categories as $c ) {\n\t\t\t$cat = get_category( $c );\n\t\t\t/* Translators: %s: category name */\n\t\t\t$cats[] = '<a href=\"' . esc_url( get_category_link( $cat->term_id ) ) . '\" title=\"' . sprintf( esc_html__( 'View all posts in %s' , 'lsx' ), $cat->name ) . '\">' . $cat->name . '</a>';\n\t\t}\n\n\t\tif ( ! empty( $cats ) ) {\n\t\t\t?>\n\t\t\t<span class=\"post-meta-categories\"><span><?php esc_html_e( 'Posted in: ', 'lsx' ); ?></span> <?php echo wp_kses_post( implode( ', ', $cats ) ); ?></span>\n\t\t\t<?php\n\t\t}\n\t}", "title": "" }, { "docid": "ba2d14d87a58ba9c9af0a9ad8584f8a8", "score": "0.56576633", "text": "private function get_header_tag_html( $obj_treasury ) {\n return '<h2 style=\"font-size: 16px; font-family: sans-serif; margin-left: 10px;\"><a style=\"color: rgb(51, 51, 51); text-decoration: none;\" onmouseover=\"this.style.textDecoration=\\'underline\\'\" onmouseout=\"this.style.textDecoration=\\'none\\'\" href=\"http://www.etsy.com/treasury/'.$obj_treasury->get_id().' \">\\''.$obj_treasury->get_title().'\\'</a> by <a style=\"color: rgb(51, 51, 51); text-decoration: none;\" onmouseover=\"this.style.textDecoration=\\'underline\\'\" onmouseout=\"this.style.textDecoration=\\'none\\'\" href=\"http://www.etsy.com/shop/'.$obj_treasury->get_shop().'\">'.$obj_treasury->get_shop().'</a></h2><h2 style=\"font-size: 16px; font-family: sans-serif; margin-left: 10px;\">'.$obj_treasury->get_description().'<br></h2>'; \n }", "title": "" }, { "docid": "a1960f2c40ad3aeac681c6ddcd1ef9c3", "score": "0.5656859", "text": "function get_header(){\n\t\tglobal $FANNIE_ROOT;\n\t\tob_start();\n\t\t$page_title = $this->title;\n\t\t$header = $this->header;\n\t\tinclude($FANNIE_ROOT.'src/header.html');\n\t\treturn ob_get_clean();\n\n\t}", "title": "" }, { "docid": "7d291e5dab33262c15684f62392d37f2", "score": "0.56488174", "text": "public function heading_summary() {\r\n if (!empty($this->course)) {\r\n return get_string('exportingcontentfrom', 'portfolio', $this->course->fullname);\r\n } else {\r\n return parent::heading_summary();\r\n }\r\n }", "title": "" }, { "docid": "a91cba3c405b695bed4bad07eca3f50e", "score": "0.5648194", "text": "protected function getCategoryInfoColumnHtml($category)\n {\n // Reload the entire category object because it's only been lazy loaded by Magento and\n // some fields are not available.\n $fullCategory = Mage::getModel('catalog/category')->load($category->getId());\n\n $html = \"\";\n $html .= \"<h2>\" . $fullCategory->getName() . \"</h2>\";\n $html .= \"<p>\" . $this->getDescription($fullCategory) . \"</p>\";\n\n return $html;\n }", "title": "" }, { "docid": "a6661a8650062c017ccddf40681d38a0", "score": "0.5630195", "text": "public function category() {\n\t\treturn $this->get_thrive_advanced_label();\n\t}", "title": "" }, { "docid": "001b875be780a705fc594cc94989b621", "score": "0.5630193", "text": "protected function createTableHeader() {\n\t\t$urlFormat = $this->getUrlFormatForHeader();\n\t\t$header = '<tr>' .\n\t\t\t\t$this->getHeaderWithSorting('dateAndTime', 'date', $urlFormat) .\n\t\t\t\t$this->getHeaderWithSorting('title', 'title', $urlFormat) . '\n\t\t\t\t<th>\n\t\t\t\t\t'.$GLOBALS['LANG']->getLL('category').'\n\t\t\t\t</th>' .\n\t\t\t\t$this->getHeaderWithSorting('nrOfComments', 'comments', $urlFormat) . '\n\t\t\t\t<th>\n\t\t\t\t\t' . $GLOBALS['LANG']->getLL('functions') . '\n\t\t\t\t</th>\n\t\t\t</tr>';\n\t\treturn $header;\n\t}", "title": "" }, { "docid": "782f594b50eff415b55fe62dac3385bc", "score": "0.56152934", "text": "private function getContentHeader(){\n\t\t$dato = '\n\t\t<head>'.\n\t\t$this->getMetas().\n\t\t$this->getCSS().'\n\t\t</head>';\n\n\t\treturn $dato;\n\t}", "title": "" }, { "docid": "7ef0e810d499665b7f327b157fa5ff33", "score": "0.5606687", "text": "public function getHtmlHeadSection()\n\t{\n\t\treturn '\n\t\t<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n\t\t<html xmlns=\"http://www.w3.org/1999/xhtml\" >\n\t\t\n\t\t<head>\n\t\t\n\t\t\t<title>' . $this->m_page_details[$this->m_active_view]->m_alias . '</title>\n\n\t\t\t<link rel=\"stylesheet\" href=\"/css/960_grid.css\" type=\"text/css\" />\n\t\t\t<link rel=\"stylesheet\" href=\"/css/jquery-ui-1.8.1.custom.css\" type=\"text/css\" />\n\t\t\t<link rel=\"stylesheet\" href=\"/css/colorbox.css\" type=\"text/css\" />\n\t\t\t<link rel=\"stylesheet\" href=\"/css/imgbox.css\" type=\"text/css\" /> \n\t\t\t<link rel=\"stylesheet\" href=\"/css/nivo-slider.css\" type=\"text/css\" />\n\t\t\t<link rel=\"stylesheet\" href=\"/css/common.css\" type=\"text/css\" />\n\t\t\t\n\t\t\t<script type=\"text/javascript\" src=\"/js/jquery-1.4.2.js\"></script>\n\t\t\t<script type=\"text/javascript\" src=\"/js/jquery-ui-1.8.1.custom.min.js\"></script>\n\t\t\t<script type=\"text/javascript\" src=\"/js/jquery.colorbox.js\"></script>\n\t\t\t<script type=\"text/javascript\" src=\"/js/jquery.imgbox.js\"></script>\n\t\t\t<script type=\"text/javascript\" src=\"/js/jquery.nivo.slider.js\"></script>\n\t\t\t<script type=\"text/javascript\" src=\"/js/jquery.halfnerd.js\"></script>\n\t\t\t<script type=\"text/javascript\" src=\"/js/jquery.common.js\"></script>\n\t\t\t\n\t\t\t<!--\n\t\t\t<script type=\"text/javascript\" src=\"/js/jquery.timepicker.js\"></script>\n\t\t\t<link rel=\"stylesheet\" href=\"/css/timepicker.css\" type=\"text/css\" />\n\t\t\t-->\n\t\t\t\n\t\t</head>\n\t\t';\n\t\t\n\t}", "title": "" }, { "docid": "28a09dd9500710269a937f0a230c8750", "score": "0.5600241", "text": "function get_expense_category_manage_table_headers()\n{\n\t$CI =& get_instance();\n\n\t$headers = array(\n\t\tarray('expense_category_id' => $CI->lang->line('expenses_categories_category_id')),\n\t\tarray('category_name' => $CI->lang->line('expenses_categories_name')),\n\t\tarray('category_description' => $CI->lang->line('expenses_categories_description'))\n\t);\n\n\treturn transform_headers($headers);\n}", "title": "" }, { "docid": "c82b8f058c8a608349f448f331769cc0", "score": "0.5600134", "text": "public function category(){\n return view('ui.category');\n }", "title": "" }, { "docid": "b34e0fa6b0d2ed0b6b1a5c2d88982621", "score": "0.55934715", "text": "function community_home_category() {\n\t$homecategory = get_option(\"community_options\");\n\t$homeheading = get_option(\"post_heading\");\n\tif (!empty($homecategory)) {\n\t foreach ($homecategory as $key => $option)\n\t $options[$key] = $option;\n\t \t$categoryname = get_cat_name($option);\n\t}\n\treturn $categoryname;\n\treturn $homeheading;\n}", "title": "" }, { "docid": "51d64fedcb8c9d41aa6842be9ea4968f", "score": "0.5581638", "text": "protected function renderHeader()\n {\n $content = [];\n\n if (!empty($this->title))\n array_push($content, \n Html::tag(\n 'h3', \n Html::encode($this->title),\n ['class' => 'panel-title']\n )\n );\n\n if ($this->collapsible)\n array_push($content, \n Html::a(\n Html::tag(\n 'span', \n '', \n ['class' => 'glyphicon glyphicon-chevron-'.($this->collapsed ? 'down' : 'up').' panel-collapse-icon']\n ),\n '#'.Html::encode($this->id),\n ['class' => 'btn-panel-toggle-collapse pull-right']\n )\n );\n\n return empty($content) ? '' : Html::tag(\n 'div', \n implode(PHP_EOL, $content),\n ['class' => 'panel-heading']\n );\n }", "title": "" }, { "docid": "5a805ae08966ec4200ae62941505c53f", "score": "0.5578665", "text": "function bones_header_meta() { \n\n\tglobal $post;\n\t\n\tif(is_home()) { echo '<meta name=\"description\" content=\"'.get_bloginfo('description').'\" />'; } \n\tif(is_single()) { \n\t\techo '<meta name=\"keywords\" content=\"';\n\t\t$metatags = get_the_tags($post->ID);\n\t\tif ($metatags) { \n\t\t\t$i = 0;\n\t\t\tforeach ($metatags as $tagpost) {\n\t\t\t\t$mymetatag = apply_filters('the_tags',$tagpost->name);\n\t\t\t\t$keyword = ($mymetatag);\n\t\t\t\tif ($i > 0) echo \", \"; $i++;\n\t\t\t\techo $keyword;\n\t\t}\n\t\t} else {\n\t\t\t$i = 0;\n\t\t\tforeach((get_the_category()) as $category) { \n\t\t\t\tif ($i > 0) echo \", \"; $i++;\n\t\t\t\techo $category->cat_name;\t\t\t\n\t\t\t}\t\t\n\t\t} \t\n\t\techo '\" />';\n\t}\n\tif(is_search()) { echo '<meta name=\"robots\" content=\"noindex, nofollow\" />'; }\n\t\t\n}", "title": "" }, { "docid": "a9b0644c01a03eee13dc39b2721e187c", "score": "0.55763716", "text": "function _printHTMLSectionHeader($sTitle)\n{\n\techo \"<h2 class='test-helper'>\".$sTitle.\"</h2>\";\n}", "title": "" }, { "docid": "ee644b2eb060cb72ecc0467495d7ce39", "score": "0.55727947", "text": "private function header() {\n\t\t\t$friendlyDiv = ( isset( $this->div_id ) ? $this->div_id : sanitize_key( $this->slug ) );\n\t\t\t$groupClass = $this->is_topmenu ? '' : 'group';\n ?>\n\t\t\t<div id='wpcsl-option-<?= $friendlyDiv ?>' class='<?= $groupClass ?> subtab_<?= $friendlyDiv ?> subtab settings'>\n\t\t\t <?= $this->opening_html ?>\n <?php\n if ( $this->innerdiv ) {\n echo \"<div class='inside section'>\";\n if ( ! empty( $this->description ) ) {\n print \"<div class='section_description'>\";\n }\n }\n\n if ( ! empty( $this->description ) ) {\n echo $this->description;\n }\n\n if ( $this->innerdiv ) {\n if ( ! empty( $this->description ) ) {\n echo '</div>';\n }\n }\n\t\t}", "title": "" }, { "docid": "2b7c03b66154bf20927ebc4c1dc8011a", "score": "0.55579114", "text": "public function category()\n {\n return view('categories.module_page');\n }", "title": "" }, { "docid": "7ab2b636ece137ee696e3ed7bc36519b", "score": "0.5556214", "text": "public function get_header_menu_html() {\n $context = [\n 'twitter_url' => PEDESTAL_TWITTER_URL,\n 'facebook_url' => PEDESTAL_FACEBOOK_PAGE,\n 'instagram_url' => PEDESTAL_INSTAGRAM_URL,\n\n 'site_url' => get_site_url(),\n 'domain_name' => PEDESTAL_DOMAIN_PRETTY,\n 'search_query' => get_search_query(),\n 'tagline' => PEDESTAL_BLOG_TAGLINE,\n\n 'primary_nav' => $this->get_menu_data( 'header-navigation' ),\n 'secondary_nav' => $this->get_menu_data( 'header-secondary-navigation' ),\n 'secondary_nav_mobile' => $this->get_menu_data( 'header-secondary-navigation-mobile' ),\n ];\n ob_start();\n Timber::render( 'partials/header/site-header.twig', $context );\n return ob_get_clean();\n }", "title": "" }, { "docid": "0fcc5f54c2779bca7c6432798b0787fc", "score": "0.5552503", "text": "public function category()\n\t{\n\t\t$url = (!empty($this->uri->segment(3))) ? $this->uri->segment(3) : \"\";\n\t\t\n\t\t//use the url to get the vendor id\n\t\t$singleCategoryArray = $this->Home_model->fetch_single_category_details($url);\n\t\t\n\t\t\n\t\t\n\t\tif ($singleCategoryArray !== FALSE) {\n\t\t\t\n\t\t\t$show_active_link = array( 'home' => ' ', 'about' => ' ', 'blog' => 'active', 'contact' => ' ');\n\t\t\t\n\t\t\t//fetch categories for the navigation side bar\n\t\t\t$data['nav_categories'] = $this->Home_model->fetch_three_categories(5);\n\t\t\t\n\t\t\t//retrieve and store the vendor foods in their menus\n\t\t\t$data['singleCategory'] = $singleCategoryArray;\n\t\t\t\n\t\t\t$data['home_header'] = $this->load->view('templates/home_header', $show_active_link, TRUE);\n\t\t\t$data['blog_header'] = $this->load->view('templates/blog-header', $data, TRUE);\n\t\t\t$data['cta'] = $this->load->view('templates/cta', '', TRUE);\n\t\t\t$data['footer'] = $this->load->view('templates/home_footer', '', TRUE);\n\t\t\t$data['blog_footer'] = $this->load->view('templates/blog-footer', '', TRUE);\n\t\t\t$data['category_body'] = $this->load->view('templates/category-body', $data, TRUE);\n\t\t\t\n\t\t\t$this->load->view('public/category/'. $url, $data);\n\t\t\t\n\t\t}else {\n\t\t\tredirect('blog');\n\t\t}\n\t}", "title": "" }, { "docid": "71473b8f21aef80fad5e5f00f46cbfe4", "score": "0.55491203", "text": "function category() {\n $category = $this->jsonData->entry->category[1]->{'label'};\n return $category;\n }", "title": "" }, { "docid": "acd12ed1c239eb92a3d6562c72b5e29c", "score": "0.5539562", "text": "private function display_header() {\n\t\t\t?>\n\t\t\t<div id='wpcsl_settings_group-<?= $this->slug ?>' class='settings-group ui-accordion-content-active' >\n <?php if ( ! empty( $this->header ) ) : ?>\n\t\t\t\t<h4 class='settings-header ui-accordion-header'><?= $this->header ?></h4>\n <?php endif; ?>\n\t\t\t\t<div class='inside'>\n\t\t\t\t\t<?php if ( ! empty( $this->intro ) ) : ?>\n\t\t\t\t\t\t<div class='section_column_intro' id='wpcsl_settings_group_intro-<?= $this->slug ?>'>\n\t\t\t\t\t\t\t<?= $this->intro ?>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t<?php endif; ?>\n\t\t\t<?php\n\t\t}", "title": "" }, { "docid": "ee364bfbd97fe021a198e5067ca719fb", "score": "0.553726", "text": "function _printHTMLSubSectionHeader($sTitle)\n{\n\techo \"<h3 class='test-helper'>\".$sTitle.\"</h3>\";\n}", "title": "" }, { "docid": "81f000c5e827fc9df352dc9e1df4a198", "score": "0.5535178", "text": "public function renderHeader() : string;", "title": "" }, { "docid": "1b983348e591c71f51ea1b7a5eda910f", "score": "0.553333", "text": "function tc_category_list() {\n\n $postcats = apply_filters( 'tc_cat_meta_list', get_the_category() );\n $html = false;\n if ( $postcats) {\n foreach( $postcats as $cat) {\n $html .= sprintf('<a class=\"%1$s\" href=\"%2$s\" title=\"%3$s\"> %4$s </a>',\n apply_filters( 'tc_category_list_class', 'btn btn-mini' ),\n get_category_link( $cat->term_id ),\n esc_attr( sprintf( __( \"View all posts in %s\", 'customizr' ), $cat->name ) ),\n $cat->cat_name\n );\n }//end foreach\n }//end if $postcats\n\n return apply_filters( 'tc_category_list', $html );\n }", "title": "" }, { "docid": "499ed0fd4d218d8cfdba9135ef411aef", "score": "0.5531858", "text": "function printHeader() {\n\t$_SESSION[id] = intval($_SESSION[id]);\n\t$header = file_get_contents(\"templates/header.html\");\n\t$points = getMyPoints($_SESSION[id]);\n\t$cats = getCategories(5);\n\t$categories = \" <strong style=margin-left:2em;> :: top categories :: </strong>\";\n\tforeach($cats as $c) {\n\t\t$categories .= buildLink(\"?category=$c[name]\",$c[name]).\" \"; \n\t}\n\n\tif($_SESSION[id]==0) { $login = buildLink(\"login.php\",\"log in/register\",\"login\"); }\n\telse { \n\t\t$username = getUsername($_SESSION[id]);\n\t\t$login = buildLink(\"?logout=1\",\"log out\",\"login\") . \"::\" . \n\t\t\tbuildLink(\"user.php?name=$username\",\"$username ($points)\",\"login\"); \n\t\t$submit = buildLink(\"submit.php\",\"submit a link\"); \n\t}\n\n\tif($_GET[category] != NULL) { // Are we in a category?\n\t\t$q[category] = $_GET[category];\n\t\t$title = \"$_GET[category]\";\n\t}\n\telseif($_GET[domain] != NULL) { // Are we in a domain?\n\t\t$q[domain] = $_GET[domain];\n\t\t$title = \"$_GET[domain]\";\n\t}\n\telseif(isset($_GET[id])) { // Are we on a user page?\n\t\t$q[id] = $_GET[id];\n\t\t$title = getUsername($_GET[id]);\n\t\t$titleurl = \"user.php\";\n\t}\n\n\t$sitetitlelink = buildLink(\"\",\" :: \" . SITE_TITLE . \" ::\",\"diggit\").\"\";\n\tif(!empty($q)) { // Create the page title link \n\t\t$qs = buildQueryString($q);\n\t\t$titlelink = buildLink($titleurl.\"?\".$qs,$title,\"headercat\").\"::\";\n\t\t$title = \":: $title\";\n\t\tunset($q[id]);\t\n\t}\n\n\t$new = buildLink($index.\"?\".buildQueryString($q,\"order=new\"),\"what's new?\");\n\t$hot = buildLink($index.\"?\".buildQueryString($q,\"order=hot\"),\"what's hot?\");\n\t$top = buildLink($index.\"?\".buildQueryString($q,\"order=top\"),\"most popular\");\n\n\t$placeholders = array(\"USERID\" => $_SESSION[id], \"LOGIN\" => $login, \"SUBMIT\" => $submit, \n\t\t\"NEW\" => $new, \"HOT\" => $hot, \"TOP\" => $top,\n\t\t\"CATEGORY\" => $cat, \"DOMAIN\" => $domain, \"PAGE_TITLE\" => $title, \"TITLE_LINK\" => $titlelink,\n\t\t\"SITE_TITLE\" => SITE_TITLE, \"SITE_TITLE_LINK\" => $sitetitlelink, \"CATS\" => $categories, \"PREFIX\" => PREFIX);\n\n\tforeach($placeholders as $p => $value) {\n\t\t$header = str_replace(\"{\".$p.\"}\",$value,$header);\n\t}\n\tprint($header);\n}", "title": "" }, { "docid": "fe976b5fc1e8342f6f63a1ca4745917c", "score": "0.5525904", "text": "public function category() {\n $this->data['title'] = \"Category\";\n\n return view('frontend.pages.category');\n }", "title": "" }, { "docid": "ef5c60ad80bb0c1839eb6ca70a0f3290", "score": "0.5510586", "text": "public static function header_logic($title = \"cjmil.com\", $description = \"cjmil.com houses the work of Colin J. Miller, a computer scientist and web developer from the Seattle area\") {\n $VERSION = 2;\n\n ?>\n <!DOCTYPE html>\n <html lang=\"<?= t('lang') ?>\">\n <head>\n <meta charset=\"utf-8\">\n <title><?= $title ?> | Colin J. Miller</title>\n <meta name=\"description\" content=\"<?= $description ?>\">\n <meta name=\"author\" content=\"\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <link href='//fonts.googleapis.com/css?family=Raleway:400,300,600' rel='stylesheet' type='text/css'>\n <link rel=\"stylesheet\" href=\"/css/style.css?version=<?= $VERSION ?>\">\n <link rel=\"icon\" type=\"image/png\" href=\"/images/favicon.png\" />\n <script type=\"text/javascript\">\n var _gaq = _gaq || [];\n _gaq.push(['_setAccount', 'UA-24488311-7']);\n _gaq.push(['_trackPageview']);\n (function() {\n var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\n ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\n var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\n })();\n </script>\n <script src=\"/javascript/common.js\"></script>\n </head>\n <body>\n <?php\n }", "title": "" }, { "docid": "82526ee211d5f055fa5093a6ee65e2e0", "score": "0.5509633", "text": "private function setUpTableForCategoryTags( ) {\n $categories = $this->getTagTreeResourceCategory( $this->_tagTree, $this->_clientId );\n\n if( $categories != 0 ) {\n $categoryTree = $categories['children'];\n //print the category head\n echo \"<tr class='noClickThrough' style='border-top: 3px solid #ddd;'><td colspan='2' style='padding-top:20px;'><strong>PAGE SPECIFIC TAGS:</strong></td></tr>\";\n for($r=0; $r < count($categoryTree); $r++) {\n //print the category head\n echo \"<tr class='noClickThrough' style='border-top: 3px solid #ddd;'><td colspan='2' style='padding-top:20px;'><strong>\" . $categoryTree[$r]['name'] . \"</strong></td></tr>\";\n //set a counter for level 2 tags\n $this->_tagGroupCounter = 0;\n $this->createCategoryTable($categoryTree[$r]['children'], $this->_clientId, 1, $this->pageTags );\n }\n }\n //prints an All Tags heading if was page-category tag list, and if there more non page-category tags\n if( $categories != 0 && count($this->_tagTree) != 0) {\n echo \"<tr class='noClickThrough' style='border-top: 3px solid #ddd;'><td colspan='2' style='padding-top:20px;'><strong>ALL TAGS:</strong></td></tr>\";\n }\n }", "title": "" }, { "docid": "f6e156da5d83d1618ac54f3e1b2d030d", "score": "0.549931", "text": "function apoc_group_forum_header() {\n\t$content = ob_get_contents();\n\tob_end_clean();\n\t\n\t// Print the group forum header \n\tif ( !bbp_is_single_forum() ) :\n\t\n\t\t// Get the title prefix\n\t\t$prefix = \"\";\n\t\tif ( bbp_is_topic_edit() || bbp_is_reply_edit() ) $prefix = \"Edit: \";\n\t\telseif ( bbp_is_topic_merge() ) $prefix = \"Merge: \";\n\t\telseif ( bbp_is_topic_split() ) $prefix = \"Split: \"; ?>\n\t\t\n\t\t<header id=\"forum-header\" class=\"entry-header <?php apoc_topic_header_class(); ?>\">\n\t\t\t<h1 class=\"entry-title\"><?php echo $prefix . bbp_get_topic_title(); ?></h1>\n\t\t\t<?php apoc_topic_description(); ?>\n\t\t\t<div class=\"forum-actions\">\n\t\t\t\t<?php apoc_get_search_form( 'topic' ); ?>\n\t\t\t</div>\n\t\t</header>\n\t\t<?php endif;\n\n\t// Echo the buffered content\n\techo $content;\n}", "title": "" }, { "docid": "087f978b454e6b1043d7f7eb5e94f700", "score": "0.5495677", "text": "public function getHeaderText()\n {\n\n // $this->_addButton('add_new', array(\n // 'label' => 'Add New Image',\n // 'onclick' => \"setLocation('{$this->getUrl('*/*/newimage',array(\"id\"=>$this->getRequest()->getParam(\"id\")))}')\",\n // 'class' => 'add'\n // ));\n\n if( Mage::registry('gallery_data'))\n {\n return 'Edit Gallery'.$this->htmlEscape().'<br />';\n }\n else\n {\n return 'Add a Gallery';\n }\n }", "title": "" }, { "docid": "4e3bd49e87b91d92d90535e719c3339c", "score": "0.5486078", "text": "public function generateMetaTitle()\n {\n $this->generateEntityByTypeIdForCategory(\n \\MageWorx\\SeoXTemplates\\Model\\Template\\Category::TYPE_CATEGORY_META_TITLE\n );\n }", "title": "" }, { "docid": "a20596d7b2e93802ee21bebd76ecb981", "score": "0.5485879", "text": "function crypton_blog_woocommerce_title_wrapper_end2($category) {\n\t\t\t?>\n\t\t\t</div><!-- /.post_header -->\n\t\t<?php\n\t\tif (crypton_blog_storage_get('shop_mode') == 'list' && is_shop() && !is_product()) {\n\t\t\t?>\n\t\t\t<div class=\"post_content entry-content\"><?php crypton_blog_show_layout($category->description); ?></div><!-- /.post_content -->\n\t\t\t<?php\n\t\t}\n\t}", "title": "" }, { "docid": "82887d324500e86be801015e035ce85a", "score": "0.54851884", "text": "function header_menu() {\n \t//echo '<div class=\"header-menu\"><ul><li><a href=\"'.get_bloginfo('url').'\">Home</a></li>';\n \t//wp_list_categories('title_li=&depth=1&number=5');\n \t//echo '</ul></div>';\n }", "title": "" }, { "docid": "89df2124729b79d54f5534f4b813c047", "score": "0.54817593", "text": "public function render()\n {\n parent::render();\n\n /** @var \\OxidEsales\\Eshop\\Application\\Model\\Category $oCategory */\n $oCategory = $this->createCategory();\n $categoryId = $this->getEditObjectId();\n\n $this->_aViewData[\"edit\"] = $oCategory;\n $this->_aViewData[\"oxid\"] = $categoryId;\n\n // Current category exists\n if (isset($categoryId) && $categoryId != self::NEW_CATEGORY_ID) {\n // Load object based on empty Category entity\n $oCategory->loadInLang($this->_iEditLang, $categoryId);\n }\n\n // Load media files\n $this->_aViewData['aMediaUrls'] = $oCategory->getMediaUrls();\n\n return \"category_main.tpl\";\n }", "title": "" }, { "docid": "19623ce206a389611caf547342cb5504", "score": "0.5479757", "text": "public function category(){\n $og = Page::with('open_graph')->where('url', 'category')->first();\n $headerCode = Page::with('open_graph')->where('url', '=', 'album')->first();\n\n $categories=Category::with('category_'.currentLang(),'image','products')->get();\n return view('website.category',compact('categories','og','headerCode'));\n }", "title": "" }, { "docid": "8421c0bc46b2d788ff1fdaf235410f7c", "score": "0.5479754", "text": "public function heading() {\n global $PAGE;\n\n $css_filename = '/blocks/moduleoverzicht/styles.css';\n\n $PAGE->requires->css($css_filename, true);\n\n $html = '';\n\n\t\t$html .= html_writer::start_tag('div', array('class' => 'my-module-overview'));\n\t\t$html .= html_writer::start_tag('section', array('id' => 'fixy-my-courses'));\n\t\t$html .= html_writer::start_tag('div', array('class' => 'clearfix'));\n\n return $html;\n }", "title": "" }, { "docid": "536da9b96d97acc29c85a6093130e9c2", "score": "0.5476345", "text": "public function header()\n {\n $html = array();\n\n $html[] = '<div id=\"' . $this->name . '_panels\">';\n\n return implode(PHP_EOL, $html);\n }", "title": "" }, { "docid": "7bddc12846b1fe2f63edb637f2eebba0", "score": "0.5476324", "text": "public function sort_by_category()\n {\n $myrows = $widget_instances = get_option('widget_' . 'standout_news_widget');\n foreach ($widget_instances as $instance) :\n $category = $instance['category'];\n if ($category != '') :\n $category_string = $category;\n return $category_string;\n endif;\n endforeach;\n }", "title": "" }, { "docid": "a4e45dcd817c896472a805a2a7430a0c", "score": "0.54570884", "text": "public function renderHeadSection()\n\t{\n\t\treturn $this->createTemplate(dirname(__FILE__) . \"/head.latte\")->__toString(TRUE);\n\t}", "title": "" }, { "docid": "b8bb02b7c118336c807599168fed31d7", "score": "0.54551405", "text": "public function categories()\n {\n\n $tpl['ALPHA_CLICK'] = $this->rolodex->alpha_click();\n $tpl['CATLIST'] = Categories::getCategoryList('rolodex');\n\n $this->rolodex->title = sprintf(dgettext('rolodex', '%s Categories'), PHPWS_Settings::get('rolodex', 'module_title'));\n $this->rolodex->content = PHPWS_Template::process($tpl, 'rolodex', 'categories.tpl');\n }", "title": "" }, { "docid": "ef6effa56ec00d703a27a256ae86d595", "score": "0.5454537", "text": "public function get_category()\n {\n return 'Admin Utilities';\n }", "title": "" }, { "docid": "efa99e8b293ebf5005ba85ea238b2cc9", "score": "0.5452338", "text": "public function getHeaderHtml()\n\t{\n\t\treturn $this->_headerHtml;\n\t}", "title": "" }, { "docid": "a58e078b8d1325650203ad59aefc8391", "score": "0.5449453", "text": "public function categoryTemplates()\n\t{\n\t\t#check if list was generated\n\t if(!empty($_SESSION['category']))\n\t {\n\t \t\t$html = \"<ul class=\\\"type\\\">\";\n\t\t\tforeach($_SESSION['category'] as $key=>$value)\n\t\t\t{\n\t\t\t\t$html .=\"<li><a href=\\\"?category=\".$key.\"\\\">\".$value.\"</a></li>\";\n\t\t\t}\n\t\t\t$html .= \"</ul>\";\n\t\t\treturn $html;\n\t }\n\t else\n\t {\n\t return $html = ERRTEMPLATECAT;\t\t \n\t }\n\t}", "title": "" }, { "docid": "e63ed0b5e4a59ba3d57f0e187ebdadff", "score": "0.54430413", "text": "function build_html_page_header( $title, $other )\n{\n return \"\n \t <!doctype html>\n \t <html>\n \t\t <head>\n \t\t \t<title> $title </title>\n <link href='CSS/resume.css' rel='stylesheet' type='text/css'/>\n \t\t $other\n </head>\n \t\t\";\n}", "title": "" }, { "docid": "b55d7e37f7172c4d6c39d3d818d12bb3", "score": "0.54397565", "text": "public function getCategory(): string\n {\n return $this->category;\n }", "title": "" }, { "docid": "b14adb4a3e7d27f9bfab84d3dba2acb3", "score": "0.54385674", "text": "public function getHeadHtml(){\n\t\treturn \"<head>{$this->getTitleHtml()}{$this->getStyles()}{$this->getJs()}</head>\";\n\t}", "title": "" }, { "docid": "4221c69a2a3350348c9378f04084fec6", "score": "0.54382557", "text": "public function headingHtml()\n {\n return !empty($this->heading) ? str_replace(':heading', $this->heading, $this->settings['heading']) : '';\n }", "title": "" }, { "docid": "53c62acac756669dae3dfff25c94022b", "score": "0.54289496", "text": "public function showheader()\r\n\t{\r\n\t\treturn $this->header;\r\n\t}", "title": "" }, { "docid": "53c62acac756669dae3dfff25c94022b", "score": "0.54289496", "text": "public function showheader()\r\n\t{\r\n\t\treturn $this->header;\r\n\t}", "title": "" }, { "docid": "8e7fe1203bfb2a1285e6aa5aea7d4c9d", "score": "0.5428234", "text": "function get_element_header_local(&$element, $withlink=false, $icon=true, $spacerifnone=false, $titlelength = null, $catname) {\n $header = '';\n\n\t switch ($element['type']) {\n\t\t\tcase 'courseitem':\n\t\t\t\t$header .= get_string('coursetotal', 'gradereport_laegrader');\n\t\t\t\tbreak;\n\t\t\tcase 'categoryitem':\n\t\t\t\t$header .= get_string('categorytotal', 'gradereport_laegrader');\n\t\t\tdefault:\n\t\t \t\t$header .= $catname . ' ';\n\t\t}\n\t\tif ($element['object']->aggregationcoef > 1) {\n\t\t $header .= ' W=' . format_float($element['object']->aggregationcoef,1, true, true) . '% ';\n\t\t}\n\t\tif ($titlelength) {\n\t $header = wordwrap($header, $titlelength, '<br />');\n }\n\n if ($icon) {\n $header = $this->get_element_icon($element, $spacerifnone) . $header;\n }\n\n if ($withlink) {\n $url = $this->get_activity_link($element);\n if ($url) {\n $a = new stdClass();\n $a->name = get_string('modulename', $element['object']->itemmodule);\n $title = get_string('linktoactivity', 'grades', $a);\n\n $header = html_writer::link($url, $header, array('title' => $title));\n }\n }\n\n return $header;\n }", "title": "" }, { "docid": "b8561d7ca302967577f87ae626df4e4b", "score": "0.5426777", "text": "function majale_get_category($separator = ', ')\n\t{\n\t\t// solid list of tags.\n\t\t$categories = get_the_category();\n\t\t\n\t\t// get number of items in categories array.\n\t\t$count_separator = count($categories);\n\n\t\t// define category title.\n\t\t$title = '<h5 class=\"cat-title\"><i class=\"fa fa-folder\"></i> ' . __('Categories: ', 'majale') . '</h5>';\n\n\t\t// start outputing actual category list.\n\t\t$output = '<span class=\"cat-list\"> ';\n\n\t\t// if we have some.\n\t\tif($categories)\n\t\t{\n\t\t\t/**\n\t\t\t * we do all of these staff because of preventing output to \n\t\t\t * print extra seprator, all for design.\n\t\t\t */\n\t\t\tforeach($categories as $category)\n\t\t\t{\n\t\t\t\t// prevent last extra separator\n\t\t\t\t$count_separator--;\n\t\t\t\t$separator = ($count_separator) ? $separator : \"\";\n\n\t\t\t\t$output .= '<a href=\"' . get_category_link( $category->term_id ) . '\" title=\"' . esc_attr( sprintf( __( \"View all posts in %s\", \"majale\" ), $category->name ) ) . '\">' . $category->cat_name . '</a>' . $separator;\n\t\t\t}\n\t\t\t$output .= '</span>';\n\t\t\t$output = $title .= $output;\n\n\t\t\t// remove spaces and print\n\t\t\techo trim($output, $separator);\n\t\t}\n\t}", "title": "" }, { "docid": "3b8dd808177248b198af7d112a80eacc", "score": "0.54240936", "text": "function createCategoryEntry() {\n\t if (DEBUG&&DEBUGLEVEL&1) debug('Start method common::createCategoryEntry()');\n\t global $table,$languageXML;\n\t if($table['name'] != \"snmptt_unknown\") {\n\t $this->site[] = ' <TR>';\n\t $this->site[] = ' <TD VALIGN=\"top\" ALIGN=\"left\" CLASS=\"filterName\">'.$languageXML['LANG']['HEADER']['FILTER']['CATEGORY'].':</TD>';\n\t $this->site[] = ' <TD VALIGN=\"top\" ALIGN=\"left\" CLASS=\"filterName\">';\n\t $this->site[] = ' '.common::checkRequest(rawurldecode($_REQUEST['category']));\n\t $this->site[] = ' </TD>';\n\t $this->site[] = ' </TR>';\n\t }\n\t if (DEBUG&&DEBUGLEVEL&1) debug('End method common::createCategoryEntry()');\n\t}", "title": "" }, { "docid": "93d6535df4a071d63b0a6dd779989a00", "score": "0.54182446", "text": "public function category()\n {\n return view('pages.categories.category');\n }", "title": "" }, { "docid": "048c6271225b43cc89118cf22dce3cc9", "score": "0.5417029", "text": "function crypton_blog_woocommerce_shop_loop_subcategory_title($cat) {\n\n $cat->name = sprintf('<a href=\"%s\">%s</a>', esc_url(get_term_link($cat->slug, 'product_cat')), $cat->name);\n ?>\n <h2 class=\"woocommerce-loop-category__title\">\n <?php\n echo $cat->name;\n\n if ( $cat->count > 0 ) {\n echo apply_filters( 'woocommerce_subcategory_count_html', ' <mark class=\"count\">(' . esc_html( $cat->count ) . ')</mark>', $cat ); // WPCS: XSS ok.\n }\n ?>\n </h2><?php\n //if (crypton_blog_storage_get('in_product_item') && is_object($cat)) {\n //\t$cat->name = sprintf('<a href=\"%s\">%s</a>', esc_url(get_term_link($cat->slug, 'product_cat')), $cat->name);\n //}\n //return $cat;\n }", "title": "" }, { "docid": "c349d583e74d569111044fea460c917c", "score": "0.54167247", "text": "public function getHeaderTree() {\n return $this->_buildHeaderBranch($this->root_category_id);\n }", "title": "" }, { "docid": "5fb75d62e96453c8164431ffb571c86c", "score": "0.54144907", "text": "public function get_category(){\n return $this->category;\n }", "title": "" }, { "docid": "3fd2263e0d26fbf6b7054fe7cd4ffaad", "score": "0.5407641", "text": "public function category() {\n\t\treturn static::get_thrive_advanced_label();\n\t}", "title": "" }, { "docid": "3fd2263e0d26fbf6b7054fe7cd4ffaad", "score": "0.5407641", "text": "public function category() {\n\t\treturn static::get_thrive_advanced_label();\n\t}", "title": "" }, { "docid": "b4d11dd28102d9cc4ab4849d358f6748", "score": "0.5405471", "text": "protected function _toHtml()\n {\n if ($this->getCategoryIdPath()) {\n return parent::_toHtml();\n }\n\n return '';\n }", "title": "" }, { "docid": "fe81d4bac8c56e313ea6c1542e5b30e5", "score": "0.54007435", "text": "public function getHeaderTitleTag()\r\n {\r\n return $this->HeaderTitleTag;\r\n }", "title": "" }, { "docid": "17fb0a43b4bd119d57cc69f86613c122", "score": "0.5396894", "text": "function klippe_mikado_get_header() {\n\t\t$id = klippe_mikado_get_page_id();\n\t\t\n\t\t//will be read from options\n\t\t$header_type = klippe_mikado_get_meta_field_intersect( 'header_type', $id );\n\t\t\n\t\t$menu_area_in_grid = klippe_mikado_get_meta_field_intersect( 'menu_area_in_grid', $id );\n\t\t\n\t\t$header_behavior = klippe_mikado_get_meta_field_intersect( 'header_behaviour', $id );\n\t\t\n\t\tif ( HeaderFactory::getInstance()->validHeaderObject() ) {\n\t\t\t$parameters = array(\n\t\t\t\t'hide_logo' => klippe_mikado_options()->getOptionValue( 'hide_logo' ) == 'yes' ? true : false,\n\t\t\t\t'menu_area_in_grid' => $menu_area_in_grid == 'yes' ? true : false,\n\t\t\t\t'show_sticky' => in_array( $header_behavior, array(\n\t\t\t\t\t'sticky-header-on-scroll-up',\n\t\t\t\t\t'sticky-header-on-scroll-down-up'\n\t\t\t\t) ) ? true : false,\n\t\t\t\t'show_fixed_wrapper' => in_array( $header_behavior, array( 'fixed-on-scroll' ) ) ? true : false,\n\t\t\t);\n\t\t\t\n\t\t\t$parameters = apply_filters( 'klippe_mikado_header_type_parameters', $parameters, $header_type );\n\t\t\t\n\t\t\tHeaderFactory::getInstance()->getHeaderObject()->loadTemplate( $parameters );\n\t\t}\n\t}", "title": "" }, { "docid": "554081f8a075ab843c7f39a708296447", "score": "0.5393824", "text": "protected function renderHeader($lang) {\n return '<?xml version=\"1.0\" encoding=\"UTF-8\"?>' . \"\\n\" .\n '<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">' . \"\\n\";\n }", "title": "" }, { "docid": "b9ce96626196ee2518ae0cb03d465202", "score": "0.53936684", "text": "function view_category() {\n if($this->request->isApiCall()) {\n if($this->active_category->isLoaded()) {\n $this->response->respondWithData($this->active_category, array(\n 'as' => 'category', \n \t'detailed' => true, \n ));\n } else {\n $this->response->notFound();\n } // if\n } else {\n $this->response->badRequest();\n } // if\n }", "title": "" }, { "docid": "b288783ca04411ef650d2dbc00b833da", "score": "0.53934693", "text": "public function view_cat() {\n $layout_title = \"View Category\";\n $this->set\n (compact('layout_title'));\n }", "title": "" }, { "docid": "69d05abab597c1c41aaf679164b7c144", "score": "0.5382397", "text": "public function header_block()\n\t{\n\t\t$content = Kohana::config(\"globalcode.head\").\n\t\t\t$this->_header_css().\n\t\t\t$this->_header_feeds().\n\t\t\t$this->_header_js();\n\n\t\t// Filter::header_block - Modify Header Block\n\t\tEvent::run('ushahidi_filter.header_block', $content);\n\n\t\treturn $content;\n\t}", "title": "" }, { "docid": "96e6b33bc6c612c17151584d05654448", "score": "0.5378921", "text": "function sienna_mikado_get_header() {\n\n\t\t//will be read from options\n\t\t$header_type = sienna_mikado_options()->getOptionValue('header_type');\n\t\t$header_behavior = sienna_mikado_options()->getOptionValue('header_behaviour');\n\n\t\textract(sienna_mikado_get_page_options());\n\n\t\tif(HeaderFactory::getInstance()->validHeaderObject()) {\n\t\t\t$parameters = array(\n\t\t\t\t'hide_logo' => sienna_mikado_options()->getOptionValue('hide_logo') == 'yes' ? true : false,\n\t\t\t\t'show_sticky' => in_array($header_behavior, array(\n\t\t\t\t\t'sticky-header-on-scroll-up',\n\t\t\t\t\t'sticky-header-on-scroll-down-up'\n\t\t\t\t)) ? true : false,\n\t\t\t\t'show_fixed_wrapper' => in_array($header_behavior, array('fixed-on-scroll')) ? true : false,\n\t\t\t\t'menu_area_background_color' => $menu_area_background_color,\n\t\t\t\t'vertical_header_background_color' => $vertical_header_background_color,\n\t\t\t\t'vertical_header_opacity' => $vertical_header_opacity,\n\t\t\t\t'vertical_background_image' => $vertical_background_image\n\t\t\t);\n\n\t\t\t$parameters = apply_filters('sienna_mikado_header_type_parameters', $parameters, $header_type);\n\n\t\t\tHeaderFactory::getInstance()->getHeaderObject()->loadTemplate($parameters);\n\t\t}\n\t}", "title": "" }, { "docid": "f0aa9963fa99ac57aceb46420ba137a9", "score": "0.5377206", "text": "public function headerHTML() {\n\t\t//include the header.php file\n\t\tinclude 'templates/header.php';\n\t}", "title": "" }, { "docid": "344f1ef2620680b8c655c188df24b777", "score": "0.5377024", "text": "public function run()\n {\n //\n $getMenu = SiteMenu::getCategories('top');\n return view('widgets.menu_header', [\n 'config' => $this->config,\n ])->with('getMenu', $getMenu);\n }", "title": "" }, { "docid": "ee0b21573c5557564e416d28d77818cb", "score": "0.5372404", "text": "public function support_category()\n {\n\n $data['body'] = 'support_category';\n $data['page_title'] = $this->lang->line('support ticket category');\n $this->_viewcontroller($data);\n\n }", "title": "" }, { "docid": "c455a9fab901f43a89f34ad38dd3effc", "score": "0.5366323", "text": "protected function _getHeaderTitleHtml($element)\n {\n $website = Mage::helper('mercadopago')->getAdminSelectedWebsite();\n\n $imageUrl = $website->getConfig('payment/mercadopago_standard/banner_checkout');\n\n $html = '<div class=\"config-heading meli\" ><div class=\"heading\"><strong id=\"meli-logo\">' . $element->getLegend();\n $html .= '</strong></div>';\n\n $html .= '<div class=\"button-container meli-cards\" style=\"background: url(' . $imageUrl . ') no-repeat 0 0px;\"><button type=\"button\"'\n . ' class=\"meli-payment-btn button'\n . '\" id=\"' . $element->getHtmlId()\n . '-head\" onclick=\"Fieldset.toggleCollapse(\\'' . $element->getHtmlId() . '\\', \\''\n . $this->getUrl('*/*/state') . '\\'); return false;\"><span class=\"state-closed\">'\n . $this->__('Configure') . '</span><span class=\"state-opened\">'\n . $this->__('Close') . '</span></button></div></div>';\n\n\n\n return $html;\n }", "title": "" }, { "docid": "2beb896aa06f9963fd1d2e7bce0d5bb7", "score": "0.5365086", "text": "function get_header_categories() {\n\tglobal $r_categorie_list;\n\t$r_categorie_list->execute();\n\t$groups_raw = $r_categorie_list->fetchAll();\n\n\t$groups = [];\n\n\tforeach ($groups_raw as $gr) {\n\t\t$cal = explode('§', $gr['name']);\n\t\tif (count($cal) == 2){\n\t\t\tif (! isset($groups[$cal[0]]))\n\t\t\t\t$groups[$cal[0]] = array();\n\t\t\tarray_push($groups[$cal[0]], $cal[1]);\n\t\t} else {\n\t\t\tif (! isset($groups[$cal[0]]))\n\t\t\t\t$groups[$cal[0]] = array();\n\t\t}\n\t}\n\treturn $groups;\n}", "title": "" } ]
454139930a6e6c67ae075702bebd0c20
Test that updating first progress check (custom 139) updates other fields. most recent review date (227) should be the same date provided later fields do not contain data. custom 225 should be updated to the same date provided later fields do not contain data.
[ { "docid": "b2a4587553f565484b6aeb8644144f43", "score": "0.664649", "text": "function testActivityUpdate() {\n civicrm_api3('activity', 'create', array(\n 'id' => $this->activityID,\n $this->getCustomField('review-status-1') => 2,\n 'custom_138' => '1 April 2015',\n ));\n\n $activity = civicrm_api3('activity', 'getsingle', array(\n 'id' => $this->activityID,\n 'return' => 'custom_227,custom_139,status_id',\n 'return.custom' => TRUE,\n ));\n $this->assertEquals(strtotime('1 April 2015'), strtotime($activity['custom_227']));\n $this->assertEquals(1, $activity['status_id']);\n }", "title": "" } ]
[ { "docid": "7425267cdf05c29cd1f9ee2a71733da9", "score": "0.6998195", "text": "function testActivityUpdateStatusCeasedSomeProgress() {\n civicrm_api3('activity', 'create', array(\n 'id' => $this->activityID,\n $this->getCustomField('review-status-1') => 2,\n 'custom_138' => '1 April 2015',\n 'custom_143' => 6,\n 'custom_142' => '1 May 2015',\n ));\n\n $this->assertActivityCustomValues(\n $this->activityID,\n array(\n $this->getCustomField('mid-year-1-status') => 6,\n $this->getCustomField('mid-year-1-improvement') => 1,\n )\n );\n }", "title": "" }, { "docid": "83e5c7f18205ff6f530b01b636ff31ed", "score": "0.6727826", "text": "function testActivityUpdateSetsNextHalfAndFullYearReview() {\n civicrm_api3('activity', 'create', array(\n 'id' => $this->activityID,\n $this->getCustomField('review-status-1') => 3,\n 'custom_138' => '1 April 2015',\n ));\n\n $this->assertActivityCustomValues(\n $this->activityID,\n array(\n 'custom_230' => 3,\n 'custom_225' => 3,\n )\n );\n\n civicrm_api3('activity', 'create', array(\n 'id' => $this->activityID,\n 'custom_143' => 4,\n 'custom_142' => '1 May 2015',\n ));\n\n $this->assertActivityCustomValues(\n $this->activityID,\n array(\n 'custom_230' => 4,\n 'custom_225' => 4,\n )\n );\n\n civicrm_api3('activity', 'create', array(\n 'id' => $this->activityID,\n 'custom_143' => 5,\n 'custom_142' => '1 Sep 2015',\n ));\n\n // This is a bit of an odd one. By changing the date we actually move\n // the review out of the half-year & it gets set back based on the last\n // review.\n $this->assertActivityCustomValues(\n $this->activityID,\n array(\n 'custom_230' => 3,\n $this->getCustomField('end-year-1-improvement') => 2,\n 'custom_234' => 5,\n 'status_id' => 2,\n 'custom_225' => 5,\n )\n );\n }", "title": "" }, { "docid": "6d2ea3f0e7e491386eb5c468e7d1d829", "score": "0.64550626", "text": "function testActivityUpdateStatusFive() {\n civicrm_api3('activity', 'create', array(\n 'id' => $this->activityID,\n $this->getCustomField('review-status-1') => 2,\n 'custom_138' => '1 April 2015',\n ));\n $activity = civicrm_api3('activity', 'getsingle', array(\n 'id' => $this->activityID,\n 'return' => 'custom_227,custom_139,custom_226',\n ));\n\n $this->assertEmpty($activity['custom_226']);\n civicrm_api3('activity', 'create', array(\n 'id' => $this->activityID,\n 'custom_143' => 5,\n 'custom_142' => '1 May 2015',\n ));\n\n $activity = civicrm_api3('activity', 'getsingle', array(\n 'id' => $this->activityID,\n 'return' => 'custom_227,custom_139,custom_226,status_id',\n ));\n\n $this->assertEquals(strtotime('1 May 2015'), strtotime($activity['custom_227']));\n $this->assertEquals(strtotime('1 May 2015'), strtotime($activity['custom_226']));\n $this->assertEquals(2, $activity['status_id']);\n }", "title": "" }, { "docid": "d29d9e87ddd227d073fb06c5af3729b1", "score": "0.6440244", "text": "public function testAddProgressUpdateDate()\n\t{\n\t\t$newStaffMember = new StaffMember(\"jasmine\", 1000, 1000, $this->urlms->getLab_index(0));\n\t\t$this->urlms->getLab_index(0)->addStaffMember($newStaffMember);\n\t\t$newProgressUpdate = new ProgressUpdate(\"10/10/10\", \"Hello\", $newStaffMember);\n\t\t\n\t\t$_SESSION['urlms'] = $this->urlms ;\n\t\t$_SESSION['staffmember'] = $newStaffMember;\n\t\t\n\t\t$this->assertEquals(1, count($this->urlms->getLab_index(0)->getStaffMembers()));\n\t\t$this->assertEquals(1, count($this->urlms->getLab_index(0)->getStaffMember_index(0)->getProgressUpdates()));\n\t\t\n\t\ttry {\n\t\t\t$this->controller->addProgressUpdate(\"Hello2\", null);\n\t\t} catch (Exception $e) {\n\t\t\t$this->assertEquals(\"Please enter a date.\", $e->getMessage());\n\t\t}\n\t\t\n\t\t// 2. Write all of the data\n\t\t$pers = $this->p;\n\t\t$pers->writeDataToStore($this->urlms);\n\t\t\n\t\t// 3. Clear the data from memory\n\t\t$this->urlms->delete();\n\t\t\n\t\t$this->assertEquals(0, $this->urlms->numberOfLabs());\n\t\t\n\t\t// 4. Load it back in\n\t\t$this->urlms = $pers->loadDataFromStore();\n\t\t\n\t\t// 5. Check that we got it back\n\t\t$this->assertEquals(1, count($this->urlms->getLab_index(0)->getStaffMember_index(0)->getProgressUpdates()));\n\t}", "title": "" }, { "docid": "1cc42bd1093a8746723890329c79231a", "score": "0.64183927", "text": "function update_test_completed_date()\n\t{\n\t\t$status = $_POST['test_status'];\n\t\t$user_id = $this->session->userdata('UserID');\t\n\t\t\n\t\t//Check and save for next -> 1 and for more examples -> 2\n\t\tif($status == \"completed\") \n\t\t{\n\t\t\t$timestamp = time();\n\t\t\t$date_format = date(\"Y-m-d H:i:s\", $timestamp);\n\t\t\t$this->db->where('id', $user_id);\n\t\t\t$this->db->update('users', array('tonal_completed_date' => $date_format));\n\t\t} \n\t}", "title": "" }, { "docid": "6a16b6861f63a86c00991dedf7b76b1f", "score": "0.6381901", "text": "public function test_if_updates_batch()\n {\n $create_batch = $this->json('POST',route('batch.store'),array_merge($this->create_data,[\"course_plan_id\"=>\"1122\",\"start_date\"=>$this->today_date,\"status\"=>\"yet_to_start\"]));\n\n $create_batch->assertStatus(201);\n $res = $this->json('PUT','/api/batch/'.$create_batch->decodeResponseJson()['data']['_id'],array_merge($this->update_data, [\"course_plan_id\"=>\"1122\",$this->today_date]));\n $res->assertStatus(200)\n ->assertJson([\"success\" => true,\n \"data\" =>$this->updated_data]);\n }", "title": "" }, { "docid": "7bb9993fcfce4dc5d5f7a702dde5d179", "score": "0.63209474", "text": "function testActivityUpdateStatusFiveOnlyOnce() {\n civicrm_api3('activity', 'create', array(\n 'id' => $this->activityID,\n $this->getCustomField('review-status-1') => 5,\n 'custom_138' => '1 April 2015',\n ));\n\n civicrm_api3('activity', 'create', array(\n 'id' => $this->activityID,\n 'custom_143' => 5,\n 'custom_142' => '1 May 2015',\n ));\n\n $activity = civicrm_api3('activity', 'getsingle', array(\n 'id' => $this->activityID,\n 'return' => 'custom_227,custom_139,custom_226,status_id',\n ));\n\n $this->assertEquals(strtotime('1 May 2015'), strtotime($activity['custom_227']));\n $this->assertEquals(strtotime('1 April 2015'), strtotime($activity['custom_226']));\n $this->assertEquals(2, $activity['status_id']);\n }", "title": "" }, { "docid": "0bf15133603d46c4856fad406468b0fc", "score": "0.62402874", "text": "public function test_updateReceivingProcessCustomFields() {\n\n }", "title": "" }, { "docid": "31a1e474c71513c55eeb25ae8ca76d67", "score": "0.62260747", "text": "public function testGetFieldsToUpdate()\n {\n $this->assertEquals([\n 'bar' => '2',\n 'baq' => 4,\n ], Helpers::getFieldsToUpdate([\n 'foo' => 1,\n 'bar' => 2,\n 'baz' => '3',\n ], [\n 'foo' => 1,\n 'bar' => '2',\n 'baq' => 4,\n ]));\n\n $this->assertEquals([], Helpers::getFieldsToUpdate([\n 'foo' => 1,\n 'bar' => 2,\n ], [\n 'foo' => 1,\n 'bar' => 2,\n ]));\n }", "title": "" }, { "docid": "003562619fe798e8c984582faf3f3ff1", "score": "0.61372924", "text": "public function test_updateReplenishmentPlanCustomFields() {\n\n }", "title": "" }, { "docid": "945419fcb0cd3a98ab20017b46ae3461", "score": "0.608699", "text": "function testActivityUpdateTermTwoStartAlternateDetails() {\n civicrm_api3('activity', 'create', array(\n 'id' => $this->activityID,\n 'activity_date_time' => '22 Oct 2014',\n 'custom_138' => '20 Nov 2014 ',\n $this->getCustomField('review-status-1') => 2,\n ));\n $this->assertActivityCustomValues(\n $this->activityID,\n array(\n // End of year status.\n 'custom_234' => 2,\n // Mid year status\n 'custom_230' => NULL,\n ));\n civicrm_api3('activity', 'create', array(\n 'id' => $this->activityID,\n 'custom_142' => '8th Apr 2015',\n 'custom_143' => 3,\n ));\n\n\n $this->assertActivityCustomValues(\n $this->activityID,\n array(\n // End of year status.\n 'custom_234' => 2,\n // Mid year status\n 'custom_230' => 3,\n\n // End of year improvement\n $this->getCustomField('end-year-1-improvement') => 1,\n // Mid year improvement\n 'custom_233' => 1,\n )\n );\n }", "title": "" }, { "docid": "dd5b5358341fc6b0c7d14c3ed4317ac7", "score": "0.60548276", "text": "function testActivityUpdateStatusCeased() {\n civicrm_api3('activity', 'create', array(\n 'id' => $this->activityID,\n $this->getCustomField('review-status-1') => 2,\n 'custom_138' => '1 April 2015',\n 'custom_143' => 6,\n 'custom_142' => '1 Oct 2015',\n ));\n\n $this->assertActivityCustomValues(\n $this->activityID,\n array(\n // Mid year 1 status.\n 'custom_230' => 2,\n // End of year 1 status.\n 'custom_234' => 6,\n // End of year 1 improvement.\n $this->getCustomField('end-year-1-improvement') => 0,\n )\n );\n }", "title": "" }, { "docid": "809f5b988b5ef351d42849616caaf547", "score": "0.5977295", "text": "function testReviewFormGetsUpdated(){\n\t}", "title": "" }, { "docid": "ce67823f9976902cc1cff9bd0f008083", "score": "0.59356236", "text": "public function testJobUpdate()\n {\n }", "title": "" }, { "docid": "35bb0135345427c89bdbc07fbcb35825", "score": "0.59308034", "text": "public function test_updateCustomFields() {\n\n }", "title": "" }, { "docid": "35bb0135345427c89bdbc07fbcb35825", "score": "0.59308034", "text": "public function test_updateCustomFields() {\n\n }", "title": "" }, { "docid": "c6e7d513dc986dde37ecee379b92af2f", "score": "0.5929307", "text": "private function updateTest()\n {\n $response = $this->actingAs( $this->user )->call(\n \"PUT\",\n $this->URL,\n [\n 'trip_id' => $this->last_trip_id + 1,\n \"trip_name\" => \"Name+\",\n \"trip_desc\" => \"Has Name+\",\n ]\n );\n $response->assertStatus(400);\n\n $response = $this->actingAs( $this->user )->call(\n \"PUT\",\n $this->URL,\n [\n 'trip_id' => $this->last_trip_id,\n \"trip_name\" => \"Name+\",\n \"trip_desc\" => \"Has Name+\",\n ]\n );\n $response->assertStatus(302);\n }", "title": "" }, { "docid": "3755a712eab5ce7618ef3b264bde8d05", "score": "0.592048", "text": "function testActivityUpdateSetsTwoYearHalfAndFullYearReview() {\n civicrm_api3('activity', 'create', array(\n 'id' => $this->activityID,\n $this->getCustomField('review-status-1') => 1,\n 'custom_138' => '1 April 2015',\n 'custom_143' => 2,\n 'custom_142' => '1 Oct 2015',\n 'custom_144' => '1 Feb 2016',\n 'custom_145' => 3,\n 'custom_146' => '1 Oct 2016',\n 'custom_147' => 5,\n ));\n\n $this->assertActivityCustomValues(\n $this->activityID,\n array(\n // Mid year 1 status.\n 'custom_230' => 1,\n // End of year 1 status.\n 'custom_234' => 2,\n // Mid year status - year 2.\n 'custom_242' => 3,\n // End of year status - year 2.\n 'custom_245' => 5,\n\n // Year 2 mid-year improvement\n 'custom_233' => 0,\n // End of year 1 improvement.\n $this->getCustomField('end-year-1-improvement') => 1,\n // Year 2 mid-year improvement\n 'custom_244' => 1,\n // Year 2 end of year improvement\n 'custom_243' => 2,\n\n 'custom_225' => 5,\n )\n );\n $this->assertActivityCustomValues(\n $this->activityID,\n array(\n 'custom_226' => '1 Oct 2016',\n ),\n 'date'\n );\n }", "title": "" }, { "docid": "df4d40f7159a1e715c24e17bd2d60cd8", "score": "0.59043056", "text": "public function test_updateDocumentFields() {\n\n }", "title": "" }, { "docid": "df4d40f7159a1e715c24e17bd2d60cd8", "score": "0.59043056", "text": "public function test_updateDocumentFields() {\n\n }", "title": "" }, { "docid": "43ff4f0c8a727e7b40f10347ca0edff0", "score": "0.58957857", "text": "function testActivityUpdateStatusCeasedAlternativeValues() {\n civicrm_api3('activity', 'create', array(\n 'activity_date_time' => '17 Oct 2014',\n 'id' => $this->activityID,\n $this->getCustomField('review-status-1') => 2,\n 'custom_138' => '2 Dec 2014',\n $this->getCustomField('review-status-2') => 6,\n 'custom_142' => '29 Jan 2015',\n ));\n\n $this->assertActivityCustomValues(\n $this->activityID,\n array(\n // Mid year 1 status.\n $this->getCustomField('mid-year-1-status') => 6,\n $this->getCustomField('end-year-1-improvement') => 1,\n $this->getCustomField('mid-year-1-improvement') => 0,\n )\n );\n }", "title": "" }, { "docid": "53e5cba1d0f6af6a44e5d85455e58e6d", "score": "0.58742553", "text": "public function testAddProgressUpdate()\n\t{\n\t\t// 1. Create test data\n\t\t$newStaffMember = new StaffMember(\"jasmine\", 1000, 1000, $this->urlms->getLab_index(0));\n\t\t$this->urlms->getLab_index(0)->addStaffMember($newStaffMember);\n\t\t$newProgressUpdate = new ProgressUpdate(\"10/10/10\", \"Hello\", $newStaffMember);\n\t\t\n\t\t$_SESSION['urlms'] = $this->urlms ;\n\t\t$_SESSION['staffmember'] = $newStaffMember;\n\t\t\n\t\t$this->assertEquals(1, count($this->urlms->getLab_index(0)->getStaffMembers()));\n\t\t$this->assertEquals(1, count($this->urlms->getLab_index(0)->getStaffMember_index(0)->getProgressUpdates()));\n\t\t\n\t\t$this->controller->addProgressUpdate(\"Hello2\", \"11/10/10\");\n\t\t\n\t\t// 2. Write all of the data\n\t\t$pers = $this->p;\n\t\t$pers->writeDataToStore($this->urlms);\n\t\t\n\t\t// 3. Clear the data from memory\n\t\t$this->urlms->delete();\n\t\t\n\t\t$this->assertEquals(0, $this->urlms->numberOfLabs());\n\t\t\n\t\t// 4. Load it back in\n\t\t$this->urlms = $pers->loadDataFromStore();\n\t\t\n\t\t// 5. Check that we got it back\n\t\t$this->assertEquals(2, count($this->urlms->getLab_index(0)->getStaffMember_index(0)->getProgressUpdates()));\n\t}", "title": "" }, { "docid": "74976938a1c2518661a75c3cddc7fdb8", "score": "0.5853198", "text": "public function testAddProgressUpdateNullDescription()\n\t{\n\t\t$newStaffMember = new StaffMember(\"jasmine\", 1000, 1000, $this->urlms->getLab_index(0));\n\t\t$this->urlms->getLab_index(0)->addStaffMember($newStaffMember);\n\t\t$newProgressUpdate = new ProgressUpdate(\"10/10/10\", \"Hello\", $newStaffMember);\n\t\t\n\t\t$_SESSION['urlms'] = $this->urlms ;\n\t\t$_SESSION['staffmember'] = $newStaffMember;\n\t\t\n\t\t$this->assertEquals(1, count($this->urlms->getLab_index(0)->getStaffMembers()));\n\t\t$this->assertEquals(1, count($this->urlms->getLab_index(0)->getStaffMember_index(0)->getProgressUpdates()));\n\t\t\n\t\ttry {\n\t\t\t$this->controller->addProgressUpdate(null, \"11/10/10\");\n\t\t} catch (Exception $e) {\n\t\t\t$this->assertEquals(\"Please enter a progress update description.\", $e->getMessage());\n\t\t}\n\t\t\n\t\t// 2. Write all of the data\n\t\t$pers = $this->p;\n\t\t$pers->writeDataToStore($this->urlms);\n\t\t\n\t\t// 3. Clear the data from memory\n\t\t$this->urlms->delete();\n\t\t\n\t\t$this->assertEquals(0, $this->urlms->numberOfLabs());\n\t\t\n\t\t// 4. Load it back in\n\t\t$this->urlms = $pers->loadDataFromStore();\n\t\t\n\t\t// 5. Check that we got it back\n\t\t$this->assertEquals(1, count($this->urlms->getLab_index(0)->getStaffMember_index(0)->getProgressUpdates()));\n\t}", "title": "" }, { "docid": "108e99250b22e77b706a818ebaa06b72", "score": "0.5822281", "text": "public function test_updateReplenishmentPlan() {\n\n }", "title": "" }, { "docid": "ebccc3cbf545d30ba173eea668d66ff0", "score": "0.58110875", "text": "public function testStampsUpdateStampInstanceFromProcessDoc()\n {\n }", "title": "" }, { "docid": "c2e62ce4d05b8aa186ebc62f749b1474", "score": "0.580424", "text": "public function testOrderUpdate()\n {\n $response = $this->json('PATCH', '/orders/5',\n ['status' => 'TAKEN']\n );\n\n $response->assertStatus(200);\n }", "title": "" }, { "docid": "26af1369d7c29605e97c80adaf42a94b", "score": "0.5789811", "text": "public function testUpdate()\n\t{\n\t\t$this->be(User::first());\n\t\t$this->runStore($this->input);\n\t\t$receiptSaved = receipt::orderBy('id','desc')->take(1)->get()->toArray();\n\t\t// Update the receipt\n\t\t$this->runUpdate($this->inputUpdate, $receiptSaved[0]['id']);\n\n\t\t$receiptUpdated = receipt::orderBy('id','desc')->take(1)->get()->toArray();\n\n\n\t\t$this->assertEquals($receiptUpdated[0]['commodity_id'], $this->inputUpdate['commodity']);\n\t\t$this->assertEquals($receiptUpdated[0]['supplier_id'], $this->inputUpdate['supplier']);\n\t\t$this->assertEquals($receiptUpdated[0]['quantity'], $this->inputUpdate['quantity']);\n\t\t$this->assertEquals($receiptUpdated[0]['batch_no'], $this->inputUpdate['batch_no']);\n\t\t$this->assertEquals($receiptUpdated[0]['expiry_date'], $this->inputUpdate['expiry_date']);\n\t\t\n\t}", "title": "" }, { "docid": "18d32761f60024604ec2f2826c1b33d5", "score": "0.5788861", "text": "public function test_update() {\n\n }", "title": "" }, { "docid": "18d32761f60024604ec2f2826c1b33d5", "score": "0.5788861", "text": "public function test_update() {\n\n }", "title": "" }, { "docid": "d7c886356c769d441f8c857464501a7c", "score": "0.57886344", "text": "function testActivityUpdateSkipHalfYearStartDate() {\n civicrm_api3('activity', 'create', array(\n 'id' => $this->activityID,\n 'activity_date_time' => '1 Sep 2015',\n 'custom_138' => '1 Feb 2016',\n $this->getCustomField('review-status-1') => 3,\n ));\n\n $this->assertActivityCustomValues(\n $this->activityID,\n array(\n // End of year 1 status.\n 'custom_234' => 1,\n // End of year improvement\n $this->getCustomField('end-year-1-improvement') => 0,\n // Mid year status\n 'custom_230' => 3,\n // Mid year improvement\n $this->getCustomField('mid-year-1-improvement') => 2,\n )\n );\n }", "title": "" }, { "docid": "b163cde17af078d50883f13772d4bb3c", "score": "0.57605785", "text": "public function testStampsUpdateStampInstanceFromDocnumber()\n {\n }", "title": "" }, { "docid": "1697e98abd4d8a228df9a151b6333b33", "score": "0.5739807", "text": "public function testSetFieldsPartial()\n {\n $respondentTrack = $this->loader->getTracker()->getRespondentTrack(1);\n \n $expected = $respondentTrack->getFieldData();\n $expected['f__1'] = $expected['code'] = 'newvalue';\n $actual = $respondentTrack->setFieldData(array('code' => 'newvalue'));\n\n $this->assertArrayWithDateMatch($expected, $actual, '', 1, 0);\n }", "title": "" }, { "docid": "82f986829c133d400e938e7099587b21", "score": "0.5728481", "text": "public function test_updates_when_no_previous_version() {\n\t\t// Setup\n\t\t\\WP_Mock::userFunction( 'get_option', array(\n\t\t\t'times' => 1,\n\t\t\t'args' => array( 'tenup_scaffold_version' ),\n\t\t\t'return' => false\n\t\t) );\n\n\n\t\t\\WP_Mock::userFunction( 'TenUpScaffold\\Core\\code_version', array(\n\t\t\t'times' => 1,\n\t\t\t'return' => '0.1.0'\n\t\t) );\n\n\t\t\\WP_Mock::userFunction( 'update_option', array(\n\t\t\t'times' => 1,\n\t\t\t'args' => array( 'tenup_scaffold_version', '0.1.0' )\n\t\t) );\n\n\t\t// Fires actions\n\t\t\\WP_Mock::expectAction( 'tenup_scaffold_before_update' );\n\t\t\\WP_Mock::expectAction( 'tenup_scaffold_after_update' );\n\n\t\t// Act\n\t\t$updater = UpdateManager::get_instance();\n\t\t$updated = $updater->maybe_update();\n\n\t\t$this->assertTrue( $updated, 'maybe_update did not return true' );\n\t\t$this->assertConditionsMet();\n\n\n\t}", "title": "" }, { "docid": "a2f1db69dbae4f1f9f34335d5c12af25", "score": "0.57277507", "text": "public function test_updateReceivingWorksheetCustomFields() {\n\n }", "title": "" }, { "docid": "4a075603eed0c9cdaa2aad5a0e0da3ce", "score": "0.56930435", "text": "function testActivityUpdateSetsTermTwoStartDate() {\n civicrm_api3('activity', 'create', array(\n 'id' => $this->activityID,\n 'activity_date_time' => '1 Sep 2015',\n 'custom_138' => '1 Nov 2015',\n $this->getCustomField('review-status-1') => 1,\n 'custom_142' => '1 Feb 2016',\n 'custom_143' => 2,\n 'custom_144' => '1 Oct 2016',\n 'custom_145' => 3,\n 'custom_146' => '1 Feb 2017',\n 'custom_147' => 5,\n ));\n\n $this->assertActivityCustomValues(\n $this->activityID,\n array(\n // End of year status.\n 'custom_234' => 1,\n // Mid year status\n 'custom_230' => 2,\n // End of year 2 status\n 'custom_245' => 3,\n // Mid year 2 status\n 'custom_242' => 5,\n\n // End of year improvement\n $this->getCustomField('end-year-1-improvement') => 0,\n // Mid year improvement\n 'custom_233' => 1,\n // End of year 2 improvement\n 'custom_243' => 1,\n // Mid Year 2 improvement\n 'custom_244' => 2,\n )\n );\n $this->assertActivityCustomValues(\n $this->activityID,\n array(\n 'custom_226' => '1 Feb 2017',\n ),\n 'date'\n );\n }", "title": "" }, { "docid": "820b8d40c3a2b7b4b410da8354573cce", "score": "0.5692058", "text": "public function testUpdate()\n {\n $this->assertTrue(false);\n }", "title": "" }, { "docid": "e7732ab96249e80b7f0af7dacadf1f5e", "score": "0.5684617", "text": "public function testNormalUpdateAvailable() {\n $this->setProjectInstalledVersion('8.0.0');\n\n // Ensure that the update check requires a token.\n $this->drupalGet('admin/reports/updates/check');\n $this->assertSession()->statusCodeEquals(403);\n\n foreach ([0, 1] as $minor_version) {\n foreach (['-alpha1', '-beta1', ''] as $extra_version) {\n $full_version = \"8.$minor_version.1$extra_version\";\n $this->refreshUpdateStatus([$this->updateProject => \"$minor_version.1\" . $extra_version]);\n $this->standardTests();\n $this->assertUpdateTableTextNotContains('Security update required!');\n // The XML test fixtures for this method all contain the '8.2.0' release\n // but because '8.2.0' is not in a supported branch it will not be in\n // the available updates.\n $this->assertSession()->responseNotContains('8.2.0');\n switch ($minor_version) {\n case 0:\n // Both stable and unstable releases are available.\n // A stable release is the latest.\n if ($extra_version == '') {\n $this->assertUpdateTableTextNotContains('Up to date');\n $this->assertUpdateTableTextContains('Update available');\n $this->assertVersionUpdateLinks('Recommended version:', $full_version);\n $this->assertUpdateTableTextNotContains('Latest version:');\n $this->assertUpdateTableElementContains('warning.svg');\n }\n // Only unstable releases are available.\n // An unstable release is the latest.\n else {\n $this->assertUpdateTableTextContains('Up to date');\n $this->assertUpdateTableTextNotContains('Update available');\n $this->assertUpdateTableTextNotContains('Recommended version:');\n $this->assertVersionUpdateLinks('Latest version:', $full_version);\n $this->assertUpdateTableElementContains('check.svg');\n }\n break;\n\n case 1:\n // Both stable and unstable releases are available.\n // A stable release is the latest.\n if ($extra_version == '') {\n $this->assertUpdateTableTextNotContains('Up to date');\n $this->assertUpdateTableTextContains('Update available');\n $this->assertVersionUpdateLinks('Recommended version:', $full_version);\n $this->assertUpdateTableTextNotContains('Latest version:');\n $this->assertUpdateTableElementContains('warning.svg');\n }\n // Both stable and unstable releases are available.\n // An unstable release is the latest.\n else {\n $this->assertUpdateTableTextNotContains('Up to date');\n $this->assertUpdateTableTextContains('Update available');\n $this->assertVersionUpdateLinks('Recommended version:', '8.1.0');\n $this->assertVersionUpdateLinks('Latest version:', $full_version);\n $this->assertUpdateTableElementContains('warning.svg');\n }\n break;\n }\n }\n }\n }", "title": "" }, { "docid": "5a4228d585afc6b4e940af65f86b5efb", "score": "0.566673", "text": "public function testPetitionUpdate()\n {\n $user = factory(App\\User::class)->create();\n\n $petition = $this->createAPetition($user->id);\n\n $this->actingAs($user)\n ->visit('/petition/1/edit') //verify correct values for fields on edit page\n ->see('asdf')\n ->see('sdfa')\n ->see('aaff')\n ->type('zzzz', 'title') //verify fields can be edited\n ->type('yyyy', 'summary')\n ->press('Save') //verify form saves and redirects\n ->seePageIs('/home')\n ->see('zzzz') //verify the updated title is visible on the list page\n ->visit('/petition/1/edit') //verify all the updated data is still visible when another edit is made\n ->see('zzzz')\n ->see('yyyy')\n ->see('aaff');\n }", "title": "" }, { "docid": "0f1482744745943bc7064cd87c8d28a8", "score": "0.5658675", "text": "public function testExecuteUpdated()\n {\n $this->assertStringStartsWith('Types are already up to date.', $this->runUpdateCommand());\n $this->assertMappingNotSet(\"Article was never added, type shouldn't be added.\");\n }", "title": "" }, { "docid": "5fbb38f1be43008ca5f34adbacc7eedf", "score": "0.565309", "text": "public function testTaskStatusTimeCalculationForQaProgress()\n {\n // Assigned 30 minutes ago\n $minutesWorking = 30;\n $assignedAgo = (int)(new \\DateTime())->sub(new \\DateInterval('PT' . $minutesWorking . 'M'))->format('U');\n $task = $this->getAssignedTask($assignedAgo);\n $task->submitted_for_qa = true;\n $task->save();\n\n $qaTimeBeforeListener = $task->work[$task->owner]['qa'];\n $qaProgressTimeBeforeListener = $task->work[$task->owner]['qa_in_progress'];\n $timeStampBeforeListener = $task->work[$task->owner]['workTrackTimestamp'];\n\n $task->qa_in_progress = true;\n $event = new TaskStatusTimeCalculation($task);\n $listener = new \\App\\Listeners\\TaskStatusTimeCalculation();\n $listener->handle($event);\n\n $this->assertEquals(0, $qaProgressTimeBeforeListener);\n $this->assertEquals(0, $task->work[$task->owner]['qa_total_time']);\n $this->assertGreaterThan($qaTimeBeforeListener, $task->work[$task->owner]['qa']);\n $this->assertGreaterThan($timeStampBeforeListener, $task->work[$task->owner]['workTrackTimestamp']);\n $this->assertEquals(\n $task->work[$task->owner]['workTrackTimestamp'] - $timeStampBeforeListener,\n $task->work[$task->owner]['qa']\n );\n }", "title": "" }, { "docid": "1d2d93f1228a477de79d629394ef7606", "score": "0.56514466", "text": "public function testJuniorReassessmentPlusEndOfSeasonPlusPreviousOld() {\n $scores = array(\n 1 => array( 'date' => '2012/05/01', 'classification' => 'second', 'next_age_group_classification' => 'second' ),\n 2 => array( 'date' => '2012/07/01', 'reassessment' => 'end_of_season' ),\n 3 => array( 'date' => '2013/01/01', 'classification' => 'second', 'next_age_group_classification' => 'third' ),\n 4 => array( 'date' => '2013/01/02', 'classification' => 'second', 'next_age_group_classification' => 'third' ),\n 5 => array( 'date' => '2013/01/03', 'classification' => 'second', 'next_age_group_classification' => 'second' ),\n 6 => array( 'date' => '2013/01/05', 'reassessment' => 'age_group' ),\n 7 => array( 'date' => '2013/01/06', 'classification' => 'second' ),\n 8 => array( 'date' => '2013/01/07', 'classification' => 'second' ),\n 9 => array( 'date' => '2013/07/01', 'reassessment' => 'end_of_season' ),\n );\n $this->setDebug(false);\n $results = $this->feedIt($scores);\n $expected = array(\n # 1 - 1st May 2012 second / second\n # 2 - 1st July 2012 end of season\n 2 => array( 'new_classification' => 'archer' ), \n # 3 - 1st Jan 2013 second / third\n # 4 - 2nd Jan 2013 second / third\n # 5 - 3rd Jan 2013 second / second\n 5 => array( 'new_classification' => 'second' ),\n # 6 - 5th Jan 2014 age change\n 6 => array( 'new_classification' => 'third' ),\n # 7 - 6th Jan 2013 second\n # 8 - 7th Jan 2013 second\n 8 => array( 'new_classification' => 'second' ),\n # 9 - 1st July 2013 end of season\n 9 => array( 'new_classification' => 'second' ),\n );\n $this->assertEquals($expected, $results);\n }", "title": "" }, { "docid": "f0d976e998e96c8ee5ff85205be7f536", "score": "0.5645793", "text": "public function testExtractForUpdateItem()\n {\n $category = 'product';\n $id = 123;\n $timestamp = new DateTime('-1 hour 20 minutes');\n\n $updateDiffItem = new UpdateDiffItem();\n $updateDiffItem->setCategory($category);\n $updateDiffItem->setItemId($id);\n $updateDiffItem->setTimestamp($timestamp);\n\n $this->extractor->extract($updateDiffItem);\n\n foreach ($this->shopIds as $shopId) {\n $actual = (object)$this->getConnection()->fetchAssoc(\n 'SELECT * FROM ' . $this->storageManager->getTableName($shopId) . ' WHERE\n `type` = :operationType\n AND `document_type` = :documentType\n AND `document_id` = :documentId\n AND `status` = :status',\n [\n 'operationType' => ActionTypes::UPDATE,\n 'documentType' => $category,\n 'documentId' => $id,\n 'status' => 0,\n ]\n );\n\n $this->assertTrue(!empty($actual->id));\n $this->assertEquals(ActionTypes::UPDATE, $actual->type);\n $this->assertEquals($category, $actual->document_type);\n $this->assertEquals($id, $actual->document_id);\n $this->assertEquals($timestamp, new DateTime($actual->timestamp));\n }\n }", "title": "" }, { "docid": "c0e5e37a1edc0fa6c45102ca5d6b282d", "score": "0.56297207", "text": "public function testSetFields()\n {\n $respondentTrack = $this->loader->getTracker()->getRespondentTrack(1);\n\n $date = new MUtil_Date('2010-11-09', 'yyyy-MM-dd');\n $expected = array(\n 'f__1' => 'newvalue',\n 'code' => 'newvalue',\n 'f__2' => $date,\n 'datecode' => $date\n );\n $actual = $respondentTrack->setFieldData(array('code' => 'newvalue', 'datecode' => $date));\n\n $this->assertArrayWithDateMatch($expected, $actual, '', 1, 0);\n }", "title": "" }, { "docid": "e2ef6dc4803b8095577956ebbd245018", "score": "0.56222916", "text": "public function testSaveUpdate() {\n $s = Submission::load($this->node->nid, $this->submission->sid);\n $this->assertTrue((bool) $s->is_draft);\n $s->is_draft = FALSE;\n $s->save();\n $this->assertFalse((bool) $s->is_draft);\n // Reset the static cache otherwise we don’t get the data from the database.\n drupal_static_reset('webform_get_submission');\n $s = Submission::load($s->node->nid, $s->sid);\n $this->assertFalse((bool) $s->is_draft);\n }", "title": "" }, { "docid": "a76d2446b7f1dbea1bb6394712a55ca0", "score": "0.56124985", "text": "public function test_should_give_warning_on_update_partner_with_same_data()\n {\n $this->programType->update(['code' => 'out_tasked_teledemand']);\n\n $this->browse(function (Browser $browser) {\n $browser->visit('/groups/' . $this->group->uuid . '/program-types/' . $this->programType->uuid)\n ->waitFor('@edit-partners-button')\n ->click('@edit-partners-button')\n ->whenAvailable('@partner-edit-modal', function ($modal) {\n $modal->press('@partner-edit-submit');\n })\n ->waitFor('.toast-warning')\n ->assertSee('Nothing changed in partner.');\n });\n }", "title": "" }, { "docid": "09a57bb0baec1b0993022e4fb98fd736", "score": "0.56085944", "text": "public function testprogramupdateissuccessfulwithmaxlengthfields() {\n global $CFG, $DB;\n require_once($CFG->dirroot.'/elis/program/lib/data/curriculum.class.php');\n\n set_config('enable_curriculum_expiration', 1, 'elis_program');\n\n $program = new curriculum(array('idnumber' => 'testprogramidnumber'));\n $program->save();\n\n $record = new stdClass;\n $record->context = 'curriculum';\n $record->idnumber = 'testprogramidnumber';\n $record->name = str_repeat('a', 64);\n $record->timetocomplete = str_repeat('1', 63).'h';\n $record->frequency = str_repeat('1', 63).'h';\n\n $importplugin = rlip_dataplugin_factory::factory('rlipimport_version1elis');\n $importplugin->fslogger = new silent_fslogger(null);\n $importplugin->curriculum_update($record, 'bogus');\n\n $program = $DB->get_record(curriculum::TABLE, array('idnumber' => $record->idnumber));\n $this->assertEquals($record->name, $program->name);\n $this->assertEquals($record->timetocomplete, $program->timetocomplete);\n $this->assertEquals($record->frequency, $program->frequency);\n }", "title": "" }, { "docid": "ffd130d203047b2522e5e3077d249528", "score": "0.5598311", "text": "function rmt_updated($item_id, $item_rev_id) {\n // Get the Item\n $rmt_item = PodioItem::get_basic($item_id);\n $rmt_item_diff = PodioItemDiff::get_for($item_id, $item_rev_id - 1, $item_rev_id );\n //wdebug(\"RMTicket\", $rmt_item->fields);\n wdebug(\"RMTicket-DIFF\", $rmt_item_diff);\n \n // Update CalcTitle\n //TODO Only update if location or title changes value\n $rmt_item->fields['calctitle-2']->values = \n $rmt_item->fields['location']->values . \": \" .\n $rmt_item->fields['title']->values;\n \n wdebug (\"Location->field_id\", p_get_field_id($rmt_item, \"location\"));\n wdebug (\"Location: field value changed\", p_field_value_changed($rmt_item, $rmt_item_diff, \"location\"));\n// foreach ($rmt_item_diff as $rid) {\n// wdebug(\"RID\", $rid->fields['location']);\n// }\n \n \n // Save the Item\n $rmt_item->save(array('hook' => false)); // do NOT execute Hooks on Save\n}", "title": "" }, { "docid": "4e54a39596555d24c59dda23ddb1bcc2", "score": "0.5597985", "text": "public function test_if_post_can_be_updated_with_given_fields()\n {\n $post = $this->createPost();\n\n // Create a template\n $fake_post = $this->makePost();\n\n // Let's sleep for a while to allow updated_at be different\n $updated_at = $post->updated_at;\n sleep(1);\n\n // Set new fields\n $post->content = 'new_content';\n $post->save();\n\n $fresh = Post::find($post->id);\n\n $this->assertNotEquals($updated_at, $fresh->updated_at);\n $this->assertEquals($post->content, $fresh->content);\n }", "title": "" }, { "docid": "d5d5a1e2d60964a2908e12c2ef926bdf", "score": "0.5576047", "text": "public function processLastUpdatedFields(){\n try{\n $updateForPracticesList = [];\n foreach ($this->scenario as $action){\n $practice_id = $action->model->getAttribute('practice_id');\n if ($practice_id){\n $updateForPracticesList[$practice_id] = $practice_id;\n }\n }\n\n foreach ($updateForPracticesList as $practice_id){\n $model = PatientInfo::findOne([\n 'patients_id' => \\Yii::$app->perfectParser->patient->patients_id,\n 'practice_id' => $practice_id\n ]);\n\n if ($model) {\n $model->last_updated = new Expression(\"NOW()\");\n $model->save();\n $this->log(\"Update last_updated for practice #{$practice_id}\");\n } else {\n $this->log(\"%RUpdate last_updated for practice #{$practice_id} failed, because PatientInfo record removed.%n\");\n }\n }\n } catch(\\Throwable $e){\n $this->error($e->getMessage());\n }\n }", "title": "" }, { "docid": "31043c5b5e802d230e6bf7cd1bdc5d5c", "score": "0.5575427", "text": "function test_save_finalize_no_edit() {\n // to save them\n\n $ps = new PaperStatus($this->u_chair);\n xassert($ps->save_paper_json(json_decode('{\"pid\":1,\"draft\":true,\"title\":\"Scalable Timers for Soft State Protocols\"}')));\n $paper1 = $this->conf->checked_paper_by_id(1);\n xassert($paper1->timeSubmitted === 0);\n\n $old_sub_update = $this->conf->setting(\"sub_update\");\n $this->conf->save_refresh_setting(\"sub_update\", Conf::$now - 1000);\n xassert(!$this->conf->unnamed_submission_round()->time_update(true));\n xassert($this->conf->unnamed_submission_round()->time_submit(true));\n $nonpc = $this->conf->checked_user_by_email(\"waldvogel@tik.ee.ethz.ch\");\n\n $ps = new PaperStatus($nonpc);\n $paper1 = $this->conf->checked_paper_by_id(1);\n xassert(!$ps->prepare_save_paper_web(new Qrequest(\"POST\", [\"title\" => \"Scalable Timers for Soft State Protocols 2\"]), $paper1, \"submit\"));\n xassert(!$ps->has_change_at(\"title\"));\n xassert_eqq($ps->decorated_feedback_text(), \"You aren’t allowed to view submission #1.\\n\");\n\n $ps = new PaperStatus($nonpc);\n $paper1 = $this->conf->checked_paper_by_id(1);\n xassert_eqq($paper1->title, \"Scalable Timers for Soft State Protocols\");\n xassert(!$ps->prepare_save_paper_web(new Qrequest(\"POST\", [\"title\" => \"Scalable Timers for Soft State Protocols\"]), $paper1, \"submit\"));\n xassert(!$ps->has_change_at(\"title\"));\n xassert_eqq($ps->decorated_feedback_text(), \"You aren’t allowed to view submission #1.\\n\");\n\n $this->conf->save_refresh_setting(\"sub_update\", $old_sub_update);\n }", "title": "" }, { "docid": "80d8b8105c970b6364b7978b63cacfe1", "score": "0.55735385", "text": "public function testUpdateFulfillmentProcessCustomFields()\n {\n }", "title": "" }, { "docid": "ff3f97cdfebc099b96fd417f6ab4927e", "score": "0.557029", "text": "public function testInitialGrading() {\n $scores = array(\n 1 => array( 'date' => '2014/01/02', 'classification' => 'third',),\n 2 => array( 'date' => '2014/01/03', 'classification' => 'third',),\n 3 => array( 'date' => '2014/01/04', 'classification' => 'second',),\n );\n $results = $this->feedIt($scores);\n $expected = array(\n 3 => array( 'new_classification' => 'third')\n );\n $this->assertEquals($expected, $results);\n }", "title": "" }, { "docid": "bda7eb962f683c662e736a3f93d7ea67", "score": "0.556293", "text": "public function testGetUpdates()\n {\n $api = new OpenExchangeRates($this->client);\n $api->getUpdates(Carbon::now());\n }", "title": "" }, { "docid": "0dad1461ef26dff61608fc5fb3077904", "score": "0.55522996", "text": "public function testQualificationHolds() {\n $scores = array(\n 1 => array( 'date' => '2014/01/02', 'classification' => 'third',),\n 2 => array( 'date' => '2014/01/03', 'classification' => 'third',),\n 3 => array( 'date' => '2014/01/04', 'classification' => 'third',),\n 4 => array( 'date' => '2014/06/01', 'reassessment' => 'end_of_season',),\n );\n $results = $this->feedIt($scores);\n $expected = array(\n 3 => array( 'new_classification' => 'third' ),\n 4 => array( 'new_classification' => 'third' ),\n );\n $this->assertEquals($expected, $results);\n }", "title": "" }, { "docid": "af7d4fad270fe9ec1889893354f72c31", "score": "0.5550149", "text": "private function AddUpdateStatistics($author,$email,$checkindate,$firstbuild,\n $warningdiff,$errordiff,$testdiff)\n {\n // Find the userid from the author name\n $user2project = pdo_query(\"SELECT up.userid FROM user2project AS up,user2repository AS ur\n WHERE up.userid=ur.userid\n AND up.projectid=\".qnum($this->ProjectId).\"\n AND (ur.credential='$author' OR ur.credential='$email')\n AND (ur.projectid=0 OR ur.projectid=\".qnum($this->ProjectId).\")\"\n );\n if(pdo_num_rows($user2project)==0)\n {\n return;\n }\n\n $user2project_array = pdo_fetch_array($user2project);\n $userid = $user2project_array[\"userid\"];\n\n // Check if we already have a checkin date for this user\n $userstatistics = pdo_query(\"SELECT totalupdatedfiles\n FROM userstatistics WHERE userid=\".qnum($userid).\" AND projectid=\".qnum($this->ProjectId).\" AND checkindate='$checkindate'\");\n add_last_sql_error(\"Build:AddUpdateStatistics\",$this->ProjectId,$this->Id);\n\n if(pdo_num_rows($userstatistics)>0)\n {\n $userstatistics_array = pdo_fetch_array($userstatistics);\n $totalbuilds = 0;\n if($firstbuild==1)\n {\n $totalbuilds=1;\n }\n\n $nfailedwarnings = 0;\n $nfixedwarnings = 0;\n $nfailederrors = 0;\n $nfixederrors = 0;\n $nfailedtests = 0;\n $nfixedtests = 0;\n\n if($warningdiff>0)\n {\n $nfailedwarnings = $warningdiff;\n }\n else\n {\n $nfixedwarnings = abs($warningdiff);\n }\n\n if($errordiff>0)\n {\n $nfailederrors = $errordiff;\n }\n else\n {\n $nfixederrors = abs($errordiff);\n }\n\n if($testdiff>0)\n {\n $nfailedtests = $testdiff;\n }\n else\n {\n $nfixedtests = abs($testdiff);\n }\n\n pdo_query(\"UPDATE userstatistics\n SET totalupdatedfiles=totalupdatedfiles+\".qnum(1).\",\n totalbuilds=totalbuilds+\".qnum($totalbuilds).\",\n nfixedwarnings=nfixedwarnings+\".qnum($nfixedwarnings).\",\n nfailedwarnings=nfailedwarnings+\".qnum($nfailedwarnings).\",\n nfixederrors=nfixederrors+\".qnum($nfixederrors).\",\n nfailederrors=nfailederrors+\".qnum($nfailederrors).\",\n nfixedtests=nfixedtests+\".qnum($nfixedtests).\",\n nfailedtests=nfailedtests+\".qnum($nfailedtests).\"\n WHERE userid=\".qnum($userid).\" AND projectid=\".qnum($this->ProjectId).\" AND checkindate>='$checkindate'\");\n add_last_sql_error(\"Build:AddUpdateStatistics\",$this->ProjectId,$this->Id);\n }\n else // insert into the database\n {\n if($warningdiff>0)\n {\n $nfixedwarnings = 0;\n $nfailedwarnings = $warningdiff;\n }\n else\n {\n $nfixedwarnings = $warningdiff;\n $nfailedwarnings = 0;\n }\n\n if($errordiff>0)\n {\n $nfixederrors = 0;\n $nfailederrors = $errordiff;\n }\n else\n {\n $nfixederrors = $errordiff;\n $nfailederrors = 0;\n }\n\n if($testdiff>0)\n {\n $nfixedtests = 0;\n $nfailedtests = $testdiff;\n }\n else\n {\n $nfixedtests = $testdiff;\n $nfailedtests = 0;\n }\n\n $totalupdatedfiles=1;\n $totalbuilds = 0;\n if($firstbuild==1)\n {\n $totalbuilds=1;\n }\n\n pdo_query(\"UPDATE userstatistics\n SET totalupdatedfiles=totalupdatedfiles+\".qnum(1).\",\n totalbuilds=totalbuilds+\".qnum(1).\",\n nfixedwarnings=nfixedwarnings+\".qnum($nfixedwarnings).\",\n nfailedwarnings=nfailedwarnings+\".qnum($nfailedwarnings).\",\n nfixederrors=nfixederrors+\".qnum($nfixederrors).\",\n nfailederrors=nfailederrors+\".qnum($nfailederrors).\",\n nfixedtests=nfixedtests+\".qnum($nfixedtests).\",\n nfailedtests=nfailedtests+\".qnum($nfailedtests).\"\n WHERE userid=\".qnum($userid).\" AND projectid=\".qnum($this->ProjectId).\" AND checkindate>'$checkindate'\");\n\n add_last_sql_error(\"Build:AddUpdateStatistics\",$this->ProjectId,$this->Id);\n\n // Find the previous userstatistics\n $previous = pdo_query(\"SELECT totalupdatedfiles,totalbuilds,nfixedwarnings,nfailedwarnings,nfixederrors,nfailederrors,nfixedtests,nfailedtests\n FROM userstatistics WHERE userid='$userid' AND projectid=\".qnum($this->ProjectId).\" AND checkindate<'$checkindate' ORDER BY checkindate DESC LIMIT 1\");\n add_last_sql_error(\"Build:AddUpdateStatistics\",$this->ProjectId,$this->Id);\n if(pdo_num_rows($previous)>0)\n {\n $previous_array = pdo_fetch_array($previous);\n $totalupdatedfiles += $previous_array[\"totalupdatedfiles\"];\n $totalbuilds += $previous_array[\"totalbuilds\"];\n $nfixedwarnings += $previous_array[\"nfixedwarnings\"];\n $nfailedwarnings += $previous_array[\"nfailedwarnings\"];\n $nfixederrors += $previous_array[\"nfixederrors\"];\n $nfailederrors += $previous_array[\"nfailederrors\"];\n $nfixedtests += $previous_array[\"nfixedtests\"];\n $nfailedtests += $previous_array[\"nfailedtests\"];\n }\n\n pdo_query(\"INSERT INTO userstatistics (userid,projectid,checkindate,totalupdatedfiles,totalbuilds,\n nfixedwarnings,nfailedwarnings,nfixederrors,nfailederrors,nfixedtests,nfailedtests)\n VALUES (\".qnum($userid).\",\".qnum($this->ProjectId).\",'$checkindate',$totalupdatedfiles,$totalbuilds,$nfixedwarnings,\n $nfailedwarnings,$nfixederrors,$nfailederrors,$nfixedtests,$nfailedtests)\n \");\n add_last_sql_error(\"Build:AddUpdateStatistics\",$this->ProjectId,$this->Id);\n }\n }", "title": "" }, { "docid": "af398c107ee61506adff0f48d9792cd4", "score": "0.55497897", "text": "function update_test_code($type='')\r\r\n\t{\r\r\n\t\tglobal $sql,$ns, $pref;\r\r\n\t\t$just_check = $type == 'do' ? FALSE : TRUE;\t\t// TRUE if we're just seeing whether an update is needed\r\r\n\t\t//--------------**************---------------\r\r\n\t\t// Add your test code in here\r\r\n\t\t//--------------**************---------------\r\r\n\r\r\n\t\t//--------------**************---------------\r\r\n\t\t// End of test code\r\r\n\t\t//--------------**************---------------\r\r\n\t\treturn $just_check;\r\r\n\t}", "title": "" }, { "docid": "7bb968ef58cc70b0bbdb8656837fbf05", "score": "0.55489796", "text": "public function testtrackupdateissuccessfulwithmaxlengthfields() {\n global $CFG, $DB;\n require_once($CFG->dirroot.'/elis/program/lib/data/curriculum.class.php');\n require_once($CFG->dirroot.'/elis/program/lib/data/track.class.php');\n\n $program = new curriculum(array('idnumber' => 'testprogramidnumber'));\n $program->save();\n\n $track = new track(array(\n 'curid' => $program->id,\n 'idnumber' => 'testtrackidnumber'));\n $track->save();\n\n $record = new stdClass;\n $record->context = 'track';\n $record->idnumber = 'testtrackidnumber';\n $record->name = str_repeat('a', 255);\n\n $importplugin = rlip_dataplugin_factory::factory('rlipimport_version1elis');\n $importplugin->fslogger = new silent_fslogger(null);\n $importplugin->track_update($record, 'bogus');\n\n $track = $DB->get_record(track::TABLE, array('idnumber' => $record->idnumber));\n $this->assertEquals($record->name, $track->name);\n }", "title": "" }, { "docid": "ba00cb0ec039319ca8555cdc054ad111", "score": "0.55476886", "text": "public function testIfBulkUpdateTaskFindsFrontendUsersToBeUpdated() {}", "title": "" }, { "docid": "cb78006da55654c949ff92e52b26bf1c", "score": "0.55463636", "text": "public function testTaskStatusTimeCalculationForPassedQa()\n {\n // Assigned 30 minutes ago\n $minutesWorking = 30;\n $assignedAgo = (int)(new \\DateTime())->sub(new \\DateInterval('PT' . $minutesWorking . 'M'))->format('U');\n $task = $this->getAssignedTask($assignedAgo);\n $task->qa_in_progress = true;\n $task->save();\n $qaProgressTimeBeforeListener = $task->work[$task->owner]['qa'];\n $timeStampBeforeListener = $task->work[$task->owner]['workTrackTimestamp'];\n\n $task->passed_qa = true;\n $task->qa_in_progress = false;\n $event = new TaskStatusTimeCalculation($task);\n $listener = new \\App\\Listeners\\TaskStatusTimeCalculation();\n $listener->handle($event);\n $task->save();\n\n $this->assertGreaterThan($qaProgressTimeBeforeListener, $task->work[$task->owner]['qa_in_progress']);\n $this->assertGreaterThan($timeStampBeforeListener, $task->work[$task->owner]['workTrackTimestamp']);\n $this->assertEquals(\n $task->work[$task->owner]['workTrackTimestamp'] - $timeStampBeforeListener,\n $task->work[$task->owner]['qa_in_progress']\n );\n $this->assertEquals($task->work[$task->owner]['qa_in_progress'], $task->work[$task->owner]['qa_total_time']);\n }", "title": "" }, { "docid": "ce3cccad32d14e097360e471ac1ab2c4", "score": "0.5529358", "text": "public function testGetUpdated()\n {\n $today = date('Y-m-d');\n $tomorrow = date('Y-m-d', strtotime('tomorrow'));\n\n $result = $this->_users->getUpdated($today, $tomorrow);\n $this->assertInternalType('array', $result);\n }", "title": "" }, { "docid": "15083a24c4f2cdcc8d51b590fcfa9595", "score": "0.5527438", "text": "public function testTaskStatusTimeCalculationForTaskReassigned()\n {\n // Assigned 30 minutes ago\n $minutesWorking = 30;\n $assignedAgo = (int)(new \\DateTime())->sub(new \\DateInterval('PT' . $minutesWorking . 'M'))->format('U');\n $task = $this->getAssignedTask($assignedAgo);\n $task->save();\n $oldOwner = $task->owner;\n $oldWorkTrackTimestamp = $task->work[$oldOwner]['workTrackTimestamp'];\n $newOwner = Profile::create();\n $task->owner = $newOwner->id;\n\n $event = new TaskStatusTimeCalculation($task);\n $listener = new \\App\\Listeners\\TaskStatusTimeCalculation();\n $listener->handle($event);\n $task->save();\n\n $this->assertCount(2, $task->work);\n $this->assertArrayHasKey($newOwner->id, $task->work);\n\n $this->assertArrayHasKey('worked', $task->work[$oldOwner]);\n $this->assertArrayHasKey('paused', $task->work[$oldOwner]);\n $this->assertArrayHasKey('qa', $task->work[$oldOwner]);\n $this->assertArrayHasKey('qa_in_progress', $task->work[$task->owner]);\n $this->assertArrayHasKey('qa_total_time', $task->work[$task->owner]);\n $this->assertArrayHasKey('blocked', $task->work[$task->owner]);\n $this->assertArrayHasKey('workTrackTimestamp', $task->work[$oldOwner]);\n $this->assertArrayHasKey('timeAssigned', $task->work[$oldOwner]);\n $this->assertArrayHasKey('timeRemoved', $task->work[$oldOwner]);\n $this->assertEquals(\n $task->work[$oldOwner]['workTrackTimestamp'] - $oldWorkTrackTimestamp,\n $task->work[$oldOwner]['worked']\n );\n $this->assertEquals(0, $task->work[$oldOwner]['paused']);\n $this->assertEquals(0, $task->work[$oldOwner]['qa']);\n $this->assertEquals(0, $task->work[$task->owner]['qa_in_progress']);\n $this->assertEquals(0, $task->work[$task->owner]['qa_total_time']);\n $this->assertEquals(0, $task->work[$oldOwner]['blocked']);\n $this->assertEquals(\n $task->work[$oldOwner]['workTrackTimestamp'],\n $task->work[$oldOwner]['timeRemoved']\n );\n\n $this->assertArrayHasKey('worked', $task->work[$task->owner]);\n $this->assertArrayHasKey('paused', $task->work[$task->owner]);\n $this->assertArrayHasKey('qa', $task->work[$task->owner]);\n $this->assertArrayHasKey('qa_in_progress', $task->work[$task->owner]);\n $this->assertArrayHasKey('qa_total_time', $task->work[$task->owner]);\n $this->assertArrayHasKey('blocked', $task->work[$task->owner]);\n $this->assertArrayHasKey('workTrackTimestamp', $task->work[$task->owner]);\n $this->assertArrayHasKey('timeAssigned', $task->work[$task->owner]);\n $this->assertArrayNotHasKey('timeRemoved', $task->work[$task->owner]);\n $this->assertEquals(0, $task->work[$task->owner]['worked']);\n $this->assertEquals(0, $task->work[$task->owner]['paused']);\n $this->assertEquals(0, $task->work[$task->owner]['qa']);\n $this->assertEquals(0, $task->work[$task->owner]['qa_in_progress']);\n $this->assertEquals(0, $task->work[$task->owner]['qa_total_time']);\n $this->assertEquals(0, $task->work[$task->owner]['blocked']);\n $this->assertEquals(\n $task->work[$task->owner]['workTrackTimestamp'],\n $task->work[$task->owner]['timeAssigned']\n );\n }", "title": "" }, { "docid": "690e84754f78c3b1266861d61e42a765", "score": "0.55189025", "text": "public function testJuniorReassessment() {\n $scores = array(\n 1 => array( 'date' => '2013/01/02', 'classification' => 'second', 'next_age_group_classification' => 'third'),\n 2 => array( 'date' => '2013/01/03', 'classification' => 'second', 'next_age_group_classification' => 'third'),\n 3 => array( 'date' => '2013/01/04', 'classification' => 'first', 'next_age_group_classification' => 'second'),\n 4 => array( 'date' => '2013/01/05', 'reassessment' => 'age_group',),\n );\n $results = $this->feedIt($scores);\n $expected = array(\n 3 => array( 'new_classification' => 'second' ),\n 4 => array( 'new_classification' => 'third' ),\n );\n $this->assertEquals($expected, $results);\n }", "title": "" }, { "docid": "bdb791cf336fb5604f6088db5ab6317a", "score": "0.5514723", "text": "public function testAppVerificationUpdate()\n {\n }", "title": "" }, { "docid": "18c9a2b326336720d1c248be4b15c0ef", "score": "0.55016434", "text": "public function testChangeQuestionnaireSubmissionInSDLTUserContext()\n {\n // Baseline\n $this->assertEquals(0, AuditEvent::get()->count());\n\n $user = $this->objFromFixture(Member::class, 'sdlt-user');\n $this->logInAs($user);\n\n $questionnaireSubmission = QuestionnaireSubmission::create([\n 'QuestionnaireStatus' => 'waiting_for_approval',\n ]);\n $questionnaireSubmission->write(); // Sets the initial \"waiting_for_approval\" state\n $questionnaireSubmission\n ->setField('QuestionnaireStatus', 'in_progress')\n ->write(); // Sets the subsequent \"in_progress\" state\n\n // x2 audit log entries because:\n // 1). Basic write()\n // 2). The status change\n // Both of which results in a separate audit log entry being generated\n $this->assertEquals(2, AuditEvent::get()->count());\n $this->assertEquals('Email: sdlt@test.app. Group(s): NZTA-SDLT-Users', AuditEvent::get()->first()->UserData);\n $this->assertEquals('QUESTIONNAIRESUBMISSION.SUBMIT', AuditEvent::get()->toArray()[0]->Event);\n $this->assertEquals('QUESTIONNAIRESUBMISSION.CHANGE', AuditEvent::get()->toArray()[1]->Event);\n }", "title": "" }, { "docid": "9831aea4cbd7ee2314aa692574c20220", "score": "0.5501464", "text": "public function testPatchRecordingsScreensession()\n {\n }", "title": "" }, { "docid": "04360b07c272cb24084b6ecfc60623ce", "score": "0.54979277", "text": "public function testGetQuestionDeltas()\n {\n }", "title": "" }, { "docid": "e6f0c8633f8701558ee05adf8ac74d54", "score": "0.5486034", "text": "function testifjobcountcorrect() \n {\n $this->get(\"https://cs361-project-b-technicallyrice.c9.io/employer_statistics.php\");\n $this->assertResponse(200);\n\n $this->setField(\"role\", \"basketball\");\n \n $this->clickSubmit(\"submit\");\n \n $this->assertResponse(200);\n $this->assertText(\"1.) NBA \");\n \n $this->clickSubmit(\"next\");\n \n $this->assertResponse(200);\n $this->assertText(\"11.) One on One Basketball\");\n \n $this->clickSubmit(\"next\");\n \n $this->assertResponse(200);\n $this->assertText(\"21.) NYC Basketball League\");\n \n $this->clickSubmit(\"next\");\n $this->assertResponse(200);\n $this->assertText(\"31.) Basketball Hall of Fame\");\n \n $this->clickSubmit(\"next\");\n $this->assertResponse(200);\n $this->assertText(\"41.) Peninsula Basketball Officials Association\");\n \n $this->clickSubmit(\"previous\");\n $this->assertResponse(200);\n $this->assertText(\"31.) Basketball Hall of Fame\");\n }", "title": "" }, { "docid": "4816ce45f422348bdd0ef5a6c18faae0", "score": "0.54672194", "text": "public function testV1userexchangeaskcompleted()\n {\n\n }", "title": "" }, { "docid": "1db75a7fd23bf38cc104053c8af271dd", "score": "0.5464822", "text": "function UpdateTestNumbers($numberTestsPassed,$numberTestsFailed,$numberTestsNotRun)\n {\n if(!is_numeric($numberTestsPassed) ||!is_numeric($numberTestsFailed) || !is_numeric($numberTestsNotRun) )\n {\n return;\n }\n\n // If this is a subproject build, we also have to update its parents test numbers.\n $newFailed = $numberTestsFailed - $this->GetNumberOfFailedTests();\n $newNotRun = $numberTestsNotRun - $this->GetNumberOfNotRunTests();\n $newPassed = $numberTestsPassed - $this->GetNumberOfPassedTests();\n $this->ParentId = $this->GetParentBuildId();\n $this->UpdateParentTestNumbers($newFailed, $newNotRun, $newPassed);\n\n // Update this build's test numbers.\n pdo_query(\"UPDATE build SET testnotrun='$numberTestsNotRun',\n testfailed='$numberTestsFailed',\n testpassed='$numberTestsPassed' WHERE id=\".qnum($this->Id));\n\n add_last_sql_error(\"Build:UpdateTestNumbers\",$this->ProjectId,$this->Id);\n }", "title": "" }, { "docid": "6aed90e8c3b48476d9808b2c2f550ff6", "score": "0.54533684", "text": "public function testBookkeepingReport() {\n $this->callAPISuccess('Order', 'create', array('contact_id' => $this->contacts[0], 'total_amount' => 5, 'financial_type_id' => 2));\n $params = array(\n 'report_id' => 'contribution/bookkeeping_extended',\n 'fields' => array (\n 'civicrm_contact_display_name' => '1',\n 'membership_membership_type_id' => '1',\n 'membership_membership_status_id' => '1',\n 'membership_join_date' => '1',\n 'membership_start_date' => '1',\n 'line_item_financial_type_id' => '1',\n 'line_item_line_total' => '1',\n 'line_item_tax_amount' => '1',\n 'contribution_source' => '1',\n 'contribution_receive_date' => '1',\n 'contribution_receipt_date' => '1',\n 'financial_trxn_currency' => '1',\n 'amount' => '1',\n ),\n );\n $rows = $this->getRows($params);\n $this->assertEquals(date('Y-m-d'), date('Y-m-d', strtotime($rows[0]['civicrm_contribution_contribution_receive_date'])));\n $this->assertEquals('USD', $rows[0]['civicrm_financial_trxn_financial_trxn_currency']);\n $this->assertEquals('$ 5.00', $rows[0]['civicrm_entity_financial_trxn_amount']);\n }", "title": "" }, { "docid": "6a39ede5fbde013cd93b520dc4dd9e37", "score": "0.5453047", "text": "public function testJuniorReassessmentPlusEndOfSeasonPlusPrevious() {\n $scores = array(\n 1 => array( 'date' => '2013/01/01', 'classification' => 'second', 'next_age_group_classification' => 'third' ),\n 2 => array( 'date' => '2013/01/02', 'classification' => 'second', 'next_age_group_classification' => 'third' ),\n 3 => array( 'date' => '2013/01/03', 'classification' => 'second', 'next_age_group_classification' => 'third' ),\n 4 => array( 'date' => '2013/01/04', 'classification' => 'second', 'next_age_group_classification' => 'second' ),\n 5 => array( 'date' => '2013/01/05', 'reassessment' => 'age_group' ),\n 6 => array( 'date' => '2013/01/06', 'classification' => 'second' ),\n 7 => array( 'date' => '2013/01/07', 'classification' => 'second' ),\n 8 => array( 'date' => '2013/06/01', 'reassessment' => 'end_of_season' ),\n );\n $results = $this->feedIt($scores);\n $expected = array(\n 3 => array( 'new_classification' => 'second' ),\n 5 => array( 'new_classification' => 'third' ),\n 7 => array( 'new_classification' => 'second' ),\n 8 => array( 'new_classification' => 'second' ),\n );\n $this->assertEquals($expected, $results);\n }", "title": "" }, { "docid": "23d53a28b701527e6baa53dac4ca4e89", "score": "0.54436034", "text": "public function testSaveShouldWorkAndBumpTimestampAndTheDirtyFlagShouldWork()\n\t{\n\t\t$result = orm('test_orm_table')->find();\n\t\t$old_timestamp = $result->modified_date->timestamp();\n\t\t$result->save();\n\t\t$result = orm('test_orm_table')->find();\n\t\t$this->assertEquals($old_timestamp, $result->modified_date->timestamp());\n\t\t\n\t\t#Once with\n\t\t$old_timestamp = $result->modified_date->timestamp();\n\t\t$result->test_field = 'test10';\n\t\t$result->save();\n\t\t$result = orm('test_orm_table')->find();\n\t\t$this->assertNotEquals($old_timestamp, $result->modified_date->timestamp());\n\t\t$this->assertEquals('test10', $result->test_field);\n\t}", "title": "" }, { "docid": "2bd0d38041710fa2aa1e5865d13635be", "score": "0.5441915", "text": "public function testUpdateProject()\n {\n $filter['id']=\"1\";\n $filter['project_name']=\"test\";\n $filter['project_description']=\"test\";\n $filter['date_start']='2019-01-01';\n $filter['date_end']='2030-01-01';\n $filter['owner_lastname']=\"test\";\n $filter['owner_firstname']=\"test\";\n $and=false;\n $res=$this->projectModel->getProjects($filter,$and);\n $project['id']=$res[0][\"id\"];\n $project['pname']=\"test10\";\n $project['pdescription']=\"test11\";\n $project['pdate_start']='2018-12-02';\n $project['pdate_end']='2020-01-01';\n $userId= $this->projectModel->getUserID();\n $resu=$this->projectModel->updateProject($res[0][\"id\"], $userId, $project);\n $this->assertEquals($resu,true);\n }", "title": "" }, { "docid": "abc951c014a3ff55a6cfeac5f1c05333", "score": "0.5441363", "text": "public function testLandedCostBookInPATCHRequestBookInIDUpdate()\n {\n }", "title": "" }, { "docid": "5c55df01247c16345fb68839da5acf59", "score": "0.5436226", "text": "function testViewChangeLogMultipleChangesOnAnswer(){\n\t\t//Should see <div class='change'><span class='bold'>\".$value['userid'].\"</span> changed the response from <span class='italics'>\".$value['response'].\"</span> to <span class='italics'> [answer] on [date]\n\t}", "title": "" }, { "docid": "4d34d3dedfc7e4a3d540fbd2daaec5a9", "score": "0.542939", "text": "public function testTaskStatusTimeCalculationForFailedQa()\n {\n // Assigned 30 minutes ago\n $minutesWorking = 30;\n $assignedAgo = (int)(new \\DateTime())->sub(new \\DateInterval('PT' . $minutesWorking . 'M'))->format('U');\n $task = $this->getAssignedTask($assignedAgo);\n $task->qa_in_progress = true;\n $task->save();\n $qaTimeBeforeListener = $task->work[$task->owner]['qa'];\n $qaProgressTimeBeforeListener = $task->work[$task->owner]['qa_in_progress'];\n $timeStampBeforeListener = $task->work[$task->owner]['workTrackTimestamp'];\n\n $task->qa_in_progress = false;\n $event = new TaskStatusTimeCalculation($task);\n $listener = new \\App\\Listeners\\TaskStatusTimeCalculation();\n $listener->handle($event);\n\n $this->assertEquals(0, $qaTimeBeforeListener);\n $this->assertEquals($task->work[$task->owner]['qa_in_progress'], $qaProgressTimeBeforeListener);\n $this->assertEquals(0, $task->work[$task->owner]['qa_in_progress']);\n $this->assertGreaterThan($timeStampBeforeListener, $task->work[$task->owner]['workTrackTimestamp']);\n $this->assertEquals(\n $task->work[$task->owner]['workTrackTimestamp'] - $timeStampBeforeListener,\n $task->work[$task->owner]['qa_total_time']\n );\n }", "title": "" }, { "docid": "91e980efad1390797182ee8cfb695b58", "score": "0.5427762", "text": "public function testSecondVersionPreviousNoOverlap() {\n $this->getFunctionMock('app\\controllers\\student', 'is_uploaded_file')\n ->expects($this->any())\n ->willReturn(true);\n\n $this->addUploadFile('test1.txt');\n\n $controller = new SubmissionController($this->core);\n $return = $controller->ajaxUploadSubmission('test');\n $_FILES = [];\n\n $this->assertFalse($return['status'] == 'fail');\n $this->assertTrue($return['status'] == 'success');\n $tmp = FileUtils::joinPaths($this->config['course_path'], \"submissions\", \"test\", \"testUser\", \"1\");\n $files = [];\n foreach (new \\FilesystemIterator($tmp) as $file) {\n $this->assertFalse($file->isDir());\n $files[] = $file->getFilename();\n }\n sort($files);\n $this->assertEquals(['.submit.timestamp', '.user_assignment_access.json', 'test1.txt'], $files);\n\n $this->addUploadFile('test2.txt');\n $_POST['previous_files'] = json_encode([['test1.txt']]);\n\n\n $database_queries = $this->createMock(DatabaseQueries::class);\n $gradeable = $this->createMockGradeable();\n $database_queries->method('getGradeableConfig')->with('test')->willReturn($gradeable);\n $database_queries->method('getGradedGradeable')->willReturn($this->createMockGradedGradeable($gradeable, 1));\n $this->core->setQueries($database_queries);\n\n $controller = new SubmissionController($this->core);\n $return = $controller->ajaxUploadSubmission('test');\n\n $this->assertFalse($return['status'] == 'fail');\n $this->assertTrue($return['status'] == 'success');\n $tmp = FileUtils::joinPaths($this->config['course_path'], \"submissions\", \"test\", \"testUser\", \"2\");\n $files = [];\n foreach (new \\FilesystemIterator($tmp) as $file) {\n $this->assertFalse($file->isDir());\n $files[] = $file->getFilename();\n }\n sort($files);\n $this->assertEquals(['.submit.timestamp', '.user_assignment_access.json', 'test1.txt', 'test2.txt'], $files);\n }", "title": "" }, { "docid": "de48ab74f26a23dd47d1a3e76675cdac", "score": "0.54272753", "text": "public function testSecondVersionPreviousOverlap() {\n $this->getFunctionMock('app\\controllers\\student', 'is_uploaded_file')\n ->expects($this->any())\n ->willReturn(true);\n\n $this->addUploadFile('test1.txt', 'old_file');\n\n $controller = new SubmissionController($this->core);\n $return = $controller->ajaxUploadSubmission('test');\n $_FILES = [];\n\n $this->assertFalse($return['status'] == 'fail');\n $this->assertTrue($return['status'] == 'success');\n $tmp = FileUtils::joinPaths($this->config['course_path'], \"submissions\", \"test\", \"testUser\", \"1\");\n $files = [];\n foreach (new \\FilesystemIterator($tmp) as $file) {\n $this->assertFalse($file->isDir());\n $files[] = $file->getFilename();\n if ($file->getFilename() === \"test1.txt\") {\n $this->assertStringEqualsFile($file->getPathname(), \"old_file\");\n }\n }\n sort($files);\n $this->assertEquals(['.submit.timestamp', '.user_assignment_access.json', 'test1.txt'], $files);\n\n $this->addUploadFile('test1.txt', 'new_file');\n $_POST['previous_files'] = json_encode([['test1.txt']]);\n\n $database_queries = $this->createMock(DatabaseQueries::class);\n $gradeable = $this->createMockGradeable();\n $database_queries->method('getGradeableConfig')->with('test')->willReturn($gradeable);\n $database_queries->method('getGradedGradeable')->willReturn($this->createMockGradedGradeable($gradeable, 1));\n $this->core->setQueries($database_queries);\n\n $controller = new SubmissionController($this->core);\n $return = $controller->ajaxUploadSubmission('test');\n\n $this->assertFalse($return['status'] == 'fail');\n $this->assertTrue($return['status'] == 'success');\n $tmp = FileUtils::joinPaths($this->config['course_path'], \"submissions\", \"test\", \"testUser\", \"2\");\n $files = [];\n foreach (new \\FilesystemIterator($tmp) as $file) {\n $this->assertFalse($file->isDir());\n $files[] = $file->getFilename();\n if ($file->getFilename() === \"test1.txt\") {\n $this->assertStringEqualsFile($file->getPathname(), \"new_file\");\n }\n }\n sort($files);\n $this->assertEquals(['.submit.timestamp', '.user_assignment_access.json', 'test1.txt'], $files);\n }", "title": "" }, { "docid": "4e252053cb156eb63942b66092678f8e", "score": "0.5425726", "text": "public function test_should_return_setup_not_started_while_create_setup_notes()\n {\n $this->programType->update(['pacing' => null]);\n $this->programType->update(['code' => 'out_tasked_email']);\n DB::table('sectors')->delete();\n DB::table('questions_allocations')->delete();\n DB::table('partners')->delete();\n\n $response = $this->post('program-types/' . $this->programType->id . '/setup-notes/');\n\n $this->assertEquals($this->programType->refresh()->setup_notes, [\n 'percentage_complete' => 0,\n 'message' => 'Setup not started',\n ]);\n }", "title": "" }, { "docid": "f693e298654f5d6d0214fc41750cd829", "score": "0.5422521", "text": "public function testNoUpdatesAvailable() {\n foreach ([0, 1] as $minor_version) {\n foreach ([0, 1] as $patch_version) {\n foreach (['-alpha1', '-beta1', ''] as $extra_version) {\n $this->setProjectInstalledVersion(\"8.$minor_version.$patch_version\" . $extra_version);\n $this->refreshUpdateStatus([$this->updateProject => \"$minor_version.$patch_version\" . $extra_version]);\n $this->standardTests();\n // The XML test fixtures for this method all contain the '8.2.0'\n // release but because '8.2.0' is not in a supported branch it will\n // not be in the available updates.\n $this->assertUpdateTableElementNotContains('8.2.0');\n $this->assertUpdateTableTextContains('Up to date');\n $this->assertUpdateTableTextNotContains('Update available');\n $this->assertUpdateTableTextNotContains('Security update required!');\n $this->assertUpdateTableElementContains('check.svg');\n }\n }\n }\n }", "title": "" }, { "docid": "636e463f694112c55bf153c2fde607e7", "score": "0.5417775", "text": "public function testCrceOnlinePaymentUpdatePlan()\n {\n\n }", "title": "" }, { "docid": "1326b3ae09bd52e659b4cbd0cdbeeb87", "score": "0.54169875", "text": "static function update($fields) {\n global $user;\n $mdb2 = getConnection();\n\n $user_id = $user->getUser();\n $group_id = $user->getGroup();\n $org_id = $user->org_id;\n\n $timesheet_id = $fields['id']; // Timesheet we are updating.\n $name = $fields['name']; // Timesheet name.\n $comment = $fields['comment'];\n $status = $fields['status']; // Timesheet status.\n\n $modified_part = ', modified = now(), modified_ip = '.$mdb2->quote($_SERVER['REMOTE_ADDR']).', modified_by = '.$user->id;\n\n $sql = \"update tt_timesheets set name = \".$mdb2->quote($name).\n \", comment = \".$mdb2->quote($comment).$modified_part.\n \", status = \".$mdb2->quote($status).\n \" where id = $timesheet_id and user_id = $user_id and group_id = $group_id and org_id = $org_id\";\n $affected = $mdb2->exec($sql);\n return (!is_a($affected, 'PEAR_Error'));\n }", "title": "" }, { "docid": "c48e5887754e3ff36b91fa02eb8e092e", "score": "0.54115605", "text": "public function testGoodsReceivedNotePATCHRequestGRNIDUpdate()\n {\n }", "title": "" }, { "docid": "50e7c25f95812df5284ae556fd507886", "score": "0.54088336", "text": "function patch_test_apply($patch, $fulldetail=false) {\n\treturn patch_commit($patch, \"apply\", true, $fulldetail);\n}", "title": "" }, { "docid": "1da2c8cdeaeccac5ea2221393a1b8a79", "score": "0.5405879", "text": "public function testSetDateFields()\n {\n $respondentTrack = $this->loader->getTracker()->getRespondentTrack(1);\n \n $expected = $respondentTrack->getFieldData();\n $date = new MUtil_Date('2010-11-09', 'yyyy-MM-dd');\n $expected = array(\n 'f__1' => 'newvalue',\n 'code' => 'newvalue',\n 'f__2' => $date,\n 'datecode' => $date\n );\n $actual = $respondentTrack->setFieldData(array('code' => 'newvalue', 'datecode' => $date->toString('yyyy-MM-dd')));\n\n $this->assertArrayWithDateMatch($expected, $actual, '', 1, 0);\n }", "title": "" }, { "docid": "65150afa4bdce029b9376926e2c98e48", "score": "0.53944963", "text": "public function testUpdate()\n {\n $this->invoice->addItem($this->itemA);\n $this->invoice->addItem($this->itemB);\n $this->invoice->update();\n\n $this->assertEquals($this->invoice->totals->getItemNetTotal(), 65.0);\n }", "title": "" }, { "docid": "74f3c486ae51af95c164b7bde43acbb0", "score": "0.5393556", "text": "public function testupdateFinancement()\n\t{\n\t\t$this->viderTable();\n\t\t$this->create1These();\n\t\t$TS = new TheseService($this->em);\n\t\t\n\t\t$req = $TS->updateFinancement(1, 'test');\n\t\t\n\t\t$these = $this->em->getRepository('DTDoctoramaBundle:These')->findOneById(1);\n\t\t$this->assertEquals('test', $these->getFinancement());\t\n\t}", "title": "" }, { "docid": "8343ae5c0ec49657f787e5de66a19d7a", "score": "0.5389753", "text": "public function test_should_create_setup_notes_without_partners_and_question_allocation_for_out_tasked()\n {\n $this->programType->update(['code' => 'out_tasked_email']);\n DB::table('sectors')->delete();\n DB::table('questions_allocations')->delete();\n DB::table('partners')->delete();\n $response = $this->post('program-types/' . $this->programType->id . '/setup-notes/');\n\n $this->checkDatabaseAssertion();\n\n $this->assertEquals($this->programType->refresh()->setup_notes, [\n 'percentage_complete' => 25,\n 'message' => 'Setup incomplete',\n ]);\n }", "title": "" }, { "docid": "ebe28a33b6b537762b55e0a718022086", "score": "0.53888", "text": "public function test_methodonlyupdatesenrolmentifkeyfieldchanged() {\n global $DB;\n\n $this->load_csv_data();\n\n // Set up enrolment.\n $this->make_course_enrollable();\n enrol_try_internal_enrol(2, 100, 1);\n\n // Set up course grade item.\n $coursegradeitem = \\grade_item::fetch_course_item(2);\n $coursegradeitem->needsupdate = false;\n $coursegradeitem->locked = true;\n $coursegradeitem->update();\n\n // Assign a course grade.\n $coursegradegrade = new \\grade_grade(array('itemid' => 1, 'userid' => 100, 'finalgrade' => 40, 'timemodified' => 1));\n $coursegradegrade->insert();\n\n // Set a completion grade.\n $pmcourse = new \\course(array('id' => 100, 'completion_grade' => 50, 'credits' => 1));\n $pmcourse->save();\n\n // Validate initial state.\n $sync = new \\local_elisprogram\\moodle\\synchronize;\n $sync->synchronize_moodle_class_grades();\n $this->assert_num_students(1);\n $this->assert_student_exists(100, 103, 40, STUSTATUS_NOTCOMPLETE, 0, 0);\n\n // Only a bogus db field is updated.\n $DB->execute(\"UPDATE {grade_grades} SET information = 'updated'\");\n\n $sync = new \\local_elisprogram\\moodle\\synchronize;\n $sync->synchronize_moodle_class_grades();\n $this->assert_num_students(1);\n $this->assert_student_exists(100, 103, 40, STUSTATUS_NOTCOMPLETE, 0, 0);\n\n // Update grade.\n $DB->execute(\"UPDATE {grade_grades} SET finalgrade = 45\");\n\n $sync = new \\local_elisprogram\\moodle\\synchronize;\n $sync->synchronize_moodle_class_grades();\n $this->assert_num_students(1);\n $this->assert_student_exists(100, 103, 45, STUSTATUS_NOTCOMPLETE, 0, 0);\n\n // Update completestatusid.\n $DB->execute(\"UPDATE {\".\\course::TABLE.\"} SET completion_grade = 45\");\n\n $sync = new \\local_elisprogram\\moodle\\synchronize;\n $sync->synchronize_moodle_class_grades();\n $this->assert_num_students(1);\n $this->assert_student_exists(100, 103, 45, STUSTATUS_PASSED, 1, 1);\n\n // Update completetime.\n $DB->execute(\"UPDATE {grade_grades} SET timemodified = 12345\");\n\n $sync = new \\local_elisprogram\\moodle\\synchronize;\n $sync->synchronize_moodle_class_grades();\n $this->assert_num_students(1);\n $this->assert_student_exists(100, 103, 45, STUSTATUS_PASSED, 12345, 1);\n\n // Update credits.\n $DB->execute(\"UPDATE {\".\\course::TABLE.\"} SET credits = 2\");\n\n $sync = new \\local_elisprogram\\moodle\\synchronize;\n $sync->synchronize_moodle_class_grades();\n $this->assert_num_students(1);\n $this->assert_student_exists(100, 103, 45, STUSTATUS_PASSED, 12345, 2);\n }", "title": "" }, { "docid": "f935507064a6b766e683df17eb54376a", "score": "0.5387229", "text": "public function testUpdateStatus()\n {\n $this->markTestIncomplete(\n 'Test of \"updateStatus\" method has not been implemented yet.'\n );\n }", "title": "" }, { "docid": "31f9876a332494274ed22552e5e52f3a", "score": "0.5383303", "text": "public function testGetNextBatchNumber0()\n{\n\n $actual = $this->databaseMigrationRepository->getNextBatchNumber();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "9646400d0fc84d481a2482c886a639bd", "score": "0.5377561", "text": "function it_trade_update_successfully()\n {\n parse_str(file_get_contents(__DIR__ . '/test-data/trade_update_success.txt'), $notification);\n $this->tradeUpdated($notification, function($trade) {\n \\PHPUnit_Framework_Assert::assertEquals('201506072227000001', $trade->orderNo);\n \\PHPUnit_Framework_Assert::assertEquals('SUCCESS', $trade->returnCode);\n \\PHPUnit_Framework_Assert::assertEquals('SUCCESS', $trade->resultCode);\n \\PHPUnit_Framework_Assert::assertEquals('wxd930ea5d5a258f4f', $trade->openid);\n \\PHPUnit_Framework_Assert::assertEquals('APP', $trade->tradeType);\n \\PHPUnit_Framework_Assert::assertEquals('CMC', $trade->bankType);\n \\PHPUnit_Framework_Assert::assertEquals('1', $trade->fee);\n \\PHPUnit_Framework_Assert::assertEquals('1217752501201407033233368018', $trade->transactionId);\n \\PHPUnit_Framework_Assert::assertEquals('', $trade->attach);\n \\PHPUnit_Framework_Assert::assertEquals('20150707195723', $trade->paymentTime);\n return true;\n })->shouldEqual('SUCCESS');\n }", "title": "" }, { "docid": "2fb3ae54935716d168527aaa729c5d22", "score": "0.5376701", "text": "public function testRestoreInvoiceVar1() {\n\t\t\t//\ttesting sucks\n\t\t\t//$this->db->select_db(DB_NAME);\n\t\t\t$query = \"UPDATE \".TB_VPS_INVOICE.\" SET status = 'canceled' WHERE invoice_id = 2\";\n \t\t\t$this->db->query($query);\n \t\t\t\n\t\t\t$invoiceID = 2;\n\t\t\t$shift = 5;\n\t\t\t$shiftStartDate = false;\n\t\t\t//\tprepare dynamic fields at dataSet\n \t\t$xmlDataSetPath = dirname(__FILE__).'/_files/restoreInvoiceVar1.xml'; \t\t \t\t \n\t\t\t$this->DOM->load($xmlDataSetPath);\t\t\t\n\t\t\t//\tset invoices fields\n\t\t\t$elements = $this->DOM->getElementsByTagName('table');\n\t\t\tforeach ($elements as $element) {\n\t\t\t\t$tableName = $element->getAttribute('name');\t\t\t\t\t\t\t\n\t\t\t\tif ($tableName == 'vps_invoice') {\n\t\t\t\t\t$rows = $element->getElementsByTagName('row');\n\t\t\t\t\tforeach($rows as $row) {\n\t\t\t\t\t\t$values = $row->getElementsByTagName('value');\n\t\t\t\t\t\tswitch ($values->item(0)->nodeValue) {\n\t\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\t\t\t$values->item(9)->nodeValue = $this->invoiceDates[0]['generation_date'];\n\t\t\t\t\t\t\t\t$values->item(10)->nodeValue = $this->invoiceDates[0]['suspension_date']; \n\t\t\t\t\t\t\t\t$values->item(11)->nodeValue = $this->invoiceDates[0]['period_start_date'];\n\t\t\t\t\t\t\t\t$values->item(12)->nodeValue = $this->invoiceDates[0]['period_end_date'];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\t\t\t$values->item(9)->nodeValue = $this->invoiceDates[1]['generation_date'];\n\t\t\t\t\t\t\t\t$values->item(10)->nodeValue = $this->invoiceDates[1]['suspension_date']; \n\t\t\t\t\t\t\t\t$values->item(11)->nodeValue = $this->invoiceDates[1]['period_start_date'];\n\t\t\t\t\t\t\t\t$values->item(12)->nodeValue = $this->invoiceDates[1]['period_end_date'];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase '3':\n\t\t\t\t\t\t\t\t$values->item(9)->nodeValue = date('Y-m-d');\n\t\t\t\t\t\t\t\t$values->item(10)->nodeValue = $this->invoiceDates[1]['suspension_date']; \n\t\t\t\t\t\t\t\t$values->item(11)->nodeValue = $this->invoiceDates[1]['period_start_date'];\n\t\t\t\t\t\t\t\t$values->item(12)->nodeValue = date('Y-m-d', strtotime($this->invoiceDates[1]['period_end_date']. '+ '.$shift.' days'));\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->DOM->save($xmlDataSetPath);\n \t\t$xmlDataSet = $this->createXMLDataSet($xmlDataSetPath);\n\t\t\t\n\t\t\t\n\t\t\t$this->invoice->restoreInvoice($invoiceID, $shift, $shiftStartDate);\n\n\t\t\t//\tassertions\n \t\t\t$this->assertTablesEqual($xmlDataSet->getTable(TB_VPS_CUSTOMER), $this->getConnection()->createDataSet()->getTable(TB_VPS_CUSTOMER)); \t\t\t\n \t\t\t$this->assertTablesEqual($xmlDataSet->getTable(TB_VPS_INVOICE), $this->getConnection()->createDataSet()->getTable(TB_VPS_INVOICE));\n \t\t\t\n \t\t\t//\tassert bridge\n \t\t\t$bridgePath = dirname(__FILE__).'/_files/bridge/bridgeRestoreInvoiceVar1.xml';\n \t \t\t$this->DOM->load($bridgePath);\n \t\t$this->DOM->getElementsByTagName('customer')->item(0)->getElementsByTagName('period_end_date')->item(0)->nodeValue = date('Y-m-d', strtotime($this->invoiceDates[1]['period_end_date']. '+ '.$shift.' days')); \t\t\n \t\t$this->DOM->save($bridgePath);\n \t\t$this->assertXmlFileEqualsXmlFile($bridgePath, PATH_BRIDGE_XML);\n\t\t}", "title": "" }, { "docid": "69da0f91f213c59d97f21455df615929", "score": "0.5372951", "text": "public function testMajorUpdateAvailable() {\n foreach ([0, 1] as $minor_version) {\n foreach ([0, 1] as $patch_version) {\n foreach (['-alpha1', '-beta1', ''] as $extra_version) {\n $this->setProjectInstalledVersion(\"8.$minor_version.$patch_version\" . $extra_version);\n $this->refreshUpdateStatus([$this->updateProject => '9']);\n $this->standardTests();\n $this->assertUpdateTableTextNotContains('Security update required!');\n $this->assertUpdateTableElementContains(Link::fromTextAndUrl('9.0.0', Url::fromUri(\"http://example.com/{$this->updateProject}-9-0-0-release\"))->toString());\n $this->assertUpdateTableElementContains(Link::fromTextAndUrl('Download', Url::fromUri(\"http://example.com/{$this->updateProject}-9-0-0.tar.gz\"))->toString());\n $this->assertUpdateTableElementContains(Link::fromTextAndUrl('Release notes', Url::fromUri(\"http://example.com/{$this->updateProject}-9-0-0-release\"))->toString());\n $this->assertUpdateTableTextNotContains('Up to date');\n $this->assertUpdateTableTextContains('Not supported!');\n $this->assertUpdateTableTextContains('Recommended version:');\n $this->assertUpdateTableTextNotContains('Latest version:');\n $this->assertUpdateTableElementContains('error.svg');\n }\n }\n }\n }", "title": "" }, { "docid": "463ef1cbe8f497294a1beb6f42f9624f", "score": "0.5363614", "text": "public function test_updates_when_new_version() {\n\t\t// Setup\n\t\t\\WP_Mock::userFunction( 'get_option', array(\n\t\t\t'times' => 1,\n\t\t\t'args' => array( 'tenup_scaffold_version' ),\n\t\t\t'return' => '0.0.1'\n\t\t) );\n\n\n\t\t\\WP_Mock::userFunction( 'TenUpScaffold\\Core\\code_version', array(\n\t\t\t'times' => 1,\n\t\t\t'return' => '0.2.0'\n\t\t) );\n\n\t\t\\WP_Mock::userFunction( 'update_option', array(\n\t\t\t'times' => 1,\n\t\t\t'args' => array( 'tenup_scaffold_version', '0.2.0' )\n\t\t) );\n\n\n\t\t// Fires actions\n\t\t\\WP_Mock::expectAction( 'tenup_scaffold_before_update' );\n\t\t\\WP_Mock::expectAction( 'tenup_scaffold_after_update' );\n\n\t\t// Act\n\t\t$updater = UpdateManager::get_instance();\n\t\t$updated = $updater->maybe_update();\n\n\t\t$this->assertTrue( $updated, 'maybe_update did not return true' );\n\t\t$this->assertConditionsMet();\n\t}", "title": "" }, { "docid": "f3f1240f65efa5fed609f3ae76568f83", "score": "0.5354259", "text": "public function updateExpenseTestNullDate(){\n\t\t$newExpense = new Expense(123, \"12/03/2017\", \"Name type\", \"Staff Funding\");\n\t\t$newAccount = new FundingAccount(\"Test account\", 0, $this->urlms->getLab_index(0));\n\t\t$newAccount->addExpense($newExpense);\n\t\n\t\t$_SESSION['urlms'] = $this->urlms ;\n\t\t$_SESSION['fundingAccount'] = $newAccount;\n\t\n\t\t$this->assertEquals(1, count($newAccount->getExpenses()));\n\t\n\t\ttry {\n\t\t\t$this->controller->updateExpense(\"Name type\", \"New type\", 999, null);\n\t\t} catch (Exception $e) {\n\t\t\t$this->assertEquals(\"Please enter a valid expense type.\", $e->getMessage());\n\t\t}\n\t\n\t\t// 2. Write all of the data\n\t\t$pers = $this->p;\n\t\t$pers->writeDataToStore($this->urlms);\n\t\n\t\t// 3. Clear the data from memory\n\t\t$this->urlms->delete();\n\t\n\t\t$this->assertEquals(0, $this->urlms->numberOfLabs());\n\t\n\t\t// 4. Load it back in\n\t\t$this->urlms = $pers->loadDataFromStore();\n\t\n\t\t// 5. Check that we got it back\n\t\t$this->assertEquals(1, count($newAccount->getExpenses()));\n\t}", "title": "" }, { "docid": "6018a7a64b8960e6bb2a8e7936a9f271", "score": "0.53536576", "text": "public function review() {\n $this->reviewed_on = \\Time::now();\n \n $this->update([\n 'reviewed_on' => $this->reviewed_on\n ]);\n\n $this->current = 'completed';\n }", "title": "" }, { "docid": "e7588fec3d36ca8487982318d40b9866", "score": "0.5352045", "text": "public function testupdateDateDeSoutenance()\n\t{\n\t\t$this->viderTable();\n\t\t$this->create1These();\n\t\t$TS = new TheseService($this->em);\n\t\t\n\t\t$req = $TS->updatedateDeSoutenance(1, new \\DateTime('2015-01-01'));\n\t\t\n\t\t$these = $this->em->getRepository('DTDoctoramaBundle:These')->findOneById(1);\n\t\t$this->assertEquals(new \\DateTime('2015-01-01'), $these->getDateDeSoutenance());\t\n\t}", "title": "" }, { "docid": "a156a22ea6c30ccabd3d8429c09c1b94", "score": "0.5345385", "text": "public function testAccountUpdate()\n {\n $result = $this->service->update($this->account, $this->meta);\n\n $this->specify('account was updated', function () use ($result) {\n $this->assertTrue($result);\n });\n }", "title": "" }, { "docid": "ec06788367557012d492bb4d1c04bd1a", "score": "0.5344471", "text": "public function testGetLastBatchNumber0()\n{\n\n $actual = $this->databaseMigrationRepository->getLastBatchNumber();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" } ]
5a59ded53a73f18006b21b589fded24a
Adds tracking to an Email
[ { "docid": "8e59803ed95294405127b059f8659997", "score": "0.49976277", "text": "public function addTracking($content, $address, $emailId)\n {\n $updatedContent = $this->processLinks($content, $address, $emailId) . $this->getTracker($address, $emailId);\n\n return $updatedContent;\n }", "title": "" } ]
[ { "docid": "cd73f376b3c6316a5fe7a6b0cf8393a5", "score": "0.67912376", "text": "public function setEmailTracking(Request $request): void;", "title": "" }, { "docid": "5c39166c2c882b675920aa05c9e3b109", "score": "0.5917022", "text": "private function set_tracking() {\n\t\t$tracking = Kiwi_Social_Share_Helper::get_setting_value( 'ga_tracking', '', 'kiwi_social_identities' );\n\t\tif ( ! empty( $tracking ) ) {\n\t\t\t$this->tracking = true;\n\t\t}\n\t}", "title": "" }, { "docid": "55d9469282ec729f837b5e2b536a9d00", "score": "0.5858968", "text": "public function trackingSmtp()\n {\n $api_key = get_option('mailin_apikey');\n $data = array();\n $data['key'] = $api_key;\n $data['webaction'] = 'TRACKINGDATA';\n return json_decode($this->curlRequest($data));\n }", "title": "" }, { "docid": "92cd48c433806365866754f02ec9d91a", "score": "0.5814938", "text": "public function Send() {\n\t\tif (isset($this->send_options['tracking_id'])\n\t\t AND $id = $this->send_options['tracking_id']){\n\n\t\t\t$campaign = protocole_implicite($GLOBALS['meta']['adresse_site']).\"/#\".$this->send_options['tracking_id'];\n\t\t\t$this->AddCustomHeader(\"X-mailjet-campaign: $campaign\");\n\t\t\t$this->AddCustomHeader(\"X-Mailjet-DeduplicateCampaign: true\");\n\t\t\t$this->AddCustomHeader(\"X-Mailjet-TrackOpen: true\");\n\t\t\t$this->AddCustomHeader(\"X-Mailjet-TrackClick: true\");\n\t\t}\n\n\t\treturn parent::Send();\n\t}", "title": "" }, { "docid": "7a05cb09c369b013babe5ea9b23610e3", "score": "0.57491195", "text": "function imexpert_tracking() { ?>\n\t<!-- Google Tag Manager -->\n\t<noscript><iframe src=\"//www.googletagmanager.com/ns.html?id=GTM-NXMLC8\"\n\theight=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>\n\t<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n\tnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n\tj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n\t'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n\t})(window,document,'script','dataLayer','GTM-NXMLC8');</script>\n\t<!-- End Google Tag Manager -->\n\t<?php\n}", "title": "" }, { "docid": "3db68b1c1b408b1fcb199b9b106a3ab5", "score": "0.56266177", "text": "protected function storeInTracker($distributionType, $email, $recipientId = null, $recipientType = null)\n {\n $this->mailer->tracker->recipients[] = (object) [\n 'distribution_type' => $distributionType,\n 'email' => $email,\n 'recipient_id' => $recipientId,\n 'recipient_type' => $recipientType,\n ];\n }", "title": "" }, { "docid": "087d1721e85d3449e8eb4a3408f510ca", "score": "0.5595546", "text": "public function sendEmailVerificationNotification()\n {\n $this->email_verification_sent_at = Carbon::now();\n $this->notify(new VerifyApiEmail);\n $this->save();\n }", "title": "" }, { "docid": "d6957ae97a6df2fd99716d6c532284e0", "score": "0.55693245", "text": "function mark_tracking($id,$child_flag,$tracking_tree,$email,$sms)\n\t{\n\t\trequire_code('galleries');\n\t\trequire_lang('galleries');\n\t\trequire_css('galleries');\n\n\t\t$member_id=get_member();\n\t\t$time=time();\n\n\t\t$pagelinks=get_gallery_tree($id,'',NULL,true,'only_conventional_galleries',false,false,false,false,NULL,NULL,false);\n\n\t\tfor($i=0;$i<count($pagelinks);$i++)\n\t\t{\n\t\t\t$GLOBALS['SITE_DB']->query_delete('tracking_info',array('t_type'=>'galleries','t_category_id'=>$pagelinks[$i]['id'],'t_member_id'=>$member_id));\n\t\t}\n\n\t\tif(!empty($tracking_tree))\n\t\t{\n\t\t\t$nodes=explode(\",\",$tracking_tree);\n\t\t\t\n\t\t\tfor($i=0;$i<count($nodes);$i++)\n\t\t\t{\n\t\t\t\t$GLOBALS['SITE_DB']->query_insert('tracking_info',array('t_type'=>'galleries','t_category_id'=>$nodes[$i],'t_member_id'=>$member_id,'t_tracked_at'=>$time,'t_use_email'=>$email,'t_use_sms'=>$sms));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9d03d422b6600d151f917370f6cbf03c", "score": "0.552588", "text": "private function sendCodeViaEmail()\n {\n if (!$this->user->isEmailVerified()) {\n $this->user->notify(new VerifyEmail());\n }\n }", "title": "" }, { "docid": "3ee22adf2a583133cc4f066ebc835afd", "score": "0.5484032", "text": "function hasSentCampaignEmail($track)\n{\n $db = DBManagerFactory::getInstance();\n // when a campaign email is sent, a log entry is also created with activity_type = targeted\n // more_information contains the email address\n $query = \"select count(cl.more_information) from campaign_log cl, campaign_trkrs ct\".\n \" where ct.campaign_id = cl.campaign_id and ct.id = \".$db->quoted($track). \" and ct.deleted = 0\".\n \" and cl.activity_type = 'targeted' and cl.more_information is not null and cl.deleted = 0\";\n return $db->getOne($query) > 0;\n}", "title": "" }, { "docid": "767a17c397e2aaa165952bf4fbfc72d0", "score": "0.5454572", "text": "public function sendEmailNotification($event) {\n \\App\\Classes\\LogToFile::add(__FILE__, 'send email');\n }", "title": "" }, { "docid": "890dc27ac6d2780dcb90e2274adb1f6a", "score": "0.54501474", "text": "public function tagsNotifyEmail ($emailData, $content) {\n\n \n\n}", "title": "" }, { "docid": "2e1100e6c852d7dd22ba9182e6c77441", "score": "0.5447222", "text": "public function track(array $message);", "title": "" }, { "docid": "6eaefb16745a15d6d122cf8eb85fff60", "score": "0.5438911", "text": "public function press_release_track_open()\n {\n dd(header('Content-Type: image/gif'));\n //THIS RETURNS THE IMAGE\n header('Content-Type: image/gif');\n readfile(public_path() . '/email-tracker/tracking.gif');\n\n //THIS IS THE SCRIPT FOR THE ACTUAL TRACKING\n // $date = date('Y-m-d H:i:s', $_SERVER['REQUEST_TIME']);\n // $txt = $date.\",\". $_SERVER['REMOTE_ADDR'];\n // $myfile = file_put_contents('log.txt', $txt.PHP_EOL , FILE_APPEND);\n exit; \n }", "title": "" }, { "docid": "3e7b0e52ea45a30994fd29b770230f50", "score": "0.5412098", "text": "function add_email($which,$address) {\r\n $this->emails[$which] = $address;\r\n }", "title": "" }, { "docid": "6f804c74cb0955b9b91b2534473156e5", "score": "0.53933746", "text": "public function sendEmailVerificationNotification()\n {\n $this->notify(new MyEmailVerification());\n }", "title": "" }, { "docid": "6f56411a6c435f17e15cc8a2a1396f5c", "score": "0.5391032", "text": "function add_email($which, $address){\r\n $this->emails[$which]=$address;\r\n }", "title": "" }, { "docid": "154621140f94aefa4dd47bf5fff3d3d9", "score": "0.53897446", "text": "public function add() {\n\t\t\n\t\t$email = Input::get('email');\n\t\n\t\tif($this->check($email)){\n\t\t\t\n\t\t\n\t\t} else {\n\t\t\n\t\t\tDB::table('invite_requests')->insert(\n\t\t\t\tarray(\n\t\t\t\t'ir_email' => $email,\n\t\t\t\t'requested_at' => date('d M Y H:i:s', time())\n\t\t\t\t)\n\t\t\t);\t\t\t\n\t\t\n\t\t}\t\n\t\t\n\t}", "title": "" }, { "docid": "4fa7983d14ba6aa3120d67fb8c805fcc", "score": "0.5350933", "text": "function addTrack(){\n $sql = \"insert into tracking(cust_id, runner_status, shipping_status, shipping_address) values(:cust_id, :runner_status, :shipping_status, :shipping_address)\";\n $args = [':cust_id'=>$this->cust_id, ':runner_status'=>$this->runner_status, ':shipping_status'=>$this->shipping_status, ':shipping_address'=>$this->shipping_address];\n $stmt = DB::run($sql, $args);\n $count = $stmt->rowCount();\n return $count;\n }", "title": "" }, { "docid": "07d1587590829f9c3198383ec4913e06", "score": "0.533649", "text": "function addEmail() {\n\t\t$email = new email;\n\t\t$controller = new emailsController;\n\t\t$headers = emailSectionsController::getSections('header');\n\t\t$headers[0] = 'None';\n\t\tksort($headers);\n\t\t$footers = emailSectionsController::getSections('footer');\n\t\t$footers[0] = 'None';\n\t\tksort($footers);\n\t\t$template = new template;\n\t\t$template->assignClean('_TITLE', systemSettings::get('SITENAME').' Emails Admin');\n\t\t$template->assignClean('email', $email->fetchArray());\n\t\t$template->assignClean('headers', $headers);\n\t\t$template->assignClean('footers', $footers);\n\t\t$template->assignClean('propertyMenuItem', getRequest('propertyMenuItem'));\n\t\t$template->assignClean('mode', 'add');\n\t\t$template->assignClean('admin', adminCore::getAdminUser());\n\t\t$template->setSystemDataGateway();\n\t\t$template->getSystemMessages();\n\t\t$template->display('admin/emailEdit.htm');\n\t}", "title": "" }, { "docid": "e719a135f8a5af7db8dba5e5b3515327", "score": "0.5325381", "text": "public function sendEmailVerificationNotification()\n {\n $this->notify(new EmailVerificationReceived());\n }", "title": "" }, { "docid": "f9aa79aa70d1580f3916e49d925de281", "score": "0.53229827", "text": "public function markEmailAsVerified()\n {\n $socialite = $this->userSocialites->where('type', UserSocialite::TYPE_EMAIL)->first();\n $socialite->fill(['verified_at' => now()]);\n $socialite->save();\n }", "title": "" }, { "docid": "168fb8f79cce6c8ead57170dbdbbd6ea", "score": "0.5317396", "text": "public function addTo($email)\n\t{\n\t\t$this->_recipients[] = $email;\n\t}", "title": "" }, { "docid": "903a5c8e45dff270f50bb5b342d77220", "score": "0.52906996", "text": "public function tracking_pm(Request $request)\n { $usertraking = Usertraking::where('_id',session('id_traking'))->first();\n if($request->pm=='mail')\n {\n $usertraking->mail_times=$usertraking->mail_times+1;\n $usertraking->save();\n }\n else{\n $usertraking->phone_times=$usertraking->phone_times+1;\n $usertraking->save(); }\n }", "title": "" }, { "docid": "b71ad20387f1587f3c98a991259e272d", "score": "0.5289723", "text": "function sendEmail($subject, $view, $to=null, $from = null, $fromName = null) {\n array_push($this->emails, array(\n 'subject' => $subject,\n 'view' => $view,\n 'to' => $to,\n 'from_email' => $from,\n 'from' => $fromName,\n ));\n }", "title": "" }, { "docid": "dc126320bdd23b549cb70a47748dfa5f", "score": "0.52857655", "text": "protected function updateEmailMetadata() {\n\t\tglobal $wgMemc;\n\n\t\t$key = $this->getMemcacheKey();\n\n\t\t// Store new data and make it expire in 7 days\n\t\t$wgMemc->set(\n\t\t\t$key,\n\t\t\tarray(\n\t\t\t\t'timestamp' => $this->timestamp\n\t\t\t),\n\t\t\t3600 * 24 * 7\n\t\t);\n\t}", "title": "" }, { "docid": "37321d1a8f5e96c513e477223d6c2f26", "score": "0.52580714", "text": "public function sendEmailVerificationNotification()\n {\n $this->notify(new EmailVerification($this->verification_token));\n }", "title": "" }, { "docid": "43fd062502daf56181bdc1541897beae", "score": "0.5249256", "text": "public function issueNotification($subject, $message, $recipientArray = array(\"es_it@redventures.com\"))\n {\n\n //some notification code here\n\n }", "title": "" }, { "docid": "29c9535eb05e035058f10e9f9b87ed64", "score": "0.52432454", "text": "function add_email($which, $address) {\n\t\t$this->emails[$which] = $address;\n\t}", "title": "" }, { "docid": "f35b1a13fdb65cd28abf9047c7360256", "score": "0.52368575", "text": "function add_google_analytics() {\n\t\techo '<script src=\"http://www.google-analytics.com/ga.js\" type=\"text/javascript\"></script>';\n\t\techo '<script type=\"text/javascript\">';\n\t\techo 'var pageTracker = _gat._getTracker(\"UA-XXXXX-X\");';\n\t\techo 'pageTracker._trackPageview();';\n\t\techo '</script>';\n\t}", "title": "" }, { "docid": "fa4cc50dabab4208a9f8c2f9d5ff69ba", "score": "0.5218649", "text": "function sendEmail() {\n $date = new DateTime();\n $result = $date->format('Y-m-d H:i:s');\n $params = array(\n \n \"html\" => $this->logs->email(),\n \"text\" => null,\n \"from_email\" => 'chris@ammonitenetworks.com',\n \"from_name\" => 'Chris French',\n \"subject\" => 'Acumatica To XCart Sync' . $date->format('Y-m-d H:i:s');,\n // \"to\" => array($to),\n \"to\" => $this->to,\n \"track_opens\" => true,\n \"track_clicks\" => true,\n \"auto_text\" => true \n );\n }", "title": "" }, { "docid": "414446ad96594c9d71e76d4d8736587e", "score": "0.52113074", "text": "function GETGA_add_tracking_code()\n{\n\t$getga_events = get_option('GETGA_EVENTS');\n\n\t$getga_settings = GETGA_get_advanced_settings();\n\n\tif(!empty($getga_events) && is_string($getga_events))\n\t{\n\t\t$getga_events = unserialize($getga_events);\n\t}\n\n\tif(!empty($getga_events) && is_array($getga_events))\n\t{\n\t?>\n\n<script type=\"text/javascript\">\nvar GETGA_settings = <?php echo json_encode($getga_settings);?>;\nvar GETGA_events = <?php echo json_encode($getga_events);?>;\n</script>\n<script type=\"text/javascript\" src=\"<?php echo plugins_url( 'gravitate_event_tracking.js', __FILE__ );?>?v=<?php echo GETGA_VERSION;?>\"></script>\n\n<?php\n\t}\n}", "title": "" }, { "docid": "b6310e38c1e0f9fdaa067bea0d8eca84", "score": "0.5208273", "text": "private function add_security_info(sb_Email &$email) {\n\n $email->body .= \"\\n\\nFor security purposes the following information was recorded: \\nSending IP: \".$this->remote_addr.\" \\nSending Host: \".$this->http_host;\n\n if(!empty($email->body_HTML)) {\n $email->body_HTML .= '<br /><br /><span style=\"font-size:10px;color:#BCBCBC;margin-top:20px;\">For security purposes the following information was recorded: <br />Sending IP:'.$this->remote_addr.' <br />Sending Host: '.$this->http_host.'</span>';\n }\n }", "title": "" }, { "docid": "b8fde6eddc1e10be1e3d84cf1e42d18f", "score": "0.52068174", "text": "public function sendEmail(): string\n {\n // 2. Map to interests\n // 3. Build email\n // 4. Send email\n }", "title": "" }, { "docid": "fbfc8cfd6279af01f4e20f2e9dd15646", "score": "0.5201861", "text": "function mailjet_add_sender($sender_email, $force = false){\n\n\t$status = mailjet_sender_status($sender_email);\n\n\tif ($status==\"active\") return $status; // active\n\tif ($status AND !$force) return $status; // pending\n\n\t// si le sender n'est pas dans la liste ou en attente\n\t$mj = mailjet_api();\n\n\t// ajouter un sender\n\t$params = array(\n\t\t'method' => 'POST',\n\t\t'email' => $sender_email,\n\t);\n\n\t$res = (array)$mj->userSenderadd($params);\n\tif (!isset($res['status']) OR $res['status']!=='OK') return null;\n\treturn mailjet_sender_status($sender_email);\n\n}", "title": "" }, { "docid": "6d120e4d6632a01fcc49b46f96529d19", "score": "0.5201284", "text": "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail);\n }", "title": "" }, { "docid": "6d120e4d6632a01fcc49b46f96529d19", "score": "0.5201284", "text": "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail);\n }", "title": "" }, { "docid": "6d120e4d6632a01fcc49b46f96529d19", "score": "0.5201284", "text": "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail);\n }", "title": "" }, { "docid": "6d120e4d6632a01fcc49b46f96529d19", "score": "0.5201284", "text": "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail);\n }", "title": "" }, { "docid": "6d120e4d6632a01fcc49b46f96529d19", "score": "0.5201284", "text": "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail);\n }", "title": "" }, { "docid": "85281af966d0390425702a4eabd6f6a7", "score": "0.51959866", "text": "public function tracked_data() {\n\t\tdo_action( 'eddeet/trakcked_data', $this->get_tracking_data() );\n\n\t\tEDD()->session->set( 'eddeet_track_data', array() );\n\t}", "title": "" }, { "docid": "eeadc039455ba0ae12af4a047537d2c7", "score": "0.519197", "text": "public function tracking_code() {\n\t\techo ( new TrackingCodeHelper() )->render();\n\t}", "title": "" }, { "docid": "e11caa2012aa7674f6c5ec7c33d86d39", "score": "0.51782894", "text": "function add_google_analytics() {\n\techo '<script src=\"http://www.google-analytics.com/ga.js\" type=\"text/javascript\"></script>';\n\techo '<script type=\"text/javascript\">';\n\techo 'var pageTracker = _gat._getTracker(\"UA-XXXXX-X\");'; // replace with own Analytics tracking number\n\techo 'pageTracker._trackPageview();';\n\techo '</script>';\n}", "title": "" }, { "docid": "f429cea2cf6c24aba68a86477641c852", "score": "0.5177229", "text": "private function send_notification_email( $email_details ) {\n\n\t\t$changed = $email_details[0] + $email_details[1] + $email_details[2];\n\n\t\tif ( ! $changed ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$nc = ITSEC_Core::get_notification_center();\n\n\t\tif ( $nc->is_notification_enabled( 'digest' ) ) {\n\t\t\t$nc->enqueue_data( 'digest', array( 'type' => 'file-change' ) );\n\t\t}\n\n\t\tif ( $nc->is_notification_enabled( 'file-change' ) ) {\n\t\t\t$mail = $this->generate_notification_email( $email_details );\n\t\t\t$nc->send( 'file-change', $mail );\n\t\t}\n\t}", "title": "" }, { "docid": "65ce28bd72aece388c50d603a39215f6", "score": "0.5153291", "text": "private function getTracker($address, $emailId)\n {\n return '<img src=\"http:localhost:8000/app_dev.php/tracking/' .\n $emailId . '/' .\n $address .\n '.png\" alt=\"logo\" width=\"1\" height=\"1\"/>'\n ;\n }", "title": "" }, { "docid": "ec2fcb4ea8fbbfdc433aa723f6e81f97", "score": "0.5150738", "text": "function trackerSetup() {\n\t\treturn array(\n\t\t\t'Tracking'=>'turn tracking on/off'\n\t\t);\n\t}", "title": "" }, { "docid": "a6636977eb6a0f3ce32ba504981c9863", "score": "0.51454467", "text": "public function add_shipping_tracking_number_post()\n\t{\n\t\t$id = $this->input->post('id', true);\n\t\t$order_product = $this->order_model->get_order_product($id);\n\t\tif (!empty($order_product)) {\n\t\t\t$this->order_model->add_shipping_tracking_number($id);\n\t\t}\n\t\tredirect($this->agent->referrer());\n\t}", "title": "" }, { "docid": "a0fe653a442ba90bc38ba49598cbd703", "score": "0.5144778", "text": "public function add($recipient, $template, $vars = array(), $attachments = null);", "title": "" }, { "docid": "725d13c2eda8c252d05c068f25c6581b", "score": "0.51444554", "text": "function sendEmail($emailValues, $returnHTML = false){\n\t\n\t// Are we going to track that email ?\n\t$trackEmail = ( isset($emailValues['trackEmail'])?$emailValues['trackEmail']:true );\t\t\t\n\n\t\n\tif($returnHTML == true){\n\t\t$emailValues['returnHTML'] = true;\n\t\t$emailHtml = new \\App\\Mail\\EmailBasic($emailValues);\n\t\treturn $emailHtml;\n\t}else{\n\t\t$sysLog = new sysMailLog;\n if (is_array($emailValues['to'])) {\n $toEmails = implode (\",\", $emailValues['to'] );\n }\n else {\n $toEmails = $emailValues['to'];\n }\n\t\t$sysLog->email = isset($emailValues['to'])?$toEmails:'';\n //$sysLog->email = '';\n\t\t$sysLog->name = isset($emailValues['name'])?$emailValues['name']:'';\n\t\t$sysLog->message = isset($emailValues['msg'])?$emailValues['msg']:'';\n\t\t$sysLog->subject = isset($emailValues['subject'])?$emailValues['subject']:'';\n\t\t$sysLog->fromEmail = isset($emailValues['fromAddress'])?$emailValues['fromAddress']:config('mail.from.address');\n\t\t$sysLog->fromName = config('mail.from.name');\n\t\t$sysLog->save();\n\n\t\t$lastInsertedId = $sysLog->id ;\n\n\t\t// do we want to track to see if the user open the email ?\n\t\tif($trackEmail == true){\n\n\t\t\t\t$hash = md5(config('vidalFramework.preSalt') .$lastInsertedId .config('vidalFramework.postSalt') );\n\t\t\t\t// Create Tracking Image\n\t\t\t\t$emailValues['trackingImage'] = \"<img src='\".url(\"/\").\"/timg/$lastInsertedId/$hash' width='0px' height='0px' alt='' border='' /> \";\n\n\t\t}\n\n\t\t\n\t\t$to = $emailValues['to'];\n //$cc = (isset($emailValues['ccAddress'])?$emailValues['ccAddress']:null);\n //$cc = $emailValues['ccAddress'];\n //dd($cc);\n //$cc = ['kenblanck@comcast.net','kenblanck@gmail.com'];\n if(isset($emailValues['ccAddress'])) {\n $cc = $emailValues['ccAddress'];\n Mail::to($to)->cc($cc)->send(new \\App\\Mail\\EmailBasic($emailValues));\n }\n else {\n Mail::to($to)->send(new \\App\\Mail\\EmailBasic($emailValues));\n }\n\n\t\treturn true;\n\t}\n\t\n\t\n\t\n}", "title": "" }, { "docid": "674c20a8b6740498856c09978d432bca", "score": "0.514173", "text": "public function sendEmailVerificationNotification()\n {\n $this->notify(new Notifications\\VerifyEmail);\n }", "title": "" }, { "docid": "674c20a8b6740498856c09978d432bca", "score": "0.514173", "text": "public function sendEmailVerificationNotification()\n {\n $this->notify(new Notifications\\VerifyEmail);\n }", "title": "" }, { "docid": "6367ce6262aa6fff1bc22c0604a918d8", "score": "0.51414233", "text": "function add_google_analytics() {\n\techo '<script src=\"http://www.google-analytics.com/ga.js\" type=\"text/javascript\"></script>';\n\techo '<script type=\"text/javascript\">';\n\techo 'var pageTracker = _gat._getTracker(\"UA-XXXXX-X\");';\n\techo 'pageTracker._trackPageview();';\n\techo '</script>';\n}", "title": "" }, { "docid": "39bb3f68842e337298259770e7670912", "score": "0.5141332", "text": "function send_response_notification()\n {\n \t$this->email->initialize($this->set_email_configs());\n\n\t\t$this->email->set_newline(\"\\r\\n\");\n\n \t$this->email->from('brianbirir1985@gmail.com', 'Risk Register Test');\n\t\t$this->email->to('brianbirir@gmail.com');\n\t\t$this->email->subject('Risk Response Notification');\n\t\t$this->email->message('Your risk reponse is due 20th August 2018');\n\t\t$this->email->send();\n\n\t\techo $this->email->print_debugger(array('headers','subject','body'));\n }", "title": "" }, { "docid": "64625ed86d204b4efa0ca09c05c37534", "score": "0.51302993", "text": "public function add_report_sender_link() {\n\t\t\t?>\n\t\t\t<a href=\"#\" class=\"button confirm\">Report as Spam</a>\n\t\t\t<?php\n\t\t}", "title": "" }, { "docid": "a8320719b6ab80a92fbc0aec90ca119e", "score": "0.5129386", "text": "public function setNewEmail()\n {\n $this->email = new Mail(); \n }", "title": "" }, { "docid": "286f111fdbe4e9f55f80daacba59f75a", "score": "0.5127614", "text": "public function onSendEmail()\n\t{\n\t\t$this->user = Auth::getUser();\n\n\t\tif (session_status() == PHP_SESSION_NONE)\n\t\t\tsession_start();\n\t\t$graph = new Graph();\n\t\t$graph->setAccessToken($_SESSION['access_token']);\n\t\t$me = $this->getMe();\n\n\t\t//Create a new sender object\n\t\t$sender = new Model\\Recipient();\n\t\t$sEmail = new Model\\EmailAddress();\n\t\t$sEmail->setName($me->getGivenName());\n\t\t$sEmail->setAddress($this->user->email);\n\t\t$sender->setEmailAddress($sEmail);\n\t\t\n\t\t//Create a new recipient object\n\t\t$recipient = new Model\\Recipient();\n\t\t$rEmail = new Model\\EmailAddress();\n\t\t$rEmail->setAddress($_POST['input_email']);\n\t\t$recipient->setEmailAddress($rEmail);\n\n\t\t//Set the body of the message\n\t\t$body = new Model\\ItemBody();\n\t\t$body->setContent($_POST['input_body']);\n\t\t$body->setContentType(Model\\BodyType::HTML);\n\n\t\t//Create a new message\n\t\t$mail = new Model\\Message();\n\t\t$mail->setSubject($_POST['input_subject'])\n\t\t\t ->setBody($body)\n\t\t\t ->setSender($sender)\n\t\t\t ->setFrom($sender)\n\t\t\t ->setToRecipients(array($recipient));\n\n\t\t//Send the mail through Graph\n\t\t$request = $graph->createRequest(\"POST\", \"/me/sendMail\")\n\t\t\t\t\t\t ->attachBody(array (\"message\" => $mail));\n\t\t$request->execute();\n\n\n\t\t//Return to the email view\n\t\treturn Redirect::to('/mail');\n\t}", "title": "" }, { "docid": "8817ea06928ad82d7fcdd50982a8edbc", "score": "0.51226234", "text": "function add_google_analytics() {\n ?>\n<script>\n(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');\n\nga('create', 'UA-37505502-1', 'auto');\nga('send', 'pageview');\n\n</script>\n <?php\n}", "title": "" }, { "docid": "b4a42d158be9dbace8c1c8bd7bd82820", "score": "0.51207703", "text": "public function newMatchesEmailsTracking()\n\t{\n\t\t$newMatchesEmailsMAILERObj = new new_matches_emails_MAILER();\n\t\t$fields = \"SUM( USER10 !=0 ) AS 10_MATCH,SUM( USER9 !=0 ) AS 9_MATCH,SUM( USER8 !=0 ) AS 8_MATCH,SUM( USER7 !=0 ) AS 7_MATCH, SUM( USER6 !=0) AS 6_MATCH,SUM( USER5 !=0 ) AS 5_MATCH,SUM( USER4 !=0 ) AS 4_MATCH,SUM( USER3 !=0 ) AS 3_MATCH,SUM( USER2 !=0 ) AS 2_MATCH,SUM( USER1 !=0 ) AS 1_MATCH\";\n\t\t$result = $newMatchesEmailsMAILERObj->getMailerProfiles($fields,\"1\",\"0\",\"\",'Y');\n\t\tif(is_array($result))\n\t\t{\n\t\t\t$sub = 0;\n\t\t\t$sum = 0;\n\t\t\tforeach($result as $k=>$v)\n\t\t\t{\n\t\t\t\t$param[$k] = $v-$sub;\n\t\t\t\t$sum += $param[$k];\n\t\t\t\t$sub = $v;\n\t\t\t}\n\t\t\t$param[\"PROFILES_MAIL_SENT\"]=$sum;\n\t\t\t$matchAlertTrackingObj=new MATCHALERT_TRACKING_NEW_MATCHES_EMAILS_TRACKING();\n \t$matchAlertTrackingObj->updateNewMatchesTracking($param);\n\t\t}\n\t}", "title": "" }, { "docid": "1063f1ccdb3d6096958f65a40163dc0a", "score": "0.51159734", "text": "public function updateEmailWithPending()\n {\n $this->email = $this->getPendingEmail();\n $this->save();\n\n $this->bit->email_change_time = null;\n $this->bit->email_change_new = null;\n $this->bit->save();\n }", "title": "" }, { "docid": "837eeec3ae541d72eceee8cad548a9d3", "score": "0.511071", "text": "public static function enable_google_notification() {\n\t\tself::$google_notification_enabled = true;\n\t}", "title": "" }, { "docid": "58af751d68a143f8707c93d255dd0de5", "score": "0.51038945", "text": "public function addEmail($id) {\r\n\t\t\r\n\t\t$this->copyFrom('POST',function($val) {\r\n\t\t\treturn array_intersect_key($val, array_flip(array('subject','content','toid')));\r\n\t\t});\r\n\t\t\r\n\t\t$this->fromid = $id;\r\n\t\t\r\n\t\t$this->save();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "fb78faca7f6faf14a2205bc8b6dd6047", "score": "0.5098371", "text": "abstract function sender_email();", "title": "" }, { "docid": "e5e8b7cb6aaab80c5eea683cf74e689a", "score": "0.50899607", "text": "public function AfterSendEMailSuccess()\n {\n }", "title": "" }, { "docid": "52914f8c1073f5c7903c76efb4acf122", "score": "0.5077249", "text": "public function add_invitation_meta(){\n\t\tglobal $invites_template;\n\t\t$invite = $invites_template->invite;\n\n\t\t$invite_sent = $invites_template->invite->user->invite_sent;\n\t\tif ( $invite_sent ) {\n\t\t\t$invited_date = date( \"m-d-Y\", strtotime( $invites_template->invite->user->date_modified ) );\n\t\t\techo '<br /><span class=\"invite-status meta\">Invited ' . $invited_date . '</span>';\n\t\t} else {\n\t\t\techo '<br /><span class=\"invite-status meta alert\">Invitation has not yet been sent.</span>';\n\t\t}\n\n\t}", "title": "" }, { "docid": "7b38ea65cf9587021ba25058829b011e", "score": "0.50707495", "text": "function user_notification_email($email,$user) {\n\t$protocol_content = (Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://';\n\t$link=$protocol_content.$_SERVER['HTTP_HOST'];\n\t$sub=\"Thank You For Registration\";\n\t$vars = array(\n\t '{firstname}' => $user['fname'], \n\t\t\t'{lastname}' => $user['lname'], \n\t\t\t'{email}' => $email,\n\t\t\t'{passwd}'=> $user['pass']\n\t);\n $id_lang = (int)Configuration::get('PS_LANG_DEFAULT');\n\t\tMail::Send($id_lang, 'account',$sub, $vars, $email);\n}", "title": "" }, { "docid": "b909378139cce79f8acf54a2ecddf794", "score": "0.5068982", "text": "public function sendEmailVerificationNotification()\n {\n $this->notify(new AbyssUserVerifyEmail);\n }", "title": "" }, { "docid": "3a1d6939e8c9c67eae7ec695d88120bd", "score": "0.50653267", "text": "protected function add_notification() {\n\t\t$notification_center = Yoast_Notification_Center::get();\n\t\t$notification_center->add_notification( $this->get_notification() );\n\t}", "title": "" }, { "docid": "afd157cd9b32dcca34e970454fe2e4fe", "score": "0.5062464", "text": "public function onEmailGenerate(EmailSendEvent $event)\n {\n $content = $event->getSubject();\n $content .= $event->getContent(true);\n $content .= $event->getPlainText();\n $tokenList = $this->getConverter()->findAndReplace($content);\n if (count($tokenList)) {\n $event->addTokens($tokenList);\n unset($tokenList);\n }\n\n }", "title": "" }, { "docid": "bc488059a4d3c9df9d0b714098a80282", "score": "0.5062176", "text": "function sendMailing()\n {\n\t\tif ((count($this->emailUsers)>0) && $this->emailSubject && $this->emailBody){\n\t\t\tif ($this->addTime){\n\t\t\t\t//append timestamp logic to the email \n\t\t\t\t$additionalString = \"\\n\"; \n\t\t\t\t$additionalString .=\"This emai was sent on \".date('l jS Y', $this->timestamp);\n\t\t\t\t$this->emailBody .= $additionalString;\n\t\t\t}\n\n\t\t\tforeach($this->emailUsers as $emailUser){\t\t\n\t\t\t\tmail($emailUser, $this->emailSubject, $this->emailBody); \n\t\t\t\t$this->logEmail($emailUser, $this->emailSubject);\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "25bc79c6ff206fe9cc53280122af640f", "score": "0.50490856", "text": "protected function push()\n {\n $this->session->flash('flash.alerts', $this->notifies);\n }", "title": "" }, { "docid": "c4a7b55b77141dceca3ed2ec41731a91", "score": "0.5046846", "text": "function add_analytics() { ?>\n <script async src=\"https://www.googletagmanager.com/gtag/js?id=UA-124425793-1\"></script>\n <script>\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', 'UA-124425793-1');\n </script>\n <?php\n}", "title": "" }, { "docid": "0a08026d7bafee8ff271a8d05ceac517", "score": "0.503288", "text": "public function ConnectActiveEmail($view,$data,$companyID,$body){\n\t\t$config = self::CheckCategoryConfiguration(true,SiteIntegration::$emailtrackingSlug,$companyID);\n\t\t\n\t\tswitch ($config->Slug){\n\t\t\tcase SiteIntegration::$imapSlug:\n\t\t\t$config = SiteIntegration::CheckIntegrationConfiguration(true,SiteIntegration::$imapSlug,$companyID);\n \t\t if(Imap::CheckConnection($config->EmailTrackingEmail,$config->EmailTrackingServer,$config->EmailTrackingPassword)){\n\t\t\t \t$this->TrackingEmail = Imap;\n\t\t\t }\n \t break;\n\t\t}\t\n\t}", "title": "" }, { "docid": "45ffdbf921e3b3dbf949a03a1d3f6057", "score": "0.50124806", "text": "function sale_notification_email_to_customer($email_to)\n {\n $system_url = base_url();\n $system_name = $this->db->get_where('settings', array(\n 'type' => 'company_name'\n ))->row()->description;\n $email_sub = \"New Purchase\";\n $email_to = $email_to;\n $email_msg = \"Thanks for purchasing from \" . $system_name . \".<br \\>\";\n $email_msg .= \"Check the purchase informations \" . $system_url;\n }", "title": "" }, { "docid": "d45198e449260f57fbee38854f1bf0a8", "score": "0.50066245", "text": "function purchase_notification_email_to_admin()\n {\n $system_url = base_url();\n $email_sub = \"New Purchase\";\n $email_to = $this->db->get_where('admin', array(\n 'admin_id' => 1\n ))->row()->email;\n $email_msg = \"A new purchase has been made.<br \\>\";\n $email_msg .= \"Please check the purchase \" . $system_url;\n $this->do_email($email_msg, $email_sub, $email_to);\n }", "title": "" }, { "docid": "834dea4f729213465a6de99499bb9722", "score": "0.50037736", "text": "public function sendEmailVerificationNotification()\n {\n $this->notify(new QueuedVerifyEmail);\n }", "title": "" }, { "docid": "834dea4f729213465a6de99499bb9722", "score": "0.50037736", "text": "public function sendEmailVerificationNotification()\n {\n $this->notify(new QueuedVerifyEmail);\n }", "title": "" }, { "docid": "de1132cb6641cb98ae5988a438495391", "score": "0.5000362", "text": "public function afterCreate()\n {\n $this->getDI()\n ->getMail()\n ->send([\"admin@gamanads.com\" => \"Admin GamanAds\"],\"New Adspace\", 'newadspace',\n [ 'emailBody'=> \"New Adspace : <b>$this->ad_url</b> from Client Id : <b>$this->client_id</b> Client Name: <b>$this->client_name</b>\"]);\n }", "title": "" }, { "docid": "4747b10def432bebeff2ab42cd999c95", "score": "0.49981984", "text": "private function schedule_send() {\n\t\t// We send once a week (while tracking is allowed) to check in, which can be used to determine active sites\n\t\tadd_action( 'edd_weekly_scheduled_events', array( $this, 'fes_send_checkin' ) );\n\t}", "title": "" }, { "docid": "2e46935936976f8d7a7d8318f8841a50", "score": "0.49928263", "text": "private function log(): void\n\t{\n\t\t$db_data = array();\n\t\t$db_data[\"mail\"] = $this->address;\n\t\t$db_data[\"send_debug\"] = $this->sendDebug;\n\t\t$db_data[\"subject\"] = $this->subject;\n\t\t$db_data[\"message\"] = $this->message;\n\t\t$db_data[\"sent_status\"] = $this->sent_status;\n\t\t$db_data[\"send_type\"] = $this->send_type;\n\t\t$db_data[\"extra_log\"] = $this->extra_log;\n\t\t$this->database::insert(\"mail_log\", $db_data);\n\t}", "title": "" }, { "docid": "11a90c121b12e66976b8b9a317acd86c", "score": "0.4984003", "text": "function GATrackingCode()\n {\n $request = $this->request;\n $order = $request->requestVar(\"order\");\n $tracking_code = '';\n if (isset($order) && $order == \"complete\") {\n //add GA tracking script\n $page = SummitPage::get()->byID($this->ID);\n if ($page && !empty($page->GAConversionId)\n && !empty($page->GAConversionLanguage)\n && !empty($page->GAConversionFormat)\n && !empty($page->GAConversionColor)\n && !empty($page->GAConversionLabel)\n ) {\n $tracking_code = $this->renderWith(\"SummitPage_GA\", array(\n \"GA_Data\" => new ArrayData(array(\n \"GAConversionId\" => $page->GAConversionId,\n \"GAConversionLanguage\" => $page->GAConversionLanguage,\n \"GAConversionFormat\" => $page->GAConversionFormat,\n \"GAConversionColor\" => $page->GAConversionColor,\n \"GAConversionLabel\" => $page->GAConversionLabel,\n \"GAConversionValue\" => $page->GAConversionValue,\n \"GARemarketingOnly\" => $page->GARemarketingOnly ? \"true\" : \"false\",\n ))\n ));\n }\n }\n return $tracking_code;\n }", "title": "" }, { "docid": "e282b8d51ab6ad61e095613256ed1692", "score": "0.49839562", "text": "function after_create(){\n $membre=User::find($this->follower_id);\n Notification::create(\n array(\n 'user_id' => $membre->id,\n 'to_user_id' => $this->followed_id,\n 'content' => $membre->name().' vous suit',\n 'picture' => $membre->picture,\n 'action' => 'timeline.php?id='.$membre->id,\n 'status' => 0,\n 'model' => 'Follower',\n 'record' => $this->id\n )\n );\n }", "title": "" }, { "docid": "197cc3b2d85f0a7ce8b08aa80c70338e", "score": "0.49773368", "text": "function bogoblast_mail_add_meta_box() {\n add_meta_box('sent_mail_details', 'Mail Details', array(&$this, 'bogoblast_mail_show_meta_box'), 'bogoblast_mail', 'normal', 'high');\n }", "title": "" }, { "docid": "846d47267eafb9e816b04c6c6949812e", "score": "0.49588257", "text": "protected function write_email ()\n {\n $this->optimal_click(Yii::app()->params['test_mappings']['icons']['mail']);\n $this->optimal_click(\"xpath=(//*[contains(text(),'новое письмо')])\");\n }", "title": "" }, { "docid": "5999d14ef50ef614b4084433d47d17f7", "score": "0.49546745", "text": "public function setTrackingNumber($value) {\n\t\t$this->tracking_number = $value;\n\t}", "title": "" }, { "docid": "d75b09dbc07fe5c9884cda8c71616166", "score": "0.49504897", "text": "public function sendNotification()\n {\n foreach ($this->config as $key => $val) {\n if ($this->model->status == $key) {\n //get the emails to notify\n $settings = \\Yii::$app->settings;\n $emailsToNotify = $settings->get($val, 'app');\n $emailsToNotify = explode(\"\\r\\n\", $emailsToNotify);\n $emailsToNotify = array_filter($emailsToNotify);//remove empty\n $leadLink = Html::a(\"Click the link to open the record\", Url::toRoute('/record/update/' . $this->model->id, true));\n /* @var $mailer Mailer */\n $mailer = \\Yii::$app->mailer;\n if (!empty($emailsToNotify)) {\n $mailer->compose()\n ->setFrom('crmbuild@whitecollarclaim.co.uk')\n ->setTo($emailsToNotify)\n ->setSubject('Lead sent to ' . $key)\n ->setHtmlBody($leadLink)\n ->send();\n }\n\n }\n }\n }", "title": "" }, { "docid": "d94677699d04e89bbce0b6091c22528a", "score": "0.49484286", "text": "function display_cabbagecms_settings_message_google() {\n\n echo \"Enter the tracking ID (UA-XXXXXXXX-X) and site verification codes\";\n\n}", "title": "" }, { "docid": "37796c9ae2af0fc02e787c0a4c728eff", "score": "0.49440897", "text": "function contact_form_ga_tracker() {\n ?>\n <script type=\"text/javascript\">\n\n if (document.getElementsByClassName(\"wpcf7-mail-sent-ok\").length) {\n ga( 'send', 'event', 'Contact Form', 'submit' );\n }\n\n </script>\n <?php\n}", "title": "" }, { "docid": "d5cff9c8d66fac37b4296f02b23d07d3", "score": "0.49402443", "text": "private function _track()\n {\n if (empty($this->responseTime)) {\n $this->_calculateFooterMetrics();\n }\n if (empty($GLOBALS['current_user']->id)) {\n return;\n }\n\n\n $trackerManager = TrackerManager::getInstance();\n\n if(!$trackerManager->isPaused())\n {\n // Track performance\n if ($performanceMonitor = $trackerManager->getMonitor('tracker_perf')) {\n $performanceMonitor->setValue('server_response_time', $this->responseTime);\n $dbManager = DBManagerFactory::getInstance();\n $performanceMonitor->db_round_trips = $dbManager->getQueryCount();\n $performanceMonitor->setValue('date_modified', TimeDate::getInstance()->nowDb());\n $performanceMonitor->setValue('db_round_trips', $dbManager->getQueryCount());\n $performanceMonitor->setValue('files_opened', $this->fileResources);\n if (function_exists('memory_get_usage')) {\n $performanceMonitor->setValue('memory_usage', memory_get_usage());\n }\n\n $trackerManager->saveMonitor($performanceMonitor);\n }\n\n SugarApplication::trackSession();\n }\n }", "title": "" }, { "docid": "e675902c7dc4511f4145bfd9af22efe7", "score": "0.493499", "text": "public function addNotification($subject, $message, $accountID)\n\t\t{\n\t\t\t$notification = self::model('Notification');\n\t\t\t$notification->set($subject, $message, $accountID);\n\n\t\t\t$notification->Subject = $notification->_subject;\n\t\t\t$notification->Message = $notification->_message;\n\t\t\t$notification->Recipient = $notification->_recipient;\n\t\t\t$notification->Date = $notification->_date;\n\t\t\t$notification->Read = $notification->_read;\n\t\t\t$notification->save();\n\t\t}", "title": "" }, { "docid": "0eaee4a17ef448d4e88c75aae809b6ed", "score": "0.4934804", "text": "private function clientTrackAction()\n {\n if(isset($_POST['sendReminder']))\n {\n $clientID = $_POST['clientID'];\n $this->main_model->setSelectFields(array('ID', 'StatusID', 'Email'));\n $monthlyEquipData = $this->GetMonthlyClient($clientID);\n if(count($monthlyEquipData) > 0)\n {\n $data['equipData'] = array();\n foreach($monthlyEquipData as $client)\n {\n $email = $client->Email; //client email\n if(count($client->Equipment) > 0)\n {\n foreach($client->Equipment as $equip)\n {\n $data['equipData'][$equip->PlantDescription] = date('F d Y', strtotime($equip->InspectionDate));\n\n //insert an equipment status\n $insertData = array(\n 'EquipmentID' => $equip->ID,\n 'ClientID' => $client->ID,\n 'StatusID' => 8 //set to Inspection Reminder Sent\n );\n $this->main_model->insert('tbl_possible_inspection', $insertData);\n }\n }\n $data['clientID'] = $clientID;\n $emailMessage = $this->load->view('emailMessages/reminder/first_reminder_view', $data,true);\n $this->sendmail($emailMessage, $email); ;\n }\n }\n $this->data['_pageLoad'] = 'client/success/action_success_view';\n $this->load->view('main_view', $this->data);\n }\n }", "title": "" }, { "docid": "2cd85dc53932f1f63a9de8805472f9aa", "score": "0.49314", "text": "private function add_reminder_send_time($args){\n\t\textract($args);\n\t\tif(count($reminder_notification) > 0){\n\t\t\t$this->delete_event_reminders($id);\n\t\t\tforeach($reminder_notification as $key=>$value){\t\t\t\n\t\t\t\tswitch($value){\n\t\t\t\t\tcase \"1hourbefore\":\n\t\t\t\t\t\t$reminder_send_time = $event_begin_date_time - 3600;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"1daybefore\":\n\t\t\t\t\t\t$reminder_send_time = $event_begin_date_time - 86400;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"1weekbefore\":\n\t\t\t\t\t\t$reminder_send_time = $event_begin_date_time - 604800;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t$sql = \"INSERT INTO `\".$this->reminders.\"` (`event`,`reminder_notification`,`reminder_send_time`) VALUES ('$id','$value','$reminder_send_time')\";\n\t\t\t\t\n\t\t\t\tmysql_query($sql);\n\t\t\t}\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "3f1da355d3733c749cd34ac272435b9a", "score": "0.49173087", "text": "public function beforeSendPerformed(\\Swift_Events_SendEvent $event)\n {\n $message = $event->getMessage();\n\n // Create the trackers\n $this->createTrackers($message);\n\n // Purge old records\n $this->purgeOldRecords();\n }", "title": "" }, { "docid": "d51fa263f1ca95d574568ab873e6f86d", "score": "0.49169725", "text": "public function add_email(){\n if(isset($_POST['email'])){\n $arr=array(\n // 'name' => $_POST['name'],\n 'email' => $_POST['email'],\n // 'content' => $_POST['content'],\n 'time' => time()\n );\n $item = $this->system_model->getFirstRowWhere('emails',array('email',$_POST['email']));\n if(!empty($item)){\n $this->system_model->Update_where('emails',array('if',$item->id),$arr);\n }\n else{\n $this->system_model->Add('emails',$arr);\n }\n $this->session->set_flashdata(\"mess\", \"Email của bạn đăng ký thành công!\");\n redirect($_SERVER['HTTP_REFERER']);\n }\n }", "title": "" }, { "docid": "b4968a0c5d24dcbeab714ed57d2b96ea", "score": "0.49093944", "text": "public function enable_tracking() {\r\n $result = array();\r\n $postdata = file_get_contents(\"php://input\");\r\n $org_data = json_decode($postdata);\r\n if (isset($org_data->org_id) && !empty($org_data->org_id)) {\r\n $org_id = (int) $org_data->org_id;\r\n } else {\r\n $org_id = 0;\r\n }\r\n if (isset($org_data->enable_tracking) && !empty($org_data->enable_tracking)) {\r\n $enable_tracking = 1;\r\n $url = site_url('track') . '/' . $org_id;\r\n $url = str_replace('partner_project/', '', $url);\r\n } else {\r\n $enable_tracking = 0;\r\n $url = \"\";\r\n }\r\n $attributes = array(\r\n \"public_tracking\" => $enable_tracking\r\n );\r\n if ($this->organisation_model->is_admin($org_id)) {\r\n\r\n if ($this->organisation_model->edit_organisation($attributes, $org_id)) {\r\n $result['status'] = 1;\r\n $result['tracking'] = $url;\r\n if ($enable_tracking) {\r\n $result['msg'] = lang('enable_tracking_suc');\r\n } else {\r\n $result['msg'] = lang('disable_tracking_suc');\r\n }\r\n $result['class'] = \"alert-success\";\r\n } else {\r\n $result['status'] = 0;\r\n $result['class'] = \"alert-danger\";\r\n $result['msg'] = lang('try_again');\r\n }\r\n } else {\r\n $result['status'] = 0;\r\n $result['class'] = \"alert-danger\";\r\n $result['msg'] = lang('try_again');\r\n }\r\n echo json_encode($result, JSON_NUMERIC_CHECK);\r\n exit();\r\n }", "title": "" }, { "docid": "4edfc3caba30fced4bf6b839ba627b85", "score": "0.4901793", "text": "function add_google_analytics() { \n\t\n\techo '<script type=\"text/javascript\">';\n\techo '//<![CDATA[';\n\techo \"\\r\\n\";\n\techo \"(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\";\n\techo \"(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\";\n\techo \"m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\";\n\techo \"})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\";\n\techo \"\\r\\n\";\n\techo \"ga('create', 'UA-54281483-1', 'auto');\";\n\techo \"ga('send', 'pageview');\";\n\techo \"\\r\\n\";\n\techo '//]]>';\n\techo '</script>';\n\n}", "title": "" }, { "docid": "ceb9ffee96de3c4668f41edabcde937d", "score": "0.48975602", "text": "public function save_before() {\n\n\t\t$headers = explode( $this->mailcatcher->get_line_ending(), $this->mailcatcher->createHeader() );\n\t\t$attachments = count( $this->mailcatcher->getAttachments() );\n\t\t$people = $this->get_people();\n\t\t$email_id = 0;\n\n\t\ttry {\n\t\t\t$email = new Email();\n\t\t\t$email\n\t\t\t\t->set_subject( $this->mailcatcher->Subject )\n\t\t\t\t->set_people( $people )\n\t\t\t\t->set_headers( array_filter( $headers ) )\n\t\t\t\t->set_attachments( $attachments )\n\t\t\t\t->set_mailer( Options::init()->get( 'mail', 'mailer' ) )\n\t\t\t\t->set_status( Email::STATUS_UNSENT )\n\t\t\t\t->set_initiator();\n\n\t\t\tif ( wp_mail_smtp()->pro->get_logs()->is_enabled_content() ) {\n\t\t\t\t$email\n\t\t\t\t\t->set_content_plain( $this->mailcatcher->ContentType === 'text/plain' ? $this->mailcatcher->Body : $this->mailcatcher->AltBody )\n\t\t\t\t\t->set_content_html( $this->mailcatcher->ContentType !== 'text/plain' ? $this->mailcatcher->Body : '' );\n\t\t\t}\n\n\t\t\t$email_id = $email->save()->get_id();\n\t\t} catch ( \\Exception $e ) { // phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedCatch\n\t\t\t// Do nothing for now.\n\t\t}\n\n\t\t// Return the state.\n\t\treturn $email_id;\n\t}", "title": "" }, { "docid": "f90823e639ed99fdb4e02003b1021050", "score": "0.48964235", "text": "function sale_notification_email_to_admin()\n {\n $system_url = base_url();\n $email_sub = \"New Purchase\";\n $email_to = $this->db->get_where('admin', array(\n 'admin_id' => 1\n ))->row()->email;\n $email_msg = \"A new sale has been made.<br \\>\";\n $email_msg .= \"Please check the sale \" . $system_url;\n $this->do_email($email_msg, $email_sub, $email_to);\n }", "title": "" }, { "docid": "88231a5cb41cebe809402dd941f963e9", "score": "0.48893708", "text": "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail($this->customer_nr));\n }", "title": "" }, { "docid": "c868c4ff22cf3b2f469b23dfb2d441cb", "score": "0.48875254", "text": "function store_recipient_email_in_cart($cart_item_data, $product_id )\r\n\t{\r\n\t\tif(isset($_REQUEST['recipient-email']))\r\n\t\t{\r\n\t\t\t$cart_item_data['recipient_email'] = $_REQUEST['recipient-email'];\r\n\t\t\t//every add is a unique line item\r\n\t\t\t$cart_item_data['unique_key'] = md5(microtime().rand());\r\n\t\t}\r\n\t\treturn $cart_item_data;\r\n\t}", "title": "" }, { "docid": "a441bd6da58bb5556266ffe0652eee3e", "score": "0.48860225", "text": "function send_email($to,$subject,$body,$registration=1,$send=\"LIVE\")\n {\n //add content to db\n $insert_email=mysql_query(\"insert into Email (emailAddress,emailSubject,emailBody,ipAddress) values ('\".addslashes($to).\"','\".addslashes($subject).\"','\".addslashes($body).\"','\".$_SERVER[\"REMOTE_ADDR\"].\"')\") or die(mysql_error());\n $insert_ID=mysql_insert_id();\n //only actually send if live\n if ($send==\"LIVE\")\n {\n //send the email\n $headers=\"MIME-Version: 1.0\\r\\nContent-type: text/html; charset=iso-8859-1\\r\\n\";\n $headers=$headers.\"From: lovevideotours.com Contact Form <contactfrom@lovevideotours.com> \\r\\n\";\n if (mail($to,$subject,$body,$headers))\n {\n //echo \"Success\";\n $update=mysql_query(\"update EmailSent set success=1 where emailSentID=\".$insert_ID);\n }\n else\n {\n //echo \"Fail\";\n $update=mysql_query(\"update EmailSent set success=0 where emailSentID=\".$insert_ID);\n }\n }\n }", "title": "" } ]
692b4ee6da612adcd33969cfc4c3717c
Ensures that the given subtree exists
[ { "docid": "3e223e266c5b1b189931f0a7f059711b", "score": "0.54326016", "text": "protected function ensureSubTreeExists(array $subTree = []): void {\n\n\t\t\t$path = $this->baseDir();\n\t\t\tforeach ($subTree as $segment) {\n\t\t\t\t$path .= \"/{$segment}\";\n\n\t\t\t\t$this->ensureDirectoryExists($path);\n\t\t\t}\n\t\t}", "title": "" } ]
[ { "docid": "352629ba52e66a79f04e1f466abe1ec3", "score": "0.61066127", "text": "function checkTree()\n\t{\n\t\t$this->content_object->checkTree();\n\t}", "title": "" }, { "docid": "fd4f8aa57aefb59729f49d03dc61cf30", "score": "0.57849026", "text": "function hasChildren();", "title": "" }, { "docid": "b719e8ba06dddbb8a90ae9e69fc62162", "score": "0.5677351", "text": "public function hasChildren();", "title": "" }, { "docid": "b719e8ba06dddbb8a90ae9e69fc62162", "score": "0.5677351", "text": "public function hasChildren();", "title": "" }, { "docid": "b719e8ba06dddbb8a90ae9e69fc62162", "score": "0.5677351", "text": "public function hasChildren();", "title": "" }, { "docid": "b719e8ba06dddbb8a90ae9e69fc62162", "score": "0.5677351", "text": "public function hasChildren();", "title": "" }, { "docid": "b719e8ba06dddbb8a90ae9e69fc62162", "score": "0.5677351", "text": "public function hasChildren();", "title": "" }, { "docid": "62597282e25e68e4a87d0cd01d9d549c", "score": "0.56521636", "text": "public function verify_tree()\n\t{\n\t\tforeach ($this->get_scopes() as $scope)\n\t\t{\n\t\t\tif ( ! $this->verify_scope($scope->scope))\n\t\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "e83bc5e4b08c067d749af9f6048f8dcc", "score": "0.5602175", "text": "public function verify_tree()\n\t{\n\t\tforeach ($this->get_scopes() as $scope)\n\t\t{\n\t\t\tif ( ! $this->verify_scope($scope->{$this->scope_column}))\n\t\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "8df93acb32e74edbf131e55e55f735b7", "score": "0.541172", "text": "public abstract function hasChildNodes();", "title": "" }, { "docid": "7ea7c0a08cde64874ad09bbf00fdbc9c", "score": "0.5350289", "text": "abstract public function nodeExists( $nodeId );", "title": "" }, { "docid": "26a7c8672b1feaaeca54ea43795ee9b4", "score": "0.532923", "text": "public function testNodeExists()\n {\n $dag = new DirectedAcyclicGraph();\n $dag->addNode('1');\n\n // Node exists.\n PHPUnit_Framework_Assert::assertTrue($dag->nodeExists('1'));\n\n // Node does not exist.\n PHPUnit_Framework_Assert::assertFalse($dag->nodeExists('2'));\n\n }", "title": "" }, { "docid": "25e1c2d70abb4ca1d6826e3bfc9d07d5", "score": "0.523065", "text": "public function hasNode(/*# string */ $nodeName)/*# : bool */;", "title": "" }, { "docid": "ecec45e9dd231583f380671c6b94252b", "score": "0.5200515", "text": "public function hasParent();", "title": "" }, { "docid": "eb3b28e42967b43fc11c3479b40eb757", "score": "0.5159359", "text": "private function _validateModelParentsExist() {\n foreach($this->_query['contain'] as $node){\n if(!isset($this->_params['schema'][$node]['parent']) \n || in_array($this->_params['schema'][$node]['parent'], $this->_query['contain'])\n || $this->_params['schema'][$node]['parent'] == $this->_params['name']\n ){\n continue;\n }\n\n $this->_query['contain'][] = $this->_params['schema'][$node]['parent'];\n $this->_validateModelParentsExist($this->_query['contain']);\n }\n }", "title": "" }, { "docid": "12c23593161ee650312c0677c6418b1b", "score": "0.5127678", "text": "abstract public function hasChildNodes( $nodeId );", "title": "" }, { "docid": "fb0c9cdccf3269dc99d486b0e804c207", "score": "0.51257885", "text": "public function hasNode(string $name): bool;", "title": "" }, { "docid": "fb0c9cdccf3269dc99d486b0e804c207", "score": "0.51257885", "text": "public function hasNode(string $name): bool;", "title": "" }, { "docid": "2f8150d697ca44a78f6eddcf6f6d8101", "score": "0.50771964", "text": "function test_register_hierarchical_taxonomy() {\n\t\t$tax = rand_str();\n\t\t$this->assertFalse( taxonomy_exists( $tax ) );\n\n\t\tregister_taxonomy( $tax, 'post', array( 'hierarchical' => true ) );\n\t\t$this->assertTrue( taxonomy_exists( $tax ) );\n\t\t$this->assertTrue( is_taxonomy_hierarchical( $tax ) );\n\n\t\t// clean up\n\t\tunset( $GLOBALS['wp_taxonomies'][ $tax ] );\n\t}", "title": "" }, { "docid": "626b4219c2b4f097602338dd76e9f009", "score": "0.50449085", "text": "public function testAttachDoesNothingForExistingDescendant()\n {\n $this->relation->shouldReceive('newPivotStatementForId')->andReturn($this->oneCount)->once();\n\n verify($this->relation->attach($this->childNode))->isEmpty();\n }", "title": "" }, { "docid": "1ee288739808969e3a8255e2db16d4b6", "score": "0.50384754", "text": "function static_check_children_tree(ElggObject $entity, $tree_guid = 0) {\n\t\n\tif (empty($entity) || !elgg_instanceof($entity, \"object\", \"static\")) {\n\t\treturn false;\n\t}\n\t\n\t$tree_guid = sanitise_int($tree_guid, false);\n\tif (empty($tree_guid)) {\n\t\t$tree_guid = $entity->getGUID();\n\t}\n\t\n\t$options = array(\n\t\t\"type\" => \"object\",\n\t\t\"subtype\" => \"static\",\n\t\t\"owner_guid\" => $entity->getOwnerGUID(),\n\t\t\"container_guid\" => $entity->getGUID(),\n\t\t\"limit\" => false\n\t);\n\t\n\t// ignore access for this part\n\t$ia = elgg_set_ignore_access(true);\n\t\n\t$batch = new ElggBatch(\"elgg_get_entities\", $options);\n\tforeach ($batch as $static) {\n\t\t\n\t\t// remove old tree\n\t\tremove_entity_relationships($static->getGUID(), \"subpage_of\");\n\t\t\n\t\t// add new tree\n\t\tadd_entity_relationship($static->getGUID(), \"subpage_of\", $tree_guid);\n\t\t\n\t\t// check children\n\t\tstatic_check_children_tree($static, $tree_guid);\n\t}\n\t\n\t// restore access\n\telgg_set_ignore_access($ia);\n\t\n\treturn true;\n}", "title": "" }, { "docid": "7badd212b643890d57179e4761a51409", "score": "0.501286", "text": "public function exists($root, $path);", "title": "" }, { "docid": "b28a0d662c194b2241d5e88fae9e1998", "score": "0.49446958", "text": "public function testHoldsLockUnexistingNode()\n {\n $this->expectException(PathNotFoundException::class);\n\n $this->lm->holdsLock('/some-unexisting-node');\n }", "title": "" }, { "docid": "718ad012485501be01116963e802f5e0", "score": "0.49300984", "text": "public function hasChildren()\n {\n return (($this->getRightValue() - $this->getLeftValue() ) >1 ); \n }", "title": "" }, { "docid": "468f1370df03b1c15d6a1c07c51bfd5d", "score": "0.48947084", "text": "public function hasChildren ($allow_links = false) {}", "title": "" }, { "docid": "468f1370df03b1c15d6a1c07c51bfd5d", "score": "0.48947084", "text": "public function hasChildren ($allow_links = false) {}", "title": "" }, { "docid": "783b5b917f8d4e3083cc27a0775e0bb6", "score": "0.48942342", "text": "function _mpx_taxonomy_check_empty_taxonomy($vid) {\n $tree = taxonomy_get_tree($vid);\n if(count($tree))\n return false;\n else\n return true;\n}", "title": "" }, { "docid": "15d98c18bab43514b82542416a2c33ba", "score": "0.4889993", "text": "public function hasChildren()\n {\n return Node::mainCache(function () {\n return Node::find()\n ->andWhere([\n 'parent_id' => $this->id,\n ])\n ->exists();\n });\n }", "title": "" }, { "docid": "67aca59dce902a4cd34cb8a9f8c00d43", "score": "0.48827794", "text": "public function hasChildNodes()\n {\n return $this->tree->hasChildNodes( $this->id );\n }", "title": "" }, { "docid": "7118287705e09faca6cd47a596fcd7be", "score": "0.4876855", "text": "public function isRoot();", "title": "" }, { "docid": "7118287705e09faca6cd47a596fcd7be", "score": "0.4876855", "text": "public function isRoot();", "title": "" }, { "docid": "7118287705e09faca6cd47a596fcd7be", "score": "0.4876855", "text": "public function isRoot();", "title": "" }, { "docid": "7118287705e09faca6cd47a596fcd7be", "score": "0.4876855", "text": "public function isRoot();", "title": "" }, { "docid": "7118287705e09faca6cd47a596fcd7be", "score": "0.4876855", "text": "public function isRoot();", "title": "" }, { "docid": "7118287705e09faca6cd47a596fcd7be", "score": "0.4876855", "text": "public function isRoot();", "title": "" }, { "docid": "15f892a59d13071ff7570e01baae4d09", "score": "0.48630163", "text": "function isRoot();", "title": "" }, { "docid": "cbd196cabe8a42012a6db6ef0acb36c8", "score": "0.4857283", "text": "protected function hasChildren()\n {\n return $this->left && $this->right;\n }", "title": "" }, { "docid": "0875381a33d951dbaca448eb21d40ffd", "score": "0.4849799", "text": "public function canContain($tagName){\n\t\t$thisInfo = self::getTagTypeInfo($this->realTagName);\n\t\t$tagName = BBCodeAliasses::getRealTagFor($tagName);\n\t\t$tagInfo = self::getTagTypeInfo($tagName);\n\t\treturn (\n\t\t\t\t$thisInfo[\"allowedChildren\"] === true ||\n\t\t\t\tin_array($tagInfo[\"type\"], $thisInfo[\"allowedChildren\"]) ||\n\t\t\t\tin_array($tagName, $thisInfo[\"allowedChildren\"])\n\t\t\t) && (\n\t\t\t\t$tagInfo[\"allowedParents\"] === true ||\n\t\t\t\tin_array($thisInfo[\"type\"], $tagInfo[\"allowedParents\"]) ||\n\t\t\t\tin_array($this->realTagName, $tagInfo[\"allowedParents\"])\n\t\t\t) &&\n\t\t\t(\n\t\t\t\t$thisInfo[\"allowedChildren\"] === true ||\n\t\t\t\t!in_array(\"!\" . $tagName, $thisInfo[\"allowedChildren\"])\n\t\t\t) &&\n\t\t\t(\n\t\t\t\t$tagInfo[\"allowedParents\"] === true ||\n\t\t\t\t!in_array(\"!\" . $this->realTagName, $tagInfo[\"allowedParents\"])\n\t\t\t)\n\t\t;\n\t}", "title": "" }, { "docid": "4400866968794c0cc2b1c73d2c9f556f", "score": "0.484713", "text": "public function isEmpty(): bool\n {\n return empty($this->tree);\n }", "title": "" }, { "docid": "420dcd7351805a862ea5320f0d7dac50", "score": "0.48201382", "text": "function testGetChildren(){\n $this->_fillAnyIdTree(2);\n \n // test empty tree\n $this->assertEquals(array(),$this->baobab->getChildren(-1));\n \n $this->_fillGenericTree($this->base_tree);\n $this->assertEquals(array(2,7),$this->baobab->getChildren(1));\n }", "title": "" }, { "docid": "88ad0a9c2570d03afa7a02626bceb329", "score": "0.48087493", "text": "public function isleaf();", "title": "" }, { "docid": "01e07cdfb85d0a38004529e3120cef05", "score": "0.47989705", "text": "public function testFindInexistingDirectories()\n {\n $packages_directories_finder = new PackagesDirectoryFinder(PathBuilder::getInstance());\n $directories = $packages_directories_finder->findDirectories('Resources/Inexisting');\n\n $this->assertEmpty($directories);\n }", "title": "" }, { "docid": "cc3d59be623a4191e3628f33c07746de", "score": "0.47925204", "text": "public function hasChildren(){\n\t\treturn $this->_getResource()->getChildrenAmount($this) > 0;\n\t}", "title": "" }, { "docid": "9a52266369d97e99f0602e3b7a1ee199", "score": "0.47806352", "text": "public function hasChildren(){\n\t\tif(!isset($this->children)){\n\t\t\treturn false;\n\t\t}\n\t\telseif(empty($this->children)){\n\t\t\t$this->removeChildren();\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "c3c51ec94f96b61137f0491403913bef", "score": "0.47581688", "text": "public function hasChildren()\n {\n return \\count($this->getChildren()) > 0;\n }", "title": "" }, { "docid": "eb8072052bece81ba70c1edbada21ab0", "score": "0.4752965", "text": "function hasChildren()\n {\n return sizeof($this->getChildren());\n }", "title": "" }, { "docid": "4487482161272b2a98eced1092056645", "score": "0.47512332", "text": "function testGetDescendants(){\n $this->_fillAnyIdTree(2);\n \n // test empty tree\n $this->assertEquals(array(),$this->baobab->getDescendants());\n \n $this->_fillGenericTree($this->base_tree);\n \n $this->assertEquals(array(1,2,3,4,6,7),$this->baobab->getDescendants());\n $this->assertEquals(array(4,6),$this->baobab->getDescendants(3));\n $this->assertEquals(array(),$this->baobab->getDescendants(-1));\n }", "title": "" }, { "docid": "2e15f7608dd199b71965a8346e97caf4", "score": "0.4747437", "text": "function tskHasChildren($id) {\r\n $database = stlGlobal('database');\r\n $database->query(\" \r\n SELECT count(*) as count\r\n FROM \r\n tasks\r\n WHERE \r\n parent_id = ? \r\n \");\r\n $database->bind(1, $id);\r\n $row = $database->single();\r\n return $row['count'] > 0 ? true : false ;\r\n}", "title": "" }, { "docid": "3fa4d259bff24d884c0c26ee76a02171", "score": "0.4744497", "text": "public function isRoot(): bool;", "title": "" }, { "docid": "3c560869b3113381b39ab7f7f8ba6633", "score": "0.47420457", "text": "function testinsertBeforeUnexistentId(){\n $this->_fillAnyIdTree(2);\n \n $this->baobab->appendChild();\n \n try {\n $this->baobab->insertBefore(100);\n $this->fail(\"was expecting an NodeNotFound Exception to be raised\");\n } catch (Exception\\NodeNotFound $e) {\n // do nothing\n }\n }", "title": "" }, { "docid": "21d500150fb4e8a5ae824b575d679678", "score": "0.47419542", "text": "public function testNoChildren()\n {\n $dom = new DOMDocument;\n $dom->loadXML('<test>text</test>');\n $root = $dom->documentElement;\n $ret = XML::childCount($root);\n PHPUnit_Framework_Assert::assertEquals(0, $ret);\n\n }", "title": "" }, { "docid": "02384e3047dbf4b45a42b7021e434709", "score": "0.4741043", "text": "public function hasChildren()\n {\n $current = $this->current();\n return ! empty( $current['children'] );\n }", "title": "" }, { "docid": "3cad99e01e04aaf986dc3149345db475", "score": "0.47407013", "text": "public function hasChildren(): bool\n {\n $iterator = $this->getChildren();\n $iterator->rewind();\n\n return $iterator->valid();\n }", "title": "" }, { "docid": "7e2670a6a86602026ebb2d49823aebf7", "score": "0.47324398", "text": "public function test_in_tree() {\n global $CFG, $DB;\n $this->resetAfterTest();\n\n $CFG->enableavailability = true;\n $generator = $this->getDataGenerator();\n\n $stru1 = (object)['op' => '|', 'show' => true,\n 'c' => [(object)['type' => 'relativedate', 'n' => 1, 'd' => 1, 's' => 1]]];\n $stru2 = (object)['op' => '|', 'show' => true,\n 'c' => [(object)['type' => 'relativedate', 'n' => 2, 'd' => 2, 's' => 2]]];\n $stru3 = (object)['op' => '|', 'show' => true,\n 'c' => [(object)['type' => 'relativedate', 'n' => 3, 'd' => 3, 's' => 3]]];\n $stru4 = (object)['op' => '|', 'show' => true,\n 'c' => [(object)['type' => 'relativedate', 'n' => 4, 'd' => 4, 's' => 3]]];\n $stru5 = (object)['op' => '|', 'show' => true,\n 'c' => [(object)['type' => 'relativedate', 'n' => 5, 'd' => 5, 's' => 5]]];\n $stru6 = (object)['op' => '|', 'show' => false,\n 'c' => [(object)['type' => 'relativedate', 'n' => 5, 'd' => 5, 's' => 5]]];\n $tree1 = new \\core_availability\\tree($stru1);\n $tree2 = new \\core_availability\\tree($stru2);\n $tree3 = new \\core_availability\\tree($stru3);\n $tree4 = new \\core_availability\\tree($stru4);\n $tree5 = new \\core_availability\\tree($stru5);\n $tree6 = new \\core_availability\\tree($stru6);\n\n $course = $generator->create_course(['startdate' => time(), 'enddate' => time() + 7 * WEEKSECS]);\n $user = $generator->create_user();\n $generator->enrol_user($user->id, $course->id, $DB->get_field('role', 'id', ['shortname' => 'student']));\n $info = new \\core_availability\\mock_info($course, $user->id);\n\n list($sql, $params) = $tree1->get_user_list_sql(false, $info, false);\n $this->assertEquals('', $sql);\n $this->assertEquals([], $params);\n $this->assertContains('From 1 hour after', $tree1->get_full_information($info));\n $this->assertContains('Until 2 days before course end date', $tree2->get_full_information($info));\n $this->assertContains('From 3 weeks after user enrolment date', $tree3->get_full_information($info));\n $this->assertContains('From 4 months after user enrolment date', $tree4->get_full_information($info));\n $this->assertEquals('Not available unless: ', $tree5->get_full_information($info));\n $this->assertFalse($tree1->is_available_for_all());\n $this->assertFalse($tree2->is_available_for_all());\n $this->assertFalse($tree3->is_available_for_all());\n $this->assertFalse($tree4->is_available_for_all());\n $this->assertFalse($tree5->is_available_for_all());\n $this->assertFalse($tree6->is_available_for_all());\n $this->assertFalse($tree1->check_available(false, $info, false, 0)->is_available());\n $this->assertFalse($tree1->check_available(false, $info, false, $user->id)->is_available());\n $this->assertFalse($tree2->check_available(false, $info, false, $user->id)->is_available());\n $this->assertFalse($tree3->check_available(false, $info, false, $user->id)->is_available());\n $this->assertFalse($tree4->check_available(false, $info, false, $user->id)->is_available());\n $this->assertFalse($tree5->check_available(false, $info, false, $user->id)->is_available());\n $this->assertFalse($tree6->check_available(false, $info, false, $user->id)->is_available());\n $this->assertTrue($tree1->check_available(true, $info, false, 0)->is_available());\n $this->assertTrue($tree1->check_available(true, $info, false, $user->id)->is_available());\n $this->assertTrue($tree2->check_available(true, $info, false, $user->id)->is_available());\n $this->assertTrue($tree3->check_available(true, $info, false, $user->id)->is_available());\n $this->assertTrue($tree4->check_available(true, $info, false, $user->id)->is_available());\n $this->assertFalse($tree5->check_available(true, $info, false, $user->id)->is_available());\n $this->assertFalse($tree6->check_available(true, $info, false, $user->id)->is_available());\n }", "title": "" }, { "docid": "729d5e3324f525bed00ff1cf14724674", "score": "0.47320065", "text": "function addGrandChild($son){//funcion recursiva.\r\n global $array_grand_child,$tablas_sku;\r\n foreach ($tablas_sku as $n_tabla => $a_tabla) {\r\n if($a_tabla['dep']==$son){//agregamos nieto y buscamos bisnieto y tataranietos...\r\n ## OjO CON LAS MAYUSCULAS y MINUSCULAS (METODO: in_array las distingue)\r\n if(!in_array($n_tabla,$array_grand_child)) {\r\n $array_grand_child[]=$n_tabla;\r\n addGrandChild($n_tabla); // recursivamente buscamos dependientes de este dependiente\r\n }\r\n }\r\n }\r\n}", "title": "" }, { "docid": "0fe57e534f7b6dad55be52a8f5c0eb8c", "score": "0.47201654", "text": "function hasAncestor($plugin_id);", "title": "" }, { "docid": "bdbee28d681656ca990c8f92220855f5", "score": "0.4706291", "text": "public function hasChildren()\n {\n return false;\n }", "title": "" }, { "docid": "203bc6fbac2886ce3a522283e3e98235", "score": "0.47003207", "text": "function _leftandright_taxonomy_insert($array){\n // we have to do some calculating.\n foreach($array['parent'] as $parent_tid){\n $result = db_query('SELECT lft,rgt FROM {leftandright} WHERE tid = %d', $parent_tid);\n $row = db_fetch_array($result);\n if($row && $row['lft']+1 == $row['rgt']){\n // We have no siblings, lft and rgt are easy to set\n $lft_position = $row['lft']+1;\n } else {\n // We have siblings, so lets get the previous sibling (or parent)\n // to set the correct leftandright\n $result = db_query('SELECT tid FROM {term_data} WHERE tid IN (SELECT tid FROM {term_hierarchy} WHERE parent = %d) AND vid = %d ORDER BY weight ASC, name', $parent_tid, $array['vid']);\n $previous_sibling = FALSE;\n while($row = db_fetch_array($result)){\n if($row['tid'] == $array['tid']){\n // We should now have the previous sibling\n break;\n }\n $previous_sibling = $row['tid'];\n }\n if($previous_sibling){\n // Get the right of this sibling, then we set out leftandright\n // relative to that\n $result = db_query('SELECT rgt AS leftof FROM {leftandright} WHERE tid = %d', $previous_sibling); \n } else {\n // Else it's the left of the parent.\n $result = db_query('SELECT lft AS leftof FROM {leftandright} WHERE tid = %d', $parent_tid);\n }\n $row = db_fetch_array($result);\n $lft_position = $row['leftof']+1;\n }\n db_query('UPDATE {leftandright} SET rgt = rgt+2 WHERE rgt >= %d AND vid = %d', $lft_position, $array['vid']);\n db_query('UPDATE {leftandright} SET lft = lft+2 WHERE lft >= %d AND vid = %d', $lft_position, $array['vid']);\n $result = db_query('SELECT depth FROM {leftandright} WHERE tid = %d', $parent_tid);\n $row = db_fetch_array($result);\n if($row){\n $depth = $row['depth'] + 1;\n } else {\n $depth = 0;\n }\n db_query('INSERT INTO {leftandright} (lft, rgt, depth, tid, vid) VALUES (%d, %d, %d, %d, %d)', $lft_position, $lft_position+1, $depth, $array['tid'], $array['vid']);\n }\n}", "title": "" }, { "docid": "34b3a54ae16a81f5463244f66f541e76", "score": "0.46940118", "text": "private function resolveHasChildren(Row $row)\n {\n $queryBuilder = new QueryBuilder($this->qomFactory);\n\n $queryBuilder\n ->select('node', 'jcr:uuid', 'uuid')\n ->from($this->qomFactory->selector('node', 'nt:unstructured'))\n ->where($this->qomFactory->childNode('node', $row->getPath()))\n ->setMaxResults(1);\n\n $result = $queryBuilder->execute();\n\n return \\count(\\iterator_to_array($result->getRows())) > 0;\n }", "title": "" }, { "docid": "4cd58ae74663e8c30896e2adbaa522f9", "score": "0.46914998", "text": "public function checkingEntryExistence()\n {\n $definitionManager = new DefinitionManager();\n $definitionManager->add(new ValueDefinition('foo', 'bar'));\n $container = new Container($definitionManager);\n\n $this->assertTrue($container->has('foo'));\n $this->assertFalse($container->has('other'));\n\n $container->has(001);\n }", "title": "" }, { "docid": "2c2280d73ef9652b486e011d07daad05", "score": "0.46829155", "text": "public function hasChildren(): bool\n {\n return $this->children()->count() > 0;\n }", "title": "" }, { "docid": "34068781fa12d55c21f786c9b8718981", "score": "0.4674453", "text": "public function treempCheckForLoop() {\n\t\t$parentField = $this->parentField;\n\n\t\treturn $this->owner->$parentField != $this->originalParentId && $this->treempIsAncestor($this->owner->$parentField, false);\n\t}", "title": "" }, { "docid": "8fd6181b3fa2cef915c38b994c417668", "score": "0.4669053", "text": "function is_tree($pid) { // $pid = The ID of the page we’re looking for pages underneath\nglobal $post; // load details about this page\n$anc = get_post_ancestors( $post->ID );\nforeach($anc as $ancestor) {\nif(is_page() && $ancestor == $pid) {\nreturn true;\n}\n}\nif(is_page()&&(is_page($pid)))\nreturn true; // we’re at the page or at a sub page\nelse\nreturn false; // we’re elsewhere\n}", "title": "" }, { "docid": "5e924558f8270ed947fc272a4dcaac34", "score": "0.46580774", "text": "public function hasChildren() {\n\t\treturn !empty($this->arrayChildrenNodes);\n\t}", "title": "" }, { "docid": "06ffc3b50b0a6622f2fdca19ab6e956c", "score": "0.4647702", "text": "public function hasChildren()\n {\n return ! empty($this->children);\n }", "title": "" }, { "docid": "5dc3fe94cfd2a516a92230563d1af239", "score": "0.46207106", "text": "private function checkIfRequiredDirectoriesExist()\n {\n $this->ensureDirectoryExists(config(\"easy-repository.repository_directory\"));\n $this->ensureDirectoryExists(config(\"easy-repository.repository_directory\") . \"/Interfaces\");\n $this->ensureDirectoryExists(config(\"easy-repository.repository_directory\") . \"/\" . $this->getDefaultImplementation());\n }", "title": "" }, { "docid": "76525a31692f719246e7bbda0a89f728", "score": "0.4615069", "text": "function recursiveAdd(&$node, &$table)\n{\n\n\t$nodeArray = $node->getValue();\n\n\t/*switch ($nodeArray['Level']) {\n\t\tcase 0:\n\t\t\techo \"\";\n\t\t\techo $nodeArray['Description'].\"</br>\";\n\t\t\tbreak;\n\t\t\n\t\tcase 1:\n\t\t\techo \"1-> \";\n\t\t\techo $nodeArray['Description'].\"</br>\";\n\t\t\tbreak;\n\n\t\tcase 2:\n\t\t\techo \"&nbsp&nbsp&nbsp2----> \";\n\t\t\techo $nodeArray['Description'].\"</br>\";\n\t\t\tbreak;\n\n\t\tcase 3:\n\t\t\techo \"&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp3--------> \";\n\t\t\techo $nodeArray['Description'].\"</br>\";\n\t\t\tbreak;\n\n\t\tcase 4:\n\t\t\techo \"&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp4------------> \";\n\t\t\techo $nodeArray['Description'].\"</br>\";\n\t\t\tbreak;\t\n\t\t\n\n\t\tdefault:\n\t\t\t# code...\n\t\t\tbreak;\n\t}*/\n\n\tforeach ($table as $index => $row) {\n\t\t\n\t\tif ($row['Parent_ID']==$nodeArray['ID']) {\n\t\t\t\n\t\t\t//Add the found row as a child\n\t\t\t$child = new Node($row);\n\t\t\t$node->addChild($child);\n\t\t\t\n\t\t\t//Remove it from the table as it can't be the child of any other node after this\n\t\t\tunset($table[$index]);\n\n\t\t\t//Call the function on the newly added node\n\t\t\trecursiveAdd($child, $table);\n\t\t} \n\t}\n\n}", "title": "" }, { "docid": "8914d63a7576ec1d8e6eb47ad3ad4794", "score": "0.46137258", "text": "public function testGetNodeParents()\n {\n }", "title": "" }, { "docid": "c387cde20fa984b7df34140bfe9b602b", "score": "0.46112424", "text": "public function valid()\n {\n if ($this->currentNode != null) return true;\n return false;\n }", "title": "" }, { "docid": "e48d54105bf24a2a9c67a3266b4ada4a", "score": "0.45972946", "text": "function _subtree($id,$termType)\r\n{\r\n global $recordArray;\r\n \r\n if (!$retXml)\r\n $retXml = new simpleXmlElement(\"<temp/>\");\r\n\r\n\r\n $term = thesaurus::get_name($id);\r\n\r\n\r\n// check if entry allready exists\r\n\r\n if (!$recordArray[$term])\r\n {\r\n//------------------------------------------------------------------------------\r\n// extract (BS) from term\r\n// and create new terms from BS clauses\r\n\r\n $uses = extract_pattern($term,\"/\\(BS[: ](?<use>.*)\\)/\");\r\n \r\n \r\n if ($uses)\r\n {\r\n// create common parameters\r\n $newArray['input.name'] = \"Thesaurus Redaktion\";\r\n $newArray['input.date'] = date(\"Y-m-d\",time());\r\n $newArray['input.time'] = date(\"h:i:s\",time());\r\n $newArray['term.type'] = $termType;\r\n $newArray['term.status'] = \"Verweisungsform\";\r\n $newArray['use'] = $term;\r\n\r\n// $newArray['broader_term'] = thesaurus::get_parent($id);\r\n\r\n// loop over uses\r\n foreach($uses as $entry)\r\n {\r\n $newArray['term'] = $entry;\r\n extract_pattern($newArray['term'],\"/\\(BS[: ](?<use>.*)\\)/\");\r\n// echoall(create_record($newArray,$termType));\r\n xml_insert($retXml->record,create_record($newArray,$termType));\r\n }\r\n }\r\n\r\n\r\n//------------------------------------------------------------------------------\r\n// insert entry\r\n xml_insert($retXml,record($id,$termType));\r\n\r\n// register new record\r\n $recordArray[$term] = $term;\r\n\r\n\r\n//------------------------------------------------------------------------------\r\n// recursion of children\r\n $children = thesaurus::get_child($id);\r\n \r\n if ($children)\r\n {\r\n foreach ($children as $entry)\r\n {\r\n //echoall($entry);\r\n // subchildren -> recursion\r\n if (count(thesaurus::get_child($entry)))\r\n {\r\n $subXml = _subtree($entry,$termType);\r\n if ($subXml)\r\n xml_insert($retXml,$subXml);\r\n }\r\n }\r\n }\r\n return ($retXml);\r\n }\r\n}", "title": "" }, { "docid": "a65109e4115ce258b3fed6d47649cc39", "score": "0.45942155", "text": "public function isLeafsOnly(): bool;", "title": "" }, { "docid": "dae72945fe4f5ec2af71224f826798c7", "score": "0.45917434", "text": "function has_children()\n{\n global $post;\n\n $pages = get_pages('child_of' . $post->ID);\n\n return count($pages); //0 evaluates to false\n}", "title": "" }, { "docid": "7962ed5218c183b8830487ce3f2651cd", "score": "0.45795166", "text": "public function hasChildren()\n {\n return !empty($this->children);\n }", "title": "" }, { "docid": "738c1aac0ab756110e0ad65c57bfcdff", "score": "0.45738557", "text": "function childExists($name) {\n\n try {\n return !!$this->getChild($name);\n } catch (NotFound $e) {\n return false;\n }\n\n }", "title": "" }, { "docid": "03488ef67fdb9308c2dc08bc50d5eec3", "score": "0.45723778", "text": "public function testGetDescendants()\n {\n $tree = new Tree(collect([\n (object) [ 'id' => 1, 'id_parent' => null ],\n (object) [ 'id' => 2, 'id_parent' => 1 ],\n (object) [ 'id' => 3, 'id_parent' => 2 ],\n (object) [ 'id' => 4, 'id_parent' => 2 ],\n (object) [ 'id' => 5, 'id_parent' => 2 ],\n (object) [ 'id' => 6, 'id_parent' => 4 ],\n (object) [ 'id' => 7, 'id_parent' => 6 ],\n ]));\n $branches = $tree->getLinkedBranch(Tree::TYPE_LINEAR);\n\n // Default properties (unlimited depth, don't include own branch).\n static::assertSame([ 2, 3, 4, 6, 7, 5 ], $branches->get(1)->getDescendants()->pluck('object.id')->toArray());\n static::assertSame([ 3, 4, 6, 7, 5 ], $branches->get(2)->getDescendants()->pluck('object.id')->toArray());\n static::assertSame([ ], $branches->get(3)->getDescendants()->pluck('object.id')->toArray());\n static::assertSame([ 6, 7 ], $branches->get(4)->getDescendants()->pluck('object.id')->toArray());\n static::assertSame([ ], $branches->get(5)->getDescendants()->pluck('object.id')->toArray());\n static::assertSame([ 7 ], $branches->get(6)->getDescendants()->pluck('object.id')->toArray());\n static::assertSame([ ], $branches->get(7)->getDescendants()->pluck('object.id')->toArray());\n\n // Specific properties (unlimited depth, include own branch).\n static::assertSame([ 1, 2, 3, 4, 6, 7, 5 ], $branches->get(1)->getDescendants(null, true)->pluck('object.id')->toArray());\n static::assertSame([ 2, 3, 4, 6, 7, 5 ], $branches->get(2)->getDescendants(null, true)->pluck('object.id')->toArray());\n static::assertSame([ 3 ], $branches->get(3)->getDescendants(null, true)->pluck('object.id')->toArray());\n static::assertSame([ 4, 6, 7 ], $branches->get(4)->getDescendants(null, true)->pluck('object.id')->toArray());\n static::assertSame([ 5 ], $branches->get(5)->getDescendants(null, true)->pluck('object.id')->toArray());\n static::assertSame([ 6, 7 ], $branches->get(6)->getDescendants(null, true)->pluck('object.id')->toArray());\n static::assertSame([ 7 ], $branches->get(7)->getDescendants(null, true)->pluck('object.id')->toArray());\n\n // Specific properties (limit to zero depth, basically will not returns nothing).\n static::assertSame([ ], $branches->get(1)->getDescendants(0)->pluck('object.id')->toArray());\n static::assertSame([ ], $branches->get(2)->getDescendants(0)->pluck('object.id')->toArray());\n static::assertSame([ ], $branches->get(3)->getDescendants(0)->pluck('object.id')->toArray());\n static::assertSame([ ], $branches->get(4)->getDescendants(0)->pluck('object.id')->toArray());\n static::assertSame([ ], $branches->get(5)->getDescendants(0)->pluck('object.id')->toArray());\n static::assertSame([ ], $branches->get(6)->getDescendants(0)->pluck('object.id')->toArray());\n static::assertSame([ ], $branches->get(7)->getDescendants(0)->pluck('object.id')->toArray());\n\n // Specific properties (limit to zero depth, including own branch, basically will returns only own branch).\n static::assertSame([ 1 ], $branches->get(1)->getDescendants(0, true)->pluck('object.id')->toArray());\n static::assertSame([ 2 ], $branches->get(2)->getDescendants(0, true)->pluck('object.id')->toArray());\n static::assertSame([ 3 ], $branches->get(3)->getDescendants(0, true)->pluck('object.id')->toArray());\n static::assertSame([ 4 ], $branches->get(4)->getDescendants(0, true)->pluck('object.id')->toArray());\n static::assertSame([ 5 ], $branches->get(5)->getDescendants(0, true)->pluck('object.id')->toArray());\n static::assertSame([ 6 ], $branches->get(6)->getDescendants(0, true)->pluck('object.id')->toArray());\n static::assertSame([ 7 ], $branches->get(7)->getDescendants(0, true)->pluck('object.id')->toArray());\n\n // Specific properties (limit to one depth descendant, children, basically).\n static::assertSame([ 2 ], $branches->get(1)->getDescendants(1)->pluck('object.id')->toArray());\n static::assertSame([ 3, 4, 5 ], $branches->get(2)->getDescendants(1)->pluck('object.id')->toArray());\n static::assertSame([ ], $branches->get(3)->getDescendants(1)->pluck('object.id')->toArray());\n static::assertSame([ 6 ], $branches->get(4)->getDescendants(1)->pluck('object.id')->toArray());\n static::assertSame([ ], $branches->get(5)->getDescendants(1)->pluck('object.id')->toArray());\n static::assertSame([ 7 ], $branches->get(6)->getDescendants(1)->pluck('object.id')->toArray());\n static::assertSame([ ], $branches->get(7)->getDescendants(1)->pluck('object.id')->toArray());\n\n // Specific properties (limit to two depth descendants, grandchildren, basically).\n static::assertSame([ 2, 3, 4, 5 ], $branches->get(1)->getDescendants(2)->pluck('object.id')->toArray());\n static::assertSame([ 3, 4, 6, 5 ], $branches->get(2)->getDescendants(2)->pluck('object.id')->toArray());\n static::assertSame([ ], $branches->get(3)->getDescendants(2)->pluck('object.id')->toArray());\n static::assertSame([ 6, 7 ], $branches->get(4)->getDescendants(2)->pluck('object.id')->toArray());\n static::assertSame([ ], $branches->get(5)->getDescendants(2)->pluck('object.id')->toArray());\n static::assertSame([ 7 ], $branches->get(6)->getDescendants(2)->pluck('object.id')->toArray());\n static::assertSame([ ], $branches->get(7)->getDescendants(2)->pluck('object.id')->toArray());\n }", "title": "" }, { "docid": "e84e9385c5594a1f72a9d78bcda27692", "score": "0.45692787", "text": "abstract protected function containEntry(DOMNode $node);", "title": "" }, { "docid": "fb916a689164a216787f14cb539f9332", "score": "0.4569046", "text": "public function hasChildren()\n {\n return (count($this->getChildren()) > 0);\n }", "title": "" }, { "docid": "d1d3b25b56eebf13002998d39fcc07b6", "score": "0.45677", "text": "public function hasChildren(): bool\n {\n return \\count($this->children) > 0;\n }", "title": "" }, { "docid": "1ce08b098bf99c2bc7682ded8411fd8e", "score": "0.45591158", "text": "public function hasParent(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "85c05dadc7e34c565210554fdfb31a50", "score": "0.45575342", "text": "function xarpages_treeapi_insertprep($args)\n{\n // An insertion point (an ID in the table) is required.\n // Special insertion point ID is 0, which refers to the\n // virtual root of all trees. An item can not be\n // inserted on the same level as the virtual root.\n\n extract($args);\n\n // TODO: validate params: insertpoint, offset, tablename, idname\n \n // Default operation is 'before' - i.e. put the new item in the place\n // of the insertpoint and move everything to the right one place.\n if (!xarVarValidate('enum:before:after:firstchild:lastchild', $offset, true)) {\n $offset = 'firstchild';\n }\n\n if (!isset($insertpoint)) {$insertpoint = 0;}\n if (!isset($idname)) {$idname = 'xar_id';}\n\n // Cannot insert on the same level as the virtual root.\n if ($insertpoint == 0) {\n if ($offset == 'before') {$offset = 'firstchild';}\n if ($offset == 'after') {$offset = 'lastchild';}\n }\n\n $dbconn = xarDBGetConn();\n\n $result = xarModAPIfunc(\n 'xarpages', 'tree', 'getleftright',\n array(\n 'tablename' => $tablename,\n 'idname' => $idname,\n 'id' => $insertpoint\n )\n );\n if (!$result) return;\n extract($result);\n\n // Locate the new insert point.\n if ($offset == 'before') {\n $shift = $left;\n }\n if ($offset == 'after') {\n $shift = $right + 1;\n }\n if ($offset == 'firstchild') {\n $shift = $left + 1;\n $parent = $insertpoint;\n }\n if ($offset == 'lastchild') {\n $shift = $right;\n $parent = $insertpoint;\n }\n\n // Create a space of two traversal points.\n // The new item will not have children, so the traversal\n // points will be sequential.\n $query = 'UPDATE ' . $tablename\n . ' SET xar_left = xar_left + 2 '\n . ' WHERE xar_left >= ?';\n $result = $dbconn->execute($query, array($shift));\n if (!$result) return;\n\n $query = 'UPDATE ' . $tablename\n . ' SET xar_right = xar_right + 2 '\n . ' WHERE xar_right >= ?';\n $result = $dbconn->execute($query, array($shift));\n if (!$result) return;\n\n // Return the new parent/left/right values\n return array(\n 'parent' => $parent,\n 'left' => $shift,\n 'right' => $shift + 1\n );\n}", "title": "" }, { "docid": "c1872f6c9cd063e31b08f075070999e4", "score": "0.4552988", "text": "public function isLeaf(): bool;", "title": "" }, { "docid": "c1872f6c9cd063e31b08f075070999e4", "score": "0.4552988", "text": "public function isLeaf(): bool;", "title": "" }, { "docid": "4e2522c298b813540416a186f1037001", "score": "0.4551169", "text": "public function isHierarchical(): bool\n {\n return (int)$this->getData('hierarchical') === 1;\n }", "title": "" }, { "docid": "0144fce39744b2f5533f44bda70aa81a", "score": "0.45354035", "text": "abstract public function exists ();", "title": "" }, { "docid": "dc57b3033049805ecbf70499ebdcd305", "score": "0.45343515", "text": "public function hasChildren()\n {\n return !is_null($this->children) and !empty($this->children);\n }", "title": "" }, { "docid": "e9ac0fcd8996cb322340888689e94a47", "score": "0.45330146", "text": "function testInsertChildAtIndexNotExistent(){\n $this->_fillAnyIdTree(2);\n \n $root_id=$this->baobab->appendChild();\n $this->baobab->appendChild($root_id);\n $this->baobab->appendChild($root_id);\n \n try {\n // index too high\n $this->baobab->insertChildAtIndex(1,2);\n $this->fail(\"was expecting an IndexOutOfRange Exception to be raised\");\n } catch (Exception\\IndexOutOfRange $e) {\n // do nothing\n }\n \n try {\n // index too low\n $this->baobab->insertChildAtIndex(1,-3);\n $this->fail(\"was expecting an IndexOutOfRange Exception to be raised\");\n } catch (Exception\\IndexOutOfRange $e) {\n // do nothing\n }\n }", "title": "" }, { "docid": "3f94f4597666a075a2b2fb8306489230", "score": "0.45305273", "text": "function exists(){\n }", "title": "" }, { "docid": "a62c6abcb5797fcde2a33c8912c25e97", "score": "0.45170546", "text": "public function exists(): bool\n {\n return file_exists($this->root());\n }", "title": "" }, { "docid": "ae652d61be05ff84aff7fde780fc82ff", "score": "0.45145902", "text": "protected function analyseRootNodes()\n\t{\n\t\t// Get every non-XSL element with no non-XSL ancestor. This should return us the first\n\t\t// HTML element of every branch\n\t\t$query = '//*[namespace-uri() != \"' . self::XMLNS_XSL . '\"]'\n\t\t . '[not(ancestor::*[namespace-uri() != \"' . self::XMLNS_XSL . '\"])]';\n\t\tforeach ($this->xpath->query($query) as $node)\n\t\t{\n\t\t\t// Store the root node of this branch\n\t\t\t$this->rootNodes[] = $node;\n\n\t\t\t// If any root node is a block-level element, we'll mark the template as such\n\t\t\tif ($this->elementIsBlock($node))\n\t\t\t{\n\t\t\t\t$this->isBlock = true;\n\t\t\t}\n\n\t\t\t$this->rootBitfields[] = ElementInspector::getCategoryBitfield($node);\n\t\t}\n\n\t\t// Test for non-whitespace text nodes at the root. For that we need a predicate that filters\n\t\t// out: nodes with a non-XSL ancestor,\n\t\t$predicate = '[not(ancestor::*[namespace-uri() != \"' . self::XMLNS_XSL . '\"])]';\n\n\t\t// ..and nodes with an <xsl:attribute/>, <xsl:comment/> or <xsl:variable/> ancestor\n\t\t$predicate .= '[not(ancestor::xsl:attribute | ancestor::xsl:comment | ancestor::xsl:variable)]';\n\n\t\t$query = '//text()[normalize-space() != \"\"]' . $predicate\n\t\t . '|'\n\t\t . '//xsl:text[normalize-space() != \"\"]' . $predicate\n\t\t . '|'\n\t\t . '//xsl:value-of' . $predicate;\n\n\t\t$this->hasRootText = (bool) $this->evaluate('count(' . $query . ')');\n\t}", "title": "" }, { "docid": "531741adbf3f67b3370aef6c8af199be", "score": "0.45140475", "text": "public function findNode(&$root, $path);", "title": "" }, { "docid": "46601fb759c0b2e69d902ecc92b11bd7", "score": "0.45099512", "text": "function is_tree($pid) {\n // load details about this page \n global $post; \n if(is_page()&&($post->post_parent==$pid||is_page($pid))) \n // we're at the page or at a sub page\n return true; \n else\n // we're elsewhere \n return false; \n }", "title": "" }, { "docid": "9ac5266cd1028ccfc4c926c8fc4bbe5a", "score": "0.45047748", "text": "public function hasChildren()\n {\n return \\count($this->children) > 0;\n }", "title": "" }, { "docid": "ab13267f6c192839aa0d77cf5e458077", "score": "0.45035067", "text": "public function hasChildren()\n {\n return !empty($this->children);\n }", "title": "" }, { "docid": "f71b329f8cc1303dd2346bf58845fddf", "score": "0.45032", "text": "private function childExistRecursive($child) {\n if(property_exists($child, 'children')):\n if(is_array($child->children) && count($child->children) > 0):\n foreach($child->children as $secondChild): // get all this childs and call again this function\n $this->childExistRecursive($secondChild);\n endforeach;\n else: \n return $this->childExist($child);\n endif;\n else:\n return false;\n endif;\n \n return true;\n }", "title": "" }, { "docid": "ce5648073acd7cde51fca7cf563d8164", "score": "0.45031872", "text": "private function hasChildren($node)\n {\n if (!is_string($node) && sizeof($node) > 1)\n return true;\n else\n return false;\n }", "title": "" }, { "docid": "88ba7757f7dca74c784be16b2d102a2c", "score": "0.44996545", "text": "function traverseXML($children) {\r\n foreach ($children as $child) {\r\n if ($child->nodeType == XML_ELEMENT_NODE) {\r\n $tagName = $child->tagName;\r\n $hasChild = $child->hasChildNodes();\r\n // echo\"tag name: \" . $tagName . \"<br>\";\r\n // echo\"has child; \" . $hasChild . \"<br>\";\r\n if ($tagName == \"packagedElement\") {\r\n writeXML($child);\r\n }\r\n if ($hasChild == 1) {\r\n $level1 = $child->childNodes;\r\n traverseXML($level1);\r\n }\r\n }\r\n }\r\n}", "title": "" }, { "docid": "ecfa64007fffb085f2274a6b1c39599e", "score": "0.4499176", "text": "abstract public function exists();", "title": "" }, { "docid": "ecfa64007fffb085f2274a6b1c39599e", "score": "0.4499176", "text": "abstract public function exists();", "title": "" }, { "docid": "93a1cc6ce2240c0b44093301403ebf44", "score": "0.44916874", "text": "public function hasChild()\n {\n return count($this->getChildren()) > 0;\n }", "title": "" }, { "docid": "ee6a65e7874c7971bb24cb2ba95f05fe", "score": "0.4483356", "text": "function filter_nodes($node_list, $ids=null, $subtree=true) \n{\n if ($node_list == null) {\n return null;\n }\n $nodes = $node_list;\n if ($ids == null) {\n foreach($nodes as $node) {\n if ($ids != null && in_array($ids, $node->id)) {\n return array($node);\n } \n }\n }\n\n if (!$subtree) {\n $nodes = array();\n }\n return $nodes;\n}", "title": "" } ]
90dc372236900ea4fa5e9212beb1916f
Method to filter categories based on the filter type, Product or Category.
[ { "docid": "7114f64f1f1c1cc6be2bb6ff06d2c1b8", "score": "0.0", "text": "protected function getCategoriesByType($categories, $categoryType) {\n $index = 0;\n foreach($categories->items as $category){\n if($categoryType === 'PRODUCT')\n {\n if($category->externalType === 'PRODUCT') {\n $categories->items[$index]->type = 'Product';\n $categories->items[$index]->depth = 0;\n }\n else\n unset($categories->items[$index]);\n }\n else\n {\n if(!$category->externalType || $category->externalType === 'CATEGORY') {\n $categories->items[$index]->type = 'Category';\n $categories->items[$index]->depth = 0;\n }\n else\n unset($categories->items[$index]);\n }\n $index++;\n }\n return $categories;\n }", "title": "" } ]
[ { "docid": "21aaa8b444224b954be67c76f18a7908", "score": "0.68218166", "text": "public function getCategories($filters = []);", "title": "" }, { "docid": "9d0067c10c0e364af93c01e38b778bb5", "score": "0.65360075", "text": "public function getCategoryFilters()\n\t{\n\t\treturn $this->_getFilter('category_filters');\n\t}", "title": "" }, { "docid": "5927cc45a081fc57ba19eac5f84749ed", "score": "0.6363726", "text": "public function getFilterCategoryList()\n {\n return $this->arFilterCategoryList;\n }", "title": "" }, { "docid": "8e821ef74e46d3907c87205748c8f126", "score": "0.6282728", "text": "protected function initFilterCategoryList()\n {\n $obCategoryList = CategoryCollection::make()\n ->active();\n $sFilter = Input::get('category');\n if (empty($sFilter)) {\n return;\n }\n\n $arFilterValue = explode('|', $sFilter);\n /** @var \\Lovata\\Shopaholic\\Classes\\Item\\CategoryItem $obCategoryItem */\n foreach ($obCategoryList as $obCategoryItem) {\n if (in_array($obCategoryItem->slug, $arFilterValue)) {\n $this->arFilterCategoryList[] = $obCategoryItem->id;\n }\n }\n return $this->arFilterCategoryList;\n }", "title": "" }, { "docid": "2b4206559b3e60a55ad8dabccdfe22b0", "score": "0.62445855", "text": "function product_cats_for_filters() {\n $cats_args = array(\n 'taxonomy' => 'product_cat',\n 'hide_empty' => true,\n 'orderby' => 'slug',\n 'parent' => 0,\n );\n return get_terms($cats_args);\n}", "title": "" }, { "docid": "3150aca61f065622b352430f09dca0bd", "score": "0.624161", "text": "public function filters(Request $request)\n {\n return [\n new Filters\\RezepteCategoryFilter,\n ];\n }", "title": "" }, { "docid": "d92ba664d398f7a484e094d3b14ae38f", "score": "0.6126392", "text": "public function filter(Request $request)\n {\n return Product::where('category_id', $request->data)->get();\n }", "title": "" }, { "docid": "3bc62e55949869a056b3c9d592ac0850", "score": "0.60287416", "text": "public function getFilterSearchCategories()\n {\n $html = $this->filter->getFilterCategoryData(Input::all());\n return json_encode([\n \"status\" => \"success\",\n \"html\" => $html\n ]);\n }", "title": "" }, { "docid": "64c71d46d65627a13e7201fc19155fbb", "score": "0.60273236", "text": "private function getFilters() {\n\t\tglobal $wfexploreCategoriesByLayout, $wfexploreCategories, $wfexploreDynamicsFilters, $wfexploreDynamicsFiltersByLayout;\n\n\t\tif ($this->filters !== null) {\n\t\t\treturn $this->filters;\n\t\t}\n\n\t\tif ( isset($wfexploreCategoriesByLayout) && isset($this->params['layout'])\n\t\t\t\t&& isset($wfexploreCategoriesByLayout[$this->params['layout']])) {\n\t\t\treturn $wfexploreCategoriesByLayout[$this->params['layout']];\n\t\t}\n\n\t\tif ( isset($wfexploreDynamicsFiltersByLayout) && isset($this->params['layout'])\n\t\t\t\t&& isset($wfexploreDynamicsFiltersByLayout[$this->params['layout']])) {\n\t\t\treturn $this->getDynamicsFilters($wfexploreDynamicsFiltersByLayout[$this->params['layout']]);\n\t\t}\n\n\t\t// new way do define Filters : use table $wfexploreDynamicsFilters\n\t\t// it fill the properties values automaticaly\n\t\t// TODO : apply the same for $wfexploreCategoriesByLayout\n\t\tif(isset($wfexploreDynamicsFilters)) {\n\t\t\treturn $this->getDynamicsFilters($wfexploreDynamicsFilters);\n\t\t}\n\n\t\t// old way to define filters, by setting all properties and values in $wfexploreCategories\n\t\tif (isset($wfexploreCategories) && $wfexploreCategories) {\n\t\t\treturn $wfexploreCategories;\n\t\t}\n\n\t\t// for compatibility with old versions\n\t\tif ( ! $this->isLocalised ) {\n\t\t\treturn $this->getStaticFilters();\n\t\t}\n\n\t\t// default values, should not be used for real case\n\t\t$type = $this->getValuesForProperty('Type', \"wf-propertyvalue-type-\");\n\t\t$categories = $this->getValuesForProperty('Area', \"wf-propertyvalue-area-\");\n\t\t$diff = $this->getValuesForProperty('Difficulty', \"wf-propertyvalue-difficulty-\");\n\n\t\t$fourchetteCout = array(\n\t\t\t'0-10' => '0 - 10',\n\t\t\t'10-50' => '10 - 50',\n\t\t\t'50-100' => '50 - 100',\n\t\t\t'100-inf' => '100 - ∞'\n\t\t);\n\t\t$lang = array(\n\t\t\t'ALL' => wfMessage(\"wfexplore-language-all\")\n\t\t);\n\t\t$result = array (\n\t\t\t'Type' => $type,\n\t\t\t'area' => $categories,\n\t\t\t'Difficulty' => $diff,\n\t\t\t'Cost' => $fourchetteCout,\n\t\t\t'Language' => $lang\n\t\t);\n\n\t\t$layout = isset($this->params['layout']) ? $this->params['layout'] : null;\n\n\t\tHooks::run('Explore::getFilters', [ &$result, $layout ] );\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "63e67303f4504435f90bf87ea78e1fa6", "score": "0.6001705", "text": "public function showProductsFiltered($type, $filter_id) \n\t{\t\t\n\t\treturn \\Veer\\Models\\Product::whereHas($type, function($query) use ($filter_id, $type) {\n\t\t\t\t$query->where( $type . '_id', '=', $filter_id);\n\t\t\t})->orderBy('id','desc')->with('images', 'categories')->paginate(25); \t\t\n\t}", "title": "" }, { "docid": "eaefc28d6071fecfbc091dad7fe41a70", "score": "0.5968279", "text": "public function getCategories($product);", "title": "" }, { "docid": "3eaf4d89f0f75bacb7a8e6fdf4065e3b", "score": "0.59469837", "text": "public function product_categories()\n {\n return $this->morphToMany(Term::class, 'termable')\n ->where('taxonomy', 'product_category');\n }", "title": "" }, { "docid": "b84329acd99a25987def0cfaeaac6984", "score": "0.5934675", "text": "public function categories()\n {\n $query = TblProductLines::find()->distinct(['category']);\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n 'pagination' => [\n 'pageSize' => 30,\n ],\n ]);\n $query->andFilterWhere(['=', 'Department', 'Clothing'])\n ->andFilterWhere(['=', 'Brand', 'Ducati'])->distinct('Category')\n ->groupBy(['Category']);\n\n return $dataProvider;\n }", "title": "" }, { "docid": "2a21a48f5823ac3847e14cd48b247f12", "score": "0.5893724", "text": "static function getAllPageCategories($filter)\n {\n\n $query = self::select('name', 'status', 'id as edit', 'id as delete')\n ->where('status', '!=', '2');\n\n if ($filter['search']) {\n $query->where('name', 'like', '%' . $filter['search'] . '%');\n }\n\n $query->offset($filter['start']);\n $query->limit($filter['length']);\n $query->orderBy($filter['sortBy'], $filter['sortOrder']);\n $result = $query->get();\n return $result;\n }", "title": "" }, { "docid": "4d71ade8c96b1be02a743a80adc02736", "score": "0.58780336", "text": "public function filter(Request $request) {\n //dd($request->get('categories'));\n if(!auth()->check())\n return Response::create(\"Not logged in\", 401);\n if(!$request->has('filter'))\n $filter = [];\n else\n $filter = explode(',', $request->get('filter'));\n\n\n auth()->user()->categories = $filter;\n auth()->user()->save();\n\n if(!$request->ajax())\n return redirect()->back()->with('success', 'Filter settings saved');\n\n\n return Response::create(json_encode($filter));\n }", "title": "" }, { "docid": "96c8ccf53b50a9c2eef9f46ff677c210", "score": "0.5862753", "text": "public function create(array $data) : CategoryFilter;", "title": "" }, { "docid": "4edd52d8b712a9561408e3799c6d71ee", "score": "0.5831751", "text": "protected function _addCategoryFilter()\n {\n if ($category = $this->getCategory()) {\n $this->_collection->setFlag('disable_root_category_filter', false);\n $this->_collection->addCategoryFilter($category);\n }\n return $this;\n }", "title": "" }, { "docid": "3542f3ec1f91da453e40b2f91cdc4412", "score": "0.58153474", "text": "public function prepareProductTypeFilter()\n {\n $this->productTypeFilter = $this->permitsModel->getProductTypes();\n }", "title": "" }, { "docid": "4003a4932125d8c5992e554da7d1f8e7", "score": "0.58036923", "text": "public static function getCategoryFilters()\n {\n $filterValue = self::getConfigValue('URBITINVENTORYFEED_FILTER_CATEGORIES');\n\n return $filterValue ? explode(',', $filterValue) : null;\n }", "title": "" }, { "docid": "6cc37685aec107703e579e2e75f021dc", "score": "0.5788227", "text": "public function setCategoryType($type);", "title": "" }, { "docid": "671a34143e7a7077e33a0edaebf2305f", "score": "0.578464", "text": "public function search_cate() {\n\t\tif ( ! current_user_can( 'manage_options' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tob_start();\n\n\t\t$keyword = filter_input( INPUT_GET, 'keyword', FILTER_SANITIZE_STRING );\n\n\t\tif ( empty( $keyword ) ) {\n\t\t\tdie();\n\t\t}\n\t\t$categories = get_terms(\n\t\t\tarray(\n\t\t\t\t'taxonomy' => 'product_cat',\n\t\t\t\t'orderby' => 'name',\n\t\t\t\t'order' => 'ASC',\n\t\t\t\t'search' => $keyword,\n\t\t\t\t'number' => 100\n\t\t\t)\n\t\t);\n\t\t$items = array();\n\t\tif ( count( $categories ) ) {\n\t\t\tforeach ( $categories as $category ) {\n\t\t\t\t$item = array(\n\t\t\t\t\t'id' => $category->term_id,\n\t\t\t\t\t'text' => $category->name\n\t\t\t\t);\n\t\t\t\t$items[] = $item;\n\t\t\t}\n\t\t}\n\t\twp_send_json( $items );\n\t\tdie;\n\t}", "title": "" }, { "docid": "9435baeffc105fc822c308f3126bda2a", "score": "0.57732415", "text": "private function _get_filters_section_settings() {\n\n // Get all product categories\n $taxonomies = array( 'product_cat' );\n $termArgs = array( 'hide_empty' => false );\n $productTermsObject = get_terms( $taxonomies , $termArgs );\n $productTerms = array();\n\n foreach( $productTermsObject as $term )\n $productTerms[ $term->slug ] = $term->name;\n\n foreach ( WWOF_Product_Listing_Helper::get_all_products() as $product )\n $allProducts[ $product->ID ] = '[ID : ' . $product->ID . '] ' . $product->post_title;\n\n return array(\n\n array(\n 'title' => __( 'Filters Options', 'woocommerce-wholesale-order-form' ),\n 'type' => 'title',\n 'desc' => '',\n 'id' => 'wwof_filters_main_title'\n ),\n\n array(\n 'title' => __( 'Product Category Filter' , 'woocommerce-wholesale-order-form' ),\n 'type' => 'multiselect',\n 'desc' => __( 'Only display products belonging to the selected category' , 'woocommerce-wholesale-order-form' ),\n 'desc_tip' => true,\n 'id' => 'wwof_filters_product_category_filter',\n 'class' => 'chosen_select',\n 'css' => 'min-width:300px;',\n 'custom_attributes' => array(\n 'multiple' => 'multiple',\n 'data-placeholder' => __( 'Select Some Product Categories...' , 'woocommerce-wholesale-order-form' )\n ),\n 'options' => $productTerms\n ),\n\n array(\n 'title' => __( 'Exclude Product Filter' , 'woocommerce-wholesale-order-form' ),\n 'type' => 'multiselect',\n 'desc' => __( 'Exclude selected products' , 'woocommerce-wholesale-order-form' ),\n 'desc_tip' => true,\n 'id' => 'wwof_filters_exclude_product_filter',\n 'class' => 'chosen_select',\n 'css' => 'min-width:300px;',\n 'custom_attributes' => array(\n 'multiple' => 'multiple',\n 'data-placeholder' => __( 'Select Some Products...' , 'woocommerce-wholesale-order-form' )\n ),\n 'options' => $allProducts\n ),\n\n array(\n 'type' => 'sectionend',\n 'id' => 'wwof_filters_sectionend'\n )\n\n );\n\n }", "title": "" }, { "docid": "959c182d440ecc1899322a4c87d01183", "score": "0.5763694", "text": "protected function _getFilterByType()\n {\n $type = $this->getFilterType() ? strtolower($this->getFilterType()) : strtolower($this->getType());\n $filterClass = isset($this->_filterTypes[$type]) ? $this->_filterTypes[$type] : $this->_filterTypes['default'];\n\n return $filterClass;\n }", "title": "" }, { "docid": "6e17a675821abbbf2f78ed9a0e7d0c65", "score": "0.5761666", "text": "public function prepareCategoryFilter(Varien_Event_Observer $observer)\n {\n // Retrieve filter and category from event\n $filter = $observer->getFilter();\n $category = $observer->getCategory();\n $parentCategory = $filter->getLayer()->getCurrentCategory();\n\n // Retrieve query associated with the filter\n /** @var Smile_ElasticSearch_Model_Resource_Engine_Elasticsearch_Query_Fulltext $query */\n $query = $filter->getLayer()->getProductCollection()->getSearchEngineQuery();\n\n // Append the query string for the virtual categories\n $queryString = $this->_getVirtualRule($category)->getSearchQuery();\n\n // Append the query string for the parent category : ie the current one.\n if ($parentCategory->getId() !== $category->getId()) {\n $parentCategoryQuery = $this->_getVirtualRule($parentCategory)->getSearchQuery();\n if ($parentCategoryQuery) {\n $queryString = implode(' AND ', array_filter(array_merge(array(\"(\" .$queryString . \")\"), array(\"(\" . $parentCategoryQuery . \")\"))));\n }\n $observer->getFilter()->setUseUrlRewrites(false);\n }\n\n $query->addFilter('query', array('query_string' => $queryString));\n\n // Mark filter as installed (avoid default filter behavior)\n $filter->setProductCollectionFilterSet(true);\n\n return $this;\n }", "title": "" }, { "docid": "5df1635bcdfc20524d79929c28baaf6a", "score": "0.57568973", "text": "public function getCategories();", "title": "" }, { "docid": "74874d95e1a7d2edd0feb0e194637bf6", "score": "0.57513165", "text": "public function _parserCategories()\n\t{\n\t\t// if the menu type is \"categories\" run this page\n\t\t$base_category = Category::model()->language(Yii::app()->getLanguage())->findByAttributes(array('id'=>$this->menu->types_id),'t.is_published=1');\t\n\t\t$categories = Category::model()->with(\"product\")->findAll(array('condition' => 't.parent = :parent AND t.type = \"product\"','params'=>array(':parent'=>$base_category->id)));\n\n\t\t$this->render('categories',array(\n\t\t\t'menu'=>$this->menu,\n\t\t\t'categories'=>$categories,\n\t\t));\n\t}", "title": "" }, { "docid": "5c2c1fcb500be9ca29c6155f6f780988", "score": "0.57379335", "text": "public function getCategoryType();", "title": "" }, { "docid": "9a2791cfbf6e17d65dfe564cb5acb1d6", "score": "0.57299167", "text": "public function load_product_categories() {\r\n\t\t$product_cats = array();\r\n\t\t$pcat_terms = get_terms('product_cat', 'orderby=count&hide_empty=0');\r\n\t\t\r\n\t\tforeach ($pcat_terms as $pterm) {\r\n\t\t\t$product_cats[] = array(\"id\" => $pterm->slug, \"title\" => $pterm->name);\r\n\t\t}\r\n\t\t\r\n\t\treturn apply_filters( 'wcff_product_categories', $product_cats );\r\n\t}", "title": "" }, { "docid": "3eb6e90bea3da10bd146a1ad99a826f0", "score": "0.5712331", "text": "public function getAllCategorys()\n\t\t{\n\t\t\t// getting an array that holds all the category in the database\n\t\t\t$ob = $this->getFilteredQuery(['category'], ['*'] , null, 'Category');\n\t\t\treturn $ob;\n\t\t}", "title": "" }, { "docid": "a9c92612e714637e2be8415b0fb7cc1f", "score": "0.56914204", "text": "private function getStaticFilters () {\n\n\t\t$type = array(\n\t\t\t\twfMessage( 'wfexplore-category-name-creation' )->text() => wfMessage( 'wfexplore-category-name-creation' )->text(),\n\t\t\t\twfMessage( 'wfexplore-category-name-technique' )->text() => wfMessage( 'wfexplore-category-name-technique' )->text(),\n\t\t);\n\t\t$categories = array(\n\t\t\t\twfMessage( 'wfexplore-category-name-art' )->text() => wfMessage( 'wfexplore-category-name-art' )->text(),\n\t\t\t\twfMessage( 'wfexplore-category-name-clothing-accessories' )->text() => wfMessage( 'wfexplore-category-name-clothing-accessories' )->text(),\n\t\t\t\twfMessage( 'wfexplore-category-name-decoration' )->text() => wfMessage( 'wfexplore-category-name-decoration' )->text(),\n\t\t\t\twfMessage( 'wfexplore-category-name-electronics' )->text() => wfMessage( 'wfexplore-category-name-electronics' )->text(),\n\t\t\t\twfMessage( 'wfexplore-category-name-energy' )->text() => wfMessage( 'wfexplore-category-name-energy' )->text(),\n\t\t\t\twfMessage( 'wfexplore-category-name-food-agriculture' )->text() => wfMessage( 'wfexplore-category-name-food-agriculture' )->text(),\n\t\t\t\twfMessage( 'wfexplore-category-name-furniture' )->text() => wfMessage( 'wfexplore-category-name-furniture' )->text(),\n\t\t\t\twfMessage( 'wfexplore-category-name-health-wellbeing' )->text() => wfMessage( 'wfexplore-category-name-health-wellbeing' )->text(),\n\t\t\t\twfMessage( 'wfexplore-category-name-play-recreation' )->text() => wfMessage( 'wfexplore-category-name-play-recreation' )->text(),\n\t\t\t\twfMessage( 'wfexplore-category-name-house' )->text() => wfMessage( 'wfexplore-category-name-house' )->text(),\n\t\t\t\twfMessage( 'wfexplore-category-name-machines-tools' )->text() => wfMessage( 'wfexplore-category-name-machines-tools' )->text(),\n\t\t\t\twfMessage( 'wfexplore-category-name-music-sound' )->text() => wfMessage( 'wfexplore-category-name-music-sound' )->text(),\n\t\t\t\twfMessage( 'wfexplore-category-name-play-outside' )->text() => wfMessage( 'wfexplore-category-name-play-outside' )->text(),\n\t\t\t\twfMessage( 'wfexplore-category-name-recycling-upcycling' )->text() => wfMessage( 'wfexplore-category-name-recycling-upcycling' )->text(),\n\t\t\t\twfMessage( 'wfexplore-category-name-robotics' )->text() => wfMessage( 'wfexplore-category-name-robotics' )->text(),\n\t\t\t\twfMessage( 'wfexplore-category-name-science-biology' )->text() => wfMessage( 'wfexplore-category-name-science-biology' )->text(),\n\t\t\t\twfMessage( 'wfexplore-category-name-transport-mobility' )->text() => wfMessage( 'wfexplore-category-name-transport-mobility' )->text(),\n\t\t);\n\t\t$diff = array(\n\t\t\t\twfMessage( 'wfexplore-category-name-very-easy' )->text() => wfMessage( 'wfexplore-category-name-very-easy' )->text(),\n\t\t\t\twfMessage( 'wfexplore-category-name-easy' )->text() => wfMessage( 'wfexplore-category-name-easy' )->text(),\n\t\t\t\twfMessage( 'wfexplore-category-name-medium' )->text() => wfMessage( 'wfexplore-category-name-medium' )->text(),\n\t\t\t\twfMessage( 'wfexplore-category-name-hard' )->text() => wfMessage( 'wfexplore-category-name-hard' )->text(),\n\t\t\t\twfMessage( 'wfexplore-category-name-very-hard' )->text() => wfMessage( 'wfexplore-category-name-very-hard' )->text(),\n\t\t);\n\t\t$fourchetteCout = array(\n\t\t\t\t'0-10' => '0 - 10',\n\t\t\t\t'10-50' => '10 - 50',\n\t\t\t\t'50-100' => '50 - 100',\n\t\t\t\t'100-inf' => '100 - ∞'\n\t\t);\n\t\treturn array (\n\t\t\t\t'Type' => $type,\n\t\t\t\t'area' => $categories,\n\t\t\t\t'Difficulty' => $diff,\n\t\t\t\t'Cost' => $fourchetteCout\n\t\t);\n\t}", "title": "" }, { "docid": "9c23db45cf78fa534f424f66177c79cb", "score": "0.56890136", "text": "public function filterByProductType($typeFilter)\n {\n if (!is_string($typeFilter) && !is_array($typeFilter)) {\n throw new LocalizedException(__('The product type filter specified is incorrect.'));\n }\n $this->addAttributeToFilter('type_id', $typeFilter);\n return $this;\n }", "title": "" }, { "docid": "86921caf806471cdabad1a151dfe781a", "score": "0.56752783", "text": "public function getForCategory($filter_id, $category_id);", "title": "" }, { "docid": "1a952c8c401238742faa1970f9829ee1", "score": "0.56545454", "text": "public function filter_product_query($q)\n {\n $taxonomies = array();\n if (!empty($_GET['kategorija'])) {\n $categories = explode(',', $_GET['kategorija']);\n $taxonomies[] = array(\n 'taxonomy' => 'product_cat',\n 'field' => 'slug',\n 'terms' => $categories,\n );\n }\n // https://wordpress.stackexchange.com/questions/25076/how-to-filter-wordpress-search-excluding-post-in-some-custom-taxonomies\n $taxonomy_query = array('relation' => 'OR', $taxonomies);\n if (!empty($taxonomies)) {\n $q->set('tax_query', $taxonomy_query);\n }\n }", "title": "" }, { "docid": "39cad7e9597124680e6977f73cf4e6c2", "score": "0.5649327", "text": "public function testCategoryFilter()\n {\n $category = \\App\\Category::find(1);\n\n $this->visitRoute('portfolio.search.category', [\n str_slug($category->category) . '-' . $category->id\n ])\n ->see('Category')\n ->see($category->category);\n }", "title": "" }, { "docid": "3bc3f001a22f370d9dd3d4592317731d", "score": "0.56492364", "text": "function getFilterdCategories($selectedCateg, $filtru1, $filtru2, $filtru3,$page,$numberRowsPerPage,$flag = 1)\n {\n \t\t//$link = mssql_connect('89.38.209.13', 'Productivito', 'Productivito');\n\t\n\t //mssql_select_db('Productivito', $link);\n\t \n\t // print_r(($page-1)*$numberRowsPerPage +$numberRowsPerPage);die();\n\t if($page == 1)\n\t \t\t$end = 0;\n\t \telse \n\t \t\t$end = ($page-2)*$numberRowsPerPage +$numberRowsPerPage;\n \t\t$query = $this->select();\n\t\tif($flag == 1)\n\t\t\t\t$query->limit($numberRowsPerPage,$end);\n\t\t$filters = array();\n\t\t\n\t\tif (!empty($filtru1))\n\t\t\tarray_push($filters, $filtru1);\n\t\t\n\t\tif (!empty($filtru2))\n\t\t\tarray_push($filters, $filtru2);\n\t\t\n\t\tif (!empty($filtru3))\n\t\t\tarray_push($filters, $filtru3);\n\t\t\n\t\t$query->from('categories');\n\t\t\n\t\tif (!empty($filters))\n\t\t{\n\t\t\t$query->where('type IN (?)', $filters);\n\t\t}\n\t\t\n\t\tif (!empty($selectedCateg))\n\t\t{\n\t\t\t$query->where('category = ?', $selectedCateg);\n\t\t}\n\t\t\n\t\t$result = $this->fetchAll($query);\n\n //echo '<prE>'.print_r($result,true);die();\n if(!empty($result))\n {\n $result = $result->toArray();\n\n return $result;\n }\n \n return array();\t\t\t\t\n }", "title": "" }, { "docid": "b51b2616e24c31a601cab940229f79d6", "score": "0.5643556", "text": "public function searchOptionCategories()\n {\n $this->_setRealtimeAction('Categories');\n return true;\n }", "title": "" }, { "docid": "2e73adcd3433fbf905d5d5be2f91080f", "score": "0.5632778", "text": "public function get_categories()\n {\n return ['careerfy'];\n }", "title": "" }, { "docid": "2e73adcd3433fbf905d5d5be2f91080f", "score": "0.5632778", "text": "public function get_categories()\n {\n return ['careerfy'];\n }", "title": "" }, { "docid": "2e73adcd3433fbf905d5d5be2f91080f", "score": "0.5632778", "text": "public function get_categories()\n {\n return ['careerfy'];\n }", "title": "" }, { "docid": "28820c0340a9329a59fffff0516f1cd1", "score": "0.561418", "text": "function sub_cats_for_filters($term_id) {\n $subs_cats_args = array(\n 'taxonomy' => 'product_cat',\n 'hide_empty' => true,\n 'orderby' => 'slug',\n 'parent' => $term_id,\n );\n return get_terms($subs_cats_args);\n}", "title": "" }, { "docid": "dc34e72e54e852e4ad62360ae05d6330", "score": "0.56077105", "text": "private function availableCategories(){\n return Category::all();\n }", "title": "" }, { "docid": "ef5a175183dded745009ccb51adb9a22", "score": "0.55823374", "text": "public function prepareQueryForCategory()\n {\n $sql = $this->_prepareFilterQuery()->limit($this->productsLimit, $this->productsStart);\n \n $sql->innerJoin(array('pd' => 'product_description'), 'pd.product_id = p.product_id')\n ->where('pd.language_id = ?', (int)$this->config->get('config_language_id'));\n \n switch ($this->sortBy) \n {\n case 'pd.name' : {\n $sql->order(array(\"LCASE(pd.name) {$this->order}\"));\n break;\n }\n case 'p.model' : {\n $sql->select(array('pp.model'))->order(array(\"LCASE(pp.model) {$this->order}\"))\n ->innerJoin(array('pp' => 'product'), 'pp.product_id = p.product_id');\n break;\n }\n case 'p.quantity' : {\n $sql->select(array('pp.quantity'))->order(array(\"pp.quantity {$this->order}\", ))\n ->innerJoin(array('pp' => 'product'), 'pp.product_id = p.product_id');\n break;\n }\n case 'p.price' : {\n if (self::$SKIP_TMP_TABLE) {\n $this->_applyPriceFilterCondition($sql);\n }\n $sql->order(array(\"actual_price {$this->order}\"));\n break;\n }\n case 'rating' : {\n $sql->leftJoin(array('f' => self::TBL_FILTER), 'f.product_id = p.product_id')\n ->where('f.filter_group = \"r0\"')\n ->order(array(\"f.filter_id {$this->order}\"));\n break;\n }\n case 'p.sort_order' : {\n $sql->select(array('pp.sort_order'))->order(array(\"pp.sort_order {$this->order}\"))\n ->innerJoin(array('pp' => 'product'), 'pp.product_id = p.product_id');\n break;\n }\n case 'p.date_added' : {\n $sql->select(array('pp.date_added'))->order(array(\"pp.date_added {$this->order}\"))\n ->innerJoin(array('pp' => 'product'), 'pp.product_id = p.product_id');\n break;\n }\n }\n \n if ($this->sortBy !== 'pd.name') {\n $sql->order(array(\"pd.name {$this->order}\"));\n } \n \n return (string)$sql;\n }", "title": "" }, { "docid": "e2c427883172dadbc0a91ca69d35a987", "score": "0.55731875", "text": "protected function addCategoriesFilter($collection, array $categoriesFilter)\n {\n foreach ($categoriesFilter as $conditionType => $values) {\n $connection = $collection->getConnection();\n $categorySelect = $connection->select()->from(\n ['cat' => $collection->getTable('catalog_category_product_index')],\n 'cat.product_id'\n )->where($connection->prepareSqlCondition('cat.category_id', ['in' => $values]))\n ->where($connection->prepareSqlCondition('cat.store_id', ['eq' => $this->getStoreId()]));\n\n $selectCondition = [\n $this->mapConditionType($conditionType) => $categorySelect,\n ];\n $collection->getSelect()->where(\n $connection->prepareSqlCondition('e.entity_id', $selectCondition)\n );\n }\n return $this;\n }", "title": "" }, { "docid": "913bdbb1dfe01139af887ddf9178d49c", "score": "0.55515295", "text": "protected function _getFilterOptions_validateFilters() {\n\t\t// get option lists for the filter\n\t\t$courseParentTypes = $this->Course->CourseParentType->find('list');\n\t\t$conditions = (empty($this->filter['Course.course_parent_type_id'])) ? array() : array('CourseType.course_parent_type_id' => $this->filter['Course.course_parent_type_id']);\n\t\t$courseTypes = $this->Course->CourseType->find('list', array('conditions' => $conditions));\n\t\tif(!empty($this->filter['Course.course_type_id']) AND !isset($courseTypes[$this->filter['Course.course_type_id']])) unset($this->filter['Course.course_type_id']);\n\t\t$types = $this->Course->CourseType->find('list', array(\n\t\t\t'contain' => array('CourseParentType'),\n\t\t\t'fields' => array('CourseType.id', 'CourseType.name', 'CourseParentType.name'),\n\t\t\t'conditions' => $conditions\n\t\t));\n\t\t\n\t\t$countries = $this->Course->Country->find('list');\n\t\t$conditions = (empty($this->filter['Course.country_id'])) ? array() : array('City.country_id' => $this->filter['Course.country_id']);\n\t\t$cities = $this->Course->City->find('list', array('conditions' => $conditions));\n\t\t\n\t\tif(!empty($this->filter['Course.city_id']) AND !isset($cities[$this->filter['Course.city_id']])) unset($this->filter['Course.city_id']);\n\t\t// make a structured list\n\t\t$cities = $this->Course->City->find('list', array(\n\t\t\t'contain' => array('Country'),\n\t\t\t'fields' => array('City.id', 'City.name', 'Country.name'),\n\t\t\t'conditions' => $conditions\n\t\t));\n\t\tksort($cities);\n\t\t\n\t\t// filter logic 2 - avoid redundant conditions\n\t\tif(!empty($this->filter['Course.city_id'])) unset($this->filter['Course.country_id']);\n\t\tif(!empty($this->filter['Course.course_type_id'])) unset($this->filter['Course.course_parent_type_id']);\n\t\t\n\t\t// child of country & city: university\n\t\t$conditions = array();\n\t\tif(!empty($this->filter['Course.country_id']))\n\t\t\t$conditions['Institution.country_id'] = $this->filter['Course.country_id'];\n\t\tif(!empty($this->filter['Course.city_id']))\n\t\t\t$conditions['Institution.city_id'] = $this->filter['Course.city_id'];\n\t\t$institutions = $this->Course->Institution->find('list', array('conditions' => $conditions));\n\t\t// filter logic 1\n\t\tif(!empty($this->filter['Course.institution_id']) AND !isset($institutions[$this->filter['Course.institution_id']])) unset($this->filter['Course.institution_id']);\n\t\t$institutions = $this->Course->Institution->find('list', array(\n\t\t\t'contain' => array('Country'),\n\t\t\t'fields' => array('Institution.id', 'Institution.name', 'Country.name'),\n\t\t\t'conditions' => $conditions\n\t\t));\n\t\tksort($institutions);\n\t\t// filter logic 2\n\t\tif(!empty($this->filter['Course.institution_id'])) {\n\t\t\tunset($this->filter['Course.country_id']);\n\t\t\tunset($this->filter['Course.city_id']);\n\t\t}\n\t\t\n\t\t$this->_setTaxonomy();\n\t\t// set all option lists to view\n\t\t$this->set(compact(\n\t\t\t'countries',\n\t\t\t'cities',\n\t\t\t'courseParentTypes',\n\t\t\t'courseTypes',\n\t\t\t'institutions'\n\t\t));\n\t}", "title": "" }, { "docid": "0991f91400e7e6c32a347a3055d2a343", "score": "0.55464804", "text": "public function getAllCategory() {\n return $this -> categories;\n }", "title": "" }, { "docid": "d5177cb13f4d61939f154ee6e3696f41", "score": "0.55382645", "text": "function get_categories()\n\t{\t\n\t\t$query = \"SELECT * FROM produkt_kategorije order by NAZIV_KATEGORIJE ASC\"; \n\t\t$run_query = query($query); \n\n\t\tconfirm($run_query); \n \n\n\t\techo '<ul style=\"list-style:none;\">';\n\t\t echo '<li> \n\t\t\t <button type=\"button\" class=\"btn ink-reaction btn-flat btn-primary btn-lg\" \n\t\t ng-click=\"resetCategoryFilter()\">\n\t\t\t\t\t\t\tall products\n\t\t\t\t\t </button>\n\t\t\t </li>';\n\t\twhile ($row = fetch_array($run_query))\n\t\t{\t\t\t\n\t\t\techo '<li>\n\t\t\t <button type=\"button\" class=\"btn ink-reaction btn-flat btn-primary\" \n\t\t\t\t\t\t\tng-click=\"productFilter.NAZIV_KATEGORIJE = &#039;'.htmlentities($row[\"NAZIV_KATEGORIJE\"]).'&#039;\">\n\t\t\t\t\t\t\t'.htmlentities($row[\"NAZIV_KATEGORIJE\"]).'\n\t\t\t\t </button>\n\t\t\t\t</li>';\n\t\t}\n\t\techo '</ul>';\n\t}", "title": "" }, { "docid": "02feaecf3d564f04beffeb0fbc25e3dc", "score": "0.5525742", "text": "private function getMyCategory()\n {\n if($this->request->has('category'))\n {\n $products = ClothingProducts::find(\n [\n 'conditions' => 'category = :category:',\n 'bind' =>\n [\n 'category' => $this->request->get('category')\n ]\n ]\n );\n\n }else{\n $products = ClothingProducts::find();\n }\n return $products;\n }", "title": "" }, { "docid": "ccacd5a12fb2972034bed906224dc6f8", "score": "0.552559", "text": "public function categories()\n {\n return $this->morphToMany(Category::class, 'categorizable');\n }", "title": "" }, { "docid": "a3ec8fcfb12f87ba41a8b5225d9a9ae7", "score": "0.5524936", "text": "public function get_products_categories() {\n\t\t\t\treturn parent::get_products_categories();\n\t\t\t}", "title": "" }, { "docid": "7354f7c83b8ea3a4ad2a36401b408b83", "score": "0.5522115", "text": "function dsf_get_filter_array($filter, $over_ride='false', $specific_type=''){\nglobal $dsv_category_id;\n\n// break them down into their seperate categories\n$new_filters = explode('_cat_', $filter);\n\n// break them down further.\n\n$cat_filter_array = array();\n\n for($i=0, $n=sizeof($new_filters); $i<$n; $i++) {\n\t\t if (strlen($new_filters[$i]) > 1){\n\t\t\t\t// we have items\n\t\t\t\t$breakdown_array = explode('__', $new_filters[$i]);\n\t\t\t\t\n\t\t\t\t$cat_breakdown_id = $breakdown_array[0];\n\t\t\t\t\n\t\t\t\tif ($over_ride == 'false'){\n\t\t\t\t\t$ensure_category = dsf_confirm_valid_category($cat_breakdown_id, $dsv_category_id);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ($ensure_category == 'valid' || $over_ride == 'true'){\n\t\t\t\t\n\t\t\t\t\t\t$cat_filter_array[] = array ('category' => $cat_breakdown_id,\n\t\t\t\t\t\t\t\t\t\t\t\t 'filter_type' => dsf_find_category_filter_type($breakdown_array[0], $specific_type),\n\t\t\t\t\t\t\t\t\t\t\t\t 'id' => $breakdown_array[1],\n\t\t\t\t\t\t\t\t\t\t\t\t 'value' => $breakdown_array[2]\n\t\t\t\t\t\t\t\t\t\t\t\t );\n\t\t\n\t\t\t\t} // end ensure valid category if\n\t\t } // end if\n } // end for\nreturn $cat_filter_array;\n}", "title": "" }, { "docid": "14b4c85c91f63cb5b193ef51aab53575", "score": "0.55167687", "text": "public function filter_post_type_by_taxonomy()\n {\n global $typenow;\n $post_type = 'ticket'; // change to your post type\n \n $taxonomies = array('ticket_status', 'ticket_system'); // change to your taxonomy\n foreach ($taxonomies as $taxonomy) {\n if ($typenow == $post_type) {\n $selected = isset($_GET[$taxonomy]) ? $_GET[$taxonomy] : '';\n $info_taxonomy = get_taxonomy($taxonomy);\n wp_dropdown_categories(array(\n 'show_option_all' => __(\"Show All {$info_taxonomy->label}\"),\n 'taxonomy' => $taxonomy,\n 'name' => $taxonomy,\n 'orderby' => 'name',\n 'selected' => $selected,\n 'show_count' => true,\n 'hide_empty' => true,\n ));\n };\n }\n }", "title": "" }, { "docid": "eb2901f5be26e08203576b3aa19874c6", "score": "0.54966587", "text": "abstract protected function filters();", "title": "" }, { "docid": "67948d0b394da11d42e25a73965ae20a", "score": "0.5492918", "text": "public function getCategory();", "title": "" }, { "docid": "ae98fcbd1047460c32ce93beb496b27d", "score": "0.5489543", "text": "function mf_filter_products_by_taxonomies( $post_type, $which ) {\n\n\t// Apply this only on a specific post type\n\tif ( 'mf_produtos' !== $post_type ) {\n\t\treturn;\n\t}\n\n\t// A list of taxonomy slugs to filter by\n\t$taxonomies = array( 'mf_tipos_de_produtos' );\n\n\tforeach ( $taxonomies as $taxonomy_slug ) {\n\n\t\t// Retrieve taxonomy data\n\t\t$taxonomy_obj = get_taxonomy( $taxonomy_slug );\n\t\t$taxonomy_name = $taxonomy_obj->labels->name;\n\n\t\t// Retrieve taxonomy terms\n\t\t$terms = get_terms( $taxonomy_slug );\n\n\t\t// Display filter HTML\n\t\techo \"<select name='{$taxonomy_slug}' id='{$taxonomy_slug}' class='postform'>\";\n\t\techo '<option value=\"\">' . sprintf( esc_html__( 'Todas %s', 'maqfort' ), $taxonomy_name ) . '</option>';\n\t\tforeach ( $terms as $term ) {\n\t\t\tprintf(\n\t\t\t\t'<option value=\"%1$s\" %2$s>%3$s (%4$s)</option>',\n\t\t\t\t$term->slug,\n\t\t\t\t( ( isset( $_GET[ $taxonomy_slug ] ) && ( $_GET[ $taxonomy_slug ] == $term->slug ) ) ? ' selected=\"selected\"' : '' ),\n\t\t\t\t$term->name,\n\t\t\t\t$term->count\n\t\t\t);\n\t\t}\n\t\techo '</select>';\n\t}\n\n}", "title": "" }, { "docid": "f6692ea20e9f441a84290a5b4033759d", "score": "0.5473029", "text": "public function getCategories()\n {\n }", "title": "" }, { "docid": "3d08f628d19077fa901bfccf0eda8541", "score": "0.54660064", "text": "protected function getProductCollection()\n { \n $type = $this->getData('type_filter');\n $storeId = Mage::app()->getStore()->getId();\n if ($type != 6) {\n $products = Mage::getModel('catalog/product')->getCollection()->setStoreId($storeId);\n } else {\n $products = Mage::getResourceModel('reports/product_collection')->setStoreId($storeId);\n }\n $products = $this->_addProductAttributesAndPrices($products)->addStoreFilter()->\n addAttributeToFilter('status', array('neq' => Mage_Catalog_Model_Product_Status::\n STATUS_DISABLED))->addAttributeToFilter('visibility', array(\"neq\" => 1));\n\n\n if ($type == 1)\n $products = $this->getFilterFeatured($products); //\tSpecial Attribute\n elseif ($type == 2)\n $products = $this->getFilterBest($products); //\tBestseller Product\n elseif ($type == 3)\n $products = $this->getFilterNew($products); //\tNew Products\n elseif ($type == 4)\n $products = $this->getFilterSale($products); //\tSales Products\n elseif ($type == 6)\n $products = $this->getFilterMostViewed($products); //\tMost Viewed Products\n\n\n //Sort\n if ($type != 6) {\n $str = $this->getData('order_by');\n if ($str == 'em_order_random') {\n $products->getSelect()->order('RAND()');\n } else {\n if (isset($str))\n $orders = explode(' ', $str);\n if (count($orders))\n $products->addAttributeToSort($orders[0], $orders[1]);\n else\n $products->addAttributeToSort('name', 'asc');\n }\n }\n\n\n /* Filter by categories */\n $products = $this->filterCate($products);\n\n //Page size & CurPage\n $pageSize = 10;\n if ($this->getData('limit_count') && is_numeric($this->getData('limit_count')))\n $pageSize = $this->getData('limit_count');\n /*\n $curPage = 1;\n $products->setPageSize($pageSize);\n $products->setCurPage($curPage);*/\n \n $curPage = $this->getRequest()->getParam('p',1);\n\t\t$this->_pageSize = $this->getLimitCount();\t\n\t\t$products->setPageSize($this->_pageSize);\n\t\t$products->setCurPage($curPage);\n\t\t$this->_maxPage = ceil($products->getSize()/$this->_pageSize);\n\t\t\n\t\treturn $products;\n }", "title": "" }, { "docid": "3d2f32ec695368fe14a4b90b37b8e6ff", "score": "0.5458464", "text": "public function categories()\n {\n return DB::table('butik_category_product')\n ->where(['product_slug' => $this->slug])\n ->join('butik_categories', 'butik_category_product.category_slug', '=', 'butik_categories.slug')\n ->get();\n }", "title": "" }, { "docid": "3e7cd04a967e8a7c603693c137a876fd", "score": "0.545125", "text": "public function testGETResourcesFilterCategoriesRequest()\n\t{\n\t\t$request = new ERestTestRequestHelper();\n\n\t\t$request['config'] = [\n\t\t\t'url'\t\t\t=> 'http://api/category?filter=[{\"property\":\"name\", \"value\":\"cat1\"}]',\n\t\t\t'type'\t\t=> 'GET',\n\t\t\t'data'\t\t=> null,\n\t\t\t'headers' => [\n\t\t\t\t'X_REST_USERNAME' => 'admin@restuser',\n\t\t\t\t'X_REST_PASSWORD' => 'admin@Access',\n\t\t\t],\n\t\t];\n\n\t\t$request_response = $request->send();\n\t\t$expected_response = '{\"success\":true,\"message\":\"Record(s) Found\",\"data\":{\"totalCount\":\"1\",\"category\":[{\"id\":\"1\",\"name\":\"cat1\",\"posts\":[{\"id\":\"1\",\"title\":\"title1\",\"content\":\"content1\",\"create_time\":\"2013-08-07 10:09:41\",\"author_id\":\"1\"}]}]}}';\n\t\t$this->assertJsonStringEqualsJsonString($request_response, $expected_response);\n\t}", "title": "" }, { "docid": "9a40e2b770d63d2926f1bbdb34f6f89b", "score": "0.5449596", "text": "public function categoryFilter($attributes){\n\t\tglobal $wpgmza;\n\n\t\t$html = \"\";\n\n\t\t/* Developer Hook (Filter) - Modify default shortcode attributes for category filter shortcode shortcode */\n\t\t$defaults = apply_filters(\"wpgmza_cf_shortcode_get_default_attributes\", $this->getDefaults(self::SLUG . \"_\" . self::CATEGORY_FILTER));\n\t\t$attributes = shortcode_atts($defaults, $attributes);\n\n\t\t$attributes = (object) $attributes;\n\t\t\n\t\t$id = !empty($attributes->id) && !empty(intval($attributes->id)) ? intval($attributes->id) : 1;\n\n\t\t$map = Map::createInstance($id);\n\t\tif($map->element !== null && $map->categoryFilterWidget){\n\t\t\t$html = $this->standaloneComponent($this->categoryFilterComponent($map));\n\t\t} else {\n\t\t\t$html = __(\"Error: The map ID\", \"wp-google-maps\") . \" (\" . $id . \") \" . __(\"does not exist\", \"wp-google-maps\");\n\t\t}\n\n\t\t$this->beforeOutput(self::SLUG. \"_\" . self::CATEGORY_FILTER);\n\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "193a68dcd8023c8695c0f67699ab9d93", "score": "0.5438632", "text": "public function searchCategory() {\n $categoryArticle = new Category_Article();\n $resultCategory = $categoryArticle->query(['id_category'], ['id_article' => $this->getId()])[0];\n $this->setCategory($resultCategory['id_category']);\n }", "title": "" }, { "docid": "7fa002ce76eefe72c10ed0f1dbbe0cda", "score": "0.5436748", "text": "function osea_hello_cats() {\n\n\t?><div class=\"le-pedido-box-filter\">\n\t\t<ul>\n\t\t\t<li class=\"cat-list-item\"><a href=\"\">All Categories</a></li><?php\n\n\t\t\t\t$cat_args = array (\n\t\t\t\t\t'exclude' => array(1),\n\t\t\t\t\t'option_all' => 'All',\n\t\t\t\t\t'posts_per_page' => 2, \n\t\t\t\t\t'orderby' => 'date', \n\t\t\t\t\t'order' => 'DESC',\n\t\t\t\t);\n\n\t\t\t\t$categories = get_categories( $cat_args );\n\t\t\t\t\n\t\t\t\t?> <?php\n\t\t\t\tforeach( $categories as $cat ) : ?>\n\t\t\t\t\t<li class=\"cat-list-item\">\n\t\t\t\t\t<a data-category=\"<?= $cat->term_id; ?>\" href=\"<?= get_category_link( $cat->term_id ); ?>\"><?= $cat ->name; ?></a>\n\t\t\t\t\t</li>\n\t\t\t\t<?php\tendforeach;\t?>\n\t\t</ul>\n\t</div>\n\t\n\t<?php\t\n}", "title": "" }, { "docid": "eae991071071aeb918a96705aa5bce18", "score": "0.54273176", "text": "function cat_filter($cat_id)\n\t{\n\t\t$sql = '';\n\t\tif ($cat_id)\n\t\t{\n\t\t\t$cats = $GLOBALS['egw']->categories->return_all_children($cat_id);\n\t\t\tarray_walk($cats,create_function('&$val,$key','$val = (int) $val;'));\n\t\t\tif (is_array($cat_id) && count($cat_id)==1) $cat_id = $cat_id[0];\n\t\t\t$sql = '(cal_category'.(count($cats) > 1 ? \" IN ('\".implode(\"','\",$cats).\"')\" : '='.$this->db->quote((int)$cat_id));\n\t\t\tforeach($cats as $cat)\n\t\t\t{\n\t\t\t\t$sql .= ' OR '.$this->db->concat(\"','\",'cal_category',\"','\").' LIKE '.$this->db->quote('%,'.$cat.',%');\n\t\t\t}\n\t\t\t$sql .= ') ';\n\t\t}\n\t\treturn $sql;\n\t}", "title": "" }, { "docid": "a67712c16b666df3581e73f8fd9b2a81", "score": "0.542481", "text": "public function scopeApplyFilters(Builder $builder, $category = null, $filter = null)\n {\n return $builder->category()->filter();\n }", "title": "" }, { "docid": "9a136e498382f6a689079875fe6c32f3", "score": "0.5421072", "text": "private function loadProductCategories()\r\n\t{\r\n\t\t$categories = Category::getSimpleCategories($this->context->language->id);\r\n\r\n\t\tif (_PS_VERSION_ < '1.5')\r\n\t\t\t$id_shop = 1;\r\n\t\telse\r\n\t\t\t$id_shop = Context::getContext()->shop->id;\r\n\r\n\t\t$shop_categories = array();\r\n\t\tforeach ($categories as $category)\r\n\t\t{\r\n\t\t\t$fianetsceau_type = Tools::isSubmit('fianetsceau_'.$category['id_category'].'_subcategory') ? Tools::getValue('fianetsceau_'.$category['id_category'].'_subcategory') : $this->getFianetSubCategoryId($category['id_category'], $id_shop);\r\n\t\t\t$parent_id = $this->getFianetCategoryId($fianetsceau_type);\r\n\t\t\t$shop_categories[$category['id_category']] = array(\r\n\t\t\t\t'name' => $category['name'],\r\n\t\t\t\t'fianetsceau_type' => $fianetsceau_type,\r\n\t\t\t\t'parent_id' => $parent_id\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn $shop_categories;\r\n\t}", "title": "" }, { "docid": "f3ba7d20100deb6e02d6bf1d23b5945c", "score": "0.5420219", "text": "public function filtros()\n {\n $terms = get_terms( array(\n 'taxonomy' => 'category',\n 'hide_empty' => false,\n ) );\n\n foreach ($terms as $term) {\n if ($term->parent === 0 && $term->slug != 'sin-categoria') {\n $parents[] = [\n 'id' => $term->term_id,\n 'nombre' => $term->name,\n 'slug' => $term->slug,\n ];\n }\n }\n\n foreach ($parents as $parent) {\n $parent_id = $parent['id'];\n ${'padre_hijos_' . $parent_id}['padre_' . $parent_id] = $parent;\n foreach ($terms as $term) {\n if ($term->parent === $parent_id ) {\n ${'childs_of_' . $parent_id}[] = [\n 'id' => $term->term_id,\n 'nombre' => $term->name,\n 'slug' => $term->slug,\n ];\n }\n\n if (isset(${'childs_of_' . $parent_id})) {\n ${'padre_hijos_' . $parent_id}['hijos_' . $parent_id] = ${'childs_of_' . $parent_id};\n }\n }\n\n $output['padre_hijos_' . $parent_id] = ${'padre_hijos_' . $parent_id};\n\n }\n\n return $output;\n }", "title": "" }, { "docid": "1e7376786f0aaa97dd89f32e9f4d8139", "score": "0.5412401", "text": "function remove_query_arg_product_cats_for_filters() {\n // paths\n $current_uri = home_url( add_query_arg( NULL, NULL ) ); // full current url with params\n $current_url_page_path = strtok($_SERVER[\"REQUEST_URI\"], '?'); // with https & host\n // $current_url_page_path = strtok($current_uri, '?'); // without https & host\n $current_url_query_string = $_SERVER['QUERY_STRING']; // isolated query string: key=value\n // shop base url\n $shop_base = get_permalink(woocommerce_get_page_id('shop'));\n // key values\n $query_key_value = 'product_cat';\n $cat_key_value = 'product-category';\n // check keys in paths\n $found_in_query = strpos_recursive($current_url_query_string, $query_key_value);\n $found_in_path = strpos_recursive($current_url_page_path, $cat_key_value);\n // if query_string exists & contains product_cat, remove product_cat query value\n if(($found_in_query)&&(!empty($current_url_query_string))) {\n $output = remove_query_arg('product_cat');\n };\n // if page path exists & contains product-category\n if(($found_in_path)&&(!empty($current_url_page_path))) {\n $strp_path = substr_replace($current_url_page_path, '', strrpos($current_url_page_path, '/'), 1);\n $output = str_replace($strp_path, $shop_base, $current_uri);\n };\n // return url with esc\n return esc_url($output); \n}", "title": "" }, { "docid": "3eca3479ea3ea541564e02a3bcc42fe8", "score": "0.54001653", "text": "public function get_categories() {\n return [ 'general' ];\n }", "title": "" }, { "docid": "d53a40db776bc837761ad5c1de5ebc6a", "score": "0.53957534", "text": "public function categoryFilterComponent($map){\n\t\tglobal $wpgmza;\n\n\t\t$class = \"wpgmza-dropdown\";\n\t\t$style = intval($wpgmza->settings->wpgmza_settings_filterbycat_type); \n\t\tif(!empty($style) && $style === 2){\n\t\t\t$class = \"wpgmza-list\";\n\t\t}\n\n\t\t$html = \"<div class='wpgmza-marker-listing-category-filter {$class}' data-map-id='{$map->id}' id='wpgmza_filter_{$map->id}'>\";\n\t\t$html .= \"<label>\" . __(\"Filter by\",\"wp-google-maps\") . \"</label>\";\n\t\t\n\t\tif($map->categoryFilterWidget){\n\t\t\t$html .= $map->categoryFilterWidget->html;\n\t\t}\n\n\t\t$html .= \"</div>\";\n\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "e65d7d3f64cf8a96b2317cbdcb3b45b3", "score": "0.53915024", "text": "public function filterAvailableCategories($filterString = \"\", $projectKey = null, $offset = 0, $limit = 10, $accountId = Account::LOGGED_IN_ACCOUNT) {\n return array_map(function ($category) {\n return new CategorySummary($category->getCategory(), $category->getDescription(), $category->getKey());\n }, $this->filterRawAvailableCategories($filterString, $projectKey, $accountId, $offset, $limit));\n }", "title": "" }, { "docid": "ed5551a77291aaff6aadc143b238a1c6", "score": "0.53686905", "text": "public function get_categories() {\n\t\treturn [ 'atl-category' ];\n\t}", "title": "" }, { "docid": "9b6ce659f7af22e64201d265d7b18dfe", "score": "0.5367288", "text": "public function _add_logical_operator_filter()\r\n\t{\t\t\r\n\t\t//are we dealing with AND, cause if we're not we don't have to do anything?\r\n\t\tif($this->_get_logical_operator() == \"and\")\r\n\t\t{\r\n\t\t\t//get the table prefix\r\n\t\t\t$table_prefix = Kohana::config('database.default.table_prefix');\r\n\t\t\t\r\n\t\t\t//first create a duplicate bit of SQL like the reports helper would\r\n\t\t\t$category_sql = $this->_create_default_category_sql();\r\n\t\t\tif($category_sql == \"\")\r\n\t\t\t{\r\n\t\t\t\treturn; //seems they're looking at everything, so ignore this\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//there is something there, so lets find it and remove it.\r\n\t\t\t$params = Event::$data;\r\n\t\t\t$i = 0;\r\n\t\t\t$found_it = false;\r\n\t\t\twhile($i < count($params))\r\n\t\t\t{\r\n\t\t\t\tif(isset($params[$i]))\r\n\t\t\t\t{\r\n\t\t\t\t\tif($params[$i] == $category_sql)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$found_it = true;\r\n\t\t\t\t\t\tbreak;\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$i++;\r\n\t\t\t}\r\n\t\t\tif($found_it)\r\n\t\t\t{\r\n\t\t\t\tunset($params[$i]);\r\n\t\t\t\t\r\n\t\t\t\t$only_public = (strpos(url::current(), \"admin/\") === 0) ? \"\" : \" AND amc.category_visible = 1 \"; \r\n\t\t\t\t\r\n\t\t\t\t//now replace it\r\n\t\t\t\t$category_sql = \"\";\r\n\t\t\t\tif ( isset($_GET['c']) AND !is_array($_GET['c']) AND intval($_GET['c']) > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Get the category ID\r\n\t\t\t\t\t$category_id = intval($_GET['c']);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add category parameter to the parameter list\r\n\t\t\t\t\tarray_push($params, '(c.id = '.$category_id.' OR c.parent_id = '.$category_id.')');\r\n\t\t\t\t}\r\n\t\t\t\telseif (isset($_GET['c']) AND is_array($_GET['c']))\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Sanitize each of the category ids\r\n\t\t\t\t\t$category_ids = array();\r\n\t\t\t\t\tforeach ($_GET['c'] as $c_id)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (intval($c_id) > 0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$category_ids[] = intval($c_id);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Check if there are any category ids\r\n\t\t\t\t\t$cat_count = count($category_ids);\r\n\t\t\t\t\tif ($cat_count > 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$sql = 'i.id IN (SELECT DISTINCT incident_id FROM '.$table_prefix.'incident_category amic '.\r\n\t\t\t\t\t\t\t'INNER JOIN '.$table_prefix.'category amc ON (amc.id = amic.category_id) '.\r\n\t\t\t\t\t\t\t'WHERE ';\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$category_ids = implode(\",\", $category_ids);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t$sql .=\t'(amc.id IN ('.$category_ids.') OR amc.parent_id IN ('.$category_ids.'))';\r\n\t\t\t\t\t\t$sql .= $only_public; \r\n\t\t\t\t\t\t$sql .= ' GROUP BY incident_id HAVING COUNT(*) = '. $cat_count. ')';\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tarray_push($params, $sql);\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end it's an array\r\n\t\t\t\tEvent::$data = $params;\t\t\t\t\r\n\t\t\t}//end found it\r\n\t\t}//end it's == and\t\t\r\n\t}", "title": "" }, { "docid": "96221bfe72f746310b854f63c4800dda", "score": "0.5362644", "text": "function zp_filter_function( $filter, $category , $taxonomy ){\r\n\t \r\n\t $output = '';\r\n\t \r\n\t// if $filter\r\n\tif( $filter == 'true' ){\r\n\t\t$filter = 'style=\"display: block;\"';\r\n\t}else{\r\n\t\t$filter = 'style=\"display: none;\"';\r\n\t}\r\n\t\t\r\n\t//check if it has categoryed category\r\n\tif( $category != '' ){\r\n\t\t$all = '';\r\n\t\t$selected = 'active';\t\r\n\t}else{\r\n\t\t$all = 'active';\r\n\t\t$selected = '';\r\n\t}\r\n\t\t\t\r\n\t$output .='<div class=\"zp_masonry_filter\" '.$filter.'>';\r\n\t$output .= '<ul data-option-key=\"filter\" class=\"option-set\" > <li><a class=\"'.$all.'\" href=\"#\" data-option-value=\"*\" >'.__( 'All', 'drone' ).'</a></li>';\r\n\t\r\n\t// Get all portfolio catgories\r\n\t$categories = get_categories( array( 'taxonomy' => $taxonomy ) );\r\n\r\n // NL: Remove gallery from category array\r\n\t foreach ($categories as $index => $data) {\r\n\t\t if ($data->slug == 'gallery') {\r\n\t\t\t unset($categories[$index]);\r\n\t\t }\r\n\t }\r\n\r\n\tforeach( $categories as $category ):\r\n\t\tif( $category == $category->slug ){\r\n\t\t\t$output .= '<li ><a class=\"'.$selected.'\" href=\"#\" data-option-value=\".'.$category->slug.'\" >'.$category->name.'</a></li>';\r\n\t\t}else{\r\n\t\t\t$output .= '<li ><a class=\"\" href=\"#\" data-option-value=\".'.$category->slug.'\" >'.$category->name.'</a></li>';\r\n\t\t}\r\n\tendforeach;\r\n\t\r\n\t$output .= '</ul></div>';\r\n\t\r\n\treturn $output;\r\n }", "title": "" }, { "docid": "3a725ac74bef7d0fe93e033083502f33", "score": "0.5362", "text": "public function addDynamicFilters($collection, $currentCategory = false, $useIndex = true, $checkForCatFilter = false) {\n $layer = Mage::getSingleton('catalog/layer');\n $oldCurrentCategory = FALSE;\n if (!$currentCategory) {\n $currentCategory = Mage::registry('current_category');\n } else if (is_numeric($currentCategory) & !$checkForCatFilter) {\n $currentCategory = Mage::getModel('catalog/category')->load($currentCategory);\n } else if (!empty($_GET['cat']) && is_numeric($_GET['cat'])) {\n $currentCategory = Mage::getModel('catalog/category')->load((int) $_GET['cat']);\n $oldCurrentCategory = Mage::registry('current_category');\n Mage::unregister('current_category');\n Mage::register('current_category', $currentCategory, true); // override current category\n $layer->setCurrentCategory($currentCategory);\n $collection->setFlag('remove_cat_filter', $_GET['cat']);\n } else if (is_numeric($currentCategory)) {\n $currentCategory = Mage::getModel('catalog/category')->load($currentCategory);\n $oldCurrentCategory = Mage::registry('current_category');\n Mage::unregister('current_category');\n Mage::register('current_category', $currentCategory, true); // override current category\n $layer->setCurrentCategory($currentCategory);\n }\n if (is_object($currentCategory)) {\n if ($currentCategory->getDynamicAttributes() || strlen(trim($currentCategory->getDynamicAttributes())) > 0) {\n // check for indexed result, else do the long way\n // Prefer a direct sql query here, as it is faster\n if ($useIndex && Mage::getStoreConfig('dyncatprod/index/disabled') == 0) {\n try {\n $readAdapter = Mage::getSingleton('core/resource')->getConnection('core_read');\n $select = $readAdapter->select()->from($collection->getTable('dyncatprod/catalog_category_dynamic_product_index'))\n ->where(\"category_id= {$currentCategory->getId()} AND store_id = {$currentCategory->getStoreId()}\");\n $indexedData = $readAdapter->fetchAll($select);\n if (is_array($indexedData) && count($indexedData) > 0) {\n $data = array_shift($indexedData);\n $collection->addFieldToFilter('entity_id', array('in' => array(explode(',', $data['product_ids']))));\n $collection->getSelect()->distinct(true);\n $collection->setFlag('is_dynamic', true);\n $this->_restoreCurrentCategory($oldCurrentCategory);\n return true;\n }\n } catch (Exception $e) {\n // there was an issue, so go the non indexed way.\n Mage::logException($e);\n }\n }\n $filterList = $this->buildDynamicProductCollection($currentCategory->getDynamicAttributes());\n if (count($filterList) > 0) {\n $orFilter = array();\n foreach ($filterList as $key => $filter) {\n try {\n if (is_object($filter['attribute']) && $filter['attribute']->getAttributeCode() == 'category_id') {\n if (Mage::app()->getStore()->isAdmin()) {\n //is there a + at the right side, if so include all child categories\n $setCategories = explode(',', $filter['value']['eq']);\n $rebuiltCategories = array();\n $subCats = array();\n foreach ($setCategories as $categoryId) {\n $rightMost = substr($categoryId, -1, 1);\n if ($rightMost == '+') {\n // get all child category ids.\n $categoryId = substr($categoryId, 0, strlen($categoryId) - 1);\n $categoryModel = Mage::getModel('catalog/category')->load($categoryId);\n if ($categoryModel) {\n $subCats = explode(',', $categoryModel->getChildren());\n }\n }\n $rebuiltCategories = array_merge($rebuiltCategories, $subCats, array($categoryId));\n }\n $filter['value']['eq'] = implode(',', array_unique(array_filter($rebuiltCategories)));\n $conditions = array(\n 'cat_index.product_id=e.entity_id',\n $collection->getConnection()->quoteInto('cat_index.category_id IN (' . $filter['value']['eq'] . ')', \"\")\n );\n $joinCond = join(' AND ', $conditions);\n $fromPart = $collection->getSelect()->getPart(Zend_Db_Select::FROM);\n\n if (isset($fromPart['cat_index'])) {\n $fromPart['cat_index']['joinCondition'] = $joinCond;\n $collection->getSelect()->setPart(Zend_Db_Select::FROM, $fromPart);\n } else {\n $collection->getSelect()->join(\n array('cat_index' => $collection->getTable('catalog/category_product_index')), $joinCond, array('cp_category_id' => 'category_id')\n );\n }\n } else {\n $collection->setFlag('category_ids', $filter['value']['eq']);\n $collection->setFlag('store_id', $currentCategory->getStoreId());\n }\n continue;\n }\n if ($filter['link'] == 'OR') {\n $orFilter[] = array('attribute' => $filter['attribute']->getAttributeCode(), key($filter['value']) => $filter['value']);\n //Mage::log(\"cat_add:\".$collection->getSelect());\n } else {\n $collection->addAttributeToFilter($filter['attribute'], $filter['value'], $filter['join']);\n }\n } catch (Exception $e) {\n Mage::logException($e);\n }\n }\n\n if (count($orFilter) > 0) {\n $collection->addAttributeToFilter($orFilter, null, 'left');\n //Mage::log(\"after:\".$collection->getSelect());\n }\n $collection->getSelect()->distinct(true);\n $collection->getSelect()->group('e.entity_id');\n $collection->setFlag('is_dynamic', true);\n }\n //Mage::log(\"after:\" . $collection->getSelect());\n $this->_restoreCurrentCategory($oldCurrentCategory);\n return $collection;\n }\n }\n $this->_restoreCurrentCategory($oldCurrentCategory);\n return false;\n }", "title": "" }, { "docid": "79d326ca36f9dd3f98de05a4b70f09af", "score": "0.5348218", "text": "public function getFilters();", "title": "" }, { "docid": "79d326ca36f9dd3f98de05a4b70f09af", "score": "0.5348218", "text": "public function getFilters();", "title": "" }, { "docid": "79d326ca36f9dd3f98de05a4b70f09af", "score": "0.5348218", "text": "public function getFilters();", "title": "" }, { "docid": "79d326ca36f9dd3f98de05a4b70f09af", "score": "0.5348218", "text": "public function getFilters();", "title": "" }, { "docid": "e0ad466623b42a23df9fb9ed6b55506e", "score": "0.53474957", "text": "public function getAllCat()\n\t\t{\n\t\t\treturn Categoria::all();\n\t\t}", "title": "" }, { "docid": "6d0834ef66cba5cc140bf8d67d5befa3", "score": "0.53444767", "text": "public function categories(){\n $products=Product::select('category')->distinct()->orderBy('category')->get();\n return view('staff-categories')->with('products',$products);\n }", "title": "" }, { "docid": "636ac1b997d76caac0ee0489072af531", "score": "0.5343145", "text": "public function get_categories() {\n\t\treturn [ 'flicky-category' ];\n\t}", "title": "" }, { "docid": "537738a02a0b3544355bda818913cb41", "score": "0.5335765", "text": "public function getProductCategoriesForASIN($request);", "title": "" }, { "docid": "032fff41e03a1a2822718ddcc315b50b", "score": "0.5335073", "text": "public function getProductCategory_list ()\n\t{\t\n\t\t$data = $filter = array();\n $postdata = $this->request->all();\n if (!empty($postdata))\n\t\t{\n\t\t\t$filter['search_text'] = (isset($postdata['search_term']) && !empty($postdata['search_term'])) ? trim($postdata['search_term']) : '';\n\t\t\t$filter['parent_category_id'] = (isset($postdata['parent_category_id']) && !empty($postdata['parent_category_id'])) ? $postdata['parent_category_id'] : '';\n\t\t\t$filter['exportbtn'] = $this->request->has('exportbtn')? $this->request->get('exportbtn') : '';\t\t\n\t }\n if ($this->request->isMethod('post'))\n\t\t{\n $ajaxdata = [];\n $ajaxdata['recordsTotal'] = $ajaxdata['recordsFiltered'] = $this->categoryObj->getProductCategory_list([], true);\n $ajaxdata['data'] = array();\n $ajaxdata['draw'] = $postdata['draw'];\n\n if ($ajaxdata['recordsTotal'])\n {\n $filter = array_filter($filter);\n if (!empty($filter)){\n $data = array_merge($data, $filter);\n $ajaxdata['recordsFiltered'] = $this->categoryObj->getProductCategory_list($data, true);\n }\n if (!empty($ajaxdata['recordsFiltered']))\n {\n $data['start'] = (isset($postdata['start']) && !empty($postdata['start'])) ? $postdata['start'] : 0;\n $data['length'] = (isset($postdata['length']) && !empty($postdata['length'])) ? $postdata['length'] : 10;\n $ajaxdata['data'] = $this->categoryObj->getProductCategory_list($data);\n }\n }\n return $this->response->json($ajaxdata, 200, $this->headers, $this->options);\n }\n elseif(isset($filter['exportbtn']) && $filter['exportbtn']=='Export')\n {\n\t\t\t$edata['manage_category_details'] = $this->categoryObj->getProductCategory_list(array_merge($data,$filter));\t\n $output = view('admin.products.product_category_export',$edata);\n \n $headers = array(\n\t\t\t\t'Pragma' => 'public',\n\t\t\t\t'Expires' => 'public',\n\t\t\t\t'Cache-Control' => 'must-revalidate, post-check=0, pre-check=0',\n\t\t\t\t'Cache-Control' => 'private',\n\t\t\t\t'Content-Type' => 'application/vnd.ms-excel',\n\t\t\t\t'Content-Disposition' => 'attachment; filename=product_category_details' . date(\"d-M-Y\") . '.xls',\n\t\t\t\t'Content-Transfer-Encoding' => ' binary'\n\t\t\t\t);\n return Response::make($output, 200, $headers);\n }\n else{\n return view('admin.products.category_list');\n }\n\t}", "title": "" }, { "docid": "376395e93da98389f8643686555e2d2a", "score": "0.533248", "text": "public function filter_category_wise_product_list($paging = 0) {\r\n \r\n\t\t$posted_filter\t= $this->session->userdata('posted_filter');\r\n\t\t$search_condition =\" WHERE i_status = 1 AND e_show_in_frontend = '1' AND i_parent_id=0 AND i_total_product>0 \";\r\n \r\n \r\n\t\t\r\n\t $data['dealList'] = $this->process_category_wise_product_list($search_condition, 'Advance Search', $paging, 36, base_url() . 'home/filter_category_wise_product_list/', 3, NULL, TRUE);\t\r\n\t\t//echo $this->db->last_query();exit;\r\n\t\t\r\n \r\n echo $this->load->view('elements/home_product_list.tpl.php', $data, true);\t\t\r\n }", "title": "" }, { "docid": "ac5a9db1b39ce934f79ccdb3bf18343e", "score": "0.53301275", "text": "public function addCategoryFilter($category)\n {\n $filter = $category[0]['eq'];\n if (!$this->getFlag('category_filter_added')) {\n if ($category instanceof Category) {\n\n } else {\n if(is_int($filter)){\n $this->getSelect()->where('category.category_id = '.$filter);\n }\n if(is_string($filter)){\n $this->getSelect()->where('category.identifier = ?', $filter);\n }\n }\n }\n $this->setFlag('category_filter_added', true);\n return $this;\n }", "title": "" }, { "docid": "77cb95fcdc1406ca59d0bcd3ed0167b5", "score": "0.532743", "text": "public function filters()\r\n {\r\n $filters = array(\r\n //'postOnly + delete, slug',\r\n );\r\n return CMap::mergeArray($filters, parent::filters());\r\n }", "title": "" }, { "docid": "ef082afb7b2c9c38f7e915f68a1adcf4", "score": "0.5312302", "text": "public function getCategories()\n\t{\n\n\t}", "title": "" }, { "docid": "9d0acb47a85b7ff102ee28f34f45acc6", "score": "0.5309812", "text": "public function getProductsByFilter($filter) {\n $query =\n 'SELECT * ' .\n 'FROM products JOIN categories ON products.categoryID = categories.categoryID ';\n\n // filter by name\n if ($filter[\"name\"] == \"none\") {\n $filter[\"name\"] = \"\";\n }\n $query .= 'WHERE (productName LIKE :productName) ';\n\n if ($filter[\"priceFrom\"] > $filter[\"priceTo\"] || $filter[\"priceFrom\"] < 0) {\n $filter[\"priceFrom\"] = 0;\n }\n if ($filter[\"priceFrom\"] > $filter[\"priceTo\"] || $filter[\"priceTo\"] > 9999) {\n $filter[\"priceTo\"] = 9999;\n }\n $query .= 'AND (price BETWEEN :priceFrom AND :priceTo) ';\n\n // filter by category\n if ($filter[\"categoryCode\"] != \"all\") {\n $query .= 'AND (categoryCode = :categoryCode) ';\n }\n\n // if product available\n $query .= 'AND available = true AND is_available= true ';\n\n // sort\n switch ($filter[\"sort\"]) {\n case 'default':\n break;\n case 'a-to-z':\n $query .= 'ORDER BY productName ';\n break;\n case 'z-to-a':\n $query .= 'ORDER BY productName DESC ';\n break;\n case 'low-to-high':\n $query .= 'ORDER BY price ';\n break;\n case 'high-to-low':\n $query .= 'ORDER BY price DESC ';\n break;\n default:\n break;\n }\n\n // limit\n $query .= 'LIMIT :limit OFFSET :offset ';\n\n\n // remove space in the end of query\n $query = trim($query);\n\n $this->db->query($query);\n\n // bind values\n $this->db->bind(\":productName\", '%' . $filter[\"name\"] . '%');\n $this->db->bind(\":priceFrom\", $filter[\"priceFrom\"]);\n $this->db->bind(\":priceTo\", $filter[\"priceTo\"]);\n $this->db->bind(\":limit\", $filter[\"limit\"]);\n $this->db->bind(\":offset\", $filter[\"offset\"]);\n if ($filter[\"categoryCode\"] != \"all\") {\n $this->db->bind(\":categoryCode\", $filter[\"categoryCode\"]);\n }\n\n $result = $this->db->resultSet();\n return $result;\n }", "title": "" }, { "docid": "0f517042123a88ae98580e0d13dcd0f4", "score": "0.530881", "text": "function get_filtered_courses($request){\n\n\t\t\t$filters = urldecode($request['filter']);\n\t\t\t$filters = json_decode($filters);\n\t\t\t\n\t\t\t$filters = (Array)$filters;\n\t\t\t$defaults = array(\n\t\t\t\t'post_type' \t=> 'course',\n\t\t\t\t'per_page'=>\t(empty($request['per_view'])?5:$request['per_view']),\n\t\t\t\t's'\t\t\t\t=> (isset($filters['search'])?$filters['search']:''),\n\t\t\t\t'paged'\t\t\t=>\t(isset($filters['paged'])?$filters['paged']:0),\n\t\t\t);\n\n\t\t\tif(isset($filters['sort'])){\n\t\t\t\t$filter = $filters['sort'];\n\t\t\t\tswitch($filter){\n\t\t\t\t\tcase 'popular':\n\t\t\t\t\t\t$args['orderby'] = 'meta_value_num';\n\t\t\t\t\t\t$args['meta_key'] = 'vibe_students';\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'newest':\n\t\t\t\t\t\t$args['orderby'] = 'date';\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'rated':\n\t\t\t\t\t\t$args['orderby'] = 'meta_value_num';\n\t\t\t\t\t\t$args['meta_key'] = 'average_rating';\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'alphabetical':\n\t\t\t\t\t\t$args['orderby'] = 'title';\n\t\t\t\t\t\t$args['order'] = 'ASC';\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'start_date':\n\t\t\t\t\t\t$args['orderby'] = 'meta_value';\n\t\t\t\t\t\t$args['meta_key'] = 'vibe_start_date';\n\t\t\t\t\t\t$args['meta_type'] = 'DATE';\n\t\t\t\t\t\t$args['order'] = 'ASC';\n\t\t\t\t\t\tif(empty($order['meta_query'])){\n\t\t\t\t\t\t\t$args['meta_query']=array(array(\n\t\t\t\t\t\t\t'key' => 'vibe_start_date',\n\t\t\t\t\t\t\t'value' => current_time('mysql'),\n\t\t\t\t\t\t\t'compare'=>'>=' \n\t\t\t\t\t\t\t));\n\t\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$args['orderby'] = '';\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(isset($filters['filters'])){\n\n\t\t\t\t$course_categories=array();\n\t\t\t\t$course_levels=array();\n\t\t\t\t$course_location=array();\n\t\t\t\t$type=array();\n\n\t\t\t\t$args['tax_query']=array('relation'=>'AND');\n\t\t\t\tif(empty($args['meta_query'])){\n\t\t\t\t\t$args['meta_query']=array();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(is_array($filters['filters'])){\n\t\t\t\t\tforeach($filters['filters'] as $filter){\n\t\t\t\t\t\t$filter = (Array)$filter;\n\t\t\t\t\t\tswitch($filter['type']){\n\t\t\t\t\t\t\tcase 'taxonomy':\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(!empty($filter['values'])){\n\t\t\t\t\t\t\t\t\t$args['tax_query'][]=array(\n\t\t\t\t\t\t\t\t\t\t'taxonomy' => $filter['taxonomy'],\n\t\t\t\t\t\t\t\t\t\t'terms' => $filter['values'],\n\t\t\t\t\t\t\t\t\t\t'field' => 'term_id',\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'free':\n\t\t\t\t\t\t\t\t$args['meta_query']['relation'] = 'AND';\n\t\t\t\t\t\t\t\t$args['meta_query'][]=array(\n\t\t\t\t\t\t\t\t\t'key'\t\t=> 'vibe_course_free',\n\t\t\t\t\t\t\t\t\t'value' \t=> ((!empty($filter['values']) && $filter['values'] == 'Free')?'S':'H'),\n\t\t\t\t\t\t\t\t\t'compare'\t=> '='\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'offline':\n\t\t\t\t\t\t\t\t$args['meta_query']['relation'] = 'AND';\n\t\t\t\t\t\t\t\t$args['meta_query'][]=array(\n\t\t\t\t\t\t\t\t\t'key' \t\t=> 'vibe_course_offline',\n\t\t\t\t\t\t\t\t\t'value' \t=> ($filter['values']?'S':'H'),\n\t\t\t\t\t\t\t\t\t'compare'\t=> '='\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'instructors':\n\t\t\t\t\t\t\t\t$args['author__in']=$filter['values'];\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'level':\n\t\t\t\t\t\t\t\t$course_levels[]=$extra->value;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'location':\n\t\t\t\t\t\t\t\t$course_location[]=$extra->value;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'start_date':\n\t\t\t\t\t\t\t\t$args['meta_query']['relation'] = 'AND';\n\t\t\t\t\t\t\t\t$args['meta_query'][]=array(\n\t\t\t\t\t\t\t\t\t'key' \t\t=> 'vibe_start_date',\n\t\t\t\t\t\t\t\t\t'value' \t=> $filter['values'],\n\t\t\t\t\t\t\t\t\t'compare'\t=> '>=' \n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'end_date':\n\t\t\t\t\t\t\t\t$args['meta_query']['relation'] = 'AND';\n\t\t\t\t\t\t\t\t$args['meta_query'][]=array(\n\t\t\t\t\t\t\t\t\t'key' \t\t=> 'vibe_start_date',\n\t\t\t\t\t\t\t\t\t'value' \t=> $filter['values'],\n\t\t\t\t\t\t\t\t\t'compare'\t=> '<='\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$args = wp_parse_args($args,$defaults);\n\t\t\tif(isset($args['search'])){\n\t\t\t\t$args['search_terms'] = $args['search'];\t\n\t\t\t\tunset($args['search']);\n\t\t\t}\n\t\t\t\n\t\t\tif ( bp_course_has_items( $args ) ):\n\t\t\t\twhile ( bp_course_has_items() ) : bp_course_the_item();\n\t\t\t\t\tglobal $post;\n\t\t\t\t\t\n\t\t\t\t\t$posts[]=$this->prepare_item_for_response($post,$request);\n\t\t\t\tendwhile;\t\n\t\t\tendif;\n\t\t\t\n\t\t\t/**\n\t\t\t * Filter the response.\n\t\t\t *\n\t\t\t * @since 3.0.0\n\t\t\t *\n\t\t\t * @param array $element_data\n\t\t\t * @param WP_REST_Request $request\n\t\t\t */\n\t\t\t$posts_data = apply_filters( 'bp_course_api_get_filterd_courses', $posts, $request );\n\n\t\t\treturn new WP_REST_Response( $posts_data, 200 );\n\n\t\t}", "title": "" }, { "docid": "6c1a9704c2d562cdfe53056a5a25f53a", "score": "0.5296879", "text": "public function isCategoryFilterModelExist(int $categoryId, int $filterId, $type);", "title": "" }, { "docid": "6c43b1c1e01c58bf6426bf52ae4e9892", "score": "0.52920926", "text": "function search_filters( $query ) {\n\n if ( is_admin() || isset( $_GET['post_type'] ) )\n return $query;\n\n if ( is_search() && $query->is_main_query() ) {\n\n // Exclude Post types from search\n if ( ( $exclude_post_types = TCW::get_option( 'search_exclude_post_types' ) ) && is_array( $exclude_post_types ) ) {\n\n $args = array(\n 'public' => true,\n 'exclude_from_search' => false,\n );\n\n $post_types = get_post_types( $args );\n\n foreach ( $exclude_post_types as $post_type ) {\n unset( $post_types[$post_type] );\n }\n\n $query->set( 'post_type', $post_types );\n }\n\n // Exclude specific categoies from search\n if ( TCW::get_option( 'search_cats' ) ) {\n $query->set( 'cat', TCW::get_option( 'search_cats' ) );\n }\n }\n\n return $query;\n }", "title": "" }, { "docid": "85c47f58b614c2e8389318e759abcaf9", "score": "0.5289086", "text": "public function getCategoryAction();", "title": "" }, { "docid": "002b2890568dff16e698c535fc3abf5c", "score": "0.5282585", "text": "public function products_by_category( $request ) {\n\n $params = $request->get_params();\n\n if (isset($params['category'])) {\n\n $parameters = array(\n 'url' => '/products/category',\n 'limit' => isset($params['limit']) ? $params['limit']: 10,\n 'page' => isset($params['page']) ? $params['page']: 1,\n );\n\n $banner = null;\n\n if (isset($params['banner'])) {\n $banner = array(\n 'desktop' => array(\n 'src' => get_option('TpcShop' . $params['category'] . 'DesktopUrl'),\n 'alt' => get_option('TpcShop' . $params['category'] . 'DesktopAlt'),\n ),\n 'mobile' => array(\n 'src' => get_option('TpcShop' . $params['category'] . 'MobileUrl'),\n 'alt' => get_option('TpcShop' . $params['category'] . 'MobileAlt'),\n )\n );\n }\n\n $products = get_posts(array(\n 'post_type' => 'product',\n 'product_cat' => $params['category'],\n 'posts_per_page' => -1,\n 'meta_query' => array(array('key' => '_subscription_price', 'compare' => 'NOT EXISTS')),\n 'order' => 'DESC'\n ));\n\n $paginator = new TPC_Pagination($products, $parameters);\n\n $paginated_response = $paginator->get_paginated_response(function ($product_post, $key, $params) {\n\n $product = wc_get_product( $product_post->ID );\n $product_data = $product->get_data();\n $product_categories = get_the_terms( $product_post->ID, 'product_cat' );\n $category = false;\n $product_type = $product->get_type();\n $childrens = array();\n $attributes = array();\n\n if ($product_type == 'variable') {\n $childrens = $product->get_children();\n $product_attributes = $product->get_variation_attributes();\n $attributes = array(\n 'colors' => isset($product_attributes['pa_colors']) ? $product_attributes['pa_colors'] : array(),\n 'sizes' => isset($product_attributes['pa_sizes']) ? $product_attributes['pa_sizes'] : array()\n );\n }\n\n foreach ($product_categories as $product_category) {\n if ($product_category->parent > 0) {\n $category = $product_category->name;\n break;\n }\n }\n\n return array(\n 'id' => $product_post->ID,\n 'price' => $product->get_price(),\n 'name' => $product_data['name'],\n 'sku' => $product_data['sku'],\n 'short_description' => $product_data['short_description'],\n 'images' => $this->get_images($product),\n 'attributes' => $attributes,\n 'category' => $category,\n 'variations' => isset($childrens[0]) ? $this->_get_variations($childrens) : array()\n );\n\n });\n\n if (!isset($paginated_response['data'][0])) {\n return new WP_REST_Response(array(\n 'code' => 'category_not_exist',\n 'message' => 'Category does not exists',\n 'data' => array('status' => 404)\n ), 404);\n }\n\n return new WP_REST_Response(array(\n 'products' => $paginated_response['data'],\n 'banner' => $banner,\n 'pagination' => $paginated_response['pagination']\n ), 200);\n\n }\n\n return new WP_REST_Response(array(\n 'code' => 'missing_category_parameter',\n 'message' => 'error, there is no category parameter',\n 'data' => array('status' => 400))\n , 400);\n }", "title": "" }, { "docid": "7f960a568c295a74b0a7391a00863a90", "score": "0.52811414", "text": "public function getFoodCategoryAll()\n {\n return $this->selectFields()->withCriteria(\n new FilterRequest($this->filters)\n )->get();\n }", "title": "" }, { "docid": "636bfe86cf5bed60ea3496787b5cb8fb", "score": "0.52791274", "text": "protected function _filterCategory($collection, $column) {\n if (!$value = $column->getFilter()->getValue())\n return;\n if (isset($value))\n $collection->getSelect()\n ->where('main_table.category_name LIKE \\'%' . mysql_escape_string($value) . '%\\' OR '\n . 'main_table.category_name LIKE \\'%' . mysql_escape_string($value) . '%\\'');\n }", "title": "" }, { "docid": "fe2c95980573e6e7a650ea197fb7703a", "score": "0.52781445", "text": "function getCategory();", "title": "" }, { "docid": "194116e8acf7f0d5a36f15c1cfe5da77", "score": "0.5273679", "text": "protected function _postedFilters() {\n\t\t// get filters from form data - mention all possible fields explicitly to avoid any trickery\n\t\tif(!empty($this->request->data)) {\n\t\t\tif(!empty($this->request->data['Course'])) {\n\t\t\t\t$form = $this->request->data['Course'];\n\t\t\t\t\n\t\t\t\tif(empty($form['country_id'])) unset($this->filter['Course.country_id']);\n\t\t\t\telse $this->filter['Course.country_id'] = $form['country_id'];\n\t\t\t\t\n\t\t\t\tif(empty($form['city_id'])) unset($this->filter['Course.city_id']);\n\t\t\t\telse $this->filter['Course.city_id'] = $form['city_id'];\n\t\t\t\t\n\t\t\t\tif(empty($form['institution_id'])) unset($this->filter['Course.institution_id']);\n\t\t\t\telse $this->filter['Course.institution_id'] = $form['institution_id'];\n\t\t\t\t\n\t\t\t\tif(empty($form['course_parent_type_id'])) unset($this->filter['Course.course_parent_type_id']);\n\t\t\t\telse $this->filter['Course.course_parent_type_id'] = $form['course_parent_type_id'];\n\t\t\t\t\n\t\t\t\tif(empty($form['course_type_id'])) unset($this->filter['Course.course_type_id']);\n\t\t\t\telse $this->filter['Course.course_type_id'] = $form['course_type_id'];\n\t\t\t}\n\t\t\t// the HABTM filters\n\t\t\tif(!empty($this->request->data['TadirahObject'])) {\n\t\t\t\tif(!empty($this->request->data['TadirahObject']['TadirahObject']))\n\t\t\t\t\t$this->filter['CoursesTadirahObject.tadirah_object_id'] = $this->request->data['TadirahObject']['TadirahObject'];\n\t\t\t\telse unset($this->filter['CoursesTadirahObject.tadirah_object_id']);\n\t\t\t}\n\t\t\tif(!empty($this->request->data['TadirahTechnique'])) {\n\t\t\t\tif(!empty($this->request->data['TadirahTechnique']['TadirahTechnique']))\n\t\t\t\t\t$this->filter['CoursesTadirahTechnique.tadirah_technique_id'] = $this->request->data['TadirahTechnique']['TadirahTechnique'];\n\t\t\t\telse unset($this->filter['CoursesTadirahTechnique.tadirah_technique_id']);\n\t\t\t}\n\t\t\tif(!empty($this->request->data['TadirahActivity'])) {\n\t\t\t\tif(!empty($this->request->data['TadirahActivity']['TadirahActivity']))\n\t\t\t\t\t$this->filter['CoursesTadirahActivity.tadirah_activity_id'] = $this->request->data['TadirahActivity']['TadirahActivity'];\n\t\t\t\telse unset($this->filter['CoursesTadirahActivity.tadirah_activity_id']);\n\t\t\t}\n\t\t\tif(!empty($this->request->data['Discipline'])) {\n\t\t\t\tif(!empty($this->request->data['Discipline']['Discipline']))\n\t\t\t\t\t$this->filter['CoursesDiscipline.discipline_id'] = $this->request->data['Discipline']['Discipline'];\n\t\t\t\telse unset($this->filter['CoursesDiscipline.discipline_id']);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d8f24c41b8f5563a347da5ed891fc5ec", "score": "0.5269591", "text": "private function findFilter($type)\n {\n // Is this an attribute filter?\n if ($attribute = $this->getAttribute($type)) {\n $type = $attribute->type;\n }\n\n $name = ucfirst(camel_case(str_singular($type))).'Filter';\n $classname = \"GetCandy\\Api\\Core\\Search\\Providers\\Elastic\\Filters\\\\{$name}\";\n\n if (class_exists($classname)) {\n return app()->make($classname);\n }\n }", "title": "" }, { "docid": "6c4adea0ba1aa2ba23d52f97aedff3d6", "score": "0.5269367", "text": "public function getFilter();", "title": "" }, { "docid": "6c4adea0ba1aa2ba23d52f97aedff3d6", "score": "0.5269367", "text": "public function getFilter();", "title": "" }, { "docid": "2f65dc2ff3724b7b8e745936bb603546", "score": "0.5265284", "text": "public function find(int $id) : CategoryFilter;", "title": "" }, { "docid": "39da739fe5c56657162b8c6f7513bc77", "score": "0.525834", "text": "public function get_categories() {\n\t\treturn [ 'woo-builder' ];\n\t}", "title": "" } ]
d3d4027a721680c773c8169a69f3da61
Here be dragons. Attempts to diff the current state of the object to its original state, and generate MongoDB update statement out of it. The check is recursive, so deeply nested arrays "should work" (tm).
[ { "docid": "488d9d296e5f54dfd0baf47257b9781b", "score": "0.65597665", "text": "function _bsonSerializeRecurs(&$updated, $newData, $oldData, $keyfix = \"\") {\n foreach($newData as $k => $v) {\n\n /* A new field -- likely a on-the-fly schema upgrade */\n if (!isset($oldData[$k])) {\n $updated['$set'][\"$keyfix$k\"] = $v;\n }\n\n /* Changed value */\n elseif ($oldData[$k] != $v) {\n /* Not-empty arrays need to be recursively checked for changes */\n if (is_array($v) && $oldData[$k] && $v) {\n $this->_bsonSerializeRecurs($updated, $v, $oldData[$k], \"$keyfix$k.\");\n } else {\n /* Normal changes in keys can simply be overwritten.\n * This applies to previously empty arrays/documents too */\n $updated['$set'][\"$keyfix$k\"] = $v;\n }\n }\n }\n\n /* Data that used to exist, but now doesn't, needs to be $unset */\n foreach($oldData as $k => $v) {\n if (!isset($newData[$k])) {\n /* Removed field -- likely a on-the-fly schema upgrade */\n $updated['$unset'][\"$keyfix$k\"] = \"\";\n continue;\n }\n }\n }", "title": "" } ]
[ { "docid": "6093f8d04c81fdb94e617859c95e5ab2", "score": "0.6119008", "text": "function update_db() {\n // Updates\n foreach ($this->need_update as $object) {\n if (!$object->update()) {\n debugging(\"Could not update the object in DB.\");\n } elseif ($object->is_old_parent_childless()) {\n $this->need_delete[$object->old_parent->id] = $object->old_parent;\n }\n }\n\n // Deletions\n foreach ($this->need_delete as $id => $object) {\n // If an item is both in the delete AND insert arrays, it must be an existing object that only needs updating, so ignore it.\n if (empty($this->need_insert[$id])) {\n if (!$object->delete()) {\n debugging(\"Could not delete object from DB.\");\n }\n }\n }\n\n // Insertions\n foreach ($this->need_insert as $id => $object) {\n if (empty($this->need_delete[$id])) {\n if (!$object->insert()) {\n debugging(\"Could not insert object into DB.\");\n }\n }\n }\n\n $this->need_update = array();\n $this->need_delete = array();\n $this->need_insert = array();\n\n $this->reset_first_sortorder();\n $this->renumber();\n }", "title": "" }, { "docid": "4a7aa5490e30797a598b379cbaf27fbc", "score": "0.59718657", "text": "public function test_deep_merge_update_inplace() {\n $arr1 = array(\n \"color\" => array(\"favorite\" => \"red\"),\n 5\n );\n $arr2 = array(\n 10,\n \"color\" => array(\"favorite\" => \"green\", \"blue\"));\n Core_Arrays::deep_merge_update_inplace($arr1, $arr2);\n $this->\n assert_equal(\n $arr1,\n array (\n 'color' =>\n array (\n 'favorite' => 'green',\n 0 => 'blue',\n ),\n 0 => 10,\n )\n );\n }", "title": "" }, { "docid": "255e3c598fc2fbf4aaa80408da3db528", "score": "0.58849853", "text": "public function testUpdateArrayFields(): void\n {\n $query = new UpdateQuery($this->connection);\n $date = new DateTime();\n $query->update('comments')\n ->set(['comment' => 'mark', 'created' => $date], ['created' => 'date'])\n ->where(['id' => 1]);\n $result = $query->sql();\n\n $this->assertQuotedQuery(\n 'UPDATE <comments> SET <comment> = :c0 , <created> = :c1',\n $result,\n !$this->autoQuote\n );\n\n $this->assertQuotedQuery(' WHERE <id> = :c2$', $result, !$this->autoQuote);\n $result = $query->execute();\n $this->assertSame(1, $result->rowCount());\n\n $query = new SelectQuery($this->connection);\n $result = $query->select('created')->from('comments')->where(['id' => 1])->execute();\n $result = $result->fetchAll('assoc')[0]['created'];\n $this->assertStringStartsWith($date->format('Y-m-d'), $result);\n }", "title": "" }, { "docid": "3b6f9dabb46a1cbe9bfcd22fc0788964", "score": "0.5832523", "text": "public function test_deep_merge_update() {\n $arr1 = array(\n \"color\" => array(\"favorite\" => \"red\"),\n 5\n );\n $arr2 = array(\n 10,\n \"color\" => array(\"favorite\" => \"green\", \"blue\"));\n $this->\n assert_equal(\n Core_Arrays::deep_merge_update($arr1, $arr2),\n array (\n 'color' =>\n array (\n 'favorite' => 'green',\n 0 => 'blue',\n ),\n 0 => 10,\n )\n );\n }", "title": "" }, { "docid": "ace6a523d871cf4d564188695e7d04db", "score": "0.57147", "text": "function acf_update_nested_array( &$array, $ancestors, $value ) {\n}", "title": "" }, { "docid": "7157561d600b4cdcb42209284dca81da", "score": "0.5523526", "text": "protected function update()\n\t{\n\t\t// Only applies for queries with children\n\t\tif (count($this->children) == 0)\n\t\t\treturn;\n\t\t\n\t\t// Call update recursively\n\t\tforeach ($this->children as $child)\n\t\t\t$child->update();\n\t\t\t\n\t\t// Copy parameters from children\n\t\tforeach ($this->children as $child)\n\t\t\tforeach ($child->params as $name => $spec)\n\t\t\t\t$this->params->$name = $spec;\n\t\t\t\t\n\t\t// Copy operation from first child\n\t\t$this->operation = $this->children[0]->operation;\n\t}", "title": "" }, { "docid": "6e2b398f9aa27e12b86a973961e7f239", "score": "0.55085653", "text": "function db_ConvertArrayToUpdateForm($associativeArray=array(),$withSet=true){\n\tif(count($associativeArray)){\n\t\t$updateFieldList = array();\n\t\tforeach($associativeArray as $key=>$value){\n\t\t\tif(strlen($value) > 2){\n\t\t\t\tif(substr($value,-2) == '()'){\n\t\t\t\t\t$valueToSet = $value;\n\t\t\t\t} else {\n\t\t\t\t\t$valueToSet = \"'\".db_EscapeString($value).\"'\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$valueToSet = \"'\".db_EscapeString($value).\"'\";\n\t\t\t}\n\t\t\t$updateFieldList[] = \"$key = $valueToSet\";\n\t\t}\n\t\t$returnString = ($withSet) ? \"\\nSET\\n\" : \"\\n\";\n\t\treturn $returnString.implode(\",\\n\",$updateFieldList).\"\\n\";\n\t} else {\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "b3de82f20b00ea5d2c2f8a3689336788", "score": "0.5460891", "text": "private static final function updateObjectPropertiesonSQLUpdateorInsert () {\r\n if (isset (self::$objFormDataContainer['update_or_insert']) && isset (self::$objFormDataContainer['table_name'])) {\r\n if (isset (self::$objFormDataContainer['update_where'])) {\r\n // Set it to what ever the developer wants it set to ...\r\n self::$objUpdateWhere = self::$objFormDataContainer['update_where'];\r\n } else {\r\n self::$objUpdateWhere = new S ('%who = \"%what\"');\r\n self::$objUpdateWhere->doToken ('%who', self::$objUpdateUpdateField);\r\n self::$objUpdateWhere->doToken ('%what', self::$objUpdateUpdateId);\r\n }\r\n\r\n // Check to see which operation to execute ...\r\n if (self::$objFormDataContainer['update_or_insert'] == new S ('update')) {\r\n // Do we have multiple or simple updates ...\r\n if (isset (self::$objFormDataContainer['table_join_on']) &&\r\n isset (self::$objFormDataContainer['table_save_into'])) {\r\n self::$objUpdateTableName = new S (self::$objFormDataContainer['table_name'] . _SP\r\n . self::$objFormDataContainer['table_join_on']);\r\n $updateTable = self::$objFormDataContainer['table_save_into']->toValues ();\r\n $updateTableCount = count ($updateTable);\r\n $updateTable[$updateTableCount++] = self::$objFormDataContainer['table_name'];\r\n for ($i = 0; $i < $updateTableCount; ++$i) {\r\n self::$objUpdateTableFields = new A (array_merge (self::$objUpdateTableFields->toArray (),\r\n self::getFieldsFromTable (new S ($updateTable[$i]))->toArray ()));\r\n }\r\n } else {\r\n self::$objUpdateTableName = self::$objFormDataContainer['table_name'];\r\n self::$objUpdateTableFields = self::getFieldsFromTable (self::$objUpdateTableName);\r\n }\r\n }\r\n\r\n if (!self::checkPOST ()->toBoolean () == TRUE) {\r\n $q = new S ('SELECT * FROM %table WHERE %condition LIMIT 1');\r\n $q->doToken ('%table', self::$objUpdateTableName)\r\n ->doToken ('%condition', self::$objUpdateWhere);\r\n self::$objUpdateSELECTData = self::getQuery ($q);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "422f83a91920ae679abb6eff0e7cde24", "score": "0.5414068", "text": "public function testUpdateSubquery(): void\n {\n $this->skipIf($this->connection->getDriver() instanceof Mysql);\n\n $subquery = new SelectQuery($this->connection);\n $subquery\n ->select('created')\n ->from(['c' => 'comments'])\n ->where(['c.id' => new IdentifierExpression('comments.id')]);\n\n $query = new UpdateQuery($this->connection);\n $query->update('comments')\n ->set('updated', $subquery);\n\n $this->assertEqualsSql(\n 'UPDATE comments SET updated = (SELECT created FROM comments c WHERE c.id = comments.id)',\n $query->sql(new ValueBinder())\n );\n\n $result = $query->execute();\n $this->assertSame(6, $result->rowCount());\n $result->closeCursor();\n\n $result = (new SelectQuery($this->connection))->select(['created', 'updated'])->from('comments')->execute();\n foreach ($result->fetchAll('assoc') as $row) {\n $this->assertSame($row['created'], $row['updated']);\n }\n $result->closeCursor();\n }", "title": "" }, { "docid": "9966de3c2eebafeda1b8a91ae3cb1f69", "score": "0.5413899", "text": "protected function update()\n {\n // Only applies for queries with children\n if (count($this->children) == 0) {\n return;\n }\n\n // Call update recursively\n foreach ($this->children as $child) {\n $child->update();\n }\n\n // Copy parameters from children\n foreach ($this->children as $child) {\n foreach ($child->params as $name => $spec) {\n $this->params->$name = $spec;\n }\n }\n\n // Copy operation from first child\n $this->operation = $this->children[0]->operation;\n }", "title": "" }, { "docid": "943ee461f634478151a878cc29e2e6af", "score": "0.53448415", "text": "function getDiffBetweenObjects($document, $document_new) {\n $new_key_values = array();\n foreach ($document_new as $key => $value) {\n if ($value == null) {\n continue;\n }\n if (!isset($document->$key)) {\n // -> New key\n $new_key_values[$key] = $value;\n continue;\n }\n\n if (is_array($value)) {\n // -> Diff on keys\n foreach ($value as $key2 => $value2) {\n if ($value2 == null) {\n continue;\n }\n\n if (!isset($document->$key[$key2]) || $document->$key[$key2] != $value2) {\n // -> Non existing key i orignal document OR changed value\n if (!isset($new_key_values[$key])) {\n $new_key_values[$key] = array();\n }\n $new_key_values[$key][$key2] = $value2;\n }\n }\n }\n /* elseif (is_object($document->$key)) {\n $diff = getDiffBetweenObjects($document->$key, $value);\n if (count($diff) > 0) {\n $new_key_values[$key] = $diff;\n }\n }*/\n elseif ($document->$key != $value) {\n $new_key_values[$key] = $value;\n }\n }\n\n return $new_key_values;\n}", "title": "" }, { "docid": "08478f956166d5b923953084c22aec1a", "score": "0.53024256", "text": "public function setUpdateNested(Am_Record $record, array $vars)\n {\n\n }", "title": "" }, { "docid": "9a0c9dc16bca2fe2d9aa549d6381e980", "score": "0.5280502", "text": "function iterativeDigger(&$entry,$depth,$field_search,$old_id,$new_id)\n{\n\t$max_depth = 10;\n\n\tif (isset($entry['Left']['Value']))\n\t{\t\n\t\tif (($entry['Left']['Value'] == $field_search) && ($entry['Right']['Value'] == $old_id)) \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$entry['Right']['Value'] = $new_id;\n\t}\n\telse if ($depth < $max_depth)\n\t{\n\t\tif (isset($entry['Left']['Left'])) iterativeDigger($entry['Left'],($depth+1),$field_search,$old_id,$new_id);\n\t\tif (isset($entry['Right']['Left'])) iterativeDigger($entry['Right'],($depth+1),$field_search,$old_id,$new_id);\n\t}\n}", "title": "" }, { "docid": "3a94c60fce0e85014680fa1d00a5094b", "score": "0.5262618", "text": "protected function _updateTreeBlock($arr)\n\t{\n\t\t$strMatch = $arr['strMatch'];\n\n\t\t$arrayBlock = $this->_getTreeBlockChild(array(\n\t\t\t'vars' => $arr['vars'],\n\t\t\t'idTarget' => $arr['idTarget'],\n\t\t));\n\n\t\t$varsTarget = array();\n\t\tforeach ($arrayBlock as $key => $value) {\n\t\t\t$varsTarget[] = $value;\n\t\t}\n\t\t$varsTarget[] = $arr['arrayBlockProducts'];\n\t\t$varsTarget[] = $arr['arrayBlockProductsSum'];\n\n\t\t$vars = $this->_insertTreeBlock(array(\n\t\t\t'vars' => $arr['vars'],\n\t\t\t'idTarget' => $arr['idTarget'],\n\t\t\t'varsTarget' => $varsTarget,\n\t\t));\n\n\t\treturn $vars;\n\n\t}", "title": "" }, { "docid": "5b1cbf5c039e2dae3021e3779e5568fd", "score": "0.5250652", "text": "function josh_object_update($array) {\n\tglobal $_josh;\n\tif (empty($array[\"objectKey\"])) return false;\n\t\n\t//get object info\n\t$object = josh_object_info(false, $array[\"objectKey\"]);\n\t\n\t//create new instance\n\t$instanceID = josh_object_instance($object[\"typeID\"], $object[\"id\"], $array);\n\t\n\t//update object with current instance\n\tjosh_db_query(\"UPDATE josh_objects SET currentInstanceID = {$instanceID} WHERE id = \" . $object[\"id\"]);\n\t\n\t//update blog RSS ~ TODO: make RSS generalized to all object types\n\t//it's really a naming question. having the one-word object names will help with this, eg /joshserver/rss/posts.xml, /joshserver/rss/providers.xml\n\tif ($object[\"typeID\"] == 11) josh_xml_rss_generate();\n\t\n\treturn $object[\"typeID\"];\n}", "title": "" }, { "docid": "f06b5095985c718aefcf15c7d90b58b3", "score": "0.5234101", "text": "public function arrayToUpdateQueryObject($nhta17c9aaa61e80a1bf71d0d850af4e5baa9800bbd, $nht90a6864ee01cee93dd6481f0a0f425cc864d6e49 = array()){\n if(!$nhta17c9aaa61e80a1bf71d0d850af4e5baa9800bbd){\n return false;\n }\n $nht7316c8b2e74870d9d7e9d30bbc28ecf4cdf945ee = array();\n $nht5944ae25418ceabcf285dca1d721b77888dac89b = array_keys($nhta17c9aaa61e80a1bf71d0d850af4e5baa9800bbd);\n if(!$nht90a6864ee01cee93dd6481f0a0f425cc864d6e49){\n $nht90a6864ee01cee93dd6481f0a0f425cc864d6e49 = $nht5944ae25418ceabcf285dca1d721b77888dac89b;\n }\n foreach($nht5944ae25418ceabcf285dca1d721b77888dac89b as $nhta62f2225bf70bfaccbc7f1ef2a397836717377de){\n if(in_array($nhta62f2225bf70bfaccbc7f1ef2a397836717377de, $nht90a6864ee01cee93dd6481f0a0f425cc864d6e49)){\n $nht65c10dc3549fe07424148a8a4790a3341ecbc253 = $nhta62f2225bf70bfaccbc7f1ef2a397836717377de . '= :' . $nhta62f2225bf70bfaccbc7f1ef2a397836717377de;\n $nht7316c8b2e74870d9d7e9d30bbc28ecf4cdf945ee[] = $nht65c10dc3549fe07424148a8a4790a3341ecbc253;\n }\n }\n if(!$nht7316c8b2e74870d9d7e9d30bbc28ecf4cdf945ee){\n return false;\n }\n $nht572acd09a7bf3c52578d417ba44fd6e983404594 = implode(', ', $nht7316c8b2e74870d9d7e9d30bbc28ecf4cdf945ee);\n return $nht572acd09a7bf3c52578d417ba44fd6e983404594;\n }", "title": "" }, { "docid": "28c1a76cae587d591b038cc4f332e722", "score": "0.52111", "text": "public function update($array) {\n }", "title": "" }, { "docid": "628bdedc7db8bfa0ecf522eafde2bfa1", "score": "0.5203318", "text": "public function testUpdateFieldsArrayNotSequential()\n {\n try\n {\n self::$builder->table('authors')\n ->fields(\n [\n 'first_name' => 'Tommy',\n 'last_name' => 'Jameson',\n ]\n )\n ->values(['Tommy', 'Jameson'])\n ->where(['first_name', '=', 'John'])\n ->andWhere(['last_name', '=', 'Walker'])\n ->update()\n ->run();\n } catch (QueryBuilderException $exception)\n {\n return;\n }\n\n $this->fail(\n 'An expected exception has not been raised.'\n );\n }", "title": "" }, { "docid": "420ab637ec2c71ba0de48176822ac019", "score": "0.5154227", "text": "public function testDeepMerge()\n {\n $a = [\n 'name' => 'colo',\n 'age' => 20,\n 'info' => [\n 'amount' => 100,\n 'min' => 39,\n 'max' => 59,\n 'other' => '111',\n 'sub' => [\n 'name' => 'sub',\n 'age' => '11',\n ],\n 'sub2' => 'sub2',\n 'sub4' => [\n 'name' => 'sub4',\n ],\n ],\n ];\n\n $b = [\n 'name' => 'cool',\n 'info' => [\n 'min' => 20,\n 'sub' => [\n 'name' => '111',\n ],\n 'sub2' => [\n 'name' => 'sub2',\n ],\n 'sub3' => [\n 'name' => 'sub3',\n ],\n 'sub4' => 'sub4',\n ],\n ];\n\n $expectC = [\n 'name' => 'cool',\n 'age' => 20,\n 'info' => [\n 'amount' => 100,\n 'min' => 20,\n 'max' => 59,\n 'other' => '111',\n 'sub' => [\n 'name' => '111',\n 'age' => '11',\n ],\n 'sub2' => [\n 'name' => 'sub2',\n ],\n 'sub3' => [\n 'name' => 'sub3',\n ],\n 'sub4' => 'sub4',\n ],\n ];\n\n $c = deep_merge($a, $b);\n\n $this->assertTrue($expectC == $c);\n }", "title": "" }, { "docid": "7454b0978d3fb7c91c7eb50aabbf8418", "score": "0.51361156", "text": "public function update() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\t\t\t\r\n\t\t\t$arrBindings = array ();\r\n\t\t\t\r\n\t\t\tif (! isset ( $this->id )) { \r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//check if record exists\r\n\t\t\tif(! $this->exists ()) {\r\n\t\t\t\techo \"Fatal Error: No record found with id of ($this->id)\";\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$sql = \"UPDATE $this->sqlTable SET \";\r\n\t\t\t\r\n\t\t\tif (isset ( $this->childid )) {\r\n\t\t\t\t$sql .= \"inh_childid = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->childid;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->parentid )) {\r\n\t\t\t\t$sql .= \"inh_parentid = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->parentid;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->order )) {\r\n\t\t\t\t$sql .= \"inh_order = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->order;\r\n\t\t\t}\r\n\r\n\t\t\t$sql = preg_replace ( '/, $/', '', $sql);\r\n\t\t\t$sql .= \" WHERE = ?\";\r\n\t\t\t$arrBindings[] = $this->id;\r\n\t\t\t\r\n\t\t\t$ks_db->query ( $sql, $arrBindings );\r\n\t\r\n\t\t\t$ks_db->commit ();\r\n\t\t\t\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2d2c74e0084b609523ca63dbc20c4a71", "score": "0.51033306", "text": "public function testUpdateMultipleFieldsArray(): void\n {\n $query = new UpdateQuery($this->connection);\n $query->update('articles')\n ->set([\n 'title' => 'mark',\n 'body' => 'some text',\n ], ['title' => 'string', 'body' => 'string'])\n ->where(['id' => 1]);\n $result = $query->sql();\n\n $this->assertQuotedQuery(\n 'UPDATE <articles> SET <title> = :c0 , <body> = :c1',\n $result,\n !$this->autoQuote\n );\n $this->assertQuotedQuery('WHERE <id> = :', $result, !$this->autoQuote);\n\n $result = $query->execute();\n $this->assertSame(1, $result->rowCount());\n $result->closeCursor();\n }", "title": "" }, { "docid": "776a0753ab9b055b88a2721a0365dfc0", "score": "0.5099358", "text": "public function update($arr)\n {\n }", "title": "" }, { "docid": "f1eac42079f48a557c05a0b9baa9b3c0", "score": "0.50922036", "text": "protected function update($data) \n\t{\n\n\t\t//extract all our data into easy to use variables arr[\"keyname\"] => $keyname\n\t\textract($data);\n\n\t\t//sanity checking\n\t\tif (!$object_type) \n\t\t{\n\n\t\t\t//try to pull object type from our objectinfo if not set\n\t\t\tif ($this->objectInfo) $object_type = $this->objectInfo[\"object_type\"];\n\t\t\telse \n\t\t\t{\n\t\t\t\t$this->throwError(_I18N_OBJECT_TYPE_ERROR);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\tif (!$this->objectId) \n\t\t{\n\t\t\t$this->throwError(_I18N_OBJECT_ID_ERROR);\n\t\t\treturn false;\n\t\t}\n\n\t\t//check to see if it's locked\n\t\t$l = new DOCMGR_UTIL_LOCK($this->objectId);\n\n \tif ($l->isLocked())\n \t{\n \t\t$this->throwError(_I18N_OBJECT_LOCKED_ERROR);\n \t\treturn false;\n \t} \n \n\t\t//make sure there isn't already an object with this name (if we are renaming)\n\t\tif ($name && !checkObjName($name,$parent_id,$this->objectId)) \n\t\t{\n\t\t\t$this->throwError(_I18N_OBJECT_EXISTS_ERROR);\n\t\t\treturn false;\n\t\t}\n\n\t\t//if it's \"No summary available\", blank it\n\t\tif ($summary==_NO_SUMMARY_AVAIL) $summary = null;\n\n\t\t//add in the object path\n\t\t$data[\"object_directory\"] = $this->getObjectDir();\n\n\t\t$this->DB->begin();\n\n\t\t//insert into the main object table\n\t\t$option = null;\n\t\tif ($name) $option[\"name\"] = trim($name);\n\t\tif ($summary) $option[\"summary\"] = $summary;\n\t\t$option[\"last_modified\"] = date(\"Y-m-d H:i:s\");\n\t\t$option[\"modified_by\"] = USER_ID;\n\t\t$option[\"where\"] = \"id='\".$this->objectId.\"'\";\n\t\t$this->DB->update(\"docmgr.dm_object\",$option);\n\n\t\tlogEvent('OBJ_PROP_UPDATE',$this->objectId);\n\n\t\t$this->DB->end();\n\n\n\t\t//look for db errors\n\t\t$err = $this->DB->error();\n\t\tif ($err) \n\t\t{\n\t\t\t$this->throwError($err);\n\t\t\treturn false;\n\t\t} \n\t\telse \n\t\t{\n\t\t\treturn $this->objectId;\n\t\t}\n\n\t}", "title": "" }, { "docid": "c0c2488567b345c51aab7503623fe2ed", "score": "0.50809044", "text": "function updateColl($collection,$arr,$ary)\n {\n\t$sdb = dbconnect();\n $coll = new MongoCollection($sdb,$collection);\n $data = $coll->update($arr,$ary,array('upsert'=>true));\n return $data;\n }", "title": "" }, { "docid": "71d09855617735eb302784c5e02c3022", "score": "0.50698453", "text": "function alq_mps_update_offices($rawNode, array $newDetails) {\n $node = entity_metadata_wrapper('node', $rawNode);\n $rawOffices = $node->field_office->value();\n $newOffices = $newDetails['offices'];\n $errors = 0;\n\n for ($i = 0, $l = count($newOffices); $i < $l; $i++) {\n if (isset($rawOffices[$i])) {\n $office = entity_metadata_wrapper('field_collection_item', $rawOffices[$i]);\n // In json there is an extra level of the array here so double shift\n // I'm sure there's a good reason for it.\n $newOffice = array_shift($newOffices[$i]);\n $fields = [\n 'field_address',\n 'field_fax',\n 'field_phone',\n 'field_postcode',\n 'field_toll_free_phone',\n ];\n\n foreach ($fields as $field) {\n if (property_exists($office, $field)) {\n $officeVal = $office->$field->value();\n $val = isset($newOffice[$field][LANGUAGE_NONE][0]['value']) ? $newOffice[$field][LANGUAGE_NONE][0]['value'] : NULL;\n $office->$field->set(is_array($officeVal) ? [$val] : $val);\n }\n }\n\n if (!$office->save()) {\n drush_log(dt('Unable to save office @office', ['@office' => json_encode($office)]), 'error');\n ++$errors;\n }\n }\n }\n\n return $errors === 0;\n}", "title": "" }, { "docid": "7fe755d4b9dd00aea081936c20a9e994", "score": "0.5038551", "text": "function update ($input_array, $where=false){\n\n $value = null;\n $error_detail = null;\n $assocUpdateArray = [];\n $required_missing = false;\n $this->sql_error = null;\n $this->db = MyPDO::instance(); //return a static instance of the PDO class for db connectivity\n \n if(!isset($this->table)||$this->table==''){ //check db table is set\n $this->sql_error = \"class.db:update() UPDATE operation was not possible because Table is missing\";\n $this->last_error = $this->sql_error; //set last_error property in table class so it can be retrieved on error\n return false;\n }\n \n if(!isset($input_array)){ //check input_array provided\n $this->sql_error = \"class.db:update() UPDATE operation was not possible because input_array is missing\";\n $this->last_error = $this->sql_error; //set last_error property in table class so it can be retrieved on error\n return false;\n }\n\n if(isset($where)){ //check where statement provided\n $where = str_ireplace('WHERE', '', $where); //remove 'where' non-case sensitive, because we add it later\n } else{\n $this->sql_error = \"class.db:update() UPDATE operation was not possible because WHERE statement is missing\";\n $this->last_error = $this->sql_error; //set last_error property in table class so it can be retrieved on error\n return false;\n }\n \n \n foreach ($this->fieldlist as $field => $var_field){ //process input_array to create sql statement\n\n $include = true; //add all fields by default\n $handle_null = false; //use to handle null values differently\n\n $find_key = $var_field['map'];\n $found = array_key_exists($find_key, $input_array); //return field mapping if key exists\n \n if($found){\n $value = empty($input_array[$find_key]) ? null : $input_array[$find_key]; //get value\n }else{\n $value = null; //no value found, set to null\n }\n \n if(isset($var_field['primary_key']) && empty($where)){ //no WHERE clause provided so default to primary key update\n $where = \"$field = $value\";\n $include = false; //do not include in sql update statement\n } \n \n if(isset($var_field['primary_key'])){ //remove for updates\n $include = false;\n continue; //skip to next field;\n }\n \n if(isset($var_field['autonumber'])){ //remove as this is an auto_number field\n $include = false;\n continue; //skip to next field\n }\n \n if($field=='created'){ //ignore - don't change created date for record\n $include = false;\n continue;\n }\n \n if(!$found && isset($var_field['override'])){\n $default = $var_field['default']; //set to default value as this is required but has not been found\n $value = $default;\n }\n \n \n if($field=='modified'){ //ensure timestamp is applied for modified and created\n $value = date('Y-m-d H:i:s');\n $include = true;\n }\n \n if(!$found && isset($var_field['required']) && $var_field['required']==true){ //required field is missing do not insert this record\n $required_missing = true;\n $error_detail .= \" Required field missing: $field \";\n }\n \n if(!$found){ //not found and didn't match any of above conditions - don't include and allow db to set defaults\n $include = false;\n }\n \n If(isset($var_field['datatype'])){ //set param type for PDO bindvalue - default to string\n if($var_field['datatype'] == 'integer'){\n $param = PDO::PARAM_INT;\n }else{\n $param = PDO::PARAM_STR; //default if nothing else set\n }\n }else{\n $param = PDO::PARAM_STR; //default if not set\n }\n \n if($include){ //write to array for PDO update\n $var = []; //reset array on each loop\n $var['field'] = $field;\n $var['value'] = $value;\n $var['param'] = $param;\n $var_bind[] = $var; //push values in to master array\n \n $assocUpdateArray[$field] = $value;//add value to array\n $set .= \"$field = :$field, \"; //add column to set sql statement \n }\n \n } //foreach\n \n \n if($required_missing == true){ //abort insert\n $this->sql_error = \"class.db:update() UPDATE operation was not possible because one or more mandatory fields are missing. $error_detail\";\n $this->last_error = $this->sql_error; //set last_error property in table class so it can be retrieved on error\n return false;\n }\n \n $setSql = rtrim($set, ', ');\n $sql = \"UPDATE $this->table SET $setSql WHERE $where;\";\n $stmt = $this->db->prepare($sql);\n //print_r($sql);\n \n foreach($var_bind as $var){ //bind values to placeholders\n //print_r($var);\n $field = $var['field'];\n $value = $var['value'];\n $param = $var['param'];\n \n $stmt->bindValue(\":$field\",$value,$param);\n }\n \n $stmt->execute();\n \n if(!$stmt){ //PDO update failed\n $this->sql_error = \"class.db:update() UPDATE operation failed when calling PDO execute\";\n $this->last_error = $this->sql_error; //set last_error property in table class so it can be retrieved on error\n return false;\n }\n \n return $stmt;\n\n}", "title": "" }, { "docid": "bbd79bcd3bde5fcf362a31bcb027fadc", "score": "0.50357336", "text": "private function __updateOne($options = []) {\n\t //$modified = $this->modified();\n\t //\\V::app()->log->debug('model_debug', print_r($modified, true));\n\n\t //\\V::app()->log->debug('Class: ' . get_called_class() . ': updated: ' . print_r($this->_updated, true));\n\n\t try {\n\t\t//update\n\t\t$__id = $this->_data['_id'];\n\t\tunset($this->_data['_id']);\n\t\t$result = self::_collection()->updateOne(['_id' => $__id ], [ '$set' => $this->_data ], $options);\n\t\t//bring back\n\t\t$this->_data['_id'] = $__id;\n\n\t\tif ($result->getModifiedCount() == 1) {\n\t\t $this->afterSave();\n\t\t return true;\n\t\t} else {\n\t\t return false;\n\t\t}\n\t } catch (MongoDB\\Driver\\Exception\\BulkWriteException $e) {\n\t\t//return $e;\n\t\treturn false;\n\t } catch (MongoDB\\Exception\\InvalidArgumentException $e) {\n\t\t//return $e;\n\t\treturn false;\n\t } catch (MongoDB\\Driver\\Exception\\RuntimeException $e) {\n\t\treturn false;\n\t }\n }", "title": "" }, { "docid": "ab552f1687f7a506a4ea446a98533e8f", "score": "0.5025658", "text": "protected static function _update($export) {\n\t\t$export += [\n\t\t\t'data' => [],\n\t\t\t'update' => [],\n\t\t\t'remove' => [],\n\t\t\t'rename' => [],\n\t\t\t'key' => ''\n\t\t];\n\t\t$path = $export['key'] ? \"{$export['key']}.\" : \"\";\n\t\t$result = ['update' => [], 'remove' => []];\n\t\t$left = static::_diff($export['data'], $export['update']);\n\t\t$right = static::_diff($export['update'], $export['data']);\n\n\t\t$objects = array_filter($export['update'], function($value) {\n\t\t\treturn (is_object($value) && method_exists($value, 'export'));\n\t\t});\n\t\tarray_map(function($key) use (&$left) { unset($left[$key]); }, array_keys($right));\n\n\t\tforeach ($left as $key => $value) {\n\t\t\t$result = static::_append($result, \"{$path}{$key}\", $value, 'remove');\n\t\t}\n\t\t$update = $right + $objects;\n\n\t\tforeach ($update as $key => $value) {\n\t\t\t$original = $export['data'];\n\t\t\t$isArray = is_object($value) && $value instanceof static::$_classes['set'];\n\n\t\t\t$options = [\n\t\t\t\t'indexed' => null,\n\t\t\t\t'handlers' => [\n\t\t\t\t\t'MongoDate' => function($value) { return $value; },\n\t\t\t\t\t'MongoId' => function($value) { return $value; }\n\t\t\t\t]\n\t\t\t];\n\n\t\t\tif ($isArray) {\n\t\t\t\t$newValue = $value->to('array', $options);\n\t\t\t\t$originalValue = null;\n\t\t\t\t$shouldConvert = (isset($original[$key]) && (\n\t\t\t\t\t$original[$key] instanceof static::$_classes['set'] ||\n\t\t\t\t\t$original[$key] instanceof static::$_classes['entity']\n\t\t\t\t));\n\t\t\t\tif ($shouldConvert) {\n\t\t\t\t\t$originalValue = $original[$key]->to('array', $options);\n\t\t\t\t}\n\t\t\t\tif ($newValue !== $originalValue) {\n\t\t\t\t\t$value = $newValue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$result = static::_append($result, \"{$path}{$key}\", $value, 'update');\n\t\t}\n\t\treturn array_filter($result);\n\t}", "title": "" }, { "docid": "32ef590741a83d9a9ef8b04f1299c852", "score": "0.50005645", "text": "protected function update()\n\t{\n\t\t// Update base query\n\t\t$this->base->update();\n\t\t\n\t\t// Copy fields from parent (base)\n\t\t$fields = array('root', 'params', 'keys', 'defaultParam', 'operation');\n\t\tforeach ($fields as $field)\n\t\t\t$this->$field = is_object($this->base->$field)\n\t\t\t\t? clone $this->base->$field\n\t\t\t\t: $this->base->$field;\n\t\t\n\t\t// Output fields need special care - not all fields should be copied\n\t\t$outputToCopy = array('rows', 'columns', 'fields');\n\t\tforeach ($outputToCopy as $field)\n\t\t\t$this->output->$field = is_object($this->base->output->$field)\n\t\t\t\t? clone $this->base->output->$field\n\t\t\t\t: $this->base->output->$field;\n\t}", "title": "" }, { "docid": "84a5fbd7e11d16e55977c372ed5f90b3", "score": "0.4992332", "text": "abstract public function updateAll($data_object);", "title": "" }, { "docid": "f116fe4269e08da0ed7f83c48e35d112", "score": "0.49787575", "text": "abstract protected function getUpdateSQL(PersistentObject $object): array;", "title": "" }, { "docid": "f974e81718990aeef9d1717b06494ec1", "score": "0.49689418", "text": "public function isDirty()\n {\n return !Utility::isSubSet($this->getArrayCopy() ,$this->originalData);\n }", "title": "" }, { "docid": "2d78153a5579035a74ff1a8aa59ab3cb", "score": "0.4966342", "text": "public function _update($data)\n {\n if (! $data)\n return FALSE;\n \n $data['updated_on'] = time();\n \n // If rid or key was set then use them for the where, otherwise return FALSE\n if (! empty($data['id']))\n $this->db->where('id', $data['id']);\n else \n if (! empty($data['rid']))\n $this->db->where('rid', $data['rid']);\n else\n return FALSE;\n \n $result = $this->db->update($this->table, $data);\n \n if ($result) {\n return array_to_object($data);\n }\n \n return $result;\n }", "title": "" }, { "docid": "aa9b7803217fe64dcd84acfa00e1ae65", "score": "0.492941", "text": "protected function afterUpdate()\r\n {\r\n /*\r\n if (!empty($this->__options['update_children']))\r\n {\r\n if ($children = $this->emptyState()->setState('filter.parent', $updated->id)->getItems())\r\n {\r\n foreach ($children as $child)\r\n {\r\n unset($child->ancestors);\r\n unset($child->path);\r\n $child->update(array(), array('update_children' => true));\r\n }\r\n }\r\n }\r\n */\r\n }", "title": "" }, { "docid": "e196bacf74c0c8460f4fa79ceecfa39b", "score": "0.49257296", "text": "public function test_recursiveReplacement()\n\t{\n\t\t$arr = Array(\n\t\t\t'foo'\t=> Array('bar' => Array('foo' => Array('foo')))\n\t\t);\n\t\t$rep = Array('bar' => Array('test' => Array('test')));\n\n\t\t$p = new ParamBag($arr);\n\t\t$p->recursiveReplace('foo', 'test');\n\n\t\t$this->assertEquals($rep, $p->test);\n\t}", "title": "" }, { "docid": "62a47c2b4c6f01f830f8a83f2ef9252c", "score": "0.49206308", "text": "function _mergeUpdated() {\n $data = $this->_prefixData($this->_updated);\n $this->_hydrate($data);\n //$this->_qualified = true;\n $this->_updated = array();\n }", "title": "" }, { "docid": "657c432cca004c42bf38733b54d838f0", "score": "0.4907806", "text": "function bsonSerialize() {\n /* temporary workaround for https://jira.mongodb.org/browse/PHPC-545 */\n $this->__pclass = new BSON\\Binary(get_class($this), BSON\\Binary::TYPE_USER_DEFINED);\n\n $props = $this->__getObjectData();\n\n /* If __original doesn't exist, this is a fresh object that needs to be inserted */\n if (empty($this->__original)) {\n /* Generate the `_created` timestamp */\n $datetime = new BSON\\UTCDatetime(microtime(true) * 1000);\n $props[\"_created\"] = $datetime;\n $this->_created = $datetime;\n\n return $props;\n }\n\n\n /* Otherwise, only pluck out the changes so we don't have to do full object replacement */\n $updated = array();\n $this->_bsonSerializeRecurs($updated, $props, $this->__original, \"\");\n\n if ($updated) {\n /* Track the last time this document was updated */\n $datetime = new BSON\\UTCDatetime(microtime(true) * 1000);\n $updated['$set'][\"_lastModified\"] = $datetime;\n $this->_lastModified = $datetime;\n $this->__original[\"_lastModified\"] = $datetime;\n\n return $updated;\n }\n\n /* No changes.. Why is this object being saved? */\n return array();\n }", "title": "" }, { "docid": "2fc973ea2e95d79f6223b382f474c133", "score": "0.48993024", "text": "public function updateObject(){\n DatabaseAdapter::updateObject($this->dataArray(), $this->DATA_TYPE);\n }", "title": "" }, { "docid": "deb42237d79a82c3a38fc7ededb6fcbc", "score": "0.48754278", "text": "public function testMultilineRecursiveAdditionRemovalModification7()\n {\n $original = [\n 'keyA' => [\n 0 => [\n 'keyB' => 'This is honey\n and who cares',\n 'keyC' => 'This is however, not apple',\n ],\n 1 => [\n 'keyB' => 'This is milk',\n 'keyC' => 'This is mango',\n ],\n 2 => 'a little sugar\n this line will be removed and you wont see it',\n ]\n ];\n $local = [\n 'keyA' => [\n 0 => [\n 'keyB' => 'This is honey',\n 'keyC' => 'This is however, not apple',\n ],\n 2 => 'a little sugar',\n 1 => [\n 'keyB' => 'This is milky milky',\n 'keyC' => 'This is mango',\n ],\n ]\n ];\n $remote = [\n 'keyA' => [\n 0 => [\n 'keyB' => 'This is updated and purified honey\n and who cares\n i dont',\n 'keyC' => 'This is apple',\n ],\n 1 => [\n 'keyB' => 'This is milk\n and I like milk',\n 'keyC' => 'This is changed because of remote',\n ],\n 2 => 'a little new something',\n ]\n ];\n\n $expected = [\n 'keyA' => [\n 0 => [\n 'keyB' => 'This is updated and purified honey\n i dont',\n 'keyC' => 'This is apple',\n ],\n 1 => [\n 'keyB' => 'This is milky milky\n and I like milk',\n 'keyC' => 'This is changed because of remote',\n ],\n 2 => 'a little new something',\n ]\n ];\n $merge = new ThreeWayMerge();\n $result = $merge->performMerge($original, $local, $remote);\n $this->assertEquals($expected, $result);\n }", "title": "" }, { "docid": "851e33b54c0fe0682ea428c3c84c3145", "score": "0.48646086", "text": "protected function update()\n\t{\n\t\tparent::update();\n\t\t\n\t\t// Copy all keys from all children\n\t\t$this->keys = new \\StdClass();\n\t\tforeach ($this->children as $child)\n\t\t\tforeach ($child->keys as $key => $field)\n\t\t\t\t$this->keys->$key = $field;\n\t\t\t\t\n\t\t// Copy default param only if every child has the same default param\n\t\t$defaultParam = $this->children[0]->defaultParam;\n\t\t$diff = false;\n\t\tforeach ($this->children as $child)\n\t\t\tif ($child->defaultParam != $defaultParam)\n\t\t\t\t$diff = true;\n\t\t\n\t\tif (!$diff)\n\t\t\t$this->defaultParam = $defaultParam;\n\t}", "title": "" }, { "docid": "6a1f8fa5889f213747ed7db711bf6922", "score": "0.4863443", "text": "public function testRecursiveKeyValue()\n {\n $original = [\n 'keyA' => [\n 0 => [\n 'keyB' => 'This is honey',\n 'keyC' => 'This is apple',\n ],\n 1 => [\n 'keyB' => 'This is milk',\n 'keyC' => 'This is mango',\n ],\n 2 => 'a little sugar',\n ]\n ];\n\n $local = [\n 'keyA' => [\n 0 => [\n 'keyB' => 'This is honey',\n 'keyC' => 'This is however, not apple',\n ],\n 1 => [\n 'keyB' => 'This is changed because of local',\n 'keyC' => 'This is mango',\n ],\n 2 => 'a little sugar',\n ]\n ];\n\n $remote = [\n 'keyA' => [\n 0 => [\n 'keyB' => 'This is not honey',\n 'keyC' => 'This is apple',\n ],\n 1 => [\n 'keyB' => 'This is milk',\n 'keyC' => 'This is changed because of remote',\n ],\n 2 => 'a little new something',\n ]\n ];\n $merge = new ThreeWayMerge();\n $result = $merge->performMerge($original, $local, $remote);\n $expected = [\n 'keyA' => [\n 0 => [\n 'keyB' => 'This is not honey',\n 'keyC' => 'This is however, not apple',\n ],\n 1 => [\n 'keyB' => 'This is changed because of local',\n 'keyC' => 'This is changed because of remote',\n ],\n 2 => 'a little new something',\n ]\n ];\n $this->assertEquals($expected, $result);\n }", "title": "" }, { "docid": "f018cbe2c86253741e561b04e7ef77c9", "score": "0.4848428", "text": "static function update($arr) {\n $name = Utils::get_or_default($arr, 'name');\n $typeId = Utils::get_or_default($arr, 'typeId');\n $db = self::get_connection();\n $db->begin_transaction();\n $query = $db->prepare(static::SQL_UPDATE);\n $query->bind_param('sii', $name, $typeId, $arr['id']);\n $query->execute();\n if ($db->errno) {\n $db->rollback();\n return $db->error;\n }\n $query->close();\n\n if (isset($arr['coordinates'])) {\n // Delete the existing coordinates before inserting new ones\n $query = $db->prepare(static::SQL_DELETE_COORDS);\n $query->bind_param('i', $arr['id']);\n $query->execute();\n $query->close();\n if ($db->errno || !static::set_coordinates($arr['id'], $arr['coordinates'])) {\n $db->rollback();\n return $db->error;\n }\n }\n $db->commit();\n return static::get_by_id($arr['id']);\n }", "title": "" }, { "docid": "e09a88e47fa1a3eb79c1bf590e31b931", "score": "0.48382542", "text": "static function updateDirty ( DomainObject $obj ) {\n\t\t//instantiate ObjectWatcher\n\t\t$inst = self::instance();\n\t\t//replace dirty array with cached dirty array\n\t\t$inst->dirty = $inst->memcache->get('dirty');\n\t\t//locks array or returns false\n\t\tif ($inst->memcache->lock($inst->globalKey( $obj ), 60) ){\n\t\t\t//if in array, updates with new variable\n\t\t\tif ( in_array ( $obj, $inst->dirty, true ) ) {\n\t\t\t\t$inst->dirty[$inst->globalKey( $obj )] = $obj;\n\t\t\t\t$inst->memcache->replace('dirty', $inst->dirty);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$inst->memcache->unlock($inst->globalKey ($obj ));\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t//unlocks key\n\t\t\t$inst->memcache->unlock($inst->globalKey ($obj ));\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\t$inst->memcache->unlock($inst->globalKey ($obj ));\n\t\t\treturn false;\n\t\t}\n\t\t$inst->add( $obj );\n\t}", "title": "" }, { "docid": "a3d86190b29ef3bac57af178cf11ef23", "score": "0.48236442", "text": "function modifyDataArrForFormUpdate($inputArr) {\n\t\tif (is_array($this->conf[$this->cmdKey.'.']['evalValues.'])) {\n\t\t\treset($this->conf[$this->cmdKey.'.']['evalValues.']);\n\t\t\t \n\t\t\twhile (list($theField, $theValue) = each($this->conf[$this->cmdKey.'.']['evalValues.'])) {\n\n\t\t\t\t$listOfCommands = t3lib_div::trimExplode(',', $theValue, 1);\n\t\t\t\twhile (list(, $cmd) = each($listOfCommands)) {\n\t\t\t\t\t$cmdParts = split(\"\\[|\\]\", $cmd); // Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.\n\t\t\t\t\t$theCmd = trim($cmdParts[0]);\n\t\t\t\t\tswitch($theCmd) {\n\t\t\t\t\t\tcase 'twice':\n\t\t\t\t\t\tif (isset($inputArr[$theField])) {\n\t\t\t\t\t\t\tif (!isset($inputArr[$theField.'_again'])) {\n\t\t\t\t\t\t\t\t$inputArr[$theField.'_again'] = $inputArr[$theField];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$this->additionalUpdateFields .= ','.$theField.'_again';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t \n\t\tif (is_array($this->conf['parseValues.'])) {\n\t\t\treset($this->conf['parseValues.']);\n\t\t\twhile (list($theField, $theValue) = each($this->conf['parseValues.'])) {\n\t\t\t\t$listOfCommands = t3lib_div::trimExplode(',', $theValue, 1);\n\t\t\t\twhile (list(, $cmd) = each($listOfCommands)) {\n\t\t\t\t\t$cmdParts = split(\"\\[|\\]\", $cmd); // Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.\n\t\t\t\t\t$theCmd = trim($cmdParts[0]);\n\t\t\t\t\tswitch($theCmd) {\n\t\t\t\t\t\tcase 'multiple':\n\t\t\t\t\t\tif (isset($inputArr[$theField]) && !$this->isPreview()) {\n\t\t\t\t\t\t\t$inputArr[$theField] = explode(',', $inputArr[$theField]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'checkArray':\n\t\t\t\t\t\tif ($inputArr[$theField] && !$this->isPreview()) {\n\t\t\t\t\t\t\tfor($a = 0; $a <= 30; $a++) {\n\t\t\t\t\t\t\t\tif ($inputArr[$theField] & pow(2, $a)) {\n\t\t\t\t\t\t\t\t\t$alt_theField = $theField.']['.$a;\n\t\t\t\t\t\t\t\t\t$inputArr[$alt_theField] = 1;\n\t\t\t\t\t\t\t\t\t$this->additionalUpdateFields .= ','.$alt_theField;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$inputArr = $this->userProcess_alt($this->conf['userFunc_updateArray'], $this->conf['userFunc_updateArray.'], $inputArr );\n\t\treturn $inputArr;\n\t}", "title": "" }, { "docid": "7fcd4201dbeeeae7dbb5fc03b3ae76e7", "score": "0.4818337", "text": "public function update(DBObject $object){\r\n \r\n return $this->abstractUpdate($object);\r\n }", "title": "" }, { "docid": "c14361761830a5943221e89e1ce53339", "score": "0.48175153", "text": "abstract protected function updateObject(UllFlowDoc $doc);", "title": "" }, { "docid": "592398dfe6d4e25c2f9f51fd864747a3", "score": "0.481737", "text": "public function testUpdateCityWhenWrongFieldArrayAsParameter()\n {\n \t$bResult = Doctrine::getTable('Model_City')->UpdateCity($this->amWrongUpdateFieldData);\n $this->assertEquals(0,false, count($bResult));\n }", "title": "" }, { "docid": "2064cf997c6e0a267efcd51b723ae237", "score": "0.48135903", "text": "public function testFilterArrayRecursive() {\n $message = 'Empty elements removed from nested array';\n $input = [\n 'to_keep' => '1',\n 'to_keep_nested' => ['2'],\n 'to_remove' => '',\n 'to_remove_nested' => [],\n ];\n $expected = [\n 'to_keep' => '1',\n 'to_keep_nested' => ['2'],\n ];\n $output = $this->dvfHelpers->filterArrayRecursive($input);\n\n $this->expectedEqualOutput($message, $expected, $output);\n }", "title": "" }, { "docid": "263b9df39cd885d29276221f934d14f0", "score": "0.48130628", "text": "public function testInsertDeepPath(): void\n {\n $items = [\n 'a' => ['name' => 'Derp', 'a' => ['deep' => ['thing' => 1]]],\n 'b' => ['name' => 'Derpina', 'a' => ['deep' => ['thing' => 2]]],\n ];\n $values = new ArrayIterator([20, 21]);\n $iterator = new InsertIterator($items, 'a.deep.path', $values);\n $result = $iterator->toArray();\n $expected = [\n 'a' => ['name' => 'Derp', 'a' => ['deep' => ['thing' => 1, 'path' => 20]]],\n 'b' => ['name' => 'Derpina', 'a' => ['deep' => ['thing' => 2, 'path' => 21]]],\n ];\n $this->assertSame($expected, $result);\n }", "title": "" }, { "docid": "5bb47b126c007c031ddcfcedd797ee45", "score": "0.48003358", "text": "protected function update()\n\t{\n\t\tparent::update();\n\t\t\n\t\t// Copy all keys from all children\n\t\t$this->keys = new \\StdClass();\n\t\tforeach ($this->children as $child)\n\t\t\tforeach ($child->keys as $key => $field)\n\t\t\t\t$this->keys->$key = $field;\n\t\t\n\t\t// Copy root from first child\n\t\t$this->root = $this->children[ 0 ]->root;\n\t\t\n\t\t// Copy defaultParam from last child\n\t\t$lastChild = $this->children[ count($this->children) - 1 ];\n\t\t$this->defaultParam = $lastChild->defaultParam;\n\t}", "title": "" }, { "docid": "4ed7f0bf9aa142128c36bb9dae3773ca", "score": "0.4790652", "text": "public function Update(object $dataObject) : bool;", "title": "" }, { "docid": "fa17a96ab6be2f15262cd000d1bc99ad", "score": "0.4788705", "text": "public function getUpdateCriteria(EntityInterface $entity, $isSubDocument = false)\n {\n $result = array('$set' => array(), '$unset' => array());\n $primaryProperty = null;\n\n // primary _id property\n if ($primary = array_keys($entity->primary())) {\n list($primaryProperty) = $primary;\n }\n\n // if nothing is dirty, there's nothing to do, exit early\n if (!$properties = $entity->dirty()) {\n return array();\n }\n\n // the dirty properties should return their values with the second argument as true...\n if (!$dirty = $entity->export($properties, true)) {\n throw new Exception\\InvalidArgumentException('$entity is dirty but export() returns no values');\n }\n\n foreach ($dirty as $property => $value) {\n // never update the primary property (_id), won't work anyway\n if (!$isSubDocument && $primaryProperty == $property) {\n continue;\n }\n\n $type = $entity->type($property);\n\n // child entity, use recursion to populate\n if ($type instanceof EntityType) {\n $child = $entity->property($property)->getValue();\n\n // if an entity is cleared out and marked as dirty, unset the mongo property\n if ($this->isDirtyEntityEmpty($child)) {\n $result['$unset'][$property] = true;\n continue;\n }\n\n // combine the sub-document $sets/$unsets with ours, using dot notation to drill in\n $sub = $this->getUpdateCriteria($child, true);\n foreach ($sub as $action => $actions) {\n foreach ($actions as $subProperty => $subValue) {\n $result[$action][$property . '.' . $subProperty] = $subValue;\n }\n }\n continue;\n }\n\n // is the property being unset?\n if ($type->export($value) === $type->getUnsetValue()) {\n $result['$unset'][$property] = true;\n continue;\n }\n\n // return the date object for MongoDate\n if ($type instanceof DateTimeType) {\n $value = $this->dateType->parse($value);\n }\n\n $result['$set'][$property] = $value;\n }\n\n // mongo will panic with an empty $set or $unset\n foreach ($result as $action => $actions) {\n if (empty($result[$action])) {\n unset($result[$action]);\n }\n }\n\n return $result;\n }", "title": "" }, { "docid": "1bd761f6255464120c021dcdc9cac193", "score": "0.47814885", "text": "public function updateTable($nhtc3ee137d4f22eb06ed1351d644f3674592c90836, $nhta17c9aaa61e80a1bf71d0d850af4e5baa9800bbd, $nht46148cc3b4d2b3ac8073f14b0cba7f25ffff54bd, $nht90a6864ee01cee93dd6481f0a0f425cc864d6e49 = array()){\n $nht572acd09a7bf3c52578d417ba44fd6e983404594 = $this->arrayToUpdateQueryObject($nhta17c9aaa61e80a1bf71d0d850af4e5baa9800bbd, $nht90a6864ee01cee93dd6481f0a0f425cc864d6e49);\n if(!$nht572acd09a7bf3c52578d417ba44fd6e983404594){\n return false;\n }\n $nht4debe7a36ca91b3dad55f5650a56fd09734f5276 = $this->arrayToWhereCondition($nht46148cc3b4d2b3ac8073f14b0cba7f25ffff54bd);\n $nht2cb0b78846e0a65d35a4cd02d3cb9710abda4912 = $this->getTableName($nhtc3ee137d4f22eb06ed1351d644f3674592c90836);\n $nht7cd9148ec5a552dbf68de5a6debcf8e4d974db72 = \"UPDATE {$nht2cb0b78846e0a65d35a4cd02d3cb9710abda4912} SET {$nht572acd09a7bf3c52578d417ba44fd6e983404594} WHERE {$nht4debe7a36ca91b3dad55f5650a56fd09734f5276}\";\n try{\n $this->_db->query($nht7cd9148ec5a552dbf68de5a6debcf8e4d974db72, $nhta17c9aaa61e80a1bf71d0d850af4e5baa9800bbd);\n return true;\n }catch (\\Exception $nht58e6b3a414a1e090dfc6029add0f3555ccba127f){\n if(Custom::DEV_MODE){\n $nht6f9b9af3cd6e8b8a73c2cdced37fe9f59226e27d = \"LitExtension_CartImport_Model_Cart::updateTable() error: \" . $nht58e6b3a414a1e090dfc6029add0f3555ccba127f->getMessage();\n// $this->_logger->addError($nht6f9b9af3cd6e8b8a73c2cdced37fe9f59226e27d);\n }\n return false;\n }\n }", "title": "" }, { "docid": "030ae5dd1c2139bd692e5eea3015057e", "score": "0.47773924", "text": "public function update($data) {\n\t\tif (isset($data['rates'])) {\n\t\t\t$plansColl = Billrun_Factory::db()->plansCollection();\n\t\t\t$currentDate = new MongoDate();\n\t\t\t$rates = $data['rates'];\n\t\t\t//convert plans\n\t\t\tforeach ($rates as &$rate) {\n\t\t\t\tif (isset($rate['plans'])) {\n\t\t\t\t\t$sourcePlans = (array) $rate['plans']; // this is array of strings (retreive from client)\n\t\t\t\t\t$newRefPlans = array(); // this will be the new array of DBRefs\n\t\t\t\t\tunset($rate['plans']);\n\t\t\t\t\tforeach ($sourcePlans as &$plan) {\n\t\t\t\t\t\tif (MongoDBRef::isRef($plan)) {\n\t\t\t\t\t\t\t$newRefPlans[] = $plan;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$planEntity = $plansColl->query('name', $plan)\n\t\t\t\t\t\t\t\t\t\t\t->lessEq('from', $currentDate)\n\t\t\t\t\t\t\t\t\t\t\t->greaterEq('to', $currentDate)\n\t\t\t\t\t\t\t\t\t\t\t->cursor()->setReadPreference(Billrun_Factory::config()->getConfigValue('read_only_db_pref'))->current();\n\t\t\t\t\t\t\t$newRefPlans[] = $planEntity->createRef($plansColl);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$rate['plans'] = $newRefPlans;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$data['rates'] = $rates;\n\t\t}\n\n\t\treturn parent::update($data);\n\t}", "title": "" }, { "docid": "475ab16bd4fd8180a7859e7d97c7ba75", "score": "0.4768575", "text": "public function test_update() {\n $arr1 = array(1, 2, 3, 'color' => 'red', 'shape'=> 'circle');\n $arr2 = array(4, 5, 'color' => 'blue', 'height' => '100');\n Core_Arrays::update($arr1, $arr2);\n $this->\n assert_equal(\n $arr1,\n array(4, 5, 3, 'color' => 'blue', 'shape' => 'circle')\n );\n }", "title": "" }, { "docid": "b6cbff6a8ad2440404aa3864be402494", "score": "0.4762033", "text": "protected function update()\n\t{\n\t\tparent::update();\n\t\t\n\t\t// Copy all keys from all children\n\t\t$this->keys = new \\StdClass();\n\t\tforeach ($this->children as $child)\n\t\t\tforeach ($child->keys as $key => $field)\n\t\t\t\t$this->keys->$key = $field;\n\t\t\n\t\t// Copy other fields from first child\n\t\t$this->root \t\t= $this->children[ 0 ]->root;\n\t\t$this->defaultParam\t= $this->children[ 0 ]->defaultParam;\n\t\t$this->output\t\t= clone $this->children[ 0 ]->output;\n\t}", "title": "" }, { "docid": "53805824eddc94dc74f2b036c9336663", "score": "0.47577667", "text": "public function update ($arr)\n {\n $update = 'UPDATE `' . $this->table . '` SET ';\n foreach( $arr as $key => $value ){\n $update .= \"$key='$value', \";\n }\n $update = mb_substr($update,0,-2);\n // this var sql\n $this->sql = $update;\n // return obj\n return $this;\n }", "title": "" }, { "docid": "b9b5c2a53c7911f8696036df64a3bd50", "score": "0.47451895", "text": "function validateUpdateInput($array) {\n\trequiredField(\"id\", $array);\n\t// Check products\n\tif (array_key_exists(\"products\", $array)) {\n\t\tforeach ($array[\"products\"] as $index => $product) {\n\t\t\trequiredField(\"id\", $product, \"product at index $index\");\n\t\t}\n\t}\n}", "title": "" }, { "docid": "a728f81883182d5621cca1b857fd07cb", "score": "0.47435665", "text": "public function isValid($deep = false, $hooks = true) {\n\n if (!$this->_table->getAttribute(Doctrine_Core::ATTR_VALIDATE)) {\n return true;\n }\n\n if ($this->_state == self::STATE_LOCKED || $this->_state == self::STATE_TLOCKED) {\n return true;\n }\n\n /*\n * Check if the data has changed since last validation, and only validate\n * our own data if it has not. We will still go deep in case child data\n * has changed\n */\n //$validateData = $this->exists() ? $this->getModified() : $this->getData();\n $validateData = $this->getData();\n if (count(array_diff_assoc($validateData, $this->_validatedData))) {\n\n if ($hooks) {\n $this->invokeSaveHooks('pre', 'save');\n $this->invokeSaveHooks('pre', $this->exists() ? 'update' : 'insert');\n }\n\n // Clear the stack from any previous errors.\n $this->getErrorStack()->clear();\n\n // Run validation process\n $event = new Doctrine_Event($this, Doctrine_Event::RECORD_VALIDATE);\n $this->preValidate($event);\n $this->getTable()->getRecordListener()->preValidate($event);\n\n if (!$event->skipOperation) {\n //begin Kohana validation for this record\n //$validateData = $this->exists() ? $this->getModified() : $this->getData();\n $validateData = $this->getData();\n\n //@todo: Consider how to temporarily remove validation rules to allow validation of just modified data\n\n $validator = $this->getValidator();\n $validator->exchangeArray($validateData);\n\n //add the messages to the error stack\n //@todo: Check whether this record class has any validation rules configured. If not it automatically passes this stage\n if (!$validator->check()) {\n //@todo: Consider possibility of supporting multiple messages per field\n //@todo: Consider whether to store error stackk as native and allow application-level control of message display\n $errors = $validator->errors($this->_validationMessageFile);\n //throw new Exception(Kohana::dump($errors) . Kohana::dump($validateData));\n $stack = $this->getErrorStack();\n foreach ($errors as $field=>$error) {\n $stack->add($field, $error);\n }\n }\n\n $this->validate();\n if ($this->_state == self::STATE_TDIRTY || $this->_state == self::STATE_TCLEAN) {\n $this->validateOnInsert();\n } else {\n $this->validateOnUpdate();\n }\n $this->_validatedData = $validateData;\n }\n\n $this->getTable()->getRecordListener()->postValidate($event);\n $this->postValidate($event);\n }\n\n $valid = $this->getErrorStack()->count() == 0 ? true : false;\n if ($deep) { //run deep whether valid or not\n $stateBeforeLock = $this->_state;\n $this->_state = $this->exists() ? self::STATE_LOCKED : self::STATE_TLOCKED;\n\n foreach ($this->_references as $reference) {\n if ($reference instanceof Doctrine_Record) {\n $valid = $reference->isValid($deep) && $valid;\n } else if ($reference instanceof Doctrine_Collection) {\n foreach ($reference as $record) {\n $valid = $record->isValid($deep) && $valid;\n }\n }\n }\n $this->_state = $stateBeforeLock;\n }\n\n return $valid;\n }", "title": "" }, { "docid": "fb8fc83e39fac911b2fc24b43af9d925", "score": "0.47431117", "text": "public function update_subcategory_bid_order_given_assoc_array($new_data){\n $this->db->trans_begin();\n \n foreach($new_data as $subcategory_bid_order_id => $new_bid_order){\n $data = [\"bidOrder\" => $new_bid_order];\n $this->db->where('subcategoryBidOrderId', $subcategory_bid_order_id);\n $this->db->update('subcategory_bid_order', $data);\n }\n \n if($this->db->trans_status() === FALSE){\n $this->db->trans_rollback();\n return FALSE;\n }else{\n $this->db->trans_commit();\n return TRUE;\n }\n }", "title": "" }, { "docid": "811ea39016c7953e16a9903b8d5b79ec", "score": "0.47369865", "text": "public final function makeChanges(array $arr) {\n $columns = $this->getDBTable()->getCamelColumns();\n $ids = (array)($this->getIDColumns());\n foreach ($arr as $key => $value) {\n if (in_array($key, $columns) && (!in_array($key, $ids)))\n $this->$key = ($value === null) ? null : str_replace(\"\\r\\n\", \"\\n\", stripslashes($value));\n }\n $this->dirty = true;\n }", "title": "" }, { "docid": "cf0be4c50f3f880dc9501c7e7814f773", "score": "0.4736968", "text": "public function convertOldFieldsToNew($dataObject, $newStructure)\n {\n // indeces, make a standard array() so the json\n // doesn't get parsed as a hash.\n // we do this by grabbing an array of a) all keys in\n // $newStructure, then b) remove all non-numeric keys.\n // if the count if a == b, generate an array with\n // numerical keys, otherwise make it an object\n $newStrutureArrayKeys = array_keys($newStructure);\n\n // Count of array keys, and numerical array\n // keys is the same, so make an array()\n if (array_filter($newStrutureArrayKeys, 'is_numeric') == $newStrutureArrayKeys) {\n $newDataObject = array();\n }\n // There is at least one non-numeric key\n // in the array, so make an object using\n // keys as properties\n else {\n $newDataObject = new \\stdClass();\n }\n\n foreach ($newStructure as $field => $value) {\n // $value is an array, could be either\n // associative or numeric array, at this\n // point we don't care\n if (is_array($value)) {\n // run $value through convertOldFieldsToNew\n // recursively until all levels have been\n // assigned the appropriate values from the\n // original $dataObject\n // If $newDataObject is an array (see above),\n // add the return to an array using $field as\n // the key, otherwise, add to an object using\n // $field as the property name\n if (is_array($newDataObject)) {\n // $newDataObject is an array, so treat\n // it like one\n $newDataObject[$field] = $this->convertOldFieldsToNew($dataObject, $value);\n } else {\n // $newDataObject is an object, so treat\n // it like one\n $newDataObject->{$field} = $this->convertOldFieldsToNew($dataObject, $value);\n }\n }\n // $value is not an array, so just add it to \n // $newDataObject as-is\n else {\n // temporary storage in $newValue,\n // we use this to traverse our array\n $newValue = $dataObject;\n\n // Get an array of keys we have to\n // recursively parse to get the value\n // we need from the original $dataObject\n $valueMap = explode('->', $value);\n\n for ($i = 0; $i < count($valueMap); ++$i) {\n // entry exists in $dataObject, so assign it\n // to $newValue so we can continue\n if (isset($newValue->{$valueMap[$i]}) && $newValue->{$valueMap[$i]} !== '') {\n $newValue = $newValue->{$valueMap[$i]};\n } else {\n // value does not exist, so just set null\n // and break\n unset($newValue);\n $newValue = null;\n break;\n }\n }\n\n // only add $newValue to our $newDataObject\n // if it is not a null value\n if (!is_null($newValue)) {\n // same as above, $newDataObject could\n // be either an array or object, treat\n // it accordingly\n if (is_array($newDataObject)) {\n $newDataObject[$field] = $newValue;\n } else {\n $newDataObject->{$field} = $newValue;\n }\n }\n\n // remove temporary storage variables to\n // release memory\n unset($valueMap, $newValue);\n }\n }\n\n // we're done! return our $newDataObject!\n return $newDataObject;\n }", "title": "" }, { "docid": "7a6103d1951703c3f8567c24ebbfc517", "score": "0.47361004", "text": "private function update()\n {\n $this->id = $this->get_existing_record_id();\n\n // Update first the parent obj.\n $this->update_parent_obj();\n\n /* Update the child obj. */\n global $database;\n //uki2\n //\n $this->notification_id = $this->id;\n $attributes = $this->get_sanitized_uninherited_attributes();\n $attribute_pairs = array();\n\n foreach ($attributes as $key => $value) {\n $attribute_pairs[] = \"{$key}='{$value}'\";\n }\n\n $query = \"UPDATE \" . self::$table_name . \" SET \";\n $query .= join(\", \", $attribute_pairs);\n\n\n $query .= \" WHERE rateable_item_id = {$this->rateable_item_id}\";\n $query .= \" AND notification_id = {$this->notification_id}\";\n\n\n // Start transaction.\n if (!$database->start_transaction()) {\n return false;\n }\n\n $database->get_result_from_query($query);\n\n //\n $is_update_ok = ($database->get_num_of_affected_rows() == 1) ? true : false;\n\n\n //\n if ($is_update_ok) {\n //\n if (!$database->commit()) {\n return false;\n }\n\n //\n return true;\n } else {\n //\n $database->rollback();\n\n //\n return false;\n }\n\n }", "title": "" }, { "docid": "fdc63da329b93c9bf93f4a41530e7cf3", "score": "0.4733577", "text": "public function update()\n {\n $snapshot = $this->_snapshot;\n if ($snapshot === false) {\n throw new PreconditionException(['update failed: `:model` instance is snapshot disabled', 'model' => static::class]);\n }\n\n $primaryKeyValuePairs = $this->_getPrimaryKeyValuePairs();\n\n $fields = $this->getFields();\n\n $changedFields = [];\n foreach ($fields as $field) {\n if ($this->$field === null) {\n /** @noinspection NotOptimalIfConditionsInspection */\n if (isset($snapshot[$field])) {\n $changedFields[] = $field;\n }\n } elseif (!isset($snapshot[$field])) {\n $changedFields[] = $field;\n } elseif ($snapshot[$field] !== $this->$field) {\n if (is_string($this->$field) && !is_string($snapshot[$field]) && (string)$snapshot[$field] === $this->$field) {\n $this->$field = $snapshot[$field];\n } else {\n $changedFields[] = $field;\n }\n }\n }\n\n if (!$changedFields) {\n return $this;\n }\n\n $this->validate($changedFields);\n\n foreach ($this->getAutoFilledData(self::OP_UPDATE) as $field => $value) {\n if (in_array($field, $fields, true)) {\n $this->$field = $value;\n }\n }\n\n $this->fireEvent('model:beforeSave');\n $this->fireEvent('model:beforeUpdate');\n\n $fieldValues = [];\n foreach ($fields as $field) {\n if ($this->$field === null) {\n if (isset($snapshot[$field])) {\n $fieldValues[$field] = null;\n }\n } elseif (!isset($snapshot[$field]) || $snapshot[$field] !== $this->$field) {\n $fieldValues[$field] = $this->$field;\n }\n }\n\n foreach ($primaryKeyValuePairs as $key => $value) {\n unset($fieldValues[$key]);\n }\n\n if (!$fieldValues) {\n return $this;\n }\n\n foreach ($this->getJsonFields() as $field) {\n if (isset($fieldValues[$field]) && is_array($fieldValues[$field])) {\n $fieldValues[$field] = json_encode($fieldValues[$field], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);\n }\n }\n\n $query = static::query(null, $this)->where($primaryKeyValuePairs);\n $query->update($fieldValues);\n\n $expressionFields = [];\n foreach ($fieldValues as $field => $value) {\n if ($value instanceof ExpressionInterface) {\n $expressionFields[] = $field;\n }\n }\n\n if ($expressionFields && $rs = $query->select($expressionFields)->fetch(true)) {\n foreach ((array)$rs[0] as $field => $value) {\n $this->$field = $value;\n }\n }\n\n $this->_snapshot = $this->toArray();\n\n $this->fireEvent('model:afterUpdate');\n $this->fireEvent('model:afterSave');\n\n return $this;\n }", "title": "" }, { "docid": "140197b8a513a529129ad43b496d7f1d", "score": "0.4730356", "text": "public function testShouldCleanMultidimensionalArrayKeys()\n {\n $sanitized = QueryParser::sanitize([\n '\"double\"' => [\n '\"double child\"' => ''\n ],\n 'im-a string/with.underscores' => ''\n ]);\n $match = [\n 'double' => [\n 'double_child' => ''\n ],\n 'im_a_string_with.underscores' => ''\n ];\n\n $this->assertEquals($match, $sanitized);\n }", "title": "" }, { "docid": "848fb6e35ef2f1701688692b47fe4178", "score": "0.4725562", "text": "public function update(array $input);", "title": "" }, { "docid": "79f5de73c11690faf12ebda17d945b60", "score": "0.47199968", "text": "function compareObjects($base, $updated) {\n // While PHP has array_diff(), this compares the keys of an array, not their values\n // Returns a new array of objects, containing only the new fields\n\n $output = [];\n foreach($base as $key => $value) {\n // Find the matching key in the 'new' array\n if(isset($updated[$key])) {\n if($value!=$updated[$key]) {\n $output[$key] = $value;\n }\n unset($updated[$key]);\n }\n }\n // We also want to include any remaining elements not listed in $base.\n // Since we were removing found elements from $updated, we can just merge them.\n return array_merge($output, $updated);\n }", "title": "" }, { "docid": "38c300295c60c9897d9072a505f475c1", "score": "0.47180352", "text": "static public function update(array $arr) {\n $tableName = static::tableName();\n\n $setClause = [];\n $whereClause = [];\n\n foreach ($arr['set'] as $key => $value) {\n $setClause[] = \"$key=?\";\n }\n\n foreach ($arr['where'] as $key => $value) {\n $whereClause[] = \"$key=?\";\n }\n\n $sql = \"UPDATE $tableName SET \"\n . implode(',', $setClause)\n . \" WHERE \"\n . implode(',', $whereClause);\n\n $statement = Application::$app->db->pdo->prepare($sql);\n self::bindValues($statement, $arr);\n\n return $statement->execute();\n }", "title": "" }, { "docid": "59ef6b4680562e82fcb0346b382de219", "score": "0.46918923", "text": "function queryUpdate($array, $conditions, $table, $process = true) { \n\n\tif (!is_array($array)) { die(\"Insert failed\"); } \n\t$sql = \"UPDATE $table SET \"; \n\tforeach($array as $k => $v){\n \t$sql .= \"$k = '$v', \";\n }\n\t\n\t$sql = substr($sql, '0', -2);\n\t$sql .= \" WHERE \";\n\n\tforeach($conditions as $c => $d){\n \t$sql .= \"$c = '$d', \";\n }\n\n\t$sql = substr($sql, '0', -2);\n\t\n\tif($process == false){\n\t\techo \"<br />\".$sql;\t\n\t} else {\n\t\t$run = mysql_query($sql);\n\t}\n\t\t\n\tif($run){\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "d2edd10d939fceb7c654e4f23a249209", "score": "0.46879113", "text": "public function overwriteDbObj($origObj, $newArr)\r\n\t{\r\n\t if(is_array($newArr) && count($newArr) > 0)\r\n\t {\r\n\t \t\tforeach($newArr as $k => $v)\r\n\t \t\t{\r\n\t\t\t $origObj->$k = $v;\r\n\t \t\t}\r\n\t }\r\n\t return $origObj;\r\n\t}", "title": "" }, { "docid": "10492a353b3997eea8d5bf9d7ca7eebb", "score": "0.46850106", "text": "private function updateMany($filter){\n\t\t$appended = '_ID';\n\t\t//make sure the parent name exist\n\t\tif (!isset($_POST['parent_generated'])) {\n\t\t\tthrow new Exception(\"is like you forgot to set a parent table for this form,kindly do and try again\", 1);\n\t\t}\n\t\t//first validate the model\n\t\t$parentName =$_POST['parent_generated'];//remove the appended from the back\n\t\tunset($_POST['parent_generated']);\n\t\tunset($_POST['MAX_FILE_SIZE']);\n\t\t$parent= $parentName.$appended;\n\t\t$prevCount = 0;\n\t\t$models =$this->validateModels('u',$message);//validate the models and return the model arrays on success of return false and return message\n\t\tif (!$models) {\n\t\t\techo createJsonMessage('status',false,'message',$message);\n\t\t\treturn;\n\t\t}\n\t\t// $inTable =array_key_exists($parentName, $models);\n\t\t$this->db->trans_begin();//start transaction\n\t\t$data = $this->input->post(null,$filter);\n\t\t$parentValue=isset($data[$parent])?$data[$parent]:false;\n\t\t$isFirst = true;\n\t\tforeach ($models as $model => $prop) {\n\t\t\tif (empty($prop) || !is_array($prop) || count($prop)!=2) {\n\t\t\t\t$this->db->trans_rollback();\n\t\t\t\tthrow new Exception(\"invalid model properties\");\n\t\t\t}\n\t\t\t//load the model\n\t\t\t$this->load->model(\"entities/$model\");\n\t\t\t// $parameter = subArrayAssoc($data,$prevCount,$prop[0]-$prevCount);\n\t\t\t$data = $this->processFormUpload($model,$data);\n\t\t\t$parameter = $this->extractSubset($data,$model);\n\t\t\tif (empty($parameter) || $this->validateModelData($model,'update',$parameter,$message)==false) {\n\t\t\t\t$this->db->trans_rollback();\n\t\t\t\tif (empty($message)) {\n\t\t\t\t\t$message ='error occured while performing operation';\n\t\t\t\t}\n\t\t\t\tthrow new Exception($message, 1);\n\n\t\t\t}\n\t\t\tif ($parentName==$model || $isFirst) {//this is the first transaction\n\t\t\t\t$this->$model->setArray($parameter);\n\t\t\t\t$this->$model->update($prop[1],$this->db);\n\t\t\t\t$prevCount=$prop[0];\n\t\t\t\t$isFirst= false;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$this->$model->setArray($parameter);\n\t\t\t$this->$model->update($prop[1],$this->db);\n\t\t\t$prevCount=$prop[0];\n\t\t}\n\n\t\tif ($this->db->trans_status() === FALSE) {\n\t\t\techo createJsonMessage('status',true,'message','error occured while updating record');\n\t\t\treturn false;\n\t\t}\n\t\tif($this->afterManyInserts(array_keys($models),'update',$data,$this->db)){\n\t\t\t$this->db->trans_commit();//end the transaction\n\t\t\techo createJsonMessage('status',true,'message','records updated successfully','data',$parentValue);\n\t\t\treturn true;\n\t\t}\n\t\t$this->db->trans_rollback();\n\t\techo createJsonMessage('status',false,'message','error occured while updating record');\n\t\treturn false;\n\t}", "title": "" }, { "docid": "05cdc5bb2304096091551320f9f51c70", "score": "0.4682194", "text": "function update($array,$condition)\n {\n if($this -> db -> update($this->tableName,$array,$condition)){\n return TRUE;\n }\n return FALSE;\n }", "title": "" }, { "docid": "ccf41fb8f3a99478401030e10a41ecca", "score": "0.4680707", "text": "public function testDocumentTimeStampsAreUpdatedCorrectlyAfterMultipleWritesAndDelete()\n {\n $id = array(\"r\"=>\"http://talisaspire.com/resources/testDocument\", \"c\"=>\"http://talisaspire.com/\");\n\n $graph = new \\Tripod\\Mongo\\MongoGraph();\n $graph->add_literal_triple($id['r'], $graph->qname_to_uri('searchterms:title'), 'TEST TITLE');\n $this->tripod->saveChanges(new \\Tripod\\Mongo\\MongoGraph(), $graph);\n // assert that it is at version 0\n $this->assertDocumentExists($id);\n $this->assertDocumentHasProperty($id, _VERSION, 0);\n\n // retrieve the document from mongo ( rather than the graph ) capture the updated and created ts\n $document = $this->getDocument($id);\n $_updated_ts = $document[_UPDATED_TS];\n $_created_ts = $document[_CREATED_TS];\n\n sleep(1); // have to sleep to make sure ->sec will be greater between writes.\n\n // change document through tripod\n $newGraph = new \\Tripod\\Mongo\\MongoGraph();\n $newGraph->add_literal_triple($id['r'], $graph->qname_to_uri('searchterms:title'), 'CHANGED TITLE');\n $this->tripod->saveChanges($graph, $newGraph);\n\n // assert that it is at version 1\n $this->assertDocumentExists($id);\n $this->assertDocumentHasProperty($id, _VERSION, 1);\n\n // assert that the $_updated_ts has changed, but the created_ts is the same\n $updated_document = $this->getDocument($id);\n $this->assertEquals($_created_ts, $updated_document[_CREATED_TS]);\n $this->assertNotEquals($_updated_ts->__toString(), $updated_document[_UPDATED_TS]->__toString());\n // assert that the seconds for the updated document _updated_ts is greated than the first version\n\n $this->assertGreaterThan($_updated_ts->__toString(), $updated_document[_UPDATED_TS]->__toString());\n\n sleep(1);\n\n // update again\n $finalGraph = new \\Tripod\\Mongo\\MongoGraph();\n $finalGraph->add_literal_triple($id['r'], $graph->qname_to_uri('searchterms:title'), 'CHANGED TITLE AGAIN');\n $this->tripod->saveChanges($newGraph, $finalGraph);\n\n // assert that it is at version 2\n $this->assertDocumentExists($id);\n $this->assertDocumentHasProperty($id, _VERSION, 2);\n\n // assert that the $_updated_ts has changed, but the created_ts is the same\n $final_document = $this->getDocument($id);\n $this->assertEquals($updated_document[_CREATED_TS], $final_document[_CREATED_TS]);\n $this->assertNotEquals($updated_document[_UPDATED_TS]->__toString(), $final_document[_UPDATED_TS]->__toString());\n $this->assertGreaterThan($updated_document[_UPDATED_TS]->__toString(), $final_document[_UPDATED_TS]->__toString());\n\n sleep(1);\n\n // now delete through tripod, only the _ID, _VERSION, _UPDATED_TS and _CREATED_TS properties should exist on the document\n // updated ts will have changed the created should not have\n $this->tripod->saveChanges($finalGraph, new \\Tripod\\Mongo\\MongoGraph());\n\n $this->assertDocumentExists($id);\n $deleted_document = $this->getDocument($id);\n $this->assertDocumentHasProperty($id, _VERSION);\n $this->assertDocumentHasProperty($id, _UPDATED_TS);\n $this->assertDocumentHasProperty($id, _CREATED_TS);\n $this->assertDocumentDoesNotHaveProperty($id, 'searchterms:title');\n\n $this->assertEquals($final_document[_CREATED_TS], $deleted_document[_CREATED_TS]);\n $this->assertNotEquals($final_document[_UPDATED_TS]->__toString(), $deleted_document[_UPDATED_TS]->__toString());\n $this->assertGreaterThan($final_document[_UPDATED_TS]->__toString(), $deleted_document[_UPDATED_TS]->__toString());\n }", "title": "" }, { "docid": "103a9a5e3d09f73a558d747132e90488", "score": "0.4671527", "text": "function dev_db_update($table, $data, $where, $ignore_null = 0, &$query_str) {\n\t//echo 'updating, ';\n\t$updates = array();\n\t$temp_values = array();\n\t$update_string = '';\n\t$query_str;\n\t\n\tforeach ($data as $a) array_push($temp_values, dev_prep_input($a));\n\t\n\t$count = 0;\n\tforeach (array_keys($data) as $a) {\n\t\t//convert into query string\n\t\tif ($ignore_null == 1) {\n\t\t\t$temp_values[$count] = dev_ignore_null_entry($table, $a, $temp_values[$count], $where);\n\t\t}\n\t\tarray_push($updates, \"$a = $temp_values[$count]\");\n\t\t$count++;\n\t}\n\t\n\t$update_string = implode(', ', $updates);\n\t\n\t$query = \"UPDATE `$table` SET $update_string WHERE $where\";\n\t\n\t//echo \"$query<br />\";\n\t$query_str = $query;\n\t \n\t(mysql_query($query) ) ? $status = true : $status = false;\n\t\n\treturn $status;\n}", "title": "" }, { "docid": "30a1649d10dc728708d70ad376395063", "score": "0.46697006", "text": "public function update() {\n $db = static::$current_db;\n global $$db;\n $DB = $$db;\n\n $current_child_table_name = static::$table_name;\n $table_columns_array = self::get_table_columns();\n /*\n * { - Create query - end\n */\n $query = \"UPDATE {$current_child_table_name} SET \";\n\n $values_str_arr = array();\n\n $arr_idx = 0;\n foreach ($table_columns_array as $table_column) {\n\n $values_str_arr[$arr_idx] = \"{$table_column} = \";\n if (is_string($this->$table_column)){\n $values_str_arr[$arr_idx] .= \"'{$this->$table_column}'\";\n } else {\n $values_str_arr[$arr_idx] .= $this->$table_column;\n }\n $arr_idx++;\n }\n\n print_r($values_str_arr);\n\n // Create update values string\n $values_str = implode(\", \",$values_str_arr);\n\n $query .= \"{$values_str} \";\n\n $query .= \"WHERE id = {$this->id}\";\n\n echo $query;\n\n /*\n * } - Create query - end\n */\n\n $DB->run_query($query);\n\n if ($DB->get_nof_affected_rows() == 1){\n return true;\n } else {\n return false;\n }\n\n }", "title": "" }, { "docid": "8ce0c053dfc6637914ea1434b40da678", "score": "0.4665972", "text": "function renumber($starting_sortorder=NULL, $elements=NULL, $parentid=NULL) {\n $sortorder = $starting_sortorder;\n\n if (empty($elements) && empty($starting_sortorder)) {\n if (!isset($this->first_sortorder)) {\n debugging(\"The tree's first_order variable isn't set, you must provide a starting_sortorder to the renumber method.\");\n return false;\n }\n $sortorder = $this->first_sortorder - 1;\n $elements = $this->tree_array;\n } elseif(!empty($elements) && empty($starting_sortorder)) {\n debugging(\"Entered second level of recursion without a starting_sortorder.\");\n }\n\n $newtree = array();\n $this->first_sortorder = $sortorder;\n\n foreach ($elements as $key => $element) {\n $this->first_sortorder++;\n $new_sortorder = $this->first_sortorder;\n $old_sortorder = $element['object']->get_sortorder();\n\n // Assign new sortorder\n $element['object']->sortorder = $new_sortorder;\n\n $element['object']->previous_sortorder = $this->get_neighbour_sortorder($element, 'previous');\n $element['object']->next_sortorder = $this->get_neighbour_sortorder($element, 'next');\n\n if (!empty($element['children'])) {\n $newtree[$this->first_sortorder] = $element;\n $newtree[$this->first_sortorder]['children'] = $this->renumber($this->first_sortorder, $element['children'], $element['object']->id);\n } else {\n $newtree[$this->first_sortorder] = $element;\n }\n\n if ($new_sortorder != $old_sortorder) {\n $element['object']->set_parent_id($parentid);\n $element['object']->set_sortorder($new_sortorder);\n $this->need_update[] = $element['object'];\n }\n }\n\n // If no starting sortorder was given, it means we have finished building the tree, so assign it to this->tree_array. Otherwise return the new tree.\n if (empty($starting_sortorder)) {\n $this->tree_array = $newtree;\n unset($this->first_sortorder);\n $this->build_tree_filled();\n return true;\n } else {\n return $newtree;\n }\n }", "title": "" }, { "docid": "e474dbfd3a76fba0915c795182d4f91e", "score": "0.46654257", "text": "public function testUpdateValuesArrayNotSequential()\n {\n try\n {\n self::$builder->table('authors')\n ->fields(\n ['first_name', 'last_name']\n )\n ->values(\n [\n 'first_name' => 'Tommy',\n 'last_name' => 'Jameson',\n ]\n )\n ->where(['first_name', '=', 'John'])\n ->andWhere(['last_name', '=', 'Walker'])\n ->update()\n ->run();\n } catch (QueryBuilderException $exception)\n {\n return;\n }\n\n $this->fail(\n 'An expected exception has not been raised.'\n );\n }", "title": "" }, { "docid": "f326a98a22ca6d89aa6fa358248979cd", "score": "0.46599618", "text": "public function update(array $object , array $replacement , $table , array $option){\n switch ($this->getDataBaseType()) {\n case doDatabase::MONGO: \n return $this->database->update($object , $replacement , $table , $option);\n break;\n case doDatabase::MYSQLI :\n break;\n default:\n break;\n }\n }", "title": "" }, { "docid": "038230a0f73d1945eb4c84323cffc87f", "score": "0.46599147", "text": "function update( $id , $newData )\n {\n\n// FIXXME check $this->dbh->tableInfo to see if all the columns that shall be updated\n// really exist, this will also extract nextId etc. if given before writing it in the DB\n// in case they dont exist in the DB\n $setData = array();\n foreach( $newData as $key=>$value ) // quote the values, as needed for the insert\n {\n $setData[] = $this->_getColName($key).'='.$this->dbh->quote($value);\n }\n\n $query = sprintf( 'UPDATE %s SET %s WHERE %s=%s',\n $this->table,\n implode( ',' , $setData ),\n $this->_getColName('id'),\n $id\n );\n if( DB::isError( $res=$this->dbh->query($query) ) )\n {\n// FIXXME raise PEAR error\n printf(\"ERROR - Tree::update - %s - %s<br>\",DB::errormessage($res),$query);\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "62b593d9e5c4cd26902da3e0bb06b764", "score": "0.46590653", "text": "static function ignoreSameComposition($arr){\n\t\tfor ($i=0; $i < count($arr) ; $i++) { \n\t\t\tif(!isset($arr[$i]))continue;\n\t\t\t$index=$arr[$i];\n\t\t\twhile(is_array($index[\"child\"])&&count($index[\"child\"])==1&&$index[\"type\"]==$index[\"child\"][0][\"type\"]){\n\t\t\t\t$temp=$index[\"child\"][0];\n\t\t\t\tif(isset($index[\"attr\"])&&$index[\"attr\"]&&(!isset($temp[\"attr\"])||!$temp[\"attr\"]))\n\t\t\t\t\t$temp[\"attr\"]=$index[\"attr\"];\n\t\t\t\t$index=$temp;\n\t\t\t}\n\t\t\tif(isset($index[\"child\"])&&is_array($index[\"child\"])&&$index[\"child\"]){\n\t\t\t\t$arr[$i][\"child\"]=self::ignoreSameComposition($index[\"child\"]);\n\t\t\t\tif(isset($index[\"attr\"]))\n\t\t\t\t\t$arr[$i][\"attr\"]=$index[\"attr\"];\n\t\t\t\t//check if all his childs has same type as the parent\n\t\t\t\tif($arr[$i][\"type\"]!=2){\n\t\t\t\t\t$check=count($arr[$i][\"child\"])>1;\n\t\t\t\t\tforeach ($arr[$i][\"child\"] as $child) {\n\t\t\t\t\t\tif(isset($child[\"type\"])&&$arr[$i][\"type\"]!=$child[\"type\"]){\n\t\t\t\t\t\t\t$check=false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($check){\n\t\t\t\t\t\t\n\t\t\t\t\t\tarray_splice($arr,$i,1,$arr[$i][\"child\"]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse $arr[$i]=$index;\n\t\t}\n\t\treturn $arr;\n\t}", "title": "" }, { "docid": "e4ff593d0e5c5a6fefa18032b6bf804f", "score": "0.46427584", "text": "public abstract function update(IBean $object) : array;", "title": "" }, { "docid": "cb3d6af0c8b2a799a7e5d5edf2e0fd47", "score": "0.46396637", "text": "function recursiveAddslashes(&$obj){\n foreach($obj as &$val){\n if(is_array($val) || is_object($val)) $this->recursiveAddslashes($val);\n else $val=$val;\n }\n }", "title": "" }, { "docid": "515c2fcd0e332a06c07ac5ec21a9171f", "score": "0.46380687", "text": "public function walkUpdateClause($updateClause);", "title": "" }, { "docid": "ac1b22c86b01aa065cc9bf907d3974d3", "score": "0.46341679", "text": "function iwi_migrate_webform_objects($form, &$form_state) {\n\n module_load_include('inc', 'islandora_webform', 'includes/utilites');\n $old_relation = !empty($form_state['stepdata']['old_relation']) ? $form_state['stepdata']['old_relation'] : '';\n $new_relation = $form_state['stepdata']['new_relation'];\n $choice = $form_state['values']['islandora_confirm']['migrate_predicates'];\n $nid = $form_state['stepdata']['nid'];\n $subject_avoid_index = array();\n $old_relations_modified = array();\n $removedcount = 0;\n $addedcount = 0;\n $alreadyinplace = 0;\n switch ($choice) {\n case 'all':\n $child_objects_data = iwi_get_objects_with_relation(NULL, $nid);\n break;\n\n case 'oldpredicate':\n $child_objects_data = iwi_get_objects_with_relation($old_relation, $nid);\n break;\n\n case 'none':\n default:\n $child_objects_data = NULL;\n break;\n }\n\n \n // If the relation is changing, read the admin's choice on this.\n if ((!is_null($child_objects_data)) && (!empty($new_relation))){\n foreach ($child_objects_data as $key => $child_object_data) {\n // Our idea\n // First, if the $new_relation is already in place, mark this subjects and leave them alone\n // Second, even whem migrating all, we must give existing predicates having '$old_relation' priority\n // Third, if a subject has multiple relations and $old_relation was not found we will only replace the first one. It's a poor's man approach to\n // not knowing which one really was created by our webform, but removing everything is even worse\n // Fourth. Only add one relation. Our webforms generates only one, so why should we do more?\n if (!array_key_exists($child_object_data['object']['value'], $subject_avoid_index)) {\n if ($child_object_data['predicate']['uri'] == 'info:fedora/fedora-system:def/relations-external#'.$new_relation) {\n //We already have our new predicate. This subject gets marked \n $subject_avoid_index[$child_object_data['object']['value']] = 1;\n }\n elseif (($child_object_data['predicate']['uri'] == 'info:fedora/fedora-system:def/relations-external#'.$old_relation) && !empty($old_relation)){\n //The old predicate is present. \n $child_object = islandora_object_load($child_object_data['object']['value']);\n if ($child_object->relationships->remove(FEDORA_RELS_EXT_URI, $old_relation, $child_object_data['secondobject']['value'],RELS_TYPE_URI)) {\n $removedcount++;\n $old_relations_modified[$old_relation] = 1;\n }\n //Now add our new relation\n if ($new_relation) {\n $child_object->relationships->add(FEDORA_RELS_EXT_URI, $new_relation, $child_object_data['secondobject']['value'],RELS_TYPE_URI);\n $addedcount++;\n }\n //And dismiss this subject. We are done with him.\n $subject_avoid_index[$child_object_data['object']['value']] = 1;\n }\n } \n }\n //Now iterate again to manage the rest, if any \n foreach ($child_objects_data as $child_object_data) {\n if (!array_key_exists($child_object_data['object']['value'], $subject_avoid_index)) {\n $child_object = islandora_object_load($child_object_data['object']['value']);\n $current_rel = array();\n $current_rel = explode('#', $child_object_data['predicate']['uri']);\n if (isset($current_rel[1]) && !empty($current_rel[1])) {\n if ($child_object->relationships->remove(FEDORA_RELS_EXT_URI, $current_rel[1], $child_object_data['secondobject']['value'], RELS_TYPE_URI)) {\n $removedcount++;\n $old_relations_modified[$current_rel[1]] = 1;\n }\n }\n //Now add our new relation\n if ($new_relation) {\n $child_object->relationships->add(FEDORA_RELS_EXT_URI, $new_relation, $child_object_data['secondobject']['value'], RELS_TYPE_URI);\n $addedcount++;\n }\n //And dismiss this subject. We are done with him.\n $subject_avoid_index[$child_object_data['object']['value']] = 1;\n }\n }\n }\n drupal_set_message(format_string('@count objects had their relations updated from \"@old\" to \"@new\"', array(\n '@count' => $addedcount,\n '@old' => implode(\",\",array_keys($old_relations_modified)),\n '@new' => $new_relation,\n )));\n}", "title": "" }, { "docid": "3c2790df50e0a2f901f91f0702b738ec", "score": "0.46318194", "text": "public function updateRecords($array, $ownerId = null, $ownerColName = null) {\n $result = false;\n $ids = array();\n\n foreach ($array as $value) {\n if (isset($value['id']) && ($this->getRecord($value['id']))) {\n $result = $result || $this->update($value, $value['id']);\n $ids[] = $value['id'];\n } else {\n if ($ownerId == null) {\n $lastId = $this->insert($value);\n } else if ($ownerColName == null) {\n $lastId = $this->insert($value + array('owner_id' => $ownerId));\n } else {\n $lastId = $this->insert($value + array($ownerColName => $ownerId));\n }\n\n if (is_numeric($lastId)) {\n $ids[] = $lastId;\n }\n $result = $result || $lastId;\n }\n }\n\n\n if (count($ids)) {\n if ($ownerColName == null) {\n $whereOwner = $this->getAdapter()->quoteInto('owner_id = ?', $ownerId);\n } else {\n $whereOwner = $this->getAdapter()->quoteInto($ownerColName . ' = ?', $ownerId);\n }\n\n $where = $this->getAdapter()->quoteInto('id not in (?)', $ids);\n return $result || parent::delete($where . ' AND ' . $whereOwner);\n } else {\n if ($ownerColName == null) {\n $whereOwner = $this->getAdapter()->quoteInto('owner_id = ?', $ownerId);\n } else {\n $whereOwner = $this->getAdapter()->quoteInto($ownerColName . ' = ?', $ownerId);\n }\n\n return $result || parent::delete($whereOwner);\n }\n }", "title": "" }, { "docid": "e2424a7ec8e8c2e4b43f8185e39ff93c", "score": "0.46315733", "text": "function array_replace_recursive__recurse($array, $array1) {\n foreach ($array1 as $key => $value) {\n // create new key in $array, if it is empty or not an array\n if (!isset($array[$key]) || (isset($array[$key]) && !is_array($array[$key]))) {\n $array[$key] = array();\n }\n\n // overwrite the value in the base array\n if (is_array($value)) {\n $value = array_replace_recursive__recurse($array[$key], $value);\n }\n $array[$key] = $value;\n }\n return $array;\n }", "title": "" }, { "docid": "53a45eef8c8a78259f80d24062f8220f", "score": "0.46299717", "text": "public function update(array $data): bool\n {\n try {\n $query = \"UPDATE subscriber SET `state` = :state, email = :email, `name` = :name WHERE id = :id;\";\n $statement = $this->_db->prepare($query); \n $statement->execute([\"state\" => $data[\"state\"], \"email\" => $data[\"email\"], \"name\" => $data[\"name\"], \"id\" => $data[\"id\"]]);\n \n //Update fields... if any \n if (isset($data[\"fields\"]) && count($data[\"fields\"]) > 0) {\n foreach ($data[\"fields\"] as $row) { \n $this->SubscriberFieldModel->update($row); //Subscriber field is expected to have subscriber ID.\n }\n }\n return true; \n } catch (\\PDOException $e) {\n exit($e->getMessage()());\n }\n return false;\n }", "title": "" }, { "docid": "ebcceb78deea1153de1bd13c2e619aff", "score": "0.462565", "text": "public function modifyDataArrForFormUpdate($inputArr)\n {\n if (is_array($this->conf[$this->cmdKey.'.']['evalValues.'])) {\n foreach ($this->conf[$this->cmdKey.'.']['evalValues.'] as $theField => $theValue) {\n $listOfCommands = GeneralUtility::trimExplode(',', $theValue, 1);\n foreach ($listOfCommands as $cmd) {\n // Point is to enable parameters after each command enclosed in brackets [..].\n // These will be in position 1 in the array.\n $cmdParts = preg_split('/\\[|\\]/', $cmd);\n $theCmd = trim($cmdParts[0]);\n switch ($theCmd) {\n case 'twice':\n if (isset($inputArr[$theField])) {\n if (!isset($inputArr[$theField.'_again'])) {\n $inputArr[$theField.'_again'] = $inputArr[$theField];\n }\n $this->additionalUpdateFields .= ','.$theField.'_again';\n }\n break;\n }\n }\n }\n }\n if (is_array($this->conf['parseValues.'])) {\n foreach ($this->conf['parseValues.'] as $theField => $theValue) {\n $listOfCommands = GeneralUtility::trimExplode(',', $theValue, 1);\n foreach ($listOfCommands as $cmd) {\n // Point is to enable parameters after each command enclosed in brackets [..].\n // These will be in position 1 in the array.\n $cmdParts = preg_split('/\\[|\\]/', $cmd);\n $theCmd = trim($cmdParts[0]);\n switch ($theCmd) {\n case 'multiple':\n if (isset($inputArr[$theField]) && !$this->isPreview()) {\n $inputArr[$theField] = explode(',', $inputArr[$theField]);\n }\n break;\n case 'checkArray':\n if ($inputArr[$theField] && !$this->isPreview()) {\n for ($a = 0; $a <= 30; ++$a) {\n if ($inputArr[$theField] & pow(2, $a)) {\n $alt_theField = $theField.']['.$a;\n $inputArr[$alt_theField] = 1;\n $this->additionalUpdateFields .= ','.$alt_theField;\n }\n }\n }\n break;\n }\n }\n }\n }\n\n $inputArr = $this->userProcess_alt(\n $this->conf['userFunc_updateArray'],\n $this->conf['userFunc_updateArray.'],\n $inputArr\n );\n\n return $this->escapeHTML($inputArr);\n }", "title": "" }, { "docid": "38930f5b28974689c25705d2dfa9a6cc", "score": "0.4623396", "text": "function UpdateRecursive($vals) {\n $params = array();\n $this->global_index++;\n //Reached end of array\n if($this->global_index >= count($vals))\n return;\n\n $tag = strtolower($vals[$this->global_index]['tag']);\n if (isset(trim($vals[$this->global_index]['value']))) {\n $value = trim($vals[$this->global_index]['value']);\n }\n $type = $vals[$this->global_index]['type'];\n\n //Add attributes\n if(isset($vals[$this->global_index]['attributes'])) {\n foreach($vals[$this->global_index]['attributes'] as $key=>$val) {\n $key = strtolower($key);\n $params[$tag][$key] = $val;\n }\n }\n\n if($type == 'open') {\n $new_arr = array();\n\n //Read all elements at the next levels and add to an array\n while($vals[$this->global_index]['type'] != 'close' && \n $this->global_index < count($vals)) {\n $arr = $this->UpdateRecursive($vals);\n if(count($arr) > 0) {\n $new_arr[] = $arr;\n }\n }\n $this->global_index++;\n foreach($new_arr as $arr) {\n foreach($arr as $key=>$val) {\n if(isset($params[$tag][$key])) {\n //If this key already exists\n if($this->is_associative_array($params[$tag][$key])) {\n //If this is an associative array and not an indexed array\n // remove exisiting value and convert to an indexed array\n $val_key = $params[$tag][$key];\n array_splice($params[$tag][$key], 0);\n $params[$tag][$key][0] = $val_key;\n $params[$tag][$key][] = $val;\n } else {\n $params[$tag][$key][] = $val; \n }\n } else {\n $params[$tag][$key] = $val;\n }\n }\n }\n }\n else if ($type == 'complete') {\n if($value != '') \n $params[$tag]['VALUE'] = $value;\n }\n else {\n $params = array();\n }\n return $params;\n }", "title": "" }, { "docid": "9c60b182f57dc5214369b416a41cca66", "score": "0.46163166", "text": "function PostProcessNestedData($item,$datadefs)\n {\n $updatedatas=array();\n foreach ($datadefs as $n => $datadef)\n {\n $startdata1=$datadef[ \"From1\" ];\n $startdata2=$datadef[ \"From2\" ];\n if ($startdata2==\"\") { $startdata2=$startdata1; }\n\n $destdata=$datadef[ \"Dest\" ];\n\n if (isset($item[ $startdata1 ]))\n {\n if (\n isset($item[ $startdata2 ])\n &&\n $item[ $startdata2 ]>0\n &&\n (\n !isset($item[ $destdata ])\n ||\n $item[ $destdata ]!=$item[ $startdata2 ]\n )\n )\n {\n $item[ $destdata ]=$item[ $startdata2 ];\n array_push($updatedatas,$destdata);\n }\n }\n }\n\n if (count($updatedatas)>0)\n {\n //var_dump($updatedatas);\n $this->MySqlSetItemValues\n (\n \"\",\n $updatedatas,\n $item\n );\n }\n\n return $item;\n }", "title": "" }, { "docid": "565ca55abb488a2a23bf4449e627ff32", "score": "0.46130243", "text": "public function update(array $data): bool\n {\n return $this->merge($data)->save();\n }", "title": "" }, { "docid": "f6e77fdaf14403fce7c0c56b69c56737", "score": "0.46094343", "text": "public function testContainerSetPathHandleNotArrays()\n {\n $key1 = uniqid('key1');\n $key2 = uniqid('key2');\n $val = uniqid('val');\n $newVal = uniqid('new-val');\n $path = [$key1, $key1];\n $pathLength = count($path);\n $data = [\n $key1 => [\n $key2 => $val,\n ],\n ];\n $container = (object) $data;\n $subject = $this->createInstance(['_normalizeArray', '_containerSet']);\n\n $subject->expects($this->exactly($pathLength))\n ->method('_normalizeArray')\n ->will($this->returnArgument(0));\n\n $subject->expects($this->exactly($pathLength - 1))\n ->method('_containerGet');\n\n $reflection = new ReflectionMethod($subject, '_containerSetPath');\n $reflection->setAccessible(true);\n $reflection->invokeArgs($subject, [&$container, $path, $newVal]);\n }", "title": "" }, { "docid": "f52499c0143871aca6b788a0ce99f549", "score": "0.46034068", "text": "public function walkUpdateStatement(AST\\UpdateStatement $AST);", "title": "" }, { "docid": "612cf4d9216c3749c4a0ff5ab213f07e", "score": "0.45999148", "text": "public function checkRecordUpdateAccess($table, $id, $data, $res, &$pObj) {\n\n\t\tglobal $TCA;\n\t\t// Only perform additional checks if not admin and just for pages table.\n\t\tif (($table == 'pages') && is_array($data) && !$pObj->admin) {\n\t\t\t$res = 1;\n\t\t\tforeach ($data as $field => $value) {\n\t\t\t\tif (in_array($table . '-' . $field, $pObj->exclude_array) || $pObj->data_disableFields[$table][$id][$field]) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t// we're not inserting useful data - can't make a decission\n\t\t\t\tif (!is_array($data[$field]) || !is_array($data[$field]['data'])) {\n\t\t\t\t\t$res = FALSE;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// we're not inserting operating on an flex field - can't make a decission\n\t\t\t\tif (!is_array($TCA[$table]['columns'][$field]['config']) ||\n\t\t\t\t\t$TCA[$table]['columns'][$field]['config']['type'] != 'flex'\n\t\t\t\t) {\n\t\t\t\t\t$res = FALSE;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// get the field-information and check if only \"ce\" fields are updated\n\t\t\t\t$conf = $TCA[$table]['columns'][$field]['config'];\n\t\t\t\t$currentRecord = BackendUtility::getRecord($table, $id);\n\t\t\t\t$dataStructArray = BackendUtility::getFlexFormDS($conf, $currentRecord, $table, $field, TRUE);\n\t\t\t\tforeach ($data[$field]['data'] as $sheetData) {\n\t\t\t\t\tif (!is_array($sheetData) || !is_array($dataStructArray['ROOT']['el'])) {\n\t\t\t\t\t\t$res = FALSE;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tforeach ($sheetData as $lData) {\n\t\t\t\t\t\tif (!is_array($lData)) {\n\t\t\t\t\t\t\t$res = FALSE;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tforeach ($lData as $fieldName => $fieldData) {\n\n\t\t\t\t\t\t\tif (!isset($dataStructArray['ROOT']['el'][$fieldName])) {\n\t\t\t\t\t\t\t\t$res = FALSE;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$fieldConf = $dataStructArray['ROOT']['el'][$fieldName];\n\t\t\t\t\t\t\tif ($fieldConf['tx_templavoila']['eType'] != 'ce') {\n\t\t\t\t\t\t\t\t$res = FALSE;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (($res == 1) && !$pObj->doesRecordExist($table, $id, 'editcontent')) {\n\t\t\t\t$res = FALSE;\n\t\t\t}\n\t\t}\n\n\t\treturn $res;\n\t}", "title": "" }, { "docid": "f0d496f97b72765488f011c230a0c45f", "score": "0.45992473", "text": "function bsonUnserialize(array $array) {\n $this->__original = $array;\n\n foreach($array as $k => $v) {\n $this->{$k} = $v;\n }\n }", "title": "" }, { "docid": "7b2353c6de7358ec9b0e83818e338732", "score": "0.45989835", "text": "public function update($query, array $array)\n {\n }", "title": "" }, { "docid": "7b2353c6de7358ec9b0e83818e338732", "score": "0.45989835", "text": "public function update($query, array $array)\n {\n }", "title": "" }, { "docid": "d0d3f56a3aa0dea5e5df9bef297d5f46", "score": "0.45955426", "text": "public function revertbuttonStatus(){\n $unsertAttay = [\n\n \"goodNowDate\" => \"\",\n \"good_button\" => \"\", \n \"contactNowDate\" => \"\",\n \"contact_button\" => \"\",\n \"commentsDate\" => \"\", \n \"comments_button\" => \"\", \n \"comments\" => \"\"\n ];\n\n $olderDate = $this->mongo_db->converToMongodttime(date('Y-m-d H:i:s', strtotime('-15 days'))); \n\n $lookup = [\n [\n '$match' => [\n\n 'total_balance' => ['$gt' => 20],\n '$or' => [\n\n ['exchange_enabled' => 'no'],\n ['tradingStatus' => 'off'],\n ['agt' => 'no'],\n ['remainingPoints' => ['$lte' => 10]]\n\n ],\n\n '$or' => [\n \n [\n '$and' => [ \n ['good_button' => ['$exists'=> true]],\n ['goodNowDate' => ['$lte' => $olderDate]]\n ]\n ],\n [\n '$and' => [\n ['comments_button' => ['$exists'=> true]],\n ['goodNowDate' => ['$lte' => $olderDate]]\n ],\n ],\n\n [\n '$and' => [\n ['contact_button' => ['$exists'=> true]],\n ['commentsDate' => ['$lte' => $olderDate]]\n ]\n ]\n\n ],\n ]\n ],\n [\n '$project' => [\n '_id' => '$admin_id',\n ]\n ],\n ];\n \n $db = $this->mongo_db->customQuery();\n $res = $db->user_investment_binance->aggregate($lookup);\n $result = iterator_to_array($res);\n\n for($userLoop = 0; $userLoop <= count($result); $userLoop++ ){\n\n echo \"<br>binance investment user id :\".$result[$userLoop]['_id'];\n $searchUser['admin_id'] = (string)$result[$userLoop]['_id'];\n $db->user_investment_binance->updateOne($searchUser, ['$unset' => $unsertAttay]);\n\n }\n\n\n $resKraken = $db->user_investment_kraken->aggregate($lookup);\n $resultKraken = iterator_to_array($resKraken);\n\n for($user = 0; $user <= count($resultKraken); $user++ ){\n\n echo \"<br>kraken investment user id :\".$result[$resultKraken]['_id'];\n $searchUserKraken['admin_id'] = (string)$resultKraken[$user]['_id'];\n $db->user_investment_binance->updateOne($searchUserKraken, ['$unset' => $unsertAttay]);\n\n }\n\n echo \"<br>done all\";\n }", "title": "" }, { "docid": "8d3a3c29a388b05ae55ff5ceeb88d19d", "score": "0.4592803", "text": "public function update (array $data, $where ) {\n $data = $this->getCleaner()->array_cleanup($data);\n if(empty($data['updated'])){\n\t\t$data['updated'] = $this->timeCreation();\n\t}\n\tif(empty($data['updatedBy'])){\n\t\t$data['updatedBy'] = $this->getUserNumber();\n\t}\n\treturn parent::update( $data, $where);\n }", "title": "" }, { "docid": "fc7e69225b4fa728e5dbc1e7eae558b1", "score": "0.45921203", "text": "public function recomputeSingleObjectChangeSet($uow, $meta, $object);", "title": "" } ]
45a26b6c21a4112296d5ee6459f44d26
get the total new orders
[ { "docid": "32023fcdc18ebb5b2b9b33b20ae0eabe", "score": "0.0", "text": "public function add_tag_template($filename, $data = array())\n\t{\n\t\t//$data[\"there_is_new_order\"] = $this->Admin_model->return_total_rows('order', 'status', 'open');\n\t\t\n\t\t$this->admin_header();\n\t\t$data['header'] = $this->load->view('templates/admin_header', $data, TRUE);\n\t\t$data['footer'] = $this->load->view('templates/admin_footer', '', TRUE);\n\t\t$this->load->view('admins/'.$filename, $data);\n\t}", "title": "" } ]
[ { "docid": "9443ef2a5c2bfe05cb1d1fdbcef8e0f2", "score": "0.7546358", "text": "public function getTotal()\n {\n return $this->service()->getTotalOfOrder();\n }", "title": "" }, { "docid": "155dce3ed38fc69542917c9c0fd92af3", "score": "0.7452311", "text": "protected function getTotalOrders()\n {\n\n if (auth()->user()) {\n $userId = auth()->user()->id;\n return \\Cart::session($userId)->getTotal();\n }\n return \\Cart::getTotal();\n }", "title": "" }, { "docid": "2571ba437efc825dadcff255254ae31d", "score": "0.7319344", "text": "public function getTotalOrdersAmRcv()\n\t{\n $log=new Log(\"AM_RCV_TOTAL:\".date('Y-m-d').\".log\");\n $log->write(\"SELECT COUNT(id) as total_orders FROM oc_po_order WHERE delete_bit = '1' and order_status = \" . 2);\n $query = $this->db->query(\"SELECT COUNT(id) as total_orders FROM oc_po_order WHERE delete_bit = '1' and order_status = \" . 2);\n $results = $query->row;\n return $results['total_orders'];\n\t}", "title": "" }, { "docid": "3169465cbe562dc4e4cb81a093389be9", "score": "0.7303506", "text": "public function getTotalOrdersAm()\n\t{\n\t\t$query = $this->db->query(\"SELECT COUNT(id) as total_orders FROM oc_po_order WHERE delete_bit = \" . 1);\n\t\t$results = $query->row;\n\t\treturn $results['total_orders'];\n\t}", "title": "" }, { "docid": "f8f7bc472a6a3a511438ad5b006b9362", "score": "0.7273696", "text": "public function getTotalOrdersWs()\n\t{\n\t\t$query = $this->db->query(\"SELECT COUNT(id) as total_orders FROM oc_po_order WHERE delete_bit = \" . 1);\n\t\t$results = $query->row;\n\t\treturn $results['total_orders'];\n\t}", "title": "" }, { "docid": "68fb9cfd49c8908bce5c7d6f6fd2fa7c", "score": "0.7237501", "text": "private function get_num_total_orders()\n\t{\n\t\treturn wp_count_posts('order_paysera')->publish;\n\t}", "title": "" }, { "docid": "8c83db2d3582090bb083124a205bf2c6", "score": "0.7034528", "text": "public function getCurrentMonthTotalOrder() : int;", "title": "" }, { "docid": "7da26c4709e4dfd5e88eaebc154d0393", "score": "0.70185477", "text": "public function getTotalOrdersMo()\n\t{\n\t\t$query = $this->db->query(\"SELECT COUNT(oc_po_product.id) as total_orders FROM oc_po_order \nLEFT JOIN oc_po_product \nON(oc_po_order.id = oc_po_product.order_id)\nWHERE oc_po_order.user_id='103' AND oc_po_product.item_status <> 0\");\n\t\t$results = $query->row;\n\t\treturn $results['total_orders'];\n\t}", "title": "" }, { "docid": "4a3f641587b05cea5fc898b7e08e51a3", "score": "0.6907238", "text": "public function getOrdertotal()\n {\n return $this->ordertotal;\n }", "title": "" }, { "docid": "086084cf6ee0f530d0d421c8fc14b8e1", "score": "0.67148966", "text": "public function getMinOrderTotal();", "title": "" }, { "docid": "a68bcbfb7fdc5d14e6886f53e4b235b5", "score": "0.6694225", "text": "public function modelTotal(){\n\t\t\t//---\n\t\t\t$conn = Connection::getInstance();\n\t\t\t$query = $conn->query(\"select id from orders\");\n\t\t\t//lay tong so ban ghi\n\t\t\treturn $query->rowCount();\n\t\t\t//---\n\t\t}", "title": "" }, { "docid": "2d4930e4764dd3a12c302196096d864f", "score": "0.6673422", "text": "function btce_get_active_order_total($key, $secret) {\n $orders = btce_active_orders($key, $secret);\n $_total = 0;\n foreach ($orders->return as $order) {\n if ($order->type == 'sell') {\n $_total += $order->amount;\n }\n }\n return $_total;\n}", "title": "" }, { "docid": "550b8cf0e467a1a41956dae4bec5de08", "score": "0.66723335", "text": "public static function getTotalValueOfOrder()\n {\n \ttry\n \t{\n\t \t$storage = My_Zend_Globals::getStorage();\n\t \n\t \t$table = self::_TABLE_PRODUCT_ORDER_DETAIL;\n\t \n\t \t//Query data from database\n\t \t$select = $storage->select()\n\t\t\t\t\t \t->from($table,'sum(amount_total)')\n\t\t\t\t\t \t->where('order_status = ?', 2);\n\t \t \n\t \t$total = $storage->fetchCol($select);\n\t \t \n\t \t$total = intval($total['total']);\n\t \t\n\t \treturn $total;\n \t}\n \tcatch(Exception $e)\n \t{\n \t\treturn false;\n \t}\t \t\n }", "title": "" }, { "docid": "ffb3cefa1b0787e3aea64330f18af365", "score": "0.66720164", "text": "public function getOrdersCount() {\n\t\t$summary = $this->getMarketSummary();\n\n\t\treturn [ 'BUY' => $summary['OpenBuyOrders'], 'SELL' => $summary['OpenSellOrders'] ];\n\n\t}", "title": "" }, { "docid": "6e183a059d2519f7cbb97cee899c1e46", "score": "0.65973926", "text": "public function get_orders_total() : array {\n\t\t$element = $this->dom->find( '#j-order-num' );\n\t\tif ( ! $element ) {\n\t\t\treturn [\n\t\t\t\t'orders_total' => 0,\n\t\t\t];\n\t\t}\n\n\t\t$value = explode( ' ', $element[0]->text() );\n\t\tif ( ! $value || empty( $value[0] ) ) {\n\t\t\treturn [\n\t\t\t\t'orders_total' => 0,\n\t\t\t];\n\t\t}\n\n\t\treturn [\n\t\t\t'orders_total' => intval( $value[0] ),\n\t\t];\n\t}", "title": "" }, { "docid": "e525282747baafa3629c009b07ade823", "score": "0.6596917", "text": "public function getOrdersCount() {\n return $this->getTable()->getOrdersCount();\n }", "title": "" }, { "docid": "c00af73b3895a386e1e6d2368a59d29a", "score": "0.6544206", "text": "public function getOrderCount()\n {\n return $this->count(self::order);\n }", "title": "" }, { "docid": "5b2a0d659c034ec3dfb7a1b756749fe0", "score": "0.6532083", "text": "public function getTotalQtyOrdered();", "title": "" }, { "docid": "457ce6d8e2d9e87cebde638eb264157a", "score": "0.64902276", "text": "public function getUserOrderCounts() {\n\n $this->load->model('account/order');\n $count = $this->model_account_order->getTotalOrders();\n\n return $count;\n }", "title": "" }, { "docid": "d0aa6248e3833e56b071733a8048825d", "score": "0.6473195", "text": "public function getTotal(){\n $total=0;\n\n foreach ( $this->getOrderLines() as $ol){\n $total += $ol->getSubTotal();\n }\n \n return $total;\n }", "title": "" }, { "docid": "9d9e74004ea8d40b6e934a6cbd6f8722", "score": "0.6461081", "text": "function calculateOrderAmount(): int {\n // Calculate the order total on the server to prevent\n // customers from directly manipulating the amount on the client\n $oldCart=Session::get('cart');\n $cart = new Cart($oldCart);\n $total = $cart->totalPrice;\n return $total * 100;\n }", "title": "" }, { "docid": "8d05cc46b1e37323223d44f6b8ec1e06", "score": "0.6444382", "text": "function getReceived(){\n $total = 0;\n $all = $this->product->include_join_fields()->get()->all;\n foreach ($all as $product){\n \n $total+= $product->join_qty;\n \n }\n return $total;\n }", "title": "" }, { "docid": "7b78aa7cea3f1c1b880df2ae0db845db", "score": "0.6409007", "text": "public function getMaxOrderTotal();", "title": "" }, { "docid": "a212711ddb5bdcf18c13baa840687dfd", "score": "0.637883", "text": "private function getOldTotal()\n {\n return $this->collection->items[$this->cart_hash]->total;\n }", "title": "" }, { "docid": "05cb8fa2b8dc1083d234a858218e9f27", "score": "0.6371815", "text": "public function getNewShippingTotal()\r\n {\r\n $totalItem = 0;\r\n foreach ($this->_getQuote()->getAllVisibleItems() as $item) {\r\n $totalItem += $item->getQty();\r\n }\r\n return $totalItem;\r\n }", "title": "" }, { "docid": "5ec21b2126110827c0c975fc69141351", "score": "0.6343967", "text": "public function getOrderTrackingCount()\n {\n return $this->count(self::order_tracking);\n }", "title": "" }, { "docid": "2e2dc78e4a207fe9d689edfa4b756bf4", "score": "0.6337383", "text": "public function get_total()\n {\n }", "title": "" }, { "docid": "49744842a70da590f8c8efc0a97d9046", "score": "0.63159156", "text": "public static function getTotalValueOfOrderDashboard()\n {\n \ttry\n \t{\n\t \t$storage = My_Zend_Globals::getStorage();\n\t \n\t \t$table = self::_TABLE_PRODUCT_ORDER_DETAIL;\n\t \n\t \t//Query data from database\n\t \t$select = $storage->select()\n\t\t\t\t\t \t->from($table,'sum(amount_total)')\n\t\t\t\t\t \t->where('order_status = ?', 0);\n\t \t \n\t \t$total = $storage->fetchCol($select);\n\t \t \n\t \t$total = intval($total['total']);\n\t \t\n\t \treturn $total;\n \t}\n \tcatch(Exception $e)\n \t{\n \t\treturn false;\n \t}\t \t\n }", "title": "" }, { "docid": "60abf4e208069fe1e09303d11648692d", "score": "0.6278578", "text": "protected function getOrderCount()\n {\n $customer = $this->customerSession->getCustomer();\n if($customer->getId())\n {\n $orders = $this->orderCollectionFactory->create()->addFieldToSelect(\n '*'\n )->addFieldToFilter(\n 'customer_id',\n $customer->getId()\n )->setOrder(\n 'created_at',\n 'desc'\n );\n return count($orders);\n }\n return 0;\n }", "title": "" }, { "docid": "56ff092463bd4d9c78383a397be5821f", "score": "0.62727594", "text": "public function ordersGetTotalPages() {\n\t\t##\thttps://docs.topspin.net/tiki-index.php?page=Order+API#View_Orders\n\t\t##\n\t\t##\tRETURN\n\t\t##\t\tThe number of total pages of Orders\n\t\t$url = 'http://app.topspin.net/api/v1/order';\n\t\t$data = json_decode($this->process($url,null,false));\n\t\tif(isset($data->total_pages)) { return $data->total_pages; }\n\t}", "title": "" }, { "docid": "4fba85977f1b4aaf3866631721a5fc19", "score": "0.6270796", "text": "function getOverallOrderRemain(){\n\t\t$t=0;\n\t\t$a = Order::all();\n\t\tforeach($a as $n){\n\t\t$dur= $n->qty;\n\t\t$sl =Order::where('payment', 'verified')->count();\n\t\t$r=intVal($sl);\n\t\t$t = $t + $r;\n\t\t}\n\t\treturn $t;\n\t\t}", "title": "" }, { "docid": "3d74043d7d10e442f7eeeff40bbc2745", "score": "0.62212384", "text": "private function calculateOrderAmount()\n {\n if ($this->getOffer() instanceof Offer) {\n //recalculates the new amount\n $this->getOffer()->calculateInvoiceAmount();\n Shopware()->Models()->persist($this->getOffer());\n }\n }", "title": "" }, { "docid": "f3fb1a57f392023ce4f294f3c5271c50", "score": "0.6218344", "text": "function getGstByOrder($orders_id) {\n\t\t$sel_ord_query = tep_db_query(\"SELECT value FROM \" . TABLE_ORDERS_TOTAL . \" WHERE orders_id = '\".$orders_id.\"' AND class = 'ot_gst_total'\");\n\t\t$gsttot = 0;\n\t\twhile($rst_arr = tep_db_fetch_array($sel_ord_query)) {\n\t\t\t$gsttot += $rst_arr[\"value\"];\n\t\t}\n\t\treturn $gsttot;\n\t}", "title": "" }, { "docid": "501e74ef1ed41d4a973478dd1a00a6a8", "score": "0.62148684", "text": "function total_other_transactions_amount(){\n $today_other_rec_q = mysql_query(\"SELECT COUNT(order_id) AS TOTAL_OTHER_ORDERS,SUM(amount) AS TOTAL_AMOUNT FROM orders WHERE (card_payment_type = '6' OR card_payment_type = 'J') AND DATE_FORMAT(timestamp,'%Y-%m-%d') = CURDATE()\");\n $today_other_rec = mysql_fetch_assoc($today_other_rec_q);\n $total_other_transactions = $today_other_rec[\"TOTAL_OTHER_ORDERS\"];\n $total_other_transactions_amount = $today_other_rec[\"TOTAL_AMOUNT\"];\n return $total_other_transactions_amount;\n }", "title": "" }, { "docid": "5c584d81fe23ba658bcd0de5a4801c88", "score": "0.62069714", "text": "protected function totalOrders($all = false) {\n if (!$all) {\n return $this->shipsList->where('status_id', 1)->count();\n }\n\n return $this->shipsList->count();\n }", "title": "" }, { "docid": "526ffc3b6e0075c8a7094b550c48dae6", "score": "0.61890334", "text": "function getOverallOrderPrice(){\n\t\t$t=0;\n\t\t$a = Order::where('payment', 'verified')->get();\n\t\tforeach($a as $n){\n\t\t$dur= $n->qty;\n\t\t\n\t\t$r = intVal($n->qty)*intVal($n->price);\n\t\t$t = $t + $r;\n\t\t}\n\t\treturn $t;\n\t\t}", "title": "" }, { "docid": "7a7236f1b0079483aeba1eebf79cd31a", "score": "0.618674", "text": "public function get_total()\n\t{\n\t\t$query = $this->query;\n\t\tif(isset($query['order']))\n\t\t\t$query['order'] = $this->model->table() . '.id';\n\t\treturn $this->model->count($query);\n\t}", "title": "" }, { "docid": "d42106f9318471da4fd3c546906f78c0", "score": "0.61713696", "text": "public static function get_nb_orders(){\n $return = array();\n $sql = \"SELECT count(mo.id)\n FROM miki_person mp, miki_order mo\n WHERE mp.id = mo.id_person\";\n $result = mysql_query($sql);\n\n $row = mysql_fetch_array($result);\n return $row[0];\n }", "title": "" }, { "docid": "5fcb8153752c2e86071b592c16b09818", "score": "0.6165007", "text": "public function getTotalInvoiced();", "title": "" }, { "docid": "935ecf77f287b9379e29bf1f823ec60b", "score": "0.61607665", "text": "protected function getTotal()\n {\n $total = 0;\n foreach ($this->entries as $entry) {\n $total += $entry['price'] * $entry['quantity'];\n }\n\n return $total;\n }", "title": "" }, { "docid": "5eb7af6847cd922b7eb5fa8e559f4c76", "score": "0.61452824", "text": "public function getOrders()\n {\n return $this->orders;\n }", "title": "" }, { "docid": "0e4d2ac9575ac986a3e63ab8569b9c76", "score": "0.6142556", "text": "function get_order_total(){\n\t$cart = $_SESSION['custCart_ID']; // the SESSION and COOKIE customer cart items array\n\t$max=count($_SESSION[$cart]);\n\t$sum=0;\n\tfor($i=0;$i<$max;$i++){\n\t\t$pid=$_SESSION[$cart][$i]['bookid'];\n\t\t$q=$_SESSION[$cart][$i]['qty'];\n\t\t$price=get_price($pid);\n\t\t$sum+=$price*$q;\n\t}\n\treturn $sum;\n}", "title": "" }, { "docid": "496bc0c28c1ae84e89700058cc363d67", "score": "0.6129926", "text": "public function getTotal();", "title": "" }, { "docid": "496bc0c28c1ae84e89700058cc363d67", "score": "0.6129926", "text": "public function getTotal();", "title": "" }, { "docid": "258f6fc24f4c3b5dc08e2a3f36b29db2", "score": "0.6125867", "text": "public function getNumOfOrdersInBasket() {\n\n $basketUser = $this->getBasketUserFromAuth();\n\n $result = 0;\n if ($basketUser != null) {\n $basketDetailModel = new Application_Model_BasketDetail();\n\n\n $result = $basketDetailModel->getNumOfOrdersInBasket($basketUser);\n }\n\n return $result;\n }", "title": "" }, { "docid": "5101afb7a52d5021ae042b2c8b334d16", "score": "0.61060774", "text": "static public function get_shipping_line_total( $order ){\n\n \t\t$version = toret_check_wc_version();\n\n \tif( $version === false ){\n\n \t$total = $order->get_total_shipping(); \n \n \t}else{\n\n\t $shippings = $order->get_items( 'shipping' );\n\t\t\t\tforeach( $shippings as $shipping ){\n \t\t\t\t\t\n \t\t\t\t$total = $shipping->get_total();\n \t\t\t\t\t\n\t\t\t\t} \t\n\n \t}\n\n \treturn $total;\n\n \t}", "title": "" }, { "docid": "5e9b51deb5bf209dfa6e9010617e8f23", "score": "0.6103088", "text": "function getOrders() {\n\t\t$orders = Mage::getModel ( 'sales/order' )->getCollection ()->addAttributeToSelect ( \"*\" )->addAttributeToFilter ( 'status', array ('complete') );\n\t\t$orders_data = $this->preapreOrdersTosend ( $orders );\n\t\treturn $orders_data;\n\t}", "title": "" }, { "docid": "b3661e8e39e5d69cdc7fd0b607107b6d", "score": "0.61009693", "text": "function getOrder()\n {\n return 20;\n }", "title": "" }, { "docid": "b3661e8e39e5d69cdc7fd0b607107b6d", "score": "0.61009693", "text": "function getOrder()\n {\n return 20;\n }", "title": "" }, { "docid": "240ab95ef8e62ad51a6950d784954a75", "score": "0.6079869", "text": "public function get_total_items(){\n\t \t$total = 0;\n\t \t//Si no esta vacio va sumando la cantidad de articulos\n\t \tif(!empty($this->cart)){\n\t \t\tforeach ($this->cart as $linea){\n\t\t\t\t\t$total += $linea['amount'];\n\t\t\t\t}\n\t \t}\n\t \techo $total;\n\t }", "title": "" }, { "docid": "aa7bfb04f74e91fa9b56796da63a70b1", "score": "0.6078221", "text": "public function getBaseTotalQtyOrdered();", "title": "" }, { "docid": "da272b45811ebc43e5c0866a20b71d0b", "score": "0.60754114", "text": "function getTotal()\n\t{\n\t\treturn $this->_total;\n\t}", "title": "" }, { "docid": "42bc5b26af5caf31c1260f0a3e379e7d", "score": "0.60751474", "text": "public function getOrder()\n {\n return 30;\n }", "title": "" }, { "docid": "a6c479b1d488d0480417d01594c35b53", "score": "0.60524064", "text": "public function all_ActiveOrdersCount_get() {\n $result = $this->feeds_model->all_ActiveOrdersCount();\n return $this->response($result);\n }", "title": "" }, { "docid": "4427b55da06078ac76cc199c96ecd6c3", "score": "0.60469896", "text": "function getShippingByOrder($orders_id) {\n\t\t$sel_ord_query = tep_db_query(\"SELECT value FROM \" . TABLE_ORDERS_TOTAL . \" WHERE orders_id = '\".$orders_id.\"' AND class = 'ot_shipping'\");\n\t\t$shiptot = 0;\n\t\twhile($rst_arr = tep_db_fetch_array($sel_ord_query)) {\n\t\t\t$shiptot += $rst_arr[\"value\"];\n\t\t}\n\t\treturn $shiptot;\n\t}", "title": "" }, { "docid": "784f2d264a06f5791b4a21657c9a6fd2", "score": "0.60468936", "text": "public function total();", "title": "" }, { "docid": "784f2d264a06f5791b4a21657c9a6fd2", "score": "0.60468936", "text": "public function total();", "title": "" }, { "docid": "784f2d264a06f5791b4a21657c9a6fd2", "score": "0.60468936", "text": "public function total();", "title": "" }, { "docid": "53236e7f4ff86e0d415035101b864243", "score": "0.60282546", "text": "public function getMontoTotal() {\n $command = Yii::app()->db->createCommand()\n ->select('sum(t.monto) as total')\n ->from('pago t');\n return $command->queryRow()['total'];\n }", "title": "" }, { "docid": "3d49b93b01cfc6c2ebe43433be0004a2", "score": "0.6028209", "text": "public function total()\n {\n \treturn $this->price()*$this->quantity;\n }", "title": "" }, { "docid": "dadd220a74b5097123c854847d005d3c", "score": "0.60219425", "text": "public function addOrderItemsCount()\r\n {\r\n $itemTable = $this->_helper()->getSql()->getTable('sales_flat_order_item');\r\n if ($this->_helper()->checkSalesVersion('1.4.0.0')) {\r\n $this->getSelect()\r\n ->join(array('item' => $itemTable), \"(item.order_id = main_table.entity_id AND item.parent_item_id IS NULL)\",\r\n array(\r\n 'sum_qty' => 'SUM(item.qty_ordered)',\r\n 'sum_total' => 'SUM(item.base_row_total)',\r\n ))\r\n ->where(\"main_table.entity_id = item.order_id\");\r\n } else {\r\n $this->getSelect()\r\n ->join(array('item' => $itemTable), \"(item.order_id = e.entity_id AND item.parent_item_id IS NULL)\",\r\n array(\r\n 'sum_qty' => 'SUM(item.qty_ordered)',\r\n 'sum_total' => 'SUM(item.base_row_total)',\r\n ))\r\n ->where(\"e.entity_id = item.order_id\");\r\n }\r\n return $this;\r\n }", "title": "" }, { "docid": "21463e77b92eccc5f62e1e1a3a069656", "score": "0.6017302", "text": "public function totaliza_pedido()\r\n {\r\n\r\n $valor_desconto = 0;\r\n $valor_pedido = 0;\r\n $valor_ipi = 0;\r\n $valor_total = 0;\r\n $desconto = $this->mgt_pedido_cliente_desconto->Text;\r\n $frete = $this->mgt_pedido_valor_frete->Text;\r\n\r\n if($desconto < 0)\r\n {\r\n $desconto = 0;\r\n }\r\n\r\n if($frete < 0)\r\n {\r\n $frete = 0;\r\n }\r\n\r\n $this->mgt_pedido_valor_desconto->Text = '0.00';\r\n $this->mgt_pedido_valor_pedido->Text = '0.00';\r\n $this->mgt_pedido_valor_ipi->Text = '0.00';\r\n $this->mgt_pedido_valor_total->Text = '0.00';\r\n\r\n $Comando_SQL = \"select * from mgt_cotacoes_produtos where mgt_cotacao_produto_numero_cotacao = '\" . trim($this->mgt_pedido_numero->Text) . \"' order by mgt_cotacao_produto_numero\";\r\n\r\n GetConexaoPrincipal()->SQL_MGT_Cotacoes_Produtos->Close();\r\n GetConexaoPrincipal()->SQL_MGT_Cotacoes_Produtos->SQL = $Comando_SQL;\r\n GetConexaoPrincipal()->SQL_MGT_Cotacoes_Produtos->Open();\r\n\r\n if((GetConexaoPrincipal()->SQL_MGT_Cotacoes_Produtos->EOF) != 1)\r\n {\r\n while((GetConexaoPrincipal()->SQL_MGT_Cotacoes_Produtos->EOF) != 1)\r\n {\r\n $valor_ipi = $valor_ipi + GetConexaoPrincipal()->SQL_MGT_Cotacoes_Produtos->Fields['mgt_cotacao_produto_valor_ipi'];\r\n $valor_pedido = $valor_pedido + GetConexaoPrincipal()->SQL_MGT_Cotacoes_Produtos->Fields['mgt_cotacao_produto_valor_total'];\r\n\r\n GetConexaoPrincipal()->SQL_MGT_Cotacoes_Produtos->Next();\r\n }\r\n }\r\n\r\n if($desconto > 0)\r\n {\r\n $valor_desconto = (($valor_pedido * $desconto) / 100);\r\n }\r\n else\r\n {\r\n $valor_desconto = 0;\r\n }\r\n\r\n $valor_total = ((($valor_pedido + $valor_ipi) + $frete) - $valor_desconto);\r\n\r\n $this->mgt_pedido_valor_desconto->Text = number_format($valor_desconto, \"2\", \".\", \"\");\r\n $this->mgt_pedido_valor_pedido->Text = number_format($valor_pedido, \"2\", \".\", \"\");\r\n $this->mgt_pedido_valor_ipi->Text = number_format($valor_ipi, \"2\", \".\", \"\");\r\n $this->mgt_pedido_valor_total->Text = number_format($valor_total, \"2\", \".\", \"\");\r\n }", "title": "" }, { "docid": "116efc167d713f7bbccb9841cc8bbbaf", "score": "0.60167056", "text": "function totals()\n\t{\n\t\treturn $this->_tour_voucher_contents['totals'];\n\t}", "title": "" }, { "docid": "2574565d0a08871eb57bdb14d9a3c9ab", "score": "0.60166335", "text": "public function todaysSalesTotal()\n {\n \n //get todays Date\n $fromDate = Mage::helper('magemobapp')->getTodaysDate();\n \n $storeId = Mage::getModel('magemobapp/storeinfo')->getStoreId();\n \n $collection = Mage::getResourceModel('sales/order_collection')->addAttributeToFilter('created_at', array(\n 'from' => $fromDate\n ));\n \n if ($storeId != 0) {\n $collection->addAttributeToFilter('store_id', $storeId); //fill store\n }\n //$collection;\n \n $collection->addAttributeToSelect('base_grand_total')->addAttributeToSelect('base_total_refunded')->addAttributeToSelect('base_total_paid');\n\n \n $data = $collection->getData();\n $total = 0;\n foreach ($data as $eachData) {\n if (isset($eachData['status']) && $eachData['status'] == 'complete') {\n if ($eachData['base_total_refunded'] == '') {\n $total += (float) $eachData['base_total_paid'];\n } else {\n $total += (float) $eachData['base_total_paid'] - (float) $eachData['base_total_refunded'];\n }\n } else {\n $total += (float) $eachData['base_grand_total'];\n }\n }\n return Mage::helper('core')->currency($total, true, false);\n }", "title": "" }, { "docid": "69b2d74d54883e4a02425ca2e70c4f7a", "score": "0.6015895", "text": "public function countOrder(): int;", "title": "" }, { "docid": "abf95846f5e9a3a4cf460c7615981bfb", "score": "0.6001995", "text": "public function getTotal(){\n\t\treturn $this->_total;\n\t}", "title": "" }, { "docid": "f22f70238c3b564d01d13b780f459ed3", "score": "0.5992404", "text": "public function totalRecount()\n {\n $products = $this->products;\n $newTotal = 0;\n foreach ($products as $product) {\n if ($product->removed) {\n continue;\n }\n $newTotal += $product->count * $product->price;\n }\n $this->total = $newTotal;\n $this->save();\n }", "title": "" }, { "docid": "f92b6f4a60c85f25314b7bae1711c16f", "score": "0.5992268", "text": "public function get_total()\n\t{\n\t\treturn $this->EE->cartthrob->cart->total();\n\t}", "title": "" }, { "docid": "243a9e77f96edc90417386de7ac3ae8c", "score": "0.5991658", "text": "public function getOrders() \n {\n return $this->_fields['Orders']['FieldValue'];\n }", "title": "" }, { "docid": "386a166579321571b1310c30830934f1", "score": "0.5979733", "text": "public function getOrder()\n {\n return 20;\n }", "title": "" }, { "docid": "386a166579321571b1310c30830934f1", "score": "0.5979733", "text": "public function getOrder()\n {\n return 20;\n }", "title": "" }, { "docid": "cfa4c343cd9456b8a7c9d27023f81648", "score": "0.5978016", "text": "public function getTotal()\n {\n return $this->getQty() * $this->getProduct()->getPrice();\n }", "title": "" }, { "docid": "35b332e1c6027c20e6af1c7df8aa8a1a", "score": "0.5967966", "text": "public function gettotal()\r\n {\r\n return $this->total;\r\n }", "title": "" }, { "docid": "c139a9f64ea1dd4663786cf3437e0f86", "score": "0.59655046", "text": "public function getTotal()\n {\n return $this->total;\n }", "title": "" }, { "docid": "c139a9f64ea1dd4663786cf3437e0f86", "score": "0.59655046", "text": "public function getTotal()\n {\n return $this->total;\n }", "title": "" }, { "docid": "c139a9f64ea1dd4663786cf3437e0f86", "score": "0.59655046", "text": "public function getTotal()\n {\n return $this->total;\n }", "title": "" }, { "docid": "c139a9f64ea1dd4663786cf3437e0f86", "score": "0.59655046", "text": "public function getTotal()\n {\n return $this->total;\n }", "title": "" }, { "docid": "c139a9f64ea1dd4663786cf3437e0f86", "score": "0.59655046", "text": "public function getTotal()\n {\n return $this->total;\n }", "title": "" }, { "docid": "c139a9f64ea1dd4663786cf3437e0f86", "score": "0.59655046", "text": "public function getTotal()\n {\n return $this->total;\n }", "title": "" }, { "docid": "10c4e7a612307c58b3b1add397c3fb3a", "score": "0.59647745", "text": "public function getOrder(): int\n {\n return 6;\n }", "title": "" }, { "docid": "c768b5f07aefcda30e6193dfea594b36", "score": "0.5964583", "text": "function getOrder()\n{\n\n}", "title": "" }, { "docid": "e298021791a7ad82fea797867b5e9a28", "score": "0.5962297", "text": "public function totalBillOS()\n {\n return $this->bills->sum('outstanding');\n }", "title": "" }, { "docid": "ae4fd2ea41d432b50486a52009d3715f", "score": "0.59474725", "text": "public function getTotalAmount();", "title": "" }, { "docid": "6a9fc54eecafb0b0a79d0c2667728f0f", "score": "0.5945393", "text": "public static function getOrderedProductsQuantity(): string\n {\n $query = new Query();\n $total = $query->select([\n 'COUNT(*) as total'\n ])\n ->from(['sale_items'])\n ->where([\n 'customer_auth_id' => Yii::$app->user->identity->id,\n 'sale_id' => 0\n ])\n ->scalar();\n\n return $total;\n }", "title": "" }, { "docid": "67dfb036b0e58066ca35241218fc4f69", "score": "0.5941366", "text": "public function count() {\n\t\treturn $this->field('Cart.order_item_count', $this->cartConditions());\n\t}", "title": "" }, { "docid": "aecffaef031b2227831f238826e9a3f3", "score": "0.5935174", "text": "public function getCartTotal()\n {\n }", "title": "" }, { "docid": "f8d710260a3d32d42230ec9b39f3b27e", "score": "0.59329545", "text": "public function total(){\n\t\treturn $this->total;\n\t}", "title": "" }, { "docid": "eaeade54da183518944d82de631b1b68", "score": "0.59319603", "text": "public function qtdTotalChamadosAbertosCustomer() {\n $tickets = Yii::app()->dbFRAPORT->createCommand()\n ->select(\"COUNT(t.id) as qtd \")\n ->from(\"ticket AS t \")\n ->join(\"ticket_history AS th\", \"t.id = th.ticket_id \")\n ->where(\"t.create_time BETWEEN :dtIni and :dtFim AND history_type_id = 1 AND th.queue_id = 1 AND (th.state_id = 1 OR th.state_id = 4) \"\n , array(':dtIni' => FksFormatter::StrToDate($this->dtInicio),\n ':dtFim' => FksFormatter::StrToDate($this->dtTermino),\n ))\n ->queryAll();\n return $tickets[0]['qtd'];\n }", "title": "" }, { "docid": "4bef5eab568b901ffc4e0a99562574d2", "score": "0.593122", "text": "public function testTotalAmountCalculation(): void\n {\n $order = new Order('consumerIdTest123', '845126849', new \\DateTimeImmutable('midnight'), 'OrderNumber123', 7);\n $order->addOrderLine('productIdTest1', 2, 4.9);\n $order->addOrderLine('productIdTest2', 3, 10.5);\n\n static::assertEquals(41.3, $order->getAmount());\n }", "title": "" }, { "docid": "6a1ecd992ec9c875d4b1a3ecd34d3f5d", "score": "0.5931159", "text": "public function getOrder()\n {\n return 15;\n }", "title": "" }, { "docid": "9d2befef543fa6e0ff60e0ebb298ba9a", "score": "0.59274536", "text": "public function getOrderIdCount()\n {\n return $this->count(self::order_id);\n }", "title": "" }, { "docid": "9c526cd048f21969c70807b7a7776048", "score": "0.5925987", "text": "public function getTotal() {\n return $this->get(self::TOTAL);\n }", "title": "" }, { "docid": "21653c35f1eaccbd0f69ab84e73f7175", "score": "0.59233254", "text": "public function calculateOrderTotal($items)\n {\n $total = 0;\n foreach ($items as $key => $item) {\n $total += $item['quoted_price'];\n }\n return $total;\n }", "title": "" }, { "docid": "cfbe4552081206bf1ee31ef5cb33144f", "score": "0.5918784", "text": "private function getOrderNumber()\n {\n $number = Shopware()->Db()->fetchOne(\"/*NO LIMIT*/ SELECT number FROM s_order_number WHERE name='invoice' FOR UPDATE\");\n Shopware()->Db()->executeUpdate(\"UPDATE s_order_number SET number = number + 1 WHERE name='invoice'\");\n $number += 1;\n\n return $number;\n }", "title": "" }, { "docid": "ab8ddd36415a541ee0495bf67ac83c18", "score": "0.5914495", "text": "protected function get_totalPedidos()\n {\n $pedidos = DB::SELECT(\"SELECT COUNT(*) AS t_pedidos \n FROM pedidos \n WHERE extract(month FROM current_date) = extract(month FROM created_at);\");\n foreach($pedidos as $pedido)\n {\n $pedid_mes = $pedido->t_pedidos; \n }\n return $pedid_mes;\n }", "title": "" }, { "docid": "0e4e6ea9ebc5437ef4171da05b01736e", "score": "0.59035033", "text": "public function get_order() {\n return 500;\n }", "title": "" }, { "docid": "589ac48a823e9c5745554f4d0ad2c2d7", "score": "0.58857334", "text": "public function getOrderBaseGrandTotal(){\n return $this->_getData(self::ORDER_BASE_GRAND_TOTAL);\n }", "title": "" }, { "docid": "7e91eb5ede992e14d8c774ed6f3b8aab", "score": "0.58835447", "text": "function carton_processing_order_count() {\n\tif ( false === ( $order_count = get_transient( 'carton_processing_order_count' ) ) ) {\n\t\t$order_statuses = get_terms( 'shop_order_status' );\n\t $order_count = false;\n\t foreach ( $order_statuses as $status ) {\n\t if( $status->slug === 'processing' ) {\n\t $order_count += $status->count;\n\t break;\n\t }\n\t }\n\t $order_count = apply_filters( 'carton_admin_menu_count', intval( $order_count ) );\n\t\tset_transient( 'carton_processing_order_count', $order_count );\n\t}\n\n\treturn $order_count;\n}", "title": "" }, { "docid": "886ea937a4214ab532408e32bb9ada9e", "score": "0.58810735", "text": "public function total()\n {\n return $this->total;\n }", "title": "" }, { "docid": "886ea937a4214ab532408e32bb9ada9e", "score": "0.58810735", "text": "public function total()\n {\n return $this->total;\n }", "title": "" }, { "docid": "d58b2e927511b84fb1ce54af959b533e", "score": "0.58762157", "text": "public function getTotal()\n {\n return $this->getAmount() * $this->getPrice();\n }", "title": "" } ]
1e965bfd0979958df2d022d08c6d78db
Metodo para crar y dar permiso al directorio
[ { "docid": "ad40271a3f443caf54545a53c3a9e063", "score": "0.707567", "text": "function CrearDirectorio()\n\t{\n\t\t//echo $this->_directory;\n\t\tif(!is_dir($this->_directory))\n\t\t{\n\t\t\tif(mkdir($this->_directory))\n\t\t\t{\n\t\t\t\t$this->_msj = \"dirCreado\";\t\t\t\n\t\t\t\tchmod($this->_directory,0777);\n\t\t\t\treturn true;\n\t\t\t}else{\t\t\t\n\t\t\t\t$this->_msj = \"errDirCrea\";\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "9576bf545aa932959b42a5f4c4991cd7", "score": "0.6859501", "text": "public function allowsCreateDir();", "title": "" }, { "docid": "3e795f9898fdfb797f2c288910738336", "score": "0.6640606", "text": "function galleryKategori_CreateDirektori( \n\t \t$tanggalhariini\n\t){\n \t\t$direktoribuat = \"filemodul/gallery/\" . \"kategoriimage/\" . $tanggalhariini . \"/\";\n\t \tif (is_dir( $direktoribuat )) \n\t \t{ }\n\t \telse\n\t \t{\n\t\t\t mkdir( $direktoribuat,'0777',true); \n\t\t\t chmod( $direktoribuat, 0777);\n\t \t}\n\t\treturn $direktoribuat;\n\t}", "title": "" }, { "docid": "2c8b096ced47536d164d69a334e1c47d", "score": "0.6586396", "text": "function nouveauDossier($repertoire){\n\treturn mkdir ( $repertoire, 775);\n}", "title": "" }, { "docid": "6853e391a6852b6a3b5e7f0887fa5898", "score": "0.65465754", "text": "public function create( $chmod=0775 );", "title": "" }, { "docid": "220fac1157956f392f5c16e07b301b7f", "score": "0.6517365", "text": "function pollingItemjawaban_CreateDirektori( \n\t \t$tanggalhariini\n\t){\n \t\t$direktoribuat = \"jawabanmodul/polling/\" . \"jawabanattachement/\" . $tanggalhariini . \"/\";\n\t \tif (is_dir( $direktoribuat )) \n\t \t{ }\n\t \telse\n\t \t{\n\t\t\t mkdir( $direktoribuat,'0777',true); \n\t\t\t chmod( $direktoribuat, 0777);\n\t \t}\n\t\treturn $direktoribuat;\n\t}", "title": "" }, { "docid": "3cec16c6b673ddc9b6e2fd2ff8ea4236", "score": "0.6499387", "text": "function set_can_create_dir($can_create = 'default') {\n if (!session_id()) return;\n $_SESSION['re_set_can_create_dir_sess'] = $can_create;\n }", "title": "" }, { "docid": "6ff7352a51f169ec276d5a32ebf5f8de", "score": "0.6482832", "text": "function myhome_create_dir( $directory='' )\n{\n$thePath = $directory;\n\n\tif(@is_writable($thePath)){\n\t\tmyhome_chmod($thePath, $mode = 0777);\n Return $thePath;\n\t} elseif(!@is_dir($thePath)) {\n \t myhome_mkdir($thePath);\n Return $thePath;\n\t} else {\n Return 0;\n }\n}", "title": "" }, { "docid": "582c6046415d18ca20813416a0c627bb", "score": "0.63934165", "text": "function tanyajawabKategori_CreateDirektori( \n\t \t$tanggalhariini\n\t){\n \t\t$direktoribuat = \"filemodul/tanyajawab/\" . \"kategoriimage/\" . $tanggalhariini . \"/\";\n\t \tif (is_dir( $direktoribuat )) \n\t \t{ }\n\t \telse\n\t \t{\n\t\t\t mkdir( $direktoribuat,'0777',true); \n\t\t\t chmod( $direktoribuat, 0777);\n\t \t}\n\t\treturn $direktoribuat;\n\t}", "title": "" }, { "docid": "4949b7cf2a1da9760e0840b8b04ab6d5", "score": "0.63380134", "text": "private function _crearDirectorio($ruta)\n {\n if (!file_exists($ruta)) @mkdir($ruta, 0777, true);\n $this->_crearArchivoIndex($ruta);\n }", "title": "" }, { "docid": "befa4e732b39d6bf93dade97ed3f67e2", "score": "0.63038975", "text": "public function silo_permissions( $path );", "title": "" }, { "docid": "16bdbe50d37603b37f70c64793ab79f8", "score": "0.62974685", "text": "function crearCarpetas($ruta){\n\t//primero verifico si existe el derectorio\n\t$ruta = dirname($ruta);\n\tif(!is_dir($ruta)){\n\t\t//si no existe lo creare, pero primero tengo que verificar que exista su directorio padre\n\t\t$dirPadre = (dirname($ruta));\n\t\tif(!is_dir($dirPadre)){\n\t\t\t//como no existe su directorio padre entonces tengo que crear este primero pero tengo que hacerlo recursivamente\n\t\t\tcrearCarpetas($ruta);\n\t\t\t//una vez creado el directorio padre pasare a crear la nueva carpeta\n\t\t\tmkdir(($ruta));\n\t\t\t}else{\n\t\t\t\t//como existe su directorio padre entonces si puedo crear la carpeta\n\t\t\t\tmkdir($ruta);\n\t\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6858572ff94fb0350caa1ed492c35eca", "score": "0.62437594", "text": "function directory_usable($dir, $chmod='0777') {\n\n\t//If it doesn't exist - make it!\n\tif(!is_dir($dir)) {\n\t\tif(!mkdir($dir, $chmod, TRUE)) {\n\t\t\ttrigger_error('Could not create the directory: <b>'. $dir. '</b>', E_USER_WARNING);\n\t\t\treturn;\n\t\t}\n\t}\n\n\t//Make it writable\n\tif(!is_writable($dir)) {\n\t\tif(!chmod($dir, $chmod)) {\n\t\t\ttrigger_error('Could not CHMOD 0777 the directory: <b>'. $dir. '</b>', E_USER_WARNING);\n\t\t\treturn;\n\t\t}\n\t}\n\n\treturn TRUE;\n}", "title": "" }, { "docid": "ba3fd42f7a7425720508d3f48066a9ec", "score": "0.62250566", "text": "function _create_directory()\r\r\n {\r\r\n try {\r\r\n if (!is_dir($this->file_write_path)) {\r\r\n mkdir($this->file_write_path, 0777, true);\r\r\n }\r\r\n } catch (Exception $exception) {\r\r\n echo $exception->getMessage();\r\r\n }\r\r\n }", "title": "" }, { "docid": "ea9dacb03ca34c0a3fae4fad0a69d94a", "score": "0.62219274", "text": "private function changeAccessModeOfDirectoryUpload()\n {\n $fullPath = cfg::PATH_CORE . 'public' . cfg::DS . 'arquivos';\n\n if (file_exists($fullPath) && chmod($fullPath, 0777)) {\n $this->message('> Permissões de acesso no diretório de upload setadas com sucesso');\n } else {\n throw new \\Exception(\"\"\n . \"Não foi possível configurar as permissões de acesso do diretório de upload de arquivos.\" . PHP_EOL\n . \"Path:\" . $fullPath\n . \"\" . PHP_EOL);\n }\n }", "title": "" }, { "docid": "da35462b189f62942680b3c55d77cdf4", "score": "0.61947864", "text": "function mkdirs($path, $mod = 0777){\n if (is_dir($path)) {\n return chmod($path, $mod);\n } else {\n $old = umask(0);\n if (mkdir($path, $mod, true) && is_dir($path)) {\n umask($old);\n return true;\n } else {\n umask($old);\n }\n }\n return false;\n}", "title": "" }, { "docid": "711150e64f6fa880932b596ac9f28d42", "score": "0.6183525", "text": "public function testDirPermission1()\n {\n $this->assertDirectoryIsReadable('tests');\n\n //se o diretorio tem permissao de escrita\n $this->assertDirectoryIsWritable('tests');\n }", "title": "" }, { "docid": "008296cdc5a0c2b99d8de4230fb9b0c0", "score": "0.61445844", "text": "function mkdir_rec($dir, $access=0777){\r\n\t// Make dir and set correct permissions\r\n\t$bits = split(\"/\", $dir);\t$newlevel = '.';\r\n\tforeach($bits as $level) {\r\n\t\t$newlevel .= '/' . $level;\r\n\t\tif(!file_exists($newlevel)) {\r\n\t\t\techo \"Dir: $newlevel ...\";\r\n\t\t\tmkdir($newlevel, 0777);\r\n\t\t}\r\n\t}\r\n}", "title": "" }, { "docid": "abd343ddd0f6b11bdaa92b4d902d74a0", "score": "0.60743535", "text": "function createFolder($newFolder,$mode = 0777) //add $mode for MODx\n\t{\n\t\tglobal $IMConfig;\n\t\tmkdir ($newFolder, 0777);\n\t\treturn chmod($newFolder, $mode); //modified for MODx\n\t}", "title": "" }, { "docid": "9619df95de6f6e67f7467b3957211ffd", "score": "0.6056888", "text": "function dynamik_folders_open_permissions()\r\n{\r\n\tglobal $dynamik_unwritable, $dynamik_folders;\r\n\t\r\n\tif( $dynamik_unwritable )\r\n\t{\r\n\t\tforeach( $dynamik_folders as $dynamik_folder )\r\n\t\t{\r\n\t\t\tif( is_dir( $dynamik_folder ) )\r\n\t\t\t{\r\n\t\t\t\tdynamik_open_permissions( $dynamik_folder );\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}", "title": "" }, { "docid": "b89e1dd9e9c6be84f39b16ba5847df76", "score": "0.6033247", "text": "protected function initAdminDirectory()\n {\n if (is_dir($this->directory)) {\n // return $this->line(\"<error>{$this->directory} directory already exists !</error> \");\n }\n\n $this->fileSystem->makeDirectory($this->directory, 0755, true, true);\n $this->fileSystem->makeDirectory($this->directory.\"/Controller\", 0755, true, true);\n $this->fileSystem->makeDirectory($this->directory.\"/View\", 0755, true, true);\n\n $this->createHomeController();\n\n $this->line('<info>Admin directory was created:</info> '. $this->directory);\n }", "title": "" }, { "docid": "1f6dbc407042507b6f838e855418c268", "score": "0.59798753", "text": "function ppm_chmod_item($item)\n{\n if ($item->isDir())\n {\n @chmod($item->getPathname(), 0755);\n }\n else\n {\n @chmod($item->getPathname(), 0644);\n }\n}", "title": "" }, { "docid": "bd64253447d8a166249a987104e1cf89", "score": "0.5965377", "text": "function create_dir($name) {\n if (!empty($name) && !is_dir($name)) {\n if (create_dir(dirname($name))) {\n return mkdir($name);\n echo 'Le répertoire '.$name.' vient d\\'être créé!'; \n } else {\n return false;\n echo 'erreur de création';\n }\n } else {\n return true;\n echo 'Le répertoire existe déjà!'; \n }\n}", "title": "" }, { "docid": "5696b7246678c079a447b715a69b42b0", "score": "0.5964981", "text": "function create_dir($path, $permission = 0775)\n {\n if (! File::exists($path)) {\n File::makeDirectory($path, $permission, true, true);\n }\n\n return $path;\n }", "title": "" }, { "docid": "6a4cd15c6cf6058aa63a4703075ebe46", "score": "0.59631884", "text": "function makeFolder($path)\n{\n $result = true;\n if (!File::exists($path)) {\n umask(0);\n $result = File::makeDirectory($path, 0777, true);\n }\n return $result;\n}", "title": "" }, { "docid": "504ea225bf7c560098b31e8c70c57f31", "score": "0.5955912", "text": "function create_dir($dir, $permissions = false){\n\tif (!is_dir($dir)){\n\t\t$success = mkdir($dir);\n\t\tif ($permissions !== false){\n\t\t\tchmod($dir, $permissions);\n\t\t}\n\t\treturn $success;\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "b71c809090e6850346543f6ecbf8455f", "score": "0.5954442", "text": "function change_perms($dir) {\n global $input_errors;\n\n $path = rtrim($dir,'/'); // remove trailing slash\n if (strlen($path) > 1) {\n if (!is_dir($path)) { // check if directory exists\n $input_errors[] = sprintf(gettext(\"Directory %s doesn't exist!\"), $path);\n }\n else {\n $path_check = explode(\"/\", $path); // split path to get directory names\n $path_elements = count($path_check); // get path depth\n $fp = substr(sprintf('%o', fileperms(\"/$path_check[1]/$path_check[2]\")), -1); // get mountpoint permissions for others\n if ($fp >= 5) { // transmission needs at least read & search permission at the mountpoint\n $directory = \"/$path_check[1]/$path_check[2]\"; // set to the mountpoint\n for ($i = 3; $i < $path_elements - 1; $i++) { // traverse the path and set permissions to rx\n $directory = $directory.\"/$path_check[$i]\"; // add next level\n exec(\"chmod o=+r+x \\\"$directory\\\"\"); // set permissions to o=+r+x\n }\n $path_elements = $path_elements - 1;\n $directory = $directory.\"/$path_check[$path_elements]\"; // add last level\n exec(\"chmod 775 {$directory}\"); // set permissions to 775\n exec(\"chown {$_POST['who']} {$directory}*\");\n }\n else\n {\n $input_errors[] = sprintf(gettext(\"RRDGraphs needs at least read & execute permissions at the mount point for directory %s! Set the Read and Execute bits for Others (Access Restrictions | Mode) for the mount point %s (in <a href='disks_mount.php'>Disks | Mount Point | Management</a> or <a href='disks_zfs_dataset.php'>Disks | ZFS | Datasets</a>) and hit Save in order to take them effect.\"), $path, \"/{$path_check[1]}/{$path_check[2]}\");\n }\n }\n }\n}", "title": "" }, { "docid": "82208aab783f57d3cdad5f07e4e40007", "score": "0.5937736", "text": "function set_file_folder_permissions() {\n @chmod('.', 0755); //set permissions on install dir\n @chmod('..', 0755); //set permissions on parent dir of install dir\n @chmod('country_data.csv.csv', 0755);\n}", "title": "" }, { "docid": "f2c19965699ccefae51aeec76add420a", "score": "0.59368646", "text": "function GuardarOrden() {\r\n\r\n\r\n if ($this->archivo['name'] != NULL || $this->archivo['name'] != \"\") {\r\n $extension_comunicado = explode(\".\", $this->archivo['name']);\r\n $pos_comunicado = count($extension_comunicado) - 1;\r\n $valido_archivo = false;\r\n foreach ($this->permitidos as $p) {\r\n if (strcasecmp($extension_comunicado[$pos_comunicado], $p) == 0)\r\n $valido_archivo = true;\r\n }\r\n if (!$valido_archivo) {\r\n return ERROR_ORDEN_NO_VALIDO;\r\n }\r\n\r\n if ($this->archivo['name'] == NULL || $this->archivo['name'] == \"\") {\r\n return ERROR_ORDEN_VACIA;\r\n }\r\n\r\n if ($this->archivo['size'] > MAX_SIZE_DOCUMENTOS) {\r\n return ERROR_TAM_ARCHIVO_COMUNICADO;\r\n }\r\n\r\n $dirOperadorutilidades = $this->database->getDirectorioOperador(OPERADOR_DEFECTO);\r\n $ruta = (RUTA_ORDENESDEPAGO_SOPORTES . \"/\" . $dirOperadorutilidades . \"/\");\r\n\r\n $carpetas = explode(\"/\", substr($ruta, 0, strlen($ruta) - 1));\r\n $ruta_destino = '';\r\n\r\n foreach ($carpetas as $c) {\r\n if (strlen($ruta_destino) > 0) {\r\n $ruta_destino .= \"/\" . $c;\r\n } else {\r\n $ruta_destino = $c;\r\n }\r\n //echo $ruta_destino.\"<br>\";\r\n if (!is_dir($ruta_destino)) {\r\n mkdir($ruta_destino, 0777);\r\n } else {\r\n chmod($ruta_destino, 0777);\r\n }\r\n }\r\n\r\n $nombre_compuesto_comunicado = ORDEN_DEPAGO_SOPORTE . \"(\" . $this->fecha_ordenedepago . \")\" . $this->archivo['name'];\r\n if (!move_uploaded_file($this->archivo['tmp_name'], utf8_decode($ruta . $nombre_compuesto_comunicado))) {\r\n return ERROR_COPIAR_ARCHIVO_ORDEN_SOPORTE;\r\n }\r\n if ($this->cuenta_cobro != null) {\r\n if ($this->cuenta_cobro == 'null' || $this->cuenta_cobro == '') {\r\n $temp = 'null';\r\n } else {\r\n $temp = \"'\" . $this->cuenta_cobro . \"'\";\r\n }\r\n } else {\r\n $temp = 'null';\r\n }\r\n $sindocumento = $this->database->insertarOrdendePago($this->Id_ordenedepago, $this->tipodeactividad_ordenedepago, $this->actividad_ordenedepago, $this->numero_ordenedepago, $this->fecha_ordenedepago, $this->numerofactura_ordenedepago, $this->proveedor_ordenedepago, $this->moneda_ordenedepago, $this->tasa_ordenedepago, $this->valortotal_ordenedepago, $this->estado_ordenedepago, $this->fechapago_ordenedepago, $this->observaciones, $temp, $this->archivo['name'], $this->contrato, $this->amortizacion);\r\n if ($sindocumento == \"true\") {\r\n $r = ORDEN_DE_PAGO_AGREGADA_EXITO;\r\n } else {\r\n $r = ORDEN_DE_PAGO_AGREGADA_FRACASO;\r\n }\r\n return $r;\r\n } else {\r\n if ($this->cuenta_cobro != null) {\r\n if ($this->cuenta_cobro == 'null' || $this->cuenta_cobro == '') {\r\n $temp = 'null';\r\n } else {\r\n $temp = \"'\" . $this->cuenta_cobro . \"'\";\r\n }\r\n } else {\r\n $temp = 'null';\r\n }\r\n $sindocumento = $this->database->insertarOrdendePago($this->Id_ordenedepago, $this->tipodeactividad_ordenedepago, $this->actividad_ordenedepago, $this->numero_ordenedepago, $this->fecha_ordenedepago, $this->numerofactura_ordenedepago, $this->proveedor_ordenedepago, $this->moneda_ordenedepago, $this->tasa_ordenedepago, $this->valortotal_ordenedepago, $this->estado_ordenedepago, $this->fechapago_ordenedepago, $this->observaciones, $temp, $this->archivo['name'], $this->contrato, $this->amortizacion);\r\n if ($sindocumento == \"true\") {\r\n $r = ORDEN_DE_PAGO_AGREGADA_EXITO_DOCUMENTO;\r\n } else {\r\n $r = ORDEN_DE_PAGO_AGREGADA_FRACASO;\r\n }\r\n return $r;\r\n }\r\n }", "title": "" }, { "docid": "233921aa39dd8dd6acabbd62c9a682b6", "score": "0.59334743", "text": "protected function createDirectories()\n {\n if (! is_dir(resource_path('views/layouts'))) {\n mkdir(resource_path('views/layouts'), 0755, true);\n }\n\n if (! is_dir(resource_path('views/auth/passwords'))) {\n mkdir(resource_path('views/auth/passwords'), 0755, true);\n }\n\n if (! is_dir('public/uploads/user_images')) {\n mkdir('public/uploads/user_images', 0755, true);\n }\n\n if (! is_dir('public/fonts')) {\n mkdir('public/fonts', 0755, true);\n }\n }", "title": "" }, { "docid": "e9801bb05c44a9d758e55bde7d1c4b28", "score": "0.5932804", "text": "public function create() {\r\n\t\t$this->mkdir();\t\r\n\t}", "title": "" }, { "docid": "a6abaf3ab386c5bb9d5f5811164724b3", "score": "0.5931123", "text": "public static function publicDir();", "title": "" }, { "docid": "4e3a6e427c872458b5d921299f82fd8a", "score": "0.5929851", "text": "public function getCreateDirectory();", "title": "" }, { "docid": "8d0ba698f6e36df8665e9b785d113c25", "score": "0.5927186", "text": "function auto_create_folder($dir){ \n return is_dir($dir) or (auto_create_folder(dirname($dir)) and mkdir($dir, 0777)); \n}", "title": "" }, { "docid": "cd7d1c0dfd23930649923520b739ab70", "score": "0.5921245", "text": "public abstract function makeSureItExists( $permissions = 0755 );", "title": "" }, { "docid": "0c7f106263a992ebf23a79ec7a8559e6", "score": "0.5913712", "text": "function ppm_chmod_path($path)\n{\n if (is_dir($path))\n {\n @chmod($path, 0755);\n }\n else\n {\n @chmod($path, 0644);\n }\n}", "title": "" }, { "docid": "9757b45e3cedddb001b118ff6124ab97", "score": "0.5911873", "text": "function iiif_static_mkdir($path) {\n // make a directory at the given path\n if (!is_dir($path)) {\n if (mkdir($path, 0775, TRUE) === FALSE) {\n throw new Exception(\"Can't create directory : $path\", 1);\n }\n }\n}", "title": "" }, { "docid": "4587c8ee819899fe9d49eded2d2f3b66", "score": "0.5905987", "text": "function mkgetdir($dir, $flags=MKGETDIR_DEFAULT)\n{\n if ( !is_dir($dir) )\n {\n if (substr(PHP_OS, 0, 3) == 'WIN')\n {\n $dir = str_replace('/', DIRECTORY_SEPARATOR, $dir);\n }\n $umask = umask(0);\n $mkd = @mkdir($dir, config('chmod_value'), ($flags&MKGETDIR_RECURSIVE) ? true:false );\n umask($umask);\n if ($mkd==false)\n {\n !($flags&MKGETDIR_DIE_ON_ERROR) or fatal_error( \"$dir \".lang('no write access'));\n return false;\n }\n if( $flags&MKGETDIR_PROTECT_HTACCESS )\n {\n $file = $dir.'/.htaccess';\n file_exists($file) or @file_put_contents( $file, 'deny from all' );\n }\n if( $flags&MKGETDIR_PROTECT_INDEX )\n {\n $file = $dir.'/index.htm';\n file_exists($file) or @file_put_contents( $file, 'Not allowed!' );\n }\n }\n if ( !is_writable($dir) )\n {\n !($flags&MKGETDIR_DIE_ON_ERROR) or fatal_error( \"$dir \".lang('no write access'));\n return false;\n }\n return true;\n}", "title": "" }, { "docid": "61b428bfe6d8381eb1afc435fcadc116", "score": "0.58978575", "text": "private function directorioAppSrc() {\r\n\t\t\t$directorio = implode(DIRECTORY_SEPARATOR, func_get_args());\r\n\t\t\tif(is_dir($directorio) == false):\r\n\t\t\t\tmkdir($directorio);\r\n\t\t\tendif;\r\n\t\t\tunset($directorio);\r\n\t\t}", "title": "" }, { "docid": "03a8b8b7ff4e0c857f303938ff0f2835", "score": "0.5895748", "text": "function mkdirs($dir,$mode=0777) {\n\t\tif(is_dir($dir)) return TRUE; else {\n\t\t\tif(mkdirs(dirname($dir)) and mkdir($dir,$mode)) {\n\t\t\t\tchmod($dir,0777);\n\t\t\t\treturn TRUE;\n\t\t\t} else return FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "7f544508dbd003a700e2a034e243afc8", "score": "0.5895256", "text": "function fsmodify($obj)\n {\n $chunks = explode('/', $obj);\n chmod($obj, is_dir($obj) ? 0777 : 0644);\n }", "title": "" }, { "docid": "34d04aab016bfe1a72fbb860b1a87a13", "score": "0.5876013", "text": "static function make( $dir, $mode=0755 ) {\n if( is_dir( $dir )) return TRUE;\n if( !@mkdir( $dir, $mode )) return FALSE;\n @chmod( $dir, $mode );\n return TRUE;\n }", "title": "" }, { "docid": "396f2df78a54af2c668cc23986fbb120", "score": "0.5867442", "text": "function dir_document_root_create($dir_project_document_root_path)\n{\n if (file_exists($dir_project_document_root_path)) {\n print console_message(\"Project root directory \\\"$dir_project_document_root_path\\\" already exists.\",\n CONSOLE_MESSAGE_WARNING);\n print console_message(\"Rewrite directory content (this operation will harm your data)? / Don't rewrite directory content? (Y/N)\");\n $answer = strtolower(readline());\n while ($answer !== 'y' && $answer !== 'n') {\n print console_message(\"Please select one of the answers.\", CONSOLE_MESSAGE_WARNING);\n print console_message(\"Rewrite directory content (this operation will harm your data)? / Don't rewrite directory content? (Y/N)\");\n $answer = strtolower(trim(fgets(STDIN)));\n }\n if ($answer === 'y') {\n dir_remove_recursive($dir_project_document_root_path);\n if (mkdir($dir_project_document_root_path, 0777, true)) {\n print console_message(\"Project root directory \\\"$dir_project_document_root_path\\\" was created.\",\n CONSOLE_MESSAGE_SUCCESS);\n print console_message(\"Directory \\\"$dir_project_document_root_path\\\" was created with \\\"777\\\" permissions. Make sure to fix this for security reasons.\",\n CONSOLE_MESSAGE_WARNING, 'Note:');\n } else {\n exit(console_message(\"Project root directory \\\"$dir_project_document_root_path\\\" creation error. Check permissions.\",\n CONSOLE_MESSAGE_ERROR));\n }\n }\n }\n}", "title": "" }, { "docid": "d3d56995f227405964358e4d5f752c74", "score": "0.58625406", "text": "function cambiarDir($dir,$perm) {\n $files = glob( $dir . '*', GLOB_MARK );\n foreach( $files as $file ){\n\t\t//chgrp($file, \"ftp\"); \n\t\t//chown ($file, \"descuentoftpu\");\n\t\tchmod($file, $perm);\n\n\t\tif(substr($file,-1)=='/')\n\t\t{\n\t\t\tcambiarDir($file);\n\t\t}\n }\n \n}", "title": "" }, { "docid": "ba202d883cb369e74987bc260be75ef5", "score": "0.58582777", "text": "function make_dirs($str_path, $mode = 0775)\n{\n return is_dir($str_path) or\n\t(make_dirs(dirname($str_path), $mode) and mkdir($str_path, $mode));\n}", "title": "" }, { "docid": "b6cab068194cf5d7362dc5f9a3b0b6f5", "score": "0.5846319", "text": "public function create()\n\t{\n\t\t//Permissions are created via code\n\t}", "title": "" }, { "docid": "f0f79b2c4244edaee608376e8e054144", "score": "0.5822463", "text": "public function testMakeDirectory() {\n\t\t$directoryName = 'testDir';\n\t\t$path = $this->testBasePath . $directoryName;\n\n\t\t$mode = 0777;\n\t\t$this->fileHandler->makeDirectory($path, 0777, true);\n\n\t\t$this->assertTrue(file_exists($path));\n\t\t$this->assertEquals(decoct($mode), substr(sprintf('%o', fileperms($path)), -3));\n\t}", "title": "" }, { "docid": "7a6e1278c207b123bb2ecd5f47e3a810", "score": "0.5809613", "text": "private function actionMakeFolder()\n {\n mkdir($_SERVER['DOCUMENT_ROOT'].'/storage/', 0777);\n /* if (!is_dir($_SERVER['DOCUMENT_ROOT'].'/storage/'))\n {\n mkdir($_SERVER['DOCUMENT_ROOT'].'/storage/', 0777);\n };\n //$file = $_SERVER['DOCUMENT_ROOT'].$model->id.'/images/'.$fileName;\n\n if (!is_dir($_SERVER['DOCUMENT_ROOT'].'/storage/'.$model->id.'/images/')) \n {\n $_SERVER['DOCUMENT_ROOT'].'/storage/'.$model->id.'/images/';\n }*/\n }", "title": "" }, { "docid": "6e12f9e126a63c2f5121e6f4a69c15ea", "score": "0.58071214", "text": "private function mkDirs() {\n $dirs = array('', '/products', 'categories', 'templates', 'tmp');\n $defaults = array('general', 'fields', 'templates');\n \n // make all the directories\n foreach ($dirs as $dir) {\n $file = GSDATAOTHERPATH . $this->id . '/' . $dir;\n if (!file_exists($file)) {\n mkdir($file, 0755, true);\n }\n }\n\n // data/other/catalog/.htaccess (deny all)\n if (!file_exists(GSDATAOTHERPATH . $this->id . '/.htaccess')) {\n file_put_contents(GSDATAOTHERPATH . $this->id . '/.htaccess', 'Deny from all');\n }\n\n // data/other/catalog/tmp/.htaccess (allow all)\n if (!file_exists(GSDATAOTHERPATH . $this->id . '/tmp/.htaccess')) {\n file_put_contents(GSDATAOTHERPATH . $this->id . '/tmp/.htaccess', 'Allow from all');\n }\n\n // copy defaults\n $this->makeDefaultFiles();\n }", "title": "" }, { "docid": "67d98974cfa0b87ec3a496334c3aa2bc", "score": "0.5804553", "text": "public function testCreate_Recursive()\n {\n \tif (function_exists('posix_getuid') && posix_getuid() == 0) $this->markTestSkipped(\"Won't test this as root for safety reasons.\");\n \t\n \t$filename = \"{$this->file}.y/\" . basename($this->file);\n $new = new Fs_Dir($filename);\n umask(0022);\n \t$new->create(0770, Fs::RECURSIVE);\n \n \t$this->assertTrue(is_dir($filename));\n \t$this->assertEquals('0750', sprintf('%04o', fileperms($filename) & 0777));\n \t$this->assertEquals('0750', sprintf('%04o', fileperms(dirname($filename)) & 0777));\n }", "title": "" }, { "docid": "ab8f222b443dca688847b9907d010375", "score": "0.57962775", "text": "public static function Dir_create($dir, $chmod = 0775){\n // Redefine vars\n $dir = (string) $dir;\n // Create new dir if $dir !exists\n return ( ! Panel::Dir_exists($dir)) ? @mkdir($dir, $chmod, true) : true;\n }", "title": "" }, { "docid": "70df0be5eb6208e556a3bcc327a0c370", "score": "0.5792487", "text": "function child_themer_folders_open_permissions() {\n\t\n\tglobal $child_themer_unwritable, $child_themer_folders;\n\t\n\tif ( $child_themer_unwritable ) {\n\t\t\n\t\tforeach( $child_themer_folders as $child_themer_folder ) {\n\t\t\t\n\t\t\tif ( is_dir( $child_themer_folder ) )\n\t\t\t\tchild_themer_open_permissions( $child_themer_folder );\n\t\t\t\t\n\t\t}\n\t\t\n\t}\n\t\n}", "title": "" }, { "docid": "ba6a24ea59fb8ce2d663cd48aa43af25", "score": "0.57865167", "text": "function dynamik_writable( $dir, $level_open = 0777, $level_close = 0755 )\r\n{\r\n\tif( !is_writable( $dir ) )\r\n\t{\r\n\t\t@chmod( $dir, $level_open );\r\n\t}\r\n\telse\r\n\t{\r\n\t\treturn true;\r\n\t}\r\n\t\r\n\tif( !is_writable( $dir ) )\r\n\t{\r\n\t\treturn false;\r\n\t}\r\n\telse\r\n\t{\r\n\t\t@chmod( $dir, $level_close );\r\n\t}\r\n\t\r\n\treturn true;\r\n}", "title": "" }, { "docid": "eb0c912caccd9f26ca235baf44aaab60", "score": "0.5784182", "text": "function make_path($path)\n{\n if (is_dir($path) || file_exists($path)) return;\n //no, create it\n mkdir($path, 0777, true);\n }", "title": "" }, { "docid": "c209f5476586abaa038eea5352a2b24d", "score": "0.5770814", "text": "public function nuevo_permiso()\n {\n $this->_acl->acceso('agregar_rol');\n $i = 0;\n $error = \"\";\n $error1 = \"\";\n $error2 = \"\";\n\n if ($this->_cursom->verificarPermiso($this->getSql('permiso_'))) {\n $error = ' Permiso <b style=\"font-size: 1.15em;\"> ' . $this->getSql('permiso_') . ' </b> ya Existe.';\n $i = 1;\n }\n\n if ($this->_cursom->verificarKey($this->getAlphaNum('key_'))) {\n if ($i != 0) {\n $error1 = '<br> Key <b style=\"font-size: 1.15em;\">' . $this->getAlphaNum('key_') . ' </b> ya existe.';\n } else {\n $error1 = ' Key <b style=\"font-size: 1.15em;\">' . $this->getAlphaNum('key_') . ' </b> ya existe. ';\n }\n\n $i = 2;\n }\n\n if ($i == 0) {\n $idPermiso = $this->_cursom->insertarPermiso(\n $this->getSql('permiso_'),\n $this->getAlphaNum('key_'),\n $this->getInt('modulo_'), 'es'\n );\n }\n\n if (is_array($idPermiso)) {\n if ($idPermiso[0] > 0) {\n $this->_view->assign('_mensaje', 'Se registró correctamente el Permiso <b style=\"font-size: 1.15em;\">' . $this->getSql('permiso_') . '</b> ');\n } else {\n $this->_view->assign('_error', 'Error al registrar el Permiso');\n }\n } else {\n if ($i != 0) {\n $this->_view->assign('_error', $error . $error1);\n } else {\n $this->_view->assign('_error', 'Ocurrio un error al Registrar los datos');\n }\n }\n }", "title": "" }, { "docid": "dff29f26721521a83d96113dc274b882", "score": "0.5765975", "text": "function creacion_carpetas($Ruta, $Carpeta)\r\n\t{\r\n\t\t\r\n\t\t//======Debo crear las carpetas para los archivos adjuntos======\r\n\t\t//arc_adj_copr = Archivos_Adjuntos_Corporativos\r\n\t\t/*$carp = './arc_adj_corp'.$Ruta;\r\n\t\t\r\n\t\t$nue_carp = $carp.'\\\\'.$Carpeta;*/\r\n\t\t$carp = './arc_adj_corp'.$Ruta;\r\n\t\t//echo $carp;\r\n\t\t$nue_carp = $carp.'/'.$Carpeta;\r\n\t\t\r\n\t\tif(!file_exists($carp))\r\n\t\t{\r\n\t\t\tmkdir($carp, 0777);\r\n\t\t\tchmod($carp, 0777);\r\n\t\t}\r\n\t\t\r\n\t\tif(!file_exists($nue_carp))\r\n\t\t{\r\n\t\t\tmkdir($nue_carp, 0777);\r\n\t\t\tchmod($nue_carp, 0777);\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ed0884188f01e8aa8799668a993773a6", "score": "0.57598865", "text": "function ce_fix_permissions($path, $perms = 0666) // We call this function assuming we are giving world permissions\n{\n // If the file user is different to the FTP user, we need to make it world writeable\n if ((!function_exists('posix_getuid')) || (strpos(@ini_get('disable_functions'), 'posix_getuid') !== false) || (@posix_getuid() != @fileowner($GLOBALS['FILE_BASE'] . '/sources/global.php'))) {\n @chmod($path, $perms);\n } else { // Otherwise we do not\n if ($perms == 0666) {\n @chmod($path, 0644);\n } elseif ($perms == 0777) {\n @chmod($path, 0744);\n } else {\n @chmod($path, $perms);\n }\n }\n}", "title": "" }, { "docid": "0ddb45034114b494f0843edd3d54a06d", "score": "0.57294047", "text": "function ppm_chmod_r($path) \n{\n $dir = new DirectoryIterator($path);\n\n foreach ($dir as $item)\n {\n @ppm_chmod_item($item);\n if ($item->isDir() && !$item->isDot()) \n {\n @ppm_chmod_r($item->getPathname());\n }\n }\n}", "title": "" }, { "docid": "e13af16379517551ec19b1847f928493", "score": "0.5713524", "text": "public static function checkWritableDir()\n {\n }", "title": "" }, { "docid": "8e03b81de2fd3588f9b7d8659a2d4578", "score": "0.5708798", "text": "private function setPermission()\n {\n $data = LdapUsers::getByUsername($this->username);\n if ($data) {\n $this->permission = $data[\"permission\"];\n } else {\n LdapUsers::insert($this->username, $this->name, $this->lastName);\n $this->permission = \"Docente\";\n }\n }", "title": "" }, { "docid": "bc2893048a2c0a4b5d95afa02411ffd1", "score": "0.5707738", "text": "function createdir($dir){\n\tif(mkdir($dir, 0777,true )){\n\t\treturn $dir;\n\t}else{\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "4d2b661e1eaf6ca6198f2a9fc7ed3346", "score": "0.56993353", "text": "public function testChmod_NonExistent()\n {\n $file = new Fs_Dir('/does/not/exist.' . md5(uniqid()));\n $this->setExpectedException('Q\\Fs_Exception', \"Unable to change mode of '$file': File does not exist\");\n $file->chmod(0777);\n }", "title": "" }, { "docid": "0f2e6bae5250e12679214d2082629577", "score": "0.56987417", "text": "function dynamik_folders_close_permissions()\r\n{\r\n\tglobal $dynamik_unwritable, $dynamik_folders;\r\n\t\r\n\tif( $dynamik_unwritable )\r\n\t{\r\n\t\tforeach( $dynamik_folders as $dynamik_folder )\r\n\t\t{\r\n\t\t\tif( is_dir( $dynamik_folder ) )\r\n\t\t\t{\r\n\t\t\t\tdynamik_close_permissions( $dynamik_folder );\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}", "title": "" }, { "docid": "cce761507d5d635089aa710429947866", "score": "0.5698484", "text": "public function testDirectoryHasCorrectDifferentFilePermissions()\n {\n $example = new FilemodeExample('id', 0755);\n $example->setDirectory(dirname(__FILE__));\n if (DIRECTORY_SEPARATOR === '\\\\') {\n // can not really test on windows, filemode from mkdir() is ignored\n $this->assertEquals(40777, decoct(fileperms(dirname(__FILE__) . '/id')));\n } else {\n $this->assertEquals(40755, decoct(fileperms(dirname(__FILE__) . '/id')));\n }\n }", "title": "" }, { "docid": "f855b77b2c58301324bfccffb6a21149", "score": "0.5697232", "text": "private function CreateDirectories($path)\n {\n $protected = 'protected';\n $public_html = 'public_html';\n $direactories = [\n 'Config',\n 'Console',\n 'controllers',\n 'extern',\n 'layauts',\n 'model',\n 'view'\n ];\n $files = ['.htaccess', 'CcMvc', 'CcMvc.bat'];\n $actualPath = realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . \"..\" . DIRECTORY_SEPARATOR . \"..\" . DIRECTORY_SEPARATOR);\n $this->OutLn($path . DIRECTORY_SEPARATOR . $public_html);\n mkdir($path . DIRECTORY_SEPARATOR . $public_html);\n $dir = dir($path . DIRECTORY_SEPARATOR . $public_html);\n $this->CopyDir($actualPath . DIRECTORY_SEPARATOR . \"public_html\", realpath($path . DIRECTORY_SEPARATOR . $public_html));\n $this->OutLn($path . DIRECTORY_SEPARATOR . $protected);\n mkdir($path . DIRECTORY_SEPARATOR . $protected);\n foreach ($direactories as $dir)\n {\n mkdir($path . DIRECTORY_SEPARATOR . $protected . DIRECTORY_SEPARATOR . $dir);\n if ($dir != 'Console')\n $this->CopyDir($actualPath . DIRECTORY_SEPARATOR . 'protected' . DIRECTORY_SEPARATOR . $dir, $path . DIRECTORY_SEPARATOR . $protected . DIRECTORY_SEPARATOR . $dir);\n }\n foreach ($files as $f)\n {\n if (file_exists($actualPath . DIRECTORY_SEPARATOR . $f))\n {\n $this->OutLn($path . DIRECTORY_SEPARATOR . $f);\n copy($actualPath . DIRECTORY_SEPARATOR . $f, $path . DIRECTORY_SEPARATOR . $f);\n }\n\n if (file_exists($actualPath . DIRECTORY_SEPARATOR . 'protected' . DIRECTORY_SEPARATOR . $f))\n {\n $this->OutLn($path . DIRECTORY_SEPARATOR . $protected . DIRECTORY_SEPARATOR . $f);\n copy($actualPath . DIRECTORY_SEPARATOR . 'protected' . DIRECTORY_SEPARATOR . $f, $path . DIRECTORY_SEPARATOR . $protected . DIRECTORY_SEPARATOR . $f);\n }\n }\n $composer = new Json();\n $composer['require'] = ['ccmvc/ccmvc' => \\CcMvc::Version];\n $composer->SaveToFile($path . DIRECTORY_SEPARATOR . \"composer.json\", JSON_PRETTY_PRINT ^ JSON_UNESCAPED_SLASHES);\n file_put_contents($path . DIRECTORY_SEPARATOR . $public_html . DIRECTORY_SEPARATOR . 'index.php', $this->CreateIndexPHP());\n if ($this->vendorDir && !file_exists($path . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php'))\n {\n $this->OutLn(\"\\nInstalando Vendor\\n\");\n mkdir($path . DIRECTORY_SEPARATOR . 'vendor');\n $this->CopyDir($this->vendorDir, realpath($path . DIRECTORY_SEPARATOR . 'vendor'));\n }\n }", "title": "" }, { "docid": "c91942d062b1b96f3fb20e781bf7f3a4", "score": "0.56904805", "text": "private function createDir($path, $chmod = 0770)\n {\n // Create directory if not existing, alse check that no file with the\n // same path exists:\n if(!is_dir($path) && !file_exists($path)) {\n mkdir($path, $chmod);\n return true;\n }\n \n return false;\n }", "title": "" }, { "docid": "9a95c15bf604f618e30dcf84efd3b16d", "score": "0.56873554", "text": "function createDirectoryOfPages($id)\n{\n $return = false;\n if (!empty($id)) {\n $directorory = __DIR__. \"/image/resolution/$id\";\n if (!is_dir($directorory)) {\n $oldmask = umask(0);\n $return = mkdir($directorory, 0777);\n umask($oldmask);\n }\n }\n\n return $return;\n}", "title": "" }, { "docid": "be9cbc17dd06acedf9f5ce8cb75b1576", "score": "0.56812453", "text": "function onAfterWrite() {\n\t\tparent::onAfterWrite();\n\t\tif ( $this->owner instanceof Folder ) {\n\t\t\t$htaccess = $this->owner->getFullPath().SecureFileController::get_access_filename();\n\t\t\tif ( $this->owner->Secured && !file_exists( $htaccess ) ) {\n\t\t\t\tfile_put_contents( $htaccess, $this->htaccessContent() );\n\t\t\t} elseif ( !$this->owner->Secured && file_exists( $htaccess ) ) {\n\t\t\t\tunlink( $htaccess );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "29b8badf7eb07c13ee9911f42728bfe1", "score": "0.56746846", "text": "public function testDirectoryHasCorrectDefaultFilePermissions()\n {\n $example = new FilemodeExample('id');\n $example->setDirectory(dirname(__FILE__));\n if (DIRECTORY_SEPARATOR === '\\\\') {\n // can not really test on windows, filemode from mkdir() is ignored\n $this->assertEquals(40777, decoct(fileperms(dirname(__FILE__) . '/id')));\n } else {\n $this->assertEquals(40700, decoct(fileperms(dirname(__FILE__) . '/id')));\n }\n }", "title": "" }, { "docid": "4decfb89676fa0ee1c9e4af96707b8a6", "score": "0.5671862", "text": "public function mkdir($path=null,$dir=null,$chmod=0777)\n {\n if($path!==null && $dir!==null){\n try {\n $this->fs->mkdir($path.'/'.$dir,$chmod);\n } catch (IOExceptionInterface $e) {\n echo \"An error occurred while creating your directory at \".$e->getPath();\n }\n }\n return false;\n }", "title": "" }, { "docid": "5ec402b6cfbc06428a323155e9673839", "score": "0.565587", "text": "function child_themer_open_permissions( $dir, $level_open = 0777 ) {\n\t\n\t@chmod( $dir, $level_open );\n\t\n}", "title": "" }, { "docid": "8c3dd96e96b972dacd83f23fd4f4cf23", "score": "0.5651162", "text": "static function direccionar()\r\n\t{\r\n\t\t// ----------------------------------------\r\n\t\t\r\n\t\t// Clase con métodos estáticos para utilizar en todo el proyecto\r\n\t\trequire_once(\"LibreriaGeneral.php\");\r\n\t\t\r\n\t\t// Clase base de los Modelos para trabajar con MySQLi\r\n\t\trequire_once(\"ModeloBaseMySQLi.php\");\r\n\t\t\r\n\t\t// Clase base de los Controladores\r\n\t\trequire_once(\"ControladorBase.php\"); \r\n\t\t\r\n\t\t// Clase base de las Vistas\r\n\t\trequire_once(\"VistaBase.php\");\r\n\t\t\r\n\t\t// Se obtiene una instancia de LibreriaGeneral para utilizar métodos generales en todo el proyecto\r\n\t\tLibreriaGeneral::ObtenerInstancia();\r\n\r\n\t\t// Se procesa la redirección\r\n\t\t// --------------------------\r\n\t\t\r\n\t\t// Se recibe y completa el nombre del Controlador\r\n\t\t$nombre_controlador = LibreriaGeneral::recoge('controlador').'_controller';\r\n\t\t\r\n\t\t// Se recibe el nombre de la accion\r\n\t\t$nombre_accion = LibreriaGeneral::recoge('accion');\r\n\t\t\r\n\t\t// Ruta del archivo del controlador\r\n\t\t$ruta_controlador = 'controladores/'.$nombre_controlador.'.php';\r\n\r\n\t\t// Si existe la definicion de la clase controladora solicitada\r\n\t\tif ( is_file($ruta_controlador) )\r\n\t\t\t// Se incluye la definicion de la clase controladora solicitada\r\n\t\t\trequire $ruta_controlador;\r\n\t\telse\r\n\t\t\tthrow new Exception(\"El controlador \".$nombre_controlador.\" no existe.\");\r\n\t\t\r\n\t\t// Si no existe la clase que se busca y su acción\r\n\t\tif ( ! is_callable(array($nombre_controlador, $nombre_accion)) )\r\n\t\t\tthrow new Exception($nombre_controlador.\"->\".$nombre_accion.\" no existe\");\r\n\t\t\r\n\t\t// Se crea una instancia del controlador\r\n\t\t$controlador = new $nombre_controlador();\r\n\t\t\r\n\t\t// y se llama a la accion correspondiente\r\n\t\t$controlador->$nombre_accion();\r\n\t}", "title": "" }, { "docid": "f38b22584123477f82df01cf5ac64cf6", "score": "0.5644864", "text": "public function init() {\n $return = parent::init();\n\n $oUsuario = Usuario::model()->findByPk(Yii::app()->user->getId());\n\n $role = $this->createRole($oUsuario->tipoUsuario->titulo);\n\n if (empty($_SESSION[base64_encode(Yii::app()->params['projeto'] . '_PermissoesAcesso')][base64_encode('PermissoesAcessoUsuario')])) {\n $_aPermissoes = Yii::app()->user->getState('__' . base64_encode(Yii::app()->params['projeto'] . '_PermissoesAcessoUsuario'));\n if(!empty($_aPermissoes)) {\n $aPermissoes = $_aPermissoes[base64_encode(Yii::app()->params['projeto'] . '_PermissoesAcesso')][base64_encode('PermissoesAcessoUsuario')];\n }\n } else {\n $aPermissoes = $_SESSION[base64_encode(Yii::app()->params['projeto'] . '_PermissoesAcesso')][base64_encode('PermissoesAcessoUsuario')];\n }\n\n $this->createOperation('site/logout');\n $role->addChild('site/logout');\n $this->createOperation('site/index');\n $role->addChild('site/index');\n $this->createOperation('site/semPermissao');\n $role->addChild('site/semPermissao');\n\n if (!empty($aPermissoes)) {\n foreach ($aPermissoes as $controller => $actions) {\n foreach ($actions[base64_encode('actions')] as $action) {\n $dController = base64_decode($controller);\n $dAction = base64_decode($action);\n $this->createOperation($dController . '/' . $dAction);\n $role->addChild($dController . '/' . $dAction);\n }\n }\n }\n return $return;\n }", "title": "" }, { "docid": "3183a0e77e60ac0381d0680539bf54e6", "score": "0.564387", "text": "public static function makeMenu(){\n //$acessLevel = $_SESSION['acessLevel']; //informação necessária para saber o nivel de acesso do usuário logado\n if(!empty($_SESSION['makeMenu'])) return $_SESSION['makeMenu'];\n $masters = array();\n\n foreach(scandir('modules/admin') as $k)\n if(($k != '.') && ($k != '..') && (!preg_match(\"/([.])/\",$k))) {\n $manifest = 'modules/admin/' . $k . '/manifest.json';\n\n if (is_file($manifest)) {\n $obj = json_decode(file_get_contents($manifest), true);\n\n if ($obj['dad'] == \"this\") {\n if (!empty($obj['acessLevel']) || $obj['acessLevel'] == \"0\"){\n $array = explode(\",\", $obj['acessLevel']);\n foreach($array as $vl){\n if($_SESSION[\"user\"][\"id_tipo\"] == $vl){\n $masters[$obj['title']] = $obj;\n $masters[$obj['title']]['acessLevel'] = $array;\n continue;\n }\n }\n }else{\n //$masters[$obj['title']] = $obj;\n }\n } else {\n $subs[$obj['dad']] = $obj;\n }\n }\n }\n\n if(!empty($subs)){\n foreach ($subs as $sub){\n foreach($sub['submenu'] as $s)\n $masters[$sub['dad']]['submenu'][] = $s;\n }\n }\n\n //return $_SESSION[\"makeMenu\"] = $masters;\n return $masters;\n }", "title": "" }, { "docid": "d9999a0c6f534f9ab40f9656eb6e0b8b", "score": "0.5635284", "text": "function createDirectoryCallback( $dirName, &$permissions, &$userId, &$groupId )\n {\n }", "title": "" }, { "docid": "5fc9309828746a602e6ddad239519504", "score": "0.56345665", "text": "function checkDirectory($directory)\n{\n try {\n if (!file_exists(public_path('uploads/' . $directory))) {\n mkdir(public_path('uploads/' . $directory));\n\n chmod(public_path('uploads/' . $directory), 0777);\n }\n } catch (\\Exception $e) {\n die($e->getMessage());\n }\n}", "title": "" }, { "docid": "abdeae60f5379992e5a78ef2f2c077e0", "score": "0.5627948", "text": "public function allowsEditDir();", "title": "" }, { "docid": "3b4cbf7f5f165d96026c51825733a383", "score": "0.56273645", "text": "public function mkdir() {\n\t\tthrow new Exception(\"Method not implemented (mkdir).\");\n\t}", "title": "" }, { "docid": "3a7880751ad2bbb70814b0d5f9203255", "score": "0.5624135", "text": "private function create_access_files ()\n {\n //Controller\n $controller = get ( PATH . \"cmd/templates/home/home-controller.txt\" );\n if ( put ( $this->_admin_path . \"controllers/home.php\", $controller ) )\n display ( \"Home controller created succesfully\\n\" );\n\n //View\n $view = get ( PATH . \"cmd/templates/home/home-view.txt\" );\n mkdir ( $this->_admin_path . \"views/templates/home/\" );\n if ( put ( $this->_admin_path . \"views/templates/home/index.php\", $view ) )\n display ( \"Home view has been created successfully\\n\" );\n\n //Main javascript file in the app folder\n $mainjs = get ( PATH . \"cmd/templates/home/home-mainjs.txt\" );\n if ( put ( $this->_admin_path . \"assets/scripts/app/login.js\", $mainjs ) )\n display ( \"Home main javascript file has been created successfully\\n\" );\n\n //Backbone view\n $backbone_view = get ( PATH . \"cmd/templates/home/home-backbone-view.txt\" );\n if ( put ( $this->_admin_path . \"assets/scripts/views/Login.js\", $backbone_view ) )\n display ( \"Login backbone view has been created successfully\\n\" );\n }", "title": "" }, { "docid": "135a7030081343da6b8f7b06f567f8ff", "score": "0.5623349", "text": "private function leerPerfiles()\n {\n $this->accesoPerfiles = $this->perfilObject->obtAclPerfiles($this->usuario->perfiles);\n #Debug::mostrarArray($this->estructura,0);\n\n $componentesPerfil = array_filter(array_unique(Arrays::obtenerKey('id_componente', $this->accesoPerfiles)));\n foreach ($this->estructura as $key => $componente) {\n\n $this->_acl[$componente['componente']] = array('objetos' => []);\n $this->validarAccesoObjetos($componente);\n\n }\n if (!array_key_exists('principal', $this->_acl)) $this->_acl['principal'] = ['objetos' => []];\n\n\n }", "title": "" }, { "docid": "fadf3ee28715ad7d706f2f3c71acdda1", "score": "0.56109047", "text": "function createPath($path){\n\n\t\t$old_mask = umask(0);\n\t\tif($path[ strlen($path) - 1 ] == '/')\n\t\t\t$path[ strlen($path) - 1 ] = \"\\0\";\n\t\t$tmp = explode(\"/\", $path);\n\t\t$target = \"\";\n\t\tfor($i = 0 ; $i < count($tmp) ; $i++){\n\t\t\t$target .= $tmp[$i] . \"/\";\n\t\t\tif(!is_dir($target))\n\t\t\t mkdir($target, 0775);\n\t\t\t \n\t\t}\n\t\tumask($old_mask);\n\t}", "title": "" }, { "docid": "df19ed88716890ca30704af842c83662", "score": "0.56061596", "text": "function pwWritable($pathfile) {\r\n\t//fix windows acls bug noizy\r\n\t$unlink = false;\r\n\tsubstr($pathfile,-1)=='/' && $pathfile = substr($pathfile,0,-1);\r\n\tif (is_dir($pathfile)) {\r\n\t\t$unlink = true;\r\n\t\tmt_srand((double)microtime()*1000000);\r\n\t\t$pathfile = $pathfile.'/pw_'.uniqid(mt_rand()).'.tmp';\r\n\t}\r\n\t$fp = @fopen($pathfile,'ab');\r\n\tif ($fp===false) return false;\r\n\tfclose($fp);\r\n\tif ($unlink) @unlink($pathfile);\r\n\treturn true;\r\n}", "title": "" }, { "docid": "a4c2896a757aee5abd88c2de1f2a5a47", "score": "0.56026345", "text": "function moverArchivo($docName, $docTemp, $ubicacion)\n{\n # comprobación y creación de la carpeta de ser necesario\n if(!file_exists($ubicacion)){ crearCarpeta($ubicacion); }\n $name = $ubicacion . $docName;\n # comprobación de archivo subido\n if(is_uploaded_file($docTemp)){\n # cambio de ubicación del archivo\n $conf = move_uploaded_file($docTemp, $name);\n @chown($name, 'root');\n @chgrp($name, 'root');\n return $conf;\n }\n return false;\n}", "title": "" }, { "docid": "cf2b704c196ad83b461e597ac0cd72e3", "score": "0.560068", "text": "protected function initAdminDirectory()\n {\n if (is_dir($this->directory)) {\n $this->info(\"<error>{$this->directory} directory already exists !</error> \");\n\n return;\n }\n\n $this->makeDir('/');\n $this->line('<info>Admin directory was created:</info> '.str_replace(base_path(), '', $this->directory));\n\n $this->makeDir('Controllers');\n $this->makeDir('Resources');\n\n $this->createRoutesFile();\n\n $this->createMenuFile();\n }", "title": "" }, { "docid": "9db22ecb567ca163bc5a290d368c4be8", "score": "0.55939925", "text": "function makeADir($dir)\n{\n\tglobal $debug;\n\n\tif (!is_dir($dir)) {\n\t\tif ($debug) {\n\t\t\techo \"Making directory: $dir\\n\";\n\t\t}\n\t\tmkdir($dir, 0755, true) or die(\"Could not make dir [$dir]\");\n\t\tchown($dir, \"apache\");\n\t\tchgrp($dir, \"bobbitt\"); \n\t\tchmod($dir, 0775);\n\t}\n}", "title": "" }, { "docid": "7ed2feeaa2ba5c9b98af3da7d20d16a3", "score": "0.5585431", "text": "function chmod_r($dir)\n{\n $dp = opendir($dir);\n while($file = readdir($dp))\n {\n if (($file == \".\") || ($file == \"..\")) continue;\n\n $path = $dir . \"/\" . $file;\n $is_dir = is_dir($path);\n\n set_perms($path, $is_dir);\n if($is_dir) chmod_r($path);\n }\n closedir($dp);\n}", "title": "" }, { "docid": "ae4e14a96f45914d6f8cdaba7e55db14", "score": "0.5578693", "text": "private function create_site_root() {\n\n\t\tif ( is_dir( $this->site_root ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttry {\n\t\t\tif ( ! \\EE\\Utils\\default_launch( \"mkdir $this->site_root\" ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t$this->level = 1;\n\t\t\t$whoami = EE::launch( \"whoami\", false, true );\n\n\t\t\t$terminal_username = rtrim( $whoami->stdout );\n\n\t\t\tif ( ! chown( $this->site_root, $terminal_username ) ) {\n\t\t\t\tthrow new Exception( 'Could not change ownership of the site root. Please make sure you have appropriate rights.' );\n\t\t\t}\n\t\t}\n\t\tcatch ( Exception $e ) {\n\t\t\t$this->catch_clean( $e );\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "44aa5451ea5f2c00384d0d6abf79722b", "score": "0.5566133", "text": "public function generar()\n {\n if (isset($this->archivo)) {\n if (!isset($this->carpeta_archivo)) {\n throw new toba_error_asistentes('La carpeta no fue definida.');\n }\n toba_manejador_archivos::crear_arbol_directorios(dirname($this->archivo_absoluto()));\n if ($this->generar_archivo()) {\n $this->asociar_archivo();\n }\n }\n $this->guardar_metadatos();\n }", "title": "" }, { "docid": "c6cd6eea29c67b1e555bf580f6f2492e", "score": "0.5561595", "text": "protected function initPermissions() {}", "title": "" }, { "docid": "c6cd6eea29c67b1e555bf580f6f2492e", "score": "0.5560185", "text": "protected function initPermissions() {}", "title": "" }, { "docid": "8f13e434b31a5a80fed061c16bd5eaff", "score": "0.5554323", "text": "public function mkdirDeepCreatesDirectoryWithAndWithoutDoubleSlashesDataProvider() {}", "title": "" }, { "docid": "d1801e31be2cf7837059700218cb2300", "score": "0.5533832", "text": "public static function chmod($caminho, $modo, $recursivo = false)\n\t{\n\t\t// verificando se as permissoes devem ser modificadas recursivamente\n\t\tif ($recursivo)\n\t\t\t$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($caminho), RecursiveIteratorIterator::SELF_FIRST);\n\t\telse\n\t\t\t$iterator = array($caminho);\n\t\t\n\t\t// muda as permissoes\n\t\tforeach($iterator as $item) { \n \t\tchmod($item, $modo);\n\t\t}\n\t}", "title": "" }, { "docid": "455af8678f5bfec98d432f99456fab12", "score": "0.55311453", "text": "function directoryCreate($direcName){\n \tmkdir($this->directory.\"/\".$direcName, 0700);\n }", "title": "" }, { "docid": "d2a9d9fbd41fb7db3f8ff6f93958dc0a", "score": "0.55231357", "text": "public static function createHomeFolder($conn, $path, $username, $arrReadRightsGroups = null)\r\n {\r\n // make folder & subfolders\r\n $conn->write(\"mkdir \" . $path . \"\\\\\" . $username . \"\\n\");\r\n \r\n // set permissions to local folder\r\n $conn->write(\"setacl -ot file -actn ace -ace \\\"n:\" .Config::singleton()->ad_dns . \"\\\\\" . $username . \";s:n;p:change;i:sc,so\\\" -on \" . $path . \"\\\\\" . $username . \"\\n\");\r\n $conn->write(\"setacl -ot file -actn ace -ace \\\"n:\" . Config::singleton()->ad_dns . \"\\Domain Admins;s:n;p:full;i:sc,so\\\" -on \" . $path . \"\\\\\" . $username . \"\\n\"); \r\n $conn->write(\"takeown /F \" . $path . \"\\\\\" . $username . \" /A /R /D Y\\n\");\r\n $conn->write(\"takeown /F \" . $path . \"\\\\\" . $username . \"\\\\*.* /A /R /D Y\\n\");\r\n \r\n // add read groups\r\n $cmd = \"icacls \" . $path . \"\\\\\" . $username . \" /q /grant *S-1-5-32-544:F *S-1-5-18:F \" . Config::singleton()->ad_dns . \"\\\\\" . $username . \":M \";\r\n \r\n if ($arrReadRightsGroups != null)\r\n {\r\n foreach($arrReadRightsGroups as $group)\r\n {\r\n $cmd .= Config::singleton()->ad_dns . \"\\\\\" . $group->getName() . \":R \";\r\n }\r\n }\r\n \r\n $cmd .= \"/inheritance:r /T /C\\n\";\r\n \r\n $conn->write($cmd); \r\n\r\n // share and set permissions\r\n $cmd = \"net share \" . $username . \"$=\" . $path . \"\\\\\" . $username . \" /grant:\" . Config::singleton()->ad_dns . \"\\\\\" . $username . \",change /grant:\\\"\" . Config::singleton()->ad_dns . \"\\\\Domain Admins\\\",read \";\r\n if ($arrReadRightsGroups != null)\r\n {\r\n foreach($arrReadRightsGroups as $group)\r\n {\r\n $cmd .= \"/grant:\" .Config::singleton()->ad_dns . \"\\\\\" . $group->getName() . \",read \";\r\n }\r\n }\r\n $cmd .= \"/cache:None\\n\";\r\n $conn->write($cmd); \r\n \r\n return true;\r\n }", "title": "" }, { "docid": "4aaa2bd2766e22cd580f4d2c62c03a14", "score": "0.5513013", "text": "public function mkdirs() {\n return \\mkdir(FileSystem::getFileSystem()->localFileName($this->absolutePath), 0755, TRUE);\n }", "title": "" }, { "docid": "804edabb5327a95f2d528b7ca624a929", "score": "0.5512631", "text": "public function crear(){\r\n\t\tenmarcar($this,'usuario/crear');\r\n\t}", "title": "" }, { "docid": "18fd768c2d409e375f9ca9672b2e2378", "score": "0.5501281", "text": "function set_can_delete_dir($can_delete = 'default') {\n if (!session_id()) return;\n $_SESSION['re_set_can_delete_dir_sess'] = $can_delete;\n }", "title": "" }, { "docid": "7964ff7e1f9f163984c3f9d475f255eb", "score": "0.54907817", "text": "function dir(string $path): bool\n{\n return writable($path) && (is_dir($path) || mkdir($path, 0755, true));\n}", "title": "" }, { "docid": "cfd5846092ccf29507504feec2a23afe", "score": "0.54901594", "text": "public function createHtaccess()\n {\n if (file_exists(\"{$this->fileName}\")) {\n echo \".htaccess already exists \\n\";\n exit();\n }\n\n file_put_contents($this->fileName, $this->getStructure());\n echo \"success \\n\";\n }", "title": "" }, { "docid": "655e00a7dd193a1775f43bc9a0dd8784", "score": "0.5483557", "text": "public function createPath()\n {\n if ($this->checkInitialization()) {\n\n $path = $this->getPath();\n\n if (!is_dir($path)) {\n\n $arrayPath = $this->getArrayPath();\n\n $dirElement = '';\n\n $i = 0;\n\n foreach ($arrayPath as $nameElement => $dir) {\n\n $i++;\n\n $dirElement.= $dir.'/';\n\n if (!file_exists(rtrim($dirElement, \"//\\\\\"))) {\n\n $mode = ($i == sizeof($arrayPath))\n ? 0777\n : 0755;\n\n $pathFull = rtrim($dirElement, \"//\\\\\");\n\n if (mkdir($pathFull)) {\n if (!chmod($pathFull, $mode)) {\n throw new ExceptionRoutingFiles(\"Failed to modify permissions for directory!\");\n }\n }\n else throw new ExceptionRoutingFiles(\"Create directory '$pathFull' failed!\");\n }\n }\n\n if (!is_dir($path)) {\n throw new ExceptionRoutingFiles(\"Create directories failed!\");\n }\n }\n }\n\n return $this;\n }", "title": "" }, { "docid": "328440ada569af2f3ff66fc1edeeb168", "score": "0.5481156", "text": "public function run() {\n\t\t$adminRole = Role::where('name', 'Admin')->first();\n\n\t\t$permissions[] = Permission::create([\n\t\t\t'name' => 'gerenciar.usuarios',\n\t\t\t'display_name' => 'Gerenciar Usuários',\n\t\t\t'description' => 'Gerenciar usuários.',\n\t\t\t'removable' => false,\n\t\t]);\n\n\t\t$permissions[] = Permission::create([\n\t\t\t'name' => 'atividades.usuarios',\n\t\t\t'display_name' => 'Ver sistema de registro de atividades',\n\t\t\t'description' => 'Ver registro de atividades de todos os usuários.',\n\t\t\t'removable' => false,\n\t\t]);\n\n\t\t$permissions[] = Permission::create([\n\t\t\t'name' => 'gerenciar.funcoes',\n\t\t\t'display_name' => 'Gerenciar Funções',\n\t\t\t'description' => 'Gerenciar sistema de funções.',\n\t\t\t'removable' => false,\n\t\t]);\n\n\t\t$permissions[] = Permission::create([\n\t\t\t'name' => 'gerenciar.permissoes',\n\t\t\t'display_name' => 'Gerenciar Permissões',\n\t\t\t'description' => 'Gerenciar permissões de funções.',\n\t\t\t'removable' => false,\n\t\t]);\n\n\t\t$permissions[] = Permission::create([\n\t\t\t'name' => 'configuracoes.geral',\n\t\t\t'display_name' => 'Atualizar configurações gerais do sistema',\n\t\t\t'description' => '',\n\t\t\t'removable' => false,\n\t\t]);\n\n\t\t$permissions[] = Permission::create([\n\t\t\t'name' => 'configuracoes.autenticacao',\n\t\t\t'display_name' => 'Atualizar configurações de autenticação',\n\t\t\t'description' => 'Atualizar configurações do sistema de autenticação e registro.',\n\t\t\t'removable' => false,\n\t\t]);\n\n\t\t$permissions[] = Permission::create([\n\t\t\t'name' => 'configuracoes.notificacoes',\n\t\t\t'display_name' => 'Atualizar configurações de notificações',\n\t\t\t'description' => '',\n\t\t\t'removable' => false,\n\t\t]);\n\n\t\tforeach($permissions as $permission){\n\t\t\t$adminRole->attachPermission($permission);\n\t\t}\n\t}", "title": "" } ]
c8bd27ffe8bdc1f37a9fed7ee4b59110
Update marker lat and lng
[ { "docid": "a1c01bb70b8a27ceb0dc0978e67ad761", "score": "0.58853877", "text": "public static function updateLatLng($id, $lat, $lng)\n\t{\n\t\t$marker = new static(compact('id', 'lat', 'lng'));\n\n\t\t// raise event\n\t\t$marker->raise(new MarkerUpdatedLatLng($marker));\n\n\t\treturn $marker;\n\t}", "title": "" } ]
[ { "docid": "5734e5e3c13fc94a45f5bcd0be2cae61", "score": "0.6720669", "text": "public function updateGeo()\n {\n try {\n list($lat, $lng) = Util::geocoder($this->full_address);\n $this->attributes['lat'] = $lat;\n $this->attributes['lng'] = $lng;\n } catch (Exception $ex) {\n // Silently fail\n }\n }", "title": "" }, { "docid": "ed41dd92a5284f68ef0b25da89199e12", "score": "0.66364825", "text": "public function update(Marker $marker) {\n $this->db->update(\n $this->db->prefix . self::$table_name,\n array(\n 'post_id' => $marker->post_id(),\n 'is_main' => $marker->is_main(),\n 'title' => $marker->title(),\n 'categories' => $marker->categories(),\n 'tags' => $marker->tags(),\n 'latitude' => $marker->latitude(),\n 'longitude' => $marker->longitude(),\n 'marker_logo_id' => $marker->marker_logo_id(),\n 'infobox_description' => $marker->infobox_description(),\n 'infobox_image' => $marker->infobox_image(),\n 'infobox_style' => $marker->infobox_style()\n ),\n array('id'=>$marker->id())\n );\n }", "title": "" }, { "docid": "d81c188a6aa669e2d71fda780c33877d", "score": "0.6544893", "text": "private function update_location_markers() {\n\n $location_updates = 0;\n $offset = 0;\n\n // For all locations where sl_option_value is not empty\n //\n add_filter( 'slp_extend_get_SQL' , array( $this , 'select_where_location_has_option_value' ) );\n $data = $this->slplus->database->get_Record(array('selectall','where_has_options','limit_one'));\n while (( $data['sl_id'] > 0)) {\n $this->slplus->currentLocation->set_PropertiesViaArray($data);\n\n // If extended marker field is not set\n // and marker is not empty\n // update marker data\n if ( ! $this->location_extended_marker_set() && $this->location_legacy_marker_set() ) {\n $location_updates++;\n $this->slplus->currentLocation->exdata['marker'] = $this->slplus->currentLocation->attributes['marker'];\n $this->slplus->currentLocation->dataChanged = true;\n }\n\n // Extended marker is now set OR the marker is empty\n // clear the legacy marker\n //\n if ( $this->location_extended_marker_set() || $this->location_legacy_marker_empty() ) {\n if ( isset( $this->slplus->currentLocation->attributes['marker'] ) ) {\n unset($this->slplus->currentLocation->attributes['marker']);\n if ( empty( $this->slplus->currentLocation->attributes ) ) {\n $this->slplus->currentLocation->attributes = null;\n }\n $this->slplus->currentLocation->dataChanged = true;\n }\n }\n\n // Write Data Changes\n //\n if ( $this->slplus->currentLocation->dataChanged ) {\n $this->slplus->currentLocation->MakePersistent();\n }\n\n // Go To Next Record\n //\n $data = $this->slplus->database->get_Record(array('selectall','where_has_options','limit_one'));\n }\n\n // Show message of data change.\n //\n if ( $location_updates > 0 ) {\n $this->slplus->Helper->add_wp_admin_notification(\n sprintf(\n __('As part of the %s upgrade, %s per-location map markers were updated.', 'slp-experience') ,\n $this->addon->name ,\n $location_updates\n ) ,\n 'info'\n );\n }\n\n }", "title": "" }, { "docid": "b5a84f2a426e891d2a026a96605962ef", "score": "0.6211515", "text": "function gmap_user_update()\r\n{\r\n if (!SecurityUtil::checkPermission('gmap::marker', '::', ACCESS_COMMENT)) {\r\n return LogUtil::registerPermissionError(pnModURL('gmap', 'user', 'main'));\r\n }\r\n \r\n $item = pnModAPIFunc('gmap', 'user', 'get', array('uid' => pnUserGetVar('uid')));\r\n\r\n $item['long'] = FormUtil::getPassedValue('longitude', 0, 'POST');\r\n $item['lat'] = FormUtil::getPassedValue('latitude', 0, 'POST');\r\n $item['msg'] = FormUtil::getPassedValue('msg', '', 'POST');\r\n $item['icon'] = FormUtil::getPassedValue('icon', 'marker_point.png', 'POST');\r\n\r\n // Check if the guy is already mapped\r\n if (!isset($item['mid'])) {\r\n $item['action'] = 'add';\r\n $item['uid'] = pnUserGetVar('uid');\r\n $item['title'] = pnUserGetVar('uname');\r\n }\r\n\r\n $result = pnModAPIFunc('gmap', 'user', 'update', $item);\r\n\r\n if ($result == false) {\r\n LogUtil::registerError(_GM_UPDATEERROR);\r\n } else {\r\n LogUtil::registerStatus(_GM_COORDSUPDATED);\r\n }\r\n return pnRedirect(pnModURL('gmap', 'user', 'main'));\r\n\r\n}", "title": "" }, { "docid": "7b182aa7a7a41e8721d3ca8b8a949554", "score": "0.60549086", "text": "public function updateLatLng($id)\n\t{\n\t\tif (Request::ajax())\n\t\t{\n\t\t\t// change rules for the unique field\n\t\t\t$this->markerForm->setRules([\n\t\t\t\t'lat' => 'required',\n\t\t\t\t'lng' => 'required'\n\t\t\t]);\n\n\t\t\t$input = array_add(Input::all(), 'id', $id);\n\n\t\t\t// validate form\n\t\t\t// errors are returned through the Application Error Handler in start/global/\n\t\t\t$this->markerForm->validate($input);\n\n\t\t\t// if validated\n\t\t\t$marker = $this->execute(UpdateLatLngFromMarkerCommand::class, $input);\n\n\t\t\treturn Response::json([\n\t\t\t\t'success' => true,\n\t\t\t\t'marker' => $marker\n\t\t\t]);\n\t\t}\n\t}", "title": "" }, { "docid": "81489dc8fe19cef4cacae678e72462da", "score": "0.59233314", "text": "private function set_long_lat() {\n\t\t\n\t\t$obj_google=new googleRequest;\n\t\t\n\t\t$obj_google->address = $this->address_1;\n\t\t$obj_google->city = $this->city;\n\t\t$obj_google->zip = $this->zip;\n\t\t\n\t\t$obj_google->gKey=GOOGLE_MAPS_API_KEY;\n\t\t$latlng=$obj_google->GetRequest();\n\t\t//var_dump($latlng); \n\t\t$this->longitude = $latlng[1];\n\t\t$this->latitude = $latlng[0];\n\t\t\n\t}", "title": "" }, { "docid": "d279202e7f63e82576d3905810109cc2", "score": "0.5778205", "text": "function gj_update_lat_long( $location ) {\n $post_id = $_POST['post_ID'];\n\n //Is the latitude filled?\n $lat = get_field( 'gmap_latitude', $post_id );\n if( ! empty( $lat ) ) return $location;\n\n $postcode = get_field( 'gmap_postcode', $post_id );\n if( empty( $postcode ) ) return $location;\n\n $address = $postcode;\n \t$coordinates = file_get_contents('http://maps.googleapis.com/maps/api/geocode/json?address=' . urlencode($address) . '&sensor=true');\n \t$coordinates = json_decode($coordinates);\n\n \tupdate_field( 'gmap_latitude', $coordinates->results[0]->geometry->location->lat, $post_id );\n \tupdate_field( 'gmap_longitude', $coordinates->results[0]->geometry->location->lng, $post_id );\n\n return $location;\n}", "title": "" }, { "docid": "9d937560f98540fd69f5506026a7ae70", "score": "0.57585263", "text": "public function update() {\n if (array_key_exists('main_place',$this->data)) {\n unset($this->data['main_place']);\n }\n $this->updateCoordinates();\n $this->data['change_datetime'] = date('Y-m-d H:i:s');\n parent::update();\n }", "title": "" }, { "docid": "b8d9ea64c1524988f3d3a20d98134a59", "score": "0.57205254", "text": "public function edit(Marker $marker)\n {\n //\n }", "title": "" }, { "docid": "c7c8f6ae59ab36598ac12ebbe8fdc647", "score": "0.5698565", "text": "private function setLatitude($newLatitude)\n\t {\n\t $this->latitude = $newLatitude;\n\t }", "title": "" }, { "docid": "fa9593877ff371fc558a12d80af95a9d", "score": "0.5664488", "text": "public function updateLatitude($lat, $lng, $accuracy) {\n\t\t/* build the post data */\n\t\t$post_data = \"t=ul&mwmct=iphone&mwmcv=5.8&mwmdt=iphone&mwmdv=30102&auto=true&nr=180000&\";\n\t\t$post_data .= \"cts=\" . time() . \"000&lat=$lat&lng=$lng&accuracy=$accuracy\";\n\n\t\t/* set the needed header */\n\t\t$header = array(\"X-ManualHeader: true\");\n\n\t\t/* execute the location update */\n\t\t$this->curlPost(\"http://maps.google.com/glm/mmap/mwmfr?hl=en\", $post_data, $this->last_url, $header);\n\t}", "title": "" }, { "docid": "bb4eebf924d7a57294797c233d190290", "score": "0.5605429", "text": "function update () {\n\t\t\t$update = $this->db->prepare(\n\t\t\t\t\"UPDATE LOCATION SET\n\t\t\t\t\tlongitude = ?, \n\t\t\t\t\tlatitude = ?\n\t\t\t\tWHERE name = ?\");\n\t\t\treturn $update->execute(array($this->longitude, $this->latitude, \n\t\t\t\t$this->name));\n\t\t}", "title": "" }, { "docid": "f40a5e568762c7a547a62eac7da1df80", "score": "0.5589184", "text": "public function updateuserlocation() {\n\t\t$latit = $_GET['latitude'];\n\t\t$longit = $_GET['longitude'];\n\n\t\t$is_logged_in = $this->session->userdata('is_logged_in');\n\t\tif($is_logged_in) \n\t\t{\n\t\t\t$userID = $this->session->userdata('userid');\n\t\t\t$this->user->updateUserLocation($userID, $latit, $longit);\n\t\t\t\n\t\t\techo 0; // everything ok.\n\t\t}\n\t\telse \n\t\t{\n\t\t\techo -1; // error: the user shouldn't be here...\n\t\t}\n\t}", "title": "" }, { "docid": "bc2ac17c92dff95138fb82398d0b421c", "score": "0.55774814", "text": "public function setLongLat($long, $lat)\n{\n$this->long = $long;\n$this->lat = $lat;\n}", "title": "" }, { "docid": "84ed756dfce6c2a9429180152cf25656", "score": "0.5557184", "text": "function &setMarker(& $marker)\n {\n $this->add($marker);\n $this->_marker = & $marker;\n return $marker;\n }", "title": "" }, { "docid": "7f26eb25d1ba4870694b007cd7d04488", "score": "0.5523903", "text": "public function saveLatLng( $lat, $lng )\n\t{\n\t if ( !$this->getId() ) throw new Exception(\"Save venue first\");\n\t $data = array();\n\t $data['lat'] = $lat;\n\t $data['lng'] = $lng;\t \n $where = $this->_db->quoteInto('id = ?', $this->getId());\n $this->_db->update($this->tableName, $data, $where);\n\t\n\t}", "title": "" }, { "docid": "f1382092cc90561ebfd72b69e342230e", "score": "0.5507199", "text": "public function setLng($longitude);", "title": "" }, { "docid": "10249bd5d7452f2fce2b91d34de15a2a", "score": "0.5420231", "text": "public function setGeoPosition($lat, $lng){\r\n $this->_registry->set('content/geo/lat', $lat);\r\n $this->_registry->set('content/geo/lng', $lng);\r\n $this->setMeta('geo.position', $lat.';'.$lng);\r\n $this->setMeta('ICBM', $lat.', '.$lng);\r\n }", "title": "" }, { "docid": "ff6f3e58d6cc30ac6bd4361abbd2d40f", "score": "0.5385644", "text": "function update_location($data){\n $this->db->replace('locations', $data);\n }", "title": "" }, { "docid": "355abdfa554a940504291d4218585607", "score": "0.53377795", "text": "function updateLocation(&$rows, &$latarr, &$longarr, $con) {\n\tforeach ($rows as $key => &$value) {\n\t\tif ($latarr[$key] > 0 && $value['Player_lat'] >= $max_lat) {\n\t\t\t$latarr[$key] = -1;\n\t\t} else if ($latarr[$key] < 0 && $value['Player_lat'] <= $min_lat) {\n\t\t\t$latarr[$key] = -1;\n\t\t}\n\t\t\n\t\tif ($longarr[$key] > 0 && $value['Player_long'] >= $max_long) {\n\t\t\t$longarr[$key] = -1;\n\t\t} else if ($latarr[$key] < 0 && $value['Player_long'] <= $min_long) {\n\t\t\t$longarr[$key] = -1;\n\t\t}\n\t\t\n\t\tif ($latarr[$key] > 0) {\n\t\t\t$newlat = $value['Player_lat'] + .0001;\n\t\t} else {\n\t\t\t$newlat = $value['Player_lat'] - .0001;\n\t\t}\n\t\t\n\t\tif ($longarr[$key] > 0) {\n\t\t\t$newlong = $value['Player_long'] + .0001;\n\t\t} else {\n\t\t\t$newlong = $value['Player_long'] - .0001;\n\t\t}\n\t\t$value['Player_lat'] = $newlat;\n\t\t$value['Player_long'] = $newlong;\n\t\t\n\t\t$pid = $value['Player_ID'];\n\t\t$query_update_location = \"UPDATE `PLAYERSTATS` SET `Player_lat`='$newlat', `Player_long`='$newlong' WHERE `Player_ID`='$pid' and`Game_ID`='2'\";\n\t\techo $query_update_location;\n\t\t$result_update_locations = mysqli_query($con, $query_update_location);\n\t if (!$result_update_locations) {\n\t\t\techo 'Database error';\n\t\t}\n\t\t\n\t}\n}", "title": "" }, { "docid": "62d3cc586118e555b91e6de8e19f7939", "score": "0.53257877", "text": "public function updatePosition($way, $position)\n {\n }", "title": "" }, { "docid": "4f767725a0887a3fdda06256abc5df36", "score": "0.5316715", "text": "public function update(Request $request, Project $project, Marker $marker)\n {\n $this->authorize($marker);\n $this->assign($request, $project, $marker);\n \n return json_encode(['result' => true]);\n }", "title": "" }, { "docid": "22b05a8c14f62c684ca6f28f44752a58", "score": "0.5284175", "text": "function _drawMarker()\n {\n if (($this->_marker) and ($this->_dataset)) {\n $this->_dataset->_reset();\n while ($point = $this->_dataset->_next()) {\n $prevPoint = $this->_dataset->_nearby(-2);\n $nextPoint = $this->_dataset->_nearby();\n\n if ((!is_object($this->_dataSelector)) or ($this->_dataSelector->_select($point))) {\n $point = $this->_getMarkerData($point, $nextPoint, $prevPoint, $i);\n if (is_array($point)) {\n $this->_marker->_drawMarker($point['MARKER_X'], $point['MARKER_Y'], $point);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "c95a26c499558f21a03900201ed008bc", "score": "0.5253626", "text": "public function setMarker(array $marker) {\n\t\tforeach ($marker as $name => $value) {\n\t\t\t$this->markerManager->setMarker($name, $value);\n\t\t}\n\t}", "title": "" }, { "docid": "84267c13cd0b2ce7e16c1be5635f8f7b", "score": "0.5231875", "text": "public function markUpdate($update);", "title": "" }, { "docid": "678a68bd4df0e801ae99607e86caca91", "score": "0.5211953", "text": "public function setLatitude(?float $value): void {\n $this->getBackingStore()->set('latitude', $value);\n }", "title": "" }, { "docid": "788d164fdd8a5d0c55eea5682f098562", "score": "0.5202239", "text": "public function setLat($latitude);", "title": "" }, { "docid": "9410269ff0c2eb800f9503f289e87afd", "score": "0.5199986", "text": "public function updateLocation(LocationInterface $location);", "title": "" }, { "docid": "30da1fdfbff62e2455d738df3984b480", "score": "0.51843536", "text": "function addMarkersToMap($map, $object) {\r\n\t // traverse data records and transfer their coordinates \r\n\t for ($object->rewind(); $object->valid(); $object->next()) { \r\n $record = $this->current();\r\n\t\t\t// Get longitude and latitude\r\n\t\t\t$fLongitude = floatval($record['longitude']);\r\n\t\t\t$fLatitude = floatval($record['latitude']);\r\n\t\t\tif ($fLongitude == 0.0 || $fLatitude == 0.0) {\r\n\t\t\t\tif ($record['address'] == '' &&\r\n\t\t\t\t\t$record['zip'] == '' &&\r\n\t\t\t\t\t$record['location'] == '') {\r\n\t\t\t\t\t// No address and no coords stored => no marker to set\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Try to get coords from geocoding service\r\n\t\t\t\t$sAddress = preg_replace('/\\s+/', ' ', $record['address']) . ' ' . $record['zipcode'] . ' ' . $lRow['location'] . ' ' . $record['country'];\r\n\t\t\t\t$sAddress = trim(preg_replace('/\\s+/', ' ', $sAddress));\r\n\t\t\t\t$lCoords = $map->geoGetCoords($sAddress);\r\n\t\t\t\tif (count($lCoords) == 2) {\r\n\t\t\t\t\t$record['longitude'] = $lCoords['lon'];\r\n\t\t\t\t\t$record['latitude'] = $lCoords['lat'];\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t// Coords couldn't be retrieved from geocoding service\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Build up content of info box\r\n\t\t\t$sInfoBox = $this->createInfoBox($record);\r\n\r\n\t\t\t// Set marker in map\r\n\t\t\t$this->oMap->addMarkerByCoords($record['longitude'], $lRow['latitude'], $record['title'], $sInfoBox);\r\n\t\t\t$iCount++;\r\n\t\t}\r\n\r\n\t\treturn $iCount;\r\n\t}", "title": "" }, { "docid": "33a9ff72afd2b0e946699ae2b22782e4", "score": "0.51672584", "text": "public function setCoordinates()\n {\n if(!$this->country_id || !$this->postcode || !$this->city) {\n return;\n }\n\n if(!$location = (new Location())->getByAddress($this)) {\n return;\n }\n\n if(isset($location[0])) {\n $this->latitude = $location[0]['lat'];\n $this->longitude = $location[0]['lon'];\n }\n }", "title": "" }, { "docid": "9b57efd17432c702fb28e0f79f6b010e", "score": "0.51252717", "text": "public function change_upload_location_by_id($id, $lat, $lng){\n\t\t$updatingData = array(\n\t\t\t'latitude'=> $lat,\n\t\t\t'longitude'=> $lng\n\t\t);\n\t\t$result = $this->db->update('uploads', $updatingData, array('id' => $id)); \n\t\t\n\t\tif($result){\n\t\t\treturn 1;\n\t\t}else{\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "037ec97253e82b44238f48ece59a9196", "score": "0.511838", "text": "private function save_edited_location() {\n if ( ! $this->slplus->currentLocation->isvalid_ID( null , 'locationID' ) ) {\n\t return;\n }\n $this->slplus->notifications->delete_all_notices();\n\n // Get our original address first\n //\n $this->slplus->currentLocation->set_PropertiesViaDB( $this->slplus->clean[ 'locationID' ] );\n\n // Add Checkboxes\n if ( ! isset( $_POST[ 'private' ] ) ) {\n\t $_POST[ 'private' ] = '0';\n }\n\n // Update The Location Data\n //\n\t $address_changed = false;\n\t $geocode_triggers = array( 'address', 'address2' , 'city' , 'state' , 'zip', 'country' );\n foreach ( $_POST as $key => $value ) {\n\t if ( ! $this->slplus->currentLocation->valid_location_property( $key ) ) {\n\t\t continue;\n\t }\n\t if ( ( $key === 'latitude' ) && ( $value !== '' ) && ! $this->slplus->currentLocation->is_valid_lat( $value ) ) {\n\t\t continue;\n\t }\n\t if ( ( $key === 'longitude' ) && ( $value !== '' ) && ! $this->slplus->currentLocation->is_valid_lng( $value ) ) {\n\t\t continue;\n\t }\n\n\t // Has the data changed?\n\t //\n\t $stripped_value = stripslashes_deep( $value );\n\t if (\n\t ( ! is_null( $this->slplus->currentLocation->$key ) || ! empty( $stripped_value ) ) &&\n\t ( $this->slplus->currentLocation->$key !== $stripped_value )\n\t ){\n\t\t $this->slplus->currentLocation->dataChanged = true;\n\t\t $this->slplus->currentLocation->$key = $stripped_value;\n\n\t\t // If the field that changed affects geocoding, trigger a change.\n\t\t if ( in_array( $key , $geocode_triggers ) ) {\n\t\t\t if ( ! $address_changed ) {\n\t\t\t \t$this->slplus->currentLocation->latitude = '';\n\t\t\t \t$address_changed = true;\n\t\t\t }\n\t\t }\n\t }\n }\n\n // goecode if... lat or lng is now blank\n\t //\n\t if ( $address_changed || ! $this->slplus->currentLocation->is_valid_lat() || ! $this->slplus->currentLocation->is_valid_lng() ) {\n\t\t $newAddress =\n\t\t\t $this->slplus->currentLocation->address . ' ' .\n\t\t\t $this->slplus->currentLocation->address2 . ', ' .\n\t\t\t $this->slplus->currentLocation->city . ', ' .\n\t\t\t $this->slplus->currentLocation->state . ' ' .\n\t\t\t $this->slplus->currentLocation->zip . ' ' .\n\t\t\t $this->slplus->currentLocation->country;\n\t\t $this->slplus->currentLocation->do_geocoding( $newAddress );\n\t\t $this->slplus->currentLocation->dataChanged = true;\n\t }\n\n\n // Extended Data Boolean Check\n //\n\t $this->slplus->currentLocation->dataChanged = $this->set_extended_data_booleans() || $this->slplus->currentLocation->dataChanged;\n\n /**\n * HOOK: slp_location_save\n *\n * Executes when a location save action is called from manage locations.\n *\n * @action slp_location_save\n */\n do_action( 'slp_location_save' );\n if ( $this->slplus->currentLocation->dataChanged ) {\n\t if ( ! $this->slplus->currentLocation->MakePersistent() ) {\n\t\t $this->slplus->notifications->add_notice( '1' , __( 'Could not update the location data.' , 'store-locator-le' ) );\n\t }\n\n }\n\n /**\n * HOOK: slp_location_saved\n *\n * Executes after a location has been saved from the manage locations interface. After EDIT only!\n *\n * @action slp_location_saved\n *\n */\n do_action( 'slp_location_saved' );\n }", "title": "" }, { "docid": "c5fd9cb6fac394fef0eaa793950503ae", "score": "0.51173776", "text": "public function update($id)\n\t{\n\t\t$marker = Marker::find($id);\n\t\tif( !!$marker ){\n\t\t\t$marker->update(Input::all());\n\t\t\treturn Response::json(['result' => true, 'data' => $marker->toArray()], 200);\t\n\t\t}\n return Response::json(['result' => false, 'data' => ['Resource not found']], 404);\n\t}", "title": "" }, { "docid": "28061ab93a5adcaafefd716ea2a2bb72", "score": "0.5063044", "text": "private function setLongitude($newLongitude)\n\t {\n\t $this->longitude = $newLongitude;\n\t }", "title": "" }, { "docid": "0abbc614d960525d31a9798b5000bae5", "score": "0.50561094", "text": "function SetGeodataDetails($link, $datestamp, $boundingbox, $spatialexp) {\n $sql=\"UPDATE geodata SET datestamp = '$datestamp', boundingbox='$boundingbox' , spatialexp='$spatialexp' WHERE url='$link'\";\n RequestUpdate($sql);\n }", "title": "" }, { "docid": "0990451fd4028b20c4031394c6d0533e", "score": "0.50132054", "text": "public function addMarker( $marker ) {\n\t\t$this->_markers[] = (int) $marker;\n\t}", "title": "" }, { "docid": "064f332ebaff097a888fae0a5c0a1a1f", "score": "0.5011694", "text": "public function update(UpdateMark $request, Mark $mark)\n {\n // Sanitize input\n //$sanitized = $request->validated();\n $markObj['mark'] = $request->get('mark');\n $markObj['notes'] = $request->get('notes');\n\n //$mark = Mark::create($markObj);\n\n // Update changed values Mark\n $mark->update($markObj);\n\n if ($request->ajax()) {\n return ['redirect' => url('admin/marks'), 'message' => trans('brackets/admin-ui::admin.operation.succeeded')];\n }\n\n return redirect('admin/marks');\n }", "title": "" }, { "docid": "ebc434c9e9882b2fe07a6d4781382aae", "score": "0.4995806", "text": "public function updateInfo($id)\n\t{\n\t\tif (Request::ajax())\n\t\t{\n\t\t\t// change rules for the unique field\n\t\t\t$this->markerForm->setRules([\n\t\t\t\t'name' => 'required'\n\t\t\t]);\n\n\t\t\t$input = array_add(Input::all(), 'id', $id);\n\n\t\t\t// validate form\n\t\t\t// errors are returned through the Application Error Handler in start/global/\n\t\t\t$this->markerForm->validate($input);\n\n\t\t\t// if validated\n\t\t\t$marker = $this->execute(UpdateInfoFromMarkerCommand::class, $input);\n\n\t\t\treturn Response::json([\n\t\t\t\t'success' => true,\n\t\t\t\t'marker' => $marker\n\t\t\t]);\n\t\t}\n\t}", "title": "" }, { "docid": "b58ac520fe92743715269d8006ae4dfc", "score": "0.49901885", "text": "public function update($locazione);", "title": "" }, { "docid": "11a4f0bda59e07648524133f335b8d8f", "score": "0.49826366", "text": "public function updateLandmarkInfo($landmark_id, $params)\n {\n if (! is_numeric($landmark_id) OR $landmark_id <= 0) {\n $this->setErrorMesage('err_landmark');\n }\n\n if (! is_array($params) OR empty($params)) {\n $this->setErrorMessage('err_params');\n } else {\n if (isset($params['latitude']) AND (! is_numeric($params['latitude']) OR empty($params['latitude']) OR ! is_numeric($params['longitude']) OR empty($params['longitude']))) {\n $this->setErrorMessage('err_coordinates');\n }\n \n if (isset($params['landmarkname']) AND strlen($params['landmarkname']) < 3) {\n $this->setErrorMessage('err_title');\n }\n \n if (isset($params['radius']) AND (! is_numeric($params['radius']) OR $params['radius'] <= 0)) {\n $this->setErrorMessage('err_radius');\n }\n \n if (isset($params['reference']) AND ! in_array($params['reference'], array(0,1,2))) {\n $this->setErrorMessage('err_landmark_reference');\n }\n \n if (isset($params['country']) AND ! empty($params['country']) AND ($params['country'] == 'USA' AND empty($params['state']))) {\n $this->setErrorMessage('err_state');\n }\n \n if (isset($params['shape']) AND ! empty($params['shape'])) {\n if ($this->validateLandmarkType($params['shape']) !== false) {\n if (($params['shape'] != 'circle') OR ($params['shape'] == 'circle' AND ! empty($params['radius']))) { // if shape is a circle, a radius is required\n if (! empty($params['coordinates'])) {\n $latlngs = array();\n \n foreach($params['coordinates'] as $index => $coords) {\n $latlngs[] = $coords['latitude'] . ' ' . $coords['longitude']; \n }\n \n // if shape is not circle, add the first lat/lng as the last lat/lng to connect the polygon\n if ($params['shape'] != 'circle') {\n $latlngs[] = $params['coordinates'][0]['latitude'] . ' ' . $params['coordinates'][0]['longitude'];\n if ($params['shape'] != 'square') {\n $params['streetaddress'] = $params['city'] = $params['state'] = $params['zipcode'] = $params['country'] = '';\n $params['radius'] = NULL;\n } \n }\n \n $params['boundingbox'] = $this->getBoundingBoxValue($params['shape'], $latlngs, (! empty($params['radius']) ? $params['radius'] : 0));\n unset($params['coordinates']);\n //print_rb($params); \n } else {\n $this->setErrorMessage('err_landmark_coordinates');\n }\n } else {\n $this->setErrorMessage('err_radius');\n }\n } else {\n $this->setErrorMessage('err_landmark_shape');\n }\n }\n }\n\n if (! $this->hasError()) {\n // if landmarkname update then check if new name already exist, only update if unique\n if ($this->landmark_data->updateLandmarkInfo($landmark_id, $params)) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "bbb91bda0ff7b99db0925d55aebebc28", "score": "0.49698412", "text": "public static function saveMapLatLong($model) {\n $response = \\GoogleMaps::load('geocoding')\n ->setParam(['address' => $model->vendor_address])\n ->get();\n $response1 = json_decode($response);\n \n $streetaddress=\"\";\n \n \n \n // $response1->results[0]->route\n if ($response1->status != 'ZERO_RESULTS') {\n foreach($response1->results[0]->address_components as $element){\n\n if(($element->types[0]=='street_number')){\n $streetaddress .=$element->long_name. \",\";\n }\n if(($element->types[0]=='route')){\n $streetaddress .=$element->long_name.\",\";\n }\n \n if(($element->types[0]=='political')){\n $streetaddress .=$element->long_name.\",\";\n }\n }\n $streetaddress= substr($streetaddress, 0, -1);\n $model->vendor_street_address=$streetaddress;\n $model->vendor_lat = $response1->results[0]->geometry->location->lat;\n $model->vendor_long = $response1->results[0]->geometry->location->lng;\n }\n $model->save();\n }", "title": "" }, { "docid": "b3804c2c457d16c1b9bceb30a4ac84f3", "score": "0.4966825", "text": "public function updating(ContactUs $contact)\n {\n $contact->updated_by = Auth::id();\n if($contact->marker) {\n preg_match('/src=\"([^\"]*)\"/', $contact->marker, $match);\n if(isset($match[1])) {\n $contact->marker = $match[1];\n }\n }\n }", "title": "" }, { "docid": "456516f296b54dd1722fe23572d9c01c", "score": "0.49542382", "text": "private function updateLatLon($file_path, $lat, $lon, $row_id, $column_id) {\n $app_path = realpath(Yii::app()->basePath . '/../');\n \n $ext = pathinfo($file_path, PATHINFO_EXTENSION);\n $fileName = pathinfo($file_path, PATHINFO_FILENAME);\n $path = $app_path . '/files/' . $file_path;\n if ($ext === 'xls' || $ext === 'xlsx') {\n $path = $app_path . '/files/' . $fileName.'.csv';\n } \n \n\n $row = 1;\n $newCsvData = array();\n //var_dump($row_id);\n if (($handle = fopen($path, \"a+\")) !== FALSE) {\n while (($data = fgetcsv($handle, 1000, \",\")) !== FALSE) {\n if ($row == $row_id) {\n $address = $data[$column_id];\n $locations = explode(\">\", $address);\n //var_dump($locations);\n if (count($locations) <= 1) {\n $data[$column_id] = $data[$column_id] . \">\" . $lat . \">\" . $lon;\n }\n }\n array_push($newCsvData, $data);\n $row++;\n }\n fclose($handle);\n }\n\n $handle = fopen($path, 'w');\n foreach ($newCsvData as $line) {\n fputcsv($handle, $line);\n }\n fclose($handle);\n }", "title": "" }, { "docid": "7493c8772a487082205c708b266e9403", "score": "0.49467006", "text": "public function addMarker(MapMarker $marker)\n {\n $this->markers[] = $marker;\n }", "title": "" }, { "docid": "92ade468f209aa3111e988e5cb732a30", "score": "0.49440315", "text": "function update($a_location_info, $i_centre_id) {\n\n\t\t$s_errors['error'] = '';\n\t\t$this->db->where('id', $i_centre_id);\n\t\tif ($r_result = $this->db->update(TBL_CENTRE_LOCATIONS, $a_location_info)) {\n\t\t\treturn $r_result;\n\t\t} else {\n\t\t\t$s_errors['error'] = $this->db->_error_message();\n\t\t\treturn $s_errors;\n\t\t}\n\t}", "title": "" }, { "docid": "5b0d73e677027d3352fb19770d4aa04d", "score": "0.49401617", "text": "public function setLongitude(?float $value): void {\n $this->getBackingStore()->set('longitude', $value);\n }", "title": "" }, { "docid": "73dec258b111a762442af909347fb390", "score": "0.49000946", "text": "function map_update_instance($map) {\n\t// (defined by the form in mod.html) this function\n\t// will update an existing instance with new data.\n\t$map->id = $map->instance;\n\t$map->timemodified = time();\n\treturn update_record('map', $map);\n\n}", "title": "" }, { "docid": "ffa685bbaa145377ed66c62b7351d28b", "score": "0.48941055", "text": "public function location(Request $request)\n {\n $this->validate($request, [\n 'latitude' => 'required|numeric',\n 'longitude' => 'required|numeric',\n ]);\n\n if($Provider = Auth::user()){\n\n $Provider->latitude = $request->latitude;\n $Provider->longitude = $request->longitude;\n $Provider->save();\n\n return response()->json(['message' => trans('api.provider.location_updated')]);\n\n } else {\n return response()->json(['error' => trans('api.provider.provider_not_found')]);\n }\n }", "title": "" }, { "docid": "81762a3a7912d829000914ef6d0b6af3", "score": "0.48936647", "text": "public function updatemarking($obtainedmark){\n global $DB;\n if(!$previousmark = $DB->get_record_sql(\"SELECT * FROM {timelinetotalmark} WHERE timelinetestid=:timelinetestid AND userid=:userid\", array('timelinetestid'=>$this->timelinetestid,'userid'=>$this->userid))){\n // Timeline test not found\n throw new ddl_exception(get_string('error:invalid option', 'timelinetest'));\n }\n $totalmark = $previousmark->obtainedmark;\n $totalmark = $totalmark + $obtainedmark;\n\n $sql = \"UPDATE {timelinetotalmark} \n SET obtainedmark=:totalmark,\n timemodified=:timemodified \n WHERE timelinetestid=:timelinetestid AND \n userid=:userid\";\n $params = array(\n \"timelinetestid\" => $this->timelinetestid,\n \"userid\" => $this->userid,\n \"totalmark\" => $totalmark,\n \"timemodified\" =>time()\n );\n $DB->execute($sql,$params);\n }", "title": "" }, { "docid": "522ea645547f3c5070b38448c8fa9fb3", "score": "0.48810238", "text": "public function show(Marker $marker)\n {\n //\n }", "title": "" }, { "docid": "0f1e37ca1a1da8406635ad28ba291870", "score": "0.4878002", "text": "public function actionGeoposition(){\n\t\tif(isset(Yii::app()->session[\"jump_user_geoposition_lat\"])){\n if(Yii::app()->session[\"jump_user_geoposition_lat\"] != $_GET[\"geoposition_lat\"]){\n Yii::app()->session[\"jump_user_geoposition_lat\"] = $_GET[\"geoposition_lat\"];\n Yii::app()->session[\"jump_user_geoposition_long\"] = $_GET[\"geoposition_long\"];\n }\n }else{\n Yii::app()->session[\"jump_user_geoposition_lat\"] = $_GET[\"geoposition_lat\"];\n Yii::app()->session[\"jump_user_geoposition_long\"] = $_GET[\"geoposition_long\"];\n }\n\n $user = User::model()->findByPk($_GET[\"uid\"]);\n if(Yii::app()->session[\"pinned\"] == 1){\n\t \t$user->geolocation_lat = Yii::app()->session[\"jump_user_geoposition_lat\"];\n\t \t$user->geolocation_long = Yii::app()->session[\"jump_user_geoposition_long\"];\n\t \t$user->save();\n\t }else{\n\t \tif(isset(Yii::app()->session[\"welcome_pin\"])){\n\t \t\tif(Yii::app()->session[\"welcome_pin\"] == \"yes\"){\n\t\t \t\t$user->geolocation_lat = Yii::app()->session[\"jump_user_geoposition_lat\"];\n\t\t \t\t$user->geolocation_long = Yii::app()->session[\"jump_user_geoposition_long\"];\n\t\t \t\t$user->save();\n\t\t \t\tYii::app()->session[\"welcome_pin\"] = \"no\";\n\t\t \t}\n\t \t}\n\t }\n\t}", "title": "" }, { "docid": "f6566b0cdb77e149a5b24e7659424ee2", "score": "0.48620743", "text": "public function setLatlng($latlng)\n {\n return $this->set('latlng', $latlng);\n }", "title": "" }, { "docid": "c4a4573a6f9721fa6f49ab13ccce5cc8", "score": "0.48461497", "text": "public function updateLocationSimple($phone, $latitude, $longitude){\n require_once 'config.php';\n // connecting to mysql\n\n $con = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD,DB_DATABASE);\n $result = mysqli_query($con,\"UPDATE `users_simple` SET `latitude` = '$latitude',`longitude` = '$longitude' WHERE `phone` = '$phone'\");\n\n if ($result) {\n\n return true;\n\n }\n else\n {\n return false;\n }\n\n }", "title": "" }, { "docid": "e5a903b430b5dd99202b3376744c575a", "score": "0.48284766", "text": "public function updated(WorldMap $worldMap)\n {\n //\n\n }", "title": "" }, { "docid": "03829deada18fd9c5364fcd8a8b67d85", "score": "0.48283845", "text": "public function setLocation(Request $request) {\n\n\t\t$response = \\GoogleMaps::load('geocoding')\n\t\t\t->setParam(['address' => $request->location])\n\t\t\t->get();\n\n\t\t$result = (json_decode($response));\n\t\t$result = $result->results;\n\t\t$formatted_address = $result[0]->formatted_address;\n\t\t$lat = $result[0]->geometry->location->lat;\n\t\t$long = $result[0]->geometry->location->lng;\n\n\t\t$user = \\Auth::user();\n\t\t$user->location = $formatted_address;\n\t\t$user->lat = $lat;\n\t\t$user->lng = $long;\n\t\t$user->save();\n\t\treturn back();\n\t}", "title": "" }, { "docid": "9242de038b89ae1bfb4be2d890e476c9", "score": "0.48046422", "text": "public function setCenter($lat, $lng)\n {\n $this->center = new MapCoordinate($lat, $lng);\n }", "title": "" }, { "docid": "872c7ffa06309864a11e0c028ad66e35", "score": "0.48033473", "text": "public function updateLocation($phone, $latitude, $longitude){\n require_once 'config.php';\n // connecting to mysql\n\n $con = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD,DB_DATABASE);\n $result = mysqli_query($con,\"UPDATE `users` SET `latitude` = '$latitude',`longitude` = '$longitude' WHERE `phone` = '$phone'\");\n\n if ($result) {\n\n return true;\n\n }\n else\n {\n return false;\n }\n\n }", "title": "" }, { "docid": "f5e7ec61483dcf395b40f97e1673d3a8", "score": "0.47962806", "text": "public function setMarkers($markers)\n {\n $this->markers = $markers;\n }", "title": "" }, { "docid": "d88778812d6716d4b19a9c595d86e16d", "score": "0.47837728", "text": "public function addMarker() {\n if ($this->markerArray != null) return DB::insert('markers', $this->markerArray);\n else return false;\n }", "title": "" }, { "docid": "d98b7f0bf10fc79b1b1a050dd3ab37ff", "score": "0.47795025", "text": "public function update(Request $request, $id)\n {\n $this->currentPerson = Person::find(auth()->user()->id);\n $address = Address::find($id);\n $name = request()->input('name');\n $name = substr($name, 0, -1);\n $value = request()->input('value');\n\n $address->{$name} = $value;\n $address->updaterID = $this->currentPerson->personID;\n $address->save();\n generateLatLngForAddress($address);\n }", "title": "" }, { "docid": "f0118ebc740b6d3465fb471047e9e634", "score": "0.47573498", "text": "public function updateMap($tile) {\n $this->_map[$tile->x][$tile->y] = new Tile($this->_selectedTile);\n }", "title": "" }, { "docid": "e938a824b185c1055c3d2edd53d938e3", "score": "0.4757309", "text": "function distance2Loc($loc1, $loc2) {\n $miles_per_degree_latitude = 69.023;\n $miles_per_degree_longitude = 51.075;\n //$lat = $marker->point->lat;\n //echo \"marker lat = $lat<br/>\\n\";\n $m1_lat = $miles_per_degree_latitude * $loc1->getLat();\n $m1_lng = $miles_per_degree_longitude * $loc1->getLng();\n $m2_lat = $miles_per_degree_latitude * $loc2->getLat();\n $m2_lng = $miles_per_degree_longitude * $loc2->getLng();\n \n return sqrt(pow(($m1_lat - $m2_lat),2) + pow(($m1_lng - $m2_lng),2));\n}", "title": "" }, { "docid": "ac5e47e895e3eaa6e1e9fc0f7ebebf2d", "score": "0.4756854", "text": "private function location_legacy_marker_set() {\n if ( ! isset( $this->slplus->currentLocation->attributes ) ) { return false; }\n if ( empty( $this->slplus->currentLocation->attributes ) ) { return false; }\n if ( ! isset( $this->slplus->currentLocation->attributes['marker'] ) ) { return false; }\n return ! empty( $this->slplus->currentLocation->attributes['marker'] );\n }", "title": "" }, { "docid": "61cf9219d0083a04b08cb3bcf42589fb", "score": "0.47524276", "text": "function map_get_latlong_old(&$data){\n\tglobal $CFG;\n\t// Your Google Maps API key\n\t// Desired address\n\n\n\t$address = \"http://maps.google.com/maps/geo?q=\". str_replace(\" \",\"+\",\"$data->city,+$data->state,+$data->country\") . \"&output=xml&key={$CFG->map_google_api_key}&hl=iw\";\n\t// Retrieve the URL contents\n\t$page = file_get_contents($address);\n\n\t// Parse the returned XML file\n\t$xml = new SimpleXMLElement($page);\n\tif($xml->Response->Status->code == \"200\"){\n\n\t\t// Retrieve the desired XML node\n\t\tlist($data->longitude, $data->latitude, $altitude) = explode(\",\",$xml->Response->Placemark->Point->coordinates);\n\t\treturn true;\n\t}else{\n\t\treturn false;\n\t}\n\n}", "title": "" }, { "docid": "5f2f0fc657d2e734d550274b6c82fca9", "score": "0.4749985", "text": "public function setMarker($marker)\n {\n if (\\is_array($marker)) {\n $this->markers[] = array(\n 'color' => $marker['color'],\n 'label' => $marker['label']\n );\n } else {\n $this->marker = $marker;\n }\n return true;\n }", "title": "" }, { "docid": "4413a7497a99177980f1c6abcef2edd9", "score": "0.47437397", "text": "public function geocode(): void\n {\n $geocode = self::geoCodeParts($this->address, $this->city, $this->stateprov, $this->postalcode, $this->address2);\n if($geocode && isset( $geocode['accuracy'] ) && $geocode['accuracy'] >= $this->map_accuracy) {\n $this->map_accuracy = $geocode['accuracy'];\n $this->latitude = $geocode['lat'];\n $this->longitude= $geocode['lon'];\n $this->geocode_source = $geocode['source'];\n }\n }", "title": "" }, { "docid": "594354ae59a923f4a6aad0e82cb4d920", "score": "0.4736689", "text": "public function doUpdate()\n {\n $this->updated = new \\DateTime('now', new \\DateTimeZone('UTC'));\n }", "title": "" }, { "docid": "2426de3513c176a85b0755ce195d307c", "score": "0.472686", "text": "public function getLat();", "title": "" }, { "docid": "ca8975069eb5ed46dd8567541818d999", "score": "0.4726003", "text": "public function latitude($latitude);", "title": "" }, { "docid": "9bf7ef85f06b2100ed2dd3db33e9a4a8", "score": "0.4721285", "text": "function setLocation($obj,$latitude=null,$longitude=null) { \n\t$obj->latitude = $latitude;\n\t$obj->longitude = $longitude;\n\t$obj->save();\n}", "title": "" }, { "docid": "763c62ae2604dad14fb5896a160018bd", "score": "0.47211015", "text": "public function updateReferenceLandmark() \n {\n $ajax_data = $params = array();\n $landmark_id = 0;\n $post = $this->request->request->all();\n $account_id = $this->user_session->getAccountId();\n\n if (! empty($post['latitude'])) {\n $params['latitude'] = $post['latitude'];\n }\n \n if (! empty($post['longitude'])) {\n $params['longitude'] = $post['longitude'];\n }\n \n if (! empty($post['street_address'])) {\n $params['streetaddress'] = $post['street_address']; \n }\n \n if (! empty($post['city'])) {\n $params['city'] = $post['city'];\n }\n \n if (! empty($post['state'])) {\n $params['state'] = $post['state'];\n }\n\n if (! empty($post['zip'])) {\n $params['zipcode'] = $post['zip'];\n }\n \n if (! empty($post['country'])) {\n $params['country'] = $post['country'];\n }\n \n if (! empty($post['radius'])) {\n $params['radius'] = $post['radius'];\n }\n \n if (! empty($post['title'])) {\n $params['territoryname'] = $post['title'];\n }\n \n if (! empty($post['landmark_id'])) {\n $landmark_id = $post['landmark_id'];\n }\n\n if (! empty($landmark_id)) {\n if (! empty($account_id)) {\n if ($this->territory_logic->updateTerritoryInfo($landmark_id, $params, 'territory') !== false) {\n $ajax_data['code'] = 0;\n $ajax_data['message'] = 'Verification address updated';\n } else {\n $ajax_data['code'] = 1;\n $ajax_data['message'] = 'Failed to update verification address'; \n }\n } else {\n $ajax_data['code'] = 1;\n $ajax_data['message'] = 'Invalid Account ID'; \n }\n } else {\n $ajax_data['code'] = 1;\n $ajax_data['message'] = 'Invalid Territory ID'; \n }\n \n $this->ajax_respond($ajax_data); \n }", "title": "" }, { "docid": "c7dbf087efc8b1cecb83e58792ccb9e4", "score": "0.47054553", "text": "public function update(Request $request, $id)\n {\n $tutor = Tutor::find($id);\n $tutor->update($request->input());\n return $tutor->fresh(['markers'])->append('svg_map');\n }", "title": "" }, { "docid": "0a26bac184d1e84a5b8c70b4bd85cbfb", "score": "0.47050822", "text": "public function updateEntry(): void\n {\n }", "title": "" }, { "docid": "34964f875b6d3025963a7b9ef4eea640", "score": "0.47035182", "text": "public function emitMarker( string $marker ): void {\n\t\t$this->nl( \"%MARKER%$marker%\" );\n\t}", "title": "" }, { "docid": "86cf59ad59bd57de3d44b631431648bb", "score": "0.4688301", "text": "public function markAsModified() {}", "title": "" }, { "docid": "3bf962b577a448ddc12e79e254245b0e", "score": "0.46854222", "text": "public function updatePatrolPostition($patrol_id, $longitude, $latitude)\n {\n $data = array(\n 'patrol_id' => $patrol_id,\n 'longitude' => $longitude,\n 'latitude' => $latitude,\n );\n $this->db->set('date_time', 'NOW()', false);\n $this->db->insert('service_provider_patrol_location', $data);\n }", "title": "" }, { "docid": "d3a9878da74eb3f1ca51154815ae7217", "score": "0.46828225", "text": "function my_map($args) {\n\n if (count($args['latitude']) == count($args['longitude']))\n {\n\n if ($args['width'] != '')\n {\n $width = \"width: \" . $args['width'] . \"; \";\n }\n\n if ($args['height'] != '')\n {\n $height = \"height: \" . $args['height'] . \"; \";\n }\n\n if ($args['center'] != '')\n {\n $center = $args['latitude'][$args['center'] - 1] . \", \" . $args['longitude'][$args['center'] - 1];\n }\n else\n {\n $center = $args['latitude'][0] . \", \" . $args['longitude'][0];\n }\n\n if ($args['zoom'] != '')\n {\n $zoom = $args['zoom'];\n }\n else\n {\n $zoom = \"10\";\n }\n\n if ($args['marker_ico'] != '')\n {\n $marker_ico = \"icon: '\" . $args['marker_ico'] . \"', \";\n }\n for ($i = 0; $i < count($args['latitude']); $i++)\n {\n $locations.=\"['\" . $args['address'][$i] . \"',\" . $args['latitude'][$i] . \", \" . $args['longitude'][$i] . \", \" . $i . \"]\";\n if ($i < count($args['latitude']) - 1)\n {\n $locations.=\", \";\n }\n }\n ?>\n <script async defer src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyADYs4rQ5IKqs3sU49JoR-bCWy_U4En4fE\"\n type=\"text/javascript\"></script>\n\n\n <div id=\"map\" style=\"<?php\n echo $width;\n echo $height;\n ?> min-height: 250px; min-width: 250px;\"></div>\n <script type=\"text/javascript\">\n var locations = [<?php echo $locations; ?>];\n\n var map = new google.maps.Map(document.getElementById('map'), {\n zoom: <?php echo $zoom; ?>,\n center: new google.maps.LatLng(<?php echo $center; ?>),\n mapTypeId: google.maps.MapTypeId.ROADMAP,\n styles:\n [\n {\n \"featureType\": \"poi\",\n \"elementType\": \"labels.text\",\n \"stylers\": [\n {\n \"saturation\": \"-100\"\n }\n ]\n },\n {\n \"featureType\": \"poi\",\n \"elementType\": \"labels.icon\",\n \"stylers\": [\n {\n \"saturation\": \"-100\"\n }\n ]\n },\n {\n \"featureType\": \"poi.park\",\n \"elementType\": \"geometry\",\n \"stylers\": [\n {\n \"visibility\": \"on\"\n },\n {\n \"color\": \"#D4D4D4\"\n }\n ]\n },\n {\n \"featureType\": \"road\",\n \"elementType\": \"geometry.stroke\",\n \"stylers\": [\n {\n \"visibility\": \"on\"\n }\n ]\n },\n {\n \"featureType\": \"road\",\n \"elementType\": \"labels.text.fill\",\n \"stylers\": [\n {\n \"saturation\": \"-100\"\n }\n ]\n },\n {\n \"featureType\": \"road.highway\",\n \"elementType\": \"geometry.fill\",\n \"stylers\": [\n {\n \"color\": \"#bababa\"\n }\n ]\n },\n {\n \"featureType\": \"road.highway\",\n \"elementType\": \"geometry.stroke\",\n \"stylers\": [\n {\n \"color\": \"#b4b4b4\"\n }\n ]\n },\n {\n \"featureType\": \"transit.line\",\n \"elementType\": \"labels.text.fill\",\n \"stylers\": [\n {\n \"visibility\": \"on\"\n }\n ]\n },\n {\n \"featureType\": \"water\",\n \"elementType\": \"geometry.fill\",\n \"stylers\": [\n {\n \"visibility\": \"on\"\n },\n {\n \"color\": \"#bababa\"\n }\n ]\n },\n {\n \"featureType\": \"water\",\n \"elementType\": \"labels.text.fill\",\n \"stylers\": [\n {\n \"color\": \"#716868\"\n }\n ]\n }\n ]\n\n\n });\n\n var infowindow = new google.maps.InfoWindow();\n\n var marker, i;\n\n for (i = 0; i < locations.length; i++) {\n\n marker = new google.maps.Marker({\n position: new google.maps.LatLng(locations[i][1], locations[i][2]),\n <?php echo $marker_ico; ?>\n map: map,\n });\n\n google.maps.event.addListener(marker, 'click', (function (marker, i) {\n return function () {\n infowindow.setContent(locations[i][0]);\n infowindow.open(map, marker);\n }\n })(marker, i));\n }\n </script>\n <?php\n }\n else\n {\n return \"latitude and longitude are not same\";\n }\n}", "title": "" }, { "docid": "fef9248fe56b311f5ba7ff39ea276919", "score": "0.46709427", "text": "public function updateUserInfo()\n {\n }", "title": "" }, { "docid": "59efd557e4004ffbd88d72a5ba0fb443", "score": "0.46707448", "text": "public function update(Request $request, $id)\n {\n $pointer = \\App\\MapPointer::find($id);\n $pointer->fill($request->all());\n\t\t$pointer->save();\n\t\t\n\t\t// handle image\n\t\t$pointer->image()->update([\n\t\t\t\"handle\" => $request->input('image_handle') // nullable\n\t\t]);\n\t\t\n\t\treturn 'success';\n }", "title": "" }, { "docid": "9898b57882733514af1debf51ba290f2", "score": "0.46672466", "text": "function pointLocation() {\n }", "title": "" }, { "docid": "1bdb3025b124caf6071067cf00eaa611", "score": "0.46613607", "text": "abstract protected function update();", "title": "" }, { "docid": "17bbdf8b5f23de76afacea00832d9ced", "score": "0.46559095", "text": "public function update();", "title": "" }, { "docid": "17bbdf8b5f23de76afacea00832d9ced", "score": "0.46559095", "text": "public function update();", "title": "" }, { "docid": "17bbdf8b5f23de76afacea00832d9ced", "score": "0.46559095", "text": "public function update();", "title": "" }, { "docid": "17bbdf8b5f23de76afacea00832d9ced", "score": "0.46559095", "text": "public function update();", "title": "" }, { "docid": "69836c3b399f038ff2b23249b221ad80", "score": "0.46542874", "text": "function geodaten_update() {\n set_time_limit(0);\n\n // Get all addresses wihtout geodata. Query directly against the db instead\n // of using the api for performance reasons.\n $address = CRM_Core_DAO::executeQuery(\n<<<EOF\nSELECT id, geo_code_1 as lat, geo_code_2 as lon FROM civicrm_address\nWHERE id NOT IN (\n SELECT entity_id FROM geodaten\n WHERE rs NOT LIKE ''\n)\nEOF\n );\n\n geodaten_update_from_result_set($address);\n}", "title": "" }, { "docid": "ce5d421f7ec2a48c300e36fbadbcb401", "score": "0.46192858", "text": "public function setLatitude(float $latitude) {\n\t\t$this->latitude = $latitude;\n\t}", "title": "" }, { "docid": "eab6d622f7e3baca6d20daa293fb5017", "score": "0.46158326", "text": "private function updateOrigin(): void\n {\n foreach ($this->items as $key => $value) {\n $this->dataSet($this->origin, $key, $value);\n }\n }", "title": "" }, { "docid": "c8ecd821a7834b38ef21b6fd35b0e373", "score": "0.4609473", "text": "public function updateLocation($latitude, $longitude) {\n\t\t$this->locationObject = new Location($latitude, $longitude);\n\n\t\t//before we get new party, check if we are in one\n\t\tif ($this->partyLocationID != null) {\n\t\t\t\n\t\t\t//if in a party, remove ourselves\n\t\t\t$myParty = PartyLocation::getPartyWithID($this->partyLocationID);\n\t\t\t$myParty->removeUser($this->userID);\n\t\t\t\t\t\n\t\t}\n\n\n\t\t$this->setPartyLocation();\n\t\t$this->addUserToParty();\n\t\t\n\t\t$test = PartyLocation::getPartyWithID($this->partyLocationID);\n\t\t$this->synchronizeLocationInformation();\n\t\t\n\t\t\n\t\n\t}", "title": "" }, { "docid": "b9e6cf1be710ca558738f817561f02ee", "score": "0.46074572", "text": "public function restaurantLocationUpdate(RestaurantAddressUpdateFormRequest $request)\n {\n getLatLong($request->address, 'restaurants', $request->restaurant_id);\n\n RestaurantAddress::where(\"id\", $request->id)->update(\n [\n \"restaurant_id\" => $request->restaurant_id,\n \"address\" => $request->address,\n \"is_current_address\" => $request->is_current_address,\n ]\n );\n\n if ($request->is_current_address == 'yes') {\n RestaurantAddress::where(\"id\", '!=', $request->id)->where(\"restaurant_id\", $request->restaurant_id)->update(\n [\n \"is_current_address\" => 'no',\n ]\n );\n\n //Update profile address\n RestaurantProfile::where(\"restaurant_id\", $request->restaurant_id)->update(\n [\n \"address\" => $request->address,\n ]\n );\n }\n\n $restaurantAddress = RestaurantAddress::where('restaurant_id', $request->restaurant_id)->orderBy('is_current_address', 'desc')->get();\n\n if ($restaurantAddress->count() > 0) {\n return $this->sendResponse($restaurantAddress, 'Location saved', Response::HTTP_OK);\n\n } else {\n return $this->sendResponse(array(), 'Data not found', Response::HTTP_NOT_FOUND);\n }\n }", "title": "" }, { "docid": "60f7b5db1371f47734cc421c65afb378", "score": "0.46047917", "text": "public function savePositions($data){\n $changes = json_decode($data);\n\n if (is_array($changes) && count($changes) > 0){\n foreach($changes as $value){\n /**\n * \n * Insert a code to update google maps positions\n * \n */\n $longitud = $value->lng;\n $latitud = $value->lat;\n }\n }\n return array(\n 'status' => 'OK',\n 'message' => 'Datos guardados correctamente'\n );\n }", "title": "" }, { "docid": "bff382c529f779e0c71390001f191b4b", "score": "0.4593045", "text": "public function getLongitude(): float;", "title": "" }, { "docid": "590dd9e3344a0aa33e0732ae6c1050db", "score": "0.45843595", "text": "function _drawMarker()\n {\n\n if ($this->_marker) {\n $totals = $this->_getTotals();\n\n $totals['CENTER_X'] = (int) (($this->_left + $this->_right) / 2);\n $totals['CENTER_Y'] = (int) (($this->_top + $this->_bottom) / 2);\n\n $totals['CURRENT_Y'] = 0;\n $number = 0;\n \n $diameter = $this->_getDiameter();\n \n $keys = array_keys($this->_dataset);\n foreach ($keys as $key) {\n $dataset =& $this->_dataset[$key];\n\n if (count($this->_dataset) == 1) {\n $totals['RADIUS0'] = false;\n $totals['RADIUS'] = $diameter / 2;\n } else {\n $dr = $diameter / (2 * count($this->_dataset));\n\n $totals['RADIUS0'] = $number * $dr + ($number > 0 ? $this->_radius : 0);\n $totals['RADIUS'] = ($number + 1) * $dr;\n }\n\n $totals['ALL_SUM_Y'] = 0;\n $totals['CURRENT_Y'] = 0;\n $dataset->_reset();\n while ($point = $dataset->_next()) {\n $totals['ALL_SUM_Y'] += $point['Y'];\n }\n\n $dataset->_reset();\n $currentY = 0;\n $the_rest = 0;\n while ($point = $dataset->_next()) {\n if (($this->_restGroupLimit !== false) && ($point['Y'] <= $this->_restGroupLimit)) {\n $the_rest += $point['Y'];\n }\n else {\n if ((!is_object($this->_dataSelector)) ||\n ($this->_dataSelector->select($point))\n ) {\n $point = $this->_getMarkerData(\n $point,\n false,\n false,\n $totals\n );\n if (is_array($point)) {\n $this->_marker->_drawMarker(\n $point['MARKER_X'],\n $point['MARKER_Y'],\n $point\n );\n }\n }\n }\n }\n if ($the_rest > 0) {\n $point = array('X' => $this->_restGroupTitle, 'Y' => $the_rest); \n $point = $this->_getMarkerData(\n $point,\n false,\n false,\n $totals\n );\n if (is_array($point)) {\n $this->_marker->_drawMarker(\n $point['MARKER_X'],\n $point['MARKER_Y'],\n $point\n );\n }\n }\n $number++;\n }\n unset($keys);\n }\n }", "title": "" }, { "docid": "cf0034d807fa3d63b8ae6c610dbbac97", "score": "0.458304", "text": "public function update(User $user, Point $point)\n {\n //\n }", "title": "" }, { "docid": "3b6a43fd34dc9f953449a6ba4c975d9e", "score": "0.4577956", "text": "function updateLocation($name, $distance, $id, $conn)\n {\n $sql = \"UPDATE `tbl_location` SET `name` = '$name', `distance` = '$distance' WHERE `id` = '$id' \";\n if (mysqli_query($conn, $sql)) {\n $msg = \"Location Successfully Update\";\n }\n return $msg;\n }", "title": "" }, { "docid": "f3be51175958f4e138e03f7206006145", "score": "0.457699", "text": "public abstract function update();", "title": "" }, { "docid": "f3be51175958f4e138e03f7206006145", "score": "0.457699", "text": "public abstract function update();", "title": "" }, { "docid": "d7cdfda47abd3f3276da535cea4ccc88", "score": "0.4576983", "text": "function osc_item_latitude() {\n return (float) osc_item_field(\"d_coord_lat\");\n }", "title": "" }, { "docid": "e131c1d6da6dbf4e89b6083d5361cd3c", "score": "0.45596483", "text": "public function setLatitude(float $value): Save\n {\n $this->latitude = $value;\n return $this;\n }", "title": "" }, { "docid": "f351fd5ebcdd30309412087b17ba9480", "score": "0.45539287", "text": "public function getLng();", "title": "" } ]
4125caf1fb6fbb55c884632b41aeaf88
Whether schema can be added to current page
[ { "docid": "c3c8ea0bec6cbd7890229617b9ab08a4", "score": "0.6367102", "text": "private static function can_add( $schema ) {\n\t\tif ( empty( $schema ) || empty( $schema['metadata']['displayConditions'] ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tforeach ( $schema['metadata']['displayConditions'] as $condition ) {\n\t\t\t$operator = $condition['condition'];\n\t\t\t$category = $condition['category'];\n\t\t\t$taxonomy = ! empty( $condition['postTaxonomy'] ) ? $condition['postTaxonomy'] : '';\n\t\t\t$type = $condition['type'];\n\t\t\t$value = $condition['value'];\n\n\t\t\t$method = \"can_add_{$category}\";\n\n\t\t\t// Skip if already confirmed.\n\t\t\tif ( 'include' === $operator && self::$conditions[ $category ] ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tself::$conditions[ $category ] = self::$method( $operator, $type, $value, $taxonomy );\n\t\t}\n\n\t\t// Add Schema if the only condition is \"Include / Entire Site\".\n\t\tif ( ! empty( self::$conditions['general'] ) && 1 === count( $schema['metadata']['displayConditions'] ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif ( ( is_singular() || is_admin() ) && isset( self::$conditions['singular'] ) ) {\n\t\t\treturn self::$conditions['singular'];\n\t\t}\n\n\t\tif ( ( is_archive() || is_search() ) && isset( self::$conditions['archive'] ) ) {\n\t\t\treturn self::$conditions['archive'];\n\t\t}\n\n\t\treturn ! empty( self::$conditions['general'] );\n\t}", "title": "" } ]
[ { "docid": "858c0c8341e5c2b6b9918ffcaf1761e4", "score": "0.71373874", "text": "public function hasSchema(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "8ee2d0f2d2ddffa86db0b543e53a22a6", "score": "0.6722933", "text": "public function canBuildFromSchemaFile() {\n\t}", "title": "" }, { "docid": "e104a36185f59bd4c9178536893c769e", "score": "0.66847736", "text": "public function hasBeforeSchema(){\n return $this->_has(4);\n }", "title": "" }, { "docid": "0927b3165439f4d3f70569a698f0739c", "score": "0.658419", "text": "public function hasSchemaTable();", "title": "" }, { "docid": "17f85503b4b785c67a93673368925563", "score": "0.6434305", "text": "public function supportsSchemas();", "title": "" }, { "docid": "6d7a3a921b343bedd84c48a47b790fa2", "score": "0.6320874", "text": "public function canCreateNewPages() {}", "title": "" }, { "docid": "3ed933ba0214ca9e06008ced89def5ff", "score": "0.62852067", "text": "function onCheckSchema()\n {\n // Not sure we need a new data class for ContextIO. We should be able\n // to do everything with the existing Foreign_link and Foreign_user\n // table. Maybe.\n\n return true;\n }", "title": "" }, { "docid": "435d8fc68e3b6c79220aa6d7509603c1", "score": "0.626033", "text": "public function hasSchema()\n {\n return $this->database\n && ($this->schema ?: $this->database->getSchema())\n && ($platform = $this->getPlatform())\n && $platform->supportsSchemas();\n }", "title": "" }, { "docid": "8d73e1a8610301dae11071ddeba4c838", "score": "0.62321985", "text": "public function hasAfterSchema(){\n return $this->_has(5);\n }", "title": "" }, { "docid": "311a4029b2157e30f66610d4bb01521d", "score": "0.62073475", "text": "function canCreatePage() {\n return ($this->isAdmin() || ($this->userType == 'author'));\n }", "title": "" }, { "docid": "de1f8812450e06dbc4b8b33b75dd6ed1", "score": "0.59721524", "text": "public static function isSchemaSupported($schema) {\n\t\treturn in_array($schema, array_values(self::getSchemas()));\n\t}", "title": "" }, { "docid": "f50eddfd6caa9052fe9260a1dc59a554", "score": "0.5898509", "text": "public function hasQuickCreate()\n {\n return !is_null($this->quickCreate);\n }", "title": "" }, { "docid": "42cb496106724ee0597a87dcaf5f4be0", "score": "0.57531816", "text": "private function userHasAccessToPages() {\n\t\t$configurationProxy = tx_oelib_configurationProxy::getInstance('realty');\n\n\t\t$objectsPid = $configurationProxy->getAsInteger(\n\t\t\t'pidForRealtyObjectsAndImages'\n\t\t);\n\t\t$canWriteObjectsPage = $GLOBALS['BE_USER']->doesUserHaveAccess(\n\t\t\tt3lib_BEfunc::getRecord('pages', $objectsPid), 16\n\t\t);\n\n\t\t$auxiliaryPid = $configurationProxy->getAsInteger(\n\t\t\t'pidForAuxiliaryRecords'\n\t\t);\n\t\t$canWriteAuxiliaryPage = $GLOBALS['BE_USER']->doesUserHaveAccess(\n\t\t\tt3lib_BEfunc::getRecord('pages', $auxiliaryPid), 16\n\t\t);\n\n\t\tif (!$canWriteObjectsPage) {\n\t\t\t$this->storeErrorMessage('objects_pid', $objectsPid);\n\t\t}\n\t\tif (!$canWriteAuxiliaryPage) {\n\t\t\t$this->storeErrorMessage('auxiliary_pid', $auxiliaryPid);\n\t\t}\n\n\t\treturn $canWriteObjectsPage && $canWriteAuxiliaryPage;\n\t}", "title": "" }, { "docid": "1ab067bb732fc1c3f8eecd9db03e9065", "score": "0.57146275", "text": "public function canManagePages();", "title": "" }, { "docid": "8d9c004f10063aaef63f6a11ec82d29c", "score": "0.5703779", "text": "protected function loadSchema()\n {\n return $this->hasFixturesBundles();\n }", "title": "" }, { "docid": "e6657fa4903bb6d3e54912c6db22542e", "score": "0.569849", "text": "function onCheckSchema()\n {\n $schema = Schema::get();\n $schema->ensureTable('user_yubikey',\n array(new ColumnDef('user_id', 'integer',\n null, false, 'PRI'),\n new ColumnDef('yubikey_id', 'varchar',\n '12', false, 'MUL'),\n new ColumnDef('created', 'datetime',\n null, false),\n new ColumnDef('modified', 'timestamp')));\n return true;\n }", "title": "" }, { "docid": "ed0b2a5a2770422add18e8e75c23a5ea", "score": "0.56891024", "text": "function can_do_add() {\n //try to obtain the report shortname directly from the url parameter\n //(applies only during the first step of the wizard interface)\n $report_shortname = $this->optional_param('report', '', PARAM_ALPHAEXT);\n\n //try to obtain the report shortname from the workflow information\n //(applies only after the first step of the wizard interface)\n if ($report_shortname == '' && isset($this->workflow)) {\n $data = $this->workflow->unserialize_data();\n if ($data !== NULL && isset($data['report'])) {\n $report_shortname = $data['report'];\n }\n }\n\n if ($report_shortname === '') {\n //report info not found, so disallow\n return false;\n }\n\n //check permissions via the report\n $report_instance = php_report::get_default_instance($report_shortname, NULL, php_report::EXECUTION_MODE_SCHEDULED);\n return $report_instance !== false;\n }", "title": "" }, { "docid": "a3ba3c21d599eaf64f85671aef4f5cdd", "score": "0.5686112", "text": "function kusurinotakagi_has_table_of_contents() {\n//\tif ( is_singular( 'blog' ) ) {\n//\t\treturn true;\n//\t}\n//\tif ( is_single() ) {\n//\t\treturn true;\n//\t}\n\n\treturn false;\n}", "title": "" }, { "docid": "1d841c7e08465bd6ea46521adc15db48", "score": "0.56543016", "text": "public function isValid() {\n\t\t// check if page type is valid\n\t\ttry {\n\t\t\t$this->getAttribute('uid'); // getAttribute forces the object to be read from database\n\t\t\treturn true;\n\t\t} catch (tx_newspaper_EmptyResultException $e) {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "c0f08e195aa7c2b1d225a2c5bbfc0238", "score": "0.5630426", "text": "function checkTablesIntegrity() {\n \n $sm = $this->db->getSchemaManager();\n\n $tables = $this->getTables();\n \n // Check the users table..\n if (!isset($tables[$this->prefix.\"users\"])) {\n return false; \n }\n \n \n \n // Check the taxonomy table..\n if (!isset($tables[$this->prefix.\"taxonomy\"])) {\n return false; \n }\n \n // Now, iterate over the contenttypes, and create the tables if they don't exist.\n foreach ($this->config['contenttypes'] as $key => $contenttype) {\n\n $tablename = $this->prefix . makeSlug($key);\n \n if (!isset($tables[$tablename])) {\n return false; \n }\n \n // Check if all the fields are present in the DB..\n foreach($contenttype['fields'] as $field => $values) {\n if (!isset($tables[$tablename][$field])) {\n return false;\n }\n }\n \n }\n\n \n return true; \n \n }", "title": "" }, { "docid": "5c244c4324f03aa140fc0e160a59040e", "score": "0.56179184", "text": "private function canListAndCreate()\n {\n return true;\n }", "title": "" }, { "docid": "b922027d6987a4b1e1c16f53fb8e0ca1", "score": "0.55845207", "text": "function kouka_has_table_of_contents() {\n\tif ( is_singular( 'blog' ) ) {\n\t\treturn true;\n\t}\n\n\tif ( is_single() ) {\n\t\treturn true;\n\t}\n\n\treturn false;\n}", "title": "" }, { "docid": "6ead96d5d726e6f19f32100dc143b979", "score": "0.55837846", "text": "function canCreate() {\r\n\t\treturn !DataObject::get_one($this->class);\r\n\t}", "title": "" }, { "docid": "a805465215d9ea687ad1eb95ebf59bbb", "score": "0.5573793", "text": "protected static function check_table() {\n\t\tglobal $wpdb;\n\n\t\t$storage = new WPSEO_Link_Storage();\n\t\t$query = $wpdb->prepare( 'SHOW TABLES LIKE %s', $storage->get_table_name() );\n\t\tif ( $wpdb->get_var( $query ) !== $storage->get_table_name() ) {\n\t\t\tself::set_inaccessible();\n\t\t\treturn false;\n\t\t}\n\n\t\tself::set_accessible();\n\t\treturn true;\n\t}", "title": "" }, { "docid": "aff1bc76117f24ea5e3ccce8b7fbce93", "score": "0.5553104", "text": "public function willGenerateAdd(): bool;", "title": "" }, { "docid": "89c826ea2cbd6046e52d51a7e4de6cc9", "score": "0.5546574", "text": "public function hasLayout() {}", "title": "" }, { "docid": "96b080969bb1d593734cd12da48fb24c", "score": "0.55200845", "text": "public function hasDesigns() {\n return $this->_has(1);\n }", "title": "" }, { "docid": "21f76040f1b406af6bc3b9f7374d2604", "score": "0.5519863", "text": "private function isFrontEndRequest() {\n\t\treturn ! \\is_admin();\n\t}", "title": "" }, { "docid": "c67ec3ec7a25c6507fba7df79835746a", "score": "0.5506221", "text": "public function checkDatabaseStructure( );", "title": "" }, { "docid": "a7b0a03df9fcc0611c16d8f01e3ebc49", "score": "0.55018663", "text": "protected function shouldAddPayment(): bool\r\n {\r\n return DocumentTypes::hasPayments($this->documentType);\r\n }", "title": "" }, { "docid": "6606b6f151a1dffdc8c317837e141fda", "score": "0.54860145", "text": "public function isGeneratePage() {}", "title": "" }, { "docid": "1cce2ce619c0ef50c30fcd1de527f2cd", "score": "0.54850924", "text": "private function databaseExists()\n {\n try {\n if (is_numeric(Bookmark::count()) && is_numeric(Tag::count())) {\n return true;\n }\n } catch (Exception $e) {\n return false;\n }\n\n return false;\n }", "title": "" }, { "docid": "6376fa8223dd0275192f8991ecbbfd47", "score": "0.5484804", "text": "public function isSchemeDumpAvailable()\n {\n $result = self::checkFileAccess(Registry::get('config.dir.install') . App::DB_SCHEME);\n\n if (!$result) {\n $app = App::instance();\n $app->setNotification('E', $app->t('error'), $app->t('scheme_dump_is_not_available'), true);\n }\n\n return $result;\n }", "title": "" }, { "docid": "56809a83fa3e2bd3940ad9b41a1db8af", "score": "0.5468149", "text": "public function hasOldDatabase()\n {\n if (!$this->hasTable('tl_layout')) {\n return false;\n }\n\n $sql = $this->connection\n ->getDatabasePlatform()\n ->getListTableColumnsSQL('tl_layout', $this->connection->getDatabase())\n ;\n\n $column = $this->connection->fetchAssoc($sql.\" AND COLUMN_NAME = 'sections'\");\n\n return 'varchar(1022)' !== $column['Type'];\n }", "title": "" }, { "docid": "8387111c24aae4af44a8bd4229d4fbd1", "score": "0.54658765", "text": "public static function canAddRoot()\n\t{\n\t\treturn static::restrictionCheck( 'add' );\n\t}", "title": "" }, { "docid": "5a34eb4c65af29306a31b0295d5ec74c", "score": "0.54624575", "text": "public function canAddFieldsToTCATypeAfterExistingOnes() {}", "title": "" }, { "docid": "99a29795af92d6214cbae27a942f36bb", "score": "0.54566735", "text": "function hasLayout() ;", "title": "" }, { "docid": "06dda087ceb3b8d6ac39bda326bc5a06", "score": "0.5439875", "text": "public function hasFieldsets(): bool\n {\n return File::exists($this->path().'/fieldsets');\n }", "title": "" }, { "docid": "91d7b1e18038f6347e96384d964ede61", "score": "0.54228365", "text": "public function checkPermissions() {\r\n\t\treturn $this->modx->hasPermission('edit_document');\r\n\t}", "title": "" }, { "docid": "92d94c2beb2b34069f350cf60470fafa", "score": "0.5417294", "text": "private function hooksShouldBeRegistered() {\n\t\treturn $this->isFrontEndRequest()\n\t\t\t\t&& $this->fieldGroupsAreTranslatable();\n\t}", "title": "" }, { "docid": "b4b1c144463563a26d574c3fbabaf1f7", "score": "0.54137135", "text": "private function prepareSchema()\n {\n $connection = Yii::app()->db;\n if ($connection->schema->getTable($this->table)) {\n try {\n $this->dropTableIfExist($connection, $this->tableMemory);\n $connection->createCommand('CREATE TABLE ' . $connection->quoteTableName($this->tableMemory) . ' LIKE ' . $connection->quoteTableName($this->table) . ';')->execute();\n $connection->createCommand('ALTER TABLE ' . $connection->quoteTableName($this->tableMemory) . ' ENGINE=MEMORY;')->execute();\n return true;\n } catch (Exception $e) {\n $this->dropTableIfExist($connection, $this->tableMemory);\n Yii::log('Schema preparation error: ' . print_r($e->getMessage(), true), 'error', 'extensions.CodMtfs.Mtfs');\n }\n } else {\n Yii::log('Nothing to copy.', 'error', 'extensions.CodMtfs.Mtfs');\n }\n return false;\n }", "title": "" }, { "docid": "7ba074d24eb0249c9b4a9f382b040f9f", "score": "0.54125464", "text": "function getIsPartOf()\n {\n $isPartOf = $this->getResource('schema:isPartOf');\n return $isPartOf;\n }", "title": "" }, { "docid": "0ebb835d7eae8d4ed88a8889191a9f6a", "score": "0.5411862", "text": "private function should_add_json() {\n\t\tif ( ! is_admin() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif ( is_network_admin() && Helper::is_plugin_active_for_network() ) {\n\t\t\treturn Param::get( 'page' ) === 'rank-math';\n\t\t}\n\n\t\treturn Param::get( 'page' ) === 'rank-math-status';\n\t}", "title": "" }, { "docid": "39ced0e2d855f57032d8623da63cbae2", "score": "0.54093456", "text": "public function isEmbeddedManyNew()\n {\n if (empty($this->_root)) {\n return false;\n }\n\n return false !== strpos($this->_path, '._add');\n }", "title": "" }, { "docid": "ffdcab8b638aed45376b7b8c8d667286", "score": "0.5391869", "text": "public function canAddFieldsToTCATypeBeforeExistingOnes() {}", "title": "" }, { "docid": "2ed4baa321dfb75e00b892f2348dc21d", "score": "0.5389969", "text": "protected function needImport(): bool\n {\n $out = true;\n $this->structureCont = $this->structureApi->send();\n if ($structure = OpenDataStructure::find()->one()) {\n if ($structure->num_id == $this->structureCont->data['num_id']) {\n $out = false;\n }\n }\n return $out;\n }", "title": "" }, { "docid": "0fdbe101d047b2ef8b4dd097d53116ab", "score": "0.53835315", "text": "private function should_load() {\n\t\tif ( ! current_user_can( 'manage_options' ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$theme_support = get_theme_support( 'themeisle-demo-import' );\n\n\t\tif ( empty( $theme_support ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3690dfca27ed4612aa5a0527ab8aadae", "score": "0.53737617", "text": "function importSchema(){\n\t\t\t$this->exportsSchema = false;\n\t\t}", "title": "" }, { "docid": "dea536884c533027308e4c5b736d4912", "score": "0.53596497", "text": "public function canAccessPage(){\n\n\t\t\t$nav = $this->getNavigationArray();\n\t\t\t$page = '/' . trim(getCurrentPage(), '/') . '/';\n\n\t\t\t$page_limit = 'author';\n\n\t\t\tforeach($nav as $item){\n\t\t\t\tif(General::in_array_multi($page, $item['children'])){\n\n\t\t\t\t\tif(is_array($item['children'])){\n\t\t\t\t\t\tforeach($item['children'] as $c){\n\t\t\t\t\t\t\tif($c['type'] == 'section' && $c['visible'] == 'no' && preg_match('#^' . $c['link'] . '#', $page)) {\n\t\t\t\t\t\t\t\t$page_limit = 'developer';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($c['link'] == $page && isset($c['limit'])) {\n\t\t\t\t\t\t\t\t$page_limit\t= $c['limit'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif(isset($item['limit']) && $page_limit != 'primary'){\n\t\t\t\t\t\tif($page_limit == 'author' && $item['limit'] == 'developer') $page_limit = 'developer';\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\telseif(isset($item['link']) && ($page == $item['link']) && isset($item['limit'])){\n\t\t\t\t\t$page_limit\t= $item['limit'];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif($page_limit == 'author')\n\t\t\t\treturn true;\n\n\t\t\telseif($page_limit == 'developer' && Administration::instance()->Author->isDeveloper())\n\t\t\t\treturn true;\n\n\t\t\telseif($page_limit == 'primary' && Administration::instance()->Author->isPrimaryAccount())\n\t\t\t\treturn true;\n\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "a4c2105d7383602b11e5b243d9ea5f94", "score": "0.5356143", "text": "public function hasPages();", "title": "" }, { "docid": "a4c2105d7383602b11e5b243d9ea5f94", "score": "0.5356143", "text": "public function hasPages();", "title": "" }, { "docid": "bc937c05adaaa18572a8370ba21f7df3", "score": "0.53552103", "text": "public function is_needed() {\n\t\treturn $this->context->site_represents === 'company';\n\t}", "title": "" }, { "docid": "741d44d35566a27ed2284af5a2bd3033", "score": "0.53529865", "text": "public static function canDisplayDocumentTypesMenu()\n\t{\n\t\treturn PermissionValidator::hasPermission(PermissionConstants::VIEW_DOCUMENT_TYPE);\n\t}", "title": "" }, { "docid": "87ce7c0595f05fbc9838951ca3b65cca", "score": "0.5348885", "text": "function db_check() {\n\t\tif(!is_admin() || !$this->db_option || !$this->db_version || !$this->table_schema) return false;\n\t\tglobal $wpdb;\n\t\t$current_db_version = get_option($this->db_option);\n\t\tif($this->db_version != $current_db_version) {\n\t\t\t$this->db_install_options();\n\t\t\t$this->db_install($sql);\n\t\t}\n\t}", "title": "" }, { "docid": "7c6025c0028f0656d4b491724ac651a9", "score": "0.53487444", "text": "public function hasCustomData(): bool\n {\n return (bool) $this->getConfigValue('form', false);\n }", "title": "" }, { "docid": "02c900a4a6e6d2903596a5f59975da14", "score": "0.53482866", "text": "public function can_do_add() {\n return false;\n }", "title": "" }, { "docid": "909e989079dc2495dace74ca22503cc6", "score": "0.53468436", "text": "public function can_create_feed() {\n\t\t\n\t\treturn $this->initialize_api() && $this->api->is_client_folder_set();\n\t\t\n\t}", "title": "" }, { "docid": "3157fcfc21f17cef511797985472c0dd", "score": "0.53468126", "text": "private function isEditMode(){\n\t\tif(isset($this->AddRecordInsertData) and count($this->AddRecordInsertData) > 0 )\n\t\t\treturn true;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "789838fa26dd2de0e2aa22d3052eac4e", "score": "0.5342575", "text": "public function has_documents() {\n\t\t\treturn $this->hasdocuments == 'Y' ? true : false;\n\t\t}", "title": "" }, { "docid": "745793b789eb8d0eca725f017433b84b", "score": "0.5338561", "text": "public function valid() {\n\t\tif( ! defined( 'WPV_VERSION' ) )\n\t\t\treturn false;\n\n\t\t// opposite of parent \"Views exists\"\n\t\treturn ! parent::valid();\n\t}", "title": "" }, { "docid": "a8b5e584717ee8ef663b1ec56e19cff4", "score": "0.53382146", "text": "public function is_needed() {\n\t\tif ( ( $this->context->site_represents === 'person' ) || is_author() ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "38f15ef1f18e225dc951fe53c2f3b838", "score": "0.53312916", "text": "public function is_valid_attach() {\r\n\t\tif ( ! current_user_can( 'edit_users' ) && ! $this->is_profile_page() ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "0a01b8a7c6b5edd953720cb446e87ee8", "score": "0.533079", "text": "public function hasDesigns() {\n return $this->_has(5);\n }", "title": "" }, { "docid": "2923eac09bbee29f5c1cc1240e40d26d", "score": "0.53305197", "text": "protected function tablePermissionsExists()\n {\n return Schema::hasTable('permissions');\n }", "title": "" }, { "docid": "fac56ce8d860a8eef6e3ca8ab28a7329", "score": "0.53302747", "text": "protected function canAdd()\n {\n return $this->hasStrategy(self::STRATEGY_ADD);\n }", "title": "" }, { "docid": "a96e78696f4fb6c90ff1d9194826f83d", "score": "0.5312968", "text": "function canAdd() {\r\n\t\t$user\t=& JFactory::getUser();\r\n\t\t$permission = FlexicontentHelperPerm::getPerm();\r\n\t\tif(!$permission->CanAdd) return false;\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "4c284df122bdf01be076738a9cd5b624", "score": "0.5299312", "text": "public function isDatabaseRequired()\n {\n return $this->isSomethingRequired(array(\n 'full_backup', 'database'\n ));\n }", "title": "" }, { "docid": "012aaf8152ac4d9fb074d9dd3e671720", "score": "0.52984685", "text": "function fusion_should_add_fe_edit_link() {\n\tif ( 0 === fusion_library()->get_page_id() || false === fusion_library()->get_page_id() || '0-archive' === fusion_library()->get_page_id() || is_preview_only() ) {\n\t\treturn false;\n\t}\n\n\treturn true;\n}", "title": "" }, { "docid": "2a207dd0b737eb673ded8144d861fff6", "score": "0.5285663", "text": "function checkTemplatePage()\t{\n\t\t\n\t\t// Get the record\n\t\t$template = t3lib_BEfunc::getRecord('pages', $this->templateUid);\n\n\t\tif($template['doktype'] != '71') {\n\t\t\treturn false;\t\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "5fd8efb56574999c711c428fb33eae10", "score": "0.52831316", "text": "public function getSchema()\r\n {\r\n // if existed (like post): begiresh va be view pass bede\r\n // if not (like blog,index): default schema template\r\n // include schema.view\r\n }", "title": "" }, { "docid": "b76c7523e39b69f014339be519dded92", "score": "0.528173", "text": "function amap_ma_check_if_add_tab_on_entity_page($pluginname = null) {\n $customtab = trim(elgg_get_plugin_setting('customtab', $pluginname));\n if ($customtab === AMAP_MA_GENERAL_YES) {\n return true;\n }\n\n return false;\n}", "title": "" }, { "docid": "91c0f8ead9af8375e6567ed85f540e67", "score": "0.52811676", "text": "function check_if_schema_exists($schema) {\n\t\t$sql = \"\n\t\t\tSELECT\n\t\t\t\tEXISTS(\n\t\t\t\t\tSELECT\n\t\t\t\t\t\t1\n\t\t\t\t\tFROM\n\t\t\t\t\t\tinformation_schema.schemata\n\t\t\t\t\tWHERE \n\t\t\t\t\t\tschema_name = '\" . $schema . \"'\n\t\t\t\t\tAND\n\t\t\t\t\t\tcatalog_name = '\" . POSTGRES_DBNAME . \"'\n\t\t\t\t)\n\t\t\t;\";\n\t\t$ret = $this->pgdatabase->execSQL($sql, 4, 0);\n\t\t$result = pg_fetch_row($ret[1]);\n\t\treturn ($result[0] === 't');\n\t}", "title": "" }, { "docid": "79c927a960a9a5bae1984dbd5a358f8c", "score": "0.5280281", "text": "public function create_announcement_permissions_check() {\n return current_user_can( 'manage_options' );\n }", "title": "" }, { "docid": "d683ed66431dd8b3c44fc1c3038a166a", "score": "0.5275059", "text": "public function hasAdministrativeDatabases() {\n return $this->_has(9);\n }", "title": "" }, { "docid": "44b6d2c4b463881565ca029957aacddb", "score": "0.5271992", "text": "public static function isAllowedWrite(): bool\n {\n if (!isset(self::$definition)) {\n self::$definition = Splash::object(\"Order\")->description();\n }\n if (is_array(self::$definition) && !empty(self::$definition[\"allow_push_updated\"])) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "484b9703c6976683fb783dc421833d2d", "score": "0.52621126", "text": "static function is_requested()\n {\n $retval = FALSE;\n if (self::is_requested_page()) {\n $retval = self::is_requested_page();\n } elseif (self::is_requested_post_type()) {\n $retval = self::is_requested_post_type();\n }\n return apply_filters('is_ngg_admin_page', $retval);\n }", "title": "" }, { "docid": "573299cfd26f1d25d793037a764e6059", "score": "0.5259254", "text": "public function canCreate();", "title": "" }, { "docid": "573299cfd26f1d25d793037a764e6059", "score": "0.5259254", "text": "public function canCreate();", "title": "" }, { "docid": "9d337110b1b91f34c6dcd78f219e05b7", "score": "0.5258224", "text": "public function isFreshInstallation()\n {\n if (!$this->hasTable('tl_module')) {\n return true;\n }\n\n $statement = $this->connection->query('SELECT COUNT(*) AS count FROM tl_page');\n\n return $statement->fetch(\\PDO::FETCH_OBJ)->count < 1;\n }", "title": "" }, { "docid": "ca434c508a8a78433cabdce82b796231", "score": "0.52557725", "text": "public function hasAppType()\n {\n return $this->app_type !== null;\n }", "title": "" }, { "docid": "f7c322251ccaab6fe8b0bb1823248fc7", "score": "0.525339", "text": "private function createSchema(): bool\n {\n try {\n $dsn = \"mysql:host={$this->host}:{$this->port};\";\n $this->PDO = new PDO($dsn, $this->user, $this->password);\n $schema = file_get_contents('../schema.sql');\n $this->queryExecute($schema);\n\n return $this->queryExecute('USE `mosylechallenge`;');\n } catch (Throwable $e) {\n throw new Exception(\"Database connection failed: '{$e->getMessage()}'\", 500);\n }\n }", "title": "" }, { "docid": "132473bd2b46069901124e16a07e1b79", "score": "0.5252917", "text": "public function create(): bool\n {\n return $this->isAllowed(self::CREATE);\n }", "title": "" }, { "docid": "3a7740fc636051a3f9e30e5e695b5ec5", "score": "0.5243583", "text": "static function verify()\n {\n global $pommo;\n $dbo = & Pommo::$_dbo;\n if (is_object($dbo))\n {\n $query = \"SHOW TABLES LIKE '%s'\";\n $query = $dbo->prepare($query, array($dbo->_prefix.'%'));\n if ($dbo->records($query) > 10)\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "4e9be3869da1721f59e1eb21feffa816", "score": "0.52431446", "text": "public function canAddFieldsToPaletteAfterNotExistingOnes() {}", "title": "" }, { "docid": "84cc49f88e233db4cb7416d7b377683f", "score": "0.5242232", "text": "public function canAddFieldsToPaletteBeforeExistingOnes() {}", "title": "" }, { "docid": "a2e865d5a77433dcf7081525198813d4", "score": "0.5240416", "text": "function portfolio_web_is_edit_page() {\r\n\t//make sure we are on the backend\r\n\tif ( !is_admin() ){\r\n\t\treturn false;\r\n\t}\r\n\tglobal $pagenow;\r\n\treturn in_array( $pagenow, array( 'post.php', 'post-new.php' ) );\r\n}", "title": "" }, { "docid": "9e76f6781f1d74dc7f544622c8684a4c", "score": "0.5232085", "text": "protected function out()\n {\n if (!$this->connection->isTableExists($this->resource->getTableName('mageworx_option_dependency'))) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "248c8f8f142f5aa2b93c7a32e4c38402", "score": "0.5226613", "text": "public function isCreate(){\n\t\treturn isset($this->{$this->getPrimaryKey()}) ? false : true;\n\t}", "title": "" }, { "docid": "de310dddb04e548b381daaaa3aecc19a", "score": "0.5217768", "text": "private function isDynamicPage()\n\t{\n\t\tif ( isset( $this->request['directories'] ) === true && count( $this->request['directories'] ) > 0 )\n\t\t{\n\t\t\t/**\n\t\t\t * Check if either the base directory is a store or a call to a file in the apps folder\n\t\t\t * or if it is the base directory for a blog (meaning the base directory is also a file in published data)\n\t\t\t */\n\t\t\tif ( $this->isDynamicRoute( $this->request['directories'][0] ) ||\n\t\t\t\t( is_numeric( $this->request['directories'][0] ) === true )\n\t\t\t)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "78aca06fc0bac4507870a9909c329a46", "score": "0.52170813", "text": "public function canStoreComponents();", "title": "" }, { "docid": "de05772910dd22768ea61bcc163a63f3", "score": "0.52156997", "text": "private function hasAccess() {\n\t\tif ($GLOBALS['BE_USER']->isAdmin()) {\n\t\t\treturn TRUE;\n\t\t}\n\n\t\treturn $this->userHasAccessToPages() && $this->userHasAccessToTables();\n\t}", "title": "" }, { "docid": "2587fa366157e1393097a7154eb1f067", "score": "0.52091676", "text": "public function authorizable(): bool\n {\n return false;\n }", "title": "" }, { "docid": "9b42eb65caab91f094b3c5e9c650a3c4", "score": "0.5207984", "text": "public function needForm()\n {\n return true;\n }", "title": "" }, { "docid": "542098fcdf602348c1679118d1764461", "score": "0.5200803", "text": "public function isPreview()\n {\n return !$this->exists();\n }", "title": "" }, { "docid": "a0dad3dc4dfeccf82db35738b481b7b9", "score": "0.519751", "text": "protected function getAddRootObjectForCollection(): bool\n {\n return (bool)$this->objectManager->getConfigurationProvider()->getSetting('addRootObjectForCollection');\n }", "title": "" }, { "docid": "b031a43c117c01527300e455ee86eea6", "score": "0.5190378", "text": "public function canAdd()\n {\n return $this->options->getOption(\"canAdd\");\n }", "title": "" }, { "docid": "613d16c6733cc87168430243056a3d3d", "score": "0.5189012", "text": "public function is_needed() {\n\t\treturn is_singular( PostType::get_instance()->get_post_type() );\n\t}", "title": "" }, { "docid": "b65832fdb1dbce0d94fa6ef0b41a341d", "score": "0.5188778", "text": "public function canAddFieldsToPaletteAfterExistingOnes() {}", "title": "" }, { "docid": "a1749a22951ac502f2b4aed17288b7b7", "score": "0.5185879", "text": "private function validateInsert() {\n\t\t$this->context->checkPermission(\\Scrivo\\AccessController::WRITE_ACCESS);\n\t\t// application id not 0\n\t}", "title": "" }, { "docid": "ccb0e551774f6acf16e4bbe5fd8d75d3", "score": "0.51788366", "text": "public function checkNewPostLayoutContent(){\n\t\t\n\t\t$this->validateInited();\n\t\t\t\t\n\t\t//check meta data\n\t\tif(!empty($this->metaData))\n\t\t\treturn(false);\n\t\t\n\t\t//get post content\n\t\t$postContent = $this->post->post_content;\n\t\t$postContent = trim($postContent);\n\t\t\n\t\tif(empty($postContent))\n\t\t\treturn(false);\n\t\t\t\n\t\t//generate addon data\n\t\t$arrAddonContent = $this->generateHtmlAddonContentForLayout($postContent);\n\t\tif(empty($arrAddonContent))\n\t\t\treturn(false);\n\t\t\n\t\t//add row to empty layout with the addon data\n\t\t$this->addRowWithHtmlAddon($arrAddonContent);\n\t\t\n\t}", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "b892cf771adb1dd497ee420c8120bed2", "score": "0.0", "text": "public function show(StudentGroup $studentGroup)\n {\n //\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "c8985097bcf4925e7728ae219257fd22", "score": "0.7436983", "text": "public function show(Resource $resource)\n {\n //\n return view('resources.show', compact('resource'));\n }", "title": "" }, { "docid": "2be2e33b028463d829f3ad558d64a222", "score": "0.69994664", "text": "public function showResponse($resource)\n {\n return $this->sendResource(Response::HTTP_OK, $this->getMessage('show'), $resource);\n }", "title": "" }, { "docid": "06f46038d7d48cf182d18bc5edbfc5da", "score": "0.6790781", "text": "public function viewResourceAction() {\n \t$idRole = intval($this->request->get('idRole'));\n \tif(empty($idRole)) {\n \t\t$this->flashSession->error($this->_(\"idRole is invalid\"));\n \t\treturn $this->redirect('index');\n \t}\n \t\n \t$role = AclRole::findFirst($idRole);\n \tif(empty($role)) {\n \t\t$this->flashSession->error($this->_(\"Role is null\"));\n \t\treturn $this->redirect('index');\n \t}\n \t\n \t$this->pageTitle = $this->_(\"Resources of: \". $role->name);\n \t\n \t$grid = new AclRoleResourceGrid('RoleResource', $idRole);\n \t$grid->run();\n \t$this->view->setVars(array(\n \t\t\t'grid' => $grid,\n \t\t\t'idRole' => $idRole\n \t));\n }", "title": "" }, { "docid": "a94412ebc56a8b9c8b86edf47e219db0", "score": "0.6742745", "text": "function display($resource_name = NULL, $cache_id = null, $compile_id = null, $parent_NEW = null)\n {\n //parent::fetch($resource_name, $cache_id, $compile_id, null, true);\n $this->assign(\"ekv_resource_name\", $resource_name);\n parent::display($resource_name, $cache_id, $compile_id, $parent_NEW);\n }", "title": "" }, { "docid": "70779c6e695ace5c3b533f7cdb8ab654", "score": "0.6645966", "text": "public function show($id)\n\t{\n\t\t$res = Resource::find($id);\n\t\treturn view('admin.resource.show')->withResource($res);\n\t}", "title": "" }, { "docid": "2f1ee001008252acd3fc8ca44e10c7ef", "score": "0.6579253", "text": "public function resolveForDisplay($resource, $attribute = null)\n {\n }", "title": "" }, { "docid": "24a493f88aace02c9d9e0c9868203a87", "score": "0.6480713", "text": "public function show($id)\n\t{\n\t\t$resource = Resource::findOrFail($id);\n\t\treturn view('admin.resources.show', compact('resource'));\n\t}", "title": "" }, { "docid": "6299a7038c61853b945c92febd2b2e95", "score": "0.6455255", "text": "public function show()\n\t{\n\t\t$this->display('show');\n\t}", "title": "" }, { "docid": "52cf037df527a27f63b97a9bf996fa6f", "score": "0.6444057", "text": "public function showAction(Request $request, $id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('VMBResourceBundle:Resource')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Resource entity.');\n }\n \n\t\t$official = ($request->query->get('official') == 1) ? true : 'all';\n\t\t$personal = ($request->query->get('personal') == 1);\n\t\t$search = $request->query->get('search');\n\t\t$topic = $request->query->get('topic');\n\t\tif($topic != null) {\n\t\t\t$topic = $em->getRepository('VMBPresentationBundle:Topic')->find($topic);\n\t\t}\n\t\t\n\t\t$prev = $next = null;\n\t\t$position = intval($request->query->get('position'));\n\t\tif($position > 0) {\n\t\t\tif($position > 1) {\n\t\t\t\t$prev = $em->getRepository('VMBResourceBundle:Resource')->getResources($position - 1, 1, $topic, $official, ($personal ? $this->getUser() : null), $search);\n\t\t\t}\n\t\t\t$next = $em->getRepository('VMBResourceBundle:Resource')->getResources($position + 1, 1, $topic, $official, ($personal ? $this->getUser() : null), $search);\n\t\t}\n\t\t$rend_args = array(\n 'entity' => $entity,\n 'mainTitle' => $entity->getTitle(),\n 'editButtonUrl' => $this->generateUrl('resource_edit', array('id' => $id)),\n 'backButtonUrl' => $this->get('vmb_presentation.previous_url')->getPreviousUrl($request),\n 'saveToCaddy' => 'resource',\n 'inCaddy' => $this->getUser()->resourceIsInCaddy($entity),\n 'hasPlaybackFunction' => true,\n 'prev' => $prev,\n 'next' => $next,\n 'position' => $position);\n\n\t\t$typ = $entity->getType(); \n\t\tif($typ == 'text' || $typ == 'image'){\n\t\t\t$rend_args['exportAssetUrl'] = $entity->getResourcePath();\n\t\t}\n\n return $this->render('VMBResourceBundle:Resource:show.html.twig', $rend_args\n );\n }", "title": "" }, { "docid": "8bc888f15a301ee0d4c90637d0ad33da", "score": "0.64228344", "text": "public function show(Resource $resource): View\n {\n $resource->load([\n 'activities.causer:id,name' => function ($query) {\n $query->oldest();\n },\n ]);\n\n return view('resources.show')->with('resource', $resource);\n }", "title": "" }, { "docid": "c95c378ad1f1707c12f0b8d8a8d8233a", "score": "0.6391138", "text": "public function displayAction()\n {\n $type = $this->params('type', '');\n $uid = $this->params('uid', '');\n $data = array();\n\n switch (strtolower($type)) {\n case 'register':\n $title = __('Register Activation');\n $data['uid'] = $uid;\n break;\n default:\n return $this->jumpTo404('Required resource is not found');\n }\n\n $this->view()->assign(array(\n 'type' => $type,\n 'title' => $title,\n 'data' => $data,\n ));\n }", "title": "" }, { "docid": "e154b7665e505aad324ddb7cf7317913", "score": "0.6275971", "text": "public function show(Resource $resource)\n {\n $now = new \\DateTime('now');\n $reservations = $resource->reservationsIn($now->format('m'));\n\n\n $event_list = [];\n foreach ($reservations as $key => $reservation) {\n $event_list[] = Calendar::event(\n $reservation->user->name,\n false,\n new \\DateTime($reservation->start_time),\n new \\DateTime($reservation->end_time),\n null\n );\n }\n\n\n $calendar_details = Calendar::addEvents($event_list);\n\n return view('GeneralViews.ResourcesViews.view', compact('resource', 'reservations', 'calendar_details'));\n }", "title": "" }, { "docid": "eff9ec7980076b0e265db437d0eb54fc", "score": "0.6211072", "text": "public function displayAction() {\n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n );\n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams());\n\n // test if input is valid\n // retrieve requested record\n // attach to view\n if ($input->isValid()) {\n\n $q = Doctrine_Query::create()\n ->from('Tripjacks_Model_Info i')\n ->where('i.infoid = ?', $input->id);\n $result = $q->fetchArray();\n\n\n if (count($result) == 1) {\n $this->view->info = $result[0];\n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404);\n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input');\n }\n }", "title": "" }, { "docid": "2eccd420459e21b72d8ac89abaad92f7", "score": "0.6102424", "text": "public function show($id)\n {\n $resource = Resource::find($id);\n\n return view('resource.show', compact('resource'));\n }", "title": "" }, { "docid": "d4fc50ff2fe29ccb40447e93ee5dafea", "score": "0.6099861", "text": "public function show(ResourceFile $resourcefile)\n {\n return $resourcefile;\n }", "title": "" }, { "docid": "357ac69da20938e9aa830ac9a6c2dcdf", "score": "0.6059893", "text": "public function show($id)\n\t{\n\t\tif (!$this->api) return view('resources.show');\n\t\t$resource = Resource::with('translations', 'links', 'organization.translations')->find($id);\n\n\t\treturn $this->reply(fractal()->item($resource)->transformWith(new ResourcesTransformer()));\n\t}", "title": "" }, { "docid": "dd595e2401a651c870eaf18d7e9760a3", "score": "0.60493153", "text": "public function edit(Resource $resource)\n {\n //\n return view('resources.edit', compact('resource'));\n }", "title": "" }, { "docid": "dca0890d7f2fa9cf58976e540c377c87", "score": "0.6048981", "text": "public function displayAction()\n {\n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n ); \n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams()); \n \n // test if input is valid\n // retrieve requested record\n // attach to view\n if ($input->isValid()) {\n $q = Doctrine_Query::create()\n ->from('Tripjacks_Model_Main m')\n ->where('m.mainid = ?', $input->id);\n\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->main = $result[0]; \n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404); \n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input'); \n }\n }", "title": "" }, { "docid": "3cb8c14bbdae8dbf60fa13c36bdc635e", "score": "0.6045665", "text": "public function displayAction()\n {\n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n ); \n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams());\n\n // test if input is valid\n // retrieve requested record\n // attach to view\n if ($input->isValid()) {\n $q = Doctrine_Query::create()\n ->from('Tripjacks_Model_Player p')\n ->where('p.playerid = ?', $input->id);\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->user_info= $result[0]; \n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404); \n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input'); \n }\n }", "title": "" }, { "docid": "9cce40711cb8c9d6f267f8a6c80ef284", "score": "0.60362315", "text": "public function showAction()\n {\n $photo = Photo::findById($this->route_params['id']);\n View::render('Photos/show.html.twig', ['photo' => $photo]);\n }", "title": "" }, { "docid": "5c22086562e6ef1114becad746f7e5bc", "score": "0.6027262", "text": "public function display() {\n\t\tif(isset($this->template)) {\n\t\t\t\\httprequest\\request::includepage($this->template, $this->data);\n\t\t}\n\t}", "title": "" }, { "docid": "c3803fff905d316392a4c6647bee0c1e", "score": "0.6006611", "text": "public function show($id)\n {\n /* Check if logged user is authorized to view resources */\n $this->authorize('view', [$this->model, $id]);\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Displays the specified resource page */\n return view('admin.' . $this->name . '.show')\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "title": "" }, { "docid": "4699678dcf8e1179c0197353cd91326b", "score": "0.5996761", "text": "public function edit(Resource $resource)\n {\n /* dd($resource); */\n return view('resource.edit' , compact('resource'));\n }", "title": "" }, { "docid": "ae23d75d023c0002ab4f3c08bd35003e", "score": "0.598104", "text": "function display()\r\n\t\t{\r\n\t\t\techo $this->get();\r\n\t\t}", "title": "" }, { "docid": "3eb4767e2aa80380caab65bad4b694b3", "score": "0.5977898", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('AppBundle:Rio')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Rio entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('AppBundle:Rio:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "095acd4bfd018fc9654389112444b778", "score": "0.5974061", "text": "public function get($resource, $id);", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5954321", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "12f7159ffd60dd85817fce0dc957727b", "score": "0.5945383", "text": "public function show($id)\n {\n $resource = Resource::find($id);\n\n $view_data = [\n 'resource' => $resource,\n ];\n\n return view('resource.show', $view_data);\n }", "title": "" }, { "docid": "899d8520a922358d52a57df80a573629", "score": "0.5932012", "text": "public function show($id)\n {\n return view('visitor.resources.show', [\n 'resource' => $this->resourceService->retrieve($id)\n ]);\n }", "title": "" }, { "docid": "bb2e29f5f05ab065358c99c7225d6dc0", "score": "0.59295714", "text": "public function show(rc $rc)\n {\n //\n }", "title": "" }, { "docid": "521678534e38ace8f31ee2c7c31109ce", "score": "0.5921381", "text": "public function editResource(Resource $resource)\n {\n if ($resource->type == 'CLASSROOM') {\n $types = ResourceType::where('type', 'CLASSROOM')->get();\n $rcharacteristics = Characteristic::where('type', 'CLASSROOM')->get();\n return view('SpecificViews.Admin.Resource.edit', compact('types', 'rcharacteristics', 'resource'));\n } else {\n $rcharacteristics = Characteristic::where('type', 'INSTRUMENT')->get();\n $types = ResourceType::where('type', 'INSTRUMENT')->get();\n return view('SpecificViews.Admin.Resource.edit', compact('types', 'rcharacteristics', 'resource'));\n }\n\n }", "title": "" }, { "docid": "bcb977896a739f96ffa1ee77c63f7425", "score": "0.5882477", "text": "public function view($id) {\n return $this->get(self::RESOURCE_BASE . \"/$id\"); \n }", "title": "" }, { "docid": "85ba0fc4060f5c163e861d508048ba63", "score": "0.58799505", "text": "function show(){\n\t\t$this->render(\"show\");\n\t}", "title": "" }, { "docid": "6bd8f8db3e80e5caf1e6d908931a7ed8", "score": "0.58641636", "text": "public function show()\n {\n $this->api->showImage();\n }", "title": "" }, { "docid": "7da450b6668a2933f5d4b964d20aceb6", "score": "0.58210504", "text": "public function actionShow()\n {\n return $this->render('show');\n }", "title": "" }, { "docid": "d6af1b1d4946c54112fc9b7ca038cb20", "score": "0.58112013", "text": "public function display()\n\t{\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "69f75cee35bd031e6f2e92ddebba0c83", "score": "0.5805522", "text": "public function open(Resource $resource);", "title": "" }, { "docid": "2eba268133f89808c76c1ce885d900d0", "score": "0.5801889", "text": "public function showAction()\n {\n $id = (int) $this->param('id');\n $propertyId = (int) $this->param($this->view->translate('propertyId'));\n $picture = $this->service->retrievePictureByIdAndPropertyId($id, $propertyId);\n if (!$picture) {\n $this->flash('error')->addMessage('picture.not.found');\n $this->redirectToRoute(\n 'list',\n [$this->view->translate('page') => 1]\n );\n } else {\n $this->view->picture = $picture;\n $this->view->propertyId = $propertyId;\n }\n }", "title": "" }, { "docid": "305f64db85d64f68019d2fadcd0a85d2", "score": "0.58012545", "text": "public function show()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "9fb145e59d646ec786be543f7cd0c2f1", "score": "0.5796356", "text": "public function displayTask()\n\t{\n\t\t// Incoming directory (this should be a path built from a resource ID and its creation year/month)\n\t\t$resource = Request::getInt('resource', 0);\n\n\t\tif (!$resource)\n\t\t{\n\t\t\techo '<p class=\"error\">' . Lang::txt('No resource ID provided.') . '</p>';\n\t\t\treturn;\n\t\t}\n\n\t\t$row = Entry::oneOrFail($resource);\n\n\t\t// Incoming sub-directory\n\t\t$subdir = Request::getString('subdir', '');\n\n\t\t// Allow for temp resource uploads\n\t\tif (!$row->get('created') || $row->get('created') == '0000-00-00 00:00:00')\n\t\t{\n\t\t\t$row->set('created', Date::format('Y-m-d 00:00:00'));\n\t\t}\n\n\t\t$path = $row->filespace() . DS . 'media';\n\n\t\t$folders = array();\n\t\t$docs = array();\n\n\t\tif (is_dir($path))\n\t\t{\n\t\t\t// Loop through all files and separate them into arrays of images, folders, and other\n\t\t\t$dirIterator = new \\DirectoryIterator($path);\n\n\t\t\tforeach ($dirIterator as $file)\n\t\t\t{\n\t\t\t\tif ($file->isDot())\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$name = $file->getFilename();\n\n\t\t\t\tif ($file->isDir())\n\t\t\t\t{\n\t\t\t\t\t$folders[$path . DS . $name] = $name;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif ($file->isFile())\n\t\t\t\t{\n\t\t\t\t\tif (('cvs' == strtolower($name))\n\t\t\t\t\t || ('.svn' == strtolower($name)))\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t$docs[$path . DS . $name] = $name;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tksort($folders);\n\t\t\tksort($docs);\n\t\t}\n\n\t\t$this->view\n\t\t\t->set('resource', $resource)\n\t\t\t->set('row', $row)\n\t\t\t->set('subdir', $subdir)\n\t\t\t->set('path', $path)\n\t\t\t->set('docs', $docs)\n\t\t\t->set('folders', $folders)\n\t\t\t->setErrors($this->getErrors())\n\t\t\t->setLayout('display')\n\t\t\t->display();\n\t}", "title": "" }, { "docid": "04e64116f27859f875629d6268d95953", "score": "0.5784402", "text": "public function show($id)\n {\n $instance = $this->getRepository()->find($id);\n\n $this->addBreadcrumb($instance, 'show');\n $this->authorize('view', $instance);\n\n return $this->view('show')\n ->with('type', $this->resourceType)\n ->with('instance', $instance);\n }", "title": "" }, { "docid": "59b26eccbeb80415b27d312ada1ffed8", "score": "0.5781528", "text": "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "title": "" }, { "docid": "765678d75db620af12e826ffe74dec55", "score": "0.57683015", "text": "public function display()\n {\n parent::display();\n }", "title": "" }, { "docid": "9af2cfa61b52fe58f98d0f97a39ef817", "score": "0.5754341", "text": "public function display()\n {\n $this->component->display();\n }", "title": "" }, { "docid": "4898c94933e2ace69aa1f6e40d88637c", "score": "0.57537615", "text": "public function show(RestRequestInterface $request, string $identifier);", "title": "" }, { "docid": "e7bae91f4e998eac5e73657c932c48d7", "score": "0.5752467", "text": "public function show($id) {\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "e3b51ebfe04703c114ab39fc729ba43b", "score": "0.5749091", "text": "public function show(Entry $entry)\n {\n //\n }", "title": "" }, { "docid": "e7aba3353509209c795adfc8ada3dbba", "score": "0.5747122", "text": "protected function showAction()\n {\n $id = $this->request->query->get('id');\n if (!$item = $this->em->getRepository($this->entity['class'])->find($id)) {\n throw $this->createNotFoundException(sprintf('Unable to find entity (%s #%d).', $this->entity['name'], $id));\n }\n\n $fields = $this->entity['show']['fields'];\n $deleteForm = $this->createDeleteForm($this->entity['name'], $id);\n\n return $this->render('@EasyAdmin/show.html.twig', array(\n 'item' => $item,\n 'fields' => $fields,\n 'view' => 'show',\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "8f15cdd2f287675d36c7b7df028043ec", "score": "0.5736634", "text": "public function show($id)\n\t{\n\t//\n\t}", "title": "" }, { "docid": "8f15cdd2f287675d36c7b7df028043ec", "score": "0.5736634", "text": "public function show($id)\n\t{\n\t//\n\t}", "title": "" }, { "docid": "fd520119113e4b5bb0cfabb16e87eaf7", "score": "0.57244605", "text": "private static function DisplayResourceBase($resources)\n {\n echo \"<div class='row'>\";\n\n #Variable declaration\n $res_name = $res_file_type = $res_file_link = $res_description = \"\";\n $res_id = 0;#resource id;\n\n #Loop through each resource item\n foreach($resources as $res_found):\n #Variable init\n $res_id = $res_found[\"resource_id\"];\n $res_name = $res_found['resource_name'];\n $res_file_type = $res_found['file_type'];\n $res_file_link = $res_found[\"file_link\"];\n $res_description = $res_found['description'];\n\n //Loop through each resource and add the html below\n?>\n <div class=\"col s12 m6 l4\">\n <div class=\"card white res_container\" data-res-id=\"<?php echo $res_id?>\">\n <div class=\"card-content\">\n <span class=\"card-title truncate\" title=\"<?php echo $res_name;?>\"><?php echo $res_name;?></span>\n <div class=\"resource-details-container\">\n <p><span class=\"grey-text\">Description: </span> <?php echo empty($res_description) ? '<span class=\"grey-text\">Not written</span>' : $res_description; ?></p>\n </div>\n <h6 class=\"grey-text uppercase text-lighten-2 \"><?php echo explode(\".\",explode(\"/\",$res_found['file_type'])\n [count(explode(\"/\",$res_found['file_type'])) - 1]\n )[count(explode(\".\",explode(\"/\",$res_found['file_type'])\n [count(explode(\"/\",$res_found['file_type'])) - 1]\n )) - 1]; ?></h6>\n </div>\n <div class=\"card-action\">\n <!--TODO: Make this display the file regardless of type in a new tab-->\n <a class=\"\" href=\"<?php echo $res_file_link; ?>\" target=\"_blank\">OPEN</a>\n\n<!-- <a class=\"btn btn-flat right viewResourceDetails\" href=\"javascript:void(0)\">DETAILS</a>-->\n </div>\n </div>\n </div> \n<?php \n endforeach; #end foreach($resources as $resource_found)\n echo \"</div>\";#close row\n }", "title": "" }, { "docid": "5bdab5e82bdae8704b426d50a0c819ca", "score": "0.5723754", "text": "public function show()\n {\n return route($this->route().'.show', $this->parameters());\n }", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "b5e7179ea7c94add1c1af50e9f9b7fdd", "score": "0.57208323", "text": "public function show($id)\n\t{\n\t\n\t}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "c9c0812c7f53687f586de3cff87efe45", "score": "0.57175046", "text": "public function show(Human $human)\n {\n //\n }", "title": "" }, { "docid": "f2d9ca8da2ec54369857c7069cea0429", "score": "0.57117283", "text": "public function show()\n\t{\n\t}", "title": "" }, { "docid": "f8b0001b7f866699434e6efd5bb1c552", "score": "0.5703033", "text": "public function show()\n {\n if (Auth::user()){\n return new UserDetailsResource(Auth::user());\n }\n \n return [\n 'error_type' => 'URLNotAllowed',\n 'error_message' => 'You are not allowed on this page!'\n ];\n }", "title": "" }, { "docid": "e4a89f706eb5e843d96f3664b44e5847", "score": "0.57028013", "text": "public function display() \n {\n $content = $this->getContent();\n echo $content;\n }", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "d936662ad1c81979476df2e0767c5e19", "score": "0.5699578", "text": "public function show($id)\n\t{\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "3fafbb0ed6199e00843d744b099c53fb", "score": "0.56941324", "text": "public function display()\n {\n echo $this->getContent();\n }", "title": "" }, { "docid": "2204f8d554d9525d60e0aba235700bfd", "score": "0.56858474", "text": "public function locate($resource);", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" } ]
59f65551e88445b78ad49c53cdf0cbff
show all my comments
[ { "docid": "4b48d7f2b2176a8b625988d646d78413", "score": "0.0", "text": "public function index()\n {\n $myLikes = PostLike::select(\"SELECT * FROM post_likes WHERE user_id = ?\", [$_SESSION['auth']]); \n $posts = Post::select(\"SELECT * FROM posts \");\n $categories = Category::getAll();\n $comments = Comment::getAll();\n $postPhotos = PostPhoto::getAll();\n $likes = PostLike::getAll();\n $bookmarks = Bookmark::getAll();\n $writers = User::getAll();\n $user = User::select(\"SELECT * FROM users WHERE id = ?\", [$_SESSION['auth']]);\n\n $data = $this->transformer->transformLikesPost($categories, $comments, $posts, $writers, $myLikes, $postPhotos, $likes, $bookmarks);\n\n return $this->view->render('mylikes', 'profile-main', [\n 'info' => $data,\n 'user' => $user\n ]);\n }", "title": "" } ]
[ { "docid": "b51f8191c01897add63fe17b96261e46", "score": "0.76819175", "text": "function comments() {\n\t\t$data['module'] = 'blog';\n\t\t$data['view_file'] = 'admin/comments';\n\t\t$data['modal'] = true;\n\t\t$data['model'] = 'comment';\n\t\t$data['comments'] = $this->comment->select();\n\t\techo Modules::run('templates/Templates/admin', $data);\n\t}", "title": "" }, { "docid": "dfb07ae2a2b34c9487a1206f1f9b9c85", "score": "0.7411952", "text": "public function getallComment()\n\t{\n\t\t# code...\n\t}", "title": "" }, { "docid": "acaf971ccaea9ab3d4ffd3b8b3a319a1", "score": "0.7338462", "text": "public function show(Comments $comments)\n {\n //\n }", "title": "" }, { "docid": "a95f68c49a97bea7a0e13bab75064f59", "score": "0.73258406", "text": "public function show(comments $comments)\n {\n //\n }", "title": "" }, { "docid": "369a996ad5b8d64acd899ec8b795f7c2", "score": "0.7213206", "text": "public function index()\n\t{\n\t\t$commnets = Comment::all();\n\t}", "title": "" }, { "docid": "2697be15d32f7bd71f6efcda283ec74d", "score": "0.71615076", "text": "function getComments(){\n $comments = $this->commentManager->getAllComments();\n require 'views/back/comments.php';\n }", "title": "" }, { "docid": "763ae551e75c2d538f8dc033e2896068", "score": "0.7139109", "text": "public function index() {\n $comments = $this->Comment->comAlert();\n $allComments = $this->Comment->last();\n $this->render('admin.comments.index', compact('comments', 'allComments'));\n }", "title": "" }, { "docid": "d811f6cc7b88df3857c4729de8f764de", "score": "0.7023542", "text": "public function show()\n {\n $comments = Comments::FullComments(); //вот здесь и пригодился static метод\n return view('admin.comments.show', ['comments' => $comments]);\n }", "title": "" }, { "docid": "5f878142073628b150af0ffba8ecef5a", "score": "0.702088", "text": "public function index()\n {\n //\n $comments = Comment::all();\n return $this->showAll($comments);\n\n }", "title": "" }, { "docid": "1830b97ae0e7f3bfa1cd4c6275522b0f", "score": "0.70109296", "text": "public function displayAllComments() {\n $commentString = \"\";\n $commentSql = \"SELECT comment\n FROM survey_commented sc,\n student s\n WHERE sc.title_short = ?\n AND sc.matnr = s.matnr\n AND s.course_short = ?\";\n $commentStmt = mysqli_stmt_init(database_connect());\n\n if (!mysqli_stmt_prepare($commentStmt, $commentSql)) {\n echo \"commentSQL statement fehlgeschlagen. Versuchen Sie es später erneut.\";\n } else {\n mysqli_stmt_bind_param($commentStmt, \"ss\", $this->title_short, $this->course_short);\n if (mysqli_stmt_execute($commentStmt)) {\n $commentResult = $commentStmt->get_result();\n while ($comment = $commentResult->fetch_assoc()) {\n if (!$commentString == \"\") {\n $commentString = $commentString . \" <br> \" . $comment[\"comment\"];\n } else {\n $commentString = $comment[\"comment\"];\n }\n }\n $commentStmt->close();\n }\n }\n return $commentString;\n }", "title": "" }, { "docid": "cec611d90d776a851ff4cf6ebe2eab64", "score": "0.696534", "text": "public function getComments();", "title": "" }, { "docid": "bca9ebf7b24f6609c4b268deded28ef0", "score": "0.69238144", "text": "public function indexAction() {\n $this->setCommentsView();\n }", "title": "" }, { "docid": "100661e50682e15db747b75fdbd9b821", "score": "0.69184", "text": "public function index()\n {\n // Grab all the comment posts\n $comments = $this->commentRepository->getAll();\n\n // Show the page\n $this->render('admin.comments.index', compact('comments'));\n }", "title": "" }, { "docid": "97efe547382c578529be2b6394aa4af8", "score": "0.6911089", "text": "public function index()\n {\n //\n $data= Comments::with(['user'])->orderBy('id','desc')->get();\n return view('admin.comment.allcomment',compact(['data']));\n }", "title": "" }, { "docid": "bd7c9da90c0906064278161e7de7ae99", "score": "0.69025725", "text": "public function index()\n {\n $page_count = Settings::getValue('admin_pagination');\n $comments = Comment::orderBy('time','DESC')->paginate($page_count);\n return view('backend.comment.index',compact('comments'));\n }", "title": "" }, { "docid": "58a8e749f8969a2add3b25b8fd210b03", "score": "0.68761593", "text": "public function index()\n {\n\t\t$comments = UmdComment::where('comment_approved', 0)->get();\n\t\treturn view('admin.comments', compact(\"comments\"));\n }", "title": "" }, { "docid": "058e3c019df695af902a7a87f65061dd", "score": "0.68637085", "text": "public function index()\n {\n $comments = Comment::with(['article:id,title', 'user:id,name'])->latest()->paginate(30);\n return view('comments.index')->with('comments', $comments);\n }", "title": "" }, { "docid": "acd89a3ae62b9a31be3d4db42f57038a", "score": "0.68468255", "text": "public function index()\n {\n\n \t$comments= $this->blogCommentRepository->getAllPostComments(6);\n\n \treturn view('admin.blog.comments', compact('comments'));\n }", "title": "" }, { "docid": "2d635f9f3a6ff88a538dd8ace0580ba9", "score": "0.6845289", "text": "public function index()\n {\n return Comment::all();\n }", "title": "" }, { "docid": "19562b6095ba59950103ff032fdbb622", "score": "0.68303573", "text": "public function view() \n {\n $per_page = self::MAX_COMMENT_PER_PAGE;\n $current_page = Param::get('page', 1);\n $pagination = new SimplePagination($current_page, $per_page) ;\n\n $thread = Thread::get(Param::get('thread_id'));\n $comments = $thread->getComments($pagination->start_index -1, $pagination->count + 1);\n \n $pagination->checkLastPage($comments);\n $total = $thread->countComments();\n $pages = ceil($total / $per_page);\n $this->set(get_defined_vars());\n }", "title": "" }, { "docid": "61374db17385127a5b4ebd85d5a6a537", "score": "0.6808045", "text": "function show()\n {\n $RequestDict = $this->_parse_show_request();\n\n $CommentList = $this->Comment->find_by_form_key(\n $RequestDict['form_key'],\n $RequestDict['dom_id'],\n $RequestDict['meta_id'],\n $RequestDict['limit'] );\n\n $this->set('CommentList', $CommentList);\n return $this->render('show');\n }", "title": "" }, { "docid": "1e44295574594d136e4601793683252e", "score": "0.6792643", "text": "public function showComments(Event $event);", "title": "" }, { "docid": "dace914e7220f0abad7d31e61e58a672", "score": "0.6789601", "text": "public function index()\n\t{\n $comments = Comments::orderBy('created_at', 'ase')->paginate(5);\n return view(\"admin.commentshow\", ['comments' => $comments,\n 'pages' => $comments->toArray(),\n ]);\n\t}", "title": "" }, { "docid": "c5911a95de902c74a2bc198639df92b4", "score": "0.67731744", "text": "public function index()\n\t{\n\t\t$comments = Comment::all();\n\t\t\n\t\treturn view('comments.index', compact('comments'));\n\t}", "title": "" }, { "docid": "5607bd0ac2eeaa04d7342da3a610633b", "score": "0.6769939", "text": "public function index()\n {\n $comments = Comment::simplePaginate(12);\n return view('Admin.Comments.list', ['comments' => $comments]);\n }", "title": "" }, { "docid": "4ecd682770a8d463b60b31bbff44f4e0", "score": "0.67600375", "text": "public function index()\n {\n abort_if(Gate::denies('user_access'), Response::HTTP_FORBIDDEN, '403 Forbidden');\n $comments = Comment::paginate(10);\n return view('admin.comment.index',[\n 'comments'=> $comments\n ]);\n }", "title": "" }, { "docid": "e273acacf4437c29ef117666e63cc183", "score": "0.67413944", "text": "public function index() {\n $pagiData = $this->comment->paginate(Input::get('page', 1), $this->perPage, true);\n $comments = Pagination::makeLengthAware($pagiData->items, $pagiData->totalItems, $this->perPage);\n return view('backend.comment.index', compact('comments'));\n }", "title": "" }, { "docid": "658cc8ee622f839cab94d22bd85abe59", "score": "0.6737771", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $general_comments = $em->getRepository('SiteSupervisionBundle:General_comment')->findAll();\n\n return $this->render('general_comment/index.html.twig', array(\n 'general_comments' => $general_comments,\n ));\n }", "title": "" }, { "docid": "95d2c7e19433316f1c59bcfe2b06e8fc", "score": "0.672983", "text": "public function actionIndex() {\n $search = new CommentSearch();\n $search->seller = Yii::$app->user->id;\n $dataProvider = $search->search(Yii::$app->request->getQueryParams());\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n 'search' => $search\n ]);\n }", "title": "" }, { "docid": "345df2834b7859544842ba49fb204683", "score": "0.6728699", "text": "public function actionList()\n {\n $criteria=new CDbCriteria;\n $criteria->condition='t.status='.Comment::STATUS_PENDING;// MFM 1.1 migration Comment to t\n\n $pages=new CPagination(Comment::model()->count($criteria));\n $pages->pageSize=self::PAGE_SIZE;\n $pages->applyLimit($criteria);\n\n $comments=Comment::model()->with('post')->findAll($criteria);\n\n $this->pageTitle=Yii::t('lan','Comments Pending Approval');\n $this->render('list',array(\n 'comments'=>$comments,\n 'pages'=>$pages,\n ));\n }", "title": "" }, { "docid": "4b791e9084218982fbd5b50fa5cff451", "score": "0.6696408", "text": "public function index() {\n $this->load->model('Blog');\n $comments = $this->Blog->getComments();\n $this->load->view('index', array('comments' => $comments));\n }", "title": "" }, { "docid": "891d7d0f9bfb82946466c65ea44d7a70", "score": "0.6695223", "text": "public function index()\n {\n $comments = Comment::orderBy('created_at','asc')->get();\n return view('comments',compact('comments'));\n }", "title": "" }, { "docid": "5c036341f43f5636892c1a3a974fb1f9", "score": "0.66892904", "text": "public function listAction($id = null)\n {\n $this->initialize();\n $comments = $this->comments2->query()\n ->where('question_id = ?')\n ->orderBy(\"created desc\")\n ->execute([$id,]);\n\n $this->views->add('questions/comment', [\n 'comments' => $comments,\n 'pageId' => $id,\n ], 'CW' . $id);\n }", "title": "" }, { "docid": "78f0efe53c301404db0453bf19cb0eb2", "score": "0.6686025", "text": "public function index()\n {\n $comments = Comment::all();\n $commentsOK = $comments->where('check', 1);\n\n return view('backoffice.blog.comments', compact('comments', 'commentsOK'));\n }", "title": "" }, { "docid": "bae5f5986e4ef7fb69323972494a5dc3", "score": "0.66837436", "text": "public function getCommentsAction()\n\t{\n\t\t$items_per_page = ( $this->session->pagination['items_per_page'] ? $this->session->pagination['items_per_page'] : 5 );\n\n\t\t$page = $this->_getParam( 'page' );\n\t\t$offset = $items_per_page * ($page - 1);\n\n\t\t$c = new Comment();\n\t\t$rowset = $c->getComments( $this->recipe->id, $items_per_page, $offset );\n\n\t\t$this->view->pagination_config = array(\n\t\t\t'total_items' => $this->recipe->comments_count,\n\t\t 'items_per_page' => $items_per_page,\n\t\t\t'style' => 'digg_with_jquery'\n\t\t);\n\n\t\techo $this->view->partial( 'partials/comments.phtml', array( 'comments' => $rowset, 'pagination_config' => $this->view->pagination_config ) );\n\t\t\n\t}", "title": "" }, { "docid": "361431757c0eb4507bee5413e70135b1", "score": "0.6680888", "text": "public function index()\n {\n $comments = Comments::all();\n return view('admin.comments.index', compact('comments'));\n }", "title": "" }, { "docid": "839a4de42abdb108e9bbbbe7abcaf30b", "score": "0.66805494", "text": "function showComments($name, $rating, $comment, $date)\r\n {\r\n echo '<div class=\"commentCell\">';\r\n echo \"<span class=\\\"commentTitle\\\" itemprop=\\\"author\\\">$name</span>\";\r\n \r\n echo '<div class=\"commentRating\" itemprop=\"reviewRating\">';\r\n showStars('imgs/filledStar.svg', $rating);\r\n echo '</div>';\r\n \r\n echo '<div class=\"commentDate\">';\r\n echo \"<span>$date</span>\";\r\n echo '</div>';\r\n \r\n echo \"<span class=\\\"comment\\\" itemprop=\\\"reviewBody\\\">$comment</span>\";\r\n echo '</div>';\r\n }", "title": "" }, { "docid": "7f8f1b9890568ce52d04e83c221816d7", "score": "0.6679079", "text": "public function printAllComments($page) {\r\n \r\n }", "title": "" }, { "docid": "59de6e3575ce560c682863c8147dff03", "score": "0.66752434", "text": "public function index()\n {\n $comments = Comment::getList();\n\n return view('admin.comments.index', compact('comments'));\n }", "title": "" }, { "docid": "1442fb99d5750d5c8b9c11bcfe02adcd", "score": "0.66750705", "text": "public function index()\n {\n $comments = Comment::all();\n\n return view('comments.index', compact('comments'));\n }", "title": "" }, { "docid": "42e4bcb2cae9c733316f950cc803a2b7", "score": "0.6664551", "text": "public function index()\n {\n $comment = Comment::all();\n\n return view('comment.comment', ['comment' => $comment]);\n }", "title": "" }, { "docid": "735e19ccddd2e9d50f94c8c10c03f0c8", "score": "0.6662056", "text": "function viewComment(){\r\n\t\tinclude(\"sch_functions.php\");\r\n\t\t//$vs=get_data(\"vs\");\r\n \r\n $obj = new sch();\r\n\t\t\t\r\n\t\t\t//calls the querry that shows the details of a child\r\n\t\t\t$row=$obj->viewComments();\r\n\t\r\n\t\t\tif(!$row){\r\n\t\t\techo \"{\";\r\n\t\t\techo jsonn(\"result\",0). \",\";\r\n\t\t\techo jsons(\"message\",\"Details not found\");\r\n\t\t\techo \"}\";\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\t\t\r\n\t\t/*$row=$obj->fetch();\r\n\t\t\techo \"{\";\r\n\t\t\techo '\"person\":[';\r\n\t\t\twhile($row){\r\n\t\t\t\t\t\r\n\t\t\techo \"{\";\r\n\t\t\techo jsonn(\"result\",1). \",\";\r\n\t\t\t//echo '\"gChild\":[{';\r\n\t\t\techo jsons(\"aid\",$row['aid'] ).\",\";\r\n\t\t\t\r\n\t\t\techo jsons(\"comment\",$row['comment']);\r\n\t\t\r\n\t\t\techo \"}\";\r\n\t\t\t\r\n\t\t\t$row=$obj->fetch();\r\n\t\t\tif($row){\r\n\t\t\t\techo \",\";\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\techo \"]\";\r\n\t\t\techo \"}\";*/\r\n \r\n $json=array();\r\n while($row=$obj->fetch()){\r\n $json['person'][]=$row; \r\n }\r\n echo json_encode($json);\t\r\n \r\n }", "title": "" }, { "docid": "100f83aa105180f76e9b1dc69d815f67", "score": "0.6646579", "text": "public function index()\n {\n $comments = Comment::all();\n return view('comments.index', ['comments' => $comments]);\n }", "title": "" }, { "docid": "3956e0761f6f25bbf7f621485cfab018", "score": "0.66462183", "text": "public function index()\n {\n $comments = Comment::latest()->paginate(10);\n return view('admin.pages.comments.index', compact('comments'));\n }", "title": "" }, { "docid": "d225588b4b119498ceba60bbcc2d8ff5", "score": "0.66412956", "text": "public function index()\n {\n $comments = Comment::all()->sortByDesc('created_at');\n return view('admin.comments.index',['comments'=>$comments]);\n }", "title": "" }, { "docid": "fb8d1ea328678617636343d6575f8de4", "score": "0.6640323", "text": "public function showAllMyComments($request)\n {\n $authId = $request->auth->id;\n $res = Comments::where('owner_id', $authId)\n ->get();\n return response()->json($res, 200);\n }", "title": "" }, { "docid": "4482aae5f22c8502a7ab23ce997b3ac4", "score": "0.66330194", "text": "public function show(Comment $comment)\n {\n //\n }", "title": "" }, { "docid": "4482aae5f22c8502a7ab23ce997b3ac4", "score": "0.66330194", "text": "public function show(Comment $comment)\n {\n //\n }", "title": "" }, { "docid": "4482aae5f22c8502a7ab23ce997b3ac4", "score": "0.66330194", "text": "public function show(Comment $comment)\n {\n //\n }", "title": "" }, { "docid": "4482aae5f22c8502a7ab23ce997b3ac4", "score": "0.66330194", "text": "public function show(Comment $comment)\n {\n //\n }", "title": "" }, { "docid": "4482aae5f22c8502a7ab23ce997b3ac4", "score": "0.66330194", "text": "public function show(Comment $comment)\n {\n //\n }", "title": "" }, { "docid": "4482aae5f22c8502a7ab23ce997b3ac4", "score": "0.66330194", "text": "public function show(Comment $comment)\n {\n //\n }", "title": "" }, { "docid": "4482aae5f22c8502a7ab23ce997b3ac4", "score": "0.66330194", "text": "public function show(Comment $comment)\n {\n //\n }", "title": "" }, { "docid": "4482aae5f22c8502a7ab23ce997b3ac4", "score": "0.66330194", "text": "public function show(Comment $comment)\n {\n //\n }", "title": "" }, { "docid": "4482aae5f22c8502a7ab23ce997b3ac4", "score": "0.66330194", "text": "public function show(Comment $comment)\n {\n //\n }", "title": "" }, { "docid": "7bf516de2a02c55c5c7714c95ad7152e", "score": "0.6631144", "text": "function nanosoft_comments_list() {\n\tif ( function_exists( 'is_woocommerce' ) && is_woocommerce() ) {\n\t\treturn;\n\t}\n\t\n\t// If comments are open or we have at least one comment, load up the comment template.\n\tif ( is_singular() && ( comments_open() || get_comments_number() ) ) {\n\t\tcomments_template();\n\t}\n}", "title": "" }, { "docid": "a0fe3c95b14c13c43e801a3f4cf209d5", "score": "0.66199434", "text": "public function show(comment $comment)\n {\n //\n }", "title": "" }, { "docid": "a0fe3c95b14c13c43e801a3f4cf209d5", "score": "0.66199434", "text": "public function show(comment $comment)\n {\n //\n }", "title": "" }, { "docid": "7f6c9e9592eb04c3a06ae8c3097243d4", "score": "0.66142553", "text": "private function displayComments(){\n\t\t$html.='</div>'.\"\\n\".'</div>'.\"\\n\".'</div>'.\"\\n\".'</div>'.\"\\n\".'</div>'.\"\\n\";\n\t\t$html.='<div class=\"wrap\">'.\"\\n\";\n\t\t$html.='<div class=\"messages\">'.\"\\n\";\n\t\t$html.='<div class=\"h2\"><h2>Messages</h2></div>'.\"\\n\";\n\t\t$html.='<div class=\"gameContent\">'.\"\\n\";\n\t\t$html.='<ul class=\"gameComments\">'.\"\\n\";\n\t\tif($_POST['confirm']&&$this->result['msg']==\"Success\"){\t\t\t\n\t\t\t$html.='<li class=\"noInput\">Comment successfully deleted! </li>'.\"\\n\";\n\t\t}\n\t\t$html.=$this->generated->showComments($this->result['msg']);\n\t\t$html.='</ul>'.\"\\n\";\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "9f30d345673273e5f6a6dc0f0e5c84c4", "score": "0.660965", "text": "public function index()\n {\n //\n $comments = Comment::latest()->paginate(5);\n return view('comments.index', compact('comments'));\n }", "title": "" }, { "docid": "096fd8b129acb709f430755cb8113ebb", "score": "0.66014093", "text": "public function index()\n {\n $comments = Comments::orderBy('created_at','desc')->paginate(10);\n return view('admin.comments.index', compact(['comments']));\n }", "title": "" }, { "docid": "0a8d54d2cda4bff4a42fa7a4d7694adf", "score": "0.65990007", "text": "public function index()\n {\n return view('pages.comment');\n }", "title": "" }, { "docid": "5448e252e6fa88ab2e1f4d162ca7e8a5", "score": "0.6598855", "text": "function plugin_comments_show() {\r\n\r\n\tglobal $config, $catz, $mysql, $catmap, $tpl, $template, $lang, $SUPRESS_TEMPLATE_SHOW, $userROW, $TemplateCache, $SYSTEM_FLAGS;\r\n\t// Load lang file, that is required for [hide]..[/hide] block\r\n\t$lang = LoadLang('news', 'site');\r\n\t$SYSTEM_FLAGS['info']['title']['group'] = $lang['comments:header.title'];\r\n\tinclude_once(root . \"/plugins/comments/inc/comments.show.php\");\r\n\t// Try to fetch news\r\n\t$newsID = intval($_REQUEST['news_id']);\r\n\tif (!$newsID || !is_array($newsRow = $mysql->record(\"select * from \" . prefix . \"_news where id = \" . $newsID))) {\r\n\t\terror404();\r\n\r\n\t\treturn;\r\n\t}\r\n\t$SYSTEM_FLAGS['info']['title']['item'] = $newsRow['title'];\r\n\t// Prepare params for call\r\n\t// AJAX is turned off by default\r\n\t$callingCommentsParams = array('noajax' => 1, 'outprint' => true);\r\n\t// Set default template path [from site template / comments plugin subdirectory]\r\n\t$templatePath = tpl_site . 'plugins/comments';\r\n\t$fcat = array_shift(explode(\",\", $newsRow['catid']));\r\n\t// Check if there is a custom mapping\r\n\tif ($fcat && $catmap[$fcat] && ($ctname = $catz[$catmap[$fcat]]['tpl'])) {\r\n\t\t// Check if directory exists\r\n\t\tif (is_dir(tpl_site . 'ncustom/' . $ctname))\r\n\t\t\t$callingCommentsParams['overrideTemplatePath'] = tpl_site . 'ncustom/' . $ctname;\r\n\t\t$templatePath = tpl_site . 'ncustom/' . $ctname;\r\n\t}\r\n\t// Check if we need pagination\r\n\t$page = 0;\r\n\t$pageCount = 0;\r\n\t// If we have comments more than for one page - activate pagination\r\n\t$multi_scount = intval(pluginGetVariable('comments', 'multi_scount'));\r\n\tif (($multi_scount > 0) && ($newsRow['com'] > $multi_scount)) {\r\n\t\t// Page count\r\n\t\t$pageCount = ceil($newsRow['com'] / $multi_scount);\r\n\t\t// Check if user wants to access not first page\r\n\t\t$page = intval($_REQUEST['page']);\r\n\t\tif ($page < 1) $page = 1;\r\n\t\t$callingCommentsParams['limitCount'] = intval(pluginGetVariable('comments', 'multi_scount'));\r\n\t\t$callingCommentsParams['limitStart'] = ($page - 1) * intval(pluginGetVariable('comments', 'multi_scount'));\r\n\t}\r\n\t// Pass total number of comments\r\n\t$callingCommentsParams['total'] = $newsRow['com'];\r\n\t// Show comments\r\n\t$tcvars = array();\r\n\t$tcvars['vars']['entries'] = comments_show($newsID, 0, 0, $callingCommentsParams);\r\n\tif ($pageCount > 1) {\r\n\t\t$paginationParams = checkLinkAvailable('comments', 'show') ?\r\n\t\t\tarray('pluginName' => 'comments', 'pluginHandler' => 'show', 'params' => array('news_id' => $newsID), 'xparams' => array(), 'paginator' => array('page', 0, false)) :\r\n\t\t\tarray('pluginName' => 'core', 'pluginHandler' => 'plugin', 'params' => array('plugin' => 'comments', 'handler' => 'show'), 'xparams' => array('news_id' => $newsID), 'paginator' => array('page', 1, false));\r\n\t\ttemplateLoadVariables(true);\r\n\t\t$navigations = $TemplateCache['site']['#variables']['navigation'];\r\n\t\t$tcvars['vars']['more_comments'] = generatePagination($page, 1, $pageCount, 10, $paginationParams, $navigations, true);\r\n\t\t$tcvars['regx']['#\\[more_comments\\](.*?)\\[\\/more_comments\\]#is'] = '$1';\r\n\t} else {\r\n\t\t$tcvars['vars']['more_comments'] = '';\r\n\t\t$tcvars['regx']['#\\[more_comments\\](.*?)\\[\\/more_comments\\]#is'] = '';\r\n\t}\r\n\t// Enable AJAX in case if we are on last page\r\n\tif ($page == $pageCount)\r\n\t\t$callingCommentsParams['noajax'] = 0;\r\n\t$allowCom = $newsRow['allow_com'];\r\n\t// Show form for adding comments\r\n\tif ($newsRow['allow_com'] && (!pluginGetVariable('comments', 'regonly') || is_array($userROW))) {\r\n\t\t$tcvars['vars']['form'] = comments_showform($newsID, $callingCommentsParams);\r\n\t\t$tcvars['regx']['#\\[regonly\\](.*?)\\[\\/regonly\\]#is'] = '';\r\n\t\t$tcvars['regx']['#\\[commforbidden\\](.*?)\\[\\/commforbidden\\]#is'] = '';\r\n\t} else {\r\n\t\t$tcvars['vars']['form'] = '';\r\n\t\t$tcvars['regx']['#\\[regonly\\](.*?)\\[\\/regonly\\]#is'] = $allowCom ? '$1' : '';\r\n\t\t$tcvars['regx']['#\\[commforbidden\\](.*?)\\[\\/commforbidden\\]#is'] = $allowCom ? '' : '$1';\r\n\t}\r\n\t// Show header file\r\n\t$tcvars['vars']['link'] = newsGenerateLink($newsRow);\r\n\t$tcvars['vars']['title'] = secure_html($newsRow['title']);\r\n\t$tcvars['regx']['[\\[comheader\\](.*)\\[/comheader\\]]'] = ($newsRow['com']) ? '$1' : '';\r\n\t$tpl->template('comments.external', $templatePath);\r\n\t$tpl->vars('comments.external', $tcvars);\r\n\t$template['vars']['mainblock'] .= $tpl->show('comments.external');\r\n}", "title": "" }, { "docid": "673e46a9469ef68617ed7281f8008dee", "score": "0.6597136", "text": "public function index()\n {\n // title page for meta data in web browser\n $page = 'Comments';\n\n // retrieve all artist each 10 record data\n $comments = $this->comment->allComments();\n\n return view('comments.index', compact('page', 'comments'));\n }", "title": "" }, { "docid": "5387ba767fe41aef3a0a6409bf3dbd5b", "score": "0.6594375", "text": "public function index()\n {\n $comments = Comment::where('approved', 1)->get();\n\n return view('admin.comments.index', compact('comments'));\n }", "title": "" }, { "docid": "cfa99e51a0d7e8fc03dac720088ea3fe", "score": "0.6594048", "text": "public function index() {\n\t\t$this->set_order();\n\t\t$this->display_action_name = 'List Comments';\n\t\t$this->all_rows = $this->model->filter(array('status'=>1))->order($this->get_order())->page($this->this_page, $this->list_limit);\n\t\tif(!$this->all_rows) $this->all_rows=array();\n\t\t$this->use_view=\"cindex\";\n\t}", "title": "" }, { "docid": "3cb1f715142bfa3b5e335c03275528f9", "score": "0.6581639", "text": "public function indexAction() {\n\t\tif (! $this->get ( 'security.authorization_checker' )->isGranted ( 'ROLE_ADMIN' )) {\n\t\t\tthrow $this->createAccessDeniedException ();\n\t\t}\n\t\t$em = $this->getDoctrine ()->getManager ();\n\t\t\n\t\t$comments = $em->getRepository ( 'TestBundle:Comments' )->findAll ();\n\t\t\n\t\treturn $this->render ( 'comments/index.html.twig', array (\n\t\t\t\t'comments' => $comments \n\t\t) );\n\t}", "title": "" }, { "docid": "3e1484f4980b50b47f6a322f08eccbc1", "score": "0.65777117", "text": "function reportedCommentAdminList()\n {\n $commentManager = new CommentManager();\n $postManager = new PostManager();\n $memberManager = new MemberManager();\n\n \n $memberNumber = $memberManager->countMembers();\n $postNumber = $postManager->countPosts();\n $reportedComNumber = $commentManager->countReportedComment();\n\n $totalRepotedCommentReq = $commentManager->numberOfReportedComment();\n $totalRepotedComment = $totalRepotedCommentReq['total'];\n $repotedCommentPerPage = 4;\n \n $totalPage = ceil($totalRepotedComment / $repotedCommentPerPage);\n \n if(isset($_GET['page']) AND !empty($_GET['page']) AND $_GET['page'] > 0 AND $_GET['page'] <= $totalPage)\n {\n $_GET['page'] = intval($_GET['page']);\n $currentPage = $_GET['page'];\n }\n else\n {\n $currentPage = 1;\n }\n $start = ($currentPage - 1) * $repotedCommentPerPage;\n\n $repotedComments = $commentManager->reportedListComments($start, $repotedCommentPerPage);\n\n require('views/backend/adminComView.php');\n }", "title": "" }, { "docid": "808b13b99cfe595d3f0c696c5bc3e6bd", "score": "0.65546304", "text": "public function all_users_can_see_all_comments()\n {\n $status = factory(Status::class)->create();\n $comments = factory(Comment::class, 2)->create(['status_id' => $status->id]);\n\n $this->browse(function (Browser $browser) use ($status, $comments) {\n\n $browser->visit('/')->waitForText($status->body);\n\n foreach ($comments as $comment) {\n $browser->assertSee($comment->body)\n ->assertSee($comment->user->name);\n }\n });\n }", "title": "" }, { "docid": "5ebe1af8460ff0e960379ce3498f6073", "score": "0.6544345", "text": "public function index()\n {\n $comments=Comment::all();\n return view('comments.index',['comments'=>$comments]);\n }", "title": "" }, { "docid": "4e3e39afa2b693576614271761e77b3d", "score": "0.653208", "text": "public function index()\n {\n $atsiliepimai = Atsiliepimas::all();\n $user_id = Auth::user()->getId();\n\n return view('Comments')->with(['Atsiliepimai' => $atsiliepimai, 'user_id' => $user_id]);\n }", "title": "" }, { "docid": "ca70895ae2590d6cc4cab76c33cd76e1", "score": "0.653038", "text": "public function index()\n {\n $comments = $this->comments->where('status', '=', 0)->whereHas('post')->paginate(10);\n\n return view('admin.blog.comments.index', ['comments' => $comments]);\n }", "title": "" }, { "docid": "1820baafff503ce9f39ebfa290ec17ac", "score": "0.65296316", "text": "public function index()\n {\n $commentaires = Comment::all();\n return view('comments.index', ['comments' => $commentaires]);\n }", "title": "" }, { "docid": "a51bfcd12d60f61bad139f8c103d0e8e", "score": "0.6522493", "text": "public function actionComments() {\n\t\t$id = Yii::app()->request->getQuery('id', 0);\n\t\tif(!$id || !($post = Post::load($id))) {\n\t\t\tthrow new CHttpException(404, '访问页面不存在');\n\t\t}\n\t\t\t\t\n\t\t$commentForm = new CommentForm(null, $post);\n\t\t\n\t\t$this->render('comments', array(\n\t\t\t'post' => $post,\n\t\t\t'commentForm' => $commentForm,\n\t\t));\n\t}", "title": "" }, { "docid": "4c4317bafed8ee35809f0538140807a0", "score": "0.65104246", "text": "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Comment::find()->orderBy('active ASC, date DESC'),\n 'pagination' => [\n 'pageSize' => 20,\n ],\n ]);\n\n return $this->renderPartial('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "c7c258bbf990bc9edf90abe160aa8950", "score": "0.64879614", "text": "public function watchcommentAction()\n {\n //filter ステータス\n $srhStatus = (int)$this->_request->getPost('srhStatus');\n //filter キーword\n $srhKeyword = $this->_request->getPost('srhKeyword', '');\n\n //show type [0-search|1-ID別コンテンツ一覧|2-監視対象別のコンテンツ一覧|3-監視担当者別のコンテンツ一覧]\n $showType = (int)$this->_request->getPost('showType');\n $typeId = $this->_request->getPost('typeId');\n\n $this->view->srhStatus = $srhStatus;\n $this->view->srhKeyword = $srhKeyword;\n $this->view->showType = $showType;\n $this->view->typeId = $typeId;\n $this->view->title = 'あしあと帳 - コンテンツ監視[コメント]|OPENSOCIAL APPS ADMIN|LinNo ( リンノ )';\n $this->render();\n }", "title": "" }, { "docid": "555317b44b67dbb37c5f72e4a654a698", "score": "0.6474863", "text": "public function comments() {\n\t\t\treturn apply_filters( 'Tour_comments_query', $this->global_instance() );\n\t\t}", "title": "" }, { "docid": "4b6ee61892d7e551e587828e59506a6a", "score": "0.64628583", "text": "function mode_comments_get(){\n\t\t$view = new View();\n\t\t$post_model = new PostModel();\n\t\t$posts = $post_model->getAll($_GET[\"id\"]);\n\t\t$view->assign(\"menu_bar\", \"left-menu.php\");\n\t\t$view->assign(\"posts\", $posts);\n $view->display(\"edit-posts.php\");\n\t}", "title": "" }, { "docid": "7ccad890395c8374fe100ac8ad1b3892", "score": "0.64565194", "text": "public function Index() {\n $this->session->SetNextRedirect($this->request->request);\n\t$comment = new CMComment();\n $this->views->SetTitle('Comment Controller');\n $this->views->AddInclude(dirname(__FILE__) . '/index.tpl.php', array(\n 'comments' => $comment->ListAll(array('order-by'=>'idContent', 'order-order'=>'DESC')),\n ));\n }", "title": "" }, { "docid": "5da22dbd73c23588a829de6af8a8230e", "score": "0.64519316", "text": "public function forUser()\n {\n return Comments::all();\n }", "title": "" }, { "docid": "6a553df40dbe896aafe4859c8284c4ce", "score": "0.64498675", "text": "public function getComment() {\n $this->autoRender = false;\n $allpost= $this->Comment->find('all');\n echo json_encode($allpost);\n }", "title": "" }, { "docid": "f44d65ebeb2f18c62abe1b3e154a2da7", "score": "0.6446093", "text": "public function index()\n {\n $clients = Client::where('status', 0)\n ->orderBy('id', 'desc')\n ->paginate(5);\n\n return view('backend.comments.index')->with('clients', $clients);\n }", "title": "" }, { "docid": "0696ff69e3317f24bde4566ddcc9a3eb", "score": "0.6441862", "text": "public function getCommentsAdmin(){\n $sql = \"SELECT idCom, DATE_FORMAT(dateCom, 'Le %d-%m-%Y à %k:%i') AS dateCom, authorCom, contentCom, idChap, report FROM commentaires ORDER BY report DESC, dateCom DESC\";\n $comments = $this->executeRequest($sql);\n return $comments;\n }", "title": "" }, { "docid": "d8eaf22f2a7fbb66d9b14a3f38b5e44e", "score": "0.64342684", "text": "public function commentsAction ()\n { \n $this->_helper->layout->disableLayout(); // Disable Layouts\n \n $this->_request->setParam('items',10);\n\t\t$this->_request->setParam('range',5);\n\t\t$this->_request->setParam('status','Y');\n\t \n\t $params = $this->_request->getParams();\n \n $comments = new Comments();\n $this->view->commentsArray = $comments->fetchComments($params); \n \n }", "title": "" }, { "docid": "64f78798c0887d7a62728cd2690fad91", "score": "0.64257205", "text": "public function index()\n {\n\n $with['news'] = function($query) {\n return $query->select('title', 'id');\n };\n $select = [\n 'id',\n 'news_id',\n 'author',\n 'content',\n 'date',\n ];\n $data = $this->comments->select($select)->with($with);\n $comment = $data->orderBy('id', 'DESC')->paginate(10);\n return view('comment.index', ['comment' => $comment, 'type' => 'comment']);\n }", "title": "" }, { "docid": "189ba1225af5545f167e15327e1fd11b", "score": "0.6390358", "text": "public function pendingComments()\n {\n //Get all pendings comments\n $commentManager = new CommentManager();\n $pendingCommentsList = $commentManager->pendingCommentsList();\n\n //display the view with the data\n echo $this->twig->render('pending_comments.twig', array('comments' => $pendingCommentsList));\n $this->unsetMessage();\n }", "title": "" }, { "docid": "e035b89dff291e597b083f295ca25e9b", "score": "0.63875884", "text": "public function getComments()\n {\n return $this->findAll();\n }", "title": "" }, { "docid": "b66ae251773d5c66662346a90f510af4", "score": "0.63771826", "text": "public function index()\n {\n $title = 'Comment list';\n\n $comments = Comment::all();\n\n return View::make('comments.index', compact('title', 'comments'));\n }", "title": "" }, { "docid": "e0471f9ff123f3359cb0abe32dc0827d", "score": "0.63593787", "text": "public function commentsAction()\n {\n// $entities = $this->getRepository('Comments')->findBy(array(), array('id' => 'DESC'), 7);\n\n return $this->render('HorusBackendBundle:Slots:notifications.html.twig', array(\n 'notifications' => array()\n ));\n }", "title": "" }, { "docid": "d0a8866af156fdc6e9a3bd7156d7f77f", "score": "0.63437647", "text": "public function ListComment($id){\n $db = $this->_db;\n $comments = $db->prepare('SELECT id_comment, author_comment, comment, DATE_FORMAT(comment_date, \\'%d/%m/%Y à %Hh%imin%ss\\') AS comment_date_fr FROM comments WHERE id_post = '.$id.'');\n $comments->execute();\n return $comments;\n }", "title": "" }, { "docid": "9c5836d9898514eb3d5aa032ca1e0a61", "score": "0.6338727", "text": "public function index()\n {\n try {\n $comments = comments::where('parent_id', '=', '0')->get();\n return $this->success($comments, 'All comments List', 200);\n\n // return response()->json([\n // 'comments' => $comments,\n // // 'comments' => json_encode($comments),\n // ]);\n } catch (\\Exception $ex) {\n return $ex->getMessage();\n }\n }", "title": "" }, { "docid": "cc8085fb0c1fe27539c9f44ecf642ad2", "score": "0.6336095", "text": "public function show($id)\n {\n\t\t$comments = UmdComment::where('comment_approved', 0)\n\t\t\t\t\t\t\t\t->where('comment_post_ID', $id)->get();\n\t\treturn view('admin.comments', compact(\"comments\"));\n }", "title": "" }, { "docid": "b98fa566318fffe81a177fbb07a4063b", "score": "0.63288534", "text": "public function adminComments()\n {\n $comments=Comments::orderBy('created_at','desc')->paginate(20);\n\n return view('/admin/comments',['comments'=>$comments]);\n\n }", "title": "" }, { "docid": "5351daeb61ae040bb881d936f129c51e", "score": "0.63277817", "text": "function listCom()\n{\n $postManager = new PostManager();\n $commentManager = new CommentManager();\n \n $post = $postManager->getPost($_GET['id']);\n $comments = $commentManager->getComments($_GET['id']);\n $signales = $commentManager->getCommentsSignales($_GET['id']);\n \n require('view/backend/listComView.php');\n}", "title": "" }, { "docid": "fcd2885a122a0cbd20266e08fed78af4", "score": "0.632163", "text": "function get_local_comments(){\r\n $cackle_api = new CackleAPI();\r\n $channel = $this->channel;\r\n $get_all_comments = $cackle_api->db_connect(\"select * from \".PREFIX.\"_comments where md5(channel) = '\".md5($channel).\"' and approve = 1;\");\r\n return $get_all_comments;\r\n }", "title": "" }, { "docid": "8136048c234851ef87ef708da7409240", "score": "0.63186026", "text": "public function index()\n {\n $comments = Comment::where('status', '0')->with('user')->orderBy('created_at','desc')->paginate(10);\n\n return view('index', compact('comments'), ['title' => 'Главная']);\n }", "title": "" }, { "docid": "fcdd16b6ea7b3c5c34532c9482c75f5b", "score": "0.6317161", "text": "public function can_fetch_all_comments()\n {\n $response = $this->get('/');\n $response = $this->getJson(route('comments.list', 1));\n $response->assertStatus(200);\n }", "title": "" }, { "docid": "44c6a4ed62453d3fbf4bb23ba01e7f16", "score": "0.63136435", "text": "public function indexClientAction()\n {\n $repository = $this->getDoctrine()->getManager()->getRepository('AppRestoBundle:Comment');\n $comments = $repository->findBy(\n array('valid' => '1'),\n array('id' => 'desc'),\n 3\n );\n\n return $this->render('AppRestoBundle:Client:comment.html.twig',\n array('comments' => $comments));\n }", "title": "" }, { "docid": "7cc3bbbe08e25f74c476b3ca73ff1cbc", "score": "0.6305949", "text": "public function index()\n {\n $comments = Comment::with('post')->collect(['created_at' => 'desc']);\n\n return $this->response('my-blog::comments.index', compact('comments'));\n }", "title": "" }, { "docid": "0486326af3a8087e950bbdfa4f22c2a8", "score": "0.630209", "text": "function display($cachable = false, $urlparams = false) {\r\n $view = $this->getView('comments', 'html');\r\n $model = $this->getModel('comments');\r\n $view->setModel($model);\r\n $view->display();\r\n }", "title": "" }, { "docid": "b4cffce2233fd0809a7c59c529b88a45", "score": "0.6294163", "text": "public function get_all_comments(){\n try {\n $conn = new Dsn;\n $sql = \"SELECT * FROM user_comment ORDER BY comment_date DESC\";\n $stmt = $conn->connect()->prepare($sql);\n $stmt->execute();\n return $stmt->fetchAll(PDO::FETCH_ASSOC);\n } catch (PDOException $e) {\n echo 'ERROR: '.$e->getMessage();\n }\n }", "title": "" } ]
10d87da8ddc952491fd803bed03783b1
Adds blind carbon copy recipient.
[ { "docid": "e51560457b3bf466d7bdef77d1def90c", "score": "0.45530897", "text": "public function addBcc($email = NULL)\n\t{\n\t\t$email = strtolower(trim($email));\n\t\tif (!in_array($email, $this->_bcc)) {\n\t\t\t$this->_bcc[] = $email;\n\t\t}\n\t\treturn $this;\n\t}", "title": "" } ]
[ { "docid": "94c774d891006ec57931835bff1f9f71", "score": "0.6441856", "text": "function addBCC($bcc)\n\t{\n\t\t// If the blind carbon copy recipient is an aray, add each recipient... otherwise just add the one\n\t\tif (isset ($bcc))\n\t\t{\n\t\t\tif (is_array($bcc)) {\n\t\t\t\tforeach ($bcc as $to) {\n\t\t\t\t\t$to = JMailHelper::cleanLine( $to );\n\t\t\t\t\tparent::AddBCC($to);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$bcc = JMailHelper::cleanLine( $bcc );\n\t\t\t\tparent::AddBCC($bcc);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "16581d9edb6c79f47f255f3f5f251918", "score": "0.61864334", "text": "function addCC($cc)\n\t{\n\t\t//If the carbon copy recipient is an aray, add each recipient... otherwise just add the one\n\t\tif (isset ($cc))\n\t\t{\n\t\t\tif (is_array($cc)) {\n\t\t\t\tforeach ($cc as $to) {\n\t\t\t\t\t$to = JMailHelper::cleanLine( $to );\n\t\t\t\t\tparent::AddCC($to);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$cc = JMailHelper::cleanLine( $cc );\n\t\t\t\tparent::AddCC($cc);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f13a9e2415b66fdfc769323fdc83e46f", "score": "0.61618286", "text": "private function add_bcc_address(){ \n\t\tglobal $Settings;\n\t\tglobal $Validate;\n\t\t$addresses = $Settings->get_settings_option(\"sale_forwarding_emails\");\n\t\tif ( $addresses && $addresses != ''){ \n\t\t\t$array = explode(';',$addresses);\n\t\t\tif ( count($array) > 0 ){\n\t\t\t\tforeach ($array as $k => $addr) {\n\t\t\t\t\tif ( $Validate->is_email( $addr )){\n\t\t\t\t\t\t$this->email->addBCC( $addr );\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t} \n\t\t} \t \n\t}", "title": "" }, { "docid": "16028a7efaab4e30406b99a6b8fccf6c", "score": "0.5887963", "text": "public function addBCC($address, $name = '')\n {\n }", "title": "" }, { "docid": "90daf28f19bd6c788ae0ad51b912c1e9", "score": "0.56146556", "text": "public function addBcc ($address, $name = null) {\n if (empty($address)) return;\n MimeMail::validateUserInput($address);\n MimeMail::validateUserInput($name);\n\t\t$this->bcc[] = $this->formatEmail($address, $name);\n\t}", "title": "" }, { "docid": "409952c3354e29c13dfa226ca9d5e6a7", "score": "0.5599968", "text": "public function bcc($email)\n {\n $this->bcc[] = $email;\n }", "title": "" }, { "docid": "11821b44b25a592910fa93c9be955253", "score": "0.54990745", "text": "public function addBCC($bcc, $name = '')\n\t{\n\t\t// If the blind carbon copy recipient is an array, add each recipient... otherwise just add the one\n\t\tif (isset($bcc))\n\t\t{\n\t\t\t$this->add($bcc, $name, 'AddBCC');\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "8dd7bc22719d6f44ca7e57225282f310", "score": "0.5471768", "text": "public function addCopy(string $name): Email {\n $this->email->addCC($name);\n return $this;\n }", "title": "" }, { "docid": "b7e69df50212fcdb1c638a744ba7420e", "score": "0.5455691", "text": "public function addBcc( ezcMailAddress $address )\n {\n $this->properties['bcc'][] = $address;\n }", "title": "" }, { "docid": "0cb11f600a470106d0acbe6caf215ab5", "score": "0.54537904", "text": "public function bcc($email)\n {\n $this->message['bcc'] = $email;\n }", "title": "" }, { "docid": "9e9120940e514d1276ea8851f7714933", "score": "0.5372846", "text": "public function addCC($address, $name = '')\n {\n }", "title": "" }, { "docid": "1371071f924533dd8748a66e82526050", "score": "0.5355265", "text": "function Bcc( $bcc )\r\n\t\t{\r\n\t\tif( is_array($bcc) )\r\n\t\t\t$this->abcc = $bcc;\r\n\t\telse\r\n\t\t\t$this->abcc[]= $bcc;\r\n\r\n\t\tif( $this->checkAddress == true )\r\n\t\t\t$this->CheckAdresses( $this->abcc );\r\n\t\t}", "title": "" }, { "docid": "3b8dd0ddbeb226df79f75dce355c84e0", "score": "0.533479", "text": "public function addBCCAddress ($emailAddress, $name = '') {\r\n \t\r\n \tif (trim($emailAddress) <> '') {\r\n \tif (trim($name) <> '') {\r\n \t\t$this->bCCAddresses[] = trim($name).' <'.trim($emailAddress).'>';\r\n \t} else {\r\n \t \t$this->bCCAddresses[] = trim($emailAddress);\r\n \t }\r\n \t}\r\n \t\r\n }", "title": "" }, { "docid": "283c5322b083e180561449513b680b0c", "score": "0.53118426", "text": "public function setBcc($bcc);", "title": "" }, { "docid": "5130e4cdc2b5897b34065688d2392e72", "score": "0.52709776", "text": "public function bcc($address, $name = null);", "title": "" }, { "docid": "8815ca00efb87c8978906758b6374fbb", "score": "0.52675664", "text": "function bcc($BCC){\n\t\treturn $this->set_address_header('Bcc',$BCC);\n\t}", "title": "" }, { "docid": "a21cec5a562b0b13758ac853ab8bd0df", "score": "0.52278024", "text": "public function addCc( ezcMailAddress $address )\n {\n $this->properties['cc'][] = $address;\n }", "title": "" }, { "docid": "91802aaaac300739a8e04084d281a94a", "score": "0.51850116", "text": "function sendNotificationBcc($to, $toName, $from, $fromName, $bcc, $url, $username, $threadNotificationOffUrl, $globalNotificationOffUrl) {\n\t\t\n\t}", "title": "" }, { "docid": "5cbdaf4686c79233499dcadac359b2cb", "score": "0.51608026", "text": "protected function setCc() {}", "title": "" }, { "docid": "fdd091b0a4eee4bd8ee38d9ecf4822dc", "score": "0.5149245", "text": "public function add_bcc(EmailAddress $address) {\n $this->bcc[] = $address->as_string();\n return TRUE;\n }", "title": "" }, { "docid": "8abe7b3893cccb292ab1163cf82e2f02", "score": "0.5149115", "text": "private function sendCopy() {\r\n $data = $this->_contactform->getValues();\r\n\r\n $viewParam = array(\r\n 'domain' => $_SERVER['SERVER_NAME'],\r\n 'email' => $data['contactform_email'],\r\n 'subject' => $data['contactform_subject'],\r\n 'message' => nl2br(htmlentities($data['contactform_message']))\r\n );\r\n\r\n $mail = new Portfolio_HtmlTemplateMailer();\r\n $mail->setSubject($data['contactform_subject'])\r\n ->addTo($data['contactform_email'], $data['contactform_name'])\r\n ->setViewParam($viewParam)\r\n ->sendHtmlTemplate('contact_copy.phtml');\r\n }", "title": "" }, { "docid": "bfca2f8af15c52a702961086bb11f401", "score": "0.5138416", "text": "public function addBcc(string $email, string $name = '')\n {\n $this->mailObj->addBcc($email, $name);\n }", "title": "" }, { "docid": "30bdbf19ec8a09f7e14919536914c238", "score": "0.5103854", "text": "protected function add_address()\n {\n if ( is_array( $this->to ) )\n {\n foreach( $this->to as $email )\n {\n $this->mail->addAddress( $email );\n }\n }\n else\n {\n $this->mail->addAddress( $this->to );\n }\n }", "title": "" }, { "docid": "9db67be9073a4bb3a8c5e16458ce9c5a", "score": "0.50998265", "text": "public function addBcc($email, $name = NULL)\n\t{\n\t\treturn $this->_addRecipient('bcc', $email, $name);\n\t}", "title": "" }, { "docid": "844c5fb22813817cb4200e75d3111e89", "score": "0.5079379", "text": "public function AddBCC($address, $name = '') {\n\t\tif ($a = $this->cleanAdress($address,$name)){\n\t\t\t$this->message['bcc_address'] = $address;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "a63c275484165534e024e8348b1de16e", "score": "0.50755554", "text": "public function bcc($aAddress)\n {\n $this->validateEmail($aAddress);\n $this->bcc[] = $aAddress;\n }", "title": "" }, { "docid": "a3b9c621db8c65b425f617fc4c3cf811", "score": "0.5065107", "text": "public function addBCC($bcc = array()): CuxMailer{\n if (is_array($bcc) && !empty($bcc)){\n $this->_bcc = array_merge($this->_cc, $bcc);\n foreach ($bcc as $email){\n if (($pos = strpos($email, \"<\")) != false){\n $emailName = trim(substr($email, 0, $pos));\n $emailAddress = trim(substr($email, $pos+1, -1));\n $this->_mail->addBCC($emailAddress, $emailName);\n }\n else{\n $this->_mail->addBCC($email);\n }\n }\n }\n elseif (is_string($bcc) && !empty($bcc)){\n $this->_bcc[] = $bcc;\n $email = $bcc;\n if (($pos = strpos($email, \"<\")) != false){\n $emailName = trim(substr($email, 0, $pos));\n $emailAddress = trim(substr($email, $pos+1, -1));\n $this->_mail->addBCC($emailAddress, $emailName);\n }\n else{\n $this->_mail->addBCC($email);\n }\n }\n return $this;\n }", "title": "" }, { "docid": "fa8c083fed9ac950be41c5c7759b1587", "score": "0.5059134", "text": "function addRecipient(IRecipient $recipient);", "title": "" }, { "docid": "813e9b71644700fc9d557d42f0a22d01", "score": "0.5035663", "text": "public function AddBCC($address, $name = '') {\n return $this->AddAnAddress('bcc', $address, $name);\n }", "title": "" }, { "docid": "14b7504fcbe7c831918e958223c7bca0", "score": "0.50331056", "text": "function add_item_wrap_copy($member_id,$name,$cost,$not_infinite)\n{\n\tif ($not_infinite!=1) $not_infinite=0;\n\tif (!($cost>0)) $cost=0;\n\n\t// Get $realm,$x,$y from $member_id\n\tlist($realm,$x,$y)=get_loc_details($member_id);\n\n\tif ((!has_specific_permission($member_id,'administer_ocworld')) && ($GLOBALS['SITE_DB']->query_value('w_realms','owner',array('id'=>$realm))!=$member_id) && ($GLOBALS['SITE_DB']->query_value('w_realms','r_private',array('id'=>$realm))==1))\n\t\tocw_refresh_with_message(do_lang_tempcode('W_NO_EDIT_ACCESS_PRIVATE_REALM'),'warn');\n\n\tif ((!has_specific_permission($member_id,'administer_ocworld')) && ($GLOBALS['SITE_DB']->query_value('w_itemdef','owner',array('name'=>$name))!=$member_id) && ($GLOBALS['SITE_DB']->query_value('w_itemdef','replicateable',array('name'=>$name))==0))\n\t\tocw_refresh_with_message(do_lang_tempcode('ACCESS_DENIED__I_ERROR',$GLOBALS['FORUM_DRIVER']->get_username(get_member())),'warn');\n\n\t// Make sure that they aren't in the brig and adding a bribable!\n\t$bribable=$GLOBALS['SITE_DB']->query_value('w_itemdef','bribable',array('name'=>$name));\n\tif (($x==0) && ($y==2) && ($bribable==1)) ocw_refresh_with_message(do_lang_tempcode('W_NICE_TRY'),'warn');\n\n\t// Charge them\n\tif (!has_specific_permission($member_id,'administer_ocworld'))\n\t{\n\t\t$price=get_price('mud_item_copy');\n\t\tif (available_points($member_id)<$price) ocw_refresh_with_message(do_lang_tempcode('W_EXPENSIVE',integer_format($price)),'warn');\n\t\trequire_code('points2');\n\t\tcharge_member($member_id,$price,do_lang('W_MADE_OCWORLD',$name));\n\t}\n\n\tadd_item_to_room($realm,$x,$y,$name,$not_infinite,$cost,$member_id);\n\n\tocw_refresh_with_message(do_lang_tempcode('W_MADE_ITEM_COPY_AT',escape_html($name)));\n}", "title": "" }, { "docid": "141fe05492ff736855e126a866aa1e36", "score": "0.49851084", "text": "public function cc($email)\n {\n $this->cc[] = $email;\n }", "title": "" }, { "docid": "2cf14eb9340eeb14830310843645fc5b", "score": "0.49844408", "text": "public function cc($address, $name = null);", "title": "" }, { "docid": "d55c4668025cf13f233619660229c6cb", "score": "0.4938716", "text": "public function addCc ($address, $name = null) {\n if (empty($address)) return;\n MimeMail::validateUserInput($address);\n MimeMail::validateUserInput($name);\n\t\t$this->cc[] = $this->formatEmail($address, $name);\n\t}", "title": "" }, { "docid": "d91c9d9139256d897e195bfe2e22ace9", "score": "0.49142367", "text": "public function add_customer_to_cancellation_email( string $recipient, WC_Order $order ) : string {\n\t\treturn $recipient . ',' . $order->billing_email;\n\t}", "title": "" }, { "docid": "b7300c33e25d7358e9b4e30f0f5c2118", "score": "0.48988092", "text": "public function bcc(string $address, string $name = null): self\n {\n if (!empty($address)) {\n $this->recipients[] = [$address, $name, Type::BCC];\n }\n\n return $this;\n }", "title": "" }, { "docid": "bd7bf828337313ccd07ee995bf53d035", "score": "0.4896516", "text": "public function bcc($address, $name = '', array $variables = []): self\n {\n if (!empty($variables)) {\n $this->variables[$address] = $variables;\n }\n $this->builder->addBccRecipient($address, ['full_name' => $name]);\n return $this;\n }", "title": "" }, { "docid": "77400b52b90ac2b1f27ebf499240cb80", "score": "0.48884287", "text": "public function set_bcc($bcc)\n\t{\n\t\tif($this->validate_email($bcc))\n\t\t{\n\t\t\tif(is_array($bcc))\n\t\t\t\t$this->send_bcc = $bcc;\n\t\t\telse\n\t\t\t\t$this->send_bcc[] = $bcc;\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "4c724e92b09670220fee9389e1fa0d1d", "score": "0.48862064", "text": "public function addCC($cc, $name = '')\n\t{\n\t\t// If the carbon copy recipient is an array, add each recipient... otherwise just add the one\n\t\tif (isset($cc))\n\t\t{\n\t\t\t$this->add($cc, $name, 'AddCC');\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "42831684332ef8deddb03f8449c9d3e2", "score": "0.48751816", "text": "function bcc ($email, $name=null) {\n return $this->_set_email('bcc', $email, $name);\n }", "title": "" }, { "docid": "7cb6666afbe3525e8feba729ca2671bb", "score": "0.48471114", "text": "public function setBCC($_strBCC)\n {\n if ( $_strBCC )\n $this->_buildAddrList('bcc', $_strBCC);\n }", "title": "" }, { "docid": "5f82633fbffef978772e7e41a0ca4fda", "score": "0.48449036", "text": "public function addBCC($Mail,$Name=\"\") {\n\t\t$this->BCC[$Mail]=$Name;\n\t}", "title": "" }, { "docid": "2448ebdcff5e8e960e3fa761d567d5d6", "score": "0.48408464", "text": "public function addBCC($address, $name = '')\n {\n return $this->addOrEnqueueAnAddress('bcc', $address, $name);\n }", "title": "" }, { "docid": "ca4cce9551b95f1f308503b834adc747", "score": "0.48375", "text": "function bodyCdata($a) {\n $this->blurb .= $a;\n }", "title": "" }, { "docid": "4f8c805df248f385835d95ad3583190a", "score": "0.48320383", "text": "protected function _addB2CVariables()\n {\n if(isset($this->_additionalFields['bankaccount']))\n {\n // Strip whitespace from bankaccount string\n $bankAccountNumber = preg_replace( '/\\s+/' , '' , $this->_additionalFields['bankaccount'] );\n $array = array(\n 'bankAccountNumber' => $bankAccountNumber,\n );\n }\n else\n {\n $array = array(\n 'bankAccountNumber' => '',\n );\n }\n \n if (is_array($this->_vars)) {\n $this->_vars = array_merge($this->_vars, $array);\n } else {\n $this->_vars = $array;\n }\n \n $this->_debugEmail .= \"Shipping address variables added! \\n\";\n }", "title": "" }, { "docid": "7bd4c5e593bfc7f85d9e0525816938b5", "score": "0.48280558", "text": "function AddRecipient($address, $name = '', $format='h', $subscriberid=0)\n\t{\n\t\t$curr = count($this->_Recipients);\n\t\t$this->_Recipients[$curr]['address'] = trim($address);\n\t\t$this->_Recipients[$curr]['name'] = $name;\n\t\t$this->_Recipients[$curr]['format'] = strtolower($format);\n\t\t$this->_Recipients[$curr]['subscriberid'] = (int)$subscriberid;\n\t}", "title": "" }, { "docid": "56f644fe50349099648b6da6f9a52a0f", "score": "0.48181498", "text": "public function cc($email)\n {\n $this->message['cc'] = $email;\n }", "title": "" }, { "docid": "c751e08703a6764d590c3b452be84e7a", "score": "0.48121795", "text": "private function setBccData()\n {\n if($this->getBccs()){\n $bccArray = [];\n foreach($this->getBccs() as $bcc){\n $bccArray[] = $this->setEmailNameString($bcc['email'], $bcc['name']);\n }\n return implode(',', $bccArray); \n }\n\n return '';\n \n }", "title": "" }, { "docid": "66c1ebe4177e46d6da46b42b2455f52a", "score": "0.47934338", "text": "public function setBcc($bcc)\r\n {\r\n $this->message->setBcc($bcc);\r\n }", "title": "" }, { "docid": "c86942ade307a93e1ce5613ca7759319", "score": "0.47816107", "text": "private function bounceRecipient($email, $listid = 1)\n {\n $result = $this->interspire->bounceSubscriber($email, $listid);\n Log::info('BOUNCE // ' . $email . ' : ' . $result);\n echo ' - mark ' . $email . ' as bounce says : ' . $result . PHP_EOL;\n }", "title": "" }, { "docid": "267a4e43429f72f69bec23bdbf6e059b", "score": "0.4778592", "text": "public function addForwarder()\n\t{\n\t\t$cli = $this->ConnectToCG();\n\t\t// $cli->setDebug(1);\n $domain = Yii::app()->params['domain'];\n\n // Проверка дали потребителя не е въвел и домейна към акаунта\n // ако е въвел то въведеното си остава, ако не е то домейна се добавя\n if (strpos($this->addressToForward, \"@$domain\")) {\n $addressToForward = $this->addressToForward;\n } else {\n $addressToForward = $this->addressToForward . \"@$domain\";\n } \n $destination = $this->destination;\n Forwarders::addForwarder($addressToForward, $destination, $domain);\n\n\t\t$cli->Logout();\n\t}", "title": "" }, { "docid": "8ae52aafd6637edfc1526b8267cf5aa1", "score": "0.47675717", "text": "public function addCCAddress ($emailAddress, $name = '') {\r\n \t\r\n \tif (trim($emailAddress) <> '') {\r\n \tif (trim($name) <> '') {\r\n \t\t$this->cCAddresses[] = trim($name).' <'.trim($emailAddress).'>';\r\n \t} else {\r\n \t \t$this->cCAddresses[] = trim($emailAddress);\r\n \t }\r\n \t}\r\n \t\r\n }", "title": "" }, { "docid": "3d6f3dc47827779e7edde3b16d1dcb09", "score": "0.4763202", "text": "public function enviarCorreoTransferenciaBancaria() {\n $idUsuario = sfContext::getInstance()->getUser()->getAttribute('userid');\n $usuario = Doctrine_Core::getTable('user')->findOneById($idUsuario);\n\n $correo = $usuario->getEmail();\n $name = $usuario->getFirstname();\n\n require sfConfig::get('sf_app_lib_dir') . \"/mail/mail.php\";\n $mail = new Email();\n $mail->setSubject('Realizar Depósito en Garantía');\n $mailBody = \"<p>Hola $name</p><p>Realiza el depósito en garantía por transferecia bancaria de <b>$180.000</b>:</p><p><ul><li><b>Banco BCI</b></li><li>Cuenta Corriente: <b>70107459</b></li><li>Rut: <b>76208249-7</b></li><li><b>Rimoldi SPA</b></li><li><b>soporte@arriendas.cl</b></li></ul></p>\";\n $mailBody .= \"<p>Si pagas con Khipu, el deposito en garantía se debitará automáticamente.</p>\";\n $mail->setBody($mailBody);\n $mail->setTo($correo);\n $mail->setCc('soporte@arriendas.cl');\n $mail->submit();\n }", "title": "" }, { "docid": "0f34143fa2ad822e5883fa50f54cab89", "score": "0.47623187", "text": "public function bccAddress() {\n return $this->bccAddress;\n }", "title": "" }, { "docid": "1707dc6b4fae1cdc73b2051bada0d986", "score": "0.47597843", "text": "public function setCc($addresses);", "title": "" }, { "docid": "ac74d83098b1ee1b3523b2189986a6a9", "score": "0.4754009", "text": "public function AddNewRecipient()\n {\n $country = Country::find(session('order')['country_id']);\n $account = PaymentNetwork::find(session('order')['payment_network_id']);\n $reasons = Reason::all();\n return view('frontEnd.usersPanel.addRecipient',compact('country','reasons','account'));\n }", "title": "" }, { "docid": "2f8cac5164a86fa47956ca91b969e220", "score": "0.4728534", "text": "public function sendCopyTo()\n {\n $vars = $this->templateContainer->getTemplateVars();\n $this->checkInvoice($vars);\n parent::sendCopyTo();\n }", "title": "" }, { "docid": "64d4e9a69912ffaec8d7909e3a916a2b", "score": "0.47229296", "text": "public function add_cc(EmailAddress $address) {\n $this->cc[] = $address->as_string();\n return TRUE;\n }", "title": "" }, { "docid": "d0d1d238001bae3574875f30e6a19cd2", "score": "0.47159675", "text": "public function getBcc()\n {\n return $this->_bcc;\n }", "title": "" }, { "docid": "28306168674b9014f21963efccd4ea7f", "score": "0.4696968", "text": "function addRecipient($recipient)\n\t{\n\t\t// If the recipient is an aray, add each recipient... otherwise just add the one\n\t\tif (is_array($recipient))\n\t\t{\n\t\t\tforeach ($recipient as $to) {\n\t\t\t\t$to = JMailHelper::cleanLine( $to );\n\t\t\t\t$this->AddAddress($to);\n\t\t\t}\n\t\t} else {\n\t\t\t$recipient = JMailHelper::cleanLine( $recipient );\n\t\t\t$this->AddAddress($recipient);\n\t\t}\n\t}", "title": "" }, { "docid": "3c7eedfee34e636d8d5c2d6e60be359b", "score": "0.46890378", "text": "public function setMailBcc($value,$options=array('required'=>true)){ \n $this->_data['mail_bcc'] = new ZendT_Type_String($value,array('mask'=>''\n ,'charMask'=>''\n ,'filterDb'=>array (\n 0 => '',\n)\n ,'filter'=>array('strtoupper', 'removeAccent', )));\n if ($options['db'])\n $this->_data['mail_bcc']->setValueFromDb($value);\n \n if (!$options['db']){\n \n $valid = new Zend_Validate_StringLength(array ( 'max' => 1500, ) );\n $valueValid = $this->_data['mail_bcc']->getValueToDb();\n if ($valueValid && !$valid->isValid($valueValid)){\n throw new ZendT_Exception_Business(implode(\"\\n\",$valid->getMessages()));\n }\n \n }\n return $this;\n }", "title": "" }, { "docid": "bf041cd89e8191fa215f3c49f6835daa", "score": "0.4688756", "text": "public function forgetBcc()\n {\n if ($header = $this->message->getHeaders()->get('Bcc')) {\n $this->addAddressDebugHeader('X-Bcc', $this->message->getBcc());\n\n $header->setAddresses([]);\n }\n\n return $this;\n }", "title": "" }, { "docid": "0f3bda054d753b06c05c3d1c30f2b36a", "score": "0.46883678", "text": "public function getBcc () {\n\t\treturn $this->bcc;\n\t}", "title": "" }, { "docid": "ef82d7a1039141564ef25d58eccd8fb7", "score": "0.46875933", "text": "public function addBccRecipient($email)\n {\n $this->bccRecipients[] = $email;\n\n return $this;\n }", "title": "" }, { "docid": "171c22ba3f3e73206c5fe8bef8bea5a3", "score": "0.46850184", "text": "public function cc($address, $name = '', array $variables = []): self\n {\n if (!empty($variables)) {\n $this->variables[$address] = $variables;\n }\n $this->builder->addCcRecipient($address, ['full_name' => $name]);\n return $this;\n }", "title": "" }, { "docid": "562f0c950617810c38850031f1caba39", "score": "0.46826786", "text": "public function addCC($cc = array()): CuxMailer{\n if (is_array($cc) && !empty($cc)){\n $this->_cc = array_merge($this->_cc, $cc);\n foreach ($cc as $email){\n if (($pos = strpos($email, \"<\")) != false){\n $emailName = trim(substr($email, 0, $pos));\n $emailAddress = trim(substr($email, $pos+1, -1));\n $this->_mail->addCC($emailAddress, $emailName);\n }\n else{\n $this->_mail->addCC($email);\n }\n }\n }\n elseif (is_string($cc) && !empty($cc)){\n $this->_cc[] = $cc;\n $email = $cc;\n if (($pos = strpos($email, \"<\")) != false){\n $emailName = trim(substr($email, 0, $pos));\n $emailAddress = trim(substr($email, $pos+1, -1));\n $this->_mail->addCC($emailAddress, $emailName);\n }\n else{\n $this->_mail->addCC($email);\n }\n }\n return $this;\n }", "title": "" }, { "docid": "7a0cb41f10f11c57dcb1068f4c177d00", "score": "0.46715444", "text": "public function cc($aAddress)\n {\n $this->validateEmail($aAddress);\n $this->cc[] = $aAddress;\n }", "title": "" }, { "docid": "834907b9ebba82c33853649086acbfb9", "score": "0.46494994", "text": "public function sendToAddress($bitcoinaddress, $amount, $comment = '', $commentTo = '');", "title": "" }, { "docid": "78800574ad97a7cea07a7aa7408ae685", "score": "0.46440044", "text": "public function setAppMsgBcc ($v)\n {\n\n // Since the native PHP type for this column is string,\n // we will cast the input to a string (if it is not).\n if ( $v !== null && !is_string ($v) )\n {\n $v = (string) $v;\n }\n\n if ( $this->app_msg_bcc !== $v )\n {\n $this->app_msg_bcc = $v;\n }\n }", "title": "" }, { "docid": "27315e1c1b8bdd6a6e249356206b044f", "score": "0.46406156", "text": "public function setCC()\n {\n }", "title": "" }, { "docid": "f54c06123f5dffd8604379e10383e0ec", "score": "0.46359995", "text": "public function clearBCCs()\n {\n }", "title": "" }, { "docid": "6b6dced13f048afa5b83161f2b7650f9", "score": "0.46206677", "text": "public function setCompactRecipient($recipient, $creq= '') {\n $this->_setCompact('recipient', $recipient.$creq);\n }", "title": "" }, { "docid": "a657382fadd5c47950229e71b2616b51", "score": "0.46200117", "text": "public function setBcc ($address, $name = null) {\n\t\t$this->bcc = array();\n\n\t\tif (is_array($address)) {\n\t\t\tforeach ($address as $tmp) {\n\t\t\t\t$this->addBcc($tmp);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$this->addBcc($address, $name);\n\t\t}\n\t}", "title": "" }, { "docid": "ba95ed44a6495b2befbf86cd040799e1", "score": "0.46161857", "text": "private function _addBuffer()\n\t{\n\t\t$this->_buffer = trim($this->_buffer);\n\t\tif(!empty($this->_personal) && empty($this->_buffer)){\n\t\t\t$this->_buffer = 'noaddress';\n\t\t}\n\t\t\n\t\tif(!empty($this->_buffer))\n\t\t{\n\t\t\tif($this->strict && !\\GO\\Base\\Util\\StringHelper::validate_email($this->_buffer)){\n\t\t\t\tthrow new \\Exception(\"Address \".$this->_buffer.\" is not valid\");\n\t\t\t}else\n\t\t\t{\n\t\t\t\t$this->addRecipient($this->_buffer, $this->_personal);\n\t\t\t}\n\t\t}\n\t\t$this->_buffer = '';\n\t\t$this->_personal = false;\n\t\t$this->_emailFound=false;\n\t\t$this->_quote=false;\n\t}", "title": "" }, { "docid": "cf92f629d388ea4dbb62f965b542b16e", "score": "0.4600303", "text": "public function addCc(string $email, string $name = '')\n {\n $this->mailObj->addCc($email, $name);\n }", "title": "" }, { "docid": "4c78749449601467b3713d2c097daf04", "score": "0.45955142", "text": "public static function TYPO3_copyRightNotice() {}", "title": "" }, { "docid": "f7117af8b42a4be6b1d6c1376cbcc165", "score": "0.45921344", "text": "public function carryover_cc()\n\t{\n\t\t//p($this->cc);\n\t\t$cc_array = $this->that->get_cc_array();\n\t\t$this->set_resend_cc($cc_array);\n\t\t$this->log_state('CC carryover: '. var_export($cc_array,TRUE));\n\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "376099b8d8fe8f42226d16e50fa42045", "score": "0.45883995", "text": "public function addTo( ezcMailAddress $address )\n {\n $this->properties['to'][] = $address;\n }", "title": "" }, { "docid": "b81a256a9e72a332912968bcb10ded27", "score": "0.45823526", "text": "function addWhoDownloadedAttachmentCopyright()\n{\n global $context;\n\n if ($context['current_action'] == 'credits') {\n $context['copyrights']['mods'][] = '<a href=\"https://mysmf.net/mods/who-downloaded-attachment\" target=\"_blank\">Who Downloaded Attachment</a> &copy; 2017-2021, digger';\n }\n}", "title": "" }, { "docid": "6be452ce21feb2b50d2c5b6ee8c48c85", "score": "0.45767888", "text": "public function setBcc($bcc)\n {\n $this->_bcc = $bcc;\n }", "title": "" }, { "docid": "45da855ea46112a43d1cbe145f6cca80", "score": "0.45638433", "text": "public function getHtmlForWithCcc()\n\t{\n\t\tglobal $conf, $langs, $form;\n\t\t$out = '<tr><td>';\n\t\t$out.= $form->textwithpicto($langs->trans(\"MailCCC\"), $langs->trans(\"YouCanUseCommaSeparatorForSeveralRecipients\"));\n\t\t$out.= '</td><td>';\n\t\tif (! empty($this->withtocccreadonly)) {\n\t\t\t$out.= (! is_array($this->withtoccc) && ! is_numeric($this->withtoccc))?$this->withtoccc:\"\";\n\t\t} else {\n\t\t $out.= '<input class=\"minwidth200\" id=\"sendtoccc\" name=\"sendtoccc\" value=\"'.(GETPOST(\"sendtoccc\", \"alpha\") ? GETPOST(\"sendtoccc\", \"alpha\") : ((! is_array($this->withtoccc) && ! is_numeric($this->withtoccc)) ? $this->withtoccc : '')).'\" />';\n\t\t\tif (! empty($this->withtoccc) && is_array($this->withtoccc)) {\n\t\t\t\t$out.= \" \".$langs->trans(\"and\").\"/\".$langs->trans(\"or\").\" \";\n\t\t\t\t// multiselect array convert html entities into options tags, even if we dont want this, so we encode them a second time\n\t\t\t\t$tmparray = $this->withtoccc;\n\t\t\t\tforeach ($tmparray as $key => $val) {\n\t\t\t\t\t$tmparray[$key]=dol_htmlentities($tmparray[$key], null, 'UTF-8', true);\n\t\t\t\t}\n\t\t\t\t$withtocccselected=GETPOST(\"receiverccc\"); // Array of selected value\n\t\t\t\t$out.= $form->multiselectarray(\"receiverccc\", $tmparray, $withtocccselected, null, null, null, null, \"90%\");\n\t\t\t}\n\t\t}\n\n\t\t$showinfobcc='';\n\t\tif (! empty($conf->global->MAIN_MAIL_AUTOCOPY_PROPOSAL_TO) && ! empty($this->param['models']) && $this->param['models'] == 'propal_send') $showinfobcc=$conf->global->MAIN_MAIL_AUTOCOPY_PROPOSAL_TO;\n\t\tif (! empty($conf->global->MAIN_MAIL_AUTOCOPY_ORDER_TO) && ! empty($this->param['models']) && $this->param['models'] == 'order_send') $showinfobcc=$conf->global->MAIN_MAIL_AUTOCOPY_ORDER_TO;\n\t\tif (! empty($conf->global->MAIN_MAIL_AUTOCOPY_INVOICE_TO) && ! empty($this->param['models']) && $this->param['models'] == 'facture_send') $showinfobcc=$conf->global->MAIN_MAIL_AUTOCOPY_INVOICE_TO;\n\t\tif (! empty($conf->global->MAIN_MAIL_AUTOCOPY_SUPPLIER_PROPOSAL_TO) && ! empty($this->param['models']) && $this->param['models'] == 'supplier_proposal_send') $showinfobcc=$conf->global->MAIN_MAIL_AUTOCOPY_SUPPLIER_PROPOSAL_TO;\n\t\tif (! empty($conf->global->MAIN_MAIL_AUTOCOPY_SUPPLIER_ORDER_TO) && ! empty($this->param['models']) && $this->param['models'] == 'order_supplier_send') $showinfobcc=$conf->global->MAIN_MAIL_AUTOCOPY_SUPPLIER_ORDER_TO;\n\t\tif (! empty($conf->global->MAIN_MAIL_AUTOCOPY_SUPPLIER_INVOICE_TO) && ! empty($this->param['models']) && $this->param['models'] == 'invoice_supplier_send') $showinfobcc=$conf->global->MAIN_MAIL_AUTOCOPY_SUPPLIER_INVOICE_TO;\n\t\tif (! empty($conf->global->MAIN_MAIL_AUTOCOPY_PROJECT_TO) && ! empty($this->param['models']) && $this->param['models'] == 'project') $showinfobcc=$conf->global->MAIN_MAIL_AUTOCOPY_PROJECT_TO;\n\t\tif ($showinfobcc) $out.=' + '.$showinfobcc;\n\t\t$out.= \"</td></tr>\\n\";\n\t\treturn $out;\n\t}", "title": "" }, { "docid": "817ba08a00d8313f4a5b907db77db1fa", "score": "0.4554312", "text": "public function addEmailOutputRecipient($recipient);", "title": "" }, { "docid": "cf4c2c90ee2f5e70a4e3d7891fb3ed51", "score": "0.45465058", "text": "public function add_recipient($recipient)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n $address = $this->_parse_email_address($recipient);\n\n Validation_Exception::is_valid($this->validate_email($address['address']));\n \n $this->message['recipient'][] = $address;\n }", "title": "" }, { "docid": "6ad6b00b675341e41dab65d8ca76d702", "score": "0.45379528", "text": "private function setCcData()\n {\n if($this->getCcs()){\n $ccArray = [];\n foreach($this->getCcs() as $cc){\n $ccArray[] = $this->setEmailNameString($cc['email'], $cc['name']);\n } \n\n return implode(',', $ccArray); \n }\n \n return '';\n }", "title": "" }, { "docid": "660cd57843e61d3bfa42947d20135641", "score": "0.45351562", "text": "public function AddCC($address, $name = '') {\n\t\treturn $this->AddAddress($address, $name);\n\t}", "title": "" }, { "docid": "7ba87d6a6822f84593a6152eff30b154", "score": "0.45272416", "text": "public function CopyShipToCust() {\n\t$sShip = $this->RecipFields()->AsString();\n\t$oFlds = $this->BuyerFields();\n\t$oFlds->AsString($sShip);\t// set the shipping fields\n\t$oFlds->SaveCartData();\t\t// write to database\n }", "title": "" }, { "docid": "bbac123247b18a256f479341f308ad71", "score": "0.45219055", "text": "public function beforeSendPerformed(\\Swift_Events_SendEvent $evt)\n {\n if (!$this->isEnabled()) {\n return;\n }\n\n $message = $evt->getMessage();\n $headers = $message->getHeaders();\n $this->_parentRestoreMessage($message);\n\n if ($headers->has('to')) {\n $headers->addMailboxHeader('Hg-Swift-To', $message->getTo());\n }\n\n if ($headers->has('cc')) {\n $headers->addMailboxHeader('Hg-Swift-Cc', $message->getCc());\n }\n\n if ($headers->has('bcc')) {\n $headers->addMailboxHeader('Hg-Swift-Bcc', $message->getBcc());\n }\n\n $headers->addTextHeader('Hg-Swift-Subject', $message->getSubject());\n\n // Appending original recipient data to subject\n $redirectConfig = $this->redirectConfig;\n\n if (isset($redirectConfig['subject_append']) && (true === $redirectConfig['subject_append'])) {\n $message->setSubject(\n $message->getSubject()\n .($message->getTo() ? (' - Eredeti to: '.$this->recipientToString($message->getTo())) : '')\n .($message->getCc() ? (' - Eredeti cc: '.$this->recipientToString($message->getCc())) : '')\n .($message->getBcc() ? (' - Eredeti bcc: '.$this->recipientToString($message->getBcc())) : '')\n );\n }\n\n // Add each hard coded recipient\n $message->setTo($this->_recipient);\n }", "title": "" }, { "docid": "be11c0cbb8c41e74c35f7d11f170f362", "score": "0.45173356", "text": "function cc($CC){\n\t\treturn $this->set_address_header('Cc',$CC);\n\t}", "title": "" }, { "docid": "d59dc6af9bdec39391e03900607f7d76", "score": "0.45165142", "text": "function AddRecipient($address, $name = '', $format = 'h')\r\n {\r\n $curr = count($this->_Recipients);\r\n $this->_Recipients[$curr]['address'] = trim($address);\r\n $this->_Recipients[$curr]['name'] = $name;\r\n $this->_Recipients[$curr]['format'] = strtolower($format);\r\n }", "title": "" }, { "docid": "cd028314fbd22b57e299398cde909214", "score": "0.4515424", "text": "public function useSenderAddress()\n {\n \n $auxXml = $this->sender->getAsXml();\n $account = $this->sender->getAccount();\n $delete = \"<ACCOUNT><![CDATA[{$account}]]></ACCOUNT>\";\n \n $newXml = str_replace($delete, '', $auxXml);\n \n $this->collection = new Address();\n $this->collection->xml->flush();\n $this->collection->xml->writeRaw($newXml);\n \n return $this;\n }", "title": "" }, { "docid": "6709b17472407bc211c03552c644dfe7", "score": "0.4514833", "text": "function OnAfterCopy($original_id, $copy_id){\n }", "title": "" }, { "docid": "6754305c6f4cbf081798d3d2a7dedc1a", "score": "0.45112205", "text": "public function addCcInfo($participant)\n {\n if (!$this->getCcInfo()) {\n return $this->setCcInfo([$participant]);\n } else {\n return $this->setCcInfo(\n array_merge($this->getCcInfo(), [$participant])\n );\n }\n }", "title": "" }, { "docid": "6aa79b0156b108ee56bbff2eab45543f", "score": "0.4510868", "text": "public function addCc($address, $name = '')\n {\n $this->_ccList[$address] = $name;\n return $this;\n }", "title": "" }, { "docid": "eb6de3708c62a9675342c7d557eb6091", "score": "0.45068592", "text": "public function setRecipient($recipient);", "title": "" }, { "docid": "a835cd22cf2ad6c82476b597d5699860", "score": "0.447823", "text": "public function addCc($email, $name = NULL)\n\t{\n\t\treturn $this->_addRecipient('cc', $email, $name);\n\t}", "title": "" }, { "docid": "561a982e8ae298fea49f92b8843278af", "score": "0.44772273", "text": "function mrefer_add($message){\n \tif($message['to']['0']['email']=='dev@jomi.com' || 'cook@jomi.com'){\n\t//\t$refer_strip=str_replace('http', '', $_COOKIE['refer_cookie']);\n $refer_strip=$_COOKIE['refer_cookie'];\t\n\t$message['template']['content']['0']['content']=$message['template']['content']['0']['content'].$refer_strip;\n\t\treturn $message;\n\t}\n return $message;\n}", "title": "" }, { "docid": "48faaa3aac29c0fda9c638d8464449a1", "score": "0.4468578", "text": "public abstract function createRecipientContext( $blIncludeTrackingPermissions = false );", "title": "" }, { "docid": "06c153005a74feda5d2d897444c44dbc", "score": "0.44631898", "text": "public function recipient($address, $dsn = '')\n {\n }", "title": "" }, { "docid": "fd087e94c90e0756f23e585111aa8f11", "score": "0.44500688", "text": "public function AddCC($address, $name = '') {\n return $this->AddAnAddress('cc', $address, $name);\n }", "title": "" }, { "docid": "48495303783fb8fa618a07d2a18f6ee2", "score": "0.44426486", "text": "function addAddress()\n {\n $user = common_current_user();\n\n $screenname = $this->trimmed('screenname');\n $transport = $this->trimmed('transport');\n\n // Some validation\n\n if (!$screenname) {\n // TRANS: Message given saving IM address without having provided one.\n $this->showForm(_('No screenname.'));\n return;\n }\n\n if (!$transport) {\n // TRANS: Form validation error when no transport is available setting an IM address.\n $this->showForm(_('No transport.'));\n return;\n }\n\n Event::handle('NormalizeImScreenname', array($transport, &$screenname));\n\n if (!$screenname) {\n // TRANS: Message given saving IM address that cannot be normalised.\n $this->showForm(_('Cannot normalize that screenname.'));\n return;\n }\n $valid = false;\n Event::handle('ValidateImScreenname', array($transport, $screenname, &$valid));\n if (!$valid) {\n // TRANS: Message given saving IM address that not valid.\n $this->showForm(_('Not a valid screenname.'));\n return;\n } else if ($this->screennameExists($transport, $screenname)) {\n // TRANS: Message given saving IM address that is already set for another user.\n $this->showForm(_('Screenname already belongs to another user.'));\n return;\n }\n\n $confirm = new Confirm_address();\n\n $confirm->address = $screenname;\n $confirm->address_type = $transport;\n $confirm->user_id = $user->id;\n $confirm->code = common_confirmation_code(64);\n $confirm->sent = common_sql_now();\n $confirm->claimed = common_sql_now();\n\n $result = $confirm->insert();\n\n if ($result === false) {\n common_log_db_error($confirm, 'INSERT', __FILE__);\n // TRANS: Server error thrown on database error adding Instant Messaging confirmation code.\n $this->serverError(_('Could not insert confirmation code.'));\n return;\n }\n\n Event::handle('SendImConfirmationCode', array($transport, $screenname, $confirm->code, $user));\n\n // TRANS: Message given saving valid IM address that is to be confirmed.\n $msg = _('A confirmation code was sent '.\n 'to the IM address you added.');\n\n $this->showForm($msg, true);\n }", "title": "" }, { "docid": "5ff8e707de7b873c531c9e16af37bccc", "score": "0.4440601", "text": "public function append_to_approved($address)\n\t{\n\t\t$this->approved_array[] = $address;\n\t}", "title": "" } ]
d3571ba4356173062fd950f24399224b
retrieve futurepay ids when a futurepay payment notification is retrieved via IPN
[ { "docid": "5b0ea951c557dedd4a7b7bce8169e2a0", "score": "0.6342373", "text": "function retrieveFuturePayIds($component,$futurePayId,&$ids) {\r\n if ($component=='event') { // sanity check\r\n CRM_Core_Error::debug_log_message(\"Error while retrieving ids,FuturePay should not be used for event payments.\");\r\n error_log(__FILE__.\":\".__FUNCTION__.\" : Error while retrieving ids, FuturePay should not be used for event payments.\");\r\n return false;\r\n }\r\n $query = \"SELECT * FROM worldpay_futurepay_ids WHERE futurepay_id=$futurePayId\";\r\n $dao = CRM_Core_DAO::executeQuery( $query, CRM_Core_DAO::$_nullArray );\r\n if (!$dao->fetch()) {\r\n error_log(__FILE__.\":\".__FUNCTION__.\" : failed to retrieve futurepay details : sql=$query\");\r\n return false;\r\n }\r\n $ids[\"contact\"]=$dao->contact_id;\r\n $ids[\"contribution\"]=$dao->contribution_id;\r\n $ids[\"contribution_recur\"]=$dao->contribution_recur_id;\r\n $ids[\"contribution_page\"]=$dao->contribution_page_id;\r\n if (is_numeric($dao->membership_id)) {\r\n $ids[\"membership\"]=$dao->membership_id;\r\n }\r\n return true;\r\n }", "title": "" } ]
[ { "docid": "3f8f1ec1a5dd67c10db1fc82205a520b", "score": "0.602409", "text": "function handleFuturePayPayment(&$input, &$ids, &$objects) {\r\n $recur =& $objects['contributionRecur'];\r\n \r\n // make sure the invoice ids match\r\n // make sure the invoice is valid and matches what we have in the contribution record\r\n if ( $recur->invoice_id != $input['invoice'] ) {\r\n error_log(__FILE__.\":\".__FUNCTION__.\" : Failure : Invoice values dont match between database and IPN request\");\r\n return false;\r\n }\r\n\r\n $now = date( 'YmdHis' );\r\n \r\n // fix dates that already exist\r\n $dates = array( 'create', 'start', 'end', 'cancel', 'modified' );\r\n foreach ( $dates as $date ) {\r\n $name = \"{$date}_date\";\r\n if ( $recur->$name ) {\r\n $recur->$name = CRM_Utils_Date::isoToMysql( $recur->$name );\r\n }\r\n }\r\n\r\n //contribution_status_id:\r\n //0=Completed,1=Pending,2=Cancelled,3=Overdue,4=Failed,5=InProgress\r\n if ($input['transStatus']=='Y') {//rawAuthMessage=Authorised\r\n // futurepay payment accepted\r\n if ($input['rawAuthMessage']!='Authorised') {\r\n error_log(__FILE__.\":\".__FUNCTION__.\" : Warning futurepay transStatus=\".$input['transStatus'].\" but rawAuthMessage=\".$input['rawAuthMessage']);\r\n }\r\n if (_getContributionCount($recur)>=$recur->installments) {\r\n // final installement\r\n $recur->contribution_status_id=0;//0=Completed\r\n $recur->end_date=$now;\r\n }\r\n else {\r\n $recur->contribution_status_id=5;//5=In Progress\r\n $recur->modified_date = $now;\r\n }\r\n }\r\n else if ($input['transStatus']=='N') {//rawAuthMessage=Declined\r\n // futurepay payment declined\r\n $recur->contribution_status_id=4;//4=Failed\r\n $recur->end_date = $now;\r\n if ($input['rawAuthMessage']!='Declined') {\r\n error_log(__FILE__.\":\".__FUNCTION__.\" : Warning futurepay transStatus=\".$input['transStatus'].\" but rawAuthMessage=\".$input['rawAuthMessage']);\r\n }\r\n $checkForEndOfAgreement=false;\r\n }\r\n else if ($input['futurePayStatusChange']=='Merchant Cancelled') {\r\n $recur->contribution_status_id=3;//3= cancelled\r\n $recur->cancel_date = $now;\r\n $input['reasonCode']='FuturePay cancelled by Merchant';\r\n }\r\n else if ($input['futurePayStatusChange']=='Customer Cancelled') {\r\n $recur->contribution_status_id=3;//3= cancelled\r\n $recur->cancel_date = $now;\r\n $input['reasonCode']='FuturePay cancelled by Donor';\r\n }\r\n else {\r\n error_log(__FILE__.\":\".__FUNCTION__.\" : Unrecognized FuturePay operation. input=\".print_r($input,true));\r\n return false;\r\n }\r\n $recur->save();\r\n \r\n if ($input['transStatus']=='Y') {\r\n // create a new contribution for this recurring contribution\r\n $contributionType = $objects['contributionType'];\r\n $contribution = new CRM_Contribute_DAO_Contribution();\r\n $contribution->domain_id = CRM_Core_Config::domainID( );\r\n $contribution->contact_id = $ids[\"contact\"];\r\n $contribution->contribution_type_id = $contributionType->id;\r\n $contribution->contribution_page_id = $ids['contributionPage'];\r\n $contribution->contribution_recur_id = $ids['contributionRecur'];\r\n $contribution->receive_date = $now;\r\n $contribution->invoice_id = md5( uniqid( rand( ), true ) );\r\n $contribution->total_amount = $input[\"amount\"];\r\n $objects['contribution'] =& $contribution;\r\n \r\n require_once 'CRM/Core/Transaction.php';\r\n $transaction = new CRM_Core_Transaciton();\r\n $this->completeTransaction($input,$ids,$objects,$transaction,true);//true=recurring\r\n // completeTransaction handles the transaction commit\r\n return true;\r\n }\r\n }", "title": "" }, { "docid": "61e788d82928ccf3525c0ab3f1da6936", "score": "0.6011559", "text": "function main( $isFuturePay ) {\r\n error_log(__FILE__.\":\".__FUNCTION__.\" : handling WorldPay payment response IPN\");\r\n\r\n $objects = $ids = $input = array( );\r\n\r\n $component = self::retrieve('MC_module','String','POST',true);\r\n $input[\"component\"] = $component;\r\n $contact = self::retrieve('MC_contact_id','Integer','POST',true);\r\n\r\n $this->getInput($input,$ids);\r\n\r\n if (!$isFuturePay) {\r\n // not a future payment notication but may be a future payment\r\n // agreement being made...\r\n\r\n // get ids\r\n $ids[\"contact\"] = self::retrieve('MC_contact_id','String','POST',true);\r\n $ids[\"contribution\"] = self::retrieve('MC_contribution_id','String','POST',true);\r\n $ids[\"thankyoupage\"] = self::retrieve('MC_civi_thankyou_url','String','POST',true);\r\n $ids[\"cancelpage\"] = self::retrieve('MC_civi_cancel_url','String','POST',true);\r\n if ($component=='event') {\r\n $ids[\"event\"] = self::retrieve('MC_event_id','String','POST',true);\r\n $ids[\"participant\"] = self::retrieve('MC_participant_id','String','POST',true);\r\n }\r\n else {\r\n // contribution optional id's\r\n $ids['membership'] = self::retrieve('MC_membership_id','String','POST',false);\r\n $ids['contributionRecur'] = self::retrieve( 'MC_contribution_recur_id', 'Integer', 'GET', false );\r\n $ids['contributionPage'] = self::retrieve( 'MC_contribution_page_id' , 'Integer', 'GET', false );\r\n }\r\n\r\n if (is_numeric($input[\"futurePayId\"])) {\r\n // this is a futurepay agreement being made \r\n // so store the ids and do nothing more here\r\n // since no money has actually been transferred yet\r\n // ...watch futurepay repsonse for such transfers\r\n self::storeFuturePayIds($component,$input[\"futurePayId\"],$ids);\r\n return;\r\n }\r\n }\r\n else {\r\n if (!is_numeric($input[\"futurePayId\"])) {\r\n CRM_Core_Error::debug_log_message(\"futurePayId is missing for recurring payment.\");\r\n error_log(__FILE__.\":\".__FUNCTION__.\" : futurePayId is missing for recurring payment. input=\".print_r($input,true));\r\n exit();\r\n }\r\n self::retrieveFuturePayIds($component,$input[\"futurePayId\"],$ids);\r\n if (!$ids) {\r\n CRM_Core_Error::debug_log_message(\"Some sort of error occured retrieving ids for futurePayId=$futurePayId\");\r\n error_log(__FILE__.\":\".__FUNCTION__.\" : Some sort of error occured retrieving ids for futurePayId=$futurePayId\");\r\n exit();\r\n }\r\n }\r\n\r\n $paymentProcessorID = self::retrieve('processor_id', 'Integer', 'POST', FALSE);\r\n if (empty($paymentProcessorID)) {\r\n $processorParams = array(\r\n 'user_name' => self::retrieve('installation', 'String', 'POST', FALSE),\r\n 'payment_processor_type_id' => CRM_Core_DAO::getFieldValue('CRM_Financial_DAO_PaymentProcessorType', 'WorldPay', 'id', 'name'),\r\n 'is_test' => empty($input['is_test']) ? 0 : 1,\r\n );\r\n\r\n $processorInfo = array();\r\n if (!CRM_Financial_BAO_PaymentProcessor::retrieve($processorParams, $processorInfo)) {\r\n return FALSE;\r\n }\r\n $paymentProcessorID = $processorInfo['id'];\r\n }\r\n\r\n // validateData also loads the obects\r\n if (!$this->validateData($input,$ids,$objects,TRUE,$paymentProcessorID)) {\r\n error_log(__FILE__.\":\".__LINE__.\": validate data failed, input=\".print_r($input,true).\" ids=\".print_r($ids,true));\r\n return false;\r\n }\r\n\r\n self::$_paymentProcessor =& $objects['paymentProcessor'];\r\n if ($isFuturePay) {\r\n // future pay payment notification\r\n return $this->handleFuturepayPayment($input,$ids,$objects);\r\n }\r\n else if (is_numeric($input[\"futurePayId\"])) {\r\n // future pay payment initial agreement set up\r\n // appears like a single payment but no money changes hands\r\n return $this->handleFuturepayAgreement($input,$ids,$objects);\r\n }\r\n else {\r\n // single payment\r\n error_log(__FILE__.\":\".__FUNCTION__.\" : now processing single payment\");\r\n return $this->handleSinglePayment($input,$ids,$objects);\r\n }\r\n }", "title": "" }, { "docid": "3b1eb9ee3a0219083a4981a9de525976", "score": "0.5784502", "text": "public function getNotificationNids(): array;", "title": "" }, { "docid": "4755aa1a72358574d89ffb67d75282dd", "score": "0.56513035", "text": "public function onIpn(Engine_Payment_Ipn $ipn) {\n\n //You can get the notification data from below code\n $rawData = $ipn->getData();\n\n $ordersTable = Engine_Api::_()->getDbtable('orders', 'payment');\n\n $order = null;\n\n //You need to fetch the order object using order id sent by this gateway in notification. For reference you can see the below code for Paynow: Transaction IPN - get order by subscription_id\n if (!$order && !empty($rawData['data']->object->id)) {\n $gateway_order_id = $rawData['data']->object->id;\n\n $order = $ordersTable->fetchRow(array(\n 'gateway_id = ?' => $this->_gatewayInfo->gateway_id,\n 'gateway_order_id = ?' => $gateway_order_id,\n ));\n }\n\n if ($order) {\n return $this->onResourceIpn($order);\n } else {\n $error_msg17 = Zend_Registry::get('Zend_Translate')->_('Unknown or unsupported IPN type, or missing transaction or order ID');\n throw new Engine_Payment_Plugin_Exception($error_msg17);\n }\n }", "title": "" }, { "docid": "25b587676d936f529071f91a64e89643", "score": "0.56451154", "text": "function paypal_ipn() {\n if ($this->paypal->validate_ipn() == true) {\n $ipn_response = '';\n foreach ($_POST as $key => $value) {\n $value = urlencode(stripslashes($value));\n $ipn_response .= \"\\n$key=$value\";\n }\n\n $project_milestone_id = $_POST['custom'];\n //update the project milestone status\n $data['status'] = 1;\n $this->db->where('project_milestone_id', $project_milestone_id);\n $this->db->update('project_milestone', $data);\n\n //create new payment entry\n $data2['type'] = 'income';\n $data2['amount'] = $this->db->get_where('project_milestone' , array('project_milestone_id' => $project_milestone_id))->row()->amount;\n $data2['title'] = $this->db->get_where('project_milestone' , array('project_milestone_id' => $project_milestone_id))->row()->title;\n $data2['payment_method'] = 'paypal';\n $data2['description'] = $ipn_response;\n $data2['project_code'] = $this->db->get_where('project_milestone' , array('project_milestone_id' => $project_milestone_id))->row()->project_code;\n $data2['timestamp'] = strtotime(date(\"m/d/Y\"));\n $data2['milestone_id'] = $project_milestone_id;\n $data2['client_id'] = $this->session->userdata('login_user_id');\n $this->db->insert('payment', $data2);\n\n // notify client with payment confirmation\n $this->email_model->notify_email('payment_completion_notification', $data2['project_code'] , $project_milestone_id , 'admin');\n }\n }", "title": "" }, { "docid": "a368bdd54d757af32b110db4caed0e09", "score": "0.55695766", "text": "function ipnAction(){\n\t\t$this->_helper->layout->disableLayout();\n\t $this->_helper->viewRenderer->setNoRender(true);\n\t\t\n\t // check if this is a subscriber signup action, then ignore it since it is just confirming that \n\t // a recurring payment profile has been created \n\t if ($this->_getParam('txn_type') == 'subscr_signup') {\n\t \t// do not countinue\n\t \treturn; \n\t }\n\t \n\t $config = Zend_Registry::get(\"config\"); \n\t \n\t\t// below supported vals that paypal posts to us, this list is exhaustive..\n\t\t// NOTE: if a variable is not in this array, it is not going in the database. \n\t\t$paypal_vals = array(\"item_name\", \"item_number\", \"custom\", \n\t\t\t\"receiver_email\", \"receiver_id\", \"quantity\", \"memo\", \"payment_type\", \"payment_status\", \n\t\t\t\"payment_date\", \"payment_gross\", \"payment_fee\",\n\t\t\t\"mc_gross\", \"mc_fee\", \"mc_currency\", \"settle_amount\", \"settle_currency\", \"exchange_rate\",\n\t\t\t\"txn_id\", \"parent_txn_id\", \"txn_type\", \"first_name\", \"last_name\", \"payer_business_name\", \n\t\t\t\"address_name\", \"address_street\", \"address_city\", \"address_zip\", \"address_status\",\n\t\t\t\"address_country\", \"payer_email\", \"payer_id\", \"payer_status\",\"pending_reason\", \"reason_code\",\n\t\t\t\"notify_version\", \"verify_sign\"); \n\t\t\n\t\t// these are used later to verify validity of transaction\n\t\t$payment_status = $this->_getParam('payment_status');\n\t\t$txn_id = $this->_getParam('txn_id');\n\t\t$receiver_email = $this->_getParam('receiver_email');\n\t\t\n\t\t// read the post from PayPal system and add 'cmd'\n\t\t$req = 'cmd=_notify-validate';\n\t\t$addtosql = array();\n\t\t$params = $this->_getAllParams();\n\t\tforeach ($params as $key => $value) {\n\t\t\t$newvalue = urlencode(stripslashes($value));\t\t\n\t\t\t$req .= \"&\".$key.\"=\".$newvalue;\t\t\n\t\t\t// build insert statement to save papypal variables to database\n\t\t\tif ($key == 'payment_date') {\n\t\t\t\t// transform the paymentdate into a proper date for inserting into the database\n\t\t\t\t$addtosql[] = \" \".$key.\"='\".changeDateFromPageToMySQLFormat($value).\"'\"; \n\t\t\t} else {\n\t\t\t\t// process other fields \n\t\t\t\tif (in_array ($key, $paypal_vals)) { \n\t\t\t\t\tif (is_numeric($value)) { \n\t\t \t$addtosql[] = \" \".$key.\"=\".$value; \n\t\t \t} else { \n\t\t \t$addtosql[]= \" \".$key.\"='\".$value.\"'\"; \n\t\t \t} \n\t\t\t\t}\n\t\t\t} \n\t }\n\t\t$queryForPaypalInfo = \"INSERT INTO payment SET \".implode(\", \", $addtosql);\n\t\t\n\t\t// Check whether or not paypal txn_id is a duplicate before adding new paypal info\n\t\t// to the database\t\n\t\t$transactionIDValid = isTransactionIDValid($txn_id);\t\n\t\t// Save transaction details from Paypal to persistent store (file or database).\n\t\t//$result = mysql_query($queryForPaypalInfo);\n\t\t$conn = Doctrine_Manager::connection(); \n\t\t$result = $conn->execute($queryForPaypalInfo); \n\t\t$paymentid = $conn->lastInsertId();\n\t\tif (!$result) {\n\t\t\t# an error occured, log it and send a message\n\t\t\t$this->_logger->err(\"Error Inserting Paypal Transaction in Database. Query :\".$queryForPaypalInfo.\" - error \".mysql_error()); \n\t\t}\t\n\t\t\n\t\t// post back to PayPal system to verify the transaction \n\t\t$client = new Zend_Http_Client($config->paypal->serverurl);\n\t\t$client->setMethod(Zend_Http_Client::POST);\n\t\t$client->setParameterPost(array_merge(\n\t\t\t\t\t\t\t\t\t\tarray('cmd' => '_notify-validate'),\n\t\t\t\t\t\t\t\t\t\t$this->_getAllParams()\n\t\t\t\t\t\t\t\t )\n\t\t);\n\t\t$response = $client->request();\n\t\t\n\t\tif ($response->getBody() == 'VERIFIED'){\n\t\t\t// check the payment_status is Completed\n\t\t\tif ($payment_status != \"Completed\") {\t\t\t\t\t\n\t\t\t\t// payment not completed, just exit.\t\n\t\t\t\treturn; \n\t\t\t}\n\t\t\t// check that txn_id has not been previously processed\n\t\t\tif ($transactionIDValid == false) {\n\t\t\t\treturn; \t\t\t\n\t\t\t}\n\t\t\t// check that receiver_email is your Primary PayPal email\n\t\t\tif ($receiver_email != $config->paypal->receiveremail) {\t\t\t\t\t\n\t\t\t\t// receiver email is not primary email, just exit.\n\t\t\t\treturn; \n\t\t\t}\n\t\t\t\n\t\t\t// execute the custom login i.e. update the expiry date in the useraccount table and set the start and end dates in the payment table\n\t\t\texecuteCustomLogic($this->_getParam('custom'), $paymentid, $this->_getParam('item_number'));\n\t\t} else {\n\t\t\t// TODO: log for manual investigation\n\t\t\tsendTestMessage(\"Paypal POST BACK VERIFICATION failed: Log manual investigation\", \"Paypal POST BACK VERIFICATION failed: Log manual investigation\");\n\t\t\t$this->_logger->err(\"Paypal payment with Txn #\".$txn_id.\" is invalid, manual investigation required\");\n\t\t}\n\t}", "title": "" }, { "docid": "c5c592f7dab29133be42f7d7bb22b504", "score": "0.5438483", "text": "public static function stripe_notify()\n\t\t{\n\t\t\tglobal $current_site, $current_blog;\n\n\t\t\tif(!empty($_GET['s2member_pro_stripe_notify']) && $GLOBALS['WS_PLUGIN__']['s2member']['o']['pro_stripe_api_secret_key'])\n\t\t\t{\n\t\t\t\t$stripe = array(); // Initialize array of Webhook/IPN event data and s2Member log details.\n\t\t\t\t@ignore_user_abort(TRUE); // Continue processing even if/when connection is broken.\n\n\t\t\t\tif(!class_exists('Stripe'))\n\t\t\t\t\trequire_once dirname(__FILE__).'/stripe-sdk/lib/Stripe.php';\n\t\t\t\tStripe::setApiKey($GLOBALS['WS_PLUGIN__']['s2member']['o']['pro_stripe_api_secret_key']);\n\n\t\t\t\tif(is_object($event = c_ws_plugin__s2member_pro_stripe_utilities::get_event()) && ($stripe['event'] = $event))\n\t\t\t\t{\n\t\t\t\t\tswitch($event->type)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 'invoice.payment_succeeded': // Subscription payments.\n\n\t\t\t\t\t\t\tif(!empty($event->data->object)\n\t\t\t\t\t\t\t && ($stripe_invoice = $event->data->object) instanceof Stripe_Invoice\n\t\t\t\t\t\t\t && !empty($stripe_invoice->customer) && !empty($stripe_invoice->subscription)\n\t\t\t\t\t\t\t && ($stripe_invoice_total = number_format(c_ws_plugin__s2member_pro_stripe_utilities::cents_to_dollar_amount($stripe_invoice->total, $stripe_invoice->currency), 2, '.', '')) > 0\n\t\t\t\t\t\t\t && is_object($stripe_subscription = c_ws_plugin__s2member_pro_stripe_utilities::get_customer_subscription($stripe_invoice->customer, $stripe_invoice->subscription))\n\t\t\t\t\t\t\t && ($ipn_signup_vars = c_ws_plugin__s2member_utils_users::get_user_ipn_signup_vars(0, $stripe_subscription->id))\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$processing = TRUE;\n\n\t\t\t\t\t\t\t\t$ipn['txn_type'] = 'subscr_payment';\n\t\t\t\t\t\t\t\t$ipn['txn_id'] = $stripe_invoice->id;\n\t\t\t\t\t\t\t\t$ipn['txn_cid'] = $ipn_signup_vars['subscr_cid'];\n\t\t\t\t\t\t\t\t$ipn['subscr_cid'] = $ipn_signup_vars['subscr_cid'];\n\t\t\t\t\t\t\t\t$ipn['subscr_id'] = $ipn_signup_vars['subscr_id'];\n\t\t\t\t\t\t\t\t$ipn['custom'] = $ipn_signup_vars['custom'];\n\n\t\t\t\t\t\t\t\t$ipn['mc_gross'] = $stripe_invoice_total;\n\t\t\t\t\t\t\t\t$ipn['mc_currency'] = strtoupper($stripe_invoice->currency);\n\t\t\t\t\t\t\t\t$ipn['tax'] = number_format(0, 2, '.', '');\n\n\t\t\t\t\t\t\t\t$ipn['period1'] = $ipn_signup_vars['period1'];\n\t\t\t\t\t\t\t\t$ipn['period3'] = $ipn_signup_vars['period3'];\n\n\t\t\t\t\t\t\t\t$ipn['payer_email'] = $ipn_signup_vars['payer_email'];\n\t\t\t\t\t\t\t\t$ipn['first_name'] = $ipn_signup_vars['first_name'];\n\t\t\t\t\t\t\t\t$ipn['last_name'] = $ipn_signup_vars['last_name'];\n\n\t\t\t\t\t\t\t\t$ipn['option_name1'] = $ipn_signup_vars['option_name1'];\n\t\t\t\t\t\t\t\t$ipn['option_selection1'] = $ipn_signup_vars['option_selection1'];\n\n\t\t\t\t\t\t\t\t$ipn['option_name2'] = $ipn_signup_vars['option_name2'];\n\t\t\t\t\t\t\t\t$ipn['option_selection2'] = $ipn_signup_vars['option_selection2'];\n\n\t\t\t\t\t\t\t\t$ipn['item_name'] = $ipn_signup_vars['item_name'];\n\t\t\t\t\t\t\t\t$ipn['item_number'] = $ipn_signup_vars['item_number'];\n\n\t\t\t\t\t\t\t\t$ipn['s2member_paypal_proxy'] = 'stripe';\n\t\t\t\t\t\t\t\t$ipn['s2member_paypal_proxy_use'] = 'pro-emails';\n\t\t\t\t\t\t\t\t$ipn['s2member_paypal_proxy_verification'] = c_ws_plugin__s2member_paypal_utilities::paypal_proxy_key_gen();\n\n\t\t\t\t\t\t\t\tc_ws_plugin__s2member_utils_urls::remote(home_url('/?s2member_paypal_notify=1'), $ipn, array('timeout' => 20));\n\n\t\t\t\t\t\t\t\t$stripe['s2member_log'][] = 'Stripe Webhook/IPN event type identified as: `'.$event->type.'` on: '.date('D M j, Y g:i:s a T');\n\n\t\t\t\t\t\t\t\tif(($maybe_end_subscription = self::_maybe_end_subscription_after_payment($stripe_invoice->customer, $stripe_subscription)))\n\t\t\t\t\t\t\t\t\t$stripe['s2member_log'][] = $maybe_end_subscription;\n\n\t\t\t\t\t\t\t\t$stripe['s2member_log'][] = 'Webhook/IPN event `'.$event->type.'` reformulated. Piping through s2Member\\'s core gateway processor as `txn_type` (`'.$ipn['txn_type'].'`).';\n\t\t\t\t\t\t\t\t$stripe['s2member_log'][] = 'Please check core IPN logs for further processing details.';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak; // Break switch handler.\n\n\t\t\t\t\t\tcase 'invoice.payment_failed': // Subscription payment failures.\n\n\t\t\t\t\t\t\tif(!empty($event->data->object)\n\t\t\t\t\t\t\t && ($stripe_invoice = $event->data->object) instanceof Stripe_Invoice\n\t\t\t\t\t\t\t && !empty($stripe_invoice->customer) && !empty($stripe_invoice->subscription)\n\t\t\t\t\t\t\t && ($stripe_invoice_total = number_format(c_ws_plugin__s2member_pro_stripe_utilities::cents_to_dollar_amount($stripe_invoice->total, $stripe_invoice->currency), 2, '.', '')) > 0\n\t\t\t\t\t\t\t && is_object($stripe_subscription = c_ws_plugin__s2member_pro_stripe_utilities::get_customer_subscription($stripe_invoice->customer, $stripe_invoice->subscription))\n\t\t\t\t\t\t\t && ($ipn_signup_vars = c_ws_plugin__s2member_utils_users::get_user_ipn_signup_vars(0, $stripe_subscription->id))\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$processing = TRUE;\n\n\t\t\t\t\t\t\t\t$stripe['s2member_log'][] = 'Stripe Webhook/IPN event type identified as: `'.$event->type.'` on: '.date('D M j, Y g:i:s a T');\n\n\t\t\t\t\t\t\t\tif(($maybe_end_subscription = self::_maybe_end_subscription_after_payment($stripe_invoice->customer, $stripe_subscription)))\n\t\t\t\t\t\t\t\t\t$stripe['s2member_log'][] = $maybe_end_subscription;\n\n\t\t\t\t\t\t\t\t$stripe['s2member_log'][] = 'Ignoring `'.$event->type.'`. s2Member does NOT respond to individual payment failures; only to subscription cancellations.';\n\t\t\t\t\t\t\t\t$stripe['s2member_log'][] = 'You may control the behavior(s) associated w/ subscription payment failures from your Stripe Dashboard please.';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak; // Break switch handler.\n\n\t\t\t\t\t\tcase 'customer.deleted': // Customer deletions.\n\n\t\t\t\t\t\t\tif(!empty($event->data->object)\n\t\t\t\t\t\t\t && ($stripe_customer = $event->data->object) instanceof Stripe_Customer\n\t\t\t\t\t\t\t && ($ipn_signup_vars = c_ws_plugin__s2member_utils_users::get_user_ipn_signup_vars(0, $stripe_customer->id))\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$processing = TRUE;\n\n\t\t\t\t\t\t\t\t$ipn['txn_type'] = 'subscr_eot';\n\t\t\t\t\t\t\t\t$ipn['subscr_cid'] = $ipn_signup_vars['subscr_cid'];\n\t\t\t\t\t\t\t\t$ipn['subscr_id'] = $ipn_signup_vars['subscr_id'];\n\t\t\t\t\t\t\t\t$ipn['custom'] = $ipn_signup_vars['custom'];\n\n\t\t\t\t\t\t\t\t$ipn['period1'] = $ipn_signup_vars['period1'];\n\t\t\t\t\t\t\t\t$ipn['period3'] = $ipn_signup_vars['period3'];\n\n\t\t\t\t\t\t\t\t$ipn['payer_email'] = $ipn_signup_vars['payer_email'];\n\t\t\t\t\t\t\t\t$ipn['first_name'] = $ipn_signup_vars['first_name'];\n\t\t\t\t\t\t\t\t$ipn['last_name'] = $ipn_signup_vars['last_name'];\n\n\t\t\t\t\t\t\t\t$ipn['option_name1'] = $ipn_signup_vars['option_name1'];\n\t\t\t\t\t\t\t\t$ipn['option_selection1'] = $ipn_signup_vars['option_selection1'];\n\n\t\t\t\t\t\t\t\t$ipn['option_name2'] = $ipn_signup_vars['option_name2'];\n\t\t\t\t\t\t\t\t$ipn['option_selection2'] = $ipn_signup_vars['option_selection2'];\n\n\t\t\t\t\t\t\t\t$ipn['item_name'] = $ipn_signup_vars['item_name'];\n\t\t\t\t\t\t\t\t$ipn['item_number'] = $ipn_signup_vars['item_number'];\n\n\t\t\t\t\t\t\t\t$ipn['s2member_paypal_proxy'] = 'stripe';\n\t\t\t\t\t\t\t\t$ipn['s2member_paypal_proxy_use'] = 'pro-emails';\n\t\t\t\t\t\t\t\t$ipn['s2member_paypal_proxy_verification'] = c_ws_plugin__s2member_paypal_utilities::paypal_proxy_key_gen();\n\n\t\t\t\t\t\t\t\tc_ws_plugin__s2member_utils_urls::remote(home_url('/?s2member_paypal_notify=1'), $ipn, array('timeout' => 20));\n\n\t\t\t\t\t\t\t\t$stripe['s2member_log'][] = 'Stripe Webhook/IPN event type identified as: `'.$event->type.'` on: '.date('D M j, Y g:i:s a T');\n\t\t\t\t\t\t\t\t$stripe['s2member_log'][] = 'Webhook/IPN event `'.$event->type.'` reformulated. Piping through s2Member\\'s core gateway processor as `txn_type` (`'.$ipn['txn_type'].'`).';\n\t\t\t\t\t\t\t\t$stripe['s2member_log'][] = 'Please check core IPN logs for further processing details.';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak; // Break switch handler.\n\n\t\t\t\t\t\tcase 'customer.subscription.deleted': // Customer subscription deletion.\n\n\t\t\t\t\t\t\tif(!empty($event->data->object)\n\t\t\t\t\t\t\t && ($stripe_subscription = $event->data->object) instanceof Stripe_Subscription\n\t\t\t\t\t\t\t && ($ipn_signup_vars = c_ws_plugin__s2member_utils_users::get_user_ipn_signup_vars(0, $stripe_subscription->id))\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$processing = TRUE;\n\n\t\t\t\t\t\t\t\t$ipn['txn_type'] = 'subscr_eot';\n\t\t\t\t\t\t\t\t$ipn['subscr_cid'] = $ipn_signup_vars['subscr_cid'];\n\t\t\t\t\t\t\t\t$ipn['subscr_id'] = $ipn_signup_vars['subscr_id'];\n\t\t\t\t\t\t\t\t$ipn['custom'] = $ipn_signup_vars['custom'];\n\n\t\t\t\t\t\t\t\t$ipn['period1'] = $ipn_signup_vars['period1'];\n\t\t\t\t\t\t\t\t$ipn['period3'] = $ipn_signup_vars['period3'];\n\n\t\t\t\t\t\t\t\t$ipn['payer_email'] = $ipn_signup_vars['payer_email'];\n\t\t\t\t\t\t\t\t$ipn['first_name'] = $ipn_signup_vars['first_name'];\n\t\t\t\t\t\t\t\t$ipn['last_name'] = $ipn_signup_vars['last_name'];\n\n\t\t\t\t\t\t\t\t$ipn['option_name1'] = $ipn_signup_vars['option_name1'];\n\t\t\t\t\t\t\t\t$ipn['option_selection1'] = $ipn_signup_vars['option_selection1'];\n\n\t\t\t\t\t\t\t\t$ipn['option_name2'] = $ipn_signup_vars['option_name2'];\n\t\t\t\t\t\t\t\t$ipn['option_selection2'] = $ipn_signup_vars['option_selection2'];\n\n\t\t\t\t\t\t\t\t$ipn['item_name'] = $ipn_signup_vars['item_name'];\n\t\t\t\t\t\t\t\t$ipn['item_number'] = $ipn_signup_vars['item_number'];\n\n\t\t\t\t\t\t\t\t$ipn['s2member_paypal_proxy'] = 'stripe';\n\t\t\t\t\t\t\t\t$ipn['s2member_paypal_proxy_use'] = 'pro-emails';\n\t\t\t\t\t\t\t\t$ipn['s2member_paypal_proxy_verification'] = c_ws_plugin__s2member_paypal_utilities::paypal_proxy_key_gen();\n\n\t\t\t\t\t\t\t\tc_ws_plugin__s2member_utils_urls::remote(home_url('/?s2member_paypal_notify=1'), $ipn, array('timeout' => 20));\n\n\t\t\t\t\t\t\t\t$stripe['s2member_log'][] = 'Stripe Webhook/IPN event type identified as: `'.$event->type.'` on: '.date('D M j, Y g:i:s a T');\n\t\t\t\t\t\t\t\t$stripe['s2member_log'][] = 'Webhook/IPN event `'.$event->type.'` reformulated. Piping through s2Member\\'s core gateway processor as `txn_type` (`'.$ipn['txn_type'].'`).';\n\t\t\t\t\t\t\t\t$stripe['s2member_log'][] = 'Please check core IPN logs for further processing details.';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak; // Break switch handler.\n\n\t\t\t\t\t\tcase 'charge.refunded': // Customer refund (partial or full).\n\n\t\t\t\t\t\t\tif(!empty($event->data->object)\n\t\t\t\t\t\t\t && ($stripe_charge = $event->data->object) instanceof Stripe_Charge\n\t\t\t\t\t\t\t && !empty($stripe_charge->amount_refunded) && !empty($stripe_charge->customer)\n\t\t\t\t\t\t\t && ($ipn_signup_vars = c_ws_plugin__s2member_utils_users::get_user_ipn_signup_vars(0, $stripe_charge->customer))\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$processing = TRUE;\n\n\t\t\t\t\t\t\t\t$ipn['payment_status'] = 'refunded';\n\t\t\t\t\t\t\t\t$ipn['subscr_cid'] = $ipn_signup_vars['subscr_cid'];\n\t\t\t\t\t\t\t\t$ipn['subscr_id'] = $ipn_signup_vars['subscr_id'];\n\t\t\t\t\t\t\t\t$ipn['parent_txn_id'] = $ipn_signup_vars['subscr_id'];\n\n\t\t\t\t\t\t\t\t$ipn['custom'] = $ipn_signup_vars['custom'];\n\n\t\t\t\t\t\t\t\t$ipn['mc_fee'] = '-'.number_format('0.00', 2, '.', '');\n\t\t\t\t\t\t\t\t$ipn['mc_gross'] = '-'.number_format(c_ws_plugin__s2member_pro_stripe_utilities::cents_to_dollar_amount(abs($stripe_charge->amount_refunded), $stripe_charge->currency), 2, '.', '');\n\t\t\t\t\t\t\t\t$ipn['mc_currency'] = strtoupper($stripe_charge->currency);\n\t\t\t\t\t\t\t\t$ipn['tax'] = '-'.number_format('0.00', 2, '.', '');\n\n\t\t\t\t\t\t\t\t$ipn['period1'] = $ipn_signup_vars['period1'];\n\t\t\t\t\t\t\t\t$ipn['period3'] = $ipn_signup_vars['period3'];\n\n\t\t\t\t\t\t\t\t$ipn['payer_email'] = $ipn_signup_vars['payer_email'];\n\t\t\t\t\t\t\t\t$ipn['first_name'] = $ipn_signup_vars['first_name'];\n\t\t\t\t\t\t\t\t$ipn['last_name'] = $ipn_signup_vars['last_name'];\n\n\t\t\t\t\t\t\t\t$ipn['option_name1'] = $ipn_signup_vars['option_name1'];\n\t\t\t\t\t\t\t\t$ipn['option_selection1'] = $ipn_signup_vars['option_selection1'];\n\n\t\t\t\t\t\t\t\t$ipn['option_name2'] = $ipn_signup_vars['option_name2'];\n\t\t\t\t\t\t\t\t$ipn['option_selection2'] = $ipn_signup_vars['option_selection2'];\n\n\t\t\t\t\t\t\t\t$ipn['item_name'] = $ipn_signup_vars['item_name'];\n\t\t\t\t\t\t\t\t$ipn['item_number'] = $ipn_signup_vars['item_number'];\n\n\t\t\t\t\t\t\t\t$ipn['s2member_paypal_proxy'] = 'stripe';\n\t\t\t\t\t\t\t\t$ipn['s2member_paypal_proxy_use'] = 'pro-emails';\n\t\t\t\t\t\t\t\t$ipn['s2member_paypal_proxy_verification'] = c_ws_plugin__s2member_paypal_utilities::paypal_proxy_key_gen();\n\n\t\t\t\t\t\t\t\tc_ws_plugin__s2member_utils_urls::remote(home_url('/?s2member_paypal_notify=1'), $ipn, array('timeout' => 20));\n\n\t\t\t\t\t\t\t\t$stripe['s2member_log'][] = 'Stripe Webhook/IPN event type identified as: `'.$event->type.'` on: '.date('D M j, Y g:i:s a T');\n\t\t\t\t\t\t\t\t$stripe['s2member_log'][] = 'Webhook/IPN event `'.$event->type.'` reformulated. Piping through s2Member\\'s core gateway processor.';\n\t\t\t\t\t\t\t\t$stripe['s2member_log'][] = 'Please check core IPN logs for further processing details.';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak; // Break switch handler.\n\n\t\t\t\t\t\tcase 'charge.dispute.created': // Customer dispute (chargeback).\n\n\t\t\t\t\t\t\tif(!empty($event->data->object->charge)\n\t\t\t\t\t\t\t && ($stripe_charge = c_ws_plugin__s2member_pro_stripe_utilities::get_charge($event->data->object->charge)) instanceof Stripe_Charge\n\t\t\t\t\t\t\t && !empty($stripe_charge->customer) // The charge that is being disputed must be associated with a customer that we know of.\n\t\t\t\t\t\t\t && ($ipn_signup_vars = c_ws_plugin__s2member_utils_users::get_user_ipn_signup_vars(0, $stripe_charge->customer))\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$processing = TRUE;\n\n\t\t\t\t\t\t\t\t$ipn['payment_status'] = 'reversed';\n\t\t\t\t\t\t\t\t$ipn['subscr_cid'] = $ipn_signup_vars['subscr_cid'];\n\t\t\t\t\t\t\t\t$ipn['subscr_id'] = $ipn_signup_vars['subscr_id'];\n\t\t\t\t\t\t\t\t$ipn['parent_txn_id'] = $ipn_signup_vars['subscr_id'];\n\n\t\t\t\t\t\t\t\t$ipn['custom'] = $ipn_signup_vars['custom'];\n\n\t\t\t\t\t\t\t\t$ipn['mc_fee'] = '-'.number_format('0.00', 2, '.', '');\n\t\t\t\t\t\t\t\t$ipn['mc_gross'] = '-'.number_format(c_ws_plugin__s2member_pro_stripe_utilities::cents_to_dollar_amount(abs($stripe_charge->amount), $stripe_charge->currency), 2, '.', '');\n\t\t\t\t\t\t\t\t$ipn['mc_currency'] = strtoupper($stripe_charge->currency);\n\t\t\t\t\t\t\t\t$ipn['tax'] = '-'.number_format('0.00', 2, '.', '');\n\n\t\t\t\t\t\t\t\t$ipn['period1'] = $ipn_signup_vars['period1'];\n\t\t\t\t\t\t\t\t$ipn['period3'] = $ipn_signup_vars['period3'];\n\n\t\t\t\t\t\t\t\t$ipn['payer_email'] = $ipn_signup_vars['payer_email'];\n\t\t\t\t\t\t\t\t$ipn['first_name'] = $ipn_signup_vars['first_name'];\n\t\t\t\t\t\t\t\t$ipn['last_name'] = $ipn_signup_vars['last_name'];\n\n\t\t\t\t\t\t\t\t$ipn['option_name1'] = $ipn_signup_vars['option_name1'];\n\t\t\t\t\t\t\t\t$ipn['option_selection1'] = $ipn_signup_vars['option_selection1'];\n\n\t\t\t\t\t\t\t\t$ipn['option_name2'] = $ipn_signup_vars['option_name2'];\n\t\t\t\t\t\t\t\t$ipn['option_selection2'] = $ipn_signup_vars['option_selection2'];\n\n\t\t\t\t\t\t\t\t$ipn['item_name'] = $ipn_signup_vars['item_name'];\n\t\t\t\t\t\t\t\t$ipn['item_number'] = $ipn_signup_vars['item_number'];\n\n\t\t\t\t\t\t\t\t$ipn['s2member_paypal_proxy'] = 'stripe';\n\t\t\t\t\t\t\t\t$ipn['s2member_paypal_proxy_use'] = 'pro-emails';\n\t\t\t\t\t\t\t\t$ipn['s2member_paypal_proxy_verification'] = c_ws_plugin__s2member_paypal_utilities::paypal_proxy_key_gen();\n\n\t\t\t\t\t\t\t\tc_ws_plugin__s2member_utils_urls::remote(home_url('/?s2member_paypal_notify=1'), $ipn, array('timeout' => 20));\n\n\t\t\t\t\t\t\t\t$stripe['s2member_log'][] = 'Stripe Webhook/IPN event type identified as: `'.$event->type.'` on: '.date('D M j, Y g:i:s a T');\n\t\t\t\t\t\t\t\t$stripe['s2member_log'][] = 'Webhook/IPN event `'.$event->type.'` reformulated. Piping through s2Member\\'s core gateway processor.';\n\t\t\t\t\t\t\t\t$stripe['s2member_log'][] = 'Please check core IPN logs for further processing details.';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak; // Break switch handler.\n\t\t\t\t\t}\n\t\t\t\t\tif(empty($processing)) $stripe['s2member_log'][] = 'Ignoring this Webhook/IPN. The event does NOT require any action on the part of s2Member.';\n\t\t\t\t}\n\t\t\t\telse // Extensive log reporting here. This is an area where many site owners find trouble. Depending on server configuration; remote HTTPS connections may fail.\n\t\t\t\t{\n\t\t\t\t\t$stripe['s2member_log'][] = 'Unable to verify Webhook/IPN event ID. This is most likely related to an invalid Stripe configuration. Please check: s2Member → Stripe Options.';\n\t\t\t\t\t$stripe['s2member_log'][] = 'If you\\'re absolutely SURE that your Stripe configuration is valid, you may want to run some tests on your server, just to be sure \\$_POST variables (and php://input) are populated; and that your server is able to connect to Stripe over an HTTPS connection.';\n\t\t\t\t\t$stripe['s2member_log'][] = 's2Member uses the Stripe SDK for remote connections; which relies upon the cURL extension for PHP. Please make sure that your installation of PHP has the cURL extension; and that it\\'s configured together with OpenSSL for HTTPS communication.';\n\t\t\t\t\t$stripe['s2member_log'][] = var_export($_REQUEST, TRUE).\"\\n\".var_export(json_decode(@file_get_contents('php://input')), TRUE);\n\t\t\t\t}\n\t\t\t\tc_ws_plugin__s2member_utils_logs::log_entry('stripe-ipn', $stripe);\n\n\t\t\t\tstatus_header(200);\n\t\t\t\theader('Content-Type: text/plain; charset=UTF-8');\n\t\t\t\twhile(@ob_end_clean()); exit();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "578e28410a7583da83c7b9446b49f6b8", "score": "0.54001117", "text": "function onPaymentNotify($payment_method) {\t\t\n\t\tif ($payment_method != $this->_name) {\n\t\t\treturn array();\n\t\t}\n\n\t\t@session_start();\n\t\t$au = $_SESSION['au'];\n\t\t$id = $_SESSION['id'];\n\t\t$orderID = (int)$_SESSION['orderID'];\n\t\t$amount = (int)$_SESSION['amount'];\n\t\t$data\t= array(\t\t\t\n\t\t\t'order_id'\t\t\t=> $id,//$post['custom'],\n\t\t\t'transaction_id'\t=> $au//$post['txn_id']\n\t\t);\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "ece5e089588787d3219946293c851aec", "score": "0.53936553", "text": "public function paymentNotify()\n {\n $response = $this->client->request($this->methods['post'], 'pay' , [\n 'json' => [\n 'AGR_TRANS_ID' => $this->agr_trans_id,\n 'VENDOR_TRANS_ID' => $this->vendor_trans_id,\n 'STATUS' => $this->status,\n 'SIGN_TIME' => $this->generateSignTime(),\n 'SIGN_STRING' => md5($this->SECRET_KEY. $this->agr_trans_id. $this->vendor_trans_id. $this->status. $this->sign_time)\n ]\n ]);\n\n return json_decode($response->getBody());\n }", "title": "" }, { "docid": "43e437e96cc6b7a0ab8ea28dc4a508d5", "score": "0.5355373", "text": "function paypal_ipn()\n {\n if ($this->paypal->validate_ipn() == true) {\n\n $payment_id = $_POST['custom'];\n $payment = $this->db->get_where('package_payment',array('package_payment_id' => $payment_id))->row();\n $data['payment_details'] = json_encode($_POST);\n $data['purchase_datetime'] = time();\n $data['payment_code'] = date('Ym', $data['purchase_datetime']) . $payment_id;\n $data['payment_timestamp'] = time();\n $data['payment_type'] = 'Paypal';\n $data['payment_status'] = 'paid';\n $data['expire'] = 'no';\n $this->db->where('package_payment_id', $payment_id);\n $this->db->update('package_payment', $data);\n\n $prev_express_interest = $this->db->get_where('member', array('member_id' => $payment->member_id))->row()->express_interest;\n $prev_direct_messages = $this->db->get_where('member', array('member_id' => $payment->member_id))->row()->direct_messages;\n $prev_photo_gallery = $this->db->get_where('member', array('member_id' => $payment->member_id))->row()->photo_gallery;\n\n $data1['membership'] = 2;\n $data1['express_interest'] = $prev_express_interest + $this->db->get_where('plan', array('plan_id' => $payment->plan_id))->row()->express_interest;\n $data1['direct_messages'] = $prev_direct_messages + $this->db->get_where('plan', array('plan_id' => $payment->plan_id))->row()->direct_messages;\n $data1['photo_gallery'] = $prev_photo_gallery + $this->db->get_where('plan', array('plan_id' => $payment->plan_id))->row()->photo_gallery;\n\n $package_info[] = array('current_package' => $this->Crud_model->get_type_name_by_id('plan', $payment->plan_id),\n 'package_price' => $this->Crud_model->get_type_name_by_id('plan', $payment->plan_id, 'amount'),\n 'payment_type' => $data['payment_type'],\n );\n $data1['package_info'] = json_encode($package_info);\n\n $this->db->where('member_id', $payment->member_id);\n $this->db->update('member', $data1);\n recache();\n\n if ($this->Email_model->subscruption_email('member', $payment->member_id, $payment->plan_id)) {\n //echo 'email_sent';\n } else {\n //echo 'email_not_sent';\n $this->session->set_flashdata('alert', 'not_sent');\n }\n }\n }", "title": "" }, { "docid": "5d4f544d2aa2d5c087992d69e627ed7e", "score": "0.5344284", "text": "public function getPendingInvoices(){\n\t \t $this->db->select(\"OSC.*, OC.invoice_no, OC.order_id, CO.order_number\");\n\t\t\t$this->db->from(\"order_challan_shipping AS OSC\");\n\t\t\t$this->db->join('order_challan AS OC', 'OC.challan_no = OSC.challan_no');\t\n\t\t\t$this->db->join('client_orders AS CO', 'CO.order_id = OC.order_id');\t\n\t\t\t$this->db->where(\"OSC.account_confirmed\",\"0\");\n\t\t\t$this->db->where(\"OC.invoice_no <>\",\"0\");\n\t\t\t$this->db->group_by('OC.challan_no');\t\t\t\n\t\t\t$this->db->order_by('OSC.id DESC');\n\t\t\t$query_pending_invoices = $this->db->get();\n\t\t\t//echo $this->db->last_query();die;\n\t\t\tif($query_pending_invoices->num_rows()>0)\n\t\t\t{\n\t\t\t\treturn $query_pending_invoices->result_array();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn array();\n\t\t\t}\n\t }", "title": "" }, { "docid": "d44a24b26a1b1a156e69abaf18165c08", "score": "0.5319937", "text": "function afterPaypalNotification($txnId){\r\n //for example, you could now mark an order as paid, a subscription, or give the user premium access.\r\n //retrieve the transaction using the txnId passed and apply whatever logic your site needs.\r\n \r\n $transaction = ClassRegistry::init('PaypalIpn.InstantPaymentNotification')->findById($txnId);\r\n $this->log(\"transsaction: \" . $transaction['InstantPaymentNotification']['id'] . \r\n \" Order ID: \" . $transaction['InstantPaymentNotification']['custom'], 'paypal');\r\n\r\n //Tip: be sure to check the payment_status is complete because failure transactions \r\n // are also saved to your database for review.\r\n\r\n if($transaction['InstantPaymentNotification']['payment_status'] == 'Completed'){\r\n App::import('Model', 'Order');\r\n $thisOrder = new Order;\r\n $thisOrder->read(null, $transaction['InstantPaymentNotification']['custom']);\r\n\t\t\t$thisOrder->set(array('is_paid' => 1, 'status_id' =>TYPE_ORDER_PAID));\r\n\t\t\t$thisOrder->save();\r\n\r\n $thisOrder->unbindModel(array('belongsTo' => array('Status', 'Invoice')));\r\n\t\t$thisOrder->User->unbindModel(array(\r\n\t\t\t'hasAndBelongsToMany' => array('Group'),\r\n\t\t\t'hasMany' => array('Contact', 'Order'),\r\n\t\t\t'hasOne' => array('Supplier')\r\n\t\t));\r\n\t\t$thisOrder->hasAndBelongsToMany['Product']['fields'] = array('id', 'name', 'serial_no');\r\n\t\t$thisOrder->Product->unbindModel(array(\r\n\t\t\t\t'hasMany' => array('Media', 'Document', 'Feature'),\r\n\t\t\t\t'hasAndBelongsToMany' => array('Category', 'Type')\r\n\t\t));\r\n\t\t$thisOrder->Product->hasMany['Image']['conditions']['is_default'] = 1;\r\n\r\n\t\t$params = array(\r\n\t\t\t\t'conditions' => array(\r\n\t\t\t\t\t'Order.id' => $transaction['InstantPaymentNotification']['custom'],\r\n\t\t\t\t\t'Order.status_id' => TYPE_ORDER_PAID\r\n\t\t\t\t),\r\n\t\t\t\t'recursive' => 2\r\n\t\t);\r\n\t\tif ($order = $thisOrder->find('first', $params)) {\r\n\t\t\t$this->sendPaymentEmail($order);\r\n\t\t}\r\n }\r\n else {\r\n //Oh no, better look at this transaction to determine what to do; like email a decline letter.\r\n }\r\n }", "title": "" }, { "docid": "bec524cd4121673b946fd8a411896539", "score": "0.5313567", "text": "function ipn(){\n\t\t$paypalInfo\t= $this->input->post();\n\n\t\t$data['user_id'] = $paypalInfo['custom'];\n\t\t$data['product_id']\t= $paypalInfo[\"item_number\"];\n\t\t$data['txn_id']\t= $paypalInfo[\"txn_id\"];\n\t\t$data['payment_gross'] = $paypalInfo[\"payment_gross\"];\n\t\t$data['currency_code'] = $paypalInfo[\"mc_currency\"];\n\t\t$data['payer_email'] = $paypalInfo[\"payer_email\"];\n\t\t$data['payment_status']\t= $paypalInfo[\"payment_status\"];\n\n\t\t$paypalURL = $this->paypal_lib->paypal_url;\t\t\n\t\t$result\t= $this->paypal_lib->curlPost($paypalURL,$paypalInfo);\n\t\t\n\t\t//redirect(base_url());\n\t\t//check whether the payment is verified\n\t\tif(preg_match(\"/VERIFIED/i\",$result)){\n\t\t //insert the transaction data into the database\n\t\t\t//$this->product->insertTransaction($data);\n\t\t \n\t\t}\n }", "title": "" }, { "docid": "3dd39d87d6a93dbe8e842f22ae6a17f6", "score": "0.53121305", "text": "function _get_uniq_proformainvoiceno($transid,$is_pnh = 0)\r\n\t{\r\n\t\twhile(true)\r\n\t\t{\r\n\t\t\t$new_p_invno = $this->db->query(\"select max(p_invoice_no)+1 as p_invoice_no from t_trans_proforma_invoice_marker where is_pnh = ? \",$is_pnh)->row()->p_invoice_no;\r\n\t\t\t@$this->db->query(\"insert into t_trans_proforma_invoice_marker (transid,p_invoice_no,is_pnh,created_on) values(?,?,?,now())\",array($transid,$new_p_invno,$is_pnh));\r\n\t\t\tif($this->db->affected_rows() == 1)\r\n\t\t\t{\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn $new_p_invno;\r\n\t}", "title": "" }, { "docid": "0e0318810c8b0156581877a48763c382", "score": "0.5310465", "text": "private function processIPN()\n\t{\n\t\t$log = e107::getLog();\n\t\t$db = e107::getDb();\n\t\t$tp = e107::getParser();\n\n\t\t$logging = (bool) $this->plugPrefs['logging_failed_ipn'];\n\t\t$validate_email = (bool) $this->plugPrefs['validate_email'];\n\n\t\t// Check whether the payment_status is Completed.\n\t\t$payment_status = vartrue($_POST['payment_status']);\n\n\t\tif(strtoupper($payment_status) != 'COMPLETED')\n\t\t{\n\t\t\tif($logging)\n\t\t\t{\n\t\t\t\t$log->add('Status is not completed', $_POST, E_LOG_INFORMATIVE, 'IPN');\n\t\t\t}\n\t\t\texit;\n\t\t}\n\n\t\t// Check that txn_id has not been previously processed.\n\t\t$txn_id = vartrue($_POST['txn_id'], 0);\n\t\t$exists = $db->count('paypal_donation_ipn', '(*)', 'pdi_txn_id = \"' . $tp->toDB($txn_id) . '\" ');\n\n\t\tif($exists > 0)\n\t\t{\n\t\t\tif($logging)\n\t\t\t{\n\t\t\t\t$log->add('Existing TXN ID', $_POST, E_LOG_INFORMATIVE, 'IPN');\n\t\t\t}\n\t\t\texit;\n\t\t}\n\n\t\t// Check that receiver_email is your Primary PayPal email.\n\t\tif($validate_email)\n\t\t{\n\t\t\t$receiver_email = vartrue($_POST['receiver_email']);\n\n\t\t\tif((int) $this->plugPrefs['sandbox_mode'] === 1)\n\t\t\t{\n\t\t\t\t$business = $this->plugPrefs['email_sandbox'];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$business = $this->plugPrefs['email_live'];\n\t\t\t}\n\n\t\t\tif($receiver_email != $business)\n\t\t\t{\n\t\t\t\tif($logging)\n\t\t\t\t{\n\t\t\t\t\t$log->add('Invalid receiver email', $_POST, E_LOG_INFORMATIVE, 'IPN');\n\t\t\t\t}\n\t\t\t\texit;\n\t\t\t}\n\t\t}\n\n\t\t// Check that the \"custom\" value is a valid menu item.\n\t\t$custom = vartrue($_POST['custom'], '');\n\t\t$segments = explode('|', $custom);\n\n\t\t$pd_id = (int) $segments[0];\n\t\t$exists = $db->count('paypal_donation', '(*)', 'pd_id = ' . $pd_id . ' ');\n\n\t\tif($exists == 0)\n\t\t{\n\t\t\tif($logging)\n\t\t\t{\n\t\t\t\t$data = array(\n\t\t\t\t\t'POST' => $_POST,\n\t\t\t\t\t'SEGMENTS' => $segments,\n\t\t\t\t\t'PD_ID' => $pd_id,\n\t\t\t\t);\n\n\t\t\t\t$log->add('Invalid menu item', $data, E_LOG_INFORMATIVE, 'IPN');\n\t\t\t}\n\t\t\texit;\n\t\t}\n\n\t\t$pdi_user = vartrue($segments[1], 0);\n\t\t$pdi_mc_gross = vartrue($_POST['mc_gross'], 0);\n\t\t$pdi_mc_fee = vartrue($_POST['mc_fee'], 0);\n\t\t$pdi_mc_currency = vartrue($_POST['mc_currency'], '');\n\t\t$pdi_payment_date = vartrue($_POST['payment_date'], '');\n\t\t$pdi_serialized_ipn = serialize($_POST);\n\n\t\t// Process IPN.\n\t\t$data = array(\n\t\t\t'pdi_donation' => (int) $pd_id,\n\t\t\t'pdi_user' => (int) $pdi_user,\n\t\t\t'pdi_txn_id' => $tp->toDB($txn_id),\n\t\t\t'pdi_mc_gross' => (float) $pdi_mc_gross,\n\t\t\t'pdi_mc_fee' => (float) $pdi_mc_fee,\n\t\t\t'pdi_mc_currency' => $tp->toDB($pdi_mc_currency),\n\t\t\t'pdi_payment_date' => strtotime($pdi_payment_date),\n\t\t\t'pdi_cancelled' => 0,\n\t\t\t'pdi_serialized_ipn' => $pdi_serialized_ipn,\n\t\t);\n\n\t\t$id = $db->insert('paypal_donation_ipn', $data);\n\n\t\tif($id)\n\t\t{\n\t\t\t$event = e107::getEvent();\n\t\t\t$event->trigger('paypal-donation-ipn-insert', $id);\n\t\t\texit;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif($logging)\n\t\t\t{\n\t\t\t\t$log->add('SQL Insert', $_POST, E_LOG_INFORMATIVE, 'IPN');\n\t\t\t}\n\t\t\texit;\n\t\t}\n\t}", "title": "" }, { "docid": "68bce53f1b0b502fe2db8fa7d0b70078", "score": "0.52879256", "text": "public function getPendingPayments() {\n\n $userClient = Auth::user()->clientID;\n \t\n if($userClient == 1) {\n $result = DB::table('request_logs')\n ->join('transactions', 'transactions.requestlogID', 'request_logs.requestlogID')\n ->join('client_channels_reference', 'client_channels_reference.channel_ref_id', 'transactions.channel_ref_id')\n ->join('client_channels', 'client_channels.client_channelID', 'client_channels_reference.client_channelID')\n ->join('clients', 'clients.clientID', 'client_channels.clientID')\n ->where('overalStatus', 121)\n ->count();\n } else {\n\n $result = DB::table('request_logs')\n ->join('transactions', 'transactions.requestlogID', 'request_logs.requestlogID')\n ->join('client_channels_reference', 'client_channels_reference.channel_ref_id', 'transactions.channel_ref_id')\n ->join('client_channels', 'client_channels.client_channelID', 'client_channels_reference.client_channelID')\n ->join('clients', 'clients.clientID', 'client_channels.clientID')\n ->where('overalStatus', 121)\n ->where('client_channels_reference.clientID', '=', $userClient)\n ->orWhere('client_channels_reference.destinationClientID', '=', $userClient)\n ->count();\n }\n\n \treturn $result;\n }", "title": "" }, { "docid": "a1d71380ec9b1dbf74eebc378e441d3b", "score": "0.52690214", "text": "public function findByPendingCallNotifications() {\n\t\t$callTolerence = 10;\n\t\t$callTolerenceTime = mktime(date(\"H\"), date(\"i\")+$callTolerence, 0, date(\"m\"), date(\"d\"), date(\"Y\"));\n\t\t$query = 'SELECT n FROM AcmeTaskBundle:Notification n WHERE n.datetime <= :callTolerenceTime AND n.push = 1 AND n.pushConfirm = 0 AND n.sms = 0 AND n.voicecall = 0 ORDER BY n.datetime';\n\t\t\n\t\ttry{\n\t\t\treturn $this->getEntityManager()\n\t\t\t\t->createQuery($query)\n\t\t\t\t->setParameter('callTolerenceTime', $callTolerenceTime)\n\t\t\t\t->getResult();\n\t\t} catch (\\Doctrine\\ORM\\NoResultException $e) {\n return null;\n \t}\n\t}", "title": "" }, { "docid": "3d974dbbae6efc3a9f733f210efff474", "score": "0.5266476", "text": "function _get_uniq_invoiceno($transid,$is_pnh = 0)\r\n\t{\r\n\t\twhile(true)\r\n\t\t{\r\n\t\t\t$new_invno = $this->db->query(\"select max(invoice_no)+1 as invoice_no from t_trans_invoice_marker where is_pnh = ? \",$is_pnh)->row()->invoice_no;\r\n\t\t\t@$this->db->query(\"insert into t_trans_invoice_marker (transid,invoice_no,is_pnh,created_on) values(?,?,?,now())\",array($transid,$new_invno,$is_pnh));\r\n\t\t\tif($this->db->affected_rows() == 1)\r\n\t\t\t{\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn $new_invno;\r\n\t}", "title": "" }, { "docid": "bc1f2348abd13bf55a602dcf4850e7e4", "score": "0.5264122", "text": "public function listNotificationInterests( );", "title": "" }, { "docid": "ec844abb4a3206948fd89c57d27108dc", "score": "0.52225757", "text": "public function indexAction() {\r\n require Mage::getBaseDir('lib').'/bitpay/bp_lib.php';\r\n Mage::log(file_get_contents('php://input'), null, 'bitpay.log');\r\n $apiKey = Mage::getStoreConfig('payment/Bitcoins/api_key');\r\n $invoice = bpVerifyNotification($apiKey);\r\n\r\n if (is_string($invoice))\r\n Mage::log(\"bitpay callback error: $invoice\", null, 'bitpay.log');\r\n else {\r\n // get the order\r\n if (isset($invoice['posData']['quoteId'])) {\r\n $quoteId = $invoice['posData']['quoteId'];\r\n $order = Mage::getModel('sales/order')->load($quoteId, 'quote_id');\r\n } else {\r\n $orderId = $invoice['posData']['orderId'];\r\n $order = Mage::getModel('sales/order')->loadByIncrementId($orderId);\r\n }\r\n\r\n // save the ipn so that we can find it when the user clicks \"Place Order\"\r\n Mage::getModel('Bitcoins/ipn')->Record($invoice); \r\n\r\n // update the order if it exists already\r\n if ($order->getId())\r\n switch($invoice['status']) {\r\n case 'paid':\r\n $method = Mage::getModel('Bitcoins/paymentMethod');\r\n $method->MarkOrderPaid($order);\r\n break;\r\n case 'confirmed':\t\t\t\t\t\t\t\r\n case 'complete':\t\t\t\t\t\r\n $method = Mage::getModel('Bitcoins/paymentMethod');\r\n $method->MarkOrderComplete($order);\r\n break;\r\n case 'invalid':\r\n $method = Mage::getModel('Bitcoins/paymentMethod');\r\n $method->MarkOrderCancelled($order);\r\n break;\r\n }\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "c0023fd5e418cc7d5913e8f284615363", "score": "0.5211985", "text": "function verify_and_retrieve_payment()\r\n\t{\r\n\t\t$email = $_GET['ipn_email']; \r\n\t\t$header = \"\"; \r\n\t\t$emailtext = \"\"; \r\n\t\t// Read the post from PayPal and add 'cmd' \r\n\t\t$req = 'cmd=_notify-validate';\r\n\r\n\t\tif(function_exists('get_magic_quotes_gpc')) \r\n\t\t{ \r\n\t\t\t$get_magic_quotes_exits = true;\r\n\t\t}\r\n\r\n\t\tforeach ($_POST as $key => $value)\r\n\t\t// Handle escape characters, which depends on setting of magic quotes \r\n\t\t{ \r\n\t\t\tif($get_magic_quotes_exists == true && get_magic_quotes_gpc() == 1) \r\n\t\t\t{ \r\n\t\t\t\t$value = urlencode(stripslashes($value)); \r\n\t\t\t} \r\n\t\t\telse \r\n\t\t\t{ \r\n\t\t\t\t$value = urlencode($value); \r\n\t\t\t} \r\n\t\t \r\n\t\t\t$req .= \"&$key=$value\"; \r\n\t\t} // Post back to PayPal to validate \r\n\t\t \r\n\t\t$header .= \"POST /cgi-bin/webscr HTTP/1.0\\r\\n\"; \r\n\t\t$header .= \"Content-Type: application/x-www-form-urlencoded\\r\\n\"; \r\n\t\t$header .= \"Content-Length: \" . strlen($req) . \"\\r\\n\\r\\n\"; \r\n\r\n\t\t$fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30); \r\n\r\n\t\t // Process validation from PayPal\r\n\t\tif (!$fp) \r\n\t\t{ // HTTP ERROR \r\n\t\t} \r\n\t\telse \r\n\t\t{ // NO HTTP ERROR \r\n\t\t\tfputs ($fp, $header . $req); \r\n\t\t \r\n\t\t\twhile (!feof($fp)) \r\n\t\t\t{ \r\n\t\t\t\t$res = fgets ($fp, 1024); \r\n\t\t\t\tif (strcmp ($res, \"VERIFIED\") == 0) \r\n\t\t\t\t{ \r\n\t\t\t\t\t// TODO: // Check the payment_status is Completed \r\n\t\t\t\t\t// Check that txn_id has not been previously processed \r\n\t\t\t\t\t// Check that receiver_email is your Primary PayPal email \r\n\t\t\t\t\t// Check that payment_amount/payment_currency are correct \r\n\t\t\t\t\t// Process payment \r\n\t\t\t\t\t// If 'VERIFIED', send an email of IPN variables and values to the \r\n\t\t\t\t\t// specified email address \r\n\t\t \r\n\t\t\t\t\t$f_result = array( true, $_POST );\r\n\t\t\t\t\t\r\n\t\t\t\t\t//foreach ($_POST as $key => $value)\r\n\t\t\t\t\t//{ \r\n\t\t\t\t\t\t//$emailtext .= $key . \" = \" .$value .\"\\n\\n\";\r\n\t\t\t\t\t//} \r\n\t\t\t \r\n\t\t\t\t\t//mail($email, \"Live-VERIFIED IPN\", $emailtext . \"\\n\\n\" . $req); \r\n\t\t\t\t} \r\n\t\t\t\telse if (strcmp ($res, \"INVALID\") == 0) \r\n\t\t\t\t{ // If 'INVALID', send an email. TODO: Log for manual investigation. \r\n\t\t\t\t\t//foreach ($_POST as $key => $value)\r\n\t\t\t\t\t//{ \r\n\t\t\t\t\t//\t$emailtext .= $key . \" = \" .$value .\"\\n\\n\"; \r\n\t\t\t\t\t//} \r\n\t\t\t\t\t\r\n\t\t\t\t\t//mail($email, \"Live-INVALID IPN\", $emailtext . \"\\n\\n\" . $req); \r\n\t\t\t\t\t$f_result = array( false, $_POST );\r\n\t\t\t\t} \r\n\t\t\t}\r\n\t\t \r\n\t\t\tfclose ($fp); \r\n\t\t}\r\n\t\r\n\t\treturn $f_result;\r\n\t}", "title": "" }, { "docid": "e274eccdde6c337e4df878d3a73cbeb7", "score": "0.5211573", "text": "function payment($userid = 0, $invoiceid = 0, $invoicetype = 'subscription', $amount = 0, $method = 'account', $gateway = '', $gatewaytxn = '', $isrefund = false, $originalgatewaytxn = '', $silentmode = false)\n {\n global $ilance, $show, $phrase, $page_title, $area_title, $ilconfig, $ilpage;\n\t\t$selectextrafields = '';\n\n ($apihook = $ilance->api('process_debit_payment_start')) ? eval($apihook) : false;\n \n // #### INSTANT PAYMENT NOTIFICATION HANDLER ###########################\n if ($method == 'ipn')\n {\n $sql = $ilance->db->query(\"\n SELECT invoiceid, invoicetype, description, amount, paid, duedate, paiddate, createdate, isif, isfvf, isescrowfee, projectid, buynowid, isenhancementfee, transactionid, projectid\" . $selectextrafields. \"\n FROM \" . DB_PREFIX . \"invoices\n WHERE invoiceid = '\" . intval($invoiceid) . \"'\n AND user_id = '\" . intval($userid) . \"'\n AND status = 'unpaid'\n \", 0, null, __FILE__, __LINE__);\n if ($ilance->db->num_rows($sql) > 0)\n {\n $res_invoice = $ilance->db->fetch_array($sql, DB_ASSOC);\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"invoices\n SET paid = '\" . $ilance->db->escape_string($amount) . \"',\n status = 'paid',\n paiddate = '\" . DATETIME24H . \"',\n paymethod = '\" . $ilance->db->escape_string($gateway) . \"',\n custommessage = '\" . $ilance->db->escape_string($gatewaytxn) . \"'\n WHERE invoiceid = '\" . intval($invoiceid) . \"'\n AND user_id = '\" . intval($userid) . \"'\n \", 0, null, __FILE__, __LINE__);\n $res_invoice['paiddate'] = DATETIME24H;\n if ($res_invoice['isif'] == '1')\n {\n // this is an insertion fee.. update auction listing table\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"projects\n SET isifpaid = '1'\n WHERE ifinvoiceid = '\" . intval($invoiceid) . \"'\n \", 0, null, __FILE__, __LINE__);\n if (fetch_auction('status', $res_invoice['projectid']) == 'frozen' AND ((fetch_auction('isenhancementfeepaid', $res_invoice['projectid']) == '1' AND fetch_auction('enhancementfeeinvoiceid', $res_invoice['projectid']) != '0') OR (fetch_auction('isenhancementfeepaid', $res_invoice['projectid']) == '0' AND fetch_auction('enhancementfeeinvoiceid', $res_invoice['projectid']) == '0') ))\n {\n $sql_date = '';\n $sql = $ilance->db->query(\"\n SELECT date_starts, date_end, featured_date\n FROM \" . DB_PREFIX . \"projects\n WHERE project_id = '\" . $res_invoice['projectid'] . \"'\n LIMIT 1\n \", 0, null, __FILE__, __LINE__);\n $res = $ilance->db->fetch_array($sql, DB_ASSOC);\n if (strtotime($res['date_starts']) < strtotime(DATETIME24H))\n {\n $date_starts = strtotime($res['date_starts']);\n $date_end = strtotime($res['date_end']);\n $auction_time = $date_end - $date_starts;\n $date_starts = DATETIME24H;\n $date_end = date(\"Y-m-d H:i:s\", strtotime(DATETIME24H) + $auction_time);\n $sql_date = \" ,date_starts = '\" . $date_starts .\"', date_end = '\" . $date_end .\"'\";\n $sql_date .= ($res['featured_date'] != '0000-00-00 00:00:00') ? \" , featured_date = '\" . DATETIME24H . \"'\" : \"\";\n }\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"projects\n SET status = 'open'\n $sql_date\n WHERE project_id = '\" . intval($res_invoice['projectid']) . \"'\n \", 0, null, __FILE__, __LINE__);\n \t$ilance->referral->update_referral_action('postauction', $userid);\n \t$cid = fetch_auction('cid', intval($res_invoice['projectid']));\n \t$state = fetch_auction('project_state', intval($res_invoice['projectid']));\n \t$ilance->categories->build_category_count($cid, 'add', \"insert_\" . $state . \"_auction(): adding increment count category id $cid\");\n }\n }\n else if ($res_invoice['isenhancementfee'] == '1')\n {\n // this is an enhancements fee.. update auction listing table\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"projects\n SET isenhancementfeepaid = '1'\n WHERE enhancementfeeinvoiceid = '\" . intval($invoiceid) . \"'\n \", 0, null, __FILE__, __LINE__);\n if (fetch_auction('status', $res_invoice['projectid']) == 'frozen' AND ((fetch_auction('isifpaid', $res_invoice['projectid']) == '1' AND fetch_auction('ifinvoiceid', $res_invoice['projectid']) != '0') OR (fetch_auction('isifpaid', $res_invoice['projectid']) == '0' AND fetch_auction('ifinvoiceid', $res_invoice['projectid']) == '0') ))\n {\n $sql_date = '';\n $sql = $ilance->db->query(\"\n SELECT date_starts, date_end, featured_date\n FROM \" . DB_PREFIX . \"projects\n WHERE project_id = '\" . $res_invoice['projectid'] . \"'\n LIMIT 1\n \", 0, null, __FILE__, __LINE__);\n $res = $ilance->db->fetch_array($sql, DB_ASSOC);\n if (strtotime($res['date_starts']) < strtotime(DATETIME24H))\n {\n $date_starts = strtotime($res['date_starts']);\n $date_end = strtotime($res['date_end']);\n $auction_time = $date_end - $date_starts;\n $date_starts = DATETIME24H;\n $date_end = date(\"Y-m-d H:i:s\", strtotime(DATETIME24H) + $auction_time);\n $sql_date = \" ,date_starts = '\" . $date_starts .\"', date_end = '\" . $date_end .\"'\";\n $sql_date .= ($res['featured_date'] != '0000-00-00 00:00:00') ? \" ,featured_date = '\" . DATETIME24H . \"'\" : \"\";\n }\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"projects\n SET status = 'open'\n $sql_date\n WHERE project_id = '\" . intval($res_invoice['projectid']) . \"'\n \", 0, null, __FILE__, __LINE__);\n \t$ilance->referral->update_referral_action('postauction', $userid);\n \t$cid = fetch_auction('cid', intval($res_invoice['projectid']));\n \t$state = fetch_auction('project_state', intval($res_invoice['projectid']));\n \t$ilance->categories->build_category_count($cid, 'add', \"insert_\" . $state . \"_auction(): adding increment count category id $cid\");\n }\n } \n else if ($res_invoice['isfvf'] == '1')\n {\n // this is a final value fee.. update auction listing table\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"projects\n SET isfvfpaid = '1'\n WHERE fvfinvoiceid = '\" . intval($invoiceid) . \"'\n \", 0, null, __FILE__, __LINE__);\n }\n else if ($res_invoice['isescrowfee'] == '1')\n {\n // this is a final value fee.. update auction listing table\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"projects_escrow\n SET isfeepaid = '1'\n WHERE project_id = '\" . $res_invoice['projectid'] . \"'\n AND feeinvoiceid = '\" . $invoiceid . \"'\n \", 0, null, __FILE__, __LINE__);\n \n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"projects_escrow\n SET isfee2paid = '1'\n WHERE project_id = '\" . $res_invoice['projectid'] . \"'\n AND fee2invoiceid = '\" . $invoiceid . \"'\n \", 0, null, __FILE__, __LINE__);\n }\n \n ($apihook = $ilance->api('process_debit_payment_ipn_start')) ? eval($apihook) : false;\n \n // this could also be a payment from the \"seller\" for an unpaid \"buy now\" escrow fee OR unpaid \"buy now\" fvf.\n // let's check the buynow order table to see if we have a matching invoice to update as \"ispaid\"..\n // this scenerio would kick in once a buyer or seller deposits funds, this script runs and tries to pay the unpaid fees automatically..\n // at the same time we need to update the buy now order table so the presentation layer knows what's paid, what's not.\n $buynowcheck = $ilance->db->query(\"\n SELECT escrowfeeinvoiceid, escrowfeebuyerinvoiceid, fvfinvoiceid, fvfbuyerinvoiceid\n FROM \" . DB_PREFIX . \"buynow_orders\n WHERE project_id = '\" . $res_invoice['projectid'] . \"'\n AND orderid = '\" . $res_invoice['buynowid'] . \"'\n LIMIT 1\n \", 0, null, __FILE__, __LINE__);\n if ($ilance->db->num_rows($buynowcheck) > 0)\n {\n $resbuynow = $ilance->db->fetch_array($buynowcheck, DB_ASSOC);\n if ($res_invoice['invoiceid'] == $resbuynow['escrowfeeinvoiceid'])\n {\n // invoice being paid is from seller paying a buy now escrow fee\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"buynow_orders\n SET isescrowfeepaid = '1'\n WHERE orderid = '\" . $res_invoice['buynowid'] . \"'\n \", 0, null, __FILE__, __LINE__);\n }\n else if ($res_invoice['invoiceid'] == $resbuynow['escrowfeebuyerinvoiceid'])\n {\n // invoice being paid is from buyer paying a buy now escrow fee\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"buynow_orders\n SET isescrowfeebuyerpaid = '1'\n WHERE orderid = '\" . $res_invoice['buynowid'] . \"'\n \", 0, null, __FILE__, __LINE__);\n }\n else if ($res_invoice['invoiceid'] == $resbuynow['fvfinvoiceid'])\n {\n // invoice being paid is from seller paying a buy now fvf\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"buynow_orders\n SET isfvfpaid = '1'\n WHERE orderid = '\" . $res_invoice['buynowid'] . \"'\n \", 0, null, __FILE__, __LINE__);\n }\n else if ($res_invoice['invoiceid'] == $resbuynow['fvfbuyerinvoiceid'])\n {\n // invoice being paid is from buyer paying a buy now fvf\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"buynow_orders\n SET isfvfbuyerpaid = '1'\n WHERE orderid = '\" . $res_invoice['buynowid'] . \"'\n \", 0, null, __FILE__, __LINE__);\n }\n }\n // track income spent\n $ilance->accounting_payment->insert_income_spent(intval($userid), sprintf(\"%01.2f\", $amount), 'credit');\n $ilance->template->templateregistry['customquestions'] = $res_invoice['description'];\n $description = $ilance->template->parse_template_phrases('customquestions');\n $existing = array(\n '{{provider}}' => fetch_user('username', intval($userid)),\n '{{invoice_id}}' => intval($invoiceid),\n '{{invoice_amount}}' => $ilance->currency->format($amount),\n '{{duedate}}' => print_date($res_invoice['duedate'], $ilconfig['globalserverlocale_globaltimeformat'], 0, 0),\n '{{datepaid}}' => print_date($res_invoice['paiddate'], $ilconfig['globalserverlocale_globaltimeformat'], 0, 0),\n '{{description}}' => $description,\n '{{transactionid}}' => $res_invoice['transactionid'],\n );\n $ilance->email->mail = SITE_EMAIL;\n $ilance->email->slng = fetch_site_slng();\n $ilance->email->get('debit_fee_paid_online_account_admin');\t\t\n $ilance->email->set($existing);\n $ilance->email->send();\n $ilance->email->get('debit_fee_paid_online_account');\t\t\n $ilance->email->set($existing);\n $ilance->email->mail = fetch_user('email', intval($userid));\n $ilance->email->slng = fetch_user_slng(intval($userid));\n $ilance->email->send();\n return true;\n }\n return false;\n }\n // #### ONLINE ACCOUNT HANDLER #########################################\n else if ($method == 'account')\n {\n $sql_balance = $ilance->db->query(\"\n\t\t\t\tSELECT available_balance, total_balance\n\t\t\t\tFROM \" . DB_PREFIX . \"users\n\t\t\t\tWHERE user_id = '\" . intval($userid) . \"'\n \", 0, null, __FILE__, __LINE__);\n if ($ilance->db->num_rows($sql_balance) > 0)\n {\n $res_balance = $ilance->db->fetch_array($sql_balance, DB_ASSOC);\n if ($res_balance['available_balance'] >= $amount)\n {\n $avail_balance = $res_balance['available_balance'];\n $total_balance = $res_balance['total_balance'];\n $avail_balance_after = ($avail_balance - $amount);\n $total_balance_after = ($total_balance - $amount);\n $sql_invoice = $ilance->db->query(\"\n SELECT invoiceid, invoicetype, description, amount, paid, duedate, paiddate, createdate, isif, isfvf, isescrowfee, projectid, buynowid, transactionid, isenhancementfee\" . $selectextrafields .\"\n FROM \" . DB_PREFIX . \"invoices\n WHERE invoiceid = '\" . intval($invoiceid) . \"'\n AND user_id = '\" . intval($userid) . \"'\n AND status = 'unpaid'\n \", 0, null, __FILE__, __LINE__);\n if ($ilance->db->num_rows($sql_invoice) > 0)\n {\n $res_invoice = $ilance->db->fetch_array($sql_invoice, DB_ASSOC);\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"invoices\n SET paid = '\" . $ilance->db->escape_string($amount) . \"',\n status = 'paid',\n paiddate = '\" . DATETIME24H . \"'\n WHERE invoiceid = '\" . intval($invoiceid) . \"'\n AND user_id = '\" . intval($userid) . \"'\n AND invoicetype = '\" . $ilance->db->escape_string($invoicetype) . \"'\n \", 0, null, __FILE__, __LINE__);\n $res_invoice['paiddate'] = DATETIME24H;\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"users\n SET available_balance = '\" . $ilance->db->escape_string($avail_balance_after) . \"',\n total_balance = '\" . $ilance->db->escape_string($total_balance_after) . \"'\n WHERE user_id = '\" . intval($userid) . \"'\n \", 0, null, __FILE__, __LINE__);\n if ($res_invoice['isif'])\n {\n // this is an insertion fee.. update auction listing table\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"projects\n SET isifpaid = '1'\n WHERE ifinvoiceid = '\" . intval($invoiceid) . \"'\n \", 0, null, __FILE__, __LINE__);\n $sql = $ilance->db->query(\"\n SELECT date_starts, date_end, featured_date, status, isenhancementfeepaid, enhancementfeeinvoiceid, cid, project_state\n FROM \" . DB_PREFIX . \"projects\n WHERE ifinvoiceid = '\" . intval($invoiceid) . \"'\n LIMIT 1\n \", 0, null, __FILE__, __LINE__);\n $res = $ilance->db->fetch_array($sql, DB_ASSOC);\n if ($res['status'] == 'frozen' AND (($res['isenhancementfeepaid'] == '1' AND $res['enhancementfeeinvoiceid'] != '0') OR ($res['isenhancementfeepaid'] == '0' AND $res['enhancementfeeinvoiceid'] == '0') ))\n {\n $sql_date = '';\n if (strtotime($res['date_starts']) < strtotime(DATETIME24H))\n {\n $date_starts = strtotime($res['date_starts']);\n $date_end = strtotime($res['date_end']);\n $auction_time = $date_end - $date_starts;\n $date_starts = DATETIME24H;\n $date_end = date(\"Y-m-d H:i:s\", strtotime(DATETIME24H) + $auction_time);\n $sql_date = \" ,date_starts = '\" . $date_starts .\"', date_end = '\" . $date_end .\"'\";\n $sql_date .= ($res['featured_date'] != '0000-00-00 00:00:00') ? \" ,featured_date = '\" . DATETIME24H . \"'\" : \"\";\n }\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"projects\n SET status = 'open'\n $sql_date\n WHERE ifinvoiceid = '\" . intval($invoiceid) . \"'\n \", 0, null, __FILE__, __LINE__);\n $ilance->referral->update_referral_action('postauction', $userid);\n $ilance->categories->build_category_count($res['cid'], 'add', \"insert_\" . $res['project_state'] . \"_auction(): adding increment count category id \" . $res['cid']);\n }\n }\n if ($res_invoice['isenhancementfee'])\n {\n // this is an enhancements fee.. update auction listing table\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"projects\n SET isenhancementfeepaid = '1'\n WHERE enhancementfeeinvoiceid = '\" . intval($invoiceid) . \"'\n \", 0, null, __FILE__, __LINE__);\n $sql = $ilance->db->query(\"\n SELECT date_starts, date_end, featured_date, status, isifpaid, ifinvoiceid, cid, project_state\n FROM \" . DB_PREFIX . \"projects\n WHERE enhancementfeeinvoiceid = '\" . intval($invoiceid) . \"'\n LIMIT 1\n \", 0, null, __FILE__, __LINE__);\n $res = $ilance->db->fetch_array($sql, DB_ASSOC);\n if ($res['status'] == 'frozen' AND (($res['isifpaid'] == '1' AND $res['ifinvoiceid'] != '0') OR ($res['isifpaid'] == '0' AND $res['ifinvoiceid'] == '0') ))\n {\n $sql_date = '';\n if (strtotime($res['date_starts']) < strtotime(DATETIME24H))\n {\n $date_starts = strtotime($res['date_starts']);\n $date_end = strtotime($res['date_end']);\n $auction_time = $date_end - $date_starts;\n $date_starts = DATETIME24H;\n $date_end = date(\"Y-m-d H:i:s\", strtotime(DATETIME24H) + $auction_time);\n $sql_date = \" ,date_starts = '\" . $date_starts .\"', date_end = '\" . $date_end .\"'\";\n $sql_date .= ($res['featured_date'] != '0000-00-00 00:00:00') ? \" ,featured_date = '\" . DATETIME24H . \"'\" : \"\";\n }\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"projects\n SET status = 'open'\n $sql_date\n WHERE enhancementfeeinvoiceid = '\" . intval($invoiceid) . \"'\n \", 0, null, __FILE__, __LINE__);\n $ilance->referral->update_referral_action('postauction', $userid);\n $ilance->categories->build_category_count($res['cid'], 'add', \"insert_\" . $res['project_state'] . \"_auction(): adding increment count category id \" . $res['cid']);\n }\n }\n if ($res_invoice['isfvf'])\n {\n // this is a final value fee.. update auction listing table\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"projects\n SET isfvfpaid = '1'\n WHERE fvfinvoiceid = '\" . intval($invoiceid) . \"'\n \", 0, null, __FILE__, __LINE__);\n }\n if ($res_invoice['isescrowfee'])\n {\n // this is a final value fee.. update auction listing table\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"projects_escrow\n SET isfeepaid = '1'\n WHERE project_id = '\" . $res_invoice['projectid'] . \"'\n AND feeinvoiceid = '\" . $invoiceid . \"'\n \", 0, null, __FILE__, __LINE__);\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"projects_escrow\n SET isfee2paid = '1'\n WHERE project_id = '\" . $res_invoice['projectid'] . \"'\n AND fee2invoiceid = '\" . $invoiceid . \"'\n \", 0, null, __FILE__, __LINE__);\n }\n \n ($apihook = $ilance->api('process_debit_payment_account_start')) ? eval($apihook) : false;\n \n // this could also be a payment from the \"seller\" for an unpaid \"buy now\" escrow fee OR unpaid \"buy now\" fvf.\n // let's check the buynow order table to see if we have a matching invoice to update as \"ispaid\"..\n // this scenerio would kick in once a buyer or seller deposits funds, this script runs and tries to pay the unpaid fees automatically..\n // at the same time we need to update the buy now order table so the presentation layer knows what's paid, what's not.\n $buynowcheck = $ilance->db->query(\"\n SELECT orderid, escrowfeeinvoiceid, escrowfeebuyerinvoiceid, fvfinvoiceid, fvfbuyerinvoiceid\n FROM \" . DB_PREFIX . \"buynow_orders\n WHERE project_id = '\" . $res_invoice['projectid'] . \"'\n \", 0, null, __FILE__, __LINE__);\n if ($ilance->db->num_rows($buynowcheck) > 0)\n {\n while ($resbuynow = $ilance->db->fetch_array($buynowcheck, DB_ASSOC))\n {\n if ($res_invoice['invoiceid'] == $resbuynow['escrowfeeinvoiceid'])\n {\n // invoice being paid is from seller paying a buy now escrow fee\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"buynow_orders\n SET isescrowfeepaid = '1'\n WHERE orderid = '\" . $resbuynow['orderid'] . \"'\n \", 0, null, __FILE__, __LINE__);\n }\n else if ($res_invoice['invoiceid'] == $resbuynow['escrowfeebuyerinvoiceid'])\n {\n // invoice being paid is from buyer paying a buy now escrow fee\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"buynow_orders\n SET isescrowfeebuyerpaid = '1'\n WHERE orderid = '\" . $resbuynow['orderid'] . \"'\n \", 0, null, __FILE__, __LINE__);\n }\n else if ($res_invoice['invoiceid'] == $resbuynow['fvfinvoiceid'])\n {\n // invoice being paid is from seller paying a buy now fvf\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"buynow_orders\n SET isfvfpaid = '1'\n WHERE orderid = '\" . $resbuynow['orderid'] . \"'\n \", 0, null, __FILE__, __LINE__);\n }\n else if ($res_invoice['invoiceid'] == $resbuynow['fvfbuyerinvoiceid'])\n {\n // invoice being paid is from buyer paying a buy now fvf\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"buynow_orders\n SET isfvfbuyerpaid = '1'\n WHERE orderid = '\" . $resbuynow['orderid'] . \"'\n \", 0, null, __FILE__, __LINE__);\n }\n }\n }\n // track income spent\n $ilance->accounting_payment->insert_income_spent(intval($userid), sprintf(\"%01.2f\", $amount), 'credit');\n $ilance->template->templateregistry['customquestions'] = $res_invoice['description'];\n $description = $ilance->template->parse_template_phrases('customquestions');\n $existing = array(\n '{{provider}}' => $_SESSION['ilancedata']['user']['username'],\n '{{invoice_id}}' => intval($invoiceid),\n '{{invoice_amount}}' => $ilance->currency->format($amount),\n '{{duedate}}' => print_date($res_invoice['duedate'], $ilconfig['globalserverlocale_globaltimeformat'], 0, 0),\n '{{datepaid}}' => print_date($res_invoice['paiddate'], $ilconfig['globalserverlocale_globaltimeformat'], 0, 0),\n '{{description}}' => $description,\n '{{transactionid}}' => $res_invoice['transactionid'],\n );\n $ilance->email->mail = SITE_EMAIL;\n $ilance->email->slng = fetch_site_slng();\n $ilance->email->get('debit_fee_paid_online_account_admin');\t\t\n $ilance->email->set($existing);\n if ($silentmode == false)\n {\n $ilance->email->send();\n }\n $ilance->email->mail = $_SESSION['ilancedata']['user']['email'];\n $ilance->email->slng = $_SESSION['ilancedata']['user']['slng'];\n $ilance->email->get('debit_fee_paid_online_account');\t\t\n $ilance->email->set($existing);\n if ($silentmode == false)\n {\n $ilance->email->send();\n }\n if ($silentmode)\n {\n return true;\n }\n $area_title = '{_invoice_payment_complete_menu}';\n $page_title = SITE_NAME . ' - {_invoice_payment_complete_menu}';\n print_notice('{_invoice_payment_complete}', '{_your_invoice_has_been_paid_in_full}', $ilpage['accounting'], '{_my_account}');\n exit();\n }\n else\n {\n if ($silentmode)\n {\n return false;\n }\n $area_title = '{_invoice_payment_menu_denied_payment_does_not_belong_to_user}';\n $page_title = SITE_NAME . ' - {_invoice_payment_menu_denied_payment_does_not_belong_to_user}';\n print_notice('{_invoice_error}', '{_were_sorry_this_invoice_does_not_exist}'.\"<br /><br />\".'{_please_contact_customer_support}', $ilpage['accounting'], '{_my_account}');\n exit();\n }\n }\n else\n {\n if ($silentmode)\n {\n return false;\n }\n $area_title = '{_funds_not_available}';\n $page_title = SITE_NAME . ' - {_funds_not_available}';\n print_notice('{_invoice_payment_warning_insufficient_funds}', '{_were_sorry_this_invoice_can_not_be_paid_due_to_insufficient_funds}'.\"<br /><br />\".'{_please_contact_customer_support}', $ilpage['accounting'], '{_my_account}');\n exit();\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "7d36a23808df766a9a9080c06527a36f", "score": "0.5208223", "text": "function edd_listen_for_paynow_ipn() {\n\tglobal $edd_options;\n\n\t// Regular Paynow IPN\n\tif ( isset( $_GET['edd-paynow-listener'] ) && $_GET['edd-paynow-listener'] == 'IPN' ) {\n\t\tdo_action( 'edd_verify_paynow_ipn' );\n\t}\n}", "title": "" }, { "docid": "4092309da909b5da8cbd764a75d68f71", "score": "0.5202315", "text": "public function get_restock_notif_list($pro_id){\n\t\t$sql = \"SELECT *, SUM(qty_total) as total_pending FROM tbl_order, tbl_orditem WHERE tbl_order.order_id=tbl_orditem.order_id AND tbl_order.status='0' AND pro_id='$pro_id'\";\n\t\t$result = mysqli_query($this->db,$sql);\n\t\t$row = mysqli_fetch_assoc($result);\n\t\t$value = $row['total_pending'];\n \n\t\treturn $value;\n\t}", "title": "" }, { "docid": "d58c0ce023a3c50c01bfb9b6057b2ed7", "score": "0.51746804", "text": "function ipn()\r\n {\r\n $paypalInfo = $this->input->post(); \r\n\t\t $order_id= $paypalinfo['custom'];\r\n\t\t $payment_status=$paypalinfo['payment_status'];\r\n $paypalURL = $this->paypal_lib->paypal_url; \r\n $result = $this->paypal_lib->curlPost($paypalURL,$paypalInfo); \r\n //check whether the payment is verified\r\n if(preg_match(\"/VERIFIED/\",$result)){\r\n //insert the transaction data into the database\r\n $this->Order_model->insertTransaction($paypalInfo); \r\n }\r\n }", "title": "" }, { "docid": "feedf0efe9910164ec7e5d02af80b237", "score": "0.5169656", "text": "public function getIPNTransactionDetails(TPkgShopPaymentIPNRequest $oRequest);", "title": "" }, { "docid": "9e12cfd1d1f08a8e67b9de0172ec1901", "score": "0.51509714", "text": "public function get_company_paid_invoice() {\n $matches = array();\n $query_string = htmlspecialchars($_POST['q'], ENT_QUOTES, 'UTF-8');\n $company = $this->input->post('company');\n $result = $this->classtraineemodel->get_company_based_pay_invoice($this->tenant_id, $query_string, $company, 1);\n\n if ($result) {\n foreach ($result as $row) {\n $matches[] = array(\n 'key' => $row->invoice_id,//Course: ' . $row->crse_name . ', \n 'label' => $row->invoice_id . ' (Class: ' . $row->class_name . ')',\n 'value' => $row->invoice_id,\n );\n }\n }\n echo json_encode($matches);\n exit();\n }", "title": "" }, { "docid": "0a7b84cc41e1f5ce94fa1f30d0dfaf0d", "score": "0.51426226", "text": "public function testCIReturnPaymentShopIdInEachReciever()\n {\n $applane_integration = new ApplaneIntegrationControllerTest();\n $user_info = $applane_integration->getLoginUser();\n $access_token = $user_info['access_token'];\n $user_id = $user_info['user_id'];\n $type = $this->getContainer()->getParameter('ci_return_fee_payer');\n $shop_id = $this->getContainer()->getParameter('ci_return_eachreciever_shop_id');\n $item_type = $this->getContainer()->getParameter('item_type_shop');\n $paypal_service = $this->getContainer()->get('paypal_integration.payment_transaction');\n $fee_payer = $paypal_service->getPaypalFeePayer($type,$shop_id,$item_type);\n $expected_fee_payer = $this->getContainer()->getParameter('eachreciever');\n \n $this->assertEquals($expected_fee_payer,$fee_payer);\n }", "title": "" }, { "docid": "30223c168a9a48cf7d4c6cd7ffa29d6f", "score": "0.5136613", "text": "public function getAccountPendingPOs(){\n\t \t $this->db->select(\"PO.*, S.supl_comp, S.supl_conperson, S.supl_email, S.supl_phone, S.supl_mobile, S.supl_address, S.pan_no, CF.firm_name\");\n\t\t\t$this->db->from(\"purchase_orders AS PO\");\n\t\t\t$this->db->join(\"suppliers AS S\", \"S.supl_id = PO.supplier_id\");\n\t\t\t$this->db->join(\"company_firms AS CF \", \"CF.firm_id = PO.firm_id \");\n\t\t\t$this->db->where(\"PO.status\", 'Confirmed');\n\t\t\t$this->db->where(\"PO.account_confirmed\", '0');\n\t\t\t\n\t\t\t$query_pending_purchase_orders = $this->db->get();\n\t\t\t\n\t\t\t//echo $this->db->last_query();die;\n\t\t\tif($query_pending_purchase_orders->num_rows()>0)\n\t\t\t{\n\t\t\t\treturn $query_pending_purchase_orders->result_array();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn array();\n\t\t\t}\n\t }", "title": "" }, { "docid": "c6cee2bdb2f4f5da01d7e08d811f3e38", "score": "0.5125791", "text": "public function stripe_ipn(Request $request)\n {\n $stripe_token = $request->stripe_token;\n $order_details = Order::find($request->order_id);\n $payment_log_details = PaymentLogs::where('order_id',$request->order_id)->first();\n Stripe::setApiKey( get_static_option('stripe_secret_key') );\n\n if (!empty($stripe_token)){\n // charge customer with your amount\n $result = Charge::create(array(\n \"currency\" => get_static_option('site_global_currency'),\n \"amount\" => $order_details->package_price * 100, // amount in cents,\n 'source' => $stripe_token,\n 'description' => 'Payment From '. get_static_option('site_'.get_default_language().'_title').'. Order ID '.$order_details->id .', Payer Name: '.$payment_log_details->name.', Payer Email: '.$payment_log_details->email,\n ));\n }\n\n if ($result->status == 'succeeded'){\n $order_details->payment_status = 'complete';\n $order_details->save();\n \n PaymentLogs::where('order_id',$request->order_id)->update([\n 'transaction_id' => $result->balance_transaction,\n 'status' => 'complete'\n ]);\n //send mail to user\n Mail::to($payment_log_details->email)->send(New PaymentSuccess($payment_log_details));\n self::send_order_mail($order_details->id);\n return redirect()->route('frontend.order.payment.success',$request->order_id);\n }\n return redirect()->route('frontend.order.payment.cancel',$request->order_id);\n\n }", "title": "" }, { "docid": "f49e71f805b49dcadb973bf9a59eeed2", "score": "0.511497", "text": "public function get_company_notpaid_invoice($is_json = 0) {\n $matches = array();\n $query_string = htmlspecialchars($_POST['q'], ENT_QUOTES, 'UTF-8');\n $company = $this->input->post('company');\n $result = $this->classtraineemodel->get_company_based_pay_invoice($this->tenant_id, $query_string, $company, 0);\n if ($result) {\n foreach ($result as $row) {\n $matches[] = array(\n 'key' => $row->invoice_id,//Course: ' . $row->crse_name . ', \n 'label' => $row->invoice_id . ' (Class: ' . $row->class_name . ')',\n 'value' => $row->invoice_id,\n );\n }\n }\n if ($is_json == 1) {\n return $matches;\n } else {\n echo json_encode($matches);\n exit();\n }\n }", "title": "" }, { "docid": "f216288d3f20e68f584930aafb0898ab", "score": "0.51131517", "text": "public function run()\n {\n \n\n \\DB::table('pay_pal_ipns')->delete();\n \n \\DB::table('pay_pal_ipns')->insert(array (\n 0 => \n array (\n 'txn_id' => '0KE95881ED620491S',\n 'parent_ipn_id' => NULL,\n 'date_processed' => NULL,\n 'process_count' => 0,\n 'status' => 'UNPROCESSED',\n 'is_valid' => 1,\n 'is_sand_box' => 0,\n 'sales_message' => '{\"mc_gross\":\"11.24\",\"protection_eligibility\":\"Eligible\",\"for_auction\":\"true\",\"address_status\":\"confirmed\",\"item_number1\":\"111385463106\",\"tax\":\"0.74\",\"payer_id\":\"NHMEQCAQNV4VJ\",\"ebay_txn_id1\":\"1596375067001\",\"address_street\":\"120 Lake Carol Dr\",\"payment_date\":\"15:08:49 Dec 02, 2016 PST\",\"payment_status\":\"Completed\",\"charset\":\"UTF-8\",\"address_zip\":\"33411-2360\",\"mc_shipping\":\"0.00\",\"first_name\":\"Rafael\",\"mc_fee\":\"0.61\",\"auction_buyer_id\":\"radiwa\",\"address_country_code\":\"US\",\"address_name\":\"R A Dietsch\",\"notify_version\":\"3.8\",\"custom\":\"EBAY_EMSCX0000693467341012\",\"payer_status\":\"verified\",\"business\":\"itctflorida@gmail.com\",\"address_country\":\"United States\",\"num_cart_items\":\"1\",\"address_city\":\"Royal Palm Beach\",\"verify_sign\":\"Avil5zNgI4a7bYWDidXv4.tc0t6NAdXK14ftSEuNDZrfS-6HXDMG7jNC\",\"payer_email\":\"radiwastore@gmail.com\",\"txn_id\":\"0KE95881ED620491S\",\"payment_type\":\"instant\",\"payer_business_name\":\"Radiwa Store\",\"last_name\":\"Dietsch\",\"address_state\":\"FL\",\"item_name1\":\"Cheap International Calling Card $5 USD value. Instant PIN delivery! Phone card!\",\"receiver_email\":\"itctflorida@gmail.com\",\"payment_fee\":\"0.61\",\"quantity1\":\"3\",\"insurance_amount\":\"0.00\",\"receiver_id\":\"TNPCXAZWPE9YN\",\"txn_type\":\"cart\",\"item_name\":\"Cheap International Calling Card $5 USD value. Instant PIN delivery! Phone card!\",\"mc_gross_1\":\"10.50\",\"mc_currency\":\"USD\",\"item_number\":\"111385463106\",\"residence_country\":\"US\",\"transaction_subject\":\"\",\"payment_gross\":\"11.24\",\"ipn_track_id\":\"3ad600e1c82f7\"}',\n 'created_at' => '2017-01-17 10:21:58',\n 'updated_at' => '2017-01-17 10:21:58',\n ),\n ));\n \n \n }", "title": "" }, { "docid": "08ea791e6ea88008fd8f87afe4639713", "score": "0.5102066", "text": "static function getPaymentInvoiceHistory($invoice_id = null, $show_acknowledged = FALSE) {\n global $wpdb;\n if($invoice_id != null && !is_numeric($invoice_id)) {\n // probably not the cleanest way to avoid SQL injection...\n throw new DatabaseException(\"Ha! Nice try. Stop passing me junk. INV ID: \" . $invoice_id);\n }\n $where_clause = $invoice_id == null ? \"WHERE 1 = 1\" : \"WHERE id = $invoice_id\";\n $where_clause .= $show_acknowledged ? \"\" : \" AND acknowledged_date IS NULL\";\n $invoice_rs = $wpdb->get_results(\n \"SELECT i.id AS `invoice_id`, i.recipient_name, i.email AS `recipient_email`, \n i.payment_description, i.payment_amount AS `payment_requested`, i.lookup_key, i.acknowledged_date\n FROM wp_invoice i \n $where_clause\n ORDER BY i.id DESC\n LIMIT 100\" );\n \n if($wpdb->last_error) {\n throw new DatabaseException($wpdb->last_error);\n }\n\n // all transactions for those invoices matched above\n $transaction_rs = $wpdb->get_results(\n \"SELECT * FROM (\n SELECT tx.id AS `txn_id`, tx.invoice_id, tx.first_name, tx.last_name, tx.email, tx.vendor_tx_code, tx.payment_amount,\n txa.id AS `txn_auth_id`, txa.auth_status, txa.auth_status_detail, txa.card_type, txa.last_4_digits, txa.processed_date, txa.created_date\n FROM wp_sagepay_transaction tx\n INNER JOIN (SELECT id FROM wp_invoice $where_clause ORDER BY id DESC LIMIT 100) i ON (i.id = tx.invoice_id) \n LEFT OUTER JOIN wp_sagepay_tx_auth txa ON txa.vendor_tx_code = tx.vendor_tx_code\n UNION ALL \n SELECT NULL AS `txn_id`, invoice_id, first_name, last_name, email, vendor_tx_code, payment_amount, NULL as txn_auth_id, auth_status, auth_status_detail, card_type, last_4_digits, processed_date, created_date\n FROM wp_stripe_transaction tx\n INNER JOIN (SELECT id FROM wp_invoice $where_clause ORDER BY id DESC LIMIT 100) i ON (i.id = tx.invoice_id)\n ) x\n ORDER BY processed_date DESC\" );\n \n if($wpdb->last_error) {\n throw new DatabaseException($wpdb->last_error);\n }\n\n $notes_rs = $wpdb->get_results(\n \"SELECT n.invoice_id, n.notes AS `note_text`, n.created_date\n FROM wp_invoice_notes n\n INNER JOIN (SELECT id FROM wp_invoice $where_clause ORDER BY id DESC LIMIT 100) i ON (i.id = n.invoice_id) \n ORDER BY n.id\" );\n \n if($wpdb->last_error) {\n throw new DatabaseException($wpdb->last_error);\n }\n \n foreach( $invoice_rs as $inv ) {\n foreach( $transaction_rs as $txn ) {\n // push transaction onto invoice if matched\n if( $txn->invoice_id === $inv->invoice_id ) {\n if( ! isset( $inv->transactions )) {\n $inv->transactions = array();\n }\n $inv->transactions[] = $txn;\n }\n }\n foreach( $notes_rs as $note ) {\n if( $inv->invoice_id === $note->invoice_id ) {\n if( ! isset( $inv->notes )) {\n $inv->notes = array();\n }\n $inv->notes[] = $note;\n }\n }\n }\n return $invoice_rs;\n }", "title": "" }, { "docid": "45e9636b02e924700a41f876eeb79076", "score": "0.50992894", "text": "public function iN_PaymentMethods() {\n\t\t$query = mysqli_query($this->db, \"SELECT * FROM i_payment_methods WHERE payment_method_id = '1'\") or die(mysqli_error($this->db));\n\t\t$data = mysqli_fetch_array($query, MYSQLI_ASSOC);\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "ac1c5976f2250270dbc4b3a3bcc88136", "score": "0.5095425", "text": "public static function get_procecution_ids_using_identity_no($identity_number,$office_id,$ended){\n $Procecution_ids=array();\n $conn= DBConnect::getConnection();\n if ($conn->connect_error) {\n die(\"Connection failed: \" . $conn->connect_error);\n }\n $sql=\"SELECT id FROM procecutions where customer_id=(\n SELECT id FROM customers where identity_number= $identity_number and office_id = $office_id ) and ended=$ended;\";\n $result=$conn->query($sql);\n if ($result->num_rows ==0 ) { \n echo \" p u identity error\" ;\n }else{\n while($row = $result->fetch_assoc()) {\n $Procecution_ids[]=$row[\"id\"];\n }\n }\n return $Procecution_ids;\n\n }", "title": "" }, { "docid": "fe001382c898af29173a6f62c23624ef", "score": "0.50913453", "text": "function Fetch_API_Payments($application_id)\n{\n\tsettype($application_id, 'int');\n\n\t$db = ECash::getMasterDb();\n\t$query = '-- /* SQL LOCATED IN file=' . __FILE__ . ' line=' . __LINE__ . ' method=' . __METHOD__ . \" */\n\t\tSELECT\n\t\t\tapi_payment_id,\n\t\t\tname_short event_type,\n\t\t\tamount,\n\t\t\tdate_event\n\t\tFROM\n\t\t\tapi_payment\n\t\t\tJOIN event_type USING (event_type_id)\n\t\tWHERE\n\t\t\tapplication_id = {$application_id}\n\t\tAND\n\t\t\tapi_payment.active_status = 'active'\n\t\";\n\n\t$result = $db->query($query);\n\treturn $result->fetchAll(PDO::FETCH_OBJ);\n\n}", "title": "" }, { "docid": "bf1877a69e1254d441e11f4ab9ef36c3", "score": "0.50846237", "text": "public function ipnAction() {\n $paymentService = $this->get('e2w_payment_service');\n $paymentService->ipnRequest($this->get('request')->request);\n die();\n }", "title": "" }, { "docid": "335497c6372fecfe347a86e0cf80d472", "score": "0.50791013", "text": "public function get_paid_invoice($is_json = 0) {\n $matches = array();\n $query_string = htmlspecialchars($_POST['q'], ENT_QUOTES, 'UTF-8');\n $result = $this->classTraineeModel->get_paid_indi_company_invoice($this->tenant_id, $query_string);\n if ($result) {\n foreach ($result as $row) {\n if ($row->inv_type == 'INVINDV') {\n $name = '(Name: ' . $row->first_name . ' ' . $row->last_name . ', Taxcode: ' . $row->tax_code . ')';\n } else {\n $name = '(Name: ' . $row->company_name . ', Taxcode: ' . $row->comp_regist_num . ')';\n }\n $matches[] = array(\n 'key' => $row->invoice_id,\n 'label' => $row->invoice_id . $name,\n 'value' => $row->invoice_id,\n );\n }\n }\n if (!empty($is_json)) {\n return $matches;\n } else {\n echo json_encode($matches);\n exit();\n }\n }", "title": "" }, { "docid": "ca3bbe9da96c00e3a103eb5d93693393", "score": "0.50691026", "text": "public function recent()\n {\n\t\t$payments = array(\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'id'\t\t\t=> '1',\n\t\t\t\t\t\t\t\t\t'date'\t\t\t=> '08/11/2018',\n\t\t\t\t\t\t\t\t\t'client'\t\t=> 'First Name Last Name',\n\t\t\t\t\t\t\t\t\t'tid'\t\t\t=> 6167455112,\n\t\t\t\t\t\t\t\t\t'cardtype'\t=> 'visa',\n\t\t\t\t\t\t\t\t\t'cardnum'\t=> '•••2205',\n\t\t\t\t\t\t\t\t\t'cardexp'\t=> '12/21',\n\t\t\t\t\t\t\t\t\t'currency'\t=> '$',\n\t\t\t\t\t\t\t\t\t'amount'\t=> 5.40,\n\t\t\t\t\t\t\t\t\t'status'\t\t=> 'completed',\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'id'\t\t\t=> '2',\n\t\t\t\t\t\t\t\t\t'date'\t\t\t=> '08/11/2018',\n\t\t\t\t\t\t\t\t\t'client'\t\t=> 'First Name Last Name',\n\t\t\t\t\t\t\t\t\t'tid'\t\t\t=> 6167455112,\n\t\t\t\t\t\t\t\t\t'cardtype'\t=> 'visa',\n\t\t\t\t\t\t\t\t\t'cardnum'\t=> '•••2205',\n\t\t\t\t\t\t\t\t\t'cardexp'\t=> '12/21',\n\t\t\t\t\t\t\t\t\t'currency'\t=> '$',\n\t\t\t\t\t\t\t\t\t'amount'\t=> 100.00,\n\t\t\t\t\t\t\t\t\t'status'\t\t=> 'pending',\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'id'\t\t\t=> '3',\n\t\t\t\t\t\t\t\t\t'date'\t\t\t=> '08/11/2018',\n\t\t\t\t\t\t\t\t\t'client'\t\t=> 'First Name Last Name',\n\t\t\t\t\t\t\t\t\t'tid'\t\t\t=> 6167455112,\n\t\t\t\t\t\t\t\t\t'cardtype'\t=> 'visa',\n\t\t\t\t\t\t\t\t\t'cardnum'\t=> '•••2205',\n\t\t\t\t\t\t\t\t\t'cardexp'\t=> '12/21',\n\t\t\t\t\t\t\t\t\t'currency'\t=> '$',\n\t\t\t\t\t\t\t\t\t'amount'\t=> 1.00,\n\t\t\t\t\t\t\t\t\t'status'\t\t=> 'failed',\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t'id'\t\t\t=> '4',\n\t\t\t\t\t\t\t\t\t'date'\t\t\t=> '08/11/2018',\n\t\t\t\t\t\t\t\t\t'client'\t\t=> 'First Name Last Name',\n\t\t\t\t\t\t\t\t\t'tid'\t\t\t=> 6167455112,\n\t\t\t\t\t\t\t\t\t'cardtype'\t=> 'visa',\n\t\t\t\t\t\t\t\t\t'cardnum'\t=> '•••2205',\n\t\t\t\t\t\t\t\t\t'cardexp'\t=> '12/21',\n\t\t\t\t\t\t\t\t\t'currency'\t=> '$',\n\t\t\t\t\t\t\t\t\t'amount'\t=> 1.00,\n\t\t\t\t\t\t\t\t\t'status'\t\t=> 'refunded',\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t'id'\t\t\t=> '5',\n\t\t\t\t\t\t\t\t\t'date'\t\t\t=> '08/11/2018',\n\t\t\t\t\t\t\t\t\t'client'\t\t=> 'First Name Last Name',\n\t\t\t\t\t\t\t\t\t'tid'\t\t\t=> 6167455112,\n\t\t\t\t\t\t\t\t\t'cardtype'\t=> 'visa',\n\t\t\t\t\t\t\t\t\t'cardnum'\t=> '•••2205',\n\t\t\t\t\t\t\t\t\t'cardexp'\t=> '12/21',\n\t\t\t\t\t\t\t\t\t'currency'\t=> '$',\n\t\t\t\t\t\t\t\t\t'amount'\t=> 1.00,\n\t\t\t\t\t\t\t\t\t'status'\t\t=> 'completed',\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'id'\t\t\t=> '6',\n\t\t\t\t\t\t\t\t\t'date'\t\t\t=> '08/11/2018',\n\t\t\t\t\t\t\t\t\t'client'\t\t=> 'First Name Last Name',\n\t\t\t\t\t\t\t\t\t'tid'\t\t\t=> 6167455112,\n\t\t\t\t\t\t\t\t\t'cardtype'\t=> 'visa',\n\t\t\t\t\t\t\t\t\t'cardnum'\t=> '•••2205',\n\t\t\t\t\t\t\t\t\t'cardexp'\t=> '12/21',\n\t\t\t\t\t\t\t\t\t'currency'\t=> '$',\n\t\t\t\t\t\t\t\t\t'amount'\t=> 1.00,\n\t\t\t\t\t\t\t\t\t'status'\t\t=> 'verified',\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'id'\t\t\t=> '7',\n\t\t\t\t\t\t\t\t\t'date'\t\t\t=> '08/11/2018',\n\t\t\t\t\t\t\t\t\t'client'\t\t=> 'First Name Last Name',\n\t\t\t\t\t\t\t\t\t'tid'\t\t\t=> 6167455112,\n\t\t\t\t\t\t\t\t\t'cardtype'\t=> 'mastercard',\n\t\t\t\t\t\t\t\t\t'cardnum'\t=> '•••2205',\n\t\t\t\t\t\t\t\t\t'cardexp'\t=> '12/21',\n\t\t\t\t\t\t\t\t\t'currency'\t=> '$',\n\t\t\t\t\t\t\t\t\t'amount'\t=> 1123.00,\n\t\t\t\t\t\t\t\t\t'status'\t\t=> 'completed',\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'id'\t\t\t=> '8',\n\t\t\t\t\t\t\t\t\t'date'\t\t\t=> '08/11/2018',\n\t\t\t\t\t\t\t\t\t'client'\t\t=> 'First Name Last Name',\n\t\t\t\t\t\t\t\t\t'tid'\t\t\t=> 6167455112,\n\t\t\t\t\t\t\t\t\t'cardtype'\t=> 'visa',\n\t\t\t\t\t\t\t\t\t'cardnum'\t=> '•••2205',\n\t\t\t\t\t\t\t\t\t'cardexp'\t=> '12/21',\n\t\t\t\t\t\t\t\t\t'currency'\t=> '$',\n\t\t\t\t\t\t\t\t\t'amount'\t=> 1.00,\n\t\t\t\t\t\t\t\t\t'status'\t\t=> 'pending',\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'id'\t\t\t=> '9',\n\t\t\t\t\t\t\t\t\t'date'\t\t\t=> '08/11/2018',\n\t\t\t\t\t\t\t\t\t'client'\t\t=> 'First Name Last Name',\n\t\t\t\t\t\t\t\t\t'tid'\t\t\t=> 6167455112,\n\t\t\t\t\t\t\t\t\t'cardtype'\t=> 'jcb',\n\t\t\t\t\t\t\t\t\t'cardnum'\t=> '•••2205',\n\t\t\t\t\t\t\t\t\t'cardexp'\t=> '12/21',\n\t\t\t\t\t\t\t\t\t'currency'\t=> '$',\n\t\t\t\t\t\t\t\t\t'amount'\t=> 1123.00,\n\t\t\t\t\t\t\t\t\t'status'\t\t=> 'failed',\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'id'\t\t\t=> '10',\n\t\t\t\t\t\t\t\t\t'date'\t\t\t=> '08/11/2018',\n\t\t\t\t\t\t\t\t\t'client'\t\t=> 'First Name Last Name',\n\t\t\t\t\t\t\t\t\t'tid'\t\t\t=> 6167455112,\n\t\t\t\t\t\t\t\t\t'cardtype'\t=> 'visa',\n\t\t\t\t\t\t\t\t\t'cardnum'\t=> '•••2205',\n\t\t\t\t\t\t\t\t\t'cardexp'\t=> '12/21',\n\t\t\t\t\t\t\t\t\t'currency'\t=> '$',\n\t\t\t\t\t\t\t\t\t'amount'\t=> 1.00,\n\t\t\t\t\t\t\t\t\t'status'\t\t=> 'completed',\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'id'\t\t\t=> '11',\n\t\t\t\t\t\t\t\t\t'date'\t\t\t=> '08/11/2018',\n\t\t\t\t\t\t\t\t\t'client'\t\t=> 'First Name Last Name',\n\t\t\t\t\t\t\t\t\t'tid'\t\t\t=> 6167455112,\n\t\t\t\t\t\t\t\t\t'cardtype'\t=> 'visa',\n\t\t\t\t\t\t\t\t\t'cardnum'\t=> '•••2205',\n\t\t\t\t\t\t\t\t\t'cardexp'\t=> '12/21',\n\t\t\t\t\t\t\t\t\t'currency'\t=> '$',\n\t\t\t\t\t\t\t\t\t'amount'\t=> 122.00,\n\t\t\t\t\t\t\t\t\t'status'\t\t=> 'refunded',\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'id'\t\t\t=> '12',\n\t\t\t\t\t\t\t\t\t'date'\t\t\t=> '08/11/2018',\n\t\t\t\t\t\t\t\t\t'client'\t\t=> 'First Name Last Name',\n\t\t\t\t\t\t\t\t\t'tid'\t\t\t=> 6167455112,\n\t\t\t\t\t\t\t\t\t'cardtype'\t=> 'paypal',\n\t\t\t\t\t\t\t\t\t'cardnum'\t=> '•••2205',\n\t\t\t\t\t\t\t\t\t'cardexp'\t=> '12/21',\n\t\t\t\t\t\t\t\t\t'currency'\t=> '$',\n\t\t\t\t\t\t\t\t\t'amount'\t=> 5444.00,\n\t\t\t\t\t\t\t\t\t'status'\t\t=> 'completed',\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'id'\t\t\t=> '13',\n\t\t\t\t\t\t\t\t\t'date'\t\t\t=> '08/11/2018',\n\t\t\t\t\t\t\t\t\t'client'\t\t=> 'First Name Last Name',\n\t\t\t\t\t\t\t\t\t'tid'\t\t\t=> 6167455112,\n\t\t\t\t\t\t\t\t\t'cardtype'\t=> 'visa',\n\t\t\t\t\t\t\t\t\t'cardnum'\t=> '•••2205',\n\t\t\t\t\t\t\t\t\t'cardexp'\t=> '12/21',\n\t\t\t\t\t\t\t\t\t'currency'\t=> '$',\n\t\t\t\t\t\t\t\t\t'amount'\t=> 8.00,\n\t\t\t\t\t\t\t\t\t'status'\t\t=> 'failed',\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'id'\t\t\t=> '14',\n\t\t\t\t\t\t\t\t\t'date'\t\t\t=> '08/11/2018',\n\t\t\t\t\t\t\t\t\t'client'\t\t=> 'First Name Last Name',\n\t\t\t\t\t\t\t\t\t'tid'\t\t\t=> 6167455112,\n\t\t\t\t\t\t\t\t\t'cardtype'\t=> 'visa',\n\t\t\t\t\t\t\t\t\t'cardnum'\t=> '•••2205',\n\t\t\t\t\t\t\t\t\t'cardexp'\t=> '12/21',\n\t\t\t\t\t\t\t\t\t'currency'\t=> '$',\n\t\t\t\t\t\t\t\t\t'amount'\t=> 1.00,\n\t\t\t\t\t\t\t\t\t'status'\t\t=> 'completed',\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'id'\t\t\t=> '15',\n\t\t\t\t\t\t\t\t\t'date'\t\t\t=> '08/11/2018',\n\t\t\t\t\t\t\t\t\t'client'\t\t=> 'First Name Last Name',\n\t\t\t\t\t\t\t\t\t'tid'\t\t\t=> 6167455112,\n\t\t\t\t\t\t\t\t\t'cardtype'\t=> 'visa',\n\t\t\t\t\t\t\t\t\t'cardnum'\t=> '•••2205',\n\t\t\t\t\t\t\t\t\t'cardexp'\t=> '12/21',\n\t\t\t\t\t\t\t\t\t'currency'\t=> '$',\n\t\t\t\t\t\t\t\t\t'amount'\t=> 1.00,\n\t\t\t\t\t\t\t\t\t'status'\t\t=> 'verified',\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'id'\t\t\t=> '16',\n\t\t\t\t\t\t\t\t\t'date'\t\t\t=> '08/11/2018',\n\t\t\t\t\t\t\t\t\t'client'\t\t=> 'First Name Last Name',\n\t\t\t\t\t\t\t\t\t'tid'\t\t\t=> 6167455112,\n\t\t\t\t\t\t\t\t\t'cardtype'\t=> 'visa',\n\t\t\t\t\t\t\t\t\t'cardnum'\t=> '•••2205',\n\t\t\t\t\t\t\t\t\t'cardexp'\t=> '12/21',\n\t\t\t\t\t\t\t\t\t'currency'\t=> '$',\n\t\t\t\t\t\t\t\t\t'amount'\t=> 1.00,\n\t\t\t\t\t\t\t\t\t'status'\t\t=> 'completed',\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'id'\t\t\t=> '17',\n\t\t\t\t\t\t\t\t\t'date'\t\t\t=> '08/11/2018',\n\t\t\t\t\t\t\t\t\t'client'\t\t=> 'First Name Last Name',\n\t\t\t\t\t\t\t\t\t'tid'\t\t\t=> 6167455112,\n\t\t\t\t\t\t\t\t\t'cardtype'\t=> 'visa',\n\t\t\t\t\t\t\t\t\t'cardnum'\t=> '•••2205',\n\t\t\t\t\t\t\t\t\t'cardexp'\t=> '12/21',\n\t\t\t\t\t\t\t\t\t'currency'\t=> '$',\n\t\t\t\t\t\t\t\t\t'amount'\t=> 1.00,\n\t\t\t\t\t\t\t\t\t'status'\t\t=> 'completed',\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'id'\t\t\t=> '18',\n\t\t\t\t\t\t\t\t\t'date'\t\t\t=> '08/11/2018',\n\t\t\t\t\t\t\t\t\t'client'\t\t=> 'First Name Last Name',\n\t\t\t\t\t\t\t\t\t'tid'\t\t\t=> 6167455112,\n\t\t\t\t\t\t\t\t\t'cardtype'\t=> 'visa',\n\t\t\t\t\t\t\t\t\t'cardnum'\t=> '•••2205',\n\t\t\t\t\t\t\t\t\t'cardexp'\t=> '12/21',\n\t\t\t\t\t\t\t\t\t'currency'\t=> '$',\n\t\t\t\t\t\t\t\t\t'amount'\t=> 1.00,\n\t\t\t\t\t\t\t\t\t'status'\t\t=> 'refunded',\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t);\n\t\t\n return $payments; \n }", "title": "" }, { "docid": "8cf6317468f8d22a2155368305d5ab53", "score": "0.50552046", "text": "function get_franchise_payment_details($fr_id)\r\n\t{\r\n\t\t$data = array();\r\n\t\t$data['ordered_tilldate'] = @$this->db->query(\"select round(sum((i_orgprice-(i_coup_discount+i_discount))*b.quantity),2) as amt \r\n\t\tfrom king_transactions a \r\n\t\tjoin king_orders b on a.transid = b.transid \r\n\t join pnh_m_franchise_info c on c.franchise_id = a.franchise_id \r\n\t\twhere a.franchise_id = ? \",$fr_id)->row()->amt;\r\n\t\t\r\n\t\t$data['shipped_tilldate'] = @$this->db->query(\"SELECT round(sum((i_orgprice-(i_coup_discount+i_discount))*b.quantity),2) as amt \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tFROM king_transactions a\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tJOIN king_orders b ON a.transid = b.transid\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tJOIN pnh_m_franchise_info c ON c.franchise_id = a.franchise_id\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tJOIN king_invoice d ON d.order_id = b.id\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tJOIN shipment_batch_process_invoice_link e ON e.invoice_no = d.invoice_no\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tAND e.shipped =1 AND e.packed =1\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE a.franchise_id = ? AND d.invoice_status = 1 and b.status != 0 \r\n\t\t\t\t\t\t\t\t \",$fr_id)->row()->amt;\r\n\t\t$data['cancelled_tilldate'] = $data['ordered_tilldate']-$data['shipped_tilldate'];\r\n\t\t\r\n\t\t$data['paid_tilldate'] = @$this->db->query(\"select sum(receipt_amount) as amt from pnh_t_receipt_info where receipt_type = 1 and status = 1 and franchise_id = ? \",$fr_id)->row()->amt;\r\n\t\t$data['uncleared_payment'] = @$this->db->query(\"select sum(receipt_amount) as amt from pnh_t_receipt_info where status = 0 and franchise_id = ? \",$fr_id)->row()->amt;\r\n\t\t\r\n\t\t$data['pending_payment'] = $data['shipped_tilldate']-$data['paid_tilldate'];\r\n\t\treturn $data;\r\n\t}", "title": "" }, { "docid": "7aecdf8881a77de67d1951ecff055e05", "score": "0.50525415", "text": "public function processIpnRequest($data)\n {\n $this->post = $data;\n \n $recurringProfile = $this->getRecurringProfile();\n\n\n if (! $recurringProfile) {\n return;\n }\n\n if (! $this->_postBack()) {\n return;\n }\n\n try {\n if (isset($this->post['txn_type'])\n && 'recurring_payment_suspended_due_to_max_failed_payment' == $this->post['txn_type']\n ) {\n if ($lastInvoiceId = $recurringProfile->saas_subscription_invoice_id) {\n $this->invoiceRepository->update([\n 'status' => 'Failed',\n ], $lastInvoiceId);\n }\n\n $this->recurringProfileRepository->update([\n 'state' => $this->paypalHelper->getProfileState($this->post['profile_status']),\n 'payment_status' => 'Failed',\n ], $recurringProfile->id);\n\n //Send email to company\n } elseif (isset($this->post['txn_type'])\n && 'recurring_payment_suspended' == $this->post['txn_type']\n ) {\n $this->recurringProfileRepository->update([\n 'state' => $this->paypalHelper->getProfileState($this->post['profile_status']),\n ], $recurringProfile->id);\n } elseif (isset($this->post['txn_type'])\n && 'recurring_payment_profile_cancel' == $this->post['txn_type']\n ) {\n $this->recurringProfileRepository->update([\n 'state' => $this->paypalHelper->getProfileState($this->post['profile_status']),\n 'next_due_date' => null,\n ], $recurringProfile->id);\n } elseif (isset($this->post['txn_type'])\n && 'recurring_payment_skipped' == $this->post['txn_type']\n ) {\n // Recurring payment skipped; it will be retried up to 3 times, 5 days apart\n $days = 0;\n\n if ($recurringProfile->payment_method != 'Skipped') {\n $days = 5;\n\n $invoice = $this->subscriptionHelper->createInvoice([\n 'recurring_profile' => $recurringProfile,\n 'saas_subscription_purchased_plan_id' => $recurringProfile->purchased_plan->id,\n 'saas_subscription_recurring_profile_id' => $recurringProfile->id,\n 'grand_total' => $recurringProfile->amount,\n 'customer_email' => $recurringProfile->company->email,\n 'customer_name' => $recurringProfile->company->username,\n 'payment_method' => 'Paypal',\n 'status' => 'Skipped',\n ]);\n \n $this->recurringProfileRepository->update([\n 'payment_status' => 'Skipped',\n 'saas_subscription_invoice_id' => $invoice->id,\n ], $recurringProfile->id);\n }\n\n //send email to company\n } elseif (isset($this->post['txn_type'])\n && 'recurring_payment' == $this->post['txn_type']\n && $this->post['payment_status'] == \"Pending\"\n ) {\n if ($recurringProfile->payment_status != 'Skipped') {\n $invoice = $this->subscriptionHelper->createInvoice([\n 'recurring_profile' => $recurringProfile,\n 'saas_subscription_purchased_plan_id' => $recurringProfile->purchased_plan->id,\n 'saas_subscription_recurring_profile_id' => $recurringProfile->id,\n 'grand_total' => $this->post['mc_gross'],\n 'customer_email' => $recurringProfile->company->email,\n 'customer_name' => $recurringProfile->company->username,\n 'payment_method' => 'Paypal',\n 'status' => 'Pending',\n 'pending_reason' => $this->post['pending_reason'],\n ]);\n } else {\n $data = [\n 'status' => 'Pending',\n 'payment_method' => 'Paypal',\n ];\n\n if (isset($this->post['pending_reason'])) {\n $data['pending_reason'] = $this->post['pending_reason'];\n }\n \n $this->invoiceRepository->update($data, $recurringProfile->saas_subscription_invoice_id);\n }\n\n $this->recurringProfileRepository->update([\n 'payment_status' => 'Pending',\n 'saas_subscription_invoice_id' => isset($invoice)\n ? $invoice->id\n : $recurringProfile->saas_subscription_invoice_id,\n ], $recurringProfile->id);\n } elseif (isset($this->post['txn_type'])\n && 'recurring_payment' == $this->post['txn_type']\n ) {\n $invoice = $this->invoiceRepository->findOneByField('transaction_id', $this->post['txn_id']);\n\n if ($invoice) {\n return;\n }\n\n $nextDueDate = $this->subscriptionHelper->getNextDueDate($recurringProfile);\n\n if ($recurringProfile->payment_status != 'Skipped'\n && $recurringProfile->payment_status != 'Pending'\n ) {\n $invoice = $this->subscriptionHelper->createInvoice([\n 'recurring_profile' => $recurringProfile,\n 'saas_subscription_purchased_plan_id' => $recurringProfile->purchased_plan->id,\n 'saas_subscription_recurring_profile_id' => $recurringProfile->id,\n 'grand_total' => $this->post['mc_gross'],\n 'cycle_expired_on' => $nextDueDate,\n 'customer_email' => $recurringProfile->company->email,\n 'customer_name' => $recurringProfile->company->username,\n 'payment_method' => 'Paypal',\n 'status' => 'Success',\n 'transaction_id' => $this->post['txn_id'],\n ]);\n } else {\n $this->invoiceRepository->update([\n 'cycle_expired_on' => $nextDueDate,\n 'status' => 'Success',\n 'payment_method' => 'Paypal',\n ], $recurringProfile->saas_subscription_invoice_id);\n }\n \n $this->recurringProfileRepository->update([\n 'next_due_date' => $nextDueDate,\n 'cycle_expired_on' => $nextDueDate,\n 'payment_status' => 'Success',\n 'saas_subscription_invoice_id' => isset($invoice)\n ? $invoice->id\n : $recurringProfile->saas_subscription_invoice_id,\n ], $recurringProfile->id);\n }\n } catch (\\Exception $e) {\n }\n }", "title": "" }, { "docid": "55002c9c487d39655cc19748a975445e", "score": "0.50395745", "text": "function InfGetInvoices($inf_contact_id, $pay_status = 0) {\n\t$object_type = \"Invoice\";\n\t$class_name = \"Infusionsoft_\" . $object_type;\n\t$object = new $class_name();\n\t$objects = Infusionsoft_DataService::query(new $class_name(), array('ContactId' => $inf_contact_id, 'PayStatus' => $pay_status));\n\n $invoices_array = array();\n foreach ($objects as $i => $object) {\n\t\t// Give it a userful index, ie, inf_invoice_id\n\t\t$array = $object->toArray();\n $invoices_array[$array['Id']] = $array;\n }\n\treturn $invoices_array; \n}", "title": "" }, { "docid": "f9c2ed101c5ce55283d9e46484f82242", "score": "0.5029402", "text": "public function export_payment_received($payid) {\n if (empty($payid)) {\n return show_404();\n }\n $result = $this->get_payid_details($payid, 1);\n if ($result['data']->enrolment_mode == 'COMPSPON') {\n if ($result['data']->company_id[0] == 'T') {\n $tenant_details = fetch_tenant_details($result['data']->company_id);\n $trainee_det = $tenant_details->tenant_name;\n } else {\n $company_details = $this->company->get_company_details($this->tenant_id, $result['data']->company_id);\n $trainee_det = $company_details[0]->company_name;\n }\n } else {\n $trainee_details = $this->classtraineemodel->get_trainee_by_pymnt_due_id($payid);\n $trainee_det = $trainee_details->first_name . ' ' . $trainee_details->last_name;\n $trainee_id = $trainee_details->user_id;\n }\n $paid_details = $this->classtraineemodel->get_invoice_paid_details($result['data']->invoice_id);\n $paid_arr = array();\n $total_paid = 0;\n foreach ($paid_details as $row) {\n $mode_ext = ($row->mode_of_pymnt == 'CHQ') ? ' Chq#: ' . $row->cheque_number : '';\n $other_mode = $row->othr_mode_of_payment ? '+'.$row->othr_mode_of_payment : '';// added by shubhranshu to display the other mode if exist 0n 19feb\n $mode = rtrim($this->course->get_metadata_on_parameter_id($row->mode_of_pymnt), ', ');\n $gender = ($row->gender == 'MALE') ? 'Mr. ' : 'Ms. ';\n $name = $gender . $row->first_name . ' ' . $row->last_name;\n $paid_arr[] = array(\n 'recd_on' => date('d/m/Y', strtotime($row->recd_on)),\n 'mode' => $mode . $mode_ext.$other_mode,\n 'name' => $name,\n 'amount' => '$ ' . number_format($row->amount_recd, 2, '.', '') . ' SGD',\n );\n $total_paid = $total_paid + $row->amount_recd;\n }\n if ($result['data']->enrolment_mode == 'COMPSPON') {\n if (!empty($result['data']->invoice_excess_amt)) {\n $paid_arr[] = array(\n 'recd_on' => '',\n 'mode' => '',\n 'name' => 'Over Payment Recd.',\n 'amount' => '$ ' . number_format($result['data']->invoice_excess_amt, 2, '.', '') . ' SGD',\n );\n $total_paid = $total_paid + $result['data']->invoice_excess_amt;\n }\n }\n $result['data']->total_paid = '$ ' . number_format($total_paid, 2, '.', '') . ' SGD';\n $this->load->helper('pdf_reports_helper');\n //print_r($paid_arr);exit;\n generate_trainee_payment_recieved($result, $paid_arr, $trainee_det);\n }", "title": "" }, { "docid": "13d437cabf58d8ef9b205686dcc769b7", "score": "0.50186735", "text": "function jx_getreturnprodsbyfid($pg=0)\r\n\t{\r\n\t\t$this->erpm->auth();\r\n\t\t\r\n\t\t$fid = $this->input->post('fid');\r\n\t\t\r\n\t\t$return_srch_kwd = trim($this->input->post('return_srch_kwd'));\r\n\t\t$return_on = $this->input->post('return_on');\r\n\t\t$return_on_end = $this->input->post('return_on_end');\r\n\t\t\r\n\t\t$cond = '';\r\n\t\tif($return_srch_kwd)\r\n\t\t\t$cond .= ' and ( b.invoice_no = \"'.$return_srch_kwd.'\" or b.return_id = \"'.$return_srch_kwd.'\" or a.imei_no = \"'.$return_srch_kwd.'\" or a.barcode = \"'.$return_srch_kwd.'\" or a.order_id = \"'.$return_srch_kwd.'\" ) ';\r\n\t\t\t\r\n\t\tif($return_on && $return_on_end)\r\n\t\t\t$cond .= ' and ( date(b.returned_on) >= date(\"'.$return_on.'\") and date(b.returned_on) <= date(\"'.$return_on_end.'\") ) ';\r\n\t\t\r\n\t\t$total_fr_rplist = $this->db->query(\"select ifnull(sum(ttl),0) as ttl from (select 1 as ttl from pnh_invoice_returns_product_link a join pnh_invoice_returns b on a.return_id = b.return_id join king_invoice d on d.order_id = a.order_id join king_transactions e on e.transid = d.transid where franchise_id = ? $cond group by a.id) as g \",$fid)->row()->ttl;\r\n\t\t\r\n\t\t//echo $this->db->last_query();\r\n\t\t\r\n\t\t\r\n\t\t$output = array();\r\n\t\t$output['total'] = $total_fr_rplist;\r\n\t\t\r\n\t\t$fran_returnprod_res = $this->db->query(\"select a.is_shipped,a.barcode,a.imei_no,b.return_by,a.order_id,b.invoice_no,a.return_id,a.id as return_prod_id,a.imei_no,a.barcode,qty,a.product_id,c.product_name,d.mrp-d.discount as price,condition_type,is_shipped,readytoship,is_refunded,refunded_on,a.status,a.created_on \r\n\t\t\t\t\t\tfrom pnh_invoice_returns_product_link a\r\n\t\t\t\t\t\tjoin pnh_invoice_returns b on a.return_id = b.return_id \r\n\t\t\t\t\t\tjoin m_product_info c on c.product_id = a.product_id \r\n\t\t\t\t\t\tjoin king_invoice d on a.order_id = d.order_id\r\n\t\t\t\t\t\tjoin king_transactions e on e.transid = d.transid \r\n\t\t\t\t\t\twhere e.franchise_id = ? $cond \r\n\t\t\t\t\t\tgroup by a.id \r\n\t\t\t\t\t\torder by a.id desc\r\n\t\t\t\t\t\tlimit $pg,10\r\n\t\t\t\t\t\t\",$fid);\r\n\t\tif($fran_returnprod_res->num_rows())\r\n\t\t{\r\n\t\t\t$output['status'] = 'success';\r\n\t\t\t$output['return_cond'] = $this->config->item('return_cond');\r\n\t\t\t$output['return_process_cond'] = $this->config->item('return_process_cond');\r\n\t\t\t\r\n\t\t\t$fran_rplist = array();\r\n\t\t\tforeach($fran_returnprod_res->result_array() as $f_rp_det)\r\n\t\t\t{\r\n\t\t\t\t$rp_id = $f_rp_det['return_prod_id'];\r\n\t\t\t\t$f_rp_det['remarks'] = $this->db->query(\"select a.*,b.username as remark_by from pnh_invoice_returns_remarks a join king_admin b on a.created_by = b.id where return_prod_id = ? order by a.id desc limit 1 \",$rp_id)->row_array();\r\n\t\t\t\t$fran_rplist[] = $f_rp_det;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$output['fran_rplist'] = $fran_rplist;\r\n\t\t\t\r\n\t\t\t$this->load->library('pagination');\r\n\r\n\t\t\t$config['base_url'] = site_url('admin/jx_getreturnprodsbyfid');\r\n\t\t\t$config['total_rows'] = $total_fr_rplist;\r\n\t\t\t$config['per_page'] = 10;\r\n\t\t\t$config['uri_segment'] = 3;\r\n\t\t\t\r\n\t\t\t$this->config->set_item('enable_query_strings',false);\r\n\t\t\t$this->pagination->initialize($config);\r\n\t\t\t$output['fran_rplist_pagi'] = $this->pagination->create_links();\r\n\t\t\t$this->config->set_item('enable_query_strings',true);\r\n\t\t\t\r\n\t\t}else\r\n\t\t{\r\n\t\t\t$output['fran_rplist'] = array();\r\n\t\t\t$output['status'] = 'success';\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\techo json_encode($output);\r\n\t}", "title": "" }, { "docid": "87806c6cfc3a5817663caff27eca043b", "score": "0.49996215", "text": "public function getFollowUpEvents($notification)\n {\n $couponsTable = CouponsTable::getTableName();\n $eventsTable = EventsTable::getTableName();\n $eventsPeriodsTable = EventsPeriodsTable::getTableName();\n $customerBookingsEventsPeriods = CustomerBookingsToEventsPeriodsTable::getTableName();\n $eventsProvidersTable = EventsProvidersTable::getTableName();\n $paymentsTable = PaymentsTable::getTableName();\n\n try {\n $notificationType = $notification->getType()->getValue();\n\n $statement = $this->connection->query(\n \"SELECT\n e.id AS event_id,\n e.name AS event_name,\n e.status AS event_status,\n e.bookingOpens AS event_bookingOpens,\n e.bookingCloses AS event_bookingCloses,\n e.recurringCycle AS event_recurringCycle,\n e.recurringOrder AS event_recurringOrder,\n e.recurringUntil AS event_recurringUntil,\n e.maxCapacity AS event_maxCapacity,\n e.price AS event_price,\n e.description AS event_description,\n e.color AS event_color,\n e.show AS event_show,\n e.locationId AS event_locationId,\n e.customLocation AS event_customLocation,\n e.parentId AS event_parentId,\n e.created AS event_created,\n e.notifyParticipants AS event_notifyParticipants,\n e.deposit AS event_deposit,\n e.depositPayment AS event_depositPayment,\n e.depositPerPerson AS event_depositPerPerson,\n \n \n ep.id AS event_periodId,\n ep.periodStart AS event_periodStart,\n ep.periodEnd AS event_periodEnd,\n \n cb.id AS booking_id,\n cb.customerId AS booking_customerId,\n cb.status AS booking_status,\n cb.price AS booking_price,\n cb.info AS booking_info,\n cb.utcOffset AS booking_utcOffset,\n cb.aggregatedPrice AS booking_aggregatedPrice,\n cb.persons AS booking_persons,\n \n p.id AS payment_id,\n p.amount AS payment_amount,\n p.dateTime AS payment_dateTime,\n p.status AS payment_status,\n p.gateway AS payment_gateway,\n p.gatewayTitle AS payment_gatewayTitle,\n p.data AS payment_data,\n \n c.id AS coupon_id,\n c.code AS coupon_code,\n c.discount AS coupon_discount,\n c.deduction AS coupon_deduction,\n c.limit AS coupon_limit,\n c.customerLimit AS coupon_customerLimit,\n c.status AS coupon_status\n FROM {$eventsTable} e\n INNER JOIN {$eventsPeriodsTable} ep ON ep.eventId = e.id\n INNER JOIN {$customerBookingsEventsPeriods} cbe ON cbe.eventPeriodId = ep.id\n INNER JOIN {$this->bookingsTable} cb ON cb.id = cbe.customerBookingId\n LEFT JOIN {$paymentsTable} p ON p.customerBookingId = cb.id\n LEFT JOIN {$couponsTable} c ON c.id = cb.couponId\n LEFT JOIN {$eventsProvidersTable} epr ON epr.eventId = e.id\n LEFT JOIN {$this->usersTable} pu ON pu.id = epr.userId\n WHERE e.notifyParticipants = 1 \n AND cb.status = 'approved' \n AND e.id NOT IN (\n SELECT nl.eventId \n FROM {$this->table} nl \n INNER JOIN {$this->notificationsTable} n ON nl.notificationId = n.id \n WHERE n.name = 'customer_event_follow_up' \n AND n.type = '{$notificationType}'\n )\"\n );\n\n $rows = $statement->fetchAll();\n } catch (\\Exception $e) {\n throw new QueryExecutionException('Unable to find events in ' . __CLASS__, $e->getCode(), $e);\n }\n\n return EventFactory::createCollection($rows);\n }", "title": "" }, { "docid": "b1695f739e26653fc09e846fb4627525", "score": "0.49993035", "text": "public function callback() {\n $order = $this->getsale((isset($_POST['x_invoice_num']) ? (int) $_POST['x_invoice_num'] : '0'));\n $arr = array(\n 'trans-id' => (isset($_POST['x_trans_id']) ? $_POST['x_trans_id'] : ''),\n 'amount' => (isset($_POST['x_amount']) ? $this->num_format($_POST['x_amount']) : ''),\n 'refund-amount' => '',\n 'currency' => $this->settings->currency,\n 'code-id' => (isset($order->saleID) ? $order->code . '-' . $order->saleID : '0-0'),\n 'pay-status' => (isset($_POST['x_response_code']) ? $_POST['x_response_code'] : ''),\n 'message' => (isset($_POST['x_response_reason_text']) ? '[' . $_POST['x_response_reason_code'] . '] ' . $_POST['x_response_reason_text'] : ''),\n 'inv-status' => '',\n 'fraud-status' => ''\n );\n return $arr;\n }", "title": "" }, { "docid": "0b6fe651ba3987e10c7305a6e5068639", "score": "0.4980847", "text": "function InfGetReferralInfo($inf_contact_id) {\n\n $object_type = \"Referral\";\n $class_name = \"Infusionsoft_\" . $object_type;\n $object = new $class_name();\n // Order by most recent IP\n#\t$objects = Infusionsoft_DataService::query(new $class_name(), array('ContactId' => $payment['ContactId']));\n $objects = Infusionsoft_DataService::queryWithOrderBy(new $class_name(), array('ContactId' => $inf_contact_id), 'DateSet', false);\n\n $referral_array = array();\n foreach ($objects as $i => $object) {\n $referral_array[$i] = $object->toArray();\n }\n\n $aff_ip_array = array();\n $j = 0;\n foreach ($referral_array as $i => $referral) {\n if (!in_array($referral['IPAddress'], $aff_ip_array)) {\n $j++;\n $aff_ip_array[$j]['ip'] = $referral['IPAddress'];\n $aff_ip_array[$j]['inf_aff_id'] = $referral['AffiliateId'];\n }\n }\n return $aff_ip_array;\n}", "title": "" }, { "docid": "e8206187faf0aea78eb46443f96137b9", "score": "0.4968825", "text": "public function getFollowUpAppointments($notification)\n {\n $couponsTable = CouponsTable::getTableName();\n $customerBookingsExtrasTable = CustomerBookingsToExtrasTable::getTableName();\n $paymentsTable = PaymentsTable::getTableName();\n\n try {\n $notificationType = $notification->getType()->getValue();\n\n $currentDateTime = \"STR_TO_DATE('\" . DateTimeService::getNowDateTimeInUtc() . \"', '%Y-%m-%d %H:%i:%s')\";\n\n $statement = $this->connection->query(\n \"SELECT\n a.id AS appointment_id,\n a.bookingStart AS appointment_bookingStart,\n a.bookingEnd AS appointment_bookingEnd,\n a.notifyParticipants AS appointment_notifyParticipants,\n a.serviceId AS appointment_serviceId,\n a.providerId AS appointment_providerId,\n a.locationId AS appointment_locationId,\n a.internalNotes AS appointment_internalNotes,\n a.status AS appointment_status,\n \n cb.id AS booking_id,\n cb.customerId AS booking_customerId,\n cb.status AS booking_status,\n cb.price AS booking_price,\n cb.info AS booking_info,\n cb.utcOffset AS booking_utcOffset,\n cb.aggregatedPrice AS booking_aggregatedPrice,\n cb.persons AS booking_persons,\n \n p.id AS payment_id,\n p.amount AS payment_amount,\n p.dateTime AS payment_dateTime,\n p.status AS payment_status,\n p.gateway AS payment_gateway,\n p.gatewayTitle AS payment_gatewayTitle,\n p.data AS payment_data,\n \n cbe.id AS bookingExtra_id,\n cbe.extraId AS bookingExtra_extraId,\n cbe.customerBookingId AS bookingExtra_customerBookingId,\n cbe.quantity AS bookingExtra_quantity,\n cbe.price AS bookingExtra_price,\n cbe.aggregatedPrice AS bookingExtra_aggregatedPrice,\n \n c.id AS coupon_id,\n c.code AS coupon_code,\n c.discount AS coupon_discount,\n c.deduction AS coupon_deduction,\n c.limit AS coupon_limit,\n c.customerLimit AS coupon_customerLimit,\n c.status AS coupon_status\n FROM {$this->appointmentsTable} a\n INNER JOIN {$this->bookingsTable} cb ON cb.appointmentId = a.id\n LEFT JOIN {$paymentsTable} p ON p.customerBookingId = cb.id\n LEFT JOIN {$customerBookingsExtrasTable} cbe ON cbe.customerBookingId = cb.id\n LEFT JOIN {$couponsTable} c ON c.id = cb.couponId\n WHERE a.bookingEnd BETWEEN DATE_SUB({$currentDateTime}, INTERVAL 172800 SECOND) AND {$currentDateTime}\n AND DATE_ADD(a.bookingEnd, INTERVAL {$notification->getTimeAfter()->getValue()} SECOND)\n < {$currentDateTime}\n AND a.notifyParticipants = 1 \n AND cb.status = 'approved' \n AND a.id NOT IN (\n SELECT nl.appointmentId \n FROM {$this->table} nl \n INNER JOIN {$this->notificationsTable} n ON nl.notificationId = n.id \n WHERE n.name = 'customer_appointment_follow_up' \n AND n.type = '{$notificationType}'\n )\"\n );\n\n $rows = $statement->fetchAll();\n } catch (\\Exception $e) {\n throw new QueryExecutionException('Unable to find appointments in ' . __CLASS__, $e->getCode(), $e);\n }\n\n return AppointmentFactory::createCollection($rows);\n }", "title": "" }, { "docid": "86a0c65643892a687e0c06e76f209a42", "score": "0.49679524", "text": "function FetchStockTrnsfReqTrans()\n {\n $sql=\"SELECT * FROM INVT_T_SREQ_HEAD ORDER BY SRQH_TXN_NO ASC\";\n return $this->db->query($sql, $return_object = TRUE)->result_array();\n }", "title": "" }, { "docid": "6351e98f85956cb43be316eb0ce26696", "score": "0.49550676", "text": "function InfGetRecurringOrders($inf_contact_id, $inf_product_id = 0) {\n\t$object_type = \"RecurringOrder\";\n\t$class_name = \"Infusionsoft_\" . $object_type;\n\t$object = new $class_name();\n\t\n\t$search_data['ContactId'] = $inf_contact_id;\n\t$search_data['Status'] = \"Active\";\n\tif ($inf_product_id) {\n\t\t$search_data['ProductId'] = $inf_product_id;\n\t}\n\t\n\t$objects = Infusionsoft_DataService::query(new $class_name(), $search_data);\n\n $subscriptions_array = array();\n foreach ($objects as $i => $object) {\n\t\t// Give it a userful index, ie, inf_sub_id\n\t\t$array = $object->toArray();\n $subscriptions_array[$array['Id']] = $array;\n }\n\treturn $subscriptions_array;\n}", "title": "" }, { "docid": "1ee804ff2dd09af323f78033894fc4cf", "score": "0.49453732", "text": "public function callback(){\n $data = Rave::verifyTransaction(request()->txref);\n dd($data); // view the data response\n if ($data->status == 'success') {\n if(session()->get($this->requestVar)['']['page_type'] == 'cart'){\n $cartCollection = Cart::getContent();\n $payer = new Payer();\n $payer->setPaymentMethod('flutterwave');\n \n $item_1 = new Item();\n \n $item_1->setName(__('messages.site_name')) \n ->setCurrency('USD')\n ->setQuantity(1)\n ->setPrice($request->get('total_price_pal')); \n \n $item_list = new ItemList();\n $item_list->setItems(array($item_1));\n \n $amount = new Amount();\n $amount->setCurrency('USD')\n ->setTotal($request->get('total_price_pal'));\n \n $transaction = new Transaction();\n $transaction->setAmount($amount)\n ->setItemList($item_list)\n ->setDescription('Your transaction description');\n \n $redirect_urls = new RedirectUrls();\n $redirect_urls->setReturnUrl(URL::route('status')) \n ->setCancelUrl(URL::route('status'));\n \n $payment = new Payment();\n $payment->setIntent('Sale')\n ->setPayer($payer)\n ->setRedirectUrls($redirect_urls)\n ->setTransactions(array($transaction));\n try {\n $payment->create($this->_api_context);\n } catch (\\PayPal\\Exception\\PPConnectionException $ex) {\n if (\\Config::get('app.debug')) {\n \\Session::put('error',__('successerr.connection_timeout'));\n return Redirect::route('paywithpaypal');\n \n } else {\n \\Session::put('error',__('successerr.error1'));\n return Redirect::route('paywithpaypal');\n \n }\n }\n \n foreach($payment->getLinks() as $link) {\n if($link->getRel() == 'approval_url') {\n $redirect_url = $link->getHref();\n $data=array();\n $finalresult=array();\n $result=array();\n $input = $request->input();\n $cartCollection = Cart::getContent();\n $setting=Setting::find(1);\n $gettimezone=$this->gettimezonename($setting->timezone);\n date_default_timezone_set($gettimezone);\n $date = date('d-m-Y H:i');\n $getuser=AppUser::find(Session::get('login_user'));\n $store=new Order();\n $store->user_id=$getuser->id;\n \n $store->total_price=number_format($request->get(\"total_price_pal\"), 2, '.', '');\n $store->order_placed_date=$date;\n $store->order_status=0;\n \n $store->latlong= strip_tags(preg_replace('#<script(.*?)>(.*?)</script>#is', '',$request->get(\"lat_long_or\")));\n $store->name=$getuser->name;\n \n $store->address=strip_tags(preg_replace('#<script(.*?)>(.*?)</script>#is', '',$request->get(\"address_pal\")));\n $store->email=$getuser->email;\n \n $store->payment_type= strip_tags(preg_replace('#<script(.*?)>(.*?)</script>#is', '',$request->get(\"payment_type_pal\")));\n \n $store->notes=strip_tags(preg_replace('#<script(.*?)>(.*?)</script>#is', '',$request->get(\"note_or\")));\n \n $store->city= strip_tags(preg_replace('#<script(.*?)>(.*?)</script>#is', '',$request->get(\"city_or\")));\n \n $store->shipping_type= strip_tags(preg_replace('#<script(.*?)>(.*?)</script>#is', '',$request->get(\"shipping_type_pal\")));\n \n $store->subtotal=number_format($request->get(\"subtotal_pal\"), 2, '.', '');\n \n $store->delivery_charges=number_format($request->get(\"charage_pal\"), 2, '.', '');\n \n $store->phone_no= strip_tags(preg_replace('#<script(.*?)>(.*?)</script>#is', '',$request->get(\"phone_pal\")));\n $store->pay_pal_paymentId=$payment->getId();\n $store->delivery_mode=$store->shipping_type;\n $store->notify=1;\n $store->save();\n foreach ($cartCollection as $ke) {\n $getmenu=itemli::where(\"menu_name\",$ke->name)->first();\n $result['ItemId']=(string)isset($getmenu->id)?$getmenu->id:0;\n $result['ItemName']=(string)$ke->name;\n $result['ItemQty']=(string)$ke->quantity;\n $result['ItemAmt']=number_format($ke->price, 2, '.', '');\n $totalamount=(float)$ke->quantity*(float)$ke->price;\n $result['ItemTotalPrice']=number_format($totalamount, 2, '.', '');\n $ingredient=array();\n $inter_ids=array();\n foreach ($ke->attributes[0] as $val) {\n $ls=array();\n $inter=Ingredient::find($val);\n $ls['id']=(string)$inter->id;\n $inter_ids[]=$inter->id;\n $ls['category']=(string)$inter->category;\n $ls['item_name']=(string)$inter->item_name;\n $ls['type']=(string)$inter->type;\n $ls['price']=(string)$inter->price;\n $ls['menu_id']=(string)$inter->menu_id;\n $ingredient[]=$ls;\n }\n \n $result['Ingredients']=$ingredient;\n $finalresult[]=$result;\n $adddesc=new OrderResponse();\n $adddesc->set_order_id=$store->id;\n $adddesc->item_id=$result[\"ItemId\"];\n $adddesc->item_qty=$result[\"ItemQty\"];\n $adddesc->ItemTotalPrice=number_format($result[\"ItemTotalPrice\"], 2, '.', '');\n $adddesc->item_amt=$result[\"ItemAmt\"];\n $adddesc->ingredients_id=implode(\",\",$inter_ids);\n $adddesc->save();\n }\n $data=array(\"Order\"=>$finalresult);\n $addresponse=new FoodOrder();\n $addresponse->order_id=$store->id;\n $addresponse->desc=json_encode($data);\n $addresponse->save();\n \n break;\n }\n }\n \n } \n \n \n \n //Payment from basket checkout page\n \n if(session()->get($this->requestVar)['']['page_type'] == 'basket'){\n $cartCollection = Cart::getContent();\n $payer = new Payer();\n $payer->setPaymentMethod('flutterwave');\n \n $item_1 = new Item();\n \n $item_1->setName(__('messages.site_name')) \n ->setCurrency('USD')\n ->setQuantity(1)\n ->setPrice($request->get('total_price_pal')); \n \n $item_list = new ItemList();\n $item_list->setItems(array($item_1));\n \n $amount = new Amount();\n $amount->setCurrency('USD')\n ->setTotal($request->get('total_price_pal'));\n \n $transaction = new Transaction();\n $transaction->setAmount($amount)\n ->setItemList($item_list)\n ->setDescription('Your transaction description');\n \n $redirect_urls = new RedirectUrls();\n $redirect_urls->setReturnUrl(URL::route('status')) \n ->setCancelUrl(URL::route('status'));\n \n $payment = new Payment();\n $payment->setIntent('Sale')\n ->setPayer($payer)\n ->setRedirectUrls($redirect_urls)\n ->setTransactions(array($transaction));\n try {\n $payment->create($this->_api_context);\n } catch (\\PayPal\\Exception\\PPConnectionException $ex) {\n if (\\Config::get('app.debug')) {\n \\Session::put('error',__('successerr.connection_timeout'));\n return Redirect::route('paywithpaypal');\n \n } else {\n \\Session::put('error',__('successerr.error1'));\n return Redirect::route('paywithpaypal');\n \n }\n }\n \n foreach($payment->getLinks() as $link) {\n if($link->getRel() == 'approval_url') {\n $redirect_url = $link->getHref();\n $data=array();\n $finalresult=array();\n $result=array();\n $input = $request->input();\n $cartCollection = Cart::getContent();\n $setting=Setting::find(1);\n $gettimezone=$this->gettimezonename($setting->timezone);\n date_default_timezone_set($gettimezone);\n $date = date('d-m-Y H:i');\n $getuser=AppUser::find(Session::get('login_user'));\n $store=new Order();\n $store->user_id=$getuser->id;\n \n $store->total_price=number_format($request->get(\"total_price_pal\"), 2, '.', '');\n $store->order_placed_date=$date;\n $store->order_status=0;\n \n $store->latlong= strip_tags(preg_replace('#<script(.*?)>(.*?)</script>#is', '',$request->get(\"lat_long_or\")));\n $store->name=$getuser->name;\n \n $store->address=strip_tags(preg_replace('#<script(.*?)>(.*?)</script>#is', '',$request->get(\"address_pal\")));\n $store->email=$getuser->email;\n \n $store->payment_type= strip_tags(preg_replace('#<script(.*?)>(.*?)</script>#is', '',$request->get(\"payment_type_pal\")));\n \n $store->notes=strip_tags(preg_replace('#<script(.*?)>(.*?)</script>#is', '',$request->get(\"note_or\")));\n \n $store->city= strip_tags(preg_replace('#<script(.*?)>(.*?)</script>#is', '',$request->get(\"city_or\")));\n \n $store->shipping_type= strip_tags(preg_replace('#<script(.*?)>(.*?)</script>#is', '',$request->get(\"shipping_type_pal\")));\n \n $store->subtotal=number_format($request->get(\"subtotal_pal\"), 2, '.', '');\n \n $store->delivery_charges=number_format($request->get(\"charage_pal\"), 2, '.', '');\n \n $store->phone_no= strip_tags(preg_replace('#<script(.*?)>(.*?)</script>#is', '',$request->get(\"phone_pal\")));\n $store->pay_pal_paymentId=$payment->getId();\n $store->delivery_mode=$store->shipping_type;\n $store->notify=1;\n $store->save();\n foreach ($cartCollection as $ke) {\n $getmenu=itemli::where(\"menu_name\",$ke->name)->first();\n $result['ItemId']=(string)isset($getmenu->id)?$getmenu->id:0;\n $result['ItemName']=(string)$ke->name;\n $result['ItemQty']=(string)$ke->quantity;\n $result['ItemAmt']=number_format($ke->price, 2, '.', '');\n $totalamount=(float)$ke->quantity*(float)$ke->price;\n $result['ItemTotalPrice']=number_format($totalamount, 2, '.', '');\n $ingredient=array();\n $inter_ids=array();\n foreach ($ke->attributes[0] as $val) {\n $ls=array();\n $inter=Ingredient::find($val);\n $ls['id']=(string)$inter->id;\n $inter_ids[]=$inter->id;\n $ls['category']=(string)$inter->category;\n $ls['item_name']=(string)$inter->item_name;\n $ls['type']=(string)$inter->type;\n $ls['price']=(string)$inter->price;\n $ls['menu_id']=(string)$inter->menu_id;\n $ingredient[]=$ls;\n }\n \n $result['Ingredients']=$ingredient;\n $finalresult[]=$result;\n $adddesc=new OrderResponse();\n $adddesc->set_order_id=$store->id;\n $adddesc->item_id=$result[\"ItemId\"];\n $adddesc->item_qty=$result[\"ItemQty\"];\n $adddesc->ItemTotalPrice=number_format($result[\"ItemTotalPrice\"], 2, '.', '');\n $adddesc->item_amt=$result[\"ItemAmt\"];\n $adddesc->ingredients_id=implode(\",\",$inter_ids);\n $adddesc->save();\n }\n $data=array(\"Order\"=>$finalresult);\n $addresponse=new FoodOrder();\n $addresponse->order_id=$store->id;\n $addresponse->desc=json_encode($data);\n $addresponse->save();\n \n break;\n }\n }\n \n \n }\n \n }\n }", "title": "" }, { "docid": "da4474d263ef178a07433b29c9f123d1", "score": "0.4940307", "text": "public function notif($xml){\n $trx_id = $xml->trx_id;\n $order_stat = $xml->payment_status_code;\n $order_id = $xml->bill_no;\n $signature = $xml->signature;\n\n //load data sesuai bill number yang di pass\n $orderNow = $this->orderFactory->create()->load($order_id);\n\n //load data sesuai DB Faspay\n $dataModel = $this->faspayOrderFactory->create();\n $thisData = $dataModel->load($order_id);\n\n //check Status First\n if($this->validateStatus($thisData)){\n\n //check signature\n if(!$this->validateSignature($order_id,$signature,$order_stat)){\n\n echo $this->response(99, 'Invalid Signature' ,$trx_id,$order_id);\n\n }\n\n elseif ($trx_id !=$thisData->getTrxId()){\n echo $this->response(99, 'Invalid TRX Id',$trx_id,$order_id);\n }\n\n elseif ($order_id == $thisData->getOrderId()){\n\n if($order_stat == 2){\n $orderNow->setState('complete')->setStatus('complete');\n $orderNow->save();\n\n $thisData->setPaymentStatus('SUCCESS');\n $thisData->save();\n }\n echo $this->response('00', \"Done\",$trx_id,$order_id);\n }\n\n }\n\n else {\n echo $this->response(99, \"Already Processed Payment\",$trx_id,$order_id);\n }\n\n\n }", "title": "" }, { "docid": "99b53409cb6a2b1b0e05feda1162abc8", "score": "0.4929136", "text": "function storeFuturePayIds($component,$futurePayId,&$ids) {\r\n if ($component=='event') { // sanity check\r\n CRM_Core_Error::debug_log_message(\"Error while storing ids,FuturePay should not be used for event payments.\");\r\n error_log(__FILE__.\":\".__FUNCTION__.\" : Error while storing ids, FuturePay should not be used for event payments.\");\r\n return false;\r\n }\r\n $setIds = array ();\r\n $setIds[\"contact_id\"] = $ids[\"contact\"];\r\n $setIds[\"contribution\"] = $ids[\"contribution\"];\r\n $setIds[\"contribution_recur_id\"]=$ids[\"contribution_recur\"];\r\n $setIds[\"contribution_page_id\"]=$ids[\"contribution_page\"];\r\n if (isset($ids[\"membership\"])) {\r\n $setIds[\"membership_id\"]=$ids[\"membership\"];\r\n }\r\n \r\n $fieldsNames = implode(\",\",array_keys($setIds));\r\n $fieldValues = implode(\",\",array_values($setIds));\r\n\r\n $query = \"INSERT INTO worldpay_futurepay_ids($fieldNames) \";\r\n $query.= \"VALUES($fieldValues)\";\r\n $dao = CRM_Core_DAO::executeQuery( $query, CRM_Core_DAO::$_nullArray );\r\n $res = ( $dao ? true : false);\r\n\r\n return $res;\r\n }", "title": "" }, { "docid": "e85c5974dec432e7e2d3722a11ef1082", "score": "0.49284866", "text": "public function processPayment();", "title": "" }, { "docid": "24be57ba4e457016fce3e0aafcceb3ca", "score": "0.49075496", "text": "public function IpnAction()\n {\n $this->log(\"----------- IPN request validation ------------\");\n if (!$this->getRequest()->isPost()) {\n $this->log(\"skip none POST requests\");\n return $this->returnForbidden();\n }\n $ip = long2ip(Mage::helper('core/http')->getRemoteAddr(true));\n $this->log(\"Start IPN request validation\");\n $this->log(\"IP Address of the sender {$ip}\");\n\n /* start to validate the signature */\n $request = $this->getRequest();\n $payload = $request->getRawBody();\n $public_key = $request->getHeader(\"API-Key\");\n $nonce = $request->getHeader(\"API-Nonce\");\n $request_signature = $request->getHeader(\"API-Sign\");\n //$this->log(\"API-KEY:{$public_key}\");\n //$this->log(\"API-Nonce:{$nonce}\");\n //$this->log(\"API-Sign:{$request_signature}\");\n $this->log(\"Received payload: \" . $payload);\n\n if (!$public_key || !$nonce || !$request_signature || !$payload) {\n $this->log(\"Credentials missing. Exiting.\");\n return $this->returnForbidden();\n }\n\n $private_key = Mage::helper('core')->decrypt(\n Mage::getModel(\"bitcoin/bitcoin\")->getConfiguration(\"private_key\")\n );\n $url = Mage::helper('core/url')->getCurrentUrl();\n $this->log(\"CURRENT IPN URL IS : \" .$url);\n\n $message = $nonce . $url . $payload;\n $current_signature = hash_hmac(\"sha256\", $message, $private_key, false);\n $this->log(\"Calculated signature: \" . $current_signature);\n\n if ($request_signature <> $current_signature) {\n $this->log(\"IPN VALIDATION FAILED\");\n $this->log(\"Returning 'page not found'\");\n $this->log(\"Your payment data is still safe\");\n $this->log(\"----------- IPN request processing will be skipped -----------\");\n return $this->returnForbidden();\n }\n $this->log(\"IPN signature validation succeeded\");\n /* end of validate the signature */\n /* by this the request has passed validation */\n try {\n /* need to check the ip address of the source from a whitelist list of ips , otherwise this might be used illegaly to update orders */\n $this->log(\"----------- IPN request processing ------------\");\n $id = base64_decode($this->getRequest()->getParam(\"id\"));\n //$data = file_get_contents('php://input');\n $body = json_decode($payload, true);\n //$this->log(\"current Id is: {$id}\");\n $this->log(\"Received payload: \" . $payload, $body[\"id\"]);\n $url = $body[\"url\"];\n $invoice_id = $body[\"id\"];\n /* simple validation check | might be changed later */\n $collection = Mage::getModel(\"bitcoin/ipn\")\n ->getCollection()\n ->getSelect()\n ->where(\"quote_id = ? OR order_id = ?\", $id)\n ->where(\"invoice_id =?\", $invoice_id);\n $yellow_log = $collection->query()->fetchAll();\n $from_order = $from_quote = false;\n if (count($yellow_log) == 1) {\n if ($yellow_log[0][\"quote_id\"] === $id) {\n $from_quote = true;\n $from_order = false;\n //$this->log(\"its a quote\", $body[\"id\"]);\n } elseif ($yellow_log[0][\"order_id\"] === $id) {\n $from_quote = false;\n $from_order = true;\n //$this->log(\"its an order\", $body[\"id\"]);\n }\n } else {\n $this->log(\"URL validation failed: {$url}\");\n $this->log(\"----------- IPN request processing will be skipped -----------\", $body[\"id\"]);\n return $this->_forward(\"no-route\");\n }\n if ($from_order) {\n $order = Mage::getModel('sales/order')->load($id);\n }\n if ($from_quote) {\n $order = Mage::getModel('sales/order')->load($id, \"quote_id\");\n }\n /* skip quote + authorizing state because the order hasn't been placed yet */\n if ($from_quote && $body[\"status\"] === \"authorizing\") {\n $this->log(\n \"Quote id {$id} will be skipped because the order hasn't been placed yet. IPN status: {$body[\"status\"]}\",\n $body[\"id\"]\n );\n echo json_encode(array(\"message\" => \"skipped\"));\n $this->log(\"----------- IPN request processing will be skipped -----------\", $body[\"id\"]);\n return;\n }\n if ($order->getPayment() instanceof Yellow_Bitcoin_Model_Bitcoin) {\n $payment = $order->getPayment()->getMethodInstance();\n if (!$order || $payment->getCode() <> \"bitcoin\" || $order->getState() <> Mage_Sales_Model_Order::STATE_PAYMENT_REVIEW\n ) {\n $this->log(\"Either this order is not paid via Yellow, or it has an unallowed state\", $body[\"id\"]);\n $this->log(\"----------- IPN request processing will be skipped -----------\", $body[\"id\"]);\n return $this->_forward(\"no-route\");\n }\n }\n $this->log(\" invoice status : {$body[\"status\"]}\", $body[\"id\"]);\n switch ($body['status']) {\n case 'paid':\n $status = Mage::getModel(\"bitcoin/bitcoin\")->getSuccessStatus();\n $status_message = \"Payment confirmation received. Invoice Id: \" . $body['id']; // $invoice[\"message\"];\n $commentHistory = $order->addStatusHistoryComment($status_message,$status);\n $commentHistory->setIsVisibleOnFront(1);\n $order->setState(Mage_Sales_Model_Order::STATE_PROCESSING);\n $order->sendNewOrderEmail();\n $order->save();\n Mage::getResourceModel(\"bitcoin/ipn\")->MarkAsPaid($body[\"id\"]);\n /* create an invoice */\n $invoiceModel = Mage::getModel('sales/order_invoice_api');\n $invoice_id = $invoiceModel->create($order->getIncrementId(), array());\n $invoiceModel->capture($invoice_id);\n $this->log(\"Magento Invoice created!\", $body[\"id\"]);\n break;\n case 'reissue':\n $status = Mage::getModel(\"bitcoin/bitcoin\")->getSuccessStatus(); /// this must bn changed when we had reissue / renew payment ready\n $status_message = \"Client re-issued the invoice. Invoice Id: \" . $body['id']; // $invoice[\"message\"];\n $commentHistory = $order->addStatusHistoryComment($status_message,$status);\n $commentHistory->setIsVisibleOnFront(1);\n $order->save();\n break;\n case 'partial':\n $status = Mage::getModel(\"bitcoin/bitcoin\")->getSuccessStatus(); /// this must bn changed when we had partial payment ready\n $status_message = \"Client made a partial payment. Invoice Id: \" . $body['id']; // $invoice[\"message\"];\n $commentHistory = $order->addStatusHistoryComment($status_message,$status);\n $commentHistory->setIsVisibleOnFront(1);\n $order->save();\n Mage::getResourceModel(\"bitcoin/ipn\")->MarkAsPartial($body[\"id\"]);\n break;\n case 'failed':\n case 'invalid':\n $status = Mage::getModel(\"bitcoin/bitcoin\")->getFailedStatus();\n $status_message = \"Client failed to pay. Invoice Id: \" . $body['id']; // $invoice[\"message\"];\n $commentHistory = $order->addStatusHistoryComment($status_message,$status);\n $commentHistory->setIsVisibleOnFront(1);\n $order->setState(Mage_Sales_Model_Order::STATE_HOLDED);\n $order->cancel();\n $order->save();\n break;\n /// its just a new invoice | authorizing , I will never expect a post with new status , though I had created the block of it\n case 'authorizing':\n Mage::getResourceModel(\"bitcoin/ipn\")->MarkAsAuthorizing($body[\"id\"]);\n break;\n case 'expired':\n /* this to update the ipn table when invoice expired */\n Mage::getResourceModel(\"bitcoin/ipn\")->MarkAsExpired($body[\"id\"]);\n break;\n case 'refund_owed':\n Mage::getResourceModel(\"bitcoin/ipn\")->MarkAsRefundOwed($body[\"id\"]);\n break;\n case 'refund_requested':\n Mage::getResourceModel(\"bitcoin/ipn\")->MarkAsRefundRequested($body[\"id\"]);\n break;\n case 'refund_paid':\n Mage::getResourceModel(\"bitcoin/ipn\")->MarkAsRefundPaid($body[\"id\"]);\n break;\n case 'new':\n default:\n /// @todo : we need to log here\n break;\n }\n echo json_encode(array(\"message\" => \"done\"));\n $this->log(\"----------- IPN request processing complete -----------\", $body[\"id\"]);\n\n } catch (\\Exception $e) {\n $this->log(\"EXCEPTION:\" . $e->getMessage . \"|\" . $e->getLine(), $body[\"id\"]);\n }\n }", "title": "" }, { "docid": "fddb044bc60ed3043cc2c32a58a8dca8", "score": "0.49058303", "text": "public function get_payid_details_indv($payid, $json_check) {\n $tenant_id = $this->tenant_id;\n \n $tenant_details = $this->classtraineemodel->get_tenant_masters($tenant_id);\n $result = $this->classtraineemodel->get_enroll_invoice($payid);\n //added by pritam to generate previous invoice number\n $result->previous_inv_id = $this->classtraineemodel->get_enroll_prev_indvoice($payid);\n //\n $result->invoiced_on = ($result->invoiced_on == NULL || $result->invoiced_on == '0000-00-00 00:00:00') ? '' : date('d-m-Y', strtotime($result->invoiced_on));\n \n $result->invoice_id = $result->invoice_id;\n $result->personal_address_state = rtrim($this->course->get_metadata_on_parameter_id($result->personal_address_state), ', ');\n $result->personal_address_country = rtrim($this->course->get_metadata_on_parameter_id($result->personal_address_country), ', ');\n \n $result->tenant_state = rtrim($this->course->get_metadata_on_parameter_id($result->tenant_state), ', ');\n $result->tenant_country = rtrim($this->course->get_metadata_on_parameter_id($result->tenant_country), ', ');\n $result->total_inv_amount = number_format($result->total_inv_amount, 2, '.', '');\n $result->total_unit_fees = number_format($result->total_unit_fees, 2, '.', '');\n $result->gst_rate = number_format($result->gst_rate, 2, '.', '');\n $result->inv_year = date('Y', strtotime($result->inv_date));\n $result->inv_datinv_yeare = date('d/m/Y', strtotime($result->inv_date));\n $result->discount_rate_hidden = number_format($result->discount_rate, 4, '.', '');\n $result->discount_rate = number_format($result->discount_rate, 2, '.', '');\n $result->discount_label = rtrim($this->course->get_metadata_on_parameter_id($result->discount_type), ', ');\n $result->total_inv_discnt_hidden = number_format($result->total_inv_discnt, 4, '.', '');\n $result->total_inv_discnt = number_format($result->total_inv_discnt, 2, '.', '');\n $result->total_inv_subsdy = number_format(($result->total_inv_subsdy), 2, '.', '');\n \n $trainee_id = $this->classtraineemodel->get_trainee_by_pymnt_due_id($payid)->user_id;\n \n $gst_label = ($result->total_gst) ? 'GST ON, ' : 'GST OFF, ';\n \n if ($result->total_gst) {\n $gst_label .= rtrim($this->course->get_metadata_on_parameter_id($result->gst_rule), ', ');\n }\n $gst_label = rtrim($gst_label, ', ');\n $result->gst_label = $gst_label;\n $result->total_gst = number_format($result->total_gst, 2);\n $feesdue = $result->total_unit_fees - (($result->total_unit_fees * $result->discount_rate) / 100);\n $result->after_gst = $this->classtraineemodel->calculate_after_before_gst($result->gst_on_off, $result->gst_rule, $feesdue, $result->total_inv_subsdy, $result->gst_rate); \n \n if ($result->gst_on_off = 1 && $result->gst_rule == 'GSTBSD') {\n $result->after_discount = $result->total_unit_fees - $result->total_inv_discnt;\n } else {\n $result->after_discount = $result->total_unit_fees - $result->total_inv_discnt - $result->total_inv_subsdy;\n }\n //$paid_details = $this->classtraineemodel->get_invoice_paid_details_indv($result->invoice_id);\n $paid_details = $this->classtraineemodel->get_invoice_paid_details_indv_new($result->invoice_id);//// mmodified by shubhranshu to fix the sfc issue while giving backdate\n \n $paid_arr = array();\n $paid_rcd_till_date = 0;\n //sfc_start\n $result->sfc_claimed=0;\n foreach ($paid_details as $row) \n {\n \n if($row->mode_of_pymnt==\"SFC_SELF\")\n {\n \n $mode_of_payment=explode('_',$row->mode_of_pymnt);\n $result->mode_of_pymnt=$mode_of_payment[1];\n $result->sfc_of_pymnt=$mode_of_payment[1];\n $result->other_payment=$row->other_payment;\n $sfc_claimed=$row->sfc_claimed;\n $result->othr_mode_of_payment=$row->othr_mode_of_payment;\n $result->other_amount_recd=$row->other_amount_recd;\n $result->recd_on=$row->recd_on;\n \n $result->sfc_claimed=number_format($sfc_claimed, 2, '.', '');\n \n }\n if($row->mode_of_pymnt==\"SFC_ATO\")\n {\n $mode_of_payment=explode('_',$row->mode_of_pymnt);\n $result->mode_of_pymnt=$mode_of_payment[1];\n $result->sfc_of_pymnt=$mode_of_payment[1];\n $result->other_payment=$row->other_payment;\n $result->othr_mode_of_payment=$row->othr_mode_of_payment;\n $result->other_amount_recd=$row->other_amount_recd;\n $result->recd_on=$row->recd_on;\n $sfc_claimed=$row->sfc_claimed;\n $result->sfc_claimed=number_format($sfc_claimed, 2, '.', '');\n }\n }\n //sfc_start\n if (!empty($paid_details)) \n {\n $label = 'active';\n \n foreach ($paid_details as $row) \n {\n $mode_ext = ($row->mode_of_pymnt == 'CHQ') ? ' Chq#: ' . $row->cheque_number : '';\n $mode = rtrim($this->course->get_metadata_on_parameter_id($row->mode_of_pymnt), ', '); \n $paid_arr[] = array(\n 'recd_on' => date('d/m/Y', strtotime($row->recd_on)),\n 'mode' => $mode . $mode_ext,\n 'amount' => '$ ' . number_format($row->amount_recd, 2, '.', '') . ' SGD',\n );\n $paid_rcd_till_date = $row->amount_recd + $paid_rcd_till_date;\n }\n \n $result->recd_on=$row->recd_on;\n $result->mode_of_pymnt=$row->mode_of_pymnt;\n $result->amount_recd=$row->amount_recd;\n \n $total_paid = $paid_rcd_till_date;\n\n $result->refund_details = $refund_details = $this->classtraineemodel->get_refund_paid_details($result->invoice_id);\n $refund_amount = 0;\n foreach ($refund_details as $k => $row) \n {\n $row->mode_of_refund;\n \n if ($row->refnd_reason != 'OTHERS') {\n $result->refund_details[$k]->refnd_reason = $this->course->get_metadata_on_parameter_id($row->refnd_reason);\n } else {\n $result->refund_details[$k]->refnd_reason = 'Others (' . $row->refnd_reason_ot . ')';\n }\n\n $result->refund_details[$k]->refund_on = date('d/m/Y', strtotime($row->refund_on));\n $result->refund_details[$k]->mode_of_refund = $this->course->get_metadata_on_parameter_id($row->mode_of_refund);\n $refund_amount = $refund_amount + $row->amount_refund;\n }\n $paid_rcd_till_date = $paid_rcd_till_date - $refund_amount;\n \n $result->paid_rcd_till_date = number_format($paid_rcd_till_date, 2, '.', '');\n \n $course_manager = $this->course->get_managers($result->crse_manager, 1);\n $stripos = stripos($course_manager, ', ');\n $result->course_manager = (empty($stripos)) ? $course_manager : substr($course_manager, 0, $stripos);\n $result->ClassLoc = $this->get_classroom_location($result->classroom_location, $result->classroom_venue_oth);\n\n $result->class_start = date('M d, Y h:i A', strtotime($result->class_start_datetime));\n $result->courseLevel = rtrim($this->course->get_metadata_on_parameter_id($result->certi_level), ', ');\n $invoice = $this->classtraineemodel->get_invoice_for_class_trainee($result->class_id, $result->user_id);\n $trainee_name = $this->classtraineemodel->get_trainee_name('', '', $result->user_id, $tenant_id);\n $name = $trainee_name->first . ' ' . $trainee_name->last;\n $trainee = ($trainee_name->gender == 'MALE') ? 'Mr.' . $name : 'Ms.' . $name;\n $invoice->recd_on_year = date('Y', strtotime($invoice->recd_on));\n $invoice->recd_on = date('d/m/Y', strtotime($invoice->recd_on));\n $invoice->mode_of_pymnt = rtrim($this->course->get_metadata_on_parameter_id($invoice->mode_of_pymnt), ', ');\n $sfc_claim_id = $this->classtraineemodel->get_sfc_claim_id($result->class_id, $result->user_id, $payid, $tenant_id); // addded by shubhranshu for sfc claim id\n \n } \n else {\n $label = 'inactive';\n }\n $result->sfc_claim_id = $sfc_claim_id; // added by shubhranshu\n $result->att_status;\n $result->enrolment_mode;\n if((($result->total_inv_amount + $refund_amount) - $total_paid) == 0){\n $payment_label = 'PAID';\n }else{ \n if($refund_amount > 0){\n $payment_label = 'REFUNDED'; \n } elseif($total_paid == 0){\n $payment_label = 'NOT PAID';\n }\n }\n if($result->att_status==0 && $result->enrolment_mode!=\"COMPSPON\")\n {\n $payment_label = $result->payment_status;\n }\n // echo $paid_rcd_till_date.\"/\".$result->sfc_claimed.\"/\".$result->total_inv_amount.\"/<br />\";\n \n $result->payble=$result->total_inv_amount-$paid_rcd_till_date;\n \n $result->subsidy_recd_date = (($result->subsidy_recd_date == '0000-00-00') || ($result->subsidy_recd_date == null)) ? '' : date('d-m-Y', strtotime($result->subsidy_recd_date));\n $result->payment_label = $payment_label;\n $subsidy_type = $this->classtraineemodel->get_subsidy_type($this->tenant_id);\n $subsidy_type_label = $this->classtraineemodel->get_subsidy_type_label($this->tenant_id, $result->subsidy_type_id);\n $subsidy_type_label = empty($subsidy_type_label)? 'NA':$subsidy_type_label;\n $res = array('data' => $result, 'recd' => $paid_arr, 'label' => $label, 'tenant' => $tenant_details,\n 'invoice' => $invoice, 'trainee' => $trainee, 'subsidy_type' => $subsidy_type,'subsidy_type_label' => $subsidy_type_label); \n if ($json_check == 0) {\n echo json_encode($res);\n exit();\n } else {\n return $res;\n }\n }", "title": "" }, { "docid": "fd05cbe1a62420d34c1c484a13ba3376", "score": "0.490385", "text": "public function get_pay($params) {\n }", "title": "" }, { "docid": "094d0192496ac834e366d678c7d2aae7", "score": "0.49007362", "text": "final public static function waitingForPaymentDetails()\n {\n return self::get(821);\n }", "title": "" }, { "docid": "2bf4f9244974e2b910fef706d3f5f991", "score": "0.48926982", "text": "abstract protected function getPaymentQueue();", "title": "" }, { "docid": "c3a836b9e79dd3368062451aaa4356cf", "score": "0.48846138", "text": "function getNotifs($lastId){\n $aItem = $this->model('Notification');\n $userId = $_SESSION['userID'];\n $myItems = $aItem->where('id', '>', $lastId)->where('user_id','=',$userId)->where('viewed','=','0')->get();\n echo json_encode($myItems);\n }", "title": "" }, { "docid": "5a67343ba5bdaf45e350486a279ea9bb", "score": "0.48820442", "text": "public function get_company_all_invoice_for_remove() \n {\n $matches = array();\n $query_string = htmlspecialchars($_POST['q'], ENT_QUOTES, 'UTF-8');\n $company = $this->input->post('company');\n \n $paid = $this->input->post('paid');\n $result = $this->classtraineemodel->get_company_notpaid_invoices_list($this->tenant_id,$company);\n if ($result) \n {\n foreach ($result as $row) \n {\n $matches[] = array(\n 'key' => $row->invoice_id.'#'.$row->pymnt_due_id.'#'.$row->course_id.'#'.$row->class_id.'#'.$row->company_id.'#'.$row->company_name.'#'.$row->crse_name.'#'.$row->class_name,\n 'label' => $row->invoice_id . ' (Class: ' . $row->class_name . ')',\n 'value' => $row->invoice_id,\n );\n }\n }\n echo json_encode($matches);\n exit();\n }", "title": "" }, { "docid": "6aa1f7d3418104017d0802d70be4640b", "score": "0.48752716", "text": "function afterPaypalNotification($txnId){\n\t\t$paypal =& ClassRegistry::init('PaypalIpn.InstantPaymentNotification');\n\t\t\t\t\n\t\t$transaction = $paypal->findById($txnId);\n\t\t$paypal->id = $txnId;\n\t\t$paypal->saveField('site_id', $this->getSiteId());\n\t\t\n\t\t$this->log('IPN for txn: '.$txnId, 'paypal');\n\n\t\t//Tip: be sure to check the payment_status is complete because failure\n\t\t// are also saved to your database for review.\n\t\tswitch ($transaction['InstantPaymentNotification']['payment_status']) {\n\t\t\tcase 'Completed': case 'Pending':\n\t\t\t\t$this->log($transaction['InstantPaymentNotification']['id'].' was SUCCESSFUL', 'paypal');\t\n\t\t\t\t//Do work son\n\t\t\tbreak;\n\t\t\t\n\t\t\tdefault:\n\t\t\t\t$this->log($transaction['InstantPaymentNotification']['id'].' FAILURE!! Payment status: '.$transaction['InstantPaymentNotification']['payment_status'], 'paypal');\n\t\t\t\t//There was a problem\n\t\t\t\t$this->paypalTransactionError($transaction);\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "460ef311a427ebecd607b6368c96f8ec", "score": "0.48702595", "text": "function jx_getinvoiceorditems()\r\n\t{\r\n\t\t$this->erpm->auth(PNH_INVOICE_RETURNS|PNH_ADD_INVOICE_RETURN);\r\n\t\t$output = array();\r\n\t\t$invno = $this->input->post('scaninp');\r\n\t\t\r\n\t\t$fr_det = $this->db->query(\"select a.franchise_id,franchise_name from pnh_m_franchise_info a join king_transactions b on a.franchise_id = b.franchise_id join king_invoice c on c.transid = b.transid where c.invoice_no = ? \",$invno)->row();\r\n\t\t\r\n\t\t$output['franchise_name'] = $fr_det->franchise_name;\r\n\t\t$output['franchise_id'] = $fr_det->franchise_id;\r\n\t\t$output['invdet'] = $this->erpm->get_invoicedet_forreturn($invno);\r\n\t\t$output['return_cond'] = $this->config->item('return_cond');\r\n\t\t$output['return_reason'] = $this->config->item('return_reason');\r\n\t\techo json_encode($output);\r\n\t}", "title": "" }, { "docid": "65b0b73a4f4a8bcfdc44c21aa2f7b2ee", "score": "0.48698446", "text": "function recurring_globalcollect_get_payment_by_id($id)\n{\n require_once( drupal_get_path( 'module', 'wmf_civicrm' ) . '/db_switcher.inc' );\n\n // make sure we're using the default (civicrm) db\n $dbs = wmf_civicrm_get_dbs();\n $dbs->push( 'civicrm' );\n\n $query = 'SELECT civicrm_contribution_recur.* FROM civicrm_contribution_recur WHERE civicrm_contribution_recur.id = :id LIMIT 1';\n\n $result = db_query( $query, array( ':id' => $id ) )->fetch();\n\n if ( empty( $result ) ) {\n throw new WmfException( WmfException::INVALID_RECURRING, t( 'No record was found with the id: [!id].', array( '!id' => $id ) ) );\n }\n\n return $result;\n}", "title": "" }, { "docid": "d18e65aa3c24b4d51a3201c43504803f", "score": "0.48681495", "text": "function tranferFounds($project_id, $returnTotal=false, $adaptivepayments_pay = true) {\n\n App::import('Vendor', 'paypal');\n $this->Paypal = new Paypal();\n\n\n $this->recursive = -1;\n $sponsorships = $this->find('all', array('conditions' => array('Sponsorship.project_id' => $project_id)));\n\n $tranferredSponsorships = array();\n $total = 0;\n foreach ($sponsorships as $sponsorship) {\n $sponsorship_id = $sponsorship[$this->alias]['id'];\n if ($this->getPaymentType($sponsorship) == EXPRESSCHECKOUT) { // all of these payments are already on our paypal account, no tenemos que hacer nada.\n if ($this->isTransferred($sponsorship, EXPRESSCHECKOUT)) { // se marco como trasferido ? \n $total += $sponsorship[$this->alias]['contribution'];\n $tranferredSponsorships[] = $sponsorship;\n } else {\n $transactionId = $sponsorship[$this->alias]['expresscheckout_transaction_id'];\n if (!empty($transactionId)) {\n $response = $this->Paypal->hashCall('GetTransactionDetails', array('TRANSACTIONID' => $transactionId));\n if ($this->updateExpressCheckoutStatus($sponsorship_id, $transactionId)) {\n $total += $sponsorship[$this->alias]['contribution'];\n $tranferredSponsorships[] = $sponsorship;\n }\n }\n }\n } elseif ($this->getPaymentType($sponsorship) == PREAPPROVAL) {\n if ($this->isTransferred($sponsorship, PREAPPROVAL)) { // se marco como trasferido ? \n $total += $sponsorship[$this->alias]['contribution'];\n $tranferredSponsorships[] = $sponsorship;\n } else {\n $preapproval_key = $sponsorship[$this->alias]['preapproval_key'];\n if ($this->updatePreApprovalStatus($sponsorship_id, $preapproval_key)) { // actualizamos el pago | si esta activo ....\n $transferred = true;\n $sponsorship = $this->read(null, $sponsorship_id);\n if (!$this->isTransferred($sponsorship, PREAPPROVAL)) {\n // transferimos el pago a groofi $transferred = true ;\n if ($adaptivepayments_pay == true && $this->adaptivepayments_pay($sponsorship)) { //\n $total += $sponsorship[$this->alias]['contribution'];\n $tranferredSponsorships[] = $sponsorship;\n } elseif ($adaptivepayments_pay == false) {\n $total += $sponsorship[$this->alias]['contribution'];\n $tranferredSponsorships[] = $sponsorship;\n }\n } else {\n $total += $sponsorship[$this->alias]['contribution'];\n $tranferredSponsorships[] = $sponsorship;\n $sponsorship[$this->alias]['internal_status'] = SPONSORSHIP_TRANSFERRED;\n $sponsorship[$this->alias]['transferred'] = 1;\n $this->save($sponsorship);\n }\n }\n }\n }\n }\n return $returnTotal ? $total : $tranferredSponsorships;\n }", "title": "" }, { "docid": "89c9c8c814085bc3fb4d1e9f1ae73677", "score": "0.4852574", "text": "private function getPayments($formId): array\n\t{\n\t\t$items = [];\n\n\t\tFactory::getApplication()->triggerEvent('onRsformGetPayment', [&$items, $formId]);\n\n\t\treturn $items;\n\t}", "title": "" }, { "docid": "a9fb7f97c9b6924c57ffc7f3af50e48f", "score": "0.48510525", "text": "public function notifyPayment()\n {\n }", "title": "" }, { "docid": "3ac47af57d315656c809cdfefb78a422", "score": "0.4847505", "text": "function public_payment_info() {\n if (!$this->request->isAsyncCall()) {\n $this->response->badRequest();\n } // if\n if ($this->active_invoice->isNew()) {\n $this->response->notFound();\n } // if\n\n }", "title": "" }, { "docid": "09044bc80bbd1ea4a422c9681fa28910", "score": "0.48460197", "text": "function payment() {\n\t\t$url = 'https://www.instawallet.org/api/v1/w/' . $wallet_id . '/payment';\n\t\t$json = file_get_contents($url);\n\t\treturn json_decode($json);\n\t}", "title": "" }, { "docid": "91a2229dda218c00feb56fe03eeacf6b", "score": "0.48438597", "text": "public function checkOut($params = array())\r\n {\r\n $actionType = $params['actionType'];;\r\n $cancelUrl = $params['cancelUrl'];//\"http://localhost\"; \r\n $returnUrl = $params['returnUrl']; \r\n $startingDate = \"\"; \r\n \r\n $currencyCode = $params['currencyCode'];\r\n $receiverEmailArray = array();\r\n $receiverAmountArray = array();\r\n $receiverInvoiceIdArray = array();\r\n foreach($params['receivers'] as $rc)\r\n {\r\n $receiverEmailArray[] = $rc['email'];\r\n $receiverAmountArray[] = $rc['amount'];\r\n $receiverInvoiceIdArray[] = $rc['invoice'];\r\n }\r\n \r\n $receiverPrimaryArray = array();\r\n $senderEmail = $params['sender']; \r\n /**\r\n * feesPayer value {SENDER, PRIMARYRECEIVER, EACHRECEIVER}\r\n * \r\n * @var mixed\r\n */\r\n $feesPayer = $params['feesPayer']; \r\n $ipnNotificationUrl = $params['ipnNotificationUrl'];\r\n $memo = $params['memo']; \r\n $pin = $params['pin']; \r\n $preapprovalKey = $params['preapprovalKey'];\r\n //echo $preapprovalKey;\r\n $reverseAllParallelPaymentsOnError = $params['reverseAllParallelPaymentsOnError']; \r\n $trackingId = $this->generateTrackingID(); \r\n $resArray = $this->CallPay ($actionType, $cancelUrl, $returnUrl, $currencyCode, $receiverEmailArray,\r\n $receiverAmountArray, $receiverPrimaryArray, $receiverInvoiceIdArray,\r\n $feesPayer, $ipnNotificationUrl, $memo, $pin, $preapprovalKey,\r\n $reverseAllParallelPaymentsOnError, $senderEmail, $trackingId,$startingDate\r\n );\r\n \r\n\r\n \r\n $ack = strtoupper($resArray[\"responseEnvelope.ack\"]);\r\n \r\n if($ack==\"SUCCESS\")\r\n {\r\n if (\"\" == $preapprovalKey)\r\n {\r\n // redirect for web approval flow\r\n $cmd = \"cmd=_ap-payment&paykey=\" . urldecode($resArray[\"payKey\"]);\r\n //$cmd = \"cmd=_notify-validate&paykey=\" . urldecode($resArray[\"payKey\"]);\r\n \r\n $this->Redirect($cmd);\r\n }\r\n else\r\n {\r\n \r\n // payKey is the key that you can use to identify the result from this Pay call\r\n $payKey = urldecode($resArray[\"payKey\"]);\r\n // paymentExecStatus is the status of the payment\r\n $paymentExecStatus = urldecode($resArray[\"paymentExecStatus\"]);\r\n } \r\n \r\n }\r\n else\r\n {\r\n $ErrorCode = urldecode($resArray[\"error(0).errorId\"]);\r\n $ErrorMsg = urldecode($resArray[\"error(0).message\"]);\r\n $ErrorDomain = urldecode($resArray[\"error(0).domain\"]);\r\n $ErrorSeverity = urldecode($resArray[\"error(0).severity\"]);\r\n $ErrorCategory = urldecode($resArray[\"error(0).category\"]);\r\n $this->errors = $ErrorCode.':'.$ErrorMsg.' '.$ErrorDomain.' '.$ErrorSeverity.' '.$ErrorCategory;\r\n $this->logging('checkOut Error : '. $this->errors); \r\n return false;\r\n } \r\n \r\n }", "title": "" }, { "docid": "fc227bcbcc1f2ef9087e898fb8e39c92", "score": "0.48437497", "text": "public function index()\n {\n $pending_payments = PendingPayment::latest()->get();\n return PendingPaymentResource::collection($pending_payments);\n }", "title": "" }, { "docid": "cb4c0d069e808fde9aa45e6f6349a792", "score": "0.48375598", "text": "public function loadNotification(){\r\n //remove trace code.\r\n// eeFile::saveFile('new post request get.');\r\n \r\n //get xml\r\n $tmpXML = file_get_contents('php://input');\r\n if (empty($tmpXML)) {\r\n $this->generateReturnXML(0);\r\n }//xml content not get.\r\n \r\n //save response to file to get the structure.\r\n eeFile::saveFile($tmpXML);\r\n \r\n //xml to array\r\n $tmpXMLArr = $this->FromXml($tmpXML);\r\n if ($tmpXMLArr['return_code'] != \"SUCCESS\") {\r\n $this->generateReturnXML();\r\n }\r\n \r\n //check sign\r\n $this->safeValues = $tmpXMLArr;\r\n if ($tmpXMLArr['sign'] != $this->MakeSign()) {\r\n $this->generateReturnXML(0);\r\n };\r\n \r\n //massive attributes\r\n $this->scenario = 'notification';\r\n $this->attributes = $tmpXMLArr;\r\n $this->noti_result_code = $tmpXMLArr['result_code'];\r\n// var_dump($this->attributes);\r\n \r\n //remove trace code.\r\n// eeFile::saveFile('otn->'.$this->out_trade_no);\r\n //load OPM\r\n $tmpArr = explode('_', $this->out_trade_no);\r\n if (!isset($tmpArr[1])) {\r\n $this->generateReturnXML(0);\r\n }\r\n $opm = OrderPaymentMethod::findOne((int)$tmpArr[1]);\r\n if (empty($opm)) {\r\n $this->generateReturnXML();\r\n }\r\n \r\n if ($opm->opm_status_id == OrderPaymentMethod::OPM_PAID) {\r\n //already paid, direct return success\r\n $this->generateReturnXML(1);\r\n }\r\n \r\n \r\n $opm->scenario = 'notification';\r\n //update opm\r\n $opm->opm_paid = $this->total_fee/100;\r\n $opm->opm_cash = $this->cash_fee/100;\r\n $opm->opm_openId = $this->openid;\r\n $opm->opm_tradeType_return = $this->trade_type;\r\n $opm->opm_transaction_id = $this->transaction_id;\r\n $opm->opm_paidDate = date('Y-m-d H:i:s', strtotime($this->time_end));\r\n \r\n if ($this->noti_result_code == 'SUCCESS') {\r\n //SUCCESS\r\n //update opm status\r\n $opm->opm_status_id = OrderPaymentMethod::OPM_PAID;\r\n $opm->save();\r\n// var_dump($opm->errors);\r\n// exit;\r\n \r\n //load ORDER\r\n $order = $opm->opmOrder;\r\n if (!empty($order)) {\r\n $order->scenario = 'notification';\r\n $order->or_pricePaid = $this->total_fee/100;\r\n $order->or_status_id = OrderPaymentMethod::OPM_PAID;\r\n $order->or_paidDate = $opm->opm_paidDate;\r\n $order->save();\r\n }\r\n }else{\r\n //FAIL\r\n //update opm status\r\n $opm->opm_status_id = OrderPaymentMethod::OPM_FAIL;\r\n $opm->save();\r\n \r\n //load ORDER\r\n $order = $opm->opmOrder;\r\n if (!empty($order)) {\r\n $order->or_status_id = OrderPaymentMethod::OPM_FAIL;\r\n $order->save();\r\n }\r\n }\r\n \r\n $this->generateReturnXML(1);\r\n }", "title": "" }, { "docid": "083bc63075019458851672d63607e891", "score": "0.4835993", "text": "public static function processIPNrequest()\n {\n\n// STEP 1: read POST data\n// Reading POSTed data directly from $_POST causes serialization issues with array data in the POST.\n// Instead, read raw POST data from the input stream. \n $raw_post_data = file_get_contents('php://input');\n $raw_post_array = explode('&', $raw_post_data);\n $myPost = array();\n foreach ($raw_post_array as $keyval)\n {\n $keyval = explode('=', $keyval);\n if (count($keyval) == 2)\n $myPost[$keyval[0]] = urldecode($keyval[1]);\n }\n// read the IPN message sent from PayPal and prepend 'cmd=_notify-validate'\n $req = 'cmd=_notify-validate';\n if (function_exists('get_magic_quotes_gpc'))\n {\n $get_magic_quotes_exists = true;\n }\n foreach ($myPost as $key => $value)\n {\n if ($get_magic_quotes_exists == true && get_magic_quotes_gpc() == 1)\n {\n $value = urlencode(stripslashes($value));\n }\n else\n {\n $value = urlencode($value);\n }\n $req .= \"&$key=$value\";\n }\n\n\n// Step 2: POST IPN data back to PayPal to validate\n\n $ch = curl_init('https://www.paypal.com/cgi-bin/webscr');\n curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $req);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);\n curl_setopt($ch, CURLOPT_FORBID_REUSE, 1);\n curl_setopt($ch, CURLOPT_HTTPHEADER, array('Connection: Close'));\n\n// In wamp-like environments that do not come bundled with root authority certificates,\n// please download 'cacert.pem' from \"http://curl.haxx.se/docs/caextract.html\" and set \n// the directory path of the certificate as shown below:\n// curl_setopt($ch, CURLOPT_CAINFO, dirname(__FILE__) . '/cacert.pem');\n if (!($res = curl_exec($ch)))\n {\n error_log(\"Got \" . curl_error($ch) . \" when processing IPN data\");\n curl_close($ch);\n exit;\n }\n curl_close($ch);\n\n $status = array();\n $status['verified'] = null;\n\n if (strcmp($res, \"VERIFIED\") == 0)\n {\n // The IPN is verified, process it\n error_log('IPN VERIFIED (NOT ERROR):' . print_r($_POST,true)); \n\n // IPN message values depend upon the type of notification sent.\n // To loop through the &_POST array and print the NV pairs to the screen:\n foreach ($_POST as $key => $value)\n {\n $status[$key] = $value; \n }\n $status['verified'] = true;\n }\n else if (strcmp($res, \"INVALID\") == 0)\n {\n // IPN invalid, log for manual investigation\n error_log('INVALID VERIFIED:' . print_r($_POST,true));\n $status['verified'] = false;\n }\n\n return $status;\n }", "title": "" }, { "docid": "8d8074f78c97acb282fce039557dd8ed", "score": "0.48342875", "text": "public function getAllPending(): array;", "title": "" }, { "docid": "0f5f76c7a74790ba52066baba96ff938", "score": "0.4832087", "text": "function get_all_ids() {\n\t\t$cloudprofile_list = array();\n\t\t$query = \"select pr_id from \".$this->_db_table;\n\t\t$db=htvcenter_get_db_connection();\n\t\t$rs = $db->Execute($query);\n\t\tif (!$rs)\n\t\t\t$this->_event->log(\"get_all_ids\", $_SERVER['REQUEST_TIME'], 2, \"cloudprofile.class.php\", $db->ErrorMsg(), \"\", \"\", 0, 0, 0);\n\t\telse\n\t\twhile (!$rs->EOF) {\n\t\t\t$cloudprofile_list[] = $rs->fields;\n\t\t\t$rs->MoveNext();\n\t\t}\n\t\treturn $cloudprofile_list;\n\n\t}", "title": "" }, { "docid": "6fe540b1eea36ab4282aa00566861a9a", "score": "0.4824806", "text": "public function ipn(Request $request)\n {\n #Received all the payement information from the gateway\n if ($request->input('tran_id')) #Check transation id is posted or not.\n {\n\n $tran_id = $request->input('tran_id');\n\n #Check order status in order tabel against the transaction id or order id.\n $order_details = ProductOrder::where('tran_id', $tran_id)\n ->select('tran_id', 'payment_status', 'currency', 'total_amount')->first();\n\n if ($order_details->status == 'Pending') {\n $sslc = new SslCommerzNotification();\n $validation = $sslc->orderValidate($request->all(), $tran_id, $order_details->amount, $order_details->currency);\n if ($validation == TRUE) {\n /*\n That means IPN worked. Here you need to update order status\n in order table as Processing or Complete.\n Here you can also sent sms or email for successful transaction to customer\n */\n $update_product = ProductOrder::where('tran_id', $tran_id)\n ->update(['payment_status' => 'Processing']);\n\n return redirect()->route('frontend_customer_dashboard', '#orders')->with('success', 'Transaction is successfully Completed');\n } else {\n /*\n That means IPN worked, but Transation validation failed.\n Here you need to update order status as Failed in order table.\n */\n $update_product = ProductOrder::where('tran_id', $tran_id)\n ->update(['payment_status' => 'Failed']);\n\n echo \"validation Fail\";\n }\n\n } else if ($order_details->status == 'Processing' || $order_details->status == 'Complete') {\n\n #That means Order status already updated. No need to udate database.\n\n return redirect()->route('frontend_customer_dashboard', '#orders')->with('success', 'Transaction is successfully Completed');\n } else {\n #That means something wrong happened. You can redirect customer to your product page.\n\n echo \"Invalid Transaction\";\n }\n } else {\n echo \"Invalid Data\";\n }\n }", "title": "" }, { "docid": "55c89c09edabb42e594fe818ddc9abe2", "score": "0.4824626", "text": "public function getRecurringNumber();", "title": "" }, { "docid": "b571a27ed8305acc36de6669a856d341", "score": "0.48172492", "text": "public function receipts() {\n $station = auth()->user()->station_id;\n\n $trans = DB::select('select * from trans_info where rcv_stn_id = ? order by id desc', [$station]);\n\n return $trans;\n }", "title": "" }, { "docid": "bf2678bcc3c780d07d0980a61ef8d20d", "score": "0.48131326", "text": "function get_notifications($profile_id=0){\n\tglobal $mysqli;\n\n\t\t$query=\"SELECT * FROM event_invitees WHERE profile_id=\".$profile_id;\n\t\t$notifications=array();\n\t\t$result=$mysqli->query($query);\n\t\twhile($row=$result->fetch_assoc())\n\t\t{\n\t\t\t\n\t\t\t$response['notification_type']='event';\n\t\t\t$response['notification_status']=$row['accepted'];\n\t\t\t$response['notification_id']=$row['invitation_id'];\n\t\t\t$response['notification_datetime']=$row['created'];\n\n\t\t\t$sql_notifier=\"SELECT * FROM events WHERE event_id=\".$row['event_id'];\n\t\t\t$res_notifier=$mysqli->query($sql_notifier);\n\t\t\t$row_notifier=$res_notifier->fetch_assoc();\n\t\t\t$response['notification_by']=$row_notifier['event_createdby'];\n\t\t\t$sql_getprofile=\"SELECT * FROM profiles WHERE profile_id=\".$response['notification_by'];\n\t\t\t$res_getprofile=$mysqli->query($sql_getprofile);\n\t\t\t$row_getprofile=$res_getprofile->fetch_assoc();\n\t\t\t$response['notifier_profile_name']=$row_getprofile['profile_name'];\n\t\t\t$response['notifier_thumbnail']=$row_getprofile['profile_thumbnail'];\n\t\t\t$response['notification_title']=$row_notifier['event_title'];\n\t\t\t$response['event_details']=$row_notifier;\n\t\t\tarray_push($notifications, $response);\n\t\t\t//echo $row['event_id'];\n\t\t}\n\t\t$query2=\"SELECT * FROM friends2 WHERE profile2_id=\".$profile_id;\n\t\t$result2=$mysqli->query($query2);\n\t\twhile($row2=$result2->fetch_assoc())\n\t\t{\n\t\t\t$response2['notification_type']='friend';\n\t\t\t$response2['notification_status']=$row2['status'];\n\t\t\t$response2['notification_by']=$row2['profile1_id'];\n\t\t\t$sql_getprofile2=\"SELECT * FROM profiles WHERE profile_id=\".$response2['notification_by'];\n\t\t\t$res_getprofile2=$mysqli->query($sql_getprofile2);\n\t\t\t$row_getprofile2=$res_getprofile2->fetch_assoc();\n\t\t\t$response2['notifier_profile_name']=$row_getprofile2['profile_name'];\n\t\t\t$response2['notifier_thumbnail']=$row_getprofile2['profile_thumbnail'];\n\t\t\t$response2['notification_title']='New Friend Request';\n\t\t\tarray_push($notifications, $response2);\n\t\t\t//echo $row['event_id'];\n\t\t}\n\n\t\theader('Content-Type: application/json');\n\t\techo json_encode($notifications, JSON_UNESCAPED_SLASHES);\n}", "title": "" }, { "docid": "e4ab23e026ac7228b979235eb0f8fcca", "score": "0.4812659", "text": "function wp_aff_wlmem_paypal_ipn_response_handler() {\n wp_affiliate_log_debug(\"WishList Member - paypal_ipn_response. Custom var value: \" . $_POST['custom'], true);\n if (isset($_POST['custom'])) {//Check if affilite ID exists\n $custom_array = wp_parse_args($_POST['custom']);\n if (isset($custom_array['ap_id'])) {\n wp_affiliate_log_debug(\"WishList Member - paypal_ipn_response. Affiliate commission need to be tracked. Affiliate ID: \" . $custom_array['ap_id'], true);\n $referrer = $custom_array['ap_id'];\n $clientip = $custom_array['ip'];\n $item_id = $_POST['item_number'];\n $txn_id = $_POST['txn_id'];\n $sale_amt = $_POST['mc_gross'];\n $buyer_email = $_POST['payer_email'];\n $buyer_name = $_POST['first_name'] . \" \" . $_POST['last_name'];\n $aff_details_debug = \"Referrer: \" . $referrer . \" Sale Amt: \" . $sale_amt . \" Buyer Email: \" . $buyer_email . \" Txn ID: \" . $txn_id;\n wp_affiliate_log_debug(\"WishList Member - paypal_ipn_response. Extra debug data: \" . $aff_details_debug, true);\n wp_aff_award_commission_unique($referrer, $sale_amt, $txn_id, $item_id, $buyer_email, $clientip, '', $buyer_name);\n } else {\n wp_affiliate_log_debug(\"WishList Member - paypal_ipn_response. Not an affiliate referral. Commission tracking not needed.\", true);\n }\n }\n}", "title": "" }, { "docid": "2b035fa1d4d3c9e20db55c7c7424f2df", "score": "0.4809179", "text": "function getXeroInvoiceCallbackURI() {\r\n $sql = $this->db->prepare(\"SELECT uri FROM CALLBACK_URIS WHERE callback='xero_invoice'\");\r\n $sql->execute();\r\n return $sql->fetch(PDO::FETCH_ASSOC);\r\n }", "title": "" }, { "docid": "34301ca6873342f19a86a333e0dbd85f", "score": "0.48065904", "text": "public function pay_bill_get(){\r\n if (!$this->pronet_model->pay_bill(1, '882332411098', '4999999999999999', '4521','12','2022')) {\r\n $response = $this->pronet_model->get_response();\r\n $this->response([\r\n 'status' => FALSE,\r\n 'message' => $response['ResponseMessage'],\r\n 'response_code' => $response['ResponseCode']\r\n ], REST_Controller::HTTP_BAD_REQUEST);\r\n } else {\r\n $response = $this->pronet_model->get_response();\r\n $this->response([\r\n 'status' => TRUE,\r\n 'message' => $response['ResponseMessage'],\r\n 'response_code' => $response['ResponseCode']\r\n ], REST_Controller::HTTP_OK);\r\n }\r\n }", "title": "" }, { "docid": "385ca6825501df152c758eeaeb8ddbc1", "score": "0.48061037", "text": "private function getPaymentInfo()\n {\n $baseUrl = 'http://embeddables.eastus2.cloudapp.azure.com/payment/';\n\n return json_decode(\n file_get_contents(\n $baseUrl . 'payment.json'\n )\n );\n }", "title": "" }, { "docid": "0b278404a6eda756a2f4c4bf08324471", "score": "0.48027638", "text": "function rst_ipncall($data)\n{\n global $wpdb;\n $bookingdetails = $data['custom'];\n //print \"<br>Booking details=\".$bookingdetails;\n $bookingdetails = explode(\"__\", $bookingdetails);\n $booking_id = isset($bookingdetails[0]) ? $bookingdetails[0] : $data['custom'];\n $c_code = isset($bookingdetails[1]) ? $bookingdetails[1] : '';\n $c_discount = isset($bookingdetails[2]) ? $bookingdetails[2] : 0;\n $freeseatsavailed = isset($bookingdetails[3]) ? $bookingdetails[3] : 0;\n $rstfees = isset($bookingdetails[4]) ? $bookingdetails[4] : 0;\n if ($freeseatsavailed != 0) {\n $data1['seatsavailed'] = $freeseatsavailed;\n $data1['memid'] = $c_code;\n rst_member_operations('updateavail', $data1);\n }\n $rst_options = get_option(RSTPLN_OPTIONS);\n $rst_options['rst_ticket_prefix'];\n $ticketno = $rst_options['rst_ticket_prefix'] . $booking_id;\n $paypalvars = array();\n $txn_id = '';\n $totalpaid = 0;\n foreach ($data as $key => $value) {\n if ($key == 'txn_id') {\n $txn_id = $value;\n }\n if ($key == 'mc_gross') {\n $totalpaid = $value;\n }\n }\n $txn_id1 = $txn_id;\n $totalpaid1 = $totalpaid;\n $paypal_vars = print_r($data, true);\n $wpdb->query(\"UPDATE $wpdb->rst_bookings SET paypal_vars='$paypal_vars',payment_status='ipn_verified',ticket_no='$ticketno',c_code='$c_code',c_discount=$c_discount,fees=$rstfees WHERE booking_id=\" . $booking_id);\n$customfield_query= apply_filters('row_seats_custom_field_query',$booking_id);\n $sql = \"SELECT * FROM $wpdb->rst_bookings where booking_id=\" . $booking_id;\n if ($results = $wpdb->get_results($sql, ARRAY_A)) {\n $booking_details = $wpdb->get_results($sql, ARRAY_A);\n $data = $booking_details[0];\n $booking_details = $booking_details[0]['booking_details'];\n $booking_details = unserialize($booking_details);\n\t\t//print_r($booking_details);\n for ($row = 0; $row < count($booking_details); $row++) {\n $seats = $booking_details[$row]['seatno'];\n $showid = $booking_details[$row]['show_id'];\n $rowname = $booking_details[$row]['row_name'];\n $price = $booking_details[$row]['price'];\n $sql = \"SELECT * FROM $wpdb->rst_seats st,$wpdb->rst_shows sh\n WHERE\n sh.id=st.show_id AND\n st.row_name = '$rowname' AND\n st.seatno = '$seats' AND\n st.seattype <>'' AND\n sh.id =\" . $showid;\n $seatdatatoupdate = $wpdb->get_results($sql, ARRAY_A);\n $seatdata = $seatdatatoupdate[0];\n $seatid = $seatdata['seatid'];\n if ($seatdata['seattype'] == 'T') {\n $wpdb->query(\"UPDATE $wpdb->rst_seats SET seattype='B',status='paid' WHERE show_id=\" . $showid . \" AND row_name='$rowname' AND seatid=\" . $seatid);\n }\n if ($row < $freeseatsavailed) {\n $txn_id = 'Free Booking';\n $totalpaid = 0;\n } else {\n $txn_id = $txn_id1;\n $totalpaid = $totalpaid1;\n }\n if ($txn_id == 'Free Booking') {\n $totalpaid = 0;\n $txn_id = base64_encode('Free Booking-' . $ticketno . $showid);\n }\n if ($txn_id == 'Offline Reservation') {\n $txn_id = base64_encode('Offline Reservation-' . $ticketno . $showid);\n }\n $ticket_seat_no = $ticketno . '-' . $rowname . $seats;\n $sql = \"INSERT INTO $wpdb->rst_booking_seats_relation (ticket_no,ticket_seat_no,booking_id,show_id,b_seatid,total_paid,txn_id,seat_cost,booking_status,comments)\n VALUES ('$ticketno', '$ticket_seat_no', $booking_id,$showid,$seatid,$totalpaid,'$txn_id',$price,'','')\";\n //print \"<br>\".$sql;\n\t\t\t//exit;\n $wpdb->query($sql);\n }\n $sql = \"select * from $wpdb->rst_bookings rstbk,$wpdb->rst_booking_seats_relation bsr,$wpdb->rst_shows rsts\n where (rstbk.payment_status ='ipn_verified' OR rstbk.payment_status ='offline_registration')\n and bsr.booking_id = rstbk.booking_id\n and rsts.id = bsr.show_id\n and bsr.booking_id =\" . $booking_id;\n if ($results = $wpdb->get_results($sql, ARRAY_A)) {\n $booking_details = $wpdb->get_results($sql, ARRAY_A);\n $data = $booking_details;\n sendrstmail($data, $txn_id);\n }\n }\n //exit();\n}", "title": "" }, { "docid": "d76a4f5deadaa45a3d8949526c2a13c0", "score": "0.4798452", "text": "public function record_subscription_payment() { }", "title": "" }, { "docid": "f406c247292aa64acadc03cc8f1c9313", "score": "0.47924915", "text": "public function process() {\n\t\t$this->log('Process accessed', 'paypal');\n\t\tif ($this->request->is('post')) {\n\t\t\t$this->log('POST ' . print_r($_POST, true), 'paypal');\n\t\t}\n\t\tif ($this->InstantPaymentNotification->isValid($_POST)) {\n\t\t\t$this->log('POST Valid', 'paypal');\n\t\t\t$notification = $this->InstantPaymentNotification->buildAssociationsFromIPN($_POST);\n\n\t\t\t$existingIPNId = $this->InstantPaymentNotification->searchIPNId($notification);\n\t\t\tif ($existingIPNId !== false) {\n\t\t\t\t$notification['InstantPaymentNotification']['id'] = $existingIPNId;\n\t\t\t}\n\n\t\t\t$this->InstantPaymentNotification->saveAll($notification);\n\t\t\t$this->__processTransaction($this->InstantPaymentNotification->id);\n\t\t} else {\n\t\t\t$this->log('POST Not Validated', 'paypal');\n\t\t}\n\t\treturn $this->redirect('/');\n\t}", "title": "" }, { "docid": "9c562b71846ccbabf0366976c80dbfbe", "score": "0.47910887", "text": "function actionIpn(){\n //LicenciaHelper::updatePaymentIfExist(1, 'I-V8CPTPJ0J3YE', 18);die;\n\n /*\n By default the IpnListener object is going to post the data back to PayPal\n using cURL over a secure SSL connection. This is the recommended way to post\n the data back, however, some people may have connections problems using this\n method.\n\n To post over standard HTTP connection, use:\n $listener->use_ssl = false;\n\n To post using the fsockopen() function rather than cURL, use:\n $listener->use_curl = false;\n */\n\n /*\n The processIpn() method will encode the POST variables sent by PayPal and then\n POST them back to the PayPal server. An exception will be thrown if there is\n a fatal error (cannot connect, your server is not configured properly, etc.).\n Use a try/catch block to catch these fatal errors and log to the ipn_errors.log\n file we setup at the top of this file.\n\n The processIpn() method will send the raw data on 'php://input' to PayPal. You\n can optionally pass the data to processIpn() yourself:\n $verified = $listener->processIpn($my_post_data);\n */\n\n $ipnListener = new IpnListener();\n //$ipnListener->use_sandbox = true;\n $ipnListener->use_sandbox = false;\n //$verified = true;\n Yii::info($_REQUEST, 'paypal');\n\n try {\n $ipnListener->requirePostMethod();\n $verified = $ipnListener->processIpn();\n } catch (Exception $e) {\n Yii::error($e->getMessage(), 'paypal');\n throw $e;\n //exit(0);\n }\n\n /*\n The processIpn() method returned true if the IPN was \"VERIFIED\" and false if it\n was \"INVALID\".\n */\n if ($verified) {\n /*\n Once you have a verified IPN you need to do a few more checks on the POST\n fields--typically against data you stored in your database during when the\n end user made a purchase (such as in the \"success\" page on a web payments\n standard button). The fields PayPal recommends checking are:\n\n 1. Check the $_POST['payment_status'] is \"Completed\"\n 2. Check that $_POST['txn_id'] has not been previously processed\n 3. Check that $_POST['receiver_email'] is your Primary PayPal email\n 4. Check that $_POST['payment_amount'] and $_POST['payment_currency']\n are correct\n\n Since implementations on this varies, I will leave these checks out of this\n example and just send an email using the getTextReport() method to get all\n of the details about the IPN.\n */\n\n $data = $_POST;\n //$data = $ipnListener->getPostData();\n\n\n //$licInstance = Licencia::find()->where(['token' => $user_id_lic_id[3]])->one();\n //if(!$licInstance){\n // Yii::info('No se ha creado la intancia licencia todavia puede ser que la repuesta demoro mas que el IPN en el proximo se creara');\n // return;\n //}\n\n\n $ipn_record = IpnNotification::find()->where([\n 'subscr_id' => isset($data['subscr_id']) ? $data['subscr_id'] : '',\n 'txn_type' => $data['txn_type']]\n )->one();\n\n if ($ipn_record != null) {\n Yii::warning('MENSAJE DUPLICADO ** ' . $ipnListener->getPostData(), 'paypal');\n return;\n }\n\n\n $licencia = Licencia::find()->where(['id' => $data['custom']])->one();\n if(!$licencia or count($licencia->salons) != 1){\n Yii::warning('Licencia no encontrada');\n return;\n }\n\n $salon = $licencia->salons[0];\n\n\n $update_salon_state = false;\n\n if ($data['txn_type'] == 'subscr_signup') {\n\n\n $ipn_record = new IpnNotification();\n $ipn_record->txn_type = IpnNotification::TNX_TYPE_SIGNUP;\n $ipn_record->subscr_id = $data['subscr_id'];\n $ipn_record->payer_email = $data['payer_email'];\n $ipn_record->receiver_email = $data['receiver_email'];\n $ipn_record->msg_date = isset($data['subscr_date']) ? date('Y-m-d', strtotime($data['subscr_date'])) : '';\n $ipn_record->item_name = $data['item_name'];\n $ipn_record->mc_currency = $data['mc_currency'];\n //$user_id_lic_id = explode('_', $data['custom']);\n $ipn_record->user_id = $salon->usuarioid;\n $ipn_record->licencia_id = $data['custom'];\n $licencia->estado = Licencia::ESTADO_ACTIVO;\n $licencia->save();\n $ipn_record->save();\n\n $update_salon_state = true;\n\n //LicenciaHelper::saveLicencia($data, $ipn_record, $user_id_lic_id[1]);\n //} elseif ($data['txn_type'] == 'subscr_payment' and isset($data['txn_id'] ) and $data['payment_status']== 'Completed' ) {\n } elseif ($data['txn_type'] == 'subscr_payment' and isset($data['txn_id'] ) ) {\n\n $transaction = Yii::$app->db->beginTransaction();\n $ipn_record = new IpnNotification();\n $ipn_record->txn_type = IpnNotification::TNX_TYPE_PAYMENT;\n $ipn_record->txn_id = $data['txn_id'];\n $ipn_record->subscr_id = $data['subscr_id'];\n $ipn_record->payer_email = $data['payer_email'];\n $ipn_record->receiver_email = $data['receiver_email'];\n $ipn_record->msg_date = isset($data['subscr_date']) ? date('Y-m-d', strtotime($data['subscr_date'])): '';\n $ipn_record->item_name = $data['item_name'];\n $ipn_record->mc_currency = $data['mc_currency'];\n //$ipn_record->user_id = $user_id_lic_id[0];\n $ipn_record->payment_status = $data['payment_status'];\n $ipn_record->payment_type = $data['payment_type'];\n $ipn_record->mc_gross = $data['mc_gross'];\n //$user_id_lic_id = explode('_', $data['custom']);\n //$ipn_record->user_id = $user_id_lic_id[0];\n\n $ipn_record->user_id = $salon->usuarioid;\n $ipn_record->licencia_id = $data['custom'];\n $licencia->estado = Licencia::ESTADO_ACTIVO;\n $licencia->save();\n $ipn_record->save();\n\n $update_salon_state = true;\n\n /*if(!$salon = Salon::find()->where(['id' => $user_id_lic_id[2]])->one()){\n Yii::error('El salon que adquirió esa licencia no existe');\n return;\n }*/\n //$ipn_record->licencia_id = $salon->licenciaid;\n //$ipn_record->save();\n //$ipn_record\n //LicenciaHelper::saveLicencia($data, $ipn_record, $user_id_lic_id[1]);\n $transaction->commit();\n\n }elseif($data['txn_type'] == IpnNotification::TNX_TYPE_EOT or $data['txn_type'] == IpnNotification::TNX_TYPE_CANCELLED){\n $ipn_record = new IpnNotification();\n $ipn_record->txn_type = $data['txn_type'];\n $ipn_record->subscr_id = $data['subscr_id'];\n\n if(!count($licencia->salons)){\n Yii::error('El salon que ha adquirido esa licencia no existe');\n return;\n }else{\n $ipn_record->licencia_id = $data['custom'];\n $ipn_record->user_id = $salon->usuarioid;\n $ipn_record->save();\n\n $licencia->detalles = 'El servicio de paypal fue cancelado o expiró';\n\n //obtener fecha de ultimo pago, adicionarle la duracion del tipo de licencia y setearlo\n // como fecha de fin para que el cliente luego de cancelar el servicio todavia pueda disfrutar del\n //periodo correspondiente de licencia, y no se le inhabilite inmediantamente la licencia\n\n $last_payment = IpnNotification::find()->where([\n 'licencia_id' => $licencia->id,\n 'txn_type' => IpnNotification::TNX_TYPE_PAYMENT\n ])->orderBy('msg_date DESC')->one();\n\n if ($last_payment) {\n $last_payment_date = date_create($last_payment->msg_date);\n $duracion = $licencia->licenciaSpec->duracion;\n $tipo_duracion = $licencia->licenciaSpec->tipo_duracion;\n\n if ($tipo_duracion == LicenciaSpec::TIPO_DURACION_DIA)\n $tipo_duracion_str = 'days';\n elseif ($tipo_duracion == LicenciaSpec::TIPO_DURACION_MES)\n $tipo_duracion_str = 'months';\n elseif ($tipo_duracion == LicenciaSpec::TIPO_DURACION_ANNO)\n $tipo_duracion_str = 'years';\n\n date_add($last_payment_date, date_interval_create_from_date_string($duracion . ' ' . $tipo_duracion_str));\n $licencia->fecha_fin = date_format($last_payment_date, 'Y-m-d H:i');\n }else {\n $licencia->estado = Licencia::ESTADO_INACTIVO;\n $salon->estado_sisitema = Salon::ESTADO_SISTEMA_INACTIVO;\n }\n\n $licencia->save();\n $salon->save();\n\n $update_salon_state = true;\n }\n\n } elseif($data['txn_type'] == IpnNotification::TNX_TYPE_WEB_ACEPT){\n\n $ipn_record = new IpnNotification();\n $ipn_record->txn_type = IpnNotification::TNX_TYPE_WEB_ACEPT;\n $ipn_record->txn_id = $data['txn_id'];\n // $ipn_record->subscr_id = $data['subscr_id'];\n $ipn_record->payer_email = $data['payer_email'];\n $ipn_record->receiver_email = $data['receiver_email'];\n //$ipn_record->msg_date = isset($data['subscr_date']) ? date('Y-m-d', strtotime($data['subscr_date'])): '';\n $ipn_record->item_name = $data['item_name'];\n $ipn_record->mc_currency = $data['mc_currency'];\n // $ipn_record->user_id = $user_id_lic_id[0];\n $ipn_record->payment_status = $data['payment_status'];\n $ipn_record->payment_type = $data['payment_type'];\n $ipn_record->mc_gross = $data['mc_gross'];\n // $ipn_record->user_id = $user_id_lic_id[0];\n $ipn_record->user_id = $salon->usuarioid;\n $ipn_record->licencia_id = $data['custom'];\n $licencia->estado = Licencia::ESTADO_ACTIVO;\n $licencia->save();\n $ipn_record->save();\n\n $update_salon_state = true;\n\n //LicenciaHelper::saveLicencia($data, $ipn_record, $user_id_lic_id[1]);\n\n }\n\n if($update_salon_state)\n SalonHelper::actualizarEstadoSalon($salon->id);\n\n //DetallesPago::find()->where([]);\n\n\n mail('melonormajm@gmail.com', 'Verified IPN', $ipnListener->getTextReport());\n /*Yii::$app->mailer->compose()\n ->setFrom('ipn@domain.com')\n ->setTo('melonormajm@gmail.com')\n ->setCc('melonorma@infomed.sld.cu')\n ->setSubject('Reporte')\n ->setTextBody($ipnListener->getTextReport())\n //->setHtmlBody($h)\n //->setHtmlBody('<p>Html</p>')\n ->send();\n */\n // Yii::info($ipnListener->getPostData(), 'paypal');\n\n\n } else {\n /*\n An Invalid IPN *may* be caused by a fraudulent transaction attempt. It's\n a good idea to have a developer or sys admin manually investigate any\n invalid IPN.\n */\n mail('melonormajm@gmail.com', 'Invalid IPN', $ipnListener->getTextReport());\n }\n\n Yii::$app->request->enableCsrfValidation = TRUE;\n }", "title": "" }, { "docid": "d0202ede96e8c5277fa5ecc912f21b9e", "score": "0.47882795", "text": "public function paymentHistory(Request $request)\n\t{\n\t\t$dueId = $request->input('due_id');\n\t\t$settled_records = $request->input('settled_records');\n\t\t$custom_id = $request->input('custom_id');\n\t\t$businessId = $request->input('businessId');\n\t\tif(isset($dueId)){\n\t\tif(empty($dueId)){\n\t\t\treturn Response::json(['error' => true,'message'=>'Due id can not be null'], 300);\n\t\t }\n\t }\n\t\t$paymentHistory = BusinessPaidFees::select('id','paid_date','paid_amount','paid_note','deleted_at','payment_options_drop_down')->whereNull('deleted_at')->orderBy('id','DESC');\n\t\t$paymentHistory1 = $paymentHistory->where('due_id', $dueId)->get();\n\t\t$exisitng_due_ids =[];\n\t\t$paid_history = BusinessDueFees::where('external_business_id', $custom_id)->whereNull('deleted_at')->where('id', $dueId);\n\t\t$paid_history = $paid_history->withCount([\n 'paid AS totalPaid' => function ($query) {\n $query->select(DB::raw(\"SUM(paid_amount) as paid\"))->whereNull('deleted_at');\n }\n ]);\n $paid_history = $paid_history->first();\n $skip_record=0;\n\t\tforeach ($paymentHistory1 as $key => $value) {\n\t\t $exisitng_due_ids = $value->id;\n\t\t $exisitng_due_ids = explode(',', $exisitng_due_ids);\n\t\t \n\t\t \n\t\t}\n\t\tif($paid_history->due_amount-$paid_history->totalPaid <=0 ){\n\t\t $skip_record = 1;\n\t\t } else {\n\t\t $skip_record = 0;\n\t\t }\n if($skip_record==1){\n\t\t $paymentHistory=$paymentHistory1;\n\t }else {\n\t\t\tif(isset($settled_records)){\n\t\t\t\t$paymentHistory2 = BusinessPaidFees::select('id', 'paid_date', 'paid_amount', 'paid_note', 'deleted_at','payment_options_drop_down')->whereNull('deleted_at')->orderBy('id', 'DESC');\n\t\t\t\t$paymentHistory2 = $paymentHistory2->where('business_id', $businessId)->where('due_id',0)->where('external_business_id',$custom_id)->whereNotIn('id',$exisitng_due_ids)->get();\n\t\t }\n\t }\n if(isset($paymentHistory2)){\n $paymentHistory=$paymentHistory2->merge($paymentHistory1);\n } else {\n \t$paymentHistory=$paymentHistory1;\n }\n\t\t$paymentHistoryData=[];\n\t\tif($paymentHistory->count()){\n\t\t\t/*foreach ($paymentHistory as $payment) {\n\t\t\t\t$paymentHistoryData[]=[\n\t\t\t\t\t'id'=>$payment->id,\n\t\t\t\t\t'amount'=>$payment->paid_amount,\n\t\t\t\t\t'note'=>$payment->paid_note,\n\t\t\t\t\t'date'=>date('d F, Y H:i a',strtotime($payment->paid_date)),\n\t\t\t\t\t'deleted_at'=>$payment->deleted_at==null ? '' : $payment->deleted_at, \n\t\t\t\t];\n\t\t\t}*/\n\t\t\t$withHtml = View('admin/business/for-admin/payment-history', compact('paymentHistory'))->render();\n\t\t\treturn Response::json(['success' => true,'noData'=>false,'paymentHistoryData'=>$withHtml], 200);\n\t\t}else{\n\t\t\treturn Response::json(['success' => true,'message'=>'','noData'=>true], 200);\n\t\t}\n\n\t\t//return Response::json(['success' => true,'message'=>'','paymentHistory'=>$paymentHistory], 200);\n\t\n\t}", "title": "" }, { "docid": "99a1ad333a1559700cf92dd3a1718a75", "score": "0.4783355", "text": "public function whmcs_get_invoices($params = array()) {\n\t\t$params['action'] = 'GetInvoices';\n\t\t// return Whmcs_base::send_request($params);\n $load = new Whmcs_base();\n return $load->send_request($params);\n\t}", "title": "" }, { "docid": "c24e925c19bff526b55971f329df3c29", "score": "0.4776206", "text": "function getRegoPayments(){\n\n\t\t//set the header\n\t\theader('Content-Type: application/json');\n\t\t\n\t\t//init variables\n\t\t$id = $_GET['id'];\n\t\t$r = new RESPONSE(0);\n\n\t\t//validate the id and data\n\t\tif ($id == \"\" || $id < 1){\n\t\t\t$r->message = \"No data.\";\n\t\t\techo $r->toJSON();\t\n\t\t\treturn false;\n\t\t}\n\n\t\t//create the database connecion\n\t\t$database = createDb();\t\t\n\n\n\t\t//check to see the balance\n\t\t$total = $database->sum(\"MainContact\", \"Fee\", [\n\t\t\t\"AND\" => [\t\n\t\t\t\t\"MainContactId\" =>\t$id,\n\t\t\t\t\"Cancelled\" \t=>\tfalse]\n\t\t\t]);\n\t\t\n\t\t$total2 = $database->sum(\"Registrant\", \"Fee\", [\n\t\t\t\"AND\" => [\n\t\t\t\t\"MainContactId\" =>\t$id,\n\t\t\t\t\"Cancelled\" \t=>\tfalse]\n\t\t\t]);\n\n\t\t//get the admin notes\n\t\t$datas = $database->select(\"Payment\", \"*\", [\n\t\t\t\"MainContactId\" => $id \n\t\t]);\n\n\n\t\t//loop and get all admin notes associated for this registration\n\t\t$counter = 0;\n\t\t$runningTotal = 0;\n\t\tif( count($datas) > 0){\n\n\t\t\t$r->html .= '<tbody><thead><tr><th>&nbsp;</th><th>Date Entered</th><th>Payment Amount</th></tr></thead>';\t\n\n\t\t\t foreach ($datas as $row) {\n\n\t\t\t\t $paymentVal = $row[\"PaidAmount\"];\n\t\t\t\t $notes \t = $row[\"Notes\"];\n\t\t\t\t if ($notes != \"\" ){\n\t\t\t\t \t\t$notes = ' <span data-tooltip aria-haspopup=\"true\" class=\"has-tip fa fa-comment\" aria-hidden=\"true\" tabindex=\"2\" data-disable-hover=\"false\" title=\"' . $notes . '\">&nbsp;</span>';\n\t\t\t\t }\n\t\t\t\t if ($paymentVal != \"\"){\n\t\t\t\t \t$counter += 1;\n\t\t\t\t \t$runningTotal += $paymentVal;\n\t\t\t\t\t$r->html .= sprintf('<tr><td>%d) %s</td><td>%s</td><td style=\"text-align:right; padding-right:10px !important;\" class=\"payment-amounts\">$%s</td></tr>', \n\t\t\t\t\t\t$counter, $notes,\n\t\t\t\t\t\t$row[\"DateEntered\"], \n\t\t\t\t\t\tmoney_format('%#0n', $paymentVal));\t \n\t\t\t\t }\n\n\t\t\t }\n\n\t\t\t $r->html .= sprintf('<tfoot><tr><td colspan=\"3\" style=\"text-align:right; padding-right:10px;\">$%s</td></tr></tfoot>', money_format('%#0n', $runningTotal));\n\n\t\t\t$outstanding = (($total + $total2) - $runningTotal );\n\n\t\t\t$r->html .= '</tbody>';\t\n\t\t\t$r->status = 1;\n\t\t\t$r->info \t\t = ($outstanding > 0) ? '<span class=\"label warning\">Outstanding: ' . money_format('%#0n',$outstanding) . '</span>' : '<span class=\"label success bold\"> <i class=\"fa fa-check\"> </i> Fully Paid</span>' ;\n\n\t\t}\n\n\n\t\t//return the results\n\t\techo $r->toJSON();\t\n\n\t}", "title": "" }, { "docid": "c88cef4cda6236564a8e6911470643aa", "score": "0.4767038", "text": "public function ipn(Request $request)\n {\n // skrill data - get more fields from Skrill Quick Checkout Integration Guide 7.9 (page 23)\n $transaction_id = $request->transaction_id;\n $mb_transaction_id = $request->mb_transaction_id;\n $invoice_id = $request->invoice_id; // custom field\n $order_from = $request->order_from; // custom fieldcle\n $customer_email = $request->customer_email; // custom field\n $biller_email = $request->pay_from_email;\n $customer_id = $request->customer_id;\n $amount = $request->amount;\n $currency = $request->currency;\n $status = $request->status;\n\n // status message\n if ($status == '-2') {\n $status_message = 'Failed';\n } else if ($status == '2') {\n $status_message = 'Processed';\n } else if ($status == '0') {\n $status_message = 'Pending';\n } else if ($status == '-1') {\n $status_message = 'Cancelled';\n }\n\n // now store data to database\n $skrill_ipn = new SkrillPayment();\n $skrill_ipn->transaction_id = $transaction_id;\n $skrill_ipn->mb_transaction_id = $mb_transaction_id;\n $skrill_ipn->invoice_id = $invoice_id;\n $skrill_ipn->order_from = $order_from;\n $skrill_ipn->customer_email = $customer_email;\n $skrill_ipn->biller_email = $biller_email;\n $skrill_ipn->customer_id = $customer_id;\n $skrill_ipn->amount = $amount;\n $skrill_ipn->currency = $currency;\n $skrill_ipn->status = $status_message;\n $skrill_ipn->created_at = Date('Y-m-d H:i:s');\n $skrill_ipn->updated_at = Date('Y-m-d H:i:s');\n $skrill_ipn->save();\n }", "title": "" }, { "docid": "d5186afd5e7ce4cf9ddc5289242a8047", "score": "0.47608262", "text": "public function getShippingInvoiced();", "title": "" }, { "docid": "e3477258d5f6dd46a73e19b725cbcf73", "score": "0.47599137", "text": "public function getPaymentStatus($contract_id)\r\n {\r\n $contract = Contract::find($contract_id);\r\n $project = Project::find($contract->project_id);\r\n $client = Lead::find($project->lead_id);\r\n // Get the payment ID before session clear\r\n $payment_id = Session::get('paypal_payment_id');\r\n\r\n // clear the session payment ID\r\n Session::forget('paypal_payment_id');\r\n\r\n if (!Input::get('PayerID') ||! Input::get('token'))\r\n {\r\n return view('omi.payment.index',array('project'=>$project,'contract'=>$contract,'client'=>$client,'error'=>'Payment failed'));\r\n }\r\n $payment = Payment::get($payment_id, $this->_api_context);\r\n\r\n // PaymentExecution object includes information necessary\r\n // to execute a PayPal account payment.\r\n // The payer_id is added to the request query parameters\r\n // when the user is redirected from paypal back to your site\r\n $execution = new PaymentExecution();\r\n $execution->setPayerId(Input::get('PayerID'));\r\n\r\n //Execute the payment\r\n $result = $payment->execute($execution, $this->_api_context);\r\n\r\n if ($result->getState() == 'approved')\r\n {\r\n $amount = number_format($payment->getTransactions()[0]->getAmount()->total,2, \".\",\"\");\r\n $payment_transaction = new PaymentTransaction();\r\n $payment_transaction->contract_id = $contract->id;\r\n $payment_transaction->amount = $amount;\r\n $payment_transaction->source = \"PAYPAL\";\r\n $payment_transaction->details = $result->getState();\r\n $payment_transaction->numPayments = 1;\r\n $payment_transaction->approved =1;\r\n $payment_transaction->status =\"approved\";\r\n $payment_transaction->subscriptionId =$payment_id;\r\n $payment_transaction->ip = $_SERVER['REMOTE_ADDR'];\r\n $payment_transaction->save();\r\n\r\n $contract->paid += $amount;\r\n $contract->paidDate = new \\DateTime();\r\n $contract->readed = 0;\r\n $contract->consultant_id = $project->consultant_id;\r\n\r\n //contracts IGUP should be credited to the consultant that sold the IMG\r\n if($contract->type==\"IGUP\" && $project->contractIMG() != \"\"){\r\n $contract->consultant_id = $project->contractIMG()->consultant_id;\r\n }\r\n\r\n $contract->save();\r\n\r\n //send sms to consultant.\r\n PlivoHelper::consultantSmsOutPerPayment($project->consultant_id,$project->id,$amount);\r\n\r\n //Create Transaction\r\n Transaction::createTransaction($project->consultant_id, $client->id, '', 'PAYMENT-MADE-CLIENT', '', $project->id, $client->email, '', 'SYSTEM', $client->phone, $amount);\r\n\r\n //Generate contract and sold report if contract is paid full and signed and Send Emails\r\n if($contract->type==\"PPA\")\r\n {\r\n //PPA Client Services\r\n $clientS = Consultant::where('usr','clientservices')->first();\r\n if($clientS!=null){\r\n $msgInbox = \"PPA Payment received.\\r\\n\";\r\n $msgInbox .= date(\"m-d-Y H:i:s\").\"\\r\\n\";\r\n $msgInbox .= \"File #:\".$project->lead->fileno.\"\\r\\n\";\r\n $msgInbox .= \"Pin #:\".$project->id.\"\\r\\n\";\r\n $msgInbox .= \"Client: \".$project->lead->fname.\" \".$project->lead->lname.\"\\r\\n\";\r\n $msgInbox .= \"Amount: \".$amount.\"\\r\\n\";\r\n $msgInbox .= \"PPA Paid To Date: \".$contract->paid.\"\\r\\n\";\r\n Inbox::createInbox($client->id,$clientS->id,$msgInbox,\"PAYMENT\",\"CLIENT\");\r\n }\r\n //END\r\n\r\n\r\n $msgInbox = \"PPA Payment made By Client.\\r\\n\";\r\n $msgInbox .= date(\"m-d-Y H:i:s\").\"\\r\\n\";\r\n $msgInbox .= \"File #:\".$project->lead->fileno.\"\\r\\n\";\r\n $msgInbox .= \"Pin: \".$project->id.\"\\r\\n\";\r\n $msgInbox .= \"Client: \".$project->lead->fname.\" \".$project->lead->lname.\"\\r\\n\";\r\n $msgInbox .= \"Amount: \".$amount.\"\\r\\n\";\r\n $msgInbox .= \"Type: \".$contract->type.\"\\r\\n\";\r\n Inbox::createInbox($project->lead->id, $project->consultant_id, $msgInbox, 'PAYMENT', 'CLIENT');\r\n\r\n //Send Email to George, ALain and Me\r\n $url = url(\"sendPaymentNotificationToAdminDocusign?ID=\".$contract->id);\r\n ToolsFunctions::curl($url);\r\n //Send Email to client\r\n $url = url(\"sendPaymentNotificationToClient?ID=\".$contract->id);\r\n ToolsFunctions::curl($url);\r\n return view('omi.payment.success',array('project'=>$project,'contract'=>$contract,'client'=>$client,'complete'=>0));\r\n }\r\n if($contract->type!=\"PPA\" && $contract->price>$contract->paid && strlen($contract->signed)>0){\r\n\r\n //send sms to consultant.\r\n PlivoHelper::consultantSmsOutPerPayment(16,$project->id,$amount);\r\n\r\n if($contract->type==\"IGUP\")\r\n {\r\n $projectP = $project->getProjectProduction();\r\n if($projectP!=null)\r\n {\r\n $projectP->contractType = 'IGUP';\r\n $projectP->completed = 0;\r\n $projectP->letterofengagement = 0;\r\n $projectP->save();\r\n }\r\n }\r\n\r\n if($contract->iigUpgrade == 1){\r\n $msg = \"IIG UPGRADE PAYMENT RECEIVED.\\r\\n\";\r\n $msg .= date(\"m-d-Y H:i:s\").\"\\r\\n\";\r\n $msg .= \"File #:\".$project->lead->fileno.\"\\r\\n\";\r\n $msg .= \"Pin: \".$project->id.\"\\r\\n\";\r\n $msg .= \"Amount: \".$contract->iigUpgradePrice.\"\\r\\n\";\r\n $msg .= \"Plan: \".($contract->iigUpgradePrice == 100 || $contract->iigUpgradePrice == 200)?'GOLD':'PLATINUM'.\"\\r\\n\";\r\n $msg .= \"Client: \".$project->lead->fname.\" \".$project->lead->lname.\"\\r\\n\";\r\n Inbox::createInbox($project->lead->id, 30, $msg, 'PAYMENT', 'PRODUCTION');\r\n\r\n if($contract->iigUpgradePrice == 330 || $contract->iigUpgradePrice == 230 || $contract->iigUpgradePrice == 300 || $contract->iigUpgradePrice == 500){\r\n $projectProd = ProjectProduction::where(array('project_id'=>$project->id,'typeVendor'=>'production'))->first();\r\n if($projectProd != null && $projectProd->sendDate != \"0000-00-00 00:00:00\"){\r\n $projectPW = ProjectProduction::where(array('project_id'=>$project->id,'typeVendor'=>'writer'))->first();\r\n if($projectPW != null){\r\n $projectPW->completed = 0;\r\n $projectPW->save();\r\n }\r\n $projectPD2 = ProjectProduction::where(array('project_id'=>$project->id,'typeVendor'=>'2D'))->first();\r\n if($projectPD2==null)\r\n {\r\n $designer2d = Consultant::where('rol','LIKE','%2D%')->first();\r\n $projectPD2 = new ProjectProduction();\r\n $projectPD2->project_id = $projectProd->project_id;\r\n $projectPD2->fileno = $projectProd->fileno;\r\n $projectPD2->typeVendor = '2D';\r\n $projectPD2->consultant_id = $designer2d->id;\r\n $projectPD2->contractType = $projectProd->contractType;\r\n $projectPD2->designer_id = $projectProd->designer_id;\r\n $projectPD2->designer2d_id = $designer2d->id;\r\n $projectPD2->writer_id = $projectProd->writer_id;\r\n $projectPD2->university_id = $projectProd->university_id;\r\n $projectPD2->attorney_id = $projectProd->attorney_id;\r\n $projectPD2->sendDate = date(\"Y-m-d H:i:s\");\r\n $projectPD2->save();\r\n\r\n $projectProd->designer2d_id = $designer2d->id;\r\n $projectProd->save();\r\n\r\n $msgInbox2d = \"NEW FILES AVAILABLE.\\r\\n\";\r\n $msgInbox2d .= date(\"m-d-Y H:i:s\").\"\\r\\n\";\r\n $msgInbox2d .= \"Files #:\".$projectProd->fileno;\r\n Inbox::createInbox($projectProd->consultant_id, $projectPD2->designer2d_id, $msgInbox2d, 'PRODUCTION', 'PRODUCTION');\r\n }\r\n }\r\n }\r\n\r\n }\r\n\r\n $msgInbox = \"INVENTOR PAID.PLEASE NOTIFY ALAIN.\\r\\n\";\r\n $msgInbox .= date(\"m-d-Y H:i:s\").\"\\r\\n\";\r\n $msgInbox .= \"File #:\".$project->lead->fileno.\"\\r\\n\";\r\n $msgInbox .= \"Pin: \".$project->id.\"\\r\\n\";\r\n $msgInbox .= \"Client: \".$project->lead->fname.\" \".$project->lead->lname.\"\\r\\n\";\r\n $msgInbox .= \"Amount: \".$amount.\"\\r\\n\";\r\n $msgInbox .= \"Type: \".$contract->type.\"\\r\\n\";\r\n Inbox::createInbox($project->lead->id, $project->consultant_id, $msgInbox, 'PAYMENT', 'CLIENT');\r\n\r\n CreateContractSignedHelper::generateSoldReport ($contract);\r\n\r\n //Send Email to George, ALain and Me\r\n $url = url(\"sendPaymentNotificationToAdminDocusign?ID=\".$contract->id);\r\n ToolsFunctions::curl($url);\r\n //Send Email to client\r\n $url = url(\"sendPaymentNotificationToClient?ID=\".$contract->id);\r\n ToolsFunctions::curl($url);\r\n\r\n return view('omi.payment.success',array('project'=>$project,'contract'=>$contract,'client'=>$this->client,'complete'=>1));\r\n }\r\n if($contract->price<=$contract->paid && strlen($contract->signed)>0)\r\n {\r\n if($contract->type==\"IGUP\")\r\n {\r\n $projectP = $project->getProjectProduction();\r\n if($projectP!=null)\r\n {\r\n $projectP->contractType = 'IGUP';\r\n $projectP->completed = 0;\r\n $projectP->save();\r\n }\r\n }\r\n\r\n //when someone upgrade from IIG to IIG: notify production and if is to platinum package send back to writer for press release and create row for 2D\r\n if($contract->iigUpgrade == 1){\r\n $msg = \"IIG UPGRADE PAYMENT RECEIVED.\\r\\n\";\r\n $msg .= date(\"m-d-Y H:i:s\").\"\\r\\n\";\r\n $msg .= \"File #:\".$project->lead->fileno.\"\\r\\n\";\r\n $msg .= \"Pin: \".$project->id.\"\\r\\n\";\r\n $msg .= \"Amount: \".$contract->iigUpgradePrice.\"\\r\\n\";\r\n $msg .= \"Plan: \".($contract->iigUpgradePrice == 100 || $contract->iigUpgradePrice == 200)?'GOLD':'PLATINUM'.\"\\r\\n\";\r\n $msg .= \"Client: \".$project->lead->fname.\" \".$project->lead->lname.\"\\r\\n\";\r\n Inbox::createInbox($project->lead->id, 30, $msg, 'PAYMENT', 'PRODUCTION');\r\n\r\n if($contract->iigUpgradePrice == 330 || $contract->iigUpgradePrice == 230 || $contract->iigUpgradePrice == 300 || $contract->iigUpgradePrice == 500){\r\n $projectProd = ProjectProduction::where(array('project_id'=>$project->id,'typeVendor'=>'production'))->first();\r\n if($projectProd != null && $projectProd->sendDate != \"0000-00-00 00:00:00\"){\r\n $projectPW = ProjectProduction::where(array('project_id'=>$project->id,'typeVendor'=>'writer'))->first();\r\n if($projectPW != null){\r\n $projectPW->completed = 0;\r\n $projectPW->save();\r\n }\r\n $projectPD2 = ProjectProduction::where(array('project_id'=>$project->id,'typeVendor'=>'2D'))->first();\r\n if($projectPD2==null)\r\n {\r\n $designer2d = Consultant::where('rol','LIKE','%2D%')->first();\r\n $projectPD2 = new ProjectProduction();\r\n $projectPD2->project_id = $projectProd->project_id;\r\n $projectPD2->fileno = $projectProd->fileno;\r\n $projectPD2->typeVendor = '2D';\r\n $projectPD2->consultant_id = $designer2d->id;\r\n $projectPD2->contractType = $projectProd->contractType;\r\n $projectPD2->designer_id = $projectProd->designer_id;\r\n $projectPD2->designer2d_id = $designer2d->id;\r\n $projectPD2->writer_id = $projectProd->writer_id;\r\n $projectPD2->university_id = $projectProd->university_id;\r\n $projectPD2->attorney_id = $projectProd->attorney_id;\r\n $projectPD2->sendDate = date(\"Y-m-d H:i:s\");\r\n $projectPD2->save();\r\n\r\n $projectProd->designer2d_id = $designer2d->id;\r\n $projectProd->save();\r\n\r\n $msgInbox2d = \"NEW FILES AVAILABLE.\\r\\n\";\r\n $msgInbox2d .= date(\"m-d-Y H:i:s\").\"\\r\\n\";\r\n $msgInbox2d .= \"Files #:\".$projectProd->fileno;\r\n Inbox::createInbox($projectProd->consultant_id, $projectPD2->designer2d_id, $msgInbox2d, 'PRODUCTION', 'PRODUCTION');\r\n }\r\n }\r\n }\r\n\r\n }\r\n\r\n $msgInbox = \"INVENTOR PAID IN FULL CONTRACT SIGNED.\\r\\n\";\r\n $msgInbox .= date(\"m-d-Y H:i:s\").\"\\r\\n\";\r\n $msgInbox .= \"File #:\".$project->lead->fileno.\"\\r\\n\";\r\n $msgInbox .= \"Pin: \".$project->id.\"\\r\\n\";\r\n $msgInbox .= \"Client: \".$project->lead->fname.\" \".$project->lead->lname.\"\\r\\n\";\r\n $msgInbox .= \"Amount: \".$amount.\"\\r\\n\";\r\n $msgInbox .= \"Type: \".$contract->type.\"\\r\\n\";\r\n Inbox::createInbox($project->lead->id, $project->consultant_id, $msgInbox, 'PAYMENT', 'CLIENT');\r\n\r\n CreateContractSignedHelper::generateSoldReport ($contract);\r\n //Send Email to George, ALain and Me\r\n $url = url(\"sendPaymentNotificationToAdminDocusign?ID=\".$contract->id);\r\n ToolsFunctions::curl($url);\r\n //Send Email to client\r\n $url = url(\"sendPaymentNotificationToClient?ID=\".$contract->id);\r\n ToolsFunctions::curl($url);\r\n return view('omi.payment.success',array('project'=>$project,'contract'=>$contract,'client'=>$client,'complete'=>1));\r\n }\r\n else if($contract->price<=$contract->paid)\r\n {\r\n $msgInbox = \"INVENTOR PAID IN FULL - CONTRACT NOT SIGNED.\\r\\n\";\r\n $msgInbox .= date(\"m-d-Y H:i:s\").\"\\r\\n\";\r\n $msgInbox .= \"File #:\".$project->lead->fileno.\"\\r\\n\";\r\n $msgInbox .= \"Pin: \".$project->id.\"\\r\\n\";\r\n $msgInbox .= \"Client: \".$project->lead->fname.\" \".$project->lead->lname.\"\\r\\n\";\r\n $msgInbox .= \"Amount: \".$amount.\"\\r\\n\";\r\n $msgInbox .= \"Type: \".$contract->type.\"\\r\\n\";\r\n Inbox::createInbox($project->lead->id, $project->consultant_id, $msgInbox, 'PAYMENT', 'CLIENT');\r\n\r\n //send the different price of the plans\r\n $prices = PpaPricesPlan::where('plan1', 'like',$contract->price)->orWhere('plan2', 'like',$contract->price)->orWhere('plan3', 'like',$contract->price)->first();\r\n return view('omi.launch.sign',array('prices'=>$prices,'client'=>$client,'project'=>$project,'contract'=>$contract,'from'=>'sign'));\r\n }\r\n else\r\n {\r\n $msgInbox = \"INVENTOR PARTIAL PAYMENT.\\r\\n\";\r\n $msgInbox .= date(\"m-d-Y H:i:s\").\"\\r\\n\";\r\n $msgInbox .= \"File #:\".$project->lead->fileno.\"\\r\\n\";\r\n $msgInbox .= \"Pin: \".$project->id.\"\\r\\n\";\r\n $msgInbox .= \"Client: \".$project->lead->fname.\" \".$project->lead->lname.\"\\r\\n\";\r\n $msgInbox .= \"Amount: \".$amount.\"\\r\\n\";\r\n $msgInbox .= \"Type: \".$contract->type.\"\\r\\n\";\r\n Inbox::createInbox($project->lead->id, $project->consultant_id, $msgInbox, 'PAYMENT', 'CLIENT');\r\n return view('omi.payment.success',array('project'=>$project,'contract'=>$contract,'client'=>$client,'complete'=>0));\r\n }\r\n }\r\n return view('omi.payment.index',array('project'=>$project,'contract'=>$contract,'client'=>$client,'error'=>\"Payment Failed.\"));\r\n\r\n }", "title": "" }, { "docid": "2243ffef828d9e0c2a8fc0b6d72739a3", "score": "0.47579205", "text": "public function getPaindingPurchasePayments(){\n\t\t\n\t\t$this->db->select('PP.*, PO.purc_order_number, S.supl_comp');\n\t\t$this->db->from('purchase_order_payments AS PP');\n\t\t$this->db->join(\"purchase_orders AS PO\", \"PP.purc_order_id = PO.purc_order_id\");\n\t\t$this->db->join(\"suppliers AS S\", \"S.supl_id = PP.supplier_id\");\n\t\t$this->db->where(\"PP.status\", 'Pending');\n\t\t$this->db->order_by('PP.reminder_date');\n\t\t$query_pending_payments = $this->db->get();\n\t\t// echo $this->db->last_query();die;\n\t\tif($query_pending_payments->num_rows()>0)\n\t\t{\n\t\t\treturn $query_pending_payments->result_array();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn array();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "06470272d7a956388cadba4c2cddc02e", "score": "0.4756226", "text": "public function getPaymentHistory(){\r\n\t\t$result = array();\r\n\t\treturn $result;\r\n\t}", "title": "" }, { "docid": "0cb358702358412e785fb576d07f92a6", "score": "0.47559172", "text": "function ProcessChargebackAmountNotification($dom_response_obj) {\n /*\n * +++ CHANGE ME +++\n * Chargeback amount notifications inform you that a customer\n * has initiated a chargeback against an order and that Google Checkout\n * has approved the chargeback. A <chargeback-amount-notification>\n * contains the order number that Google assigned to the order,\n * the value of the most recent chargeback against the order\n * and the total amount that has been charged back against the\n * order. Google Checkout will send a <chargeback-amount-notification>\n * after approving the chargeback.\n *\n * If you are implementing the Notification API, you need to\n * modify this function to relay the information in the\n * <chargeback-amount-notification> to your internal systems that\n * process this order data.\n */\n SendNotificationAcknowledgment();\n}", "title": "" }, { "docid": "4f6cbe76a2968c80de4881158577174f", "score": "0.47553417", "text": "public function getIdentifiersISSN() {\n $fields = array('identifiersISSN' => array(\n 'identifier',\n ));\n $result = TingOpenformatMethods::parseFields($this->_getDetails(), $fields);\n return $result;\n }", "title": "" }, { "docid": "d44b2d8ff995990f38efb40fb7811749", "score": "0.474779", "text": "public function getPrequestList(){\n return $this->_get(5);\n }", "title": "" }, { "docid": "5ad0f6aa14718fd882c85bdd4ff031c2", "score": "0.47473183", "text": "public static function getOpenPayments($db) {\n // Prepares and executes the query.\n $query = \"SELECT * From payments AS t1 WHERE EXISTS (SELECT * FROM bills AS t2 where t1.id = t2.payment)\";\n\n $stmt = $db->prepare($query);\n $stmt->execute();\n\n // Create a Bill object array\n $payment_array = array();\n\n // Traverses the Resultset of the query Execution.\n // Adds a new element to the array for each record.\n while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){\n $payment = new Payment($db);\n Payment::updateAttributes($payment, $row);\n // Adds the Bill object to the array\n $payment_array[] = $payment;\n }\n\n return $payment_array;\n }", "title": "" }, { "docid": "ddd8202e9cf03fe7c6f433229fda62ed", "score": "0.47465855", "text": "function actionIpnOLD(){\n //LicenciaHelper::updatePaymentIfExist(1, 'I-V8CPTPJ0J3YE', 18);die;\n\n /*\n By default the IpnListener object is going to post the data back to PayPal\n using cURL over a secure SSL connection. This is the recommended way to post\n the data back, however, some people may have connections problems using this\n method.\n\n To post over standard HTTP connection, use:\n $listener->use_ssl = false;\n\n To post using the fsockopen() function rather than cURL, use:\n $listener->use_curl = false;\n */\n\n /*\n The processIpn() method will encode the POST variables sent by PayPal and then\n POST them back to the PayPal server. An exception will be thrown if there is\n a fatal error (cannot connect, your server is not configured properly, etc.).\n Use a try/catch block to catch these fatal errors and log to the ipn_errors.log\n file we setup at the top of this file.\n\n The processIpn() method will send the raw data on 'php://input' to PayPal. You\n can optionally pass the data to processIpn() yourself:\n $verified = $listener->processIpn($my_post_data);\n */\n\n $ipnListener = new IpnListener();\n $ipnListener->use_sandbox = true;\n //$verified = true;\n try {\n $ipnListener->requirePostMethod();\n $verified = $ipnListener->processIpn();\n } catch (Exception $e) {\n Yii::error($e->getMessage(), 'paypal');\n throw $e;\n //exit(0);\n }\n\n /*\n The processIpn() method returned true if the IPN was \"VERIFIED\" and false if it\n was \"INVALID\".\n */\n if ($verified) {\n /*\n Once you have a verified IPN you need to do a few more checks on the POST\n fields--typically against data you stored in your database during when the\n end user made a purchase (such as in the \"success\" page on a web payments\n standard button). The fields PayPal recommends checking are:\n\n 1. Check the $_POST['payment_status'] is \"Completed\"\n 2. Check that $_POST['txn_id'] has not been previously processed\n 3. Check that $_POST['receiver_email'] is your Primary PayPal email\n 4. Check that $_POST['payment_amount'] and $_POST['payment_currency']\n are correct\n\n Since implementations on this varies, I will leave these checks out of this\n example and just send an email using the getTextReport() method to get all\n of the details about the IPN.\n */\n\n $data = $_POST;\n //$data = $ipnListener->getPostData();\n $user_id_lic_id = explode('_', $data['custom']);\n\n //$licInstance = Licencia::find()->where(['token' => $user_id_lic_id[3]])->one();\n //if(!$licInstance){\n // Yii::info('No se ha creado la intancia licencia todavia puede ser que la repuesta demoro mas que el IPN en el proximo se creara');\n // return;\n //}\n\n\n $ipn_record = IpnNotification::find()->where([\n 'subscr_id' => isset($data['subscr_id']) ? $data['subscr_id'] : '',\n 'txn_type' => $data['txn_type']]\n )->one();\n\n if ($ipn_record != null) {\n Yii::warning('MENSAJE DUPLICADO ** ' . $ipnListener->getPostData(), 'paypal');\n return;\n }\n\n\n if ($data['txn_type'] == 'subscr_signup') {\n\n\n $ipn_record = new IpnNotification();\n $ipn_record->txn_type = IpnNotification::TNX_TYPE_SIGNUP;\n $ipn_record->subscr_id = $data['subscr_id'];\n $ipn_record->payer_email = $data['payer_email'];\n $ipn_record->receiver_email = $data['receiver_email'];\n $ipn_record->msg_date = isset($data['subscr_date']) ? date('Y-m-d', strtotime($data['subscr_date'])) : '';\n $ipn_record->item_name = $data['item_name'];\n $ipn_record->mc_currency = $data['mc_currency'];\n //$user_id_lic_id = explode('_', $data['custom']);\n $ipn_record->user_id = $user_id_lic_id[0];\n\n\n LicenciaHelper::saveLicencia($data, $ipn_record, $user_id_lic_id[1]);\n //} elseif ($data['txn_type'] == 'subscr_payment' and isset($data['txn_id'] ) and $data['payment_status']== 'Completed' ) {\n } elseif ($data['txn_type'] == 'subscr_payment' and isset($data['txn_id'] ) ) {\n\n $transaction = Yii::$app->db->beginTransaction();\n $ipn_record = new IpnNotification();\n $ipn_record->txn_type = IpnNotification::TNX_TYPE_PAYMENT;\n $ipn_record->txn_id = $data['txn_id'];\n $ipn_record->subscr_id = $data['subscr_id'];\n $ipn_record->payer_email = $data['payer_email'];\n $ipn_record->receiver_email = $data['receiver_email'];\n $ipn_record->msg_date = isset($data['subscr_date']) ? date('Y-m-d', strtotime($data['subscr_date'])): '';\n $ipn_record->item_name = $data['item_name'];\n $ipn_record->mc_currency = $data['mc_currency'];\n $ipn_record->user_id = $user_id_lic_id[0];\n $ipn_record->payment_status = $data['payment_status'];\n $ipn_record->payment_type = $data['payment_type'];\n $ipn_record->mc_gross = $data['mc_gross'];\n $user_id_lic_id = explode('_', $data['custom']);\n $ipn_record->user_id = $user_id_lic_id[0];\n\n /*if(!$salon = Salon::find()->where(['id' => $user_id_lic_id[2]])->one()){\n Yii::error('El salon que adquirió esa licencia no existe');\n return;\n }*/\n //$ipn_record->licencia_id = $salon->licenciaid;\n //$ipn_record->save();\n //$ipn_record\n LicenciaHelper::saveLicencia($data, $ipn_record, $user_id_lic_id[1]);\n $transaction->commit();\n\n }elseif($data['txn_type'] == IpnNotification::TNX_TYPE_EOT or $data['txn_type'] == IpnNotification::TNX_TYPE_CANCELLED){\n $ipn_record = new IpnNotification();\n $ipn_record->txn_type = $data['txn_type'];\n $ipn_record->subscr_id = $data['subscr_id'];\n\n if(!$salon = Salon::find()->where(['id' => $user_id_lic_id[2]])->one()){\n Yii::error('El salon que adquirido esa licencia no existe');\n return;\n }else{\n $ipn_record->licencia_id = $salon->licenciaid;\n $ipn_record->user_id = $user_id_lic_id[0];\n $ipn_record->save();\n $salon->licencia->estado = Licencia::ESTADO_INACTIVO;\n $salon->licencia->detalles = 'El servicio de paypal fue cancelado o expiró';\n $salon->licencia->save();\n $salon->estado = Salon::ESTADO_INACTIVO;\n $salon->save();\n }\n\n } elseif($data['txn_type'] == IpnNotification::TNX_TYPE_WEB_ACEPT){\n\n $ipn_record = new IpnNotification();\n $ipn_record->txn_type = IpnNotification::TNX_TYPE_WEB_ACEPT;\n $ipn_record->txn_id = $data['txn_id'];\n // $ipn_record->subscr_id = $data['subscr_id'];\n $ipn_record->payer_email = $data['payer_email'];\n $ipn_record->receiver_email = $data['receiver_email'];\n //$ipn_record->msg_date = isset($data['subscr_date']) ? date('Y-m-d', strtotime($data['subscr_date'])): '';\n $ipn_record->item_name = $data['item_name'];\n $ipn_record->mc_currency = $data['mc_currency'];\n $ipn_record->user_id = $user_id_lic_id[0];\n $ipn_record->payment_status = $data['payment_status'];\n $ipn_record->payment_type = $data['payment_type'];\n $ipn_record->mc_gross = $data['mc_gross'];\n $ipn_record->user_id = $user_id_lic_id[0];\n\n LicenciaHelper::saveLicencia($data, $ipn_record, $user_id_lic_id[1]);\n\n }\n\n //DetallesPago::find()->where([]);\n\n\n mail('melonormajm@gmail.com', 'Verified IPN', $ipnListener->getTextReport());\n mail('melonorma@infomed.sld.cu', 'Verified IPN', $ipnListener->getTextReport());\n /*Yii::$app->mailer->compose()\n ->setFrom('ipn@domain.com')\n ->setTo('melonormajm@gmail.com')\n ->setCc('melonorma@infomed.sld.cu')\n ->setSubject('Reporte')\n ->setTextBody($ipnListener->getTextReport())\n //->setHtmlBody($h)\n //->setHtmlBody('<p>Html</p>')\n ->send();\n */\n // Yii::info($ipnListener->getPostData(), 'paypal');\n\n\n } else {\n /*\n An Invalid IPN *may* be caused by a fraudulent transaction attempt. It's\n a good idea to have a developer or sys admin manually investigate any\n invalid IPN.\n */\n mail('melonormajm@gmail.com', 'Invalid IPN', $ipnListener->getTextReport());\n mail('melonorma@infomed.sld.cu', 'Invalid IPN', $ipnListener->getTextReport());\n }\n\n Yii::$app->request->enableCsrfValidation = TRUE;\n }", "title": "" } ]
df3566819729b9b1eb841a6d40367d86
Gets all the attributes for an HTML element, class is a good example
[ { "docid": "7ca293485060271a26e8fb07d7d65a1b", "score": "0.6498896", "text": "private function getAttributes(): string\n {\n $html = \"\";\n foreach ($this->attributes as $attribute) {\n if (is_array($attribute)) {\n foreach ($attribute as $key => $value) {\n if (is_numeric($key)) {\n $html .= (string)($value);\n } else {\n is_bool($value) ? ($value === true) ? ($value = \"true\") : ($value = \"false\") : null;\n if ($value !== null) {\n $html .= \"{$key}=\\\"{$value}\\\" \";\n }\n }\n }\n }\n }\n if (!empty($html)) {\n $html = \" \".trim($html);\n }\n return $html;\n }", "title": "" } ]
[ { "docid": "a932710cc74c2ee971f1211ff27a3a51", "score": "0.77079403", "text": "public function getAttributes(){\n\t\treturn $this->getElement()->getAttributes();\n\t}", "title": "" }, { "docid": "20087d2bf6a377cd9bc0cffffb891c74", "score": "0.7505216", "text": "function getAttributes();", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.742759", "text": "public function getAttributes();", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.742759", "text": "public function getAttributes();", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.742759", "text": "public function getAttributes();", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.742759", "text": "public function getAttributes();", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.742759", "text": "public function getAttributes();", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.742759", "text": "public function getAttributes();", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.742759", "text": "public function getAttributes();", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.742759", "text": "public function getAttributes();", "title": "" }, { "docid": "5cf80071792e13ce9cdb2046c38a59cb", "score": "0.742759", "text": "public function getAttributes();", "title": "" }, { "docid": "b1fecb48af5f6f24451da2c81afb894c", "score": "0.7174875", "text": "function get_attributes($elem) {\n\t\t$array = array();\n\t\tforeach ( $elem->attributes() as $key => $val ) {\n\t\t\t$array[(string)$key] = (string)$val;\n\t\t}\n\t\treturn $array;\n\t}", "title": "" }, { "docid": "9669f01785919822eb0fe737cf95da70", "score": "0.7109767", "text": "abstract public function getAttributes();", "title": "" }, { "docid": "9669f01785919822eb0fe737cf95da70", "score": "0.7109767", "text": "abstract public function getAttributes();", "title": "" }, { "docid": "02d95cab7345525e6576430a8c87e2c0", "score": "0.70586264", "text": "public function getAttributes()\n\t{\n\t\t$return = [];\n\t\tforeach ($this->attr as $attr => $info)\n\t\t{\n\t\t\t$return[$attr] = $this->getAttribute($attr);\n\t\t}\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "2b1e1679bf5641819d3d200d78ff27df", "score": "0.6958454", "text": "protected function _getAttribs()\n {\n return array(\n 'for' => $this->_getFor(),\n 'class' => $this->_getClass(),\n );\n }", "title": "" }, { "docid": "727f8c866e28754662a4ed0a7ad1ced8", "score": "0.6950191", "text": "public function getAttributes() {\n $allAttributes = [];\n foreach ($this as $key => $element) {\n $allAttributes[$key] = [];\n $allAttributes[$key] = $element->getAttributes();\n }\n\n return $allAttributes;\n }", "title": "" }, { "docid": "aa4490ba39787a87eccc77e57b741573", "score": "0.6936619", "text": "public function getAllAttributesHtml()\n {\n $attributes = ['class', 'id', 'style', 'data'];\n\n $allAttributesHtml = '';\n foreach ($attributes as $attribute) {\n $allAttributesHtml .= $this->getAttributeHtml($attribute);\n }\n\n return $allAttributesHtml;\n }", "title": "" }, { "docid": "4249f3eb7738b9ea21595628fef3791d", "score": "0.68652487", "text": "public function getEAttributes();", "title": "" }, { "docid": "8ebe0721ab80dae8f27daa2237f2e5cc", "score": "0.68357676", "text": "function html_attributes() {\r\n global $CFG;\r\n\r\n $attributes = parent::html_attributes();\r\n\r\n if (!empty($CFG->block_keyboard_allowcssclasses)) {\r\n if (!empty($this->config->classes)) {\r\n $attributes['class'] .= ' '.$this->config->classes;\r\n }\r\n }\r\n\r\n return $attributes;\r\n }", "title": "" }, { "docid": "58256d99c3e852eea4ab89d3fa351306", "score": "0.6779257", "text": "function getAttributes() {\n $ret = array();\n foreach($this->attributes as $k=>$v) {\n if (substr(strtoupper($k),0,6) == 'FLEXY:') {\n continue;\n }\n $ret[$k] = $this->getAttribute($k);\n }\n return $ret;\n }", "title": "" }, { "docid": "90e0f3dbb56829f4d72aff3ec7ecde22", "score": "0.6778853", "text": "public function attributes();", "title": "" }, { "docid": "7dd8dca2461fdc9a3bb3bdac33427d87", "score": "0.6776188", "text": "private function getAttributes()\n {\n $r = '';\n\n // Inside classes\n foreach ($this->insideClasses as $insideClassModule => $insideClasses) {\n foreach ($insideClasses as $insideClass) {\n $attributes = $this->xml->xpath(\n '/draggy/module[@name=\\'' . $insideClassModule . '\\']/class[@name=\\'' . $insideClass . '\\']/attribute'\n );\n\n $r .= 'c = Connectable.prototype.getConnectableFromName(\\'' . str_replace(\n '\\\\',\n '\\\\\\\\',\n $insideClassModule . '\\\\'\n ) . $insideClass . '\\');' . PHP_EOL;\n\n $r .= $this->getClassLikeAttributeProperties($insideClass, $attributes, 'c');\n\n if (isset( $insideClass['toString'] )) {\n $r .= 'c.setToString(c.getAttributeFromName(\"' . $insideClass['toString'] . '\"))' . PHP_EOL;\n }\n }\n }\n\n // Inside abstracts\n foreach ($this->insideAbstracts as $insideAbstractModule => $insideAbstracts) {\n foreach ($insideAbstracts as $insideAbstract) {\n $attributes = $this->xml->xpath(\n '/draggy/module[@name=\\'' . $insideAbstractModule . '\\']/abstract[@name=\\'' . $insideAbstract . '\\']/attribute'\n );\n\n $r .= 's = Connectable.prototype.getConnectableFromName(\\'' . str_replace(\n '\\\\',\n '\\\\\\\\',\n $insideAbstractModule . '\\\\'\n ) . $insideAbstract . '\\');' . PHP_EOL;\n\n $r .= $this->getClassLikeAttributeProperties($insideAbstract, $attributes, 's');\n\n if (isset( $insideAbstract['toString'] )) {\n $r .= 's.setToString(s.getAttributeFromName(\"' . $insideAbstract['toString'] . '\"))' . PHP_EOL;\n }\n }\n }\n\n // Outside classes\n foreach ($this->outsideClasses as $outsideClass) {\n $attributes = $this->xml->xpath('/draggy/loose/class[@name=\\'' . $outsideClass . '\\']/attribute');\n\n $r .= 'c = Connectable.prototype.getConnectableFromName(\\'' . $outsideClass . '\\');' . PHP_EOL;\n\n $r .= $this->getClassLikeAttributeProperties($outsideClass, $attributes, 'c');\n\n if (isset( $outsideClass['toString'] )) {\n $r .= 'c.setToString(c.getAttributeFromName(\"' . $outsideClass['toString'] . '\"))' . PHP_EOL;\n }\n }\n\n // Outside abstracts\n foreach ($this->outsideAbstracts as $outsideAbstract) {\n $attributes = $this->xml->xpath('/draggy/loose/abstract[@name=\\'' . $outsideAbstract . '\\']/attribute');\n\n $r .= 's = Connectable.prototype.getConnectableFromName(\\'' . $outsideAbstract . '\\');' . PHP_EOL;\n\n $r .= $this->getClassLikeAttributeProperties($outsideAbstract, $attributes, 's');\n\n if (isset( $outsideAbstract['toString'] )) {\n $r .= 's.setToString(s.getAttributeFromName(\"' . $outsideAbstract['toString'] . '\"))' . PHP_EOL;\n }\n }\n\n return $r;\n }", "title": "" }, { "docid": "942fda03624281586fd7c24cb6f88392", "score": "0.6760277", "text": "public function getAttributes() {\n\t\t$result = array();\n\t\t$result2 = array();\n\t\t$reflection = new ReflectionClass($this);\n\t\t$result = $reflection->getdefaultProperties();\n\t\t$result = array_keys($result);\n\t\tforeach ($result AS $data) {\n\t\t\t$result2[] = substr($data,1);\n\t\t}\n\t\treturn $result2;\n\t}", "title": "" }, { "docid": "942fda03624281586fd7c24cb6f88392", "score": "0.6760277", "text": "public function getAttributes() {\n\t\t$result = array();\n\t\t$result2 = array();\n\t\t$reflection = new ReflectionClass($this);\n\t\t$result = $reflection->getdefaultProperties();\n\t\t$result = array_keys($result);\n\t\tforeach ($result AS $data) {\n\t\t\t$result2[] = substr($data,1);\n\t\t}\n\t\treturn $result2;\n\t}", "title": "" }, { "docid": "bf4b9c02d95028b5fcda6d7eba12b783", "score": "0.67600787", "text": "function getAttributesValues();", "title": "" }, { "docid": "2154f1cb9160c7a13493622cdd3c7325", "score": "0.67371374", "text": "public function getAttributes(): array;", "title": "" }, { "docid": "2154f1cb9160c7a13493622cdd3c7325", "score": "0.67371374", "text": "public function getAttributes(): array;", "title": "" }, { "docid": "2154f1cb9160c7a13493622cdd3c7325", "score": "0.67371374", "text": "public function getAttributes(): array;", "title": "" }, { "docid": "2154f1cb9160c7a13493622cdd3c7325", "score": "0.67371374", "text": "public function getAttributes(): array;", "title": "" }, { "docid": "96cc1f9b5ab6003da7de5d13ff333b14", "score": "0.6715102", "text": "function getAttribute($att);", "title": "" }, { "docid": "b8d9c32864d2c6d6153475960d0452e2", "score": "0.66997886", "text": "public function attributes()\n {\n return [\n 'id' => 'id',\n 'class' => 'class',\n 'no-ripple' => 'md-no-ink',\n 'ripple-size' => 'md-ripple-size',\n 'aria-label' => 'aria-label'\n ];\n }", "title": "" }, { "docid": "0a9ce85569897113e94cd93fc37ae62d", "score": "0.6685307", "text": "public function getAttributes()\n\t{\n\t\treturn $this->attributes;\n\t}", "title": "" }, { "docid": "0a9ce85569897113e94cd93fc37ae62d", "score": "0.6685307", "text": "public function getAttributes()\n\t{\n\t\treturn $this->attributes;\n\t}", "title": "" }, { "docid": "0a9ce85569897113e94cd93fc37ae62d", "score": "0.6685307", "text": "public function getAttributes()\n\t{\n\t\treturn $this->attributes;\n\t}", "title": "" }, { "docid": "51e39178b1a70783dafe87e340a6e9b4", "score": "0.6681419", "text": "public function getAttributes()\n {\n return $this->attributes->all();\n }", "title": "" }, { "docid": "0adc2dfebeaf63f74bd04fcc6ea0ced2", "score": "0.66673166", "text": "static public function getAttributes()\n {\n return self::$attribute;\n }", "title": "" }, { "docid": "3c59c0a95df07293c28c20233e0ba611", "score": "0.6664942", "text": "private function getAttributes()\n {\n\n // Declare return\n $return = '';\n\n // Check if attributes are empty\n if (is_null($this->get('attributes')))\n {\n\n return null;\n\n } else {\n\n // Check if attributes is an array\n if (is_array($this->get('attributes')))\n {\n\n // Cycle through all attributes\n foreach ($this->get('attributes') as $attribute)\n {\n\n // Get key and value of attribute\n foreach ($attribute as $att => $value)\n {\n\n // Set attribute\n $return .= ' ' . $att . '=\"' . $value . '\"';\n\n }\n\n }\n\n }\n\n // Return attributes\n return $return;\n\n }\n\n }", "title": "" }, { "docid": "422df67be987fda168b9d1d512f371f6", "score": "0.66633147", "text": "function getAttributes() {\n return $this->attributes;\n }", "title": "" }, { "docid": "3dc457fb4fb1910e9828bc1c0b4a91c3", "score": "0.66617537", "text": "public function getAttrs() {\n return $this->_attrs;\n }", "title": "" }, { "docid": "2e8e26ab9b738bd52917d0c8df1b4c8e", "score": "0.6642418", "text": "public function getAttributes()\n\t{\n\t\t$array = array();\n\t\tforeach($this as $key => $value)\n\t\t{\n\t\t\t$array[$key] = $value;\n\t\t}\n\t\treturn $array;\n\t}", "title": "" }, { "docid": "3ac24245f10a5f74ace54603fefb1bdf", "score": "0.66185355", "text": "public function getAttributes()\n\t{\n\t\t$attributes = array();\n\t\tforeach($this->_collection_attributes as $attribute){\n\t\t\t$attributes[$attribute] = $this->$attribute;\n\t\t}\n\t\t\n\t\treturn $attributes;\n\t}", "title": "" }, { "docid": "3b85189a58efe35d484a836977e5b947", "score": "0.66178954", "text": "public function getAttributesForElement($element){\n\t\t\n\t\tif($element->nodeName != '#text')\n\t\t\t$length = $element->attributes->length;\n\t\t\n\t\t$attrs = array();\n\n\t\tfor ($i = 0; $i < $length; ++$i) {\n\n\t\t\t$name = $element->attributes->item($i)->name;\n\n\t\t\tif(!preg_match('/epub:type|alt/',$name)){\n\n\t\t\t\t$value = $element->getAttribute($name);\n\t\t\t\t$attrs[$name] = preg_split('/ /', $value);\n\t\t\t}\n\t\t}\n\n\t\t$attrs = array_filter($attrs);\n\t\treturn $attrs;\n\t}", "title": "" }, { "docid": "8abcf07dc68686e13ab1c4ff6cc7e154", "score": "0.6607757", "text": "public function attributes(): array;", "title": "" }, { "docid": "415d368d6a52388fd2d6fe3b54e7273c", "score": "0.66047525", "text": "public static function getAttributes( $class ){\n\t\tif( is_object( $class ) ){\n\t\t\treturn array_keys( (array) $class ) ;\n\t\t}\n\t\treturn self::getProperties( $class ) ;\n\t}", "title": "" }, { "docid": "d16c08a70b963a7db182225967311d52", "score": "0.6595193", "text": "public function getAttributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "d16c08a70b963a7db182225967311d52", "score": "0.6595193", "text": "public function getAttributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "d16c08a70b963a7db182225967311d52", "score": "0.6595193", "text": "public function getAttributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "d16c08a70b963a7db182225967311d52", "score": "0.6595193", "text": "public function getAttributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "d16c08a70b963a7db182225967311d52", "score": "0.6595193", "text": "public function getAttributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "d16c08a70b963a7db182225967311d52", "score": "0.6595193", "text": "public function getAttributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "d16c08a70b963a7db182225967311d52", "score": "0.6595193", "text": "public function getAttributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "d16c08a70b963a7db182225967311d52", "score": "0.6595193", "text": "public function getAttributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "d16c08a70b963a7db182225967311d52", "score": "0.6595193", "text": "public function getAttributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "d16c08a70b963a7db182225967311d52", "score": "0.6595193", "text": "public function getAttributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "d16c08a70b963a7db182225967311d52", "score": "0.6595193", "text": "public function getAttributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "d16c08a70b963a7db182225967311d52", "score": "0.6595193", "text": "public function getAttributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "d16c08a70b963a7db182225967311d52", "score": "0.6595193", "text": "public function getAttributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "d16c08a70b963a7db182225967311d52", "score": "0.6595193", "text": "public function getAttributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "d16c08a70b963a7db182225967311d52", "score": "0.6595193", "text": "public function getAttributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "d16c08a70b963a7db182225967311d52", "score": "0.6595193", "text": "public function getAttributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "d16c08a70b963a7db182225967311d52", "score": "0.6595193", "text": "public function getAttributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "d16c08a70b963a7db182225967311d52", "score": "0.6595193", "text": "public function getAttributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "d16c08a70b963a7db182225967311d52", "score": "0.6595193", "text": "public function getAttributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "d16c08a70b963a7db182225967311d52", "score": "0.6595193", "text": "public function getAttributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "d16c08a70b963a7db182225967311d52", "score": "0.6595193", "text": "public function getAttributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "d16c08a70b963a7db182225967311d52", "score": "0.6595193", "text": "public function getAttributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "4f0d59cb8902e0cafe01ce4aa86bdf5f", "score": "0.65900636", "text": "public function getAttributes()\n\t{\n\t\treturn $this->_attributes;\n\t}", "title": "" }, { "docid": "01f7bb5f076cecac4a1e0dcabfd9050f", "score": "0.6588997", "text": "public function getAttributes() {\n\t\treturn $this->attributes;\n\t}", "title": "" }, { "docid": "01f7bb5f076cecac4a1e0dcabfd9050f", "score": "0.6588997", "text": "public function getAttributes() {\n\t\treturn $this->attributes;\n\t}", "title": "" }, { "docid": "01f7bb5f076cecac4a1e0dcabfd9050f", "score": "0.6588997", "text": "public function getAttributes() {\n\t\treturn $this->attributes;\n\t}", "title": "" }, { "docid": "58633d454d594ee500f1b8fb947120d1", "score": "0.65716183", "text": "public function getAttributes()\n {\n return array();\n }", "title": "" }, { "docid": "8566e9efa90fcfd392202a02dd147064", "score": "0.65686345", "text": "public function attributes()\n\t{\n\t\treturn $this->attributes;\n\t}", "title": "" }, { "docid": "d2968786799ab8eb7b8001dafb12180e", "score": "0.6568336", "text": "final public function _getAttrs()\n\t{\n\t\t$attrs = array();\n\t\tforeach ($this->_properties as $attr => $value)\n\t\t\t$attrs[$attr] = $this->{$attr};\n\t\treturn $attrs;\n\t}", "title": "" }, { "docid": "ce29e137149cf30c997f027d3e2c374e", "score": "0.65636665", "text": "function getAttributeNames(){\r\n\t\treturn keys($this->attrs);\r\n\t}", "title": "" }, { "docid": "198311716e4818a9174add6807298103", "score": "0.65576833", "text": "public function getAttribs()\n {\n return $this->_attribs;\n }", "title": "" }, { "docid": "379f84b5af5b9ee668ef3914d61b87b1", "score": "0.6551513", "text": "protected function getAttr()\n\t{\n\t\t$attr = get_class_vars( __CLASS__ );\n\t\tunset( $attr[ '_attr' ] );\n\t\tunset( $attr[ '_selected' ] );\n\t\treturn array_keys( $attr );\n\t}", "title": "" }, { "docid": "770e6924ca037ddfc943dbe29ca96dc6", "score": "0.6544977", "text": "public function getAttributes()\r\n {\r\n $data = [];\r\n\r\n foreach ($this->getSafeAttributes() as $value) {\r\n $data[$value] = $this->$value;\r\n }\r\n\r\n return $data;\r\n }", "title": "" }, { "docid": "6750054ab36432da5bf85de95087242a", "score": "0.65180254", "text": "public function attributes() { return $this->_m_attributes; }", "title": "" }, { "docid": "f88de8270c6730f403ca28692a8bf1f2", "score": "0.6510107", "text": "public function getAttributes()\n {\n return $this->_attributes;\n }", "title": "" }, { "docid": "a3e47a982a48924e0bc32963dd800f23", "score": "0.6505557", "text": "public function getAttributes() {\n return $this->attributes;\n }", "title": "" }, { "docid": "a3e47a982a48924e0bc32963dd800f23", "score": "0.6505557", "text": "public function getAttributes() {\n return $this->attributes;\n }", "title": "" }, { "docid": "4c54212f30c12eb41697044e1ed84179", "score": "0.6494027", "text": "protected function get_attributes()\n\t{\n\t\treturn $this->attributes;\n\t}", "title": "" }, { "docid": "7322041b4081927d258519617b0ac17b", "score": "0.64891136", "text": "public function get_attributes() {\n\t\treturn $this->attributes;\n\t}", "title": "" }, { "docid": "83300da3409aff253c401d694a313dc1", "score": "0.64590114", "text": "public function attributes($attributes = array()) {\n\t\treturn \\HTML::attributes ( $attributes );\n\t}", "title": "" }, { "docid": "47f6f905a676b1c1a40b182888b8c79d", "score": "0.64557517", "text": "public function getAttributes(): array\n\t{\n\t\treturn $this->attributes;\n\t}", "title": "" }, { "docid": "ce7ccb94c3196e3348340e133447cb05", "score": "0.64495915", "text": "protected function _get_allowed_attributes()\n\t{\n\t\tif ($this->_get_form_meta('html5', TRUE))\n\t\t{\n\t\t\treturn MMI_HTML5_Attributes_DataList::get();\n\t\t}\n\t\treturn MMI_HTML4_Attributes::get();\n\t}", "title": "" }, { "docid": "228fc88e9bb7f75106347693f0a7293d", "score": "0.6444422", "text": "public function attributes(){\n\n return $this->getAttributes();\n\n }", "title": "" }, { "docid": "5b438a6188437e0b0c2311937a9a00c3", "score": "0.64343476", "text": "function html_attributes() {\n global $CFG;\n\n $attributes = parent::html_attributes();\n\n if (!empty($CFG->block_v7_score_progress_allowcssclasses)) {\n if (!empty($this->config->classes)) {\n $attributes['class'] .= ' '.$this->config->classes;\n }\n }\n\n return $attributes;\n }", "title": "" }, { "docid": "bc2655f7b7d5bd5884d208615a1a2f23", "score": "0.643397", "text": "function attributes()\r\n\t{\r\n\t\t$attribs = array();\r\n\t\tforeach ($this->attribs as $key => $value)\r\n\t\t{\r\n\t\t\tif ($value === true)\r\n\t\t\t{\r\n\t\t\t\t$attribs[$key] = null;\r\n\t\t\t} \r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$attribs[$key] = $value;\r\n\t\t\t} \r\n\t\t} \r\n\t\treturn $attribs;\r\n\t}", "title": "" }, { "docid": "a57406dd4ed66bf2a532c8042dc684a5", "score": "0.64249516", "text": "public function attributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "a57406dd4ed66bf2a532c8042dc684a5", "score": "0.64249516", "text": "public function attributes()\n {\n return $this->attributes;\n }", "title": "" }, { "docid": "9aff2738ae81b367dc1e162f19b59191", "score": "0.6414808", "text": "public function getAttributes() {\n\t\t\treturn $this->_attributes;\n\t\t}", "title": "" }, { "docid": "52faca1f33b85d29906f579a744e081a", "score": "0.64096284", "text": "public function getAttributes() {\n return $this->attributes? : array();\n }", "title": "" }, { "docid": "a565216c0334fdd857ae255a8c85b8d7", "score": "0.639663", "text": "public function attributes()\n {\n return $this->attributeArrayToHtmlString($this->attributes);\n }", "title": "" }, { "docid": "db1e2a895fd02167bfba93e81b4e685f", "score": "0.6387043", "text": "final public function getAttributes()\n {\n $output = [];\n\n foreach ($this->attributes as $attribute => $value) {\n $output[$attribute] = $this->getAttribute($attribute);\n }\n\n return $output;\n }", "title": "" }, { "docid": "d8d70952e8905d496def5d3d2460f2b8", "score": "0.63798606", "text": "protected function _get_allowed_attributes()\n\t{\n\t\tif ($this->_get_form_meta('html5', TRUE))\n\t\t{\n\t\t\treturn MMI_HTML5_Attributes::get();\n\t\t}\n\t\treturn MMI_HTML4_Attributes::get();\n\t}", "title": "" }, { "docid": "7357b0e420c2b33493b8555b4b88ee45", "score": "0.6366292", "text": "public function getAttributes()\n\t{\n\t\tif($attributes=$this->getViewState('Attributes',null))\n\t\t\treturn $attributes;\n\t\telse\n\t\t{\n\t\t\t$attributes=new TAttributeCollection;\n\t\t\t$this->setViewState('Attributes',$attributes,null);\n\t\t\treturn $attributes;\n\t\t}\n\t}", "title": "" }, { "docid": "a53fe373760685c7c5483a63e8e88d60", "score": "0.6365435", "text": "function attr($atts=array()){\n\t\treturn csml::attr($atts);\n\t}", "title": "" }, { "docid": "fcda6d26f1675ebf5703ade5f50a0f38", "score": "0.6356729", "text": "protected function _getAttributes(){\n\t\tif(!isset(self::$_attributes[get_class($this)])){\n\t\t\t$tableDefinition = $this->_tableDefinition();\n\t\t\t$attributes = array();\n\t\t\tforeach($tableDefinition['attributes'] as $attributeName => $definition){\n\t\t\t\t$attributes[] = $attributeName;\n\t\t\t}\n\t\t\tself::$_attributes[get_class($this)] = $attributes;\n\t\t\treturn $attributes;\n\t\t} else {\n\t\t\treturn self::$_attributes[get_class($this)];\n\t\t}\n\t}", "title": "" } ]
b1443957599c8fd529fb0913e86c8214
Setup of the database
[ { "docid": "a5e3a11ebb14e90442895f6f2a0a62d4", "score": "0.0", "text": "private function setupDatabaseTable()\n {\n $query = sprintf(\n \"CREATE TABLE IF NOT EXISTS %s (id INTEGER AUTO_INCREMENT PRIMARY KEY, \"\n . \"unique_id VARCHAR(255), query TEXT, migrated_at DATETIME);\",\n $this->tableName\n );\n\n $this->connection->execute($query);\n }", "title": "" } ]
[ { "docid": "25bce71f9c5e58c5947cf6e515350ba3", "score": "0.8319957", "text": "public function setupDatabase()\n\t{\n\t\t$this->hydrateDatabaseAttributes();\n\t}", "title": "" }, { "docid": "378c6e70dd4fa598c0648114a555ee38", "score": "0.82943", "text": "private function _setupDatabase() {\n // Configura base de dados e guarda no registro\n $db = Zend_Db::factory($this->_config->db);\n Zend_Db_Table_Abstract::setDefaultAdapter($db);\n Zend_Registry::set('db', $db);\n }", "title": "" }, { "docid": "5ee54010e4004a4b2294e790ca863987", "score": "0.78287756", "text": "public function _setUpDatabase(){\n //Setting up the tables\n foreach($this->dbTables AS $tableName){\n //If table not exists\n if($this->_DB->table_exists(strtolower(self::DB_PREFIX).$tableName)===false){\n //Define fiedls\n $this->_CI->dbforge->add_field($this->dbStructure[$tableName]['fields']);\n //Add Key\n $this->_CI->dbforge->add_key($this->dbStructure[$tableName]['pk'], TRUE);\n //Create Table\n $this->_CI->dbforge->create_table(strtolower(self::DB_PREFIX).$tableName);\n }\n }\n }", "title": "" }, { "docid": "fd3f98f32081fb59fa4971c7dabd424a", "score": "0.769272", "text": "public function setupDatabase()\n {\n $dbtest = $this->connect();\n\n // execute all queries\n @$dbtest->query('SET FOREIGN_KEY_CHECKS=0');\n foreach ($this->loadSqlQueries() as $query) {\n try {\n if (! empty($query)) {\n $dbtest->query($query);\n }\n } catch (\\Exception $ex) {\n print \"$query\\n\";\n throw $ex;\n }\n }\n @$dbtest->query('SET FOREIGN_KEY_CHECKS=1');\n }", "title": "" }, { "docid": "eaa5ddd962df5ef4e4ac39b886869077", "score": "0.7691198", "text": "protected function setUpDatabase()\n {\n $database = new DB();\n\n $database->addConnection(['driver' => 'sqlite', 'database' => ':memory:']);\n $database->bootEloquent();\n $database->setAsGlobal();\n }", "title": "" }, { "docid": "8a40d0c361f7e570d9f09bf556ea3579", "score": "0.7658678", "text": "protected function setUp() : void {\n $this->ensureTable(new Users($this->site->db));\n $this->ensureTable(new Members($this->site->db));\n $this->ensureTable(new ReviewAssignments($this->site->db));\n $this->ensureTable(new Reviews($this->site->db));\n }", "title": "" }, { "docid": "e9e982119e1a783e33fc1921f6eac5c1", "score": "0.7612964", "text": "protected function _setup() {\n\t\t$this->_setupDatabaseAdapter ();\n\t\t$this->_setupTableName ();\n\t}", "title": "" }, { "docid": "cca3cecb89aa4ab087c00a0bf097bd6c", "score": "0.7604838", "text": "public function setUp(): void\n {\n $this->db_adapter->begin();\n\n $this->db_adapter->execute(\"\n CREATE SCHEMA exodus_tmp;\n \");\n }", "title": "" }, { "docid": "0ad358fd09d74a5477799b303d7cff79", "score": "0.7577818", "text": "private function _prepareDatabase() {\n\n }", "title": "" }, { "docid": "150d83e75183bb6c8e5a7114b9ede683", "score": "0.75431126", "text": "public function setUp()\n\t{\n\t\t$this->executeSqlFile(dirname(__FILE__) . '/db_setup.sql');\n\t}", "title": "" }, { "docid": "b3efebaab3fef4a851af92cce2cbfc0d", "score": "0.7488574", "text": "public function setup() {\n require 'Config/Database.php';\n try {\n $this->init_no_db(true);\n } catch (SqlException $e) {\n $this->setFlash('setup_error', $e->getMessage());\n return;\n }\n try {\n self::$_conn->exec(\"CREATE DATABASE \" . explode(\"=\", explode(\";\", $db_dsn)[0])[1]);\n } catch (PDOException $e) {\n $this->setFlash('setup_error', $e->getMessage());\n return;\n }\n try {\n $this->init(true);\n } catch (SqlException $e) {\n $this->setFlash('setup_error', $e->getMessage());\n return;\n }\n $queries = [\n \"CREATE TABLE users (\n id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY,\n username VARCHAR(255) NOT NULL,\n email VARCHAR(255) NOT NULL,\n pwd VARCHAR(128) NOT NULL,\n notifs BOOLEAN DEFAULT 1,\n conf_link VARCHAR(255),\n confirmed BIT DEFAULT 0\n )\",\n \"CREATE TABLE pictures (\n id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY,\n img TEXT NOT NULL,\n id_user INT(10) UNSIGNED NOT NULL,\n FOREIGN KEY (id_user) REFERENCES users(id)\n )\",\n \"CREATE TABLE resetpw (\n id_user INT(10) UNSIGNED NOT NULL,\n FOREIGN KEY (id_user) REFERENCES users(id),\n uniqueid VARCHAR(255) NOT NULL,\n `date` INT(30) NOT NULL\n )\",\n \"CREATE TABLE comments (\n id INT(15) UNSIGNED AUTO_INCREMENT PRIMARY KEY,\n id_picture INT(10) UNSIGNED NOT NULL,\n id_user INT(10) UNSIGNED NOT NULL,\n FOREIGN KEY (id_picture) REFERENCES pictures(id),\n FOREIGN KEY (id_user) REFERENCES users(id),\n comment TEXT NOT NULL\n )\",\n \"CREATE TABLE likes (\n id_picture INT(10) UNSIGNED NOT NULL,\n id_user INT(10) UNSIGNED NOT NULL,\n FOREIGN KEY (id_picture) REFERENCES pictures(id),\n FOREIGN KEY (id_user) REFERENCES users(id)\n )\"\n ];\n foreach ($queries as $query) {\n try {\n self::$_conn->exec($query);\n } catch (PDOException $e) {\n $this->setFlash('setup_error', \"Erreur lors de la conncetion à la base de données.\"\n . \"<br>\" . $e->getMessage());\n return;\n }\n }\n if (!file_exists('Public/Pictures/Users')) {\n mkdir('Public/Pictures/Users');\n }\n }", "title": "" }, { "docid": "044368c596af6e3d01eba5642fef777e", "score": "0.74825746", "text": "protected function setUp() {\n\t\t$this->object = Database::getInstance();\n\t}", "title": "" }, { "docid": "c665301d19190f4a3f2e916bb3f81d47", "score": "0.7469302", "text": "public function installDatabase()\n {\n \n }", "title": "" }, { "docid": "a4a14abd47e38e326bd085b8a7495cc0", "score": "0.7444111", "text": "public function Setup() {\n\n if (self::$initStarted) {\n\n return;\n }\n\n self::$initStarted = true;\n\n require_once( dirname(__FILE__) . DS . 'DBConnectionHelper.interface.php' );\n require_once( dirname(__FILE__) . DS . 'DBQueryHelper.class.php' );\n\n $connectionsData = \\FluitoPHP\\FluitoPHP::GetInstance()->\n GetConfig('DATABASE');\n\n $connectionsData = $connectionsData ? $connectionsData : [];\n\n if (isset($connectionsData['default']) &&\n $connectionsData['default'] != '' &&\n isset($connectionsData['connections'][$connectionsData['default']])) {\n\n $default = $connectionsData['default'];\n }\n\n foreach ($connectionsData['connections'] as $id => & $details) {\n\n $details['autocommit'] = !(isset($details['autocommit']) &&\n $details['autocommit'] != '1');\n\n $this->\n CreateConns($id, (object) $details);\n }\n\n if (isset($default) &&\n isset($this->\n connections[$default])) {\n\n $this->\n defaultConn = $default;\n } elseif (!isset($this->\n connections[$this->\n defaultConn])) {\n $keys = array_keys($this->\n connections);\n\n $this->\n defaultConn = $keys[0];\n }\n\n \\FluitoPHP\\Events\\Events::GetInstance()->\n Add('FluitoPHP.SystemShutdown', array($this,\n 'Shutdown'));\n }", "title": "" }, { "docid": "1618e8e9818da78406c6cab833bd1aad", "score": "0.74313855", "text": "protected function _initDatabase()\n {\n $databaseConfiguration = new Zend_Config_Ini( APPLICATION_PATH . '/configs/database.ini', APPLICATION_ENV);\n \n /**\n * Creating the database handler from the loaded ini file\n */\n $dbAdapter = Zend_Db::factory( $databaseConfiguration->database );\n \n /**\n * Lets define the newly created handler as our default database handler\n */\n Zend_Db_Table_Abstract::setDefaultAdapter($dbAdapter);\n \n $registry = Zend_Registry::getInstance();\n $registry->databaseConfiguration = $databaseConfiguration;\n $registry->db = $dbAdapter;\n \n $dbAdapter->query('SET NAMES utf8');\n \n /*$profiler = new Zend_Db_Profiler_Firebug('All DB Queries');\n $profiler->setEnabled(true);\n $dbAdapter->setProfiler($profiler);*/\n }", "title": "" }, { "docid": "8cd1f27e6a23f76ed3012de76c1705d2", "score": "0.7408113", "text": "public function initDatabase()\n {\n $dir = app_path('Models/Q_And_A');\n if(!is_dir($dir))\n {\n echo \"目录 \".$dir.\" 不存在,进行创建\".PHP_EOL;\n if(mkdir($dir,0777,true)){\n echo \"目录 \".$dir.\" 创建成功\".PHP_EOL;\n }else{\n echo \"目录 \".$dir.\" 创建失败\".PHP_EOL;\n }\n }\n\n file_put_contents(\n $dir.'/Paper.php',\n file_get_contents(__DIR__.'/stubs/Models/Paper.stub')\n );\n\n file_put_contents(\n $dir.'/Question.php',\n file_get_contents(__DIR__.'/stubs/Models/Question.stub')\n );\n\n file_put_contents(\n $dir.'/UserTrain.php',\n file_get_contents(__DIR__.'/stubs/Models/UserTrain.stub')\n );\n }", "title": "" }, { "docid": "05b2898e5ce6dfcb91fc43cc70b24a49", "score": "0.73330104", "text": "public function setUp() {\n global $DB;\n\n $this->db = $DB;\n }", "title": "" }, { "docid": "5f138a6cb9a7fd5ea2d8420499535316", "score": "0.7324899", "text": "public static function prepare() {\n\t\t$databaseManager = DatabaseManager::getInstance();\n\t\t$databaseManager->initScripts();\n\t}", "title": "" }, { "docid": "f4658cbbee44e149b5cf7583c7f85a4c", "score": "0.7318341", "text": "public function setUp() {\r\n // Set up SQLite in memory\r\n ORM::set_db(new PDO('sqlite::memory:'));\r\n\r\n // Create schemas and populate with data\r\n ORM::get_db()->exec(file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . '..'.DIRECTORY_SEPARATOR.'models.sql'));\r\n\r\n // Enable logging\r\n ORM::configure('logging', true);\r\n }", "title": "" }, { "docid": "600c8f343525639d68aa164b62a60ad8", "score": "0.731593", "text": "public function InitDatabase()\r\n\t{\r\n\t\tif (count( $this->Databases) > 0)\r\n\t\t{\r\n\t\t\t$dbms = $this->Databases[0]['dbms'];\r\n\t\t\t$server = $this->Databases[0]['server'];\r\n\t\t\t$database = $this->Databases[0]['database'];\r\n\t\t\t$user = $this->Databases[0]['user'];\r\n\t\t\t$pass = $this->Databases[0]['password'];\r\n\t\t\t\r\n\t\t\t$this->Databases[0][\"db\"] = new PDO( \"{$dbms}:host={$server};dbname={$database}\", $user, $pass); \t\t\t\t\t\r\n\t\t\t//RDebug( \"dbh: \" . $this->Databases[0][\"db\"]);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d0ef8ff42183621ead20f7cb4d999c62", "score": "0.730628", "text": "protected function prepareDatabase(): void\n {\n $this->updater->setConnection($this->option('database'));\n\n if (!$this->updater->repositoryExists()) {\n $this->call('update:install', array_filter([\n '--database' => $this->option('database'),\n ]));\n }\n }", "title": "" }, { "docid": "ceb0fe1609a9d1a6f9b0cac5b96225a9", "score": "0.72990626", "text": "public function initDatabase(): void\n {\n $this->getFactory()->createPropelProvider()->init();\n }", "title": "" }, { "docid": "9753012d034ead9e3857760740a2c23d", "score": "0.7297894", "text": "public function initDatabase()\n {\n $this->call('migrate');\n LangSwitcher::firstOrCreate(['class' => 'Auth', 'method' => 'user', 'middleware' => 'web']);\n }", "title": "" }, { "docid": "7a47d0d0ed2d09674adca0f054573adb", "score": "0.7274366", "text": "public function initDatabase()\n {\n config([\n 'database.default' => 'sqlite',\n 'database.connections.sqlite' => [\n 'driver' => 'sqlite',\n 'database' => ':memory:',\n 'prefix' => '',\n ],\n ]);\n\n Artisan::call('migrate');\n Artisan::call('db:seed');\n }", "title": "" }, { "docid": "869d361e44c0465fb01009b6f59bdfef", "score": "0.7273745", "text": "public function initDatabase()\n {\n $query = '\nCREATE TABLE `jobs` (\n \"id\" INTEGER PRIMARY KEY AUTOINCREMENT,\n \"handler\" text NOT NULL,\n \"queue\" varchar(255) NOT NULL DEFAULT \\'default\\',\n \"attempts\" int(10) NOT NULL DEFAULT \\'0\\',\n \"run_at\" datetime DEFAULT NULL,\n \"locked_at\" datetime DEFAULT NULL,\n \"locked_by\" varchar(255) DEFAULT NULL,\n \"failed_at\" datetime DEFAULT NULL,\n \"error\" text,\n \"created_at\" datetime NOT NULL\n);';\n\n $this->getConnection()->getConnection()->query($query);\n }", "title": "" }, { "docid": "d0c1d4b4b5c0f17fcc8c63d6948d0c6b", "score": "0.72711116", "text": "private function prepareDatabase()\n {\n if (! $this->scriptsRepository->repositoryExists()) {\n $this->call('release-script:install');\n }\n }", "title": "" }, { "docid": "02342e8e6cddbc9bf0ce23d78529343f", "score": "0.7251002", "text": "protected function initDB() {\n\t\t// get configuration\n\t\t$dbHost = $dbUser = $dbPassword = $dbName = $dbCharset = '';\n\t\t$dbClass = 'MySQLDatabase';\n\t\trequire_once(WCF_DIR.'config.inc.php');\n\t\t\n\t\t// create database connection\n\t\trequire_once(WCF_DIR.'lib/system/database/'.$dbClass.'.class.php');\n\t\tself::$dbObj = new $dbClass($dbHost, $dbUser, $dbPassword, $dbName, $dbCharset);\n\t}", "title": "" }, { "docid": "68cfc6c8be8c37b161e6eaa049d0c48d", "score": "0.7244494", "text": "function setupDatabase()\n {\n if ($this->db) {\n throw new Exception(\"Bad order of operations: DB already set up.\");\n }\n $this->updateStatus(\"Starting installation...\");\n\n if (empty($this->password)) {\n $auth = '';\n } else {\n $auth = \":$this->password\";\n }\n $scheme = self::$dbModules[$this->dbtype]['scheme'];\n $dsn = \"{$scheme}://{$this->username}{$auth}@{$this->host}/{$this->database}\";\n\n $this->updateStatus(\"Checking database...\");\n $conn = $this->connectDatabase($dsn);\n\n // ensure database encoding is UTF8\n if ($this->dbtype == 'mysql') {\n // @fixme utf8m4 support for mysql 5.5?\n // Force the comms charset to utf8 for sanity\n // This doesn't currently work. :P\n //$conn->executes('set names utf8');\n } else if ($this->dbtype == 'pgsql') {\n $record = $conn->getRow('SHOW server_encoding');\n if ($record->server_encoding != 'UTF8') {\n $this->updateStatus(\"MicroService requires UTF8 character encoding. Your database is \". htmlentities($record->server_encoding));\n return false;\n }\n }\n\n $res = $this->updateStatus(\"Creating database tables...\");\n if (!$this->createCoreTables($conn)) {\n $this->updateStatus(\"Error creating tables.\", true);\n return false;\n }\n\n foreach (array('sms_carrier' => 'SMS carrier',\n 'notice_source' => 'notice source',\n 'foreign_services' => 'foreign service')\n as $scr => $name) {\n $this->updateStatus(sprintf(\"Adding %s data to database...\", $name));\n $res = $this->runDbScript($scr.'.sql', $conn);\n if ($res === false) {\n $this->updateStatus(sprintf(\"Can't run %s script.\", $name), true);\n return false;\n }\n }\n\n $db = array('type' => $this->dbtype, 'database' => $dsn);\n return $db;\n }", "title": "" }, { "docid": "f219cdc7a88a43cdb3c52fe8023d1328", "score": "0.72308636", "text": "protected function setUp()\n {\n parent::setUp();\n \n // TODO Auto-generated DatabaseTest::setUp()\n \n $this->Database = new Database(/* parameters */);\n }", "title": "" }, { "docid": "d1350dc0dccbea6afc0485a82d8fc8a6", "score": "0.7213657", "text": "protected function setUp()\n {\n Manager::create(self::$connection)->createTable();\n }", "title": "" }, { "docid": "cf61e930703536e7cf09539088b0c8b4", "score": "0.7205548", "text": "protected function setUp()\n {\n chdir(CWD . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR);\n\n \\Yana\\Db\\Ddl\\Database::setCache(new \\Yana\\Data\\Adapters\\ArrayAdapter());\n $this->object = new \\Yana\\Db\\Ddl\\Database('Database', CWD . '/resources/check.db.xml');\n }", "title": "" }, { "docid": "fe1e5a6b2f306dfd87df5c683a1c1d00", "score": "0.71915823", "text": "protected function setUp() {\r\n\t\t$this->schema = tx_auxo_schemabase::getInstance('tx_auxo', 'example');\r\n\t}", "title": "" }, { "docid": "b43983abd2077a3c7c74444ce5c1b19c", "score": "0.71848637", "text": "public function setUp()\n {\n parent::setUp();\n $this->initDatabase();\n }", "title": "" }, { "docid": "88b89c43cc3359ace32007ee7735494a", "score": "0.7178041", "text": "private function database_setup () {\r\n\t\tglobal $wpdb;\r\n\t\tif ( ! empty ( $wpdb->charset ) ) $charset_collate = \"DEFAULT CHARACTER SET $wpdb->charset\";\r\n\r\n\t\t// Caching Table\r\n\t\t$sql [] = \"CREATE TABLE {$wpdb->prefix}ip_comment_trace (\r\n\t\t\t\t\t`id` int(11) NOT NULL AUTO_INCREMENT ,\r\n\t\t\t\t\t`comment_id` int(11) ,\r\n\t\t\t\t\t`country` varchar(255) ,\r\n\t\t\t\t\t`region` varchar(255) ,\r\n\t\t\t\t\t`city` varchar(255) ,\r\n\t\t\t\t\t`date_added` datetime ,\r\n\t\t\t\t\tPRIMARY KEY (id)\r\n\t\t\t \t ) {$charset_collate};\";\r\n\r\n\t\t// Require upgrade funtions\r\n\t\trequire_once ( ABSPATH . 'wp-admin/upgrade-functions.php' );\r\n\r\n\t\t// Do updated\r\n\t\tdbDelta ( $sql );\r\n\r\n\t\t// Save to updated version\r\n\t\tupdate_option ('apple-loader-db-version', CIT_DB_VERSION );\r\n\t}", "title": "" }, { "docid": "7637b16588915d164326c9e29b0f8c3e", "score": "0.71691376", "text": "public function initialize() {\n\t\t$this->_db_read = Db::get($this->config->getConnectionRead());\n\t\t$this->_db_write = Db::get($this->config->getConnectionWrite());\n\t\t$this->_table_name = $this->config->getTableName();\n\t}", "title": "" }, { "docid": "a41708b589af46214e3af112c495f454", "score": "0.71558553", "text": "public function initialize()\n {\n $this->db = \"active\";\n $this->base = \"movie/\";\n $this->app->db->connect();\n }", "title": "" }, { "docid": "35b9595832402e41e33659dd82208dbe", "score": "0.714273", "text": "private function setUpDatabase(): void\n {\n include_once __DIR__.'/../resources/database/migrations/create_taggable_table.php.stub';\n (new \\CreateTaggableTable())->up();\n\n include_once __DIR__.'/database/migrations/2013_11_04_163552_create_test_models_table.php';\n (new \\CreateTestModelsTable())->up();\n }", "title": "" }, { "docid": "b154315d2b6b52431129975920c4ccd9", "score": "0.71284026", "text": "public function setUp()\n {\n $this->db->beginTransaction();\n $migration = new Migration($this->db);\n $migration->execute(\n \"CREATE TABLE `cache`\"\n . \" (`id` CHAR PRIMARY KEY NOT NULL,\"\n . \" `value` TEXT NOT NULL,\"\n . \" `expired` INTEGER NOT NULL)\"\n );\n $migration->execute(\n \"CREATE INDEX `cache_expired` ON `cache` (`expired`)\"\n );\n }", "title": "" }, { "docid": "751799314fa36b9362a32d9c817c1456", "score": "0.7105207", "text": "public function init() {\n echo \"[NOTE] Initialising project \\n\";\n $this->migrate();\n\n $seeds = glob($this->app->basepath . \"/App/Database/seeds/*.json\");\n\n foreach ($seeds as $seed) {\n $file = explode(\"/\", $seed);\n $file = array_pop($file);\n $file = explode(\".\", $file);\n $file = $file[0];\n\n $this->upload($file);\n }\n\n echo \"[SUCCESS] Database initiation completed \\n\";\n\n }", "title": "" }, { "docid": "ca159e751f9c003412c52b0340c07e24", "score": "0.71015406", "text": "protected function setUp()\n {\n R::setup('mysql:host=localhost;dbname=restcrud','root','sa');\n R::freeze(true);\n }", "title": "" }, { "docid": "77af3b7dc83fe928088d917042b4289a", "score": "0.7090609", "text": "public function setUpStore()\n {\n if (!$this->tableExists()) {\n $queries = $this->getSchema()->toSql($this->connection->getDatabasePlatform());\n $this->executeSchemaQueries($queries);\n }\n }", "title": "" }, { "docid": "426603fac1f8981821a2e80dc66699f2", "score": "0.7086289", "text": "protected function setUpDatabase(): void\n {\n // $this->loadLaravelMigrations();\n $this->resetDatabase();\n }", "title": "" }, { "docid": "6564d8f3d9d8c867ea19d677663a7f29", "score": "0.7081741", "text": "public function createDatabase(){\n\t\t\n $roleModel = new NtRole();\n $roleModel->createTable();\n $roleModel->createDefault();\n \n $groupModel = new NtGroup();\n $groupModel->createTable();\n \n $projectModel = new NtProject();\n $projectModel->createTable();\n \n $commentModel = new NtComment();\n $commentModel->createTable();\n \n $dataModel = new NtData();\n $dataModel->createTable();\n \n\t}", "title": "" }, { "docid": "566e3a383d779dca30f26246f453868f", "score": "0.70816463", "text": "protected function populateDatabase()\n {\n $this->database()->getSchemaBuilder()->disableForeignKeyConstraints();\n\n // Then, insert all rows required for this test case.\n foreach ($this->databaseContent as $table => $rows) {\n foreach ($rows as $row) {\n if ($table === 'settings') {\n $this->database()->table($table)->updateOrInsert(\n ['key' => $row['key']],\n $row\n );\n } else {\n $this->database()->table($table)->updateOrInsert(\n isset($row['id']) ? ['id' => $row['id']] : $row,\n $row\n );\n }\n }\n }\n\n // And finally, turn on foreign key checks again.\n $this->database()->getSchemaBuilder()->enableForeignKeyConstraints();\n }", "title": "" }, { "docid": "5a61a304e896287b877407e7095b2caa", "score": "0.70747274", "text": "protected function _initDB(){\n $config=new Zend_Config_Ini(APPLICATION_PATH . \"/configs/db.ini\",APPLICATION_ENV);\n $db=Zend_Db::factory($config->database->adapter,$config->database);\n Zend_Db_Table_Abstract::setDefaultAdapter($db);\n }", "title": "" }, { "docid": "88c17a3411ba57da66826101df2fffe8", "score": "0.7074366", "text": "public function setUp() {\n global $DB;\n\n $this->DB = $DB;\n }", "title": "" }, { "docid": "bdef0c2ed9e7dd51aa4c4e0cd2527bd8", "score": "0.7068898", "text": "protected abstract function preconfigure_dbconnection();", "title": "" }, { "docid": "e9dd0f476bf12b037803aabd3a95be9b", "score": "0.7066125", "text": "function DBSetup()\n {\n $this->con = mysql_connect($this->url,$this->user,$this->pwd,$this->db);\n if (!$this->con)\n {\n die('Could not connect: ' . mysql_error());\n }\n mysql_select_db($this->db, $this->con);\n }", "title": "" }, { "docid": "1a7adbcca9b12e8abe33ba8dbb2f1e7f", "score": "0.7058191", "text": "public function bootDB() {\n if( ! empty( $this->env->database ) ) {\n $this->db = DB::getInstance( $this->env );\n }\n }", "title": "" }, { "docid": "9334fc6cc3a211d05ae24d554b80afa1", "score": "0.70434046", "text": "public function setUp( )\n {\n parent::setUp( );\n \n $this->options = new Options( self::$db );\n \n }", "title": "" }, { "docid": "609241f428c750e934056499290e2f29", "score": "0.70275694", "text": "public function initialize(): void\n {\n $this->setSchema($this->getDI()->get(Services::CONFIG)->database->dbname);\n $this->setSource('user_department');\n $this->belongsTo('department_id', Department::class, 'id', ['alias' => 'Departments']);\n $this->belongsTo('user_id', User::class, 'id', ['alias' => 'User']);\n }", "title": "" }, { "docid": "7bb69c5bdb188bb34d81a42582e82de5", "score": "0.7025809", "text": "protected function setUp() {\n $this -> setDbDump( dirname(__FILE__) . '/_files/setup.sql' );\n parent::setUp ();\n }", "title": "" }, { "docid": "7bb69c5bdb188bb34d81a42582e82de5", "score": "0.7025809", "text": "protected function setUp() {\n $this -> setDbDump( dirname(__FILE__) . '/_files/setup.sql' );\n parent::setUp ();\n }", "title": "" }, { "docid": "511dd3ffc40b54f6386cc3a58f423e22", "score": "0.7017141", "text": "public function initDb(){\r\n\t\t$config = $this->app->config;\r\n\t\t$locale = $config['db'];\r\n\t\t$rvip = $config['db_rvip'];\r\n\t\t$dbPathLocale = \"mysql://\" . $locale['user'] . \":\" . $locale['pwd'] . \"@\" . $locale['host'] . \"/\" . $locale['dbname'];\r\n\t\t$dbPathRvip = \"mysql://\" . $rvip['user'] . \":\" . $rvip['pwd'] . \"@\" . $rvip['host'] . \"/\" . $rvip['dbname'];\r\n\t\t$connections = array(\r\n\t\t\t'domadb'\t=> $dbPathLocale,\r\n\t\t\t'rvipdb'\t=> $dbPathRvip\r\n\t\t);\r\n\t\tActiveRecord\\Config::initialize(function($cfg) use ($connections){\r\n\t\t\t$cfg->set_model_directory(__DIR__ . '/Model');\r\n\t\t\t$cfg->set_connections($connections);\r\n\t\t});\t\t\t\t\r\n\t}", "title": "" }, { "docid": "4ad99a6d879ede9b464fb4aa43cfc182", "score": "0.7008091", "text": "public function Setup() {\n // Add some fields to the database\n $Structure = Gdn::Structure();\n \n // \"Unanswered\" or \"Answered\"\n $Structure->Table('Discussion')\n ->Column('State', 'varchar(30)', TRUE)\n ->Set(FALSE, FALSE); \n\n// SaveToConfig('Vanilla.Categories.Use', FALSE);\n// SaveToConfig('Vanilla.Comments.AutoOffset', FALSE);\n }", "title": "" }, { "docid": "e23c7359cf9c05b29c8a55cf4303b46a", "score": "0.7006333", "text": "protected function setUp()\n {\n $this->primeDatabase();\n $this->m_reservation = Model_Fields_Reservation::Create($this->m_season, $this->m_field, $this->m_team, $this->m_startTime, $this->m_endTime, $this->m_daysOfWeek);\n }", "title": "" }, { "docid": "20c15abbe0f0b8b346bfa3c336b9bb79", "score": "0.70017374", "text": "public function setUp()\n\t{\n\t\t// create the IOC container and bind it to the facades.\n\t\t$this->container = new Container;\n\t\t$this->setUpContainer($this->container);\n\t\tFacade::setFacadeApplication($this->container);\n\n\t\t// create the capsule and bind it to the IOC container.\n\t\t$this->capsule = new DatabaseCapsule($this->container);\n\t\t$this->setUpCapsule($this->capsule);\n\t\t$this->container['db'] = $this->capsule;\n\t\t$this->capsule->addConnection($this->getDatabaseConfig());\n\n\t\tif ($this->enableEvents) {\n\t\t\t$this->eventDispatcher = new Dispatcher($this->container);\n\t\t\t$this->setUpEventDispatcher($this->eventDispatcher);\n\t\t\t$this->capsule->setEventDispatcher($this->eventDispatcher);\n\t\t}\n\n\t\tif ($this->enableCache && method_exists($this->capsule, 'setCacheManager')) {\n\t\t\t$this->container['config']['cache.driver'] = 'array';\n\t\t\t$this->cacheManager = new CacheManager($this->container);\n\t\t\t$this->setUpCacheManager($this->cacheManager);\n\t\t\t$this->capsule->setCacheManager($this->cacheManager);\n\t\t}\n\n\t\t// make the capsule available globally and enable eloquent\n\t\t$this->capsule->setAsGlobal();\n\t\t$this->capsule->bootEloquent();\n\n\t\t// run migrations ans seeds\n\t\t$this->runMigrations('up');\n\t\t$this->runSeeds();\n\t}", "title": "" }, { "docid": "a2e4b15d04337014fb79a74ee3f2414b", "score": "0.7001643", "text": "function setupDB()\n {\n global $serendipity;\n\n $built = $this->get_config('db_built', null);\n $fresh = false;\n\n if (empty($built) && !defined('STATICPAGE_UPGRADE_DONE') && stristr($serendipity['dbType'], 'sqlite') === FALSE) {\n serendipity_db_schema_import(\"CREATE TABLE {$serendipity['dbPrefix']}staticpages (\n id {AUTOINCREMENT} {PRIMARY},\n parent_id int(11) default '0',\n articleformattitle varchar(255) not null default '',\n articleformat int(1) default '1',\n markup int(1) default '1',\n pagetitle varchar(255) not null default '',\n permalink varchar(255) not null default '',\n is_startpage int(1) default '0',\n is_404_page int(1) default '0',\n show_childpages int(1) not null default '0',\n content text,\n pre_content text,\n headline varchar(255) not null default '',\n filename varchar(255) not null default '',\n pass varchar(255) not null default '',\n timestamp int(10) {UNSIGNED} default null,\n last_modified int(10) {UNSIGNED} default null,\n authorid int(11) default '0',\n pageorder int(4) default '0',\n articletype int(4) default '0',\n related_category_id int(4) default 0,\n shownavi int(4) default '1',\n showonnavi int(4) default '1',\n show_breadcrumb int(4) default '1',\n publishstatus int(4) default '1',\n language varchar(10) default '',\n title_element varchar(255) not null default '',\n meta_description varchar(255) not null default '',\n meta_keywords varchar(255) not null default '') {UTF_8}\");\n\n if (file_exists($this->cachefile)) {\n unlink($this->cachefile);\n }\n\n serendipity_db_query(\"DELETE FROM {$serendipity['dbPrefix']}config WHERE name LIKE 'serendipity_event_staticpage:%'\");\n serendipity_db_query(\"DELETE FROM {$serendipity['dbPrefix']}plugins WHERE name LIKE 'serendipity_event_staticpage:%' AND name NOT LIKE '\" . serendipity_db_escape_string($this->instance) . \"'\");\n\n $this->set_config('db_built', 7);\n $built = 7;\n $fresh = true;\n @define('STATICPAGE_UPGRADE_DONE', true); // No further static pages may be called!\n }\n // workaround for SQLITE not being able to ALTER complicated things later\n if (stristr($serendipity['dbType'], 'sqlite') !== FALSE) {\n\n serendipity_db_schema_import(\"CREATE TABLE IF NOT EXISTS {$serendipity['dbPrefix']}staticpages (\n id {AUTOINCREMENT} {PRIMARY},\n parent_id int(11) DEFAULT '0',\n articleformattitle varchar(255) NOT NULL DEFAULT '',\n articleformat int(1) DEFAULT '1',\n markup int(1) DEFAULT '1',\n pagetitle varchar(255) NOT NULL DEFAULT '',\n permalink varchar(255) NOT NULL DEFAULT '',\n is_startpage int(1) DEFAULT '0',\n is_404_page int(1) DEFAULT '0',\n show_childpages int(1) NOT NULL DEFAULT '0',\n content text,\n pre_content text,\n headline varchar(255) NOT NULL DEFAULT '',\n filename varchar(255) NOT NULL DEFAULT '',\n pass varchar(255) NOT NULL DEFAULT '',\n timestamp int(10) {UNSIGNED} DEFAULT NULL,\n last_modified int(10) {UNSIGNED} DEFAULT NULL,\n authorid int(11) DEFAULT '0',\n pageorder int(4) DEFAULT '0',\n articletype int(4) DEFAULT '0',\n related_category_id int(4) DEFAULT '0',\n shownavi int(4) DEFAULT '1',\n showonnavi int(4) DEFAULT '1',\n show_breadcrumb int(4) DEFAULT '1',\n publishstatus int(4) DEFAULT '1',\n language varchar(10) DEFAULT '',\n title_element varchar(255) NOT NULL DEFAULT '',\n meta_description varchar(255) NOT NULL DEFAULT '',\n meta_keywords varchar(255) NOT NULL DEFAULT '') {UTF_8}\");\n\n serendipity_db_schema_import(\"CREATE TABLE IF NOT EXISTS {$serendipity['dbPrefix']}staticpages_types (\n id {AUTOINCREMENT} {PRIMARY},\n description varchar(100) NOT NULL DEFAULT '',\n template varchar(255) NOT NULL DEFAULT '',\n image varchar(255) NOT NULL DEFAULT '') {UTF_8}\");\n\n serendipity_db_schema_import(\"CREATE TABLE IF NOT EXISTS {$serendipity['dbPrefix']}staticpage_categorypage (\n categoryid int(4) DEFAULT '0',\n staticpage_categorypage int(4) DEFAULT '0') {UTF_8}\");\n\n serendipity_db_schema_import(\"CREATE TABLE IF NOT EXISTS {$serendipity['dbPrefix']}staticpage_custom (\n staticpage int(11) DEFAULT NULL,\n name varchar(128) DEFAULT NULL,\n value text) {UTF_8}\");\n\n // Set fulltext indexes of tables ? Is that working here? Should not... and just return true without accessing serendipity_db_query() method\n #serendipity_db_schema_import(\"CREATE {FULLTEXT_MYSQL} INDEX staticentry_idx on {$serendipity['dbPrefix']}staticpages (headline, content);\");\n\n // set to latest built\n $this->set_config('db_built', 23);\n $built = 23;\n $fresh = true;\n @define('STATICPAGE_UPGRADE_DONE', true); // don't do this again!\n }\n\n switch($built) {\n case 1: // password not included\n $q = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN pass varchar(255) not null default ''\";\n serendipity_db_schema_import($q);\n case 2: // parent-id not included\n $q = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN parent_id int(11) default '0'\";\n serendipity_db_schema_import($q);\n case 3:\n $q = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN show_childpages int(1) not null default '0'\";\n serendipity_db_schema_import($q); // list of child-pages on parent-page\n $q = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN pre_content text\";\n serendipity_db_schema_import($q); // content\n case 4:\n $q = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN is_startpage int(1) default '0'\";\n serendipity_db_schema_import($q);\n case 5: // enum to re-order staticpages\n $q = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN pageorder int(4) default '0'\";\n serendipity_db_schema_import($q);\n case 6:\n $q = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN articletype int(4) default '0'\";\n serendipity_db_schema_import($q);\n case 7:\n $q = \"CREATE TABLE {$serendipity['dbPrefix']}staticpages_types (\n id {AUTOINCREMENT} {PRIMARY},\n description varchar(100) not null default '',\n template varchar(255) not null default '',\n image varchar(255) not null default '') {UTF_8}\";\n serendipity_db_schema_import($q);\n $existing = serendipity_db_query(\"SELECT * FROM {$serendipity['dbPrefix']}staticpages_types LIMIT 1\");\n if (!is_array($existing) || !isset($existing[0]['template'])) {\n $this->pagetype = array(\n 'description' => 'Article',\n 'template' => 'plugin_staticpage.tpl'\n );\n serendipity_db_insert('staticpages_types', $this->pagetype);\n $this->pagetype = array(\n 'description' => 'Overview',\n 'template' => 'plugin_staticpage_aboutpage.tpl'\n );\n serendipity_db_insert('staticpages_types', $this->pagetype);\n $set = array(\n 'articletype' => 1,\n 'pageorder' => '0'\n );\n serendipity_db_update('staticpages', array(), $set);\n if (file_exists($this->cachefile)) {\n unlink($this->cachefile);\n }\n }\n case 8:\n case 9:\n case 10:\n if ($fresh === false) {\n $q = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN shownavi int(4) default '1';\";\n serendipity_db_schema_import($q);\n $q = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN showonnavi int(4) default '1'\";\n serendipity_db_schema_import($q);\n $q = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN publishstatus int(4) default '1';\";\n serendipity_db_schema_import($q);\n $q = \"DROP TABLE {$serendipity['dbPrefix']}staticpages_plugins\";\n serendipity_db_schema_import($q);\n $q = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN language varchar(10) default ''\";\n serendipity_db_schema_import($q);\n }\n case 11:\n serendipity_db_update('staticpages_types', array('description' => 'Aboutpage'), array('description' => 'Overview'));\n case 12:\n $q = \"CREATE {FULLTEXT_MYSQL} INDEX staticentry_idx on {$serendipity['dbPrefix']}staticpages (headline, content);\";\n serendipity_db_schema_import($q);\n case 13:\n case 14:\n if ($fresh === false) {\n $q = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN last_modified int(10)\";\n serendipity_db_schema_import($q);\n serendipity_db_query(\"UPDATE {$serendipity['dbPrefix']}staticpages SET last_modified = timestamp\");\n }\n case 15:\n if ($fresh === false) {\n $sql = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN related_category_id int(4) default 0\";\n serendipity_db_schema_import($sql);\n }\n case 16:\n $this->pagetype = array(\n 'description' => 'Staticpage with related category',\n 'template' => 'plugin_staticpage_related_category.tpl'\n );\n serendipity_db_insert('staticpages_types', $this->pagetype);\n\n $sql = \"CREATE TABLE {$serendipity['dbPrefix']}staticpage_categorypage (\n categoryid int(4) default 0,\n staticpage_categorypage int(4) default 0\n ) {UTF_8}\";\n serendipity_db_schema_import($sql);\n case 17:\n $sql = \"CREATE TABLE {$serendipity['dbPrefix']}staticpage_custom (\n staticpage int(11),\n name varchar(128),\n value text\n ) {UTF_8}\";\n serendipity_db_schema_import($sql);\n case 18:\n if ($fresh === false) {\n $sql = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN is_404_page int(1) default 0\";\n if ($serendipity['dbType'] == 'mysql' || $serendipity['dbType'] == 'mysqli') {\n $sql .= ' AFTER is_startpage';\n }\n serendipity_db_schema_import($sql);\n }\n case 19:\n if ($fresh === false) {\n $q = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN show_breadcrumb int(4) default '1'\";\n if ($serendipity['dbType'] == 'mysql' || $serendipity['dbType'] == 'mysqli') {\n $q .= ' AFTER showonnavi';\n }\n serendipity_db_schema_import($q);\n }\n case 20:\n if ($fresh === false) {\n $q = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN title_element varchar(255) not null default ''\";\n serendipity_db_schema_import($q);\n $q = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN meta_description varchar(255) not null default ''\";\n serendipity_db_schema_import($q);\n $q = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN meta_keywords varchar(255) not null default ''\";\n serendipity_db_schema_import($q);\n }\n case 21:\n // ALTER table permission errors just die away silently, we now offer an error for cases since v.3.97\n /*\n https://github.com/s9y/additional_plugins/commit/43e0f86e4c965faf3e4f526fd707be0b3efec566#diff-a69dc3666716dfa0368134079aebb5b9\n 43e0f86 Breadcrumb navigation as an independent option\n */\n // correct missing case 19\n $repairfield = false;\n $altererror = false;\n $has_sbcfield = serendipity_db_query(\"SELECT show_breadcrumb FROM {$serendipity['dbPrefix']}staticpages LIMIT 1\", true, 'assoc');\n if (!is_array($has_sbcfield) && !empty($has_sbcfield)) {\n $q = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN show_breadcrumb int(4) default '1'\";\n if ($serendipity['dbType'] == 'mysql' || $serendipity['dbType'] == 'mysqli') {\n $q .= ' AFTER showonnavi';\n }\n $r = serendipity_db_schema_import($q);\n if ($r === true) {\n $repairfield = true;\n } else {\n $altererror = $this->check_error($r);\n }\n }\n // correct case 19 for mysql type dbs, which did not use the AFTER extension before\n if ($repairfield === false && ($serendipity['dbType'] == 'mysql' || $serendipity['dbType'] == 'mysqli')) {\n $q = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages MODIFY COLUMN show_breadcrumb int(4) DEFAULT '1' AFTER showonnavi\";\n $r = serendipity_db_schema_import($q);\n $altererror = $this->check_error($r);\n }\n /*\n https://github.com/s9y/additional_plugins/commit/36fd48b5bc17d7395e4e1c9c38c60936925e184e#diff-a69dc3666716dfa0368134079aebb5b9\n 36fd48b Changed meta fields, no longer custom properties\n */\n // correct case 20 for upgraders, which did not use them in fresh before ( since v.4.09 )\n $has_metafields = serendipity_db_query(\"SELECT title_element, meta_description, meta_keywords FROM {$serendipity['dbPrefix']}staticpages LIMIT 1\", false, 'assoc');\n if (!is_array($has_metafields) && !empty($has_metafields) && $has_metafields != 1) {\n $q = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN title_element varchar(255) not null default ''\";\n $r = serendipity_db_schema_import($q);\n $altererror = $this->check_error($r);\n $q = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN meta_description varchar(255) not null default ''\";\n $r = serendipity_db_schema_import($q);\n $altererror = $this->check_error($r);\n $q = \"ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN meta_keywords varchar(255) not null default ''\";\n $r = serendipity_db_schema_import($q);\n $altererror = $this->check_error($r);\n }\n if ($altererror === true) {\n echo '<span class=\"msg_error\"><span class=\"icon-attention-circled\" aria-hidden=\"true\"></span> <strong>Error:</strong> '.$r.'. Please check your privileges to this table; triggered in serendipity_event_staticpages, db_build() method, case 21 checks.</span>'; // ALTER command denied\n } else // strictly secure this by IN_serendipity_admin backend, else $altererror will be false\n if ($altererror === false && defined('IN_serendipity_admin')) {\n $this->set_config('db_built', 22);\n } else {\n $this->set_config('db_built', 21);\n }\n case 22:\n // case 16 and case 17 did not run on some old machines and where the error reporting, not as good as in Styx 2.9.x and 3.0, did not alert this issue! An error of db build in staticpage versions prior to the year 2011, when plugin were migrated to github.\n // postgres 9.1+ since 2011-09-12 supports IF NOT EXISTS syntax (https://www.postgresql.org/docs/9.1/release-9-1.html)\n $sql = \"CREATE TABLE IF NOT EXISTS {$serendipity['dbPrefix']}staticpage_categorypage (\n categoryid int(4) default 0,\n staticpage_categorypage int(4) default 0\n ) {UTF_8}\";\n serendipity_db_schema_import($sql);\n $sql = \"CREATE TABLE IF NOT EXISTS {$serendipity['dbPrefix']}staticpage_custom (\n staticpage int(11),\n name varchar(128),\n value text\n ) {UTF_8}\";\n serendipity_db_schema_import($sql);\n $this->set_config('db_built', 23);\n break;\n }\n }", "title": "" }, { "docid": "f3b2609a0a4bb08ead00c65f57159535", "score": "0.70004267", "text": "function database_setup()\n\t{\t\n\t\t$data['main'] = 'main/install/database_setup';\n\t\t$data['database_driver'] = $this->db->platform();\n\t\t$this->load->view('main/install/layout', $data);\t\t\t\n\t}", "title": "" }, { "docid": "bce89cb706904272ec80aa6099695578", "score": "0.69965327", "text": "public function createDatabase() {\n\n $modelService = new SeService();\n $modelService->createTable();\n\n $modelServiceType = new SeServiceType();\n $modelServiceType->createTable();\n $modelServiceType->createDefault();\n\n $modelSePurchase = new SePurchase();\n $modelSePurchase->createTable();\n\n $modelSePurchaseItem = new SePurchaseItem();\n $modelSePurchaseItem->createTable();\n\n $modelSeOrder = new SeOrder();\n $modelSeOrder->createTable();\n\n $modelSeProject = new SeProject();\n $modelSeProject->createTable();\n\n $modelSePrice = new SePrice();\n $modelSePrice->createTable();\n \n $modelOrigin = new SeOrigin();\n $modelOrigin->createTable();\n \n $modelVisa = new SeVisa();\n $modelVisa->createTable();\n \n $modelshelf = new StockShelf();\n $modelshelf->createTable();\n \n $modelCabinet = new StockCabinet();\n $modelCabinet->createTable();\n \n\n if (!file_exists('data/services/')) {\n mkdir('data/services/', 0777, true);\n }\n }", "title": "" }, { "docid": "fead7bc82c0f2e4d6d699bfcf8bd6af6", "score": "0.6977653", "text": "public function setup(){\r\n\t\r\n\t\t$this->db->dropTableIfExists('reputation')->execute();\r\n\t \r\n\t\t$this->db->createTable(\r\n\t\t\t'reputation',\r\n\t\t\t[\r\n\t\t\t\t'id' => ['integer', 'primary key', 'not null', 'auto_increment'],\r\n\t\t\t\t'question_id' \t=> ['int(80)'],\r\n\t\t\t\t'answer_id' \t=> ['int(80)'],\r\n\t\t\t\t'member_id'\t\t=> ['int(80)'],\r\n\t\t\t\t'type'\t\t\t=> ['varchar(10)'],\r\n\t\t\t\t'rep_giver' \t=> ['int(80)'] \r\n\t\t\t]\r\n\t\t)->execute();\r\n\t}", "title": "" }, { "docid": "a586e99cc710d38aee4ba292a84c6498", "score": "0.6972622", "text": "function setDatabase()\n\t{\n\t\trequire_once(APPSHORE_INCLUDES . SEP . 'adodb' . SEP . 'adodb.inc.php');\n\t\t\n\t\t// connect to specific database\n\t\t$GLOBALS['appshore']->db = ADONewConnection($GLOBALS['appshore_data']['server']['db_type']);\n\t\tif ( !$GLOBALS['appshore']->db->Connect($GLOBALS['appshore_data']['server']['db_host'],$GLOBALS['appshore_data']['server']['db_user'],$GLOBALS['appshore_data']['server']['db_pass'],$GLOBALS['appshore_data']['server']['db_name']) )\n\t\t{\n\t\t\t// can not connect with the customer db so we go to the generic one\n\t\t\t// and we'll ask for more info\n\t\t\techo 'Can\\'t access database.<br>';\n\t\t\techo 'Please contact your System Administrator';\n\t\t\texit;\t\t\n\t\t}\n\t\t\n\t\t// to enforce default character set\n\t\t$GLOBALS['appshore']->db->Execute( 'SET CHARACTER SET \"utf8\"');\t\t\n\t}", "title": "" }, { "docid": "e680050076301bfda35e9fcbbb4aa29c", "score": "0.6971694", "text": "public function init()\n {\n parent::init();\n if ($this->db !== null) {\n $this->db = Instance::ensure($this->db);\n }\n }", "title": "" }, { "docid": "15a4a0e96a2112b1a5af9185ef1de4db", "score": "0.6964269", "text": "public function prepare()\n {\n $this->createFileIfNotExists();\n $this->createTableIfNotExists();\n }", "title": "" }, { "docid": "4a72d46101f11b7ea935136ac1bb6cbf", "score": "0.6963111", "text": "public function setUp()\n {\n $this->setup = new Setup(new PDO('sqlite::memory:'));\n }", "title": "" }, { "docid": "312f4a802ee86b7f9f396d55fac0d356", "score": "0.69558376", "text": "function dbInit( )\n {\n if ( $this->IsConnected == false )\n {\n $this->Database = new eZDB( \"site.ini\", \"site\" );\n $this->IsConnected = true;\n }\n }", "title": "" }, { "docid": "cc5f358209db89392af86b6d24483c22", "score": "0.69522136", "text": "function createDatabaseObject() {\n\t\t$this->db = t3lib_div::makeInstance('tx_feuserprofile_database');\n\t\t$this->db->init($this->config);\n\t}", "title": "" }, { "docid": "06ed92300e3d0dd7eab2359fe833156c", "score": "0.6935654", "text": "protected function createDatabase() {\n $sql = sprintf('CREATE DATABASE IF NOT EXISTS `%s`;', getenv('db'));\n $this->db->exec($sql);\n $this->db = Database::getPDOConnection();\n }", "title": "" }, { "docid": "3a705004ad36aee1a0370418a8692bd4", "score": "0.6931545", "text": "public function setup(){\n $configPath = getcwd() === \"/vagrant\" ? \"./ini/config-local.ini\" : \"/var/www/config-env.ini\";\n\n self::$CONFIG = service\\ConfigService::getConfigFromIni($configPath);\n self::$DB_CONFIG = array(\n \"dsn\" => \"mysql:host=\" . self::$CONFIG[\"db.host\"] . \";dbname=\" . self::$CONFIG[\"db.name\"],\n \"username\" => self::$CONFIG[\"db.user\"],\n \"password\" => self::$CONFIG[\"db.password\"]\n );\n $this->db = new service\\RestfulDatabaseService(self::$DB_CONFIG);\n }", "title": "" }, { "docid": "836f96b7579344188b81671b0ddb8ba5", "score": "0.69254935", "text": "public static function database_setup() {\n\t\tglobal $wpdb;\n\n\t\t$table_name = $wpdb->prefix . self::TABLE_NAME;\n\n\t\t$charset_collate = $wpdb->get_charset_collate();\n\n\t\t$sql = \"CREATE TABLE $table_name (\n\t\tid mediumint(9) NOT NULL AUTO_INCREMENT,\n\t\ttime datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,\n\t\temail tinytext NOT NULL,\n\t\taffiliate_id int(11) NOT NULL,\n\t\turl varchar(55) DEFAULT '' NOT NULL,\n\t\tPRIMARY KEY (id)\n\t\tUNIQUE KEY (email)\n \t) $charset_collate;\";\n\n\t\trequire_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n\t\tdbDelta( $sql );\n\n\t\tadd_option( 'svbk_affiliates_db_version', self::DB_VERSION );\n\t}", "title": "" }, { "docid": "29cec43a2d4ad7172b6a1cc89f8c17f0", "score": "0.69182646", "text": "public function init()\n {\n parent::init();\n $this->db = Instance::ensure($this->db, Connection::class);\n }", "title": "" }, { "docid": "8af4ec50b1d8a3f78a33ab2a08dfdbd5", "score": "0.690308", "text": "abstract protected function create_db_structure();", "title": "" }, { "docid": "709cdbc34da850b1383acc16a744b310", "score": "0.68962795", "text": "public function init()\n {\n $connection = sprintf('mysql:host=%s;dbname=%s;charset=utf8', $_ENV['MYSQL_HOST'], $_ENV['MYSQL_DATABASE']);\n $pdo = new PDO($connection, $_ENV['MYSQL_USER'], $_ENV['MYSQL_PASS'], [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);\n\n// $pdo = new PDO('sqlite::memory:');\n\n // Reset the state of the database\n $sql = file_get_contents(__DIR__ . '/../data/seed.sql');\n $pdo->exec($sql);\n\n // Create the drivers\n $this->fields = new MysqlField($pdo, new FieldValidator());\n $this->entities = new MysqlEntity($pdo, new EntityValidator(), $this->fields);\n\n $this->driver = new MysqlRecord($pdo);\n $this->driver->buildValidator(function(\\Boyhagemann\\Storage\\Contracts\\Entity $entity) {\n return new RecordValidator($entity);\n });\n }", "title": "" }, { "docid": "dfdad8ff850912ae33d15b647940acfc", "score": "0.6889517", "text": "public function setUp()\n \t{\n\t\t// connection locking issues\n\t\t$this->db = Query('test_sqlite');\n \t}", "title": "" }, { "docid": "49bf705675d2f2b4c08cb4d72a299eb4", "score": "0.68827623", "text": "public function db()\n {\n $config = array(\n 'driver' => Acuity_Registry::get('config')->driver,\n 'file' => ROOT_PATH . DS . Acuity_Registry::get('config')->file,\n );\n\n $db = Acuity_Db_Factory::load($config);\n $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n Acuity_Registry::set('db', $db);\n }", "title": "" }, { "docid": "456abbab2eaba06c0d2ccd577eb7ceb4", "score": "0.68824965", "text": "private\n function _initDB()\n {\n $this->_dbDrv = new dbDriver($this->PATH,self::DB,self::DB_FILE_EXT);\n }", "title": "" }, { "docid": "e8d487e8ded844cc19d40ecc1d590b9c", "score": "0.6877296", "text": "public static function init(){\n\n /**\n * Nuke the database\n */\n R::nuke();\n\n /**\n * Run the sql scripts for oauth2 library\n */\n $sql_file = '../vendor/league/oauth2-server/sql/mysql.sql';\n $contents = file_get_contents($sql_file);\n R::exec($contents);\n\n /**\n * Setup database\n */\n $sql_file = '../sql/db.sql';\n $contents = file_get_contents($sql_file);\n R::exec($contents);\n\n /**\n * Create the admin account\n * @var User $accountAdmin\n */\n $accountAdmin = R::dispense('user');\n $accountAdmin->Email = '';\n $accountAdmin->Name = '';\n $accountAdmin->UserName = 'v';\n $accountAdmin->password = PasswordHelper::encrypt('password');\n $accountAdmin->createdDate = time();\n $accountAdmin->modifiedDate = $accountAdmin->dateCreated;\n R::store($accountAdmin);\n\n \n }", "title": "" }, { "docid": "874cf2500117e729dab91cfcd0ccb317", "score": "0.6872117", "text": "public function settaDB()\n {\n // inclusione del file della classe\n include \"MySqlClass.php\";\n // istanza della classe\n $this->database = new MysqlClass();\n }", "title": "" }, { "docid": "116f3eae6cb07fde643cf9386c9ba460", "score": "0.6871452", "text": "protected function setUp(): void\n {\n $this->createSchema();\n }", "title": "" }, { "docid": "fe2cc4227976e0b7e3ec23689b0e3043", "score": "0.68657136", "text": "public static function setup_database(){\n\n\t\t// Create the users table\n\t\tSchema::table('users', function($table){\n\t\t\t$table->create();\n\t\t\t$table->increments('id');\n\t\t\t$table->string('username');\n\t\t\t$table->string('email');\n\t\t\t$table->string('first_name');\n\t\t\t$table->string('last_name');\n\t\t\t$table->string('password');\n\t\t\t$table->date('last_login');\n\t\t\t$table->integer('active');\n\t\t\t$table->integer('admin');\n\t\t\t$table->timestamps();\n\t\t\t$table->index('id');\n\t\t});\n\n\t\t// Create the roles table\n\t\tSchema::table('roles', function($table){\n\t\t\t$table->create();\n\t\t\t$table->increments('id');\n\t\t\t$table->string('slug');\n\t\t\t$table->string('name');\n\t\t\t$table->timestamps();\n\t\t\t$table->index('id');\n\t\t});\n\n\t\t// Create the users and roles pivot table\n\t\tSchema::table('role_user', function($table){\n\t\t\t$table->create();\n\t\t\t$table->increments('id');\n\t\t\t$table->integer('user_id');\n\t\t\t$table->integer('role_id');\n\t\t\t$table->timestamps();\n\t\t\t$table->index('user_id');\n\t\t\t$table->index('role_id');\n\t\t});\n\n\t\t// Create the uploads table\n\t\tSchema::table('uploads', function($table){\n\t\t\t$table->create();\n\t\t\t$table->increments('id');\n\t\t\t$table->string('link_type',50);\n\t\t\t$table->integer('link_id');\n\t\t\t$table->string('filename',255);\n\t\t\t$table->string('small_filename',255);\n\t\t\t$table->string('thumb_filename',255);\n\t\t\t$table->string('extension',10);\n\t\t\t$table->integer('user_id');\n\t\t\t$table->integer('image');\n\t\t\t$table->index('link_type');\n\t\t\t$table->index('link_id');\n\t\t\t$table->index('user_id');\n\t\t\t$table->timestamps();\n\t\t});\n\n\t\t// Create the sections table\n\t\tSchema::table('sections', function($table){\n\t\t\t$table->create();\n\t\t\t$table->increments('id');\n\t\t\t$table->string('title',255);\n\t\t\t$table->text('content');\n\t\t\t$table->integer('order');\n\t\t\t$table->integer('created_by');\n\t\t\t$table->integer('page_id');\n\t\t\t$table->index('page_id');\n\t\t\t$table->timestamps();\n\t\t});\n\n\t\t// Create the pages table\n\t\tSchema::table('pages', function($table){\n\t\t\t$table->create();\n\t\t\t$table->increments('id');\n\t\t\t$table->string('title',255);\n\t\t\t$table->string('slug',255);\n\t\t\t$table->string('meta_title',255);\n\t\t\t$table->string('meta_description',255);\n\t\t\t$table->string('meta_keywords',255);\n\t\t\t$table->integer('created_by');\n\t\t\t$table->index('id');\n\t\t\t$table->timestamps();\n\t\t});\n\n\t\t// Create the news table\n\t\tSchema::table('news', function($table){\n\t\t\t$table->create();\n\t\t\t$table->increments('id');\n\t\t\t$table->string('title',255);\n\t\t\t$table->string('url_title',255);\n\t\t\t$table->text('content');\n\t\t\t$table->integer('created_by');\n\t\t\t$table->index('id');\n\t\t\t$table->timestamps();\n\t\t});\n\n\t\t// Create the gallery images table\n\t\tSchema::table('gallery_images', function($table){\n\t\t\t$table->create();\n\t\t\t$table->increments('id');\n\t\t\t$table->string('title',255);\n\t\t\t$table->integer('order');\n\t\t\t$table->integer('gallery_id');\n\t\t\t$table->integer('created_by');\n\t\t\t$table->index('id');\n\t\t\t$table->index('gallery_id');\n\t\t\t$table->timestamps();\n\t\t});\n\n\t\t// Create the gallery table\n\t\tSchema::table('gallery', function($table){\n\t\t\t$table->create();\n\t\t\t$table->increments('id');\n\t\t\t$table->string('title',255);\n\t\t\t$table->text('description');\n\t\t\t$table->string('default_image',255);\n\t\t\t$table->integer('created_by');\n\t\t\t$table->index('id');\n\t\t\t$table->timestamps();\n\t\t});\n\t\treturn true;\n }", "title": "" }, { "docid": "4864e8b2d4a726fc699ead562d04d0ed", "score": "0.6857631", "text": "private function connectDatabase() {\n\t\t$this->db = new Database ();\n\t}", "title": "" }, { "docid": "d3e4a623cd305896fe6b281e18f594b7", "score": "0.6850032", "text": "public function run()\n {\n factory(Database::class, 0)->create();\n }", "title": "" }, { "docid": "e3c8b9d23650f672ffb82e779b628b06", "score": "0.6841436", "text": "private function setup_db_connection() {\n\t\t// Check to see if ActiveRecord exists... the app/developer might not want to use it\n\t\tif ( class_exists( '\\ActiveRecord\\Config', true ) ) { // Set to false to not try and autoload the class\n\t\t\t\\ActiveRecord\\Config::initialize( function( $cfg ) {\n\t\t\t\t// Set the directory of our data models\n\t\t\t\t$cfg->set_model_directory( $this->config['database']['model_directory'] );\n\n\t\t\t\t// Set our connection configuration\n\t\t\t\t$cfg->set_connections( $this->config['database']['connections'] );\n\n\t\t\t\t// Set our default connection\n\t\t\t\t$cfg->set_default_connection( $this->config['database']['default_connection'] );\n\t\t\t});\n\t\t}\n\t}", "title": "" }, { "docid": "13503a86f8ff02fed6f6d8a75db20f86", "score": "0.6833793", "text": "public function setup()\n {\n $this->db->dropTableIfExists('questions')->execute();\n \n $this->db->createTable(\n 'questions',\n [\n 'id' => ['integer', 'primary key', 'not null', 'auto_increment'],\n 'userId' => ['integer', 'not null'],\n 'subject' => ['char(255)'],\n 'text' => ['text'],\n 'created' => ['datetime'],\n 'updated' => ['datetime'],\n 'deleted' => ['datetime'],\n ]\n )->execute();\n\n \n $now = gmdate('Y-m-d H:i:s');\n \n $this->create([\n 'userId' => '1',\n 'subject' => 'Bästa tipsen för perfekt konsistens?',\n 'text' => 'Hej! Jag undrar vilka era bästa tips för en bra, tuggvänlig, icke-torr konsistens är? Vill helst undvika att använda för mycket mjöl och ägg om det är möjligt.',\n 'created' => $now\n ]);\n \n $this->create([\n 'userId' => '2',\n 'subject' => 'Burgare baserade på hirs?',\n 'text' => 'Har hört att hirs, för att inte tala om quinoa, ska vara vädligt nyttig och skulle gärna vilja ha lite tips på bra burgerrecept med dessa ingredienser!',\n 'created' => $now\n ]);\n\n }", "title": "" }, { "docid": "2cb024d1f250366c6f9900f84b2c535b", "score": "0.6823264", "text": "protected function setUp()\n {\n $this->fm = new FileMaker($GLOBALS['DB_FILE'], $GLOBALS['DB_HOST'], $GLOBALS['DB_USER'], $GLOBALS['DB_PASSWD']);\n }", "title": "" }, { "docid": "a12d8b38414ec4ab258fd0ef235d866d", "score": "0.6822795", "text": "public function setUp() {\n\t\tparent::setUp();\n\t\t\n\t\t//TODO: This needs to be replaced with logic that actually is properly testable.\n\t\t//Currently there is no DB mock driver. Not sure if I should create one or just test different drivers\n\t\t$this->db = db(Settings::fromArray(['schema' => 'test_schema']));\n\t\t\n\t\t$this->schema = new Schema('test');\n\t\t\n\t\t$this->schema->field1 = new IntegerField(true);\n\t\t$this->schema->field2 = new StringField(255);\n\t\t\n\t\t$this->table = new Table($this->db, $this->schema);\n\t}", "title": "" }, { "docid": "bc9c28c59108b3a4330eae4bce6e1ec5", "score": "0.6817381", "text": "protected function setUp(): void\n {\n parent::setUp();\n $this->setUpDatabase();\n }", "title": "" }, { "docid": "0e9c1ef38827d68891e307d40fad1987", "score": "0.6816101", "text": "public function Setup() {\n Gdn::Structure()->Table('User')\n ->Column('FlattrUser', 'varchar(32)', TRUE)\n ->Set(FALSE, FALSE);\n }", "title": "" }, { "docid": "6dc175f7a8502e8c64f1e38a2d92d4e4", "score": "0.681351", "text": "public function initDB()\n {\n $version = get_option('datagov_ckan_metrics_db_version', 0);\n switch ($version) {\n /** @noinspection PhpMissingBreakStatementInspection */\n case 0:\n $this->migration1();\n /** @noinspection PhpMissingBreakStatementInspection */\n case 1:\n $this->migration2();\n case 2:\n $this->migration3();\n break;\n }\n }", "title": "" }, { "docid": "d8f6534ba0d69b201d73e635571f213c", "score": "0.68120605", "text": "private function __construct() {\n parent::initDb();\n }", "title": "" }, { "docid": "4dcd904d231dc29166aaceeb1efd8dd1", "score": "0.6807464", "text": "protected function initDatabaseRecord() {}", "title": "" }, { "docid": "580ea218e296a721fbef60c0fed4dee2", "score": "0.6805328", "text": "protected function setUpTestDatabase()\n {\n if (!class_exists('TYPO3\\\\CMS\\\\Core\\\\Database\\\\ConnectionPool')) {\n parent::setUpTestDatabase();\n } else {\n if (method_exists($this->bootstrap, 'initializeTypo3DbGlobal')) {\n $this->bootstrap->initializeTypo3DbGlobal();\n }\n\n $connectionParameters = $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default'];\n $databaseName = $connectionParameters['dbname'];\n unset($connectionParameters['dbname']);\n $schemaManager = DriverManager::getConnection($connectionParameters)->getSchemaManager();\n\n if (in_array($databaseName, $schemaManager->listDatabases(), true)) {\n $schemaManager->dropDatabase($databaseName);\n }\n\n try {\n $schemaManager->createDatabase($databaseName);\n } catch (DBALException $e) {\n $user = $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['user'];\n $host = $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['host'];\n throw new Exception(\n 'Unable to create database with name ' . $databaseName . '. This is probably a permission problem.'\n . ' For this instance this could be fixed executing:'\n . ' GRANT ALL ON `' . substr($databaseName, 0, -10) . '_%`.* TO `' . $user . '`@`' . $host . '`;'\n . ' Original message thrown by database layer: ' . $e->getMessage(),\n 1376579070\n );\n }\n }\n }", "title": "" }, { "docid": "568bbce42dafd18069a13f68dc48e714", "score": "0.6787475", "text": "private function connectToDatabase()\n {\n }", "title": "" }, { "docid": "a4079c280fb20feeb3670d43e3b1cb4d", "score": "0.67873394", "text": "public function installDatabase()\n {\n // method should execute the migrations which will install and/or\n // upgrade the database.\n }", "title": "" }, { "docid": "10fed564169bbda735669297d81f6310", "score": "0.6777636", "text": "public function setUp() :void\n {\n parent::setUp();\n\n $this->prepareDatabase(\n realpath(__DIR__ . '/Supports/Migrations')\n );\n\n $this->faker = app(Generator::class);\n $this->key = \\I18n::getConfig('language_key');\n $this->locale = \\I18n::getLocale();\n\n $this->seedProductCategories();\n $this->seedProducts();\n }", "title": "" }, { "docid": "f1b7bb2f5c08976c789d3e54eacaef47", "score": "0.67744756", "text": "protected function createDatabase()\n {\n $this->files->put($this->databaseFile(), '');\n }", "title": "" }, { "docid": "fb7f16d03a44976ab6c64d3178379138", "score": "0.6771929", "text": "private function setDatabase() {\r\n\r\n\t\t\tglobal $dbh;\r\n\r\n\t\t\tif ($dbh instanceof PDO) {\r\n\t\t\t\t$this->dbh = $dbh;\r\n\t\t\t} else {\r\n\t\t\t\t$Connection = new Connection();\r\n\t\t\t\t$this->dbh = $Connection->PDO_Connection();\r\n\t\t\t}\r\n\r\n\t\t}", "title": "" }, { "docid": "26f47f6e89d231d016853685c6f66571", "score": "0.67686117", "text": "protected function setUp()\n {\n $this->object = new SqlStorage($this->pdo);\n }", "title": "" }, { "docid": "9cc9c37115be31f7192a7436d033457f", "score": "0.6766702", "text": "public function setUp(): void\n {\n parent::setUp();\n\n $this->setUpDatabase();\n $this->migrateTables();\n $this->seedTables();\n }", "title": "" }, { "docid": "1a22926cc4a667d6219a5fa622564e8c", "score": "0.67620534", "text": "public function createDatabase(){\n\t\t\n\t\t$anticorpsModel = new Anticorps();\n\t\t$anticorpsModel->createTable();\n\t\t\n\t\t$isotypeModel = new Isotype();\n\t\t$isotypeModel->createTable();\n\t\t\n\t\t$sourceModel = new Source();\n\t\t$sourceModel->createTable();\n\t\t\n\t\t$especeModel = new Espece();\n\t\t$especeModel->createTable();\n\t\t\n\t\t$tissusModel = new Tissus();\n\t\t$tissusModel->createTable();\n\t\t\n\t\t$protoModel = new AcProtocol();\n\t\t$protoModel->createTable(); \n\t\t\n\t\t$organeModel = new Organe();\n\t\t$organeModel->createTable();\n\t\t\n\t\t$organePrelevement = new Prelevement();\n\t\t$organePrelevement->createTable();\n\t\t\n\t\t$modelStatus = new Status();\n\t\t$modelStatus->createTable();\n\t\t\n\t\t$modelacii = new Acii();\n\t\t$modelacii->createTable();\n\t\t\n\t\t$modelaciinc = new Aciinc();\n\t\t$modelaciinc->createTable();\n\t\t\n\t\t$modelaciinc = new Dem();\n\t\t$modelaciinc->createTable();\n\t\t\n\t\t$modelinc = new Inc();\n\t\t$modelinc->createTable();\n\t\t\n\t\t$modellinker = new Linker();\n\t\t$modellinker->createTable();\n\t\t\n\t\t$model = new Kit();\n\t\t$model->createTable();\n\t\t\n\t\t$model = new Proto();\n\t\t$model->createTable();\n\t\t\n\t\t$model = new Fixative();\n\t\t$model->createTable();\n\t\t\n\t\t$model = new AcOption();\n\t\t$model->createTable();\n\t\t\n\t\t$model = new Enzyme();\n\t\t$model->createTable();\n \n $modelApp = new AcApplication();\n\t\t$modelApp->createTable();\n \n $modelStaining = new AcStaining();\n\t\t$modelStaining->createTable();\n\t\t \n //mkdir(\"/data/antibodies\");\n \n\t\t$message = 'success';\n\t\treturn $message;\n\t}", "title": "" }, { "docid": "a6fbe0ce3f51210cc6859bc8f9fe0e4d", "score": "0.6750178", "text": "public function setUp() {\n\t\t$this->_db->dropSchema('galleries');\n\t\t$schema = new Schema($this->_schema);\n\t\t$this->_db->createSchema('galleries', $schema);\n\t\tforeach ($this->_mockData as $entry) {\n\t\t\t$sql = \"INSERT INTO galleries (name) VALUES ('\" . $entry[1] . \"')\";\n\t\t\t$this->_db->read($sql, ['return' => 'resource']);\n\t\t}\n\t}", "title": "" } ]
2fa86714f1b3616d065c05d96e74d4ae
Devuelve JSON para la datatable
[ { "docid": "746ef4fb0d8b9dc41839a475d442b7f0", "score": "0.0", "text": "public function getGruposCodigosTabla($id) {\n\n\t\t$codigos = Salud::select('pss.codigos.codigo_prestacion', 'descripcion_grupal')\n\t\t\t->join('pss.codigos_grupos', function ($join) use ($id) {\n\t\t\t\t$join->on('pss.codigos_grupos.codigo_prestacion', '=', 'pss.codigos.codigo_prestacion')\n\t\t\t\t\t->where('pss.codigos_grupos.id_grupo_etario', '=', $id);\n\t\t\t})\n\t\t\t->groupBy('pss.codigos.codigo_prestacion');\n\t\treturn Datatables::of($codigos)->make(true);\n\t}", "title": "" } ]
[ { "docid": "b81fed71d08dd7b1da7afed32151544b", "score": "0.7296626", "text": "public function json()\n {\n return json_decode(self::$data->fetchAll(\\PDO::FETCH_ASSOC));\n }", "title": "" }, { "docid": "9120f800418ee6631963977a7e0a5e47", "score": "0.7164644", "text": "public function toJson ()\n {\n \t$return = array ();\n \t\n if (($table = $this->_getTable())) {\n $info = $table->info();\n \n foreach ($info['metadata'] as $name => $fieldMetadata) {\n\t\t\t\t$return[$name] = $this->_data[$name];\n \t\n//\t\t\t\tif ($fieldMetadata['DATA_TYPE']=='timestamp' || $fieldMetadata['DATA_TYPE']=='datetime') {\n//\t\t\t\t\tif (isset($this->_data[$name]))\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif ($this->_data[$name]=='0000-00-00 00:00:00' || $this->_data[$name]==null)\n//\t\t\t\t\t\t\t$this->_data[$name] = null;\n//\t\t\t\t\t\telse {\n//\t\t\t\t\t\t\t$this->_data[$name] = new Zend_Date ($this->_data[$name], Zend_Date::ISO_8601);\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t} elseif ($fieldMetadata['DATA_TYPE']=='date') {\n//\t\t\t\t\tif (isset($this->_data[$name]))\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif ($this->_data[$name]=='0000-00-00' || $this->_data[$name]==null)\n//\t\t\t\t\t\t\t$this->_data[$name] = null;\n//\t\t\t\t\t\telse {\n//\t\t\t\t\t\t\t$this->_data[$name] = new Zend_Date ($this->_data[$name], Zend_Date::ISO_8601);\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t} \n\t\t\t}\n }\n \n return $return;\n }", "title": "" }, { "docid": "67a5567ea53752a48fc8cf29f3cda6be", "score": "0.7031184", "text": "public function get_datatables_conoscenza_json()\r\n {\r\n if (!$this->input->is_ajax_request())\r\n {\r\n exit('No direct script access allowed');\r\n }\r\n $this->load->model('conoscenza_model');\r\n $output = $this->conoscenza_model->datatables_conoscenza();\r\n $this->_render_text($output);\r\n }", "title": "" }, { "docid": "85f2abae5c09dfd95ff3ab3613e22624", "score": "0.700756", "text": "function json_response($data)\n{\n if (is_array($data)) {\n $array = array();\n foreach ($data as $d) {\n $array[] = $d->getColumnas();\n }\n return json_encode($array, JSON_UNESCAPED_UNICODE);\n } else {\n return json_encode($data->getColumnas(), JSON_UNESCAPED_UNICODE);\n }\n}", "title": "" }, { "docid": "799b6054404a8110c56141b978961871", "score": "0.6989955", "text": "public function getJSON(){\r\n\t\t\r\n\t\t/* Array of database columns which should be read and sent back to DataTables. Use a space where\r\n\t\t * you want to insert a non-database field (for example a counter or static image)\r\n\t\t */\r\n\t\t$aColumns = $this->columns;\r\n\t\t\r\n\t\t/* Indexed column (used for fast and accurate table cardinality) */\r\n\t\t$sIndexColumn = $this->id;\r\n\t\t\r\n\t\t/* DB table to use */\r\n\t\t$sTable = $this->table;\r\n\t\t\r\n\t\t/* Database connection information */\r\n\t\t/*$gaSql['user'] = \"\";\r\n\t\t$gaSql['password'] = \"\";\r\n\t\t$gaSql['db'] = \"\";\r\n\t\t$gaSql['server'] = \"localhost\";*/\r\n\t\t\r\n\t\t/* REMOVE THIS LINE (it just includes my SQL connection user/pass) */\r\n\t\t//include( $_SERVER['DOCUMENT_ROOT'].\"/datatables/mysql.php\" );\r\n\t\t\r\n\t\t\r\n\t\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t\t * If you just want to use the basic configuration for DataTables with PHP server-side, there is\r\n\t\t * no need to edit below this line\r\n\t\t */\r\n\t\t\r\n\t\t/* \r\n\t\t * MySQL connection\r\n\t\t */\r\n\t\t/*$gaSql['link'] = mysql_pconnect( $gaSql['server'], $gaSql['user'], $gaSql['password'] ) or\r\n\t\t\tdie( 'Could not open connection to server' );\r\n\t\t\r\n\t\tmysql_select_db( $gaSql['db'], $gaSql['link'] ) or \r\n\t\t\tdie( 'Could not select database '. $gaSql['db'] );*/\r\n\t\t\r\n\t\t\r\n\t\t/* \r\n\t\t * Paging\r\n\t\t */\r\n\t\t$sLimit = \"\";\r\n\t\tif ( isset( $_REQUEST['iDisplayStart'] ) && $_REQUEST['iDisplayLength'] != '-1' )\r\n\t\t{\r\n\t\t\t$sLimit = \"LIMIT \".$this->con->escape( $_REQUEST['iDisplayStart'] ).\", \".\r\n\t\t\t\t$this->con->escape( $_REQUEST['iDisplayLength'] );\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Ordering\r\n\t\t */\r\n\t\t$sOrder = \"\";\r\n\t\tif ( isset( $_REQUEST['iSortCol_0'] ) )\r\n\t\t{\r\n\t\t\t$sOrder = \"ORDER BY \";\r\n\t\t\tfor ( $i=0 ; $i<intval( $_REQUEST['iSortingCols'] ) ; $i++ )\r\n\t\t\t{\r\n\t\t\t\tif ( $_REQUEST[ 'bSortable_'.intval($_REQUEST['iSortCol_'.$i]) ] == \"true\" )\r\n\t\t\t\t{\r\n\t\t\t\t\t$sOrder .= $aColumns[ intval( $_REQUEST['iSortCol_'.$i] ) ].\"\r\n\t\t\t\t\t\t\".$this->con->escape( $_REQUEST['sSortDir_'.$i] ) .\", \";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$sOrder = substr_replace( $sOrder, \"\", -2 );\r\n\t\t\tif ( $sOrder == \"ORDER BY\" )\r\n\t\t\t{\r\n\t\t\t\t$sOrder = \"\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/* \r\n\t\t * Filtering\r\n\t\t * NOTE this does not match the built-in DataTables filtering which does it\r\n\t\t * word by word on any field. It's possible to do here, but concerned about efficiency\r\n\t\t * on very large tables, and MySQL's regex functionality is very limited\r\n\t\t */\r\n\t\t$sWhere = \"\";\r\n\t\tif ( isset($_REQUEST['sSearch']) && $_REQUEST['sSearch'] != \"\" )\r\n\t\t{\r\n\t\t\t$sWhere = \"WHERE (\";\r\n\t\t\tfor ( $i=0 ; $i<count($aColumns) ; $i++ )\r\n\t\t\t{\r\n\t\t\t\t$sWhere .= $aColumns[$i].\" LIKE '%\".$this->con->escape( $_REQUEST['sSearch'] ).\"%' OR \";\r\n\t\t\t}\r\n\t\t\t$sWhere = substr_replace( $sWhere, \"\", -3 );\r\n\t\t\t$sWhere .= ')';\r\n\t\t}\r\n\t\t\r\n\t\t/* Individual column filtering */\r\n\t\t/*for ( $i=0 ; $i<count($aColumns) ; $i++ )\r\n\t\t{\r\n\t\t\tif ( isset($_REQUEST['bSearchable_'.$i]) && $_REQUEST['bSearchable_'.$i] == \"true\" && $_REQUEST['sSearch_'.$i] != '' )\r\n\t\t\t{\r\n\t\t\t\tif ( $sWhere == \"\" )\r\n\t\t\t\t{\r\n\t\t\t\t\t$sWhere = \"WHERE \";\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t$sWhere .= \" AND \";\r\n\t\t\t\t}\r\n\t\t\t\t$sWhere .= $aColumns[$i].\" LIKE '%\".$this->con->escape($_REQUEST['sSearch_'.$i]).\"%' \";\r\n\t\t\t}\r\n\t\t}*/\r\n\t\t\r\n\t\t$rangeSeparator = \"~\";\r\n\t\tif (isset($_REQUEST['sRangeSeparator']))\r\n\t\t\t$rangeSeparator = $_REQUEST['sRangeSeparator'];\r\n\t\t/* Individual column filtering */\r\n\t\tfor ($i = 0; $i < count($aColumns); $i++) {\r\n\t\t\tif ($_REQUEST['bSearchable_' . $i] == \"true\" && $_REQUEST['sSearch_' . $i] != '') {\r\n\t\t\t\tif ($sWhere == \"\") {\r\n\t\t\t\t\t$sWhere = \"WHERE \";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$sWhere .= \" AND \";\r\n\t\t\t\t}\r\n\t\t\t\t$columnFilterValue = $this->con->escape($_REQUEST['sSearch_' . $i]);\r\n\t\t\t\t// check for values range\r\n\t\t\t\tif (!empty($rangeSeparator) && strstr($columnFilterValue, $rangeSeparator)) {\r\n\t\t\t\t\t// get min and max\r\n\t\t\t\t\tpreg_match(\"/(.*)\\~(.*)/\", $columnFilterValue, $columnFilterRangeMatches);\r\n\t\t\t\t\t//try to convert date (can to be a number)\r\n\t\t\t\t\t$columnFilterRangeMatches[1] = displayDate($columnFilterRangeMatches[1]) == '' ? $columnFilterRangeMatches[1] : displayDate($columnFilterRangeMatches[1]);\r\n\t\t\t\t\t$columnFilterRangeMatches[2] = displayDate($columnFilterRangeMatches[2]) == '' ? $columnFilterRangeMatches[2] : displayDate($columnFilterRangeMatches[2]);\r\n\t\t\t\t\t// get filter\r\n\t\t\t\t\tif (empty($columnFilterRangeMatches[1]) && empty($columnFilterRangeMatches[2]))\r\n\t\t\t\t\t\t$sWhere .= \" 0 = 0 \";\r\n\t\t\t\t\telse if (!empty($columnFilterRangeMatches[1]) && !empty($columnFilterRangeMatches[2]))\r\n\t\t\t\t\t\t$sWhere .= $aColumns[$i] . \" BETWEEN '\" . $columnFilterRangeMatches[1] . \"' AND '\" . $columnFilterRangeMatches[2] . \"' \";\r\n\t\t\t\t\telse if (empty($columnFilterRangeMatches[1]) && !empty($columnFilterRangeMatches[2]))\r\n\t\t\t\t\t\t$sWhere .= $aColumns[$i] . \" <= '\" . $columnFilterRangeMatches[2] . \"' \";\r\n\t\t\t\t\telse if (!empty($columnFilterRangeMatches[1]) && empty($columnFilterRangeMatches[2]))\r\n\t\t\t\t\t\t$sWhere .= $aColumns[$i] . \" >= '\" . $columnFilterRangeMatches[1] . \"' \";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif($columnFilterValue != '')\r\n\t\t\t\t\t\t$sWhere .= $aColumns[$i] . \" LIKE '%\" . $columnFilterValue . \"%' \";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\t * SQL queries\r\n\t\t * Get data to display\r\n\t\t */\r\n\t\t$sQuery = \"\r\n\t\t\tSELECT SQL_CALC_FOUND_ROWS {$this->id}, `\".str_replace(\" , \", \" \", implode(\"`, `\", $aColumns)).\"`\r\n\t\t\tFROM $sTable\r\n\t\t\t$sWhere\r\n\t\t\t$sOrder\r\n\t\t\t$sLimit\r\n\t\t\";\r\n\t\t$rResult = $this->con->query( $sQuery );\r\n\t\t\r\n\t\t/* Data set length after filtering */\r\n\t\t$sQuery = \"\r\n\t\t\tSELECT FOUND_ROWS()\r\n\t\t\";\r\n\t\t$rResultFilterTotal = $this->con->query( $sQuery, 1 );\r\n\t\t$aResultFilterTotal = $rResultFilterTotal;\r\n\t\t//$aResultFilterTotal = mysql_fetch_array($rResultFilterTotal);\r\n\t\t$iFilteredTotal = $aResultFilterTotal[0][0];\r\n\t\t\r\n\t\t/* Total data set length */\r\n\t\t$sQuery = \"\r\n\t\t\tSELECT COUNT(\".$sIndexColumn.\")\r\n\t\t\tFROM $sTable\r\n\t\t\";\r\n\t\t$rResultTotal = $this->con->query( $sQuery, 1 );\r\n\t\t$aResultTotal = $rResultTotal;\r\n\t\t//$aResultTotal = mysql_fetch_array($rResultTotal);\r\n\t\t$iTotal = $aResultTotal[0][0];\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Output\r\n\t\t */\r\n\t\t$output = array(\r\n\t\t\t\"sEcho\" => intval($_REQUEST['sEcho']),\r\n\t\r\n\t\t\t\"iTotalRecords\" => $iTotal,\r\n\t\t\t\"iTotalDisplayRecords\" => $iFilteredTotal,\r\n\t\t\t\"aaData\" => array()\r\n\t\t);\r\n\t\t\r\n\t\t//while ( $aRow = mysql_fetch_array( $rResult ) )\r\n\t\tforeach($rResult as $aRow)\r\n\t\t{\r\n\t\t\t$row = array();\r\n\t\t\t// Add the row ID to the object\r\n\t\t\t$row['DT_RowId'] = 'param_'.$aRow[$this->id];\r\n\t\t\tfor ( $i=0 ; $i<count($aColumns) ; $i++ )\r\n\t\t\t{\r\n\t\t\t\tif ( stripos($aColumns[$i],\"date\") !== false )\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Special output formatting for 'version' column */\r\n\t\t\t\t\t$row[] = displayDate($aRow[ $aColumns[$i] ], \"d/m/Y\");\r\n\t\t\t\t}\r\n\t\t\t\telse //if ( $aColumns[$i] != ' ' )\r\n\t\t\t\t{\r\n\t\t\t\t\t/* General output */\r\n\t\t\t\t\t$row[] = $aRow[ $aColumns[$i] ];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$output['aaData'][] = $row;\r\n\t\t}\r\n\t\t\r\n\t\treturn json_encode( $output );\r\n\t}", "title": "" }, { "docid": "8730b6ba5404802c6c17e091171125bd", "score": "0.68583494", "text": "function json_response($data)\n{\n header('Content-Type: application/json');\n if (is_array($data)) {\n $array = array();\n foreach ($data as $d) {\n array_push($array, $d->getColumnas());\n }\n return json_encode($array);\n } else {\n return json_encode($data->getColumnas());\n }\n}", "title": "" }, { "docid": "34a0bcbddbff0b1c7604750eda6f0562", "score": "0.681683", "text": "public function jsonSerialize() {\n $allColumns= Bodies::getValidColumns($this->limitToColumn, $this->excludeColumn);\n\n if ($this->getId()!==null) {\n $result = [];\n\n $j=0; // pour les colonnes\n foreach ($allColumns as $column) {\n switch ($column->getColId()) {\n case \"id\": $result+=array('id' => $this->getId());break;\n case \"name\": $result+=array('name' => $this->getName()); break;\n case \"isPlanet\": $result+=array('isPlanet' => $this->getIsPlanet());break;\n case \"moons\": $result+=array('moons' => 'null');break;\n case \"semimajorAxis\": $result+=array('semimajorAxis' => $this->getSemimajorAxis());break;\n case \"aroundPlanet\": $result+=array('aroundPlanet' => ($this->getAroundPlanet()<>\"\"?array('planet' => $this->getAroundPlanet(), 'rel' => $GLOBALS['API_URL_BODIES'].'/'.$this->getAroundPlanet()):null));break;\n case \"englishName\": $result+=array('englishName' => $this->getEnglishName()); break;\n case \"eccentricity\": $result+=array('eccentricity' => $this->getEccentricity());break;\n case \"discoveredBy\": $result+=array('discoveredBy' => $this->getDiscoveredBy()); break;\n case \"discoveryDate\": $result+=array('discoveryDate' => $this->getDiscoveryDate()); break;\n case \"alternativeName\": $result+=array('alternativeName' => $this->getAlternativeName()); break;\n case \"mass\": $result+=array('mass' => ($this->getMassVal()<>0?array('massValue' => $this->getMassVal(), 'massExponent' => $this->getMassUnit()):null));break;\n case \"vol\": $result+=array('vol' => ($this->getVolVal()<>0?array('volValue' => $this->getVolVal(), 'volExponent' => $this->getVolUnit()):null));break;\n case \"perihelion\": $result+=array('perihelion' => $this->getPerihelion());break;\n case \"aphelion\": $result+=array('aphelion' => $this->getAphelion());break; \n case \"inclination\": $result+=array('inclination' => $this->getInclination());break;\n case \"density\": $result+=array('density' => $this->getDensity());break; \n case \"gravity\": $result+=array('gravity' => $this->getGravity());break; \n case \"escape\": $result+=array('escape' => $this->getEscape());break; \n case \"meanRadius\": $result+=array('meanRadius' => $this->getMeanRadius());break; \n case \"equaRadius\": $result+=array('equaRadius' => $this->getEquaRadius());break;\n case \"polarRadius\": $result+=array('polarRadius' => $this->getPolarRadius());break; \n case \"flattening\": $result+=array('flattening' => $this->getFlattening());break; \n case \"dimension\": $result+=array('dimension' => $this->getDimension());break; \n case \"sideralOrbit\": $result+=array('sideralOrbit' => $this->getSideralOrbit());break;\n case \"sideralRotation\": $result+=array('sideralRotation' => $this->getSideralRotation());break; \n case \"axialTilt\": $result+=array('axialTilt' => $this->getAxialTilt());break;\n case \"avgTemp\": $result+=array('avgTemp' => $this->getAvg_temp());break;\n case \"mainAnomaly\": $result+=array('mainAnomaly' => $this->getMain_anomaly());break;\n case \"argPeriapsis\": $result+=array('argPeriapsis' => $this->getArg_periapsis());break;\n case \"longAscNode\": $result+=array('longAscNode' => $this->getLong_asc_node());break;\n case \"bodyType\": $result+=array('bodyType' => $this->getBodyType());break;\n }\n $j++;\n }\n }else{\n $result = null;\n }\n return $result;\n }", "title": "" }, { "docid": "79db9d94ee5a57159cd0f303c7022bf4", "score": "0.6797275", "text": "public function tableData()\n {\n //\n $types = Type::get();\n\n $jsonFile = fopen($this->controllerName.\".json\", \"w\") or die(\"Unable to open file!\");\n fwrite($jsonFile, json_encode($this->dataTablesData($types)));\n fclose($jsonFile);\n\n return $this->dataTablesData($types);\n }", "title": "" }, { "docid": "7429d74e5be6928c2fc645c7b016a8a8", "score": "0.6769762", "text": "public function data(){\n\t\t\t$rows = $this->Absensi_model->semua()\n\t\t\t\t\t\t\t\t\t\t ->result();\n\n\t\t\t$dataTable['data'] = $rows;\n\t\t\techo json_encode($dataTable);\n\t\t}", "title": "" }, { "docid": "11dab89498e93e243fd33f6bca169636", "score": "0.6692349", "text": "public function saveString(){\n $json = array();\n foreach ($this->tabl_data as $row) {\n $row_array = array();\n for ($i = 0; $i < count($row); $i++) {\n $row_array[$i] = $row[$i];\n }\n array_push($json, (object)$row);\n }\n return json_encode($json);\n }", "title": "" }, { "docid": "457bb832a84a570b006f2545945a26b2", "score": "0.6676942", "text": "function getDatos(){\n $res = $this->Consulta('SELECT * FROM '.$this->Table .' WHERE '.$this->PrimaryKey.' = '.$this->_datos);\n print_r( json_encode( $res[0] ) );\n }", "title": "" }, { "docid": "3aee7a3d15e83d873635ef47bd52b19e", "score": "0.66368866", "text": "function Select_Forjson($sql=\"\")\n {\n \n if(empty($sql))\n {\n return false;\n }\n if(empty($this->objDB))\n {\n return false;\n }\n \n $conn=$this->objDB;\n $data=array();\n \n $count = 0;\n \n $results=$conn->prepare($sql);\n $n= $results->execute();\n \n $number_of_record=$results->fetchAll(PDO::FETCH_ASSOC);\n $data[$count]= $number_of_record;\n \n $count_record=sizeof($number_of_record);\n \n /* foreach ($data as $data1)\n {\n \n }*/\n return json_encode($data); \n }", "title": "" }, { "docid": "a663814da63938eefc168ce1bb8b62c0", "score": "0.6596077", "text": "function get_user_json() { //get product data and encode to be JSON object//percobaan datatable server side\n header('Content-Type: application/json');\n echo $this->User_model->get_all_user();\n }", "title": "" }, { "docid": "c05418b6c632c02746845b40c99b67e0", "score": "0.657195", "text": "public function ajax_get_fields_table()\n {\n\n /** CERTIFICA SE O ACESSO A ESTA FUNCTION REALMENTE ESTÁ SENDO FEITO POR AJAX. */\n bz_check_is_ajax_request();\n\n $_tableName = $this->input->post('table');\n $_fields = $this->db->field_data($_tableName);\n $_rows[] = array();\n $_c = 0;\n\n foreach ($_fields as $_field) {\n\n $_rows[$_c]['field_name'] = $_field->name;\n $_rows[$_c]['field_type'] = $_field->type;\n $_rows[$_c]['field_length'] = $_field->max_length;\n $_rows[$_c]['primary_key'] = $_field->primary_key;\n $_rows[$_c]['csrf_token'] = $this->security->get_csrf_hash();\n\n $_c++;\n }\n\n header(\"Content-type:application/json\");\n echo json_encode($_rows);\n\n exit;\n }", "title": "" }, { "docid": "2383c0c06a8fa12e045962507fe5f80e", "score": "0.65469974", "text": "public function json(){\n \t\treturn json_encode($this->data, JSON_PRETTY_PRINT);\n \t}", "title": "" }, { "docid": "c28084517ec3a80d892d6adb320eca1d", "score": "0.6541612", "text": "function table() {\n header('Content-Type: application/json');\n if (isset($this->PHPRestSQL->output['table'])) {\n\t\t\techo json_encode($this->PHPRestSQL->output['table']); \n }\n }", "title": "" }, { "docid": "a37a9c9917001615e9e915545264eb12", "score": "0.65393007", "text": "public function jsonSerialize () {\n\t\t\treturn array('value' => $this->__toString(), 'id' => $this->strTableKey );\n\t\t}", "title": "" }, { "docid": "afba506802da2dc9f17d086aba6501d4", "score": "0.65291756", "text": "public function getAllJSON(){\n $query=\"SELECT idTarea AS id,descripcion,minutosTrabajados,horasEstimadas,responsable AS nombreResponsable,\n idProyecto,prioridad,finalizada FROM tarea WHERE eliminada = false ORDER BY idTarea ASC \";\n $db = Database::getConnection();\n $resultado = $db -> query($query);\n if($resultado){\n $resultado = $this->sqlToJSON($resultado);\n return $resultado;\n }\n else\n {\n return \"Se produjo un error en la consulta SQL\";\n }\n }", "title": "" }, { "docid": "0993082d25cf0afdbfe3ed71fa000712", "score": "0.6522079", "text": "public function dataJson(): string\n {\n return json_encode($this->dataArray());\n }", "title": "" }, { "docid": "6255c37e0ca7c190db430e0e011cfd52", "score": "0.6462441", "text": "public function get_columns_json($tablename, $columns){\n\t\t$CI =& get_instance();\n\t\t$CI->load->model('Crud_model');\n\t\t$data = $CI->Crud_model->get_columns($tablename, $columns);\n\t\treturn json_encode($data);\n\t}", "title": "" }, { "docid": "7a66b45962185d76aeeadeaefedfb33a", "score": "0.6447777", "text": "public function datatable()\n {\n return \\response()->json(Equipment::all() , 200);\n \n }", "title": "" }, { "docid": "813541ed8c7bbd29b92ad9780505b51b", "score": "0.6423906", "text": "function getData($tablename, $array = false) {\n $config = include('config.php');\n $filename = $tablename . '.json'; // Create the filename from the function parameter\n $data = file_get_contents($config['dataPath'].$filename); // Get contents of the file\n $data = json_decode($data); // Convert the contnets to JOSN\n if($array) { // If the result should be an array\n $dataAsArray = []; // Create empty aray\n foreach ($data as $i => $value) { // loop througt DB object\n if($i != \"primary_key\") // Ignore primary_key\n array_push($dataAsArray, $value); // Add data object to array\n }\n return json_encode($dataAsArray); // Return as string\n } else { // Íf not array\n return $data; // Return the json\n }\n }", "title": "" }, { "docid": "d571cd3d79a41b298356bc6b2b6672a4", "score": "0.64235216", "text": "private function getJsonResponse() {\n $page = $this->options['page'];\n $rows = $this->options['rows'];\n\n // Limitation du total de lignes à maxRows lignes\n $nbLignesDatas = count($this->tabData);\n $this->totalCount = $nbLignesDatas;\n if ($this->options['maxRows'] > 0) {\n if ($nbLignesDatas > $this->options['maxRows']) {\n $this->tabData = array_slice($this->tabData, 0, $this->options['maxRows']);\n $nbLignesDatas = count($this->tabData);\n $this->totalCount = $nbLignesDatas;\n }\n }\n // Calcul page courante / total pages\n $count = $this->getCount();\n if( $page > ceil($count / $rows) ) {\n $page = 1;\n }\n if( $count > 0 ) {\n $totalPages = ceil($count / $rows);\n } else {\n $totalPages = 0;\n }\n if ($page > $totalPages) {\n $page = $totalPages;\n }\n \n // Si on est sur un tableau préfiltré par LIMIT et offset, on prend la totalité des lignes\n if ($this->totalReelCount > 0) {\n $arrRes = $this->tabData;\n } else {\n $start = ($page - 1) * $rows;\n $arrRes = $this->getLimiteIndArray($start, $rows);\n }\n\n if (array_key_exists(\"onFiltrageTermine\", $this->callbacks)) {\n $callback = $this->callbacks[\"onFiltrageTermine\"];\n $callback($arrRes, $this->options['fields']);\n }\n\n $json = new stdClass();\n $json->records = $count;\n $json->page = $page;\n $json->total = $totalPages;\n\n $idxLigne = 0;\n $json->rows = array();\n foreach($arrRes as $row) {\n $json->rows[$idxLigne]['id'] = $this->getRowId($row);\n $json->rows[$idxLigne]['cell'] = $this->getRow($row);\n $idxLigne++;\n }\n\n $retour = json_encode($json);\n return $retour;\n }", "title": "" }, { "docid": "d0dbdabeb5d2bc5aabb0be2e62b0bb04", "score": "0.64054704", "text": "protected function _prepareJsonDataForDBStorage($data){\n if( count($this->jsonFields) > 0){\n foreach($this->jsonFields as $field){\n if( isset($data[$field]) && $this->_isTableField($field) ){\n $data[$field] = json_encode($data[$field]);\n }\n }\n }\n// var_dump($data);\n return $data;\n }", "title": "" }, { "docid": "f68dc4ad13774420a5bbef7892d56563", "score": "0.64019346", "text": "public function toJson();", "title": "" }, { "docid": "f68dc4ad13774420a5bbef7892d56563", "score": "0.64019346", "text": "public function toJson();", "title": "" }, { "docid": "0583db7ba6bfe9d2cc3e7c59e2c7052d", "score": "0.63963085", "text": "function dataGrid(){\r\n $data = self::$indexModel->dataGrid();\r\n echo json_encode($data);\r\n }", "title": "" }, { "docid": "2b0d375384d5d72454fc6f2198b1eb95", "score": "0.639624", "text": "public static function createTableJson($data){\n \n $rawData = explode(\"\\n\",$data);\n\n // var_dump($rawData);\n // echo \"<br>\";\n\n \n $resultArray = array();\n $currentTableName = \"\";\n foreach ($rawData as $key => $value) {\n \t\n \t\n \t\n \t//if the siring exists, add to coloumn\n \tif(preg_match('/\\s/',$value)>0){\n \t\t\n \t\t//is a coloumn name\n \t\t$currentColoumnName = $value;\n \t\t//var_dump(strlen(\"\t\"));\n \t\tif(strlen(ltrim($currentColoumnName))<1){\n\t\t\t\t\n \t\t}else{\n \t\t\t$resultArray[$currentTableName][] = ltrim($currentColoumnName);\n \t\t}\n \t\t\n \t}else{\n \t\t\n \t\t\n\n \t\t// echo $value;\n \t\t// echo \"<br>\";\n \t\t//is a table name\n \t\t$currentTableName = $value;\n \t\t$resultArray[$currentTableName] = array();\n \t\t\n \t\t\n\n \t\t\n \t}\n\n }\n\n return json_encode($resultArray);\n}", "title": "" }, { "docid": "663498f990e787093c2c4c1f98617a14", "score": "0.63955754", "text": "public function getListaGaleriaJson()\n {\n \t$galeria = new \\App\\tb_galeria();\n \treturn $galeria->getDtGaleria();\n \t\t\n }", "title": "" }, { "docid": "df1f7ee179842d8b3d2b9908f250affd", "score": "0.63900584", "text": "function json_writ($row) {\n\t $json_arr = array();\n\n\t $json_arr[0] = 'id:\"' . $row[0] . '\"';\n\t $json_arr[1] = 'date:\"' . parse_date($row[2]) . '\"';\n\t $json_arr[2] = 'time:\"' . parse_time($row[2]) . '\"';\n\t $json_arr[3] = 'title:\"' .$row[3] . '\"'; // stripslashes when rendering\n\t $json_arr[4] = 'text:\"' . $row[4] . '\"'; // nl2p_or_br and stripslashes when rendering\n\t $tags = implode(',',rtrv_tags($row[0]));\n\t if ($tags) {\n\t $json_arr[5] = 'tags:[' . $tags . ']';\n\t }\n\n\t $json = implode(',',$json_arr);\n\n\t return $json;\n}", "title": "" }, { "docid": "8c14b7d66eb95ae62444db75f488dc7c", "score": "0.6365629", "text": "function json_data_report(){\n\t\theader('Content-Type: application/json');\n\t\techo $this->M_admin->json_data_report();\n\t}", "title": "" }, { "docid": "3355971f8958f7b9e887cccf0ebfeb30", "score": "0.6362231", "text": "function convertirConsultaJSON($resultado): array{\n\n $json = array();\n while($row = mysqli_fetch_array($resultado)){\n\n $json[] = array \n (\n \"titulo\" => $row [\"titulo\"],\n \"descripcion\" => $row [\"descripcion\"],\n \"vacantes\" => $row [\"vacantes\"],\n \"sueldo\" => $row [\"sueldo\"],\n \"publicacion\" => $row [\"publicacion\"],\n \"id\" => $row [\"idpropuesta\"],\n \"idempresa\" => $row[\"idempresa\"],\n \"categoria\" => $row[\"categoria\"],\n \"pais\" => $row[\"paisnombre\"]\n );\n\n }\n\n return $json;\n}", "title": "" }, { "docid": "2fbd0ece079b7b138bcbd3bbffc77c1f", "score": "0.6345838", "text": "public function jsonPerusahaan()\n {\n header('Content-Type: application/json');\n\n echo $this->Dashboard->json(\n '*',\n 'tbl_perusahaan'\n );\n }", "title": "" }, { "docid": "83846e6f6d1b4a31c9ea208bebe52980", "score": "0.6329463", "text": "public function actionData(){\n \n //Columnas a consultar\n $columns = array(\n array( 'db' => 'sede_id', 'dt' => 0 ),\n array( 'db' => 'sede_nombre', 'dt' => 1 ),\n array( 'db' => 'dpto_id', 'dt' => 2,\n 'formatter' => function( $d, $row ) {\n return \\app\\models\\Departamentos::find()->where('dptos_id = '.$d)->one()->dptos_name;\n }\n ),\n array( 'db' => 'muni_id', 'dt' => 3,\n 'formatter' => function( $d, $row ) {\n return \\app\\models\\Municipios::find()->where('municipios_id = '.$d)->one()->municipios_name;\n }\n ),\n array(\n 'db' => 'sede_estado',\n 'dt' => 4,\n 'formatter' => function( $d, $row ) {\n if($d == ESTADO_ACTIVO){\n $r = \"<strong><font color='green'>\".Yii::t(\"app\", \"ACTIVO\").\"</font></strong>\";\n return $r;\n } else if($d == ESTADO_INACTIVO){\n return \"<strong><font color='red'>\".Yii::t(\"app\", \"INACTIVO\").\"</font></strong>\";\n }\n }\n ),\n );\n \n //Indice\n $primaryKey = \"sede_id\";\n \n //Tabla\n $table = \"sede\";\n \n \n echo json_encode(\n datatables::simple( $_GET,$table, $primaryKey, $columns )\n );\n\n }", "title": "" }, { "docid": "09cb1067a9e0e377e18b151b4438268b", "score": "0.6327139", "text": "public function toJSON(){\n $jsondata = array();\n $jsondata[\"idArticulo\"]=$this->getIdArticulo();\n $jsondata[\"nombre\"]=$this->getNombre();\n $jsondata[\"precio\"]=$this->getPrecio();\n $jsondata[\"stock\"]=$this->getStock();\n $jsondata[\"abreviatura\"]=$this->getAbreviatura();\n \n return $jsondata;\n }", "title": "" }, { "docid": "02f4b4fd4d18e91dfed6793982b13c88", "score": "0.6306929", "text": "function getData()\n\t{\n\t\t$grid = $this->jqdatagrid;\n\n\t\t// CREA EL WHERE PARA LA BUSQUEDA EN EL ENCABEZADO\n\t\t$mWHERE = $grid->geneTopWhere('unidad');\n\n\t\t$response = $grid->getData('unidad', array(array()), array(), false, $mWHERE, 'unidades' );\n\t\t$rs = $grid->jsonresult( $response);\n\t\techo $rs;\n\t}", "title": "" }, { "docid": "3c13d3a72365e8a34a6411a97c4c4985", "score": "0.63040376", "text": "function list_data(){\r\n $list_data = $this->LegalDocumentTypesModel->getTypes()->result();\r\n $result = [];\r\n foreach ($list_data as $key=>$data) {\r\n $result[] = $this->_make_row($data,$key);\r\n }\r\n echo json_encode(array(\"data\" => $result));\r\n }", "title": "" }, { "docid": "c7b2e150c36119f1e4bf39a57b7940f1", "score": "0.62971705", "text": "public function jsonPerizinan()\n {\n header('Content-Type: application/json');\n\n echo $this->Dashboard->json(\n '*',\n 'tbl_perizinan'\n );\n }", "title": "" }, { "docid": "bc646a6b03e3d011917d92f53573f053", "score": "0.6248873", "text": "public function obtenerJSON(): string{\n\n $json = convertirConsultaJSON($this->consultarPostulaciones());\n\n $json[] = Array('paginas' => $this->obtenerNumeroDePaginas());\n $jsonString = json_encode($json);\n //echo json_last_error_msg();\n return $jsonString;\n }", "title": "" }, { "docid": "bc646a6b03e3d011917d92f53573f053", "score": "0.6248873", "text": "public function obtenerJSON(): string{\n\n $json = convertirConsultaJSON($this->consultarPostulaciones());\n\n $json[] = Array('paginas' => $this->obtenerNumeroDePaginas());\n $jsonString = json_encode($json);\n //echo json_last_error_msg();\n return $jsonString;\n }", "title": "" }, { "docid": "68a4d82c0e65fd995402af1296baadf7", "score": "0.6240231", "text": "public function getFormsJSON($tableName){\n\t\t$query=$this->db->query(\"SELECT table_name, JSON_OBJECT( 'fields',fields, 'link_buttons',link_buttons) form_data FROM form_2_table WHERE table_name in ($tableName) \");\n\t\t$res=[];\n\t\tforeach ($query->getResult() as $row)\n\t\t{\n\t\t\t//$obj=(object)array($row['table_name']=>$row['form_data']);\n\t\t\t$res[$row->table_name]=$row->form_data;\n\t\t}\n\t\treturn $res;\n\t}", "title": "" }, { "docid": "aff3a1aa587bc45447502a5cc4a28686", "score": "0.62220526", "text": "function json(){\n return json_encode($this->get());\n }", "title": "" }, { "docid": "427ef730509b7fd889029da481609612", "score": "0.6213667", "text": "public function dataJabfungref(){\n $q = \"SELECT * FROM PERS_MASTER_KOJABF\";\n $rs = $this->db->query($q)->result();\n\n // return the result in json\n return $rs;\n }", "title": "" }, { "docid": "072306ba91f626e7e16f357308db788d", "score": "0.6150763", "text": "public function getPropertiesJson()\n\t{\n\t\t\n\t\t$dtFilter\t\t=\tgetdataTableFilter();\n\t\t\n\t\t$propertyObj \t= \tnew Property();\n\t\t$properties \t= \t$propertyObj->getPropertiesDetails($dtFilter);\n\t\t$dtData \t\t= \tarray( 'recordsTotal'=>$properties['total_rows'], 'recordsFiltered'=>$properties['total_rows'], 'data'=>array());\n\t\t\n\t\tif($properties['total_rows'] > 0){\n\t\t\tforeach($properties['properties'] as $property){\n\t\t\t\t$dtData['data'][] = array($property->property,\n\t\t\t\t\t\t\t\t\t\t $property->property_options,\n\t\t\t\t\t\t\t\t\t\t '<a href=\"javascript:void(0);\" class=\"lnkPropertyEdit\" rel=\"'.admin_url().'/properties/edit/'.$property->property_id.'\"><small class=\"badge bg-aqua\"><i class=\"fa fa-pencil\"></i> Edit</small></a> \n\t\t\t\t\t\t\t\t\t\t <a href=\"javascript:void(0);\" class=\"lnkPropertyDelete\" rel=\"'.admin_url().'/properties/delete/'.$property->property_id.'\"><small class=\"badge bg-aqua\"><i class=\"fa fa-trash\"></i> Delete</small></a>');\n\t\t\t}\n\t\t}\n\t\t\n\t\techo json_encode($dtData);\n\t\texit;\n\t}", "title": "" }, { "docid": "48e393886f782de25d0261e0bda4dec4", "score": "0.6145545", "text": "public function jsonSerialize() : array\n {\n return array_values($this->columns);\n }", "title": "" }, { "docid": "c753805b722eb7a7c7cfcfeb571cc604", "score": "0.61403704", "text": "public function fetchDataForCsv() {\n\t\t$search = json_decode(file_get_contents('php://input'),true);\n\t\t$result = $this->User->getTableRecord( $search['tableName'],$search['primaryId'] );\n\t\t\n\t\t$keys = '';\n\t\t$values = '';\n\t\t\n\t\tforeach( $result as $key => $value ) {\n\t\t\t$keyvalue = $this->replaceUnderScore( $key );\n\t\t\t$keys .= $keyvalue.\",\";\n\t\t\t$value = str_replace(',',' ',$value);\n\t\t\t$value = str_replace(',',' ',$value);\n\t\t\t$value = str_replace(',',' ',$value);\n\t\t\t//~ $value = preg_replace('/\\,/',' ',$value);\n\t\t\t$values .= $value.\",\";\n\t\t}\n\t\t\n\t\t$data['keys'] = rtrim($keys,',');\n\t\t$data['values'] = rtrim($values,',');\n\t\t\n\t\techo json_encode($data);\n\t}", "title": "" }, { "docid": "bde03acd2e12177676e0e758534fe33e", "score": "0.6133982", "text": "public function to_json() {\n\n\t\treturn json_encode( $this->_get_data() );\n\t}", "title": "" }, { "docid": "77c0edc3cbbdf890461b485b1a23c8ff", "score": "0.61245173", "text": "function tableJson($array, $rownum, $id, $start=\"0\", $limit=\"20\") {\n\n $rows = sizeof($array) > 0 ? json_encode($array) : \"[]\";\n $result = sprintf(\"{ 'results' : %s, 'id' : '%s', 'start': %s, 'limit': %s, 'rows' : %s }\", \n $rownum, $id[0], $start, $limit, $rows);\n \n return $result;\n}", "title": "" }, { "docid": "fabe1c0d1584a7ad8a894af7def46b77", "score": "0.61145794", "text": "function getListJson()\n\n {\n\n $select = [\n '*'\n ];\n\n //Condition Processes Start Here\n\n $where = null;\n //Condition base on delivery from supplier status\n\n $estatus = $this->input->post('param[IsActive]');\n if($estatus == 'Active'){\n $where = 'IsActive = 1';\n }\n elseif($estatus == 'Not Active'){\n $where = 'IsActive = 0';\n }\n else {\n $where = null;\n }\n\n //Condition base on filter\n\n //End of the Condition\n\n //Joined Related Table\n\n $join = null;\n\n $columnSearch = [\n 'PackageName',\n ];\n\n //Execute the statement above here\n\n $output = array(\n \"draw\" => $this->input->post('draw'),\n \"recordsTotal\" => $this->p->count_all(),\n \"recordsFiltered\" => $this->p->count_filtered($select,$join,$where,null,null,$columnSearch),\n \"data\" => $this->p->get_datatables($select,$join,$where,null,null,$columnSearch),\n //\"query\" => $this->db->last_query()//for testing\n );\n\n echo json_encode($output);\n }", "title": "" }, { "docid": "5e40b1f8abb196d3daa9f74cdbfcb6e6", "score": "0.6110694", "text": "public function populate_data(){\n\t\t$result=mysqli_query($this->conn,\"select * from student_details\");\n\t\twhile($row=mysqli_fetch_assoc($result)){\n\t\t$table_data[]= array(\"id\"=>$row['id'],\"f_name\"=>$row['f_name'],\"l_name\"=>$row['l_name'],\"address\"=>$row['address'],\"gender\"=>$row['gender']);\n\t\t}\n\t\techo json_encode($table_data);\t\n\t}", "title": "" }, { "docid": "7bedf0de02d1b0cad20067053d9e308f", "score": "0.61071223", "text": "public function list(){\r\n $this->query = \"SELECT * FROM cliente;\";\r\n $this->get_query();\r\n return json_encode($this->rows);\r\n }", "title": "" }, { "docid": "ab4aa9c5222a2086aa10cabe6aaa580b", "score": "0.61067003", "text": "public function getData()\n {\n $clients = Client::all()->where('active', 1);\n return DataTables::of($clients)\n ->addColumn('action', function($clients){\n return '<button class=\"btn btn-sm btn-outline-warning edit\" id=\"'.$clients->id.'\"><i class=\"fas fa-edit\"></i></button> \n <button class=\"btn btn-sm btn-outline-danger delete\" id=\"'.$clients->id.'\"><i class=\"fas fa-trash\"></i></button>\n <a class=\"btn btn-sm btn-outline-purple add_obs\" id=\"'.$clients->id.'\"><i class=\"fas fa-plus\">Observacion</i></a>';\n })\n ->toJson();\n }", "title": "" }, { "docid": "527fdb262d47051f47a43e1bb238ba32", "score": "0.610572", "text": "function buildContent()\r\n {\r\n if( !is_null($this->data) ) // to avoid warnings on foreach\r\n {\r\n foreach ($this->data as &$row) {\r\n // Use only column values from each row (makes every index numeric)\r\n // This makes sure a js array is created, if named keys are used\r\n // json_encode will create a js object instead.\r\n $row = array_values($row);\r\n }\r\n }\r\n return json_encode($this->data);\r\n }", "title": "" }, { "docid": "7d7b3190b245a8fb9ca180ff46c6900b", "score": "0.6105354", "text": "public static function resultJson();", "title": "" }, { "docid": "810798bfa60caa4c018464f64aa1561c", "score": "0.6104586", "text": "public static function dataTablesColumns(){\n\n $columns = [\n [\n 'field' => 'nome',\n 'title' => 'Nome',\n 'width' => 210\n ],\n [\n 'field' => 'uri',\n 'title' => 'uri',\n 'width' => 270\n ],[\n 'field' => 'controller',\n 'title' => 'controller',\n 'width' => 270\n ],[\n 'field' => 'action',\n 'title' => 'action',\n ],[\n 'field' => 'method',\n 'title' => 'method',\n ],[\n 'field' => 'middleware',\n 'title' => 'middleware',\n ],[\n 'field' => 'created_at',\n 'title' => 'Criado em',\n ],\n\n ];\n\n return response()->json($columns);\n }", "title": "" }, { "docid": "c404101584a2bf555e148bb3169dd797", "score": "0.6099544", "text": "public function datatable()\n {\n return \\response()->json(Corporate::all(), 200);\n }", "title": "" }, { "docid": "405f4fd29fff1d3df8bc7e6fdccbc16e", "score": "0.6099123", "text": "function row() {\n header('Content-Type: application/json');\n if (isset($this->PHPRestSQL->output['row'])) {\n\t\t\techo json_encode($this->PHPRestSQL->output['row']);\n }\n }", "title": "" }, { "docid": "0bcdb65d66e21ca9f4699a70fbf2b735", "score": "0.6098717", "text": "function get_service(){\n global $db;\n \n $query = \"SELECT services.serv_id, services.serv_type, services.serv_price, services.serv_img FROM services\";\n $result = $db->query($query);\n \n echo json_encode($result->fetchAll());\n\n}", "title": "" }, { "docid": "2885567a7612ac5855a49358ee3ebf0c", "score": "0.60810214", "text": "public function montar_JSON() {\n $datos_cabecera = $this->cabecera;\n $datos_paquetes = $this->paquetes;\n $datos_usuario = $this->datos_usuario;\n\n $array_paquetes_datos = array();\n //Construimos los paquetes\n foreach ($datos_paquetes as $paquete) {\n $array_paquetes_datos['shipment']['parcels'][] = $paquete->get_paquete();\n }\n//Añadimos el origen y destino del paquete con los datos del usuario uniendolos en el array de paquetes\n $array_paquetes_datos['shipment']['ship_from'] = $datos_usuario['ship_from'];\n $array_paquetes_datos['shipment']['ship_to'] = $datos_usuario['ship_to'];\n\n\n $json = array_merge(\n $datos_cabecera, $array_paquetes_datos\n );\n \n return json_encode($json, JSON_UNESCAPED_UNICODE);\n }", "title": "" }, { "docid": "daad29ce5b9394e0e2abdd9380e7a71b", "score": "0.6068297", "text": "public function json() {\n\t\t$json = parent::json();\n\n\t\t$json['id'] = $this->id;\n\t\t$json['link'] = $this->get_link();\n\t\t$json['value'] = $this->value();\n\t\t$json['choices'] = $this->choices;\n\t\t$json['fields'] = $this->get_fields();\n\t\t$json['rowLabel'] = $this->get_row_label();\n\t\t$json['save_as_meta'] = $this->save_as_meta;\n\t\t$json['buttonLabel'] = ( isset( $this->button_label ) ) ? $this->button_label : __( 'Add', 'epsilon-framework' );\n\t\t$json['default'] = ( isset( $this->default ) ) ? $this->default : $this->setting->default;\n\n\t\treturn $json;\n\t}", "title": "" }, { "docid": "af78211ee1e0530e6d0925eb6ad2937f", "score": "0.60636914", "text": "public function datatable();", "title": "" }, { "docid": "b56f677b95e62f24f6d5ec99449571af", "score": "0.60626334", "text": "public function datatable()\n {\n $client = Client::orderBy('id');\n $client = $client->get()->map(function (Client $client) {\n return array_merge($client->toArray(), [\n 'edit_url' => route('client.edit', [\n 'id' => $client->id,\n ]),\n 'delete_url' => route('client.destroy', [\n 'id' => $client->id,\n ]),\n 'mascota_url' => route('mascota.list', [\n 'client' => $client->id,\n ]),\n\n ]);\n });\n return datatables()->of($client->toArray())->toJson();\n }", "title": "" }, { "docid": "0e12a3b914f2bc513bab2ebb3dbed886", "score": "0.6058374", "text": "public function test()\n {\n // echo json_encode($tablo);\n\n $tablo = ['prenom' => 'Guillaume', 'nom' => 'DURAND'];\n echo json_encode($tablo);\n }", "title": "" }, { "docid": "7d9e4e88768991422d920496121e0d64", "score": "0.60488445", "text": "function list_data() {\n \n\n $list_data = $this->Master_Vendors_model->get_details()->result();\n $result = array();\n foreach ($list_data as $data) {\n $result[] = $this->_make_row($data);\n }\n echo json_encode(array(\"data\" => $result));\n }", "title": "" }, { "docid": "d4fe38376b099d8ebae59f5743aa53dd", "score": "0.6042334", "text": "public function toJson() {\n return json_encode($this->data);\n }", "title": "" }, { "docid": "f010c78b1443ceb45b5fa3a3e67b585a", "score": "0.60397613", "text": "public function returnAsDataTablesJson($request, $data, $records_filtered = null, $total_amount = null) \n {\n $content_arr = array(\n 'draw' => $request->get('draw'),\n // Cheating.\n 'recordsTotal' => $total_amount != null ? $total_amount : count($data),\n 'recordsFiltered' => $records_filtered != null ? $records_filtered : count($data),\n 'data' => $data\n );\n $content = $this->_serialize($content_arr, 'json');\n $headers = array();\n\n if ($request->get('callback')) { \n $headers[\"Content-Type\"] = \"application/javascript\";\n $content = $request->get('callback') . \"(\" . $content . \");\";\n } else {\n $headers[\"Content-Type\"] = \"application/json\";\n }\n $response = new Response($content, 200, $headers);\n return $response;\n }", "title": "" }, { "docid": "19aff7eebd56ed49d9bd731f1f0d89d7", "score": "0.6039519", "text": "public function load(){\n $query = new StdClass();\n $query->sql = \"SELECT v.*, c.confinamento, cl.nome as cliente_nome, cl.razao_social as cliente_razao_social FROM vendas v INNER JOIN confinamentos c ON v.confinamento_id = c.id INNER JOIN clientes cl ON v.cliente_id = cl.id \";\n $query->limit = true;\n $query->order = true;\n\n $data = $this->fetchAll($query);\n\n $result = $data;\n\n echo json_encode($result);\n }", "title": "" }, { "docid": "4dadee6f7ab5a94403a73515986502e6", "score": "0.6035799", "text": "public function to_json() {\n parent::to_json();\n }", "title": "" }, { "docid": "53d98c4deb818cf1c78a1088efffb75d", "score": "0.60357815", "text": "public function selectData()\n {\n \t$this->conectar();\n \tif ($resultado = $this->conexion->query(\"SELECT * FROM NODOS\")) {\n\t\t $contador = 0;\n\t\t while($row = $resultado->fetch_assoc()) {\n\t\t\t $nodos[$contador]['padre'] = $row['padre'];\n\t\t\t $nodos[$contador]['hijo'] = $row['hijo'];\n\t\t\t $contador++;\n\t\t\t}\n\t\t return json_encode($nodos);\n\t\t $resultado->close();\n\t\t}\n\n\n }", "title": "" }, { "docid": "d49446a28b959498a6e400ca45841fd2", "score": "0.6032819", "text": "public function json() {\n\t\t$data = parent::json();\n\n\t\t$data['maxYear'] = intval( $this->max_year );\n\t\t$data['minYear'] = intval( $this->min_year );\n\t\t$data['allowPastDate'] = (bool) $this->allow_past_date;\n\t\t$data['twelveHourFormat'] = (bool) $this->twelve_hour_format;\n\t\t$data['includeTime'] = (bool) $this->include_time;\n\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "242cc6ae3ec9d16ffc5b7c37fa444d3b", "score": "0.6024087", "text": "public function getContactsForDataTables(): JsonResponse;", "title": "" }, { "docid": "57b3ab02c4cda117e8ff72098693d3f7", "score": "0.60183376", "text": "public function get_employees_json(){\n $result_list='';\n $employees=User::get();\n $total_count=$employees->count();\n foreach($employees as $row)\n {\n $result_list .= '\n \n \n <tr class=\"tr\">\n <a class=\"'.$row->id.' \" href=\"'.env('APP_URL').'/admin/full_info/'.$row->id.' \" id=\".'.$row->id.'.\">\n\n <td><a href=\"'.env('APP_URL').'/admin/full_info/'.$row->id.' \" id=\".'.$row->id.'.\">'.$row->employee_number.'</a></td>\n\n <td><a href=\"'.env('APP_URL').'/admin/full_info/'.$row->id.' \" id=\".'.$row->id.'.\">'.$row->first_name.'</a></td>\n <td><a href=\"'.env('APP_URL').'/admin/full_info/'.$row->id.' \" id=\".'.$row->id.'.\">'.$row->mobile_number.'</a></td>\n </a>\n </tr>\n </a>\n \n ';\n }\n\n $data = array(\n 'table_data' => $result_list,\n 'total_data' => $total_count,\n );\n echo json_encode($data);\n }", "title": "" }, { "docid": "a3202de398c74a2d7ef06351993c5d18", "score": "0.60156125", "text": "function tableJsonSimple(array $array, int $rownum, array $id, $start=\"0\", $limit=\"20\") {\n //print_r($array); die();\n $rows = sizeof($array) > 0 ? json_encode($array) : \"[]\"; \n $result = sprintf(\"{ 'results' : %s, id : '%s', 'start': %s, 'limit': %s, 'rows' : %s }\", \n $rownum, $id[0], $start, $limit, $rows);\n return $result;\n}", "title": "" }, { "docid": "a2650ba446a5f11cfac8918a1759415c", "score": "0.6015355", "text": "abstract public function toJson ();", "title": "" }, { "docid": "32876f99ff1828c724387a94e316d5c6", "score": "0.5986939", "text": "public function json ()\n {\n //TODO\n }", "title": "" }, { "docid": "54d9f3f8a6b8ee47c7b1b29c059a473b", "score": "0.5974605", "text": "public function jsonSerialize()\r\n {\r\n $json = array();\r\n $json['data'] = $this->data;\r\n $json['total'] = $this->total;\r\n\r\n return $json;\r\n }", "title": "" }, { "docid": "f439d85426bffdfe6c172324100f70aa", "score": "0.59732205", "text": "public function indexjson($spb_id)\n {\n return datatables(Item::selectRaw('items.*, weight*bale as total_weight, CONCAT_WS(\\'x\\',length,width,height) as dimension, cast(length*width*height*bale as decimal(10,3))/1000000 as volume')\n ->where('spb_id',$spb_id)\n )->toJson();\n }", "title": "" }, { "docid": "beb66cae8e48be71de66f5b1b98f660b", "score": "0.59725064", "text": "public function jsonSerialize();", "title": "" }, { "docid": "beb66cae8e48be71de66f5b1b98f660b", "score": "0.59725064", "text": "public function jsonSerialize();", "title": "" }, { "docid": "beb66cae8e48be71de66f5b1b98f660b", "score": "0.59725064", "text": "public function jsonSerialize();", "title": "" }, { "docid": "905762e402de854b7a0307849147fce7", "score": "0.59682006", "text": "public function toJson()\n {\n return json_encode($this->data, true);\n }", "title": "" }, { "docid": "4b3037369f36e5282daf5c0fb6a3b547", "score": "0.59632033", "text": "function asJSON(){\n\t\t\treturn json_encode($this->asArray());\n\t\t}", "title": "" }, { "docid": "4b3037369f36e5282daf5c0fb6a3b547", "score": "0.59632033", "text": "function asJSON(){\n\t\t\treturn json_encode($this->asArray());\n\t\t}", "title": "" }, { "docid": "76e8abfc5a233107696df6f7f5abd351", "score": "0.5960039", "text": "function tampilproduk(){\n\t\t$data=$this->mProduk->tampilproduk()->result();\n\t\tforeach ($data as $dt ) {\n\t\t\t$result[]=$dt;\n\t\t}\n\t\tprint(json_encode($result));\n}", "title": "" }, { "docid": "cf92839a8ed9ba5f3b28851b0cf32c85", "score": "0.59552646", "text": "public function json($name=\"\",$table=\"\",$data=[],$count=1)\n {\n if(empty($data)) { return; }\n if(empty($name)) { $name=$table; }\n $output=json_encode($data);\n // Output\n header('Content-type: application/json');\n header('Content-Disposition: inline; filename=\"'.strtolower($name).'.json\"');\n echo $output;exit;\n }", "title": "" }, { "docid": "b0e3fc970851e6270c45304b8eb23927", "score": "0.5954065", "text": "public function datatable()\n {\n $p = $this->getPermission('vehicleOut');\n $data = VehicleOut::with('Vehicle')->get();\n if(isset($p))\n foreach($data as $d)\n $d['p'] = array('a'=>false && $p->u,'e'=>$p->u,'d'=>$p->d);\n return datatables()->of($data)->toJson();\n }", "title": "" }, { "docid": "cb0ad8f5130f1feecf3d862333675bb6", "score": "0.594527", "text": "public function jsonTable($tabella,$quote)\r\n {\r\n\r\n $condizione='a.id_map='.$quote[0];\r\n\r\n foreach($quote as $k=>$stringa)\r\n {\r\n if ($k < 1) continue;\r\n $condizione=$condizione.' OR '.'a.id_map='.$stringa;\r\n }\r\n\r\n $repository = $this->getDoctrine()->getRepository('AppBundle:'.$tabella);\r\n $qb=$repository->createQueryBuilder('a')\r\n ->where($condizione);\r\n // ->select('id', 'name')\r\n\r\n $query=$qb->getQuery();\r\n $result=$query->getArrayResult();\r\n return $result;\r\n }", "title": "" }, { "docid": "ba00212d301b27542d67286d9b961a0c", "score": "0.593891", "text": "function getJson(){\n\t\t$this->getRecordset();\n\t\t$this->beforeGetData();\n\t\t$this->getData();\n\t\t$this->afterGetData();\n\t\t$this->beforeOutput();\n\t\t//$this->data->dbg = $_SESSION['pAppDbg'];\n\t\t$this->outJson();\n\t}", "title": "" }, { "docid": "ddd4d5dad2698eca7a7e6a0b115cfdfb", "score": "0.59228235", "text": "public function deptjson() {\n\n\t\t\t$draw = $this->input->get('draw');\n\t\t\t$start = $this->input->get('start');\n\t\t\t$length = $this->input->get('length');\n\t\t\t$search = $this->input->get('searchValue');\n\n\n\t\t\t$data = array(\n\t\t\t\"draw\" => $draw,\n\t\t\t\"recordsTotal\" => $this->department_model->getDepartment(null,null,null)->num_rows(),\n\t\t\t\"recordsFiltered\" => $this->department_model->getDepartment(null,null,null)->num_rows(),\n\t\t\t\"data\" => $this->department_model->getDepartment($start,$length,$search)->result()\n\t\t);\n\t\techo json_encode($data);\n\t}", "title": "" }, { "docid": "5b90abc8c40687e1c1c13d82ae3c094f", "score": "0.59193426", "text": "public function dataTables()\n {\n $data = DocumentService::dataTables(\\Request::all());\n return response()->json($data);\n }", "title": "" }, { "docid": "1726b04900131ef11b0286f0731e51ef", "score": "0.5916251", "text": "public function jsonPengajuan()\n {\n header('Content-Type: application/json');\n\n $join = array(\n ['tbl_perizinan', 'tbl_pengajuan.id_perizinan=tbl_perizinan.id_perizinan', 'LEFT'],\n ['tbl_perusahaan', 'tbl_pengajuan.id_perusahaan=tbl_perusahaan.id_perusahaan', 'LEFT'],\n ['tbl_status', 'tbl_pengajuan.id_status=tbl_status.id_status', 'LEFT']\n );\n echo $this->Dashboard->jsonGlobalJoin(\n '\n tbl_pengajuan.*,\n tbl_perizinan.nama_perizinan AS nama_perizinan,\n tbl_perusahaan.nama_perusahaan AS nama_perusahaan,\n tbl_status.keterangan AS keterangan\n ',\n 'tbl_pengajuan',\n $join\n );\n }", "title": "" }, { "docid": "d20cac8731bc992c157c4cafa6f6e396", "score": "0.5914315", "text": "public function listagemTreinamentosMembroJSON(){\n return json_encode($this->selectTreinamentosMembro());\n }", "title": "" }, { "docid": "3c9bffc8a355f6b8e5885d41830302e0", "score": "0.5913344", "text": "public function get_departments_json(){\n $result_list='';\n $departments=Department::get();\n $total_count=$departments->count();\n foreach($departments as $row)\n {\n\n $result_list .= '\n \n \n <tr>\n <a class=\"'.$row->id.' \" href=\"'.env('APP_URL').'/admin//department_edit/'.$row->id.' \" id=\".'.$row->id.'.\">\n\n <td><a href=\"'.env('APP_URL').'/admin/department_edit/'.$row->id.' \" id=\".'.$row->id.'.\">'.$row->id.'</a></td>\n\n <td><a href=\"'.env('APP_URL').'/admin/department_edit/'.$row->id.' \" id=\".'.$row->id.'.\">'.$row->department_name.'</a></td>\n <td><a href=\"'.env('APP_URL').'/admin/department_edit/'.$row->id.' \" id=\".'.$row->id.'.\">'.$row->employees->count().'</a></td>\n </a>\n </tr>\n </a>\n ';\n }\n\n $data = array(\n 'table_data' => $result_list,\n 'total_data' => $total_count,\n );\n\n\n echo json_encode($data);\n }", "title": "" }, { "docid": "2bbc22f6ced0b30d17083f194ac92746", "score": "0.59132653", "text": "public function json() {\n\t\t$json = parent::json();\n\n\t\t$json['id'] = $this->id;\n\t\t$json['link'] = $this->get_link();\n\t\t$json['value'] = $this->value();\n\t\t$json['default'] = $this->setting->default;\n\t\t$json['mode'] = '' !== $this->mode ? $this->mode : 'hex';\n\t\t$json['lite'] = $this->lite;\n\n\t\treturn $json;\n\t}", "title": "" }, { "docid": "2bbc22f6ced0b30d17083f194ac92746", "score": "0.59132653", "text": "public function json() {\n\t\t$json = parent::json();\n\n\t\t$json['id'] = $this->id;\n\t\t$json['link'] = $this->get_link();\n\t\t$json['value'] = $this->value();\n\t\t$json['default'] = $this->setting->default;\n\t\t$json['mode'] = '' !== $this->mode ? $this->mode : 'hex';\n\t\t$json['lite'] = $this->lite;\n\n\t\treturn $json;\n\t}", "title": "" }, { "docid": "a9e8d4c7814256b0021e021392c71de5", "score": "0.58990407", "text": "public function chaves_ata_json($nidcadchv){\n\t\t$this->load->model('dci/Localchave_model');\n\t\t$this->load->model('dci/Chave_model');\n\n\t\t$chave = $this->Chave_model->getById($nidcadchv);\n\n\t\t$params['chave'] = $nidcadchv;\n\t\t\n\t\t$parameters = ($params) ? $params : NULL;\n\n\t\t$records = $this->Chave_model->listar_ata_data( 'records', $start, $length, $parameters );\n\n\t\t$count = 0;\n\t\tforeach($records as $r)\n\t\t{\n\t\t\t$records[$count]->DT_RowId = 'row_'.$r->nidcadata;\n\t\t\t$count++;\n\t\t}\n\n\t\tdie(json_encode(array(\n\t\t\t\t'recordsTotal' => $this->Chave_model->listar_ata_data( 'recordsTotal', $start, $length, $params )\n\t\t\t\t,'recordsFiltered' => $this->Chave_model->listar_ata_data( 'recordsFiltered', $start, $length, $params )\n\t\t\t\t,'data' => $records\n\t\t\t\t)\n\t\t\t)\n\t\t);\t\t\n\t}", "title": "" }, { "docid": "3379931bb3490a16af1073384688b9ba", "score": "0.5893711", "text": "public function toJson(): string\n {\n $dataArray = $this->toArray();\n return json_encode($dataArray);\n }", "title": "" }, { "docid": "5927b436e8c73178ff7513dcd46574c4", "score": "0.5892332", "text": "function getJsonDataOfExt(& $pager) {\n\t\t$rowset = $pager->findAll();\n\t\treturn '{\"totalCount\": ' . $pager->totalCount . ',\"rows\": ' . json_encode($rowset) . '}';\n\t}", "title": "" }, { "docid": "d3acfb4d8bcf2824138279480098c3ab", "score": "0.58913827", "text": "public function get_announcements_json(){\n $result_list='';\n $announcements=Message::get();\n $total_count=$announcements->count();\n foreach($announcements as $row)\n {\n $result_list .= '\n <tr class=\"tr\">\n <a class=\"'.$row->id.' \" href=\"'.env('APP_URL').'/admin/show_announcements/\" id=\".'.$row->id.'.\">\n\n <td><a href=\"'.env('APP_URL').'/admin/show_announcements/\" id=\".'.$row->id.'.\">'.$row->event_name.'</a></td>\n\n <td><a href=\"'.env('APP_URL').'/admin/show_announcements/\" id=\".'.$row->id.'.\">'.$row->message.'</a></td>\n <td><a href=\"'.env('APP_URL').'/admin/show_announcements/\" id=\".'.$row->id.'.\">'.$row->end_date.'</a></td>\n </a>\n </a>\n </tr>\n \n ';\n }\n\n $data = array(\n 'table_data' => $result_list,\n 'total_data' => $total_count,\n );\n\n\n echo json_encode($data);\n }", "title": "" }, { "docid": "a6c9fe86ad9c484dde18ba7cc1da6bf7", "score": "0.58885425", "text": "public function json() {\r\n\t\treturn pudl::jsonEncode($this);\r\n\t}", "title": "" }, { "docid": "d3d0dc29653a45084eed4c9def0eea51", "score": "0.5888102", "text": "function get_guest_json() {\n header('Content-Type: application/json');\n echo $this->crud_model->get_all_produk();\n }", "title": "" } ]
2ae0b6e9fc551ed42d04f0dbc6868ab3
assign job to sku the button is visible only when there are skus
[ { "docid": "f9dadf3eec859ab69b8530d34101cc03", "score": "0.549876", "text": "protected function canAssignSkuSub() {\r\n if (empty($this -> mJobId)) return FALSE;\r\n if (!$this -> mUsr -> canEdit('job-sku')) return FALSE;\r\n $lSql = 'SELECT COUNT(id) FROM al_job_sku_'.intval(MID);\r\n return CCor_Qry::getInt($lSql);\r\n }", "title": "" } ]
[ { "docid": "46647dc6105b495990918c9df0606089", "score": "0.60922277", "text": "protected function canAssignSkuSur() {\r\n if (empty($this -> mJobId)) return FALSE;\r\n if (!$this -> mUsr -> canEdit('job-sku')) return FALSE;\r\n $lSql = 'SELECT id FROM al_job_pro_'.intval(MID);\r\n if (0 < CCor_Qry::getInt($lSql)) {\r\n $lSql = 'SELECT pro_id FROM al_job_sku_sur_'.intval(MID).' WHERE sku_id='.esc($this -> mJobId);\r\n return !CCor_Qry::getInt($lSql);\r\n } else {\r\n return FALSE;\r\n }\r\n }", "title": "" }, { "docid": "8a18022effe5f4e054fb420cf3d90a79", "score": "0.6034993", "text": "function wc_product_sku_enabled()\n {\n }", "title": "" }, { "docid": "ec588c13d25c6f58e18e006c40ec99c0", "score": "0.5871484", "text": "public function sku();", "title": "" }, { "docid": "ef709240d6bc1606b665669e712d9504", "score": "0.5747906", "text": "function adelman_hide_add_to_cart_for_reserved($product) {\n global $product;\n $reserved = get_field('reserved', $product->get_id());\n $is_in_stock = $product->is_in_stock();\n\n if($reserved && $is_in_stock):\n ?>\n <style>\n button.etheme-simple-product.single_add_to_cart_button.button {\n display: none;\n }\n </style>\n <h4>This item is reserved</h4>\n <?php\n endif;\n}", "title": "" }, { "docid": "5dd7d150b09df384bc763f616db5b38a", "score": "0.5730759", "text": "public function wwof_get_product_sku_visibility_class () {\n\n $show_sku = get_option( 'wwof_general_show_product_sku' );\n\n if ( $show_sku === 'yes' )\n return apply_filters( 'wwof_filter_sku_visibility_class' , 'visible' );\n else\n return apply_filters( 'wwof_filter_sku_visibility_class' , 'hidden' );\n\n }", "title": "" }, { "docid": "222bcddfa8387de7c9c6b1e961c44ec4", "score": "0.5603786", "text": "public function setSku($sku);", "title": "" }, { "docid": "44736419ca23f60da4bfb5a2c177b115", "score": "0.5558782", "text": "public function execute()\n {\n if ($this->getRequest()->getParam('attribute') == 'sku') {\n $type = Sku::class;\n }\n }", "title": "" }, { "docid": "90e20b1c0cbfb92686db697147a8fb8e", "score": "0.55399215", "text": "function sante_in_stock() {\n\t\t$prev_availability_id = 9;\n\t\t$next_availability_id = 1;\n\t\t$manufacturer_id = 108;\n\t\t\n\t\tif (!$this->Manufacturer->changeAvailability($manufacturer_id, $next_availability_id, $prev_availability_id)) {\n\t\t\tdie('nepodarilo se nastavit sante produkty jako \"skladem\"');\n\t\t}\n\t\tdie('odstranit po otestovani - sante_in_stock');\n\t}", "title": "" }, { "docid": "dbac9592b2ff75a1dd6e7f22c4fe502c", "score": "0.55333894", "text": "public function setSku($sku) {\n $this->sku = $sku;\n }", "title": "" }, { "docid": "ecbae3b18f7ae567c5e35e35a19fc7f4", "score": "0.5459714", "text": "private function setSimpleSkus()\n {\n $p = array();\n /** @var Simple $product */\n foreach ($this->getSimpleProducts() as $product) {\n $p[] = $product->get('sku');\n }\n $this->set('grouped_skus', implode(',', $p));\n }", "title": "" }, { "docid": "05604abec5830666e052c8eb64a5f3a0", "score": "0.5427795", "text": "function back_search_toolbar_link($wp_admin_bar) {\n if ( is_admin() ) {\n if( current_user_can('shop_manager') || current_user_can('administrator') ) {\n $screen = get_current_screen();\n if ( $screen->id == 'product' ) {\n global $post;\n $product_sku = get_post_meta( $post->ID, '_sku', true );\n $args = array(\n 'id' => 'back_to_search',\n 'title' => 'Back To Search',\n 'href' => 'https://diamedicalusa.com/?s='.$product_sku.'&amp;post_type=product',\n 'meta' => array(\n 'class' => 'back-to-search',\n 'title' => 'Go Back To The Search Results For This Product'\n )\n );\n $wp_admin_bar -> add_node($args);\n }\n }\n }\n}", "title": "" }, { "docid": "633049691df1b815181d5e2502c73af4", "score": "0.53476554", "text": "function wc_product_has_unique_sku($product_id, $sku)\n {\n }", "title": "" }, { "docid": "4926ded0ce9d09f93b3a6e1829d9cfb5", "score": "0.52907836", "text": "function add_watch_list_button($product) {\n\t\t\n\t\t//add listing price\n\t\tif($product->has_reserve_price()){\n\t\t\tglobal $woo_auction;\n\t\t\t$userid = get_current_user_id();\n\t\t\t?>\n\t\t\t\t<script type=\"text/javascript\">\n\t\t\t\t\tvar startprice \t = <?php echo $product->get_start_price(); ?>;\n\t\t\t\t\tvar listingprice = <?php echo $product->get_reserve_price(); ?>;\n\t\t\t\t\t<?php if($userid):\n\t\t\t\t\t\t$user_totalbids = $woo_auction->product->user_totalbids($userid,$product); ?>\n\t\t\t\t\t\tvar allowedbids = <?php echo wac_allowed_bids(); ?>;\n\t\t\t\t\t\tvar bidplaced = <?php echo $user_totalbids; ?>;\n\t\t\t\t\t<?php endif; ?>\n\t\t\t\t\t\n\t\t\t\t</script>\n\t\t\t<?php\n\t\t}\n\t\t\n\t\t//display subscribe form\n\t\t$this->subscribe_form($product,'end');\n\n\t}", "title": "" }, { "docid": "c149ee60bed6ed29250ece7b82ef4bad", "score": "0.5268714", "text": "function widget() {\n?>\n<div style=\"-webkit-box-shadow: 0px 0px 7px 5px rgba(0, 0, 0, 0.1);-moz-box-shadow: 0px 0px 7px 5px rgba(0, 0, 0, 0.1);\nbox-shadow: 0px 0px 7px 5px rgba(0, 0, 0, 0.1); -webkit-border-radius: 5px;-moz-border-radius:5px;border-radius:5px;padding:20px;margin:20px auto;width:50%;height:30%position:relative;background-color:#f2f2f2;max-width:400px;\">\n <p>\n <label for=\"sku\"><?php echo __(\"Product Number (Sku)\",'aia');?></label>\n <input id=\"sku\" name=\"sku\" value=\"\" style=\"width:100%;\" />\n </p>\n <p class=\"error\">\n \n </p>\n\n <p>\n <label for=\"pur\"><?php echo __(\"Quantity Purchased\",'aia');?></label>\n <input id=\"pur\" name=\"pur\" value=\"\" style=\"width:100%;\" />\n </p>\n <p>\n <label for=\"sold\"><?php echo __(\"Quantity Sold\",'aia');?></label>\n <input id=\"sold\" name=\"sold\" value=\"\" style=\"width:100%;\" />\n </p>\n <p style=\"margin:20px 0px;\">\n <input id=\"submit\" name=\"submit\" value=\"<?php echo __(\"Submit\",'aia');?>\" type=\"button\" style=\"width:25%;\" />\n </p>\n <p class=\"show\" style=\"display:none;\">\n \n </p>\n</div>\n<?php\n}", "title": "" }, { "docid": "4b8cf1bef7d22c9290df7988df0a1589", "score": "0.52679855", "text": "public function is_existing_sku($product_id, $sku);", "title": "" }, { "docid": "7f2dc072da4d0a607f7450b7c78a7e95", "score": "0.5256694", "text": "public static function product_buttons()\n {\n }", "title": "" }, { "docid": "e4f9a2ba4f229e600099041811ef5c0a", "score": "0.5190061", "text": "function wpsc_show_stock_availability(){\n\tif( get_option('list_view_quantity') == 1 )\n\t\treturn true;\n\telse\n\t\treturn false;\n}", "title": "" }, { "docid": "32a707d09373bdce0b90a6bff49809d2", "score": "0.5188634", "text": "public function markProductAction()\n {\n if (true === Mage::helper('fraisrconnect/adminhtml_data')->isActive(true)) {\n Mage::getModel('fraisrconnect/product')->markProductsAsToSynchronize();\n }\n\n $this->_redirectReferer();\n return;\n }", "title": "" }, { "docid": "65cf83655864e8929820f4e126224080", "score": "0.5162112", "text": "public function show(Job $job, JobSkill $jobSkillable)\n {\n //\n }", "title": "" }, { "docid": "4a78635bf66342e114f9896b89c8405c", "score": "0.51393574", "text": "public function sku($sku)\n {\n return $this->setProperty('sku', $sku);\n }", "title": "" }, { "docid": "6a0ba191954c28214ceb98cd927f7750", "score": "0.51164377", "text": "public function display_one_click_button() {\n\n\t\t\t$filter_single_product = $this->filter_single_product();\n\t\t\tif ( 'yes' === $filter_single_product ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( $this->is_available() && ( is_product() || is_checkout() ) ) {\n\t\t\t\t$this->get_one_click_button();\n\t\t\t}\n\n\n\t\t}", "title": "" }, { "docid": "4795f81675ee48431b5dcab90f457899", "score": "0.51146847", "text": "public function showButton()\n {\n return $this->quotationHelper->showButtonOnProductView(\n $this->getProduct(),\n $this->customerSession->getCustomerGroupId()\n );\n }", "title": "" }, { "docid": "6b8f2422450f4d26f0624128eb8538c6", "score": "0.5113461", "text": "private function makeProductOutOfStock(string $sku): void\n {\n $product = $this->productRepository->get($sku);\n $extensionAttributes = $product->getExtensionAttributes();\n $stockItem = $extensionAttributes->getStockItem();\n $stockItem->setIsInStock(false);\n $this->productRepository->save($product);\n }", "title": "" }, { "docid": "a39fe468673d0c50dd644be5540cdebf", "score": "0.5112685", "text": "function cyon_woocommerce_upsell_display(){\n\twoocommerce_upsell_display(4,4);\n}", "title": "" }, { "docid": "587c6fd209aa4e2b084e623bd79bc567", "score": "0.5096826", "text": "public function is_existing_sku($product_id, $sku)\n {\n }", "title": "" }, { "docid": "1e47df2fbd4c939c6edc38bb214b6658", "score": "0.5090864", "text": "protected function sku()\n {\n return array($this->_is_child_product ? \"izb-v\" . (string)$this->_current_xml->id : \"izb-\" . (string)$this->_current_xml->id);\n }", "title": "" }, { "docid": "73ae8128041b5b977f84ca7fde639c40", "score": "0.50893825", "text": "public function bkap_composites_before_cart_button() {\n\n\t\t\tglobal $post,$wpdb;\n\t\t\n\t\t\t$product_id = bkap_common::bkap_get_product_id( $post->ID );\n\t\t\t$booking_settings = get_post_meta( $product_id, 'woocommerce_booking_settings', true );\n\t\t\t\n\t\t\tif ( $booking_settings == \"\" || ( isset( $booking_settings['booking_enable_date'] ) && $booking_settings['booking_enable_date'] != \"on\" ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t$product = wc_get_product( $product_id );\n\t\t\t$product_type = $product->get_type();\n\n\t\t\tif( $product_type === 'composite' &&\n\t\t\t\t$booking_settings != '' && \n\t\t\t\t( isset( $booking_settings['booking_enable_date'] ) && \n\t\t\t\t$booking_settings['booking_enable_date'] == 'on') && \n\t\t\t\t( isset( $booking_settings['booking_purchase_without_date'] ) && \n\t\t\t\t$booking_settings['booking_purchase_without_date'] != 'on') ) {\n\t\t\t\n\t\t\t\t// check the setting\n\t\t\t\t$global_settings = json_decode( get_option( 'woocommerce_booking_global_settings' ) );\n\t\t\t\tif ( isset( $global_settings->display_disabled_buttons ) && 'on' == $global_settings->display_disabled_buttons ) {\n\t\t\t\t\t?>\n\t\t\t\t\t<script type=\"text/javascript\">\n\t\t\t\t\t\tjQuery(document).ready(function() {\n\t\t\t\t\t\t\tjQuery( \".single_add_to_cart_button\" ).prop( \"disabled\", true );\n\t\t\t\t\t\t\tjQuery( \".qty\" ).prop( \"disabled\", true );\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t</script>\n\t\t\t\t\t<?php \n\t\t\t\t} else {\n\t\t\t\t?>\n\t\t\t\t\t<script type=\"text/javascript\">\n\t\t\t\t\t\tjQuery(document).ready(function() {\n\t\t\t\t\t\t\tjQuery( \".single_add_to_cart_button\" ).hide();\n\t\t\t\t\t\t\tjQuery( \".qty\" ).hide();\n\t\t\t\t\t\t});\n\t\t\t\t\t</script>\n\t\t\t\t<?php \n\t\t\t\t}\n\t\t\t\t?>\n\t\t\t\t\t<script type=\"text/javascript\">\n\t\t\t\t\t\tjQuery(document).ready(function() {\n\t\t\t\t\t\t\tjQuery( \".payment_type\" ).hide();\n\t\t\t\t\t\t\tjQuery(\".partial_message\").hide();\n\t\t\t\t\t\t});\n\t\t\t\t\t</script>\n\t\t\t\t<?php \n\n\t\t\t\tbkap_booking_process::bkap_price_display();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "4ded8b3b22934b13d44f1ec90808d9e3", "score": "0.50820607", "text": "function wc_set_loop_product_visibility($product_id, $value)\n {\n }", "title": "" }, { "docid": "8f0e6821231d529759bd8b2a2e37251b", "score": "0.5059864", "text": "function sydney_filter_yith_wcqv_button() {\n\n global $product;\n \n $product_id = $product->get_id();\n\n $button = '<a href=\"#\" class=\"yith-wcqv-button\" data-product_id=\"' . esc_attr( $product_id ) . '\">' . sydney_get_svg_icon( 'icon-search', false ) . '</a>';\n return $button;\n}", "title": "" }, { "docid": "0bc7f0cc85eb5da9df76d7f4b5ecd7c2", "score": "0.5045635", "text": "function sv_remove_product_page_skus( $enabled ) {\n if ( ! is_admin() && is_product() ) {\n return false;\n }\n\n return $enabled;\n}", "title": "" }, { "docid": "c225d34218dbd7ef6eff35fa707a1790", "score": "0.50450623", "text": "function show_resmush_button( $id ) {\r\n\t\t\t$button_show = false;\r\n\t\t\t$timestamp = '';\r\n\r\n\t\t\t$is_smushed = get_post_meta( $id, 'wp-smpro-is-smushed', true );\r\n\r\n\t\t\tif ( $is_smushed === '1' ) {\r\n\t\t\t\treturn $button_show;\r\n\t\t\t}\r\n\t\t\t//This post meta is set only if image is sent individually, and we want to show\r\n\t\t\t//smush button only for single request after 12 hours\r\n\t\t\t$smush_request_id = get_post_meta( $id, WP_SMPRO_PREFIX . 'request-id', true );\r\n\r\n\t\t\tif ( empty( $smush_request_id ) ) {\r\n\t\t\t\t$button_show = false;\r\n\t\t\t} else {\r\n\t\t\t\t//get smush request meta, to fetch timestamp\r\n\t\t\t\t$smpro_request_data = get_post_meta( $id, WP_SMPRO_PREFIX . 'request-' . $smush_request_id, true );\r\n\t\t\t\tif ( ! empty( $smpro_request_data ) ) {\r\n\t\t\t\t\t$timestamp = ! empty( $smpro_request_data['timestamp'] ) ? $smpro_request_data['timestamp'] : '';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif ( ! $is_smushed && ! empty( $timestamp ) ) {\r\n\t\t\t\tif ( $timestamp <= strtotime( '-12 hours' ) ) {\r\n\r\n\t\t\t\t\t//if request is older than 12 hours, remove from sent ids\r\n\t\t\t\t\t$sent_ids = get_option( WP_SMPRO_PREFIX . 'sent-ids' );\r\n\r\n\t\t\t\t\t// Search\r\n\t\t\t\t\t$pos = array_search( $id, $sent_ids );\r\n\t\t\t\t\tif ( ! $pos ) {\r\n\t\t\t\t\t\t//Attachment id is not set in sent ids, show the smush button\r\n\t\t\t\t\t\t$button_show = true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tunset( $sent_ids[ $pos ] );\r\n\t\t\t\t\t\tupdate_option( WP_SMPRO_PREFIX . 'sent-ids', $sent_ids );\r\n\t\t\t\t\t\t$button_show = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$button_show = false;\r\n\t\t\t}\r\n\r\n\t\t\treturn $button_show;\r\n\t\t}", "title": "" }, { "docid": "81337f6082698f4f14f543881885d97d", "score": "0.502156", "text": "function starkup_remove_product_page_skus( $enabled ) {\n if ( ! is_admin() && is_product() ) {\n return false;\n }\n\n return $enabled;\n}", "title": "" }, { "docid": "3ae35ddc8cbedf5680fb38d7f09c17c1", "score": "0.5013914", "text": "public function is_sold_individually()\n {\n }", "title": "" }, { "docid": "9af6dcc41ce39960c2d60cb2b44e4670", "score": "0.50113696", "text": "function wc_product_force_unique_sku($product_id)\n {\n }", "title": "" }, { "docid": "3a4df6a9c40578a8aaa985d010e43c6d", "score": "0.5011288", "text": "function to_show_offer_on_cart() {\n do_shortcode(\"[so_show_offers]\");\n }", "title": "" }, { "docid": "123b7099f8a77e8c5071ff54d98c5903", "score": "0.50085664", "text": "public function ViewProductDetails($id, $sku){\n\n\t\t\t\t\t/* Run the previouse method */\n\t\t\t\t\t$PD = $this->ProductDetailsKetty($id,$sku);\n\t\t\t\t\t$PD = array($PD);\n\t\t\t\t\n\t\t\t\t/* Method must not return false */\n\t\t\t\tif($PD == false)\n\t\t\t\t{\n\t\t\t\t\t\t/* Throw the error */\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* We got the data */\n\t\t\t\t\n\t\t\t\t$reg = '/{{&(.*?)}}/';\n\t\t\t\t\n\t\t\t\t/* Getting additional index */\n\t\t\t\t$avaibility = $this->getTemplate('{{&avaibility}}',$PD,$reg);\n\t\t\t\t\n\t\t\t\t/* Get the color put your color here */\n\t\t\t\t$colors = $this->getProductColors($id,$sku);\n\t\t\t\t\n\t\t\t\t/* Check if */\n\t\t\t\t\n\t\t\t\t/* Get the sizes */\n\t\t\t\t$sizes = $this->getProductSizes($id,$sku);\n\t\t\t\t\n\t\t\t\t/* Get the prodcut color for cart update html element */\t\t\t\t\n\t\t\t\t$colorhtml = $this->getProductColorsInSelectElement($id,$sku);\n\t\t\n\t\t\t\t/* Get the product button collor */\n\t\t\t\t$productbtncolor = $this->getProductBtnColorsInSelectElement($id,$sku);\n\t\t\t\t\n\t\t\t\t/* Get the sizes in html element to send http request for cart */\n\t\t\t\t$getsizesinhtml = $this->getProductSizesSelectElement($id,$sku);\n\t\t\t\t\n\t\t\t\tswitch($avaibility)\n\t\t\t\t\n\t\t\t\t{\n\t\t\t\t\tcase '0':\n\t\t\t\t\t$avaibility = 'Out of stock';\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tcase '1':\n\t\t\t\t\t$avaibility = 'In stock';\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t/* Html element */\n\t\t\t\t$html = '<div class=\"product-essential row\">\n<form action=\"checkout/cart/add/uenc/aHR0cDovL2xpdmVkZW1vMDAudGVtcGxhdGUtaGVscC5jb20vbWFnZW50b181MzYzOC9mbGFyZWQtamVhbnMuaHRtbA,,/product/89/form_key/vCNiKA3dLnAxFDoN/\" method=\"post\" id=\"product_addtocart_form\" enctype=\"multipart/form-data\">\n<input name=\"form_key\" type=\"hidden\" value=\"vCNiKA3dLnAxFDoN\"/>\n<div class=\"no-display\">\n<input type=\"hidden\" name=\"product\" value=\"89\"/>\n<input type=\"hidden\" name=\"related_product\" id=\"related-products-field\" value=\"\"/>\n</div>\n<div class=\"product-img-box col-xs-12 col-lg-8 col-md-6\">\n<div class=\"product-name\" itemprop=\"name\">\n<h1>{{&productname}}</h1>\n</div>\n{{&sub}}\n<!-- Will hode color html code this element -->\n<textarea id = \"htmlcolorcode\" style = \"visibility: hidden;\">'.$colorhtml.'</textarea>\n<textarea id = \"htmlbtncolorcode\" style = \"visibility: hidden;\">'.$productbtncolor.'</textarea>\n<textarea id = \"htmlsizescode\" style = \"visibility: hidden;\">'.$getsizesinhtml.'</textarea>\n\n<input type = \"hidden\" id = \"p_i_p_d\" value = \"{{&primary_image}}\" />\n<script type=\"text/javascript\">\n $j(document).on(\"product-media-loaded\", function() {\n ConfigurableMediaImages.init(\"base_image\");\n ConfigurableMediaImages.setImageFallback(89, $j.parseJSON(\"{\"option_labels\":{\"blue\":{\"configurable_product\":{\"small_image\":null,\"base_image\":null},\"products\":[\"90\"]},\"grey\":{\"configurable_product\":{\"small_image\":null,\"base_image\":null},\"products\":[\"91\",\"92\"]},\"s\":{\"configurable_product\":{\"small_image\":null,\"base_image\":null},\"products\":[\"90\"]},\"l\":{\"configurable_product\":{\"small_image\":null,\"base_image\":null},\"products\":[\"91\"]},\"xl\":{\"configurable_product\":{\"small_image\":null,\"base_image\":null},\"products\":[\"92\"]}},\"small_image\":[],\"base_image\":{\"90\":\"http:\\/\\/livedemo00.template-help.com\\/magento_53638\\/media\\/catalog\\/product\\/cache\\/1\\/image\\/1800x\\/040ec09b1e35df139433887a97daa66f\\/f\\/l\\/flared_jeans_5_1.jpg\",\"91\":\"http:\\/\\/livedemo00.template-help.com\\/magento_53638\\/media\\/catalog\\/product\\/cache\\/1\\/image\\/1800x\\/040ec09b1e35df139433887a97daa66f\\/f\\/l\\/flared_jeans_1.jpg\",\"92\":\"http:\\/\\/livedemo00.template-help.com\\/magento_53638\\/media\\/catalog\\/product\\/cache\\/1\\/image\\/1800x\\/040ec09b1e35df139433887a97daa66f\\/f\\/l\\/flared_jeans_7.jpg\",\"89\":\"http:\\/\\/livedemo00.template-help.com\\/magento_53638\\/media\\/catalog\\/product\\/cache\\/1\\/image\\/1800x\\/040ec09b1e35df139433887a97daa66f\\/f\\/l\\/flared_jeans_3.jpg\"}}\"));\n $j(document).trigger(\"configurable-media-images-init\", ConfigurableMediaImages);\n });\n</script>\n</div>\n<div class=\"col-xs-12 col-lg-4 col-md-6\">\n<div class=\"product-shop\">\n \n \n<div class=\"additional-info\">\n<div class=\"product-sku\">Product Code: <span class=\"sku-number\">{{&sku}}</span></div>\n<p class=\"availability in-stock\">\n<span class=\"label\">Availability:</span>\n<span class=\"value\">'.$avaibility.'</span>\n</p>\n<div class=\"availability-only\">\n<p>\n<span title=\"Only left\">Only <strong>{{&available_items}} </strong> left</span>\n</p>\n</div>\n<script type=\"text/javascript\">\n //<![CDATA[\n// $(\"//\").observe(\"click\", function(event){\n// this.toggleClassName(\"expanded\");\n// $(\"//\").toggleClassName(\"no-display\");\n// event.stop();\n// decorateTable(\"//\");\n// });\n //]]>\n </script>\n<div class=\"clear\"></div>\n</div>\n<div class=\"product-name secondary\" itemprop=\"name\">\n<span class=\"h1\">{{&productname}}</span>\n<input type = \"hidden\" id = \"p_name\" value = \"{{&productname}}\" />\n</div>\n<div class=\"extra-info\">\n<div class=\"ratings\">\n<div class=\"rating-box stars\">\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<div class=\"rating\" style=\"width:90%\">\n<div class=\"mask\">\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n</div>\n</div>\n</div>\n<span class=\"separator temp\">|</span>\n<p class=\"rating-links\">\n<a href=\"flared-jeans.html#customer-reviews\" class=\"moveToTab\" onclick=\"\">2 Review(s)</a>\n<span class=\"separator\">|</span>\n<a href=\"review/product/list/id/89/#review-form\">Add Your Review</a>\n</p>\n</div>\n<script type=\"text/javascript\">\n\n jQuery(document).ready(function(){\n\n jQuery(\"a.moveToTab\").click(function(e){\n moveToTab();\n })\n });\n\n function moveToTab(){\n jQuery(\"dt, dd\", \"#collateral-tabs\").each(function(){\n jQuery(this).removeClass(\"current\");\n });\n jQuery(\".product-collateral .toggle-tabs li\").each(function(){\n jQuery(this).removeClass(\"current\");\n jQuery(\"#reviews\", this).parents(\"li\").click();\n })\n jQuery(\"html, body\").animate({\n scrollTop: jQuery(\".product-collateral\").offset().top - 80}, \"fast\"\n );\n }\n</script> </div>\n<div class=\"price-info\" itemscope itemtype=\"//schema.org/product\">\n<div class=\"price-box\">\n<p class=\"old-price\">\n<span class=\"price-label\">Regular Price:</span>\n<span class=\"price\" id=\"old-price-89\">\n${{&price}}.00 </span>\n</p>\n<p class=\"special-price\">\n<span class=\"price-label\">Special Price</span>\n<span class=\"price\" id=\"product-price-89\">\n${{&special_price}}.00 </span>\n<input type = \"hidden\" id = \"p_sku\" value = \"{{&sku}}\" />\n<input type = \"hidden\" id = \"p_id\" value = \"{{&_id}}\" />\n</p>\n</div>\n</div>\n<div class=\"clear\"></div>\n<div class=\"product-options\" id=\"product-options-wrapper\">\n<dl>\n<dt class=\"swatch-attr\">\n<span id=\"select_label_color\" class=\"select-label\"></span>\n</label>\n</dt>\n\n<!-- Here we are going to add new color -->\n<dd class=\"clearfix swatch-attr last\">\n<div class=\"input-box\">\n'.$colors.'\n</div>\n</dd>\n\n\n<!-- Here we are going to add new color End -->\n<dt class=\"swatch-attr\">\n\n\n<span id=\"select_label_size\" class=\"select-label\"></span>\n</label>\n</dt>\n<dd class=\"clearfix swatch-attr last\">\n<div class=\"input-box\">\n'.$sizes.'\n\n</dd>\n</dl>\n<script type=\"text/javascript\">\n var spConfig = new Product.Config({\"attributes\":{\"92\":{\"id\":\"92\",\"code\":\"color\",\"label\":\"Color\",\"options\":[{\"id\":\"4\",\"label\":\"blue\",\"price\":\"0\",\"oldPrice\":\"0\",\"products\":[\"90\"]},{\"id\":\"5\",\"label\":\"grey\",\"price\":\"0\",\"oldPrice\":\"0\",\"products\":[\"91\",\"92\"]}]},\"134\":{\"id\":\"134\",\"code\":\"size\",\"label\":\"Size\",\"options\":[{\"id\":\"7\",\"label\":\"S\",\"price\":\"0\",\"oldPrice\":\"0\",\"products\":[\"90\"]},{\"id\":\"9\",\"label\":\"L\",\"price\":\"0\",\"oldPrice\":\"0\",\"products\":[\"91\"]},{\"id\":\"10\",\"label\":\"XL\",\"price\":\"0\",\"oldPrice\":\"0\",\"products\":[\"92\"]}]}},\"template\":\"$#{price}\",\"basePrice\":\"70\",\"oldPrice\":\"85\",\"productId\":\"89\",\"chooseText\":\"Choose an Option...\",\"taxConfig\":{\"includeTax\":false,\"showIncludeTax\":false,\"showBothPrices\":false,\"defaultTax\":8.25,\"currentTax\":0,\"inclTaxTitle\":\"Incl. Tax\"}});\n </script>\n<script type=\"text/javascript\">\n document.observe(\"dom:loaded\", function() {\n var swatchesConfig = new Product.ConfigurableSwatches(spConfig);\n });\n</script>\n<script type=\"text/javascript\">\n//<![CDATA[\nvar DateOption = Class.create({\n\n getDaysInMonth: function(month, year)\n {\n var curDate = new Date();\n if (!month) {\n month = curDate.getMonth();\n }\n if (2 == month && !year) { // leap year assumption for unknown year\n return 29;\n }\n if (!year) {\n year = curDate.getFullYear();\n }\n return 32 - new Date(year, month - 1, 32).getDate();\n },\n\n reloadMonth: function(event)\n {\n var selectEl = event.findElement();\n var idParts = selectEl.id.split(\"_\");\n if (idParts.length != 3) {\n return false;\n }\n var optionIdPrefix = idParts[0] + \"_\" + idParts[1];\n var month = parseInt($(optionIdPrefix + \"_month\").value);\n var year = parseInt($(optionIdPrefix + \"_year\").value);\n var dayEl = $(optionIdPrefix + \"_day\");\n\n var days = this.getDaysInMonth(month, year);\n\n //remove days\n for (var i = dayEl.options.length - 1; i >= 0; i--) {\n if (dayEl.options[i].value > days) {\n dayEl.remove(dayEl.options[i].index);\n }\n }\n\n // add days\n var lastDay = parseInt(dayEl.options[dayEl.options.length-1].value);\n for (i = lastDay + 1; i <= days; i++) {\n this.addOption(dayEl, i, i);\n }\n },\n\n addOption: function(select, text, value)\n {\n var option = document.createElement(\"OPTION\");\n option.value = value;\n option.text = text;\n\n if (select.options.add) {\n select.options.add(option);\n } else {\n select.appendChild(option);\n }\n }\n});\ndateOption = new DateOption();\n//]]>\n</script>\n<script type=\"text/javascript\">\n //<![CDATA[\n var optionFileUpload = {\n productForm : $(\"product_addtocart_form\"),\n formAction : \"\",\n formElements : {},\n upload : function(element){\n this.formElements = this.productForm.select(\"input\", \"select\", \"textarea\", \"button\");\n this.removeRequire(element.readAttribute(\"id\").sub(\"option_\", \"\"));\n\n template = \"<iframe id=\"upload_target\" name=\"upload_target\" style=\"width:0; height:0; border:0;\"><\\/iframe>\";\n\n Element.insert($(\"option_\"+element.readAttribute(\"id\").sub(\"option_\", \"\")+\"_uploaded_file\"), {after: template});\n\n this.formAction = this.productForm.action;\n\n var baseUrl = \"catalog/product/upload/\";\n var urlExt = \"option_id/\"+element.readAttribute(\"id\").sub(\"option_\", \"\");\n\n this.productForm.action = parseSidUrl(baseUrl, urlExt);\n this.productForm.target = \"upload_target\";\n this.productForm.submit();\n this.productForm.target = \"\";\n this.productForm.action = this.formAction;\n },\n removeRequire : function(skipElementId){\n for(var i=0; i<this.formElements.length; i++){\n if (this.formElements[i].readAttribute(\"id\") != \"option_\"+skipElementId+\"_file\" && this.formElements[i].type != \"button\") {\n this.formElements[i].disabled=\"disabled\";\n }\n }\n },\n addRequire : function(skipElementId){\n for(var i=0; i<this.formElements.length; i++){\n if (this.formElements[i].readAttribute(\"name\") != \"options_\"+skipElementId+\"_file\" && this.formElements[i].type != \"button\") {\n this.formElements[i].disabled=\"\";\n }\n }\n },\n uploadCallback : function(data){\n this.addRequire(data.optionId);\n $(\"upload_target\").remove();\n\n if (data.error) {\n\n } else {\n $(\"option_\"+data.optionId+\"_uploaded_file\").value = data.fileName;\n $(\"option_\"+data.optionId+\"_file\").value = \"\";\n $(\"option_\"+data.optionId+\"_file\").hide();\n $(\"option_\"+data.optionId+\"\").hide();\n template = \"<div id=\"option_\"+data.optionId+\"_file_box\"><a href=\"#\"><img src=\"var/options/\"+data.fileName+\"\" alt=\"\"><\\/a><a href=\"#\" onclick=\"optionFileUpload.removeFile(\"+data.optionId+\")\" title=\"Remove file\" \\/>Remove file<\\/a>\";\n\n Element.insert($(\"option_\"+data.optionId+\"_uploaded_file\"), {after: template});\n }\n },\n removeFile : function(optionId)\n {\n $(\"option_\"+optionId+\"_uploaded_file\").value= \"\";\n $(\"option_\"+optionId+\"_file\").show();\n $(\"option_\"+optionId+\"\").show();\n\n $(\"option_\"+optionId+\"_file_box\").remove();\n }\n }\n var optionTextCounter = {\n count : function(field,cntfield,maxlimit){\n if (field.value.length > maxlimit){\n field.value = field.value.substring(0, maxlimit);\n } else {\n cntfield.innerHTML = maxlimit - field.value.length;\n }\n }\n }\n\n Product.Options = Class.create();\n Product.Options.prototype = {\n initialize : function(config) {\n this.config = config;\n this.reloadPrice();\n document.observe(\"dom:loaded\", this.reloadPrice.bind(this));\n },\n reloadPrice : function() {\n var config = this.config;\n var skipIds = [];\n $$(\"body .product-custom-option\").each(function(element){\n var optionId = 0;\n element.name.sub(/[0-9]+/, function(match){\n optionId = parseInt(match[0], 10);\n });\n if (config[optionId]) {\n var configOptions = config[optionId];\n var curConfig = {price: 0};\n if (element.type == \"checkbox\" || element.type == \"radio\") {\n if (element.checked) {\n if (typeof configOptions[element.getValue()] != \"undefined\") {\n curConfig = configOptions[element.getValue()];\n }\n }\n } else if(element.hasClassName(\"datetime-picker\") && !skipIds.include(optionId)) {\n dateSelected = true;\n $$(\".product-custom-option[id^=\"options_\" + optionId + \"\"]\").each(function(dt){\n if (dt.getValue() == \"\") {\n dateSelected = false;\n }\n });\n if (dateSelected) {\n curConfig = configOptions;\n skipIds[optionId] = optionId;\n }\n } else if(element.type == \"select-one\" || element.type == \"select-multiple\") {\n if (\"options\" in element) {\n $A(element.options).each(function(selectOption){\n if (\"selected\" in selectOption && selectOption.selected) {\n if (typeof(configOptions[selectOption.value]) != \"undefined\") {\n curConfig = configOptions[selectOption.value];\n }\n }\n });\n }\n } else {\n if (element.getValue().strip() != \"\") {\n curConfig = configOptions;\n }\n }\n if(element.type == \"select-multiple\" && (\"options\" in element)) {\n $A(element.options).each(function(selectOption) {\n if ((\"selected\" in selectOption) && typeof(configOptions[selectOption.value]) != \"undefined\") {\n if (selectOption.selected) {\n curConfig = configOptions[selectOption.value];\n } else {\n curConfig = {price: 0};\n }\n optionsPrice.addCustomPrices(optionId + \"-\" + selectOption.value, curConfig);\n optionsPrice.reload();\n }\n });\n } else {\n optionsPrice.addCustomPrices(element.id || optionId, curConfig);\n optionsPrice.reload();\n }\n }\n });\n }\n }\n function validateOptionsCallback(elmId, result) {\n var container = $(elmId).up(\"ul.options-list\");\n if (result == \"failed\") {\n container.removeClassName(\"validation-passed\");\n container.addClassName(\"validation-failed\");\n } else {\n container.removeClassName(\"validation-failed\");\n container.addClassName(\"validation-passed\");\n }\n }\n var opConfig = new Product.Options({\"23\":{\"69\":{\"price\":0,\"oldPrice\":0,\"priceValue\":\"0.0000\",\"type\":\"fixed\",\"excludeTax\":0,\"includeTax\":0},\"70\":{\"price\":0,\"oldPrice\":0,\"priceValue\":\"0.0000\",\"type\":\"fixed\",\"excludeTax\":0,\"includeTax\":0},\"71\":{\"price\":0,\"oldPrice\":0,\"priceValue\":\"0.0000\",\"type\":\"fixed\",\"excludeTax\":0,\"includeTax\":0},\"72\":{\"price\":0,\"oldPrice\":0,\"priceValue\":\"0.0000\",\"type\":\"fixed\",\"excludeTax\":0,\"includeTax\":0}}});\n //]]>\n </script>\n<dl>\n<dt></dt>\n<dd class=\"last\">\n<div class=\"input-box\">\n'.$this->getProductButtonColors($id,$sku).'\n</div>\n</dd>\n</dl>\n<script type=\"text/javascript\">\n//<![CDATA[\nenUS = {\"m\":{\"wide\":[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],\"abbr\":[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"]}}; // en_US locale reference\nCalendar._DN = [\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]; // full day names\nCalendar._SDN = [\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"]; // short day names\nCalendar._FD = 0; // First day of the week. \"0\" means display Sunday first, \"1\" means display Monday first, etc.\nCalendar._MN = [\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]; // full month names\nCalendar._SMN = [\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"]; // short month names\nCalendar._am = \"AM\"; // am/pm\nCalendar._pm = \"PM\";\n\n// tooltips\nCalendar._TT = {};\nCalendar._TT[\"INFO\"] = \"About the calendar\";\n\nCalendar._TT[\"ABOUT\"] =\n\"DHTML Date/Time Selector\\n\" +\n\"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\\n\" +\n\"For latest version visit: http://www.dynarch.com/projects/calendar/\\n\" +\n\"Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details.\" +\n\"\\n\\n\" +\n\"Date selection:\\n\" +\n\"- Use the \\xab, \\xbb buttons to select year\\n\" +\n\"- Use the \" + String.fromCharCode(0x2039) + \", \" + String.fromCharCode(0x203a) + \" buttons to select month\\n\" +\n\"- Hold mouse button on any of the above buttons for faster selection.\";\nCalendar._TT[\"ABOUT_TIME\"] = \"\\n\\n\" +\n\"Time selection:\\n\" +\n\"- Click on any of the time parts to increase it\\n\" +\n\"- or Shift-click to decrease it\\n\" +\n\"- or click and drag for faster selection.\";\n\nCalendar._TT[\"PREV_YEAR\"] = \"Prev. year (hold for menu)\";\nCalendar._TT[\"PREV_MONTH\"] = \"Prev. month (hold for menu)\";\nCalendar._TT[\"GO_TODAY\"] = \"Go Today\";\nCalendar._TT[\"NEXT_MONTH\"] = \"Next month (hold for menu)\";\nCalendar._TT[\"NEXT_YEAR\"] = \"Next year (hold for menu)\";\nCalendar._TT[\"SEL_DATE\"] = \"Select date\";\nCalendar._TT[\"DRAG_TO_MOVE\"] = \"Drag to move\";\nCalendar._TT[\"PART_TODAY\"] = \" (\" + \"today\" + \")\";\n\n// the following is to inform that \"%s\" is to be the first day of week\nCalendar._TT[\"DAY_FIRST\"] = \"Display %s first\";\n\n// This may be locale-dependent. It specifies the week-end days, as an array\n// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1\n// means Monday, etc.\nCalendar._TT[\"WEEKEND\"] = \"0,6\";\n\nCalendar._TT[\"CLOSE\"] = \"Close\";\nCalendar._TT[\"TODAY\"] = \"today\";\nCalendar._TT[\"TIME_PART\"] = \"(Shift-)Click or drag to change value\";\n\n// date formats\nCalendar._TT[\"DEF_DATE_FORMAT\"] = \"%b %e, %Y\";\nCalendar._TT[\"TT_DATE_FORMAT\"] = \"%B %e, %Y\";\n\nCalendar._TT[\"WK\"] = \"Week\";\nCalendar._TT[\"TIME\"] = \"Time:\";\n//]]>\n</script>\n<p class=\"required\">* Required Fields</p>\n</div>\n<script type=\"text/javascript\">decorateGeneric($$(\"#product-options-wrapper dl\"), [\"last\"]);</script>\n<div class=\"product-options-bottom\">\n<div class=\"price-box\">\n<p class=\"old-price\">\n<span class=\"price-label\">Regular Price:</span>\n<span class=\"price\" id=\"old-price-89_clone\">\n${{&price}}.00</span>\n</p>\n<p class=\"special-price\">\n<span class=\"price-label\">Special Price</span>\n<span class=\"price\" id=\"product-price-89_clone\">\n${{&price}}.00</span>\n</p>\n</div>\n<div class=\"add-to-cart\">\n<div class=\"qty-wrapper\">\n<label for=\"qty\">Qty:</label>\n<input type=\"text\" pattern=\"\\d*\" name=\"qty\" id=\"qty\" maxlength=\"12\" value=\"1\" title=\"Qty\" class=\"input-text qty\"/>\n</div>\n<div class=\"add-to-cart-buttons\">\n<button onclick = \"sendDataToCart();\"type=\"button\" title=\"Add to Cart\" class=\"button btn-cart\" ><span><span>Add to Cart</span></span></button>\n<input type = \"hidden\" value = \"{{&price}}\" id =\"regular_price\" />\n<input type = \"hidden\" value = \"{{&special_price}}\" id =\"special_price\" />\n\n<input id=\"update_action\" type=\"hidden\" value=\"ajaxcart/cart/ajaxUpdate\"/>\n<input type=\"hidden\" name=\"product_type\" value=\"configurable\"/>\n<div class=\"add-message\">\n<span data-status=\"in-progress\">Adding product to cart.</span>\n<span data-status=\"complete\">Product added to cart.</span>\n</div>\n</div>\n<div id=\"cart_message\"></div>\n</div>\n<ul class=\"add-to-links\">\n<li><a href=\"wishlist/index/add/product/89/form_key/vCNiKA3dLnAxFDoN/\" onclick=\"productAddToCartForm.submitLight(this, this.href); return false;\" class=\"link-wishlist\">Add to Wishlist</a></li>\n<li><span class=\"separator\">|</span> <a href=\"catalog/product_compare/add/product/89/uenc/aHR0cDovL2xpdmVkZW1vMDAudGVtcGxhdGUtaGVscC5jb20vbWFnZW50b181MzYzOC9mbGFyZWQtamVhbnMuaHRtbA,,/form_key/vCNiKA3dLnAxFDoN/\" class=\"link-compare\">Add to Compare</a></li>\n</ul>\n</div>\n</div>\n<div class=\"add-to-cart-wrapper\">\n</div>\n \n \n \n<script type=\"text/javascript\">\nvar addthis_product = \"mag-1.0\";\nvar addthis_config \t= {\npubid : \"unknown\"\n\n}\n</script>\n \n<div class=\"addthis_toolbox addthis_default_style addthis_32x32_style\" addthis:url=\"\" addthis:title=\"\" addthis:description=\"\">\n<a class=\"addthis_button_preferred_1\"></a>\n<a class=\"addthis_button_preferred_2\"></a>\n<a class=\"addthis_button_preferred_3\"></a>\n<a class=\"addthis_button_preferred_4\"></a>\n<a class=\"addthis_button_compact\"></a>\n<a class=\"addthis_counter addthis_bubble_style\"></a>\n</div>\n<script type=\"text/javascript\" src=\"//s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4f0c254f1302adf8\"></script>\n \n<div class=\"clear\"></div>\n</div>\n</form>\n<script type=\"text/javascript\">\n //<![CDATA[\n var productAddToCartForm = new VarienForm(\"product_addtocart_form\");\n productAddToCartForm.submit = function(button, url) {\n if (this.validator.validate()) {\n var form = this.form;\n var oldUrl = form.action;\n\n if (url) {\n form.action = url;\n }\n var e = null;\n try {\n this.form.submit();\n } catch (e) {\n }\n this.form.action = oldUrl;\n if (e) {\n throw e;\n }\n\n if (button && button != \"undefined\") {\n button.disabled = true;\n }\n }\n }.bind(productAddToCartForm);\n\n productAddToCartForm.submitLight = function(button, url){\n if(this.validator) {\n var nv = Validation.methods;\n delete Validation.methods[\"required-entry\"];\n delete Validation.methods[\"validate-one-required\"];\n delete Validation.methods[\"validate-one-required-by-name\"];\n // Remove custom datetime validators\n for (var methodName in Validation.methods) {\n if (methodName.match(/^validate-datetime-.*/i)) {\n delete Validation.methods[methodName];\n }\n }\n\n if (this.validator.validate()) {\n if (url) {\n this.form.action = url;\n }\n this.form.submit();\n }\n Object.extend(Validation.methods, nv);\n }\n }.bind(productAddToCartForm);\n //]]>\n </script>\n</div>';\n\n/* Get the element */\n\t$div = $this->getTemplate($html, $PD,$reg);\n\t\n\treturn $div;\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "bb952ed2bb78b1e66b118743695d0862", "score": "0.50072217", "text": "function sv_remove_product_page_skus( $enabled ) {\n\t\t if ( is_product() ) {\n\t\t return false;\n\t\t }\n\t\t return $enabled;\n\t\t}", "title": "" }, { "docid": "6b840e3ea35725834f09f9809804982d", "score": "0.5004894", "text": "function DisplaySkins()\n{\n global $DB, $sdlanguage;\n\n echo '\n<script type=\"text/javascript\">\n function ConfirmUninstallSkin(){\n if(confirm(\"' . htmlspecialchars(AdminPhrase('skins_confirm_uninstall')) . '\"))\n return true;\n else\n return false;\n }\n</script>';\n\n StartTable(AdminPhrase('common_skins'), array('table','table-bordered','table-striped'));\n echo '\n <thead>\n <tr>\n <th class=\"td1\" width=\"100\">' . AdminPhrase('skins_preview') . '</th>\n <th class=\"td1\" width=\"150\">' . AdminPhrase('skins_name') . '</th>\n <th class=\"td1\">' . AdminPhrase('skins_author_information') . '</th>\n <th class=\"td1\">' . AdminPhrase('skins_switch_skin') . '</th>\n <th class=\"td1\">' . AdminPhrase('skins_export_skin') . '</th>\n <th class=\"td1\" width=\"75\" align=\"center\">' . AdminPhrase('common_delete') . '</th>\n </tr>\n </thead>\n <tbody>';\n\n if($getskins = $DB->query('SELECT * FROM {skins}'.\n ' ORDER BY activated DESC, name ASC, skinid'))\n while($skin_arr = $DB->fetch_array($getskins,null,MYSQL_ASSOC))\n {\n if(!is_numeric($skin_arr['authorlink']) && strlen($skin_arr['authorlink']) > 0)\n {\n if(substr($skin_arr['authorlink'], 0, 7) != 'http://')\n {\n $skin_arr['authorlink'] = 'http://' . $skin_arr['authorlink'];\n }\n\n $author_link = '<br /><a href=\"' . $skin_arr['authorlink'] . '\" target=\"_blank\">'.\n AdminPhrase('skins_visit_author_site') . '</a>';\n \n }\n else\n {\n $author_link = '';\n }\n\n if($skin_arr['activated'])\n {\n $switch_skin_link = AdminPhrase('skins_current');\n $delete_skin_link = '<i class=\"ace-icon fa fa-trash-o red bigger-110\"></i>';\n }\n else\n {\n $switch_skin_link = '<a href=\"skins.php?action=display_switch_skin_settings&amp;skinid='.\n $skin_arr['skinid'].SD_URL_TOKEN.'\">'.\n '<i class=\"ace-icon fa fa-check green bigger-110\"></i>&nbsp;'.\n AdminPhrase('skins_switch_to_skin').'</a>';\n $delete_skin_link = '<a href=\"skins.php?action=uninstallskin&amp;skinid='.\n $skin_arr['skinid'].SD_URL_TOKEN.'\">'.\n '<i class=\"ace-icon fa fa-trash-o red bigger-110\"></i></a>';\n }\n\n if(strlen($skin_arr['previewimage']))\n {\n $skin_preview_image = '../skins/' . $skin_arr['previewimage'];\n }\n else if(is_file('../skins/' . $skin_arr['folder_name'] . '/preview.jpg'))\n {\n $skin_preview_image = '../skins/' . $skin_arr['folder_name'] . '/preview.jpg';\n }\n else\n {\n $skin_preview_image = ADMIN_IMAGES_FOLDER.'theme_preview.png';\n }\n\n if($skin_arr['skin_engine'] == 2)\n {\n $export_skin_link = '<a href=\"skins.php?action=display_export_skin_form&amp;skinid='.\n $skin_arr['skinid'].SD_URL_TOKEN.'\"><i class=\"ace-icon fa fa-download bigger-110\"></i> ' .\n AdminPhrase('skins_export_skin') . '</a>';\n\t\tif($skin_arr['activated'])\n {\n //SD372: offer reimport for active SD3 skin\n $export_skin_link .=\n '<br /><br /><a href=\"skins.php?action=display_reimport_skin_form&amp;skinid='.\n $skin_arr['skinid'].SD_URL_TOKEN.'\"><i class=\"ace-icon fa fa-refresh bigger-110\"></i>&nbsp;'.AdminPhrase('skins_reimport_file').'</a>';\n }\n }\n else\n {\n $export_skin_link = '';\n }\n\n $td_css = !isset($td_css) ? 'td2' : ($td_css == 'td2' ? 'td3' : 'td2');\n\t$td_css .= $skin_arr['activated']?'':''; //SD400\n \n\n echo '\n <tr ' . ($skin_arr['activated'] ? 'class=\"warning\"' : '') .'>\n <td class=\"' . $td_css . '\"><img src=\"' . $skin_preview_image . '\" width=\"100\" height=\"100\" alt=\" \" /></td>\n <td class=\"' . $td_css . '\" align=\"center\"><a href=\"'.SELF_SKINS_PHP.'?action=display_skin&amp;skinid='.\n $skin_arr['skinid'].SD_URL_TOKEN.'\"><i class=\"ace-icon fa fa-edit bigger-110\"></i> '.\n $skin_arr['name'].'</a></td>\n <td class=\"'.$td_css.'\" align=\"center\">'.$skin_arr['authorname'].$author_link.'</td>\n <td class=\"'.$td_css.'\" align=\"center\">'.$switch_skin_link.'</td>\n <td class=\"'.$td_css.'\" align=\"center\">'.$export_skin_link.'</td>\n <td class=\"'.$td_css.'\" align=\"center\">'.$delete_skin_link.'</td>\n </tr>';\n }\n\n echo '</tbody></table></div>';\n\n}", "title": "" }, { "docid": "b1c81f7f75d80a5859398357b1f6e843", "score": "0.49989706", "text": "function custom_product_button_enrolled(){\n global $NyuLawLMSCourseCourse;\n global $product;\n // HERE your custom button text and link\n $button_text = __( \"Take Course\", \"woocommerce\" );\n $button_link = '#';\n\n // Display button\n echo '<a class=\"button\" href=\"'.$NyuLawLMSCourseCourse->link_to_dlor_iframe_by_product_id($product->id).'\">' . $button_text . '</a>';\n }", "title": "" }, { "docid": "abfb180a0c9b7f52a20c673d50318d32", "score": "0.49965435", "text": "public function checkSKU($observer) {\n if(Mage::helper('core')->isModuleOutputEnabled('Nayati_ProductGift') && Mage::getStoreConfigFlag(self::XML_PATH_ENABLED)){ \n $productItem = $observer->getEvent()->getProduct();\n $productsku =$productItem->getSku();\n $productEnabled =$productItem->getIsProductGiftEnabled();\n if($productEnabled){\n $skuGift=$productItem->getData('sku_of_product_gift');\n if(empty($skuGift))\n {\n $productItem->setData('is_product_gift_enabled','0');\n $productItem->save();\n \n return;\n \n }\n $productSkus = explode(',',$skuGift);\n\t\t\t\t$productSkusUnique = array_unique($productSkus);\n\t\t\t\tif(count($productSkus)!=count($productSkusUnique))\n\t\t\t\t{\n\t\t\t\t Mage::throwException(\"Duplicate Sku's are not allowed\");\n\t\t\t\t} \n $collection = Mage::getModel('catalog/product')->getCollection();\n $collection->addAttributeToSelect('is_product_gift_enabled');\n $collection->addAttributeToSelect('sku_of_product_gift');\t\n $collection->addFieldToFilter(array(\n array('attribute'=>'is_product_gift_enabled','eq'=>'1'),\n ));\n $collection->addFieldToFilter(array(\n array('attribute'=>'sku_of_product_gift','like'=>'%'.$productsku.'%'),\n ));\n \n foreach($collection->getData() as $dataSku)\n { \n $collectionSkus = explode(',',$dataSku['sku_of_product_gift']);\n if(in_array($productsku,$collectionSkus))\n {\n Mage::throwException('This product is already a gift product');\n }\n }\n\n if (!$productItem->getData('is_product_gift_enabled')) return $this;\n \n $FromGift=strtotime($productItem->getData('product_gift_active_from'));\n $ToGift=strtotime($productItem->getData('product_gift_active_to'));\n \n foreach($productSkus as $sku):\n\t\t\t $skuLoad=Mage::getModel('catalog/product')->loadByAttribute('sku', $sku);\n if(!empty($skuLoad) && Mage::getModel('catalog/product')->loadByAttribute('sku', $sku)->getData('type_id')!='simple'){Mage::throwException('Only simple products are allowed as a gift'); }\n if (!Mage::getModel('catalog/product')->loadByAttribute('sku', $sku)) Mage::throwException('SKU for gift is invalid!');\n if(Mage::getModel('catalog/product')->loadByAttribute('sku', $sku)->getData('is_product_gift_enabled'))\n {\n Mage::throwException('SKU : '.$sku.' is having a gift product');\n }\n endforeach;\n if($FromGift>$ToGift){\n Mage::throwException('Invalid From and To Dates.');\n }\n elseif((empty($FromGift) && !empty($ToGift)) || (!empty($FromGift) && empty($ToGift))){\n Mage::throwException('Invalid Dates.');\n }\n }\n\t\t }\t\n }", "title": "" }, { "docid": "3d80fec43474d41a3bb3ba5d35917714", "score": "0.49916023", "text": "abstract public function getSku();", "title": "" }, { "docid": "f49cb995bf040f397cad3e5d107bd89b", "score": "0.49843347", "text": "public function get_sku($context = 'view')\n {\n }", "title": "" }, { "docid": "f49cb995bf040f397cad3e5d107bd89b", "score": "0.49840674", "text": "public function get_sku($context = 'view')\n {\n }", "title": "" }, { "docid": "02474d6af7708c47cb665775cca3747d", "score": "0.49822375", "text": "function forbes_purchase_form_public_append_to_items_show() {\n $selectionMapper = new ForbesPurchaseForm_Model_Mapper_SelectionMapper();\n $selection = $selectionMapper->get();\n $item = get_current_item();\n if ($selection->containsItem($item)) {\n $url = uri(array(), 'forbes_purchase_form_show_selection');\n $text = __('Item is in cart - view');\n echo \"<a href=\\\"$url\\\">$text</a>\";\n } else {\n $url = uri(array('item'=>$item->id),'forbes_purchase_form_select_item');\n echo \"<a href=\\\"$url\\\">add to cart</a>\";\n }\n}", "title": "" }, { "docid": "e29b92bce9096dc8a7547d67bf123e5a", "score": "0.49771446", "text": "function toggleScheduledJob() {\n $jobView = new ScheduledJobViewData();\n $jobView->toggleScheduledJob($_POST['scheduled_job_id']);\n }", "title": "" }, { "docid": "03de8ffcd1ea10a9423455800e279e27", "score": "0.49766287", "text": "public function enqueue_scripts() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Upsell_Order_Bump_Offer_For_Woocommerce_Pro_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Upsell_Order_Bump_Offer_For_Woocommerce_Pro_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\t$screen = get_current_screen();\n\n\t\tif ( isset( $screen->id ) ) {\n\n\t\t\t$pagescreen = $screen->id;\n\n\t\t\tif ( 'toplevel_page_upsell-order-bump-offer-for-woocommerce-setting' == $pagescreen ) {\n\n\t\t\t\t$is_update_needed = 'false';\n\n\t\t\t\tif ( version_compare( UPSELL_ORDER_BUMP_OFFER_FOR_WOOCOMMERCE_VERSION, '1.2.0' ) < 0 ) {\n\n\t\t\t\t\t$is_update_needed = 'true';\n\t\t\t\t}\n\n\t\t\t\twp_enqueue_script( 'mwb-upsell-bump-license-script', plugin_dir_url( __FILE__ ) . 'js/upsell-order-bump-offer-for-woocommerce-pro-admin.js', array( 'jquery' ), $this->version, false );\n\t\t\t\twp_localize_script(\n\t\t\t\t\t'mwb-upsell-bump-license-script',\n\t\t\t\t\t'mwb_upsell_bump_ajaxurl',\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'ajaxurl' => admin_url( 'admin-ajax.php' ),\n\t\t\t\t\t\t'auth_nonce' => wp_create_nonce( 'mwb_ubo_license_nonce' ),\n\t\t\t\t\t\t'is_org_needs_update' => $is_update_needed,\n\t\t\t\t\t\t'mwb_upsell_bump_location' => admin_url( 'admin.php' ) . '?page=upsell-order-bump-offer-for-woocommerce-setting&tab=settings',\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "10d697242c3cff76097886b076b95b41", "score": "0.49496982", "text": "public function prod_online_box() {\n global $post, $p_webonly;\t\n\t\t$p_webonly = get_post_meta( $post->ID, 'p_webonly', true ); ?>\n\t\n\t\t<p><label for=\"p_webonly\"><input type=\"checkbox\" id=\"p_webonly\" name=\"p_webonly\" \n\t\t\t<?php if ($p_webonly) { echo 'checked=\"checked\"'; } ?> /> <strong>This product only sold online</strong></label></p>\t\n\t\t\n\t<?php }", "title": "" }, { "docid": "485e807b31e2c649fd4e303a97dc3301", "score": "0.49408743", "text": "function top_selling_item(){\n\n\techo do_shortcode('[products limit=\"3\" columns=\"3\" best_selling=\"true\" ]');\n\n\t echo \"Thank you so much...!!! You can try our top selling products.....\";\n}", "title": "" }, { "docid": "57232d1b8dc7a2f0efd304a31da8b749", "score": "0.49361485", "text": "public function widget( $args, $instance ) {\n \techo $args['before_widget'];\n \n $productsIds= explode(',', get_post_meta(get_the_ID(), modules_formation_ids_input_name,true));\n ?> \n <?php \n $title=! empty( $instance['title'] ) ? $instance['title'] : esc_html__( 'DEFAULT TEXT', 'text_domain' ); \n $btnText=! empty( $instance['btnTxt'] ) ? $instance['btnTxt'] : esc_html__( 'DEFAULT TEXT', 'text_domain' ); \n ?> \n \n <h5><?php echo $title;?></h5>\n <?php \n \n //var_dump(wc()->cart->add_to_cart(8005));die();\n for($i=0;$i<count($productsIds);$i++)\n {?>\n <div class=\"container_module_formation\">\n <label><input type=\"checkbox\" name=\"<?php echo($productsIds[$i]);?>\"/><?php echo(esc_html( get_post($productsIds[$i])->post_title)); ?></label> &nbsp;<i class=\"fa fa-chevron-down icon_toogle_description\" aria-hidden=\"true\"></i><br/>\n <p class=\"hidden\" style=\"display: non;\">\n <?php \n echo(esc_html(get_post($productsIds[$i])->post_excerpt));\n ?>\n </p>\n </div>\n <?php\n \n }\n ?>\n \n <input type=\"button\" name=\"\" class=\"\" value=\"<?php echo($btnText); ?>\" style=\"background: linear-gradient(to bottom,rgba(40, 165, 151, 0.56),rgba(40, 165, 151, 0.78),#28a597)!important;\"/>\n\n <script type=\"text/javascript\" >\n iconToogleDescriptionModuleFormation= document.getElementsByClassName('icon_toogle_description');\n function toogleDescription() {\n this.parentElement.lastElementChild.classList.toggle(\"hidden\");\n console.log(this.parentElement.lastElementChild); \n }\n \n for(i=0;i<iconToogleDescriptionModuleFormation.length ;i++){\n iconToogleDescriptionModuleFormation[i].onclick=toogleDescription;\n }\n\n\n </script>\n <?php\n //echo ($productsIds); \n \n echo $args['after_widget'];\n\n\t}", "title": "" }, { "docid": "160f2d2031c5f40804c6f47d244fa87a", "score": "0.49321738", "text": "function theme_vcn_cma_jobs_view($cma) {\n\n\n$cma = vcnCma::getInstance();\n\n$vars['user_id']=$cma->userid;\n$valid['user_id']='valid';\n$base_path = base_path();\n$target_remove_button = $base_path . drupal_get_path('module', 'vcn_cma') . '/images/delete.png';\n$cma_jobs_button = $base_path . drupal_get_path('module', 'vcn_cma') . '/images/jobs_button_cma.png';\n\n$joblist = vcn_get_data ($errors, $vars, $valid, 'cmasvc', 'CmaUserJobScout', 'list', $limit=false, $offset=false, $order='job_scout_id', $direction='desc'); \n\t\t\t$o .= '<h4>Job Scouts</h4>';\n\t\t\t//$o .= 'This Jobs Section lists the job criteria that is saved by you. ';\n\t\t\t$o .= 'The Job Scouts allow you to save your search criteria from the Find a Job page. The VCN will use this saved criteria to email you once a week, per Job Search Title, with matching jobs. The checkboxes to the left of the Job Search Title indicate whether you will receive an email for that Job Scout.';\n\t\t\t$o .= ' <hr style=\"margin-bottom:13px;\" class=\"clear-both\">' . PHP_EOL;\n\t\t\t$o .= '<div class=\"cma-jobs-jobs\"> <b> Job Search Title </b> </div>';\n\t\t\t$o .= '<div class=\"cma-jobs-zip-heading\"> <b> Zipcode </b> </div>';\n\t\t\t$o .= '<div class=\"cma-jobs-distance-heading\"> <b> Distance </b> </div>';\n\t\t\t$o .= '<div class=\"cma-jobs-date-heading\"> <b> Date Saved </b> </div>';\n\t\t\t//$o .= '<div style=\"margin-top:-27px;\" class=\"job-remove-button\"> <b> Remove Button </b> </div>';\n $o .= ' <hr class=\"clear-both\">' . PHP_EOL;\n\t\t\t\n\t\t\t\nforeach ($joblist->cma as $job) {\n\n\t\t $onlydate = explode(' ', $job->createdtime);\n\t\t $datediv = '<div class=\"cma-jobs-date\">'.$onlydate[0].'</div>';\n\t\t if(empty($job->zip)){\n\t\t\t$zipdiv = '<div class=\"cma-jobs-zip\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--</div>';\n\t\t }else{\n\t\t\t$zipdiv = '<div class=\"cma-jobs-zip\">'.$job->zip.'</div>';\n\t\t }\n\t\t $disatnce = '<div class=\"cma-jobs-distance\">'.$job->distance.' miles'.'</div>';\n\t\t //print_r($datediv);exit;\n $o .= '\t<div id=\"jobid-' . $job->jobscoutid . '\" class=\"cma-jobs\">' . PHP_EOL;\n $o .= '\t\t<div class=\"cma-jobs-inner\">' . PHP_EOL;\n $o .= '\t\t\t<div class=\"cma-jobs-body\">' . PHP_EOL;\n\t\t\t///print_r($job); exit;\n\t$activeynn = \"'\".$job->activeyn.\"'\";\n\t\t\t//$o .= '<div class=\"cma-jobs-jobs\">';\n\tif($job->activeyn == \"y\" || $job->activeyn == \"Y\" ){\n\t\t$checked = 'checked=\"checked\" ';\n\t\t$o .= '<input type=\"checkbox\" title=\"Unsubscribe for email list\" alt=\"Unsubscribe for email list\" name=\"active_yn\" id=\"active_yn\" '.$checked.' onclick=\"activeyntoggle('.$job->jobscoutid.','.$activeynn.');\" ';\t\t\n\t}else{\n\t\t$checked = '';\n\t\t$o .= '<input type=\"checkbox\" title=\"Subscribe for email list\" alt=\"Subscribe for email list\" name=\"active_yn\" id=\"active_yn\" '.$checked.' onclick=\"activeyntoggle('.$job->jobscoutid.','.$activeynn.');\" ';\n\t}\n\t$o .= '</input>';\n\tif(empty($job->keyword)){\n\t\t$vars['onetcode'] = $job->onetcode;\n\t\t$valid['onetcode']='valid';\n\t\t$joblistonetcode = vcn_get_data ($errors, $vars, $valid, 'occupationsvc', 'occupation', 'list', $limit=false, $offset=false);\n\t\t//$o .= 'Healthcare Careers:'.'<a class=\"cma-jobs-jobs\" href=\"'.base_path().'findworkresults?onetcode='.$job->onetcode.'&distance='.$job->distance.'\">'.$joblistonetcode->occupation->displaytitle.'</a>';\n\t\t$o .= ' Healthcare Careers: '.$joblistonetcode->occupation->displaytitle;\n\t}\n\tif(!empty($job->keyword)){\n\t$o .=' Job Title: ';\n\t}\n\t//$o .= '<a class=\"cma-jobs-jobs\" href=\"'.base_path().'findworkresults?jobtitle2='.$job->keyword.'&distance='.$job->distance.'\">'.$job->keyword.'</a>'.$zipdiv.$disatnce.$datediv.'<br />';\n\tif(!empty($job->keyword)){\n\t$o .= $job->keyword;\n\t}\n\t//$o .= '</div> <!-- end of cma-jobs-jobs -->';\t\n\t$o .= $zipdiv.$disatnce.$datediv.'<br />';\n\t//print_r($job);exit; \n\n\t\n $o .= '<a class=\"job-remove-button remove-button\" jobid = \"'.$job->jobscoutid.'\" href=\"' . $base_path . 'cma/remove/jobs/' . $job->jobscoutid;\n $o .= '\"><img src=\"' .$target_remove_button . '\" title=\"Delete Job Scout\" alt=\"Delete Job Scout\" /></a>' . PHP_EOL;\t\n \tif(empty($job->keyword)){\n\t\t$vars['onetcode'] = $job->onetcode;\n\t\t$valid['onetcode']='valid';\n\t\t\n\t\t$joblistonetcode = vcn_get_data ($errors, $vars, $valid, 'occupationsvc', 'occupation', 'list', $limit=false, $offset=false);\n\t\t$o .= '<a style=\"margin-right: 10px;\" class=\"job-navigate-button\" href=\"'.base_path().'findworkresults?onetcode='.$job->onetcode.'&onetcode2='.$job->onetcode.'&zipcode='.$job->zip.'&distance='.$job->distance.'\">'.'<img src=\"' .$cma_jobs_button . '\" title=\"View Jobs\" alt=\"View Jobs\" />'.'</a>';\n\t}else{\n\t\t$search = array('\"', \"'\");\n\t\t$replace = '';\n\t\t$jobtitleclean = str_replace($search, $replace, $job->keyword);\n\t\t$o .= '<a style=\"margin-right: 10px;\" class=\"job-navigate-button\" href=\"'.base_path().'findworkresults?jobtitle2='.$jobtitleclean.'&onetcode2='.$job->onetcode.'&zipcode='.$job->zip.'&distance='.$job->distance.'\">'.'<img src=\"' .$cma_jobs_button . '\" title=\"View Jobs\" alt=\"View Jobs\" />'.'</a>';\n\t} \t\t\t\n\n\n $o .= '\t\t\t</div><!-- /cma-notebook-jobs-body -->' . PHP_EOL;\n $o .= ' <hr class=\"clear-both\">' . PHP_EOL;\n $o .= '\t\t</div><!-- /cma-jobs-inner -->' . PHP_EOL;\n $o .= '\t</div><!-- /cma-jobs -->' . PHP_EOL;\n}\n return $o;\n\n \n \n}", "title": "" }, { "docid": "d405665331e4bb1885d70f7cc325e523", "score": "0.49243173", "text": "public function __construct($sku)\n {\n $this->sku = $sku;\n }", "title": "" }, { "docid": "5f9df53dbe0a761fe31f7205e5c3fbed", "score": "0.49222377", "text": "function efAmazonPlusJavascript( &$out, $sk ) {\n\tglobal $wgScriptPath, $wgAmazonPlusJSVersion;\n\t$src = $wgScriptPath . \"/extensions/AmazonPlus/AmazonPlus.js?$wgAmazonPlusJSVersion\";\n\t$out->addScript( '<script type=\"text/javascript\" src=\"' . $src . '\"></script>' . \"\\n\" );\n\treturn true;\n}", "title": "" }, { "docid": "7e82fbff11d54d2a0b8effab0f8ed403", "score": "0.4921569", "text": "public function clickCustomize()\n {\n $browser = $this->browser;\n $selector = $this->newsletterFormSelector;\n $this->browser->waitUntil(\n function () use ($browser, $selector) {\n $element = $browser->find($selector);\n return $element->isVisible() ? true : null;\n }\n );\n $this->_rootElement->find($this->customizeButton)->click();\n $this->waitForElementVisible($this->addToCart);\n }", "title": "" }, { "docid": "8c557f7bc41fdc96e1ec248b12da28f2", "score": "0.49115542", "text": "public function check_product_offer()\n {\n\n }", "title": "" }, { "docid": "5ebb8e42ae437b11942feee4d95f9a68", "score": "0.49104854", "text": "public static function output_storefront_button()\n {\n }", "title": "" }, { "docid": "5eee2ec10c2924df2af90482ff040287", "score": "0.49087632", "text": "protected function _updateSku()\n {\n $secret = Engine_Api::_()->getApi('settings', 'core')->payment_secret;\n $i = 0;\n $l = 8;\n $sku = null;\n \n do {\n //$padLen = strlen(sprintf('%d', base_convert(str_pad('', $l, 'f'), 16, 10)));\n $sku = str_pad(sprintf('%d', $this->product_id), 8, '0', STR_PAD_LEFT)\n . '^' . $secret . '^' . 'product';\n $sku = base_convert(substr(md5($sku), $i, $l), 16, 10);\n //$sku = sprintf('%d', base_convert(substr(md5($sku), $i, $l), 16, 10));\n //$sku = str_pad($sku, $padLen, '0', STR_PAD_LEFT);\n \n $pId = $this->getTable()\n ->select()\n ->from($this->getTable(), 'product_id')\n ->where('sku = ?', $sku)\n ->limit(1)\n ->query()\n ->fetchColumn();\n\n if( $pId ) {\n if( $i < 8 ) {\n $i++;\n } else {\n $i = 0;\n $l++;\n }\n $sku = null;\n }\n\n } while( !$sku );\n\n // Update with sku\n $this->_data['sku'] = $sku;\n $this->getTable()->update(array(\n 'sku' => $sku,\n ), array(\n 'product_id = ?' => $this->product_id,\n ));\n }", "title": "" }, { "docid": "bd8426d8b3e7d6798489bcc5a4757580", "score": "0.4902124", "text": "function runatlast(){\n\t\t\n\t\t//remove edit buttons\n\t\tif(wac_is_vendor()){\n\t\t\tremove_anonymous_object_filter( 'woocommerce_before_shop_loop_item', 'WCMp_Frontend_Product_Manager_Frontend', 'forntend_product_edit');\n\t\t\tremove_anonymous_object_filter( 'woocommerce_before_single_product_summary', 'WCMp_Frontend_Product_Manager_Frontend', 'forntend_product_edit');\n\t\t}\n\t}", "title": "" }, { "docid": "e6522ca7b5fa7e9413c1c2f5333d0b67", "score": "0.49016067", "text": "function listingpro_change_plan_button($post, $listing_id=''){\n\tglobal $listingpro_options;\n\t$buttonEnabled = $listingpro_options['lp_listing_change_plan_option'];\n\tif ($buttonEnabled==\"enable\") {\n\t\t$currency = listingpro_currency_sign();\n\t\t$buttonCode = '';\n\t\t$havePlan = \"no\";\n\t\t$planPrice = '';\n\t\t$listing_status = '';\n\t\tif(empty($listing_id)){\n\t\t\t$listing_id = $post->ID;\n\t\t\t$listing_status = get_post_status( $listing_id );\n\t\t\t$plan_id = listing_get_metabox_by_ID('Plan_id', $listing_id);\n\t\t\t$planTitle = '';\n\t\t\tif(!empty($plan_id)){\n\t\t\t\t$planTitle = get_the_title($plan_id);\n\t\t\t\t$planPrice = get_post_meta($plan_id, 'plan_price', true);\n\t\t\t\tif(!empty($planPrice)){\n\t\t\t\t\t$planPrice = $currency.$planPrice;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$planPrice = esc_html__('Free', 'listingpro');\n\t\t\t\t}\n\t\t\t\t$planPrice .='/'. get_post_meta($plan_id, 'plan_package_type', true);\n\t\t\t\t$havePlan = \"yes\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$planTitle = esc_html__('No Plan Assigned Yet', 'listingpro');\n\t\t\t}\n\t\t\t$buttonCode = '<a href=\"#\" class=\"lp-review-btn btn-second-hover text-center lp-change-plan-btn\" data-toggle=\"modal\" data-target=\"#modal-packages\" data-listingstatus=\"'.$listing_status.'\" data-planprice=\"'.$planPrice.'\" data-haveplan=\"'.$havePlan.'\" data-plantitle = \"'.$planTitle.'\" data-listingid=\"'.$listing_id.'\" title=\"change\"><i class=\"fa fa-paper-plane\" aria-hidden=\"true\"></i>'.esc_html__('Change Plan', 'listingpro').'</a>';\n\t\t}\n\t\telse{\n\t\t\t$listing_id = $post->ID;\n\t\t\t$listing_status = get_post_status( $listing_id );\n\t\t\t$plan_id = listing_get_metabox_by_ID('Plan_id', $listing_id);\n\t\t\t$planTitle = '';\n\t\t\tif(!empty($plan_id)){\n\t\t\t\t$planPrice = get_post_meta($plan_id, 'plan_price', true);\n\t\t\t\tif(!empty($planPrice)){\n\t\t\t\t\t$planPrice = $currency.$planPrice;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$planPrice = esc_html__('Free', 'listingpro');\n\t\t\t\t}\n\t\t\t\t$planTitle = get_the_title($plan_id);\n\t\t\t\t$planpkgtype = '';\n\t\t\t\t$plantype = get_post_meta($plan_id, 'plan_package_type', true);\n\t\t\t\tif($plantype==\"Package\"){\n\t\t\t\t\t$planpkgtype = esc_html__('Package', 'listingpro');\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$planpkgtype = esc_html__('Pay Per Listing', 'listingpro');\n\t\t\t\t}\n\t\t\t\t$planPrice .='/'. $planpkgtype;\n\t\t\t\t$havePlan = \"yes\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$planTitle = esc_html__('No Plan Assigned Yet', 'listingpro');\n\t\t\t}\n\t\t\t$buttonCode = '<a href=\"#\" class=\"lp-review-btn btn-second-hover text-center lp-change-plan-btn\" data-toggle=\"modal\" data-target=\"#modal-packages\" data-listingstatus=\"'.$listing_status.'\" data-planprice=\"'.$planPrice.'\" data-haveplan=\"'.$havePlan.'\" data-plantitle = \"'.$planTitle.'\" data-listingid=\"'.$listing_id.'\" title=\"change\"><i class=\"fa fa-paper-plane\" aria-hidden=\"true\"></i>'.esc_html__(\"Change Plan\", \"listingpro\").'</a>';\n\t\t}\n\n\t\t$paidmode = $listingpro_options['enable_paid_submission'];\n\t\treturn (!empty($paidmode) && $paidmode==\"yes\") ? $buttonCode : '';\n\t}\n}", "title": "" }, { "docid": "6f7957c29c7f687d7356c08f563581a3", "score": "0.49003512", "text": "public function ProductDiscriptionKetty($id, $sku)\n\t\t\t{\n\t\t\t\t/* Run the previouse method */\n\t\t\t\t\t$PD = $this->ProductDetailsKetty($id,$sku);\n\t\t\t\t\t$PD = array($PD);\n\t\t\t\t\n\t\t\t\t\t/* Get the color */\n\t\t\t\t\t$sizes = $this->getProductColors($id, $sku);\n\t\t\t\t\t/* Method must not return false */\n\t\t\t\t\tif($PD == false)\n\t\t\t\t\t{\n\t\t\t\t\t\t/* Throw the error */\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$reg = '/{{&(.*?)}}/';\n\t\t\t\t$html = '<div class=\"product-collateral toggle-content tabs\">\n<dl id=\"collateral-tabs\" class=\"collateral-tabs\">\n<dt class=\"tab\"><span id=\"description\">Description</span></dt>\n<dd class=\"tab-container\">\n<div class=\"tab-content\"> <h2>Details</h2>\n<div class=\"std\"> {{&shortdiscription}} {{&description}}</div>\n</div>\n</dd>\n<dt class=\"tab\"><span id=\"additional\">Additional Information</span></dt>\n<dd class=\"tab-container\">\n<div class=\"tab-content\"> <h2>Additional Information</h2>\n<table class=\"data-table\" id=\"product-attribute-specs-table\">\n<col width=\"25%\"/>\n<col/>\n<tbody>\n<tr>\n<th class=\"label\">Origin</th>\n<td class=\"data\">{{&origin}}</td>\n</tr>\n<tr>\n<th class=\"label\">Material</th>\n<td class=\"data\">{{&material}}</td>\n</tr>\n<tr>\n<th class=\"label\">Lining material</th>\n<td class=\"data\">{{&lining}}</td>\n</tr>\n<tr>\n<th class=\"label\">Conditions</th>\n<td class=\"data\">{{&condition}}</td>\n</tr>\n<tr>\n<th class=\"label\">Collection</th>\n<td class=\"data\">{{&collectionu}}</td>\n</tr>\n<tr>\n<th class=\"label\">Style</th>\n<td class=\"data\">{{&style}}</td>\n</tr>\n<tr>\n<th class=\"label\">Seazon</th>\n<td class=\"data\">{{&season}}</td>\n</tr>\n<tr>\n<th class=\"label\">Item weight, kg</th>\n<td class=\"data\">{{&weight}}</td>\n</tr>\n</tbody>\n</table>\n<script type=\"text/javascript\">decorateTable(\"product-attribute-specs-table\")</script>\n</div>\n</dd>\n<dt class=\"tab\"><span id=\"reviews\">Reviews</span></dt>\n<dd class=\"tab-container\">\n<div class=\"tab-content\">\n<div class=\"box-collateral box-reviews\" id=\"customer-reviews\">\n<div class=\"review-heading\">\n<h2>\nCustomer Reviews <span>2 item(s)</span>\n</h2>\n</div>\n<dl>\n<dt>\n<a href=\"review/product/view/id/2/\">\nWe are lucky to have an opportunity to buy qualitative, fashionable and affordable clothes. </a>\n</dt>\n<dd>\nTherefore being fashionable costs a lot of money. But nowadays fashion is not such unavailable as it was a couple of centuries ago. We are lucky to have an opportunity to buy qualitative, fashionable and affordable clothes. So, with the great pleasure we are offering you our goods, and we are sure that only our choices of garments will suit you best. Our product is universal because it suits different customers with different demands. We assure you it is really important, it shows that our good has such capacity as flexibility.\n<table class=\"ratings-table ratings\">\n<colgroup>\n<col class=\"review-label\"/>\n<col class=\"review-value\"/>\n</colgroup>\n<tbody>\n<tr>\n<th>Quality</th>\n<td>\n<div class=\"rating-box stars\">\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<div class=\"rating\" style=\"width:100%;\">\n<div class=\"mask\">\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n</div>\n</div>\n</div>\n</td>\n</tr>\n<tr>\n<th>Price</th>\n<td>\n<div class=\"rating-box stars\">\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<div class=\"rating\" style=\"width:100%;\">\n<div class=\"mask\">\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n</div>\n</div>\n</div>\n</td>\n</tr>\n<tr>\n<th>Value</th>\n<td>\n<div class=\"rating-box stars\">\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<div class=\"rating\" style=\"width:100%;\">\n<div class=\"mask\">\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n</div>\n</div>\n</div>\n</td>\n</tr>\n</tbody>\n</table>\n<span class=\"review-meta\">\nReview by Devid /\n(Posted on 8/25/2015) </span>\n</dd>\n<dt>\n<a href=\"review/product/view/id/1/\">\nFashion has always been so temporary and uncertai </a>\n</dt>\n<dd>\nFashion has always been so temporary and uncertain. You can’t keep up with it. This social phenomenon is very whimsical, thus we as the consumers always try to stay in touch with all the latest fashion tendencies. Obviously there is nothing wrong about it because fashion satisfies our willingness to be attractive. And also fashion is the detector of prosperity and social rank. So, our natural desire to wear fashionable clothes has many reasons such as historical, social and others.\n<table class=\"ratings-table ratings\">\n<colgroup>\n<col class=\"review-label\"/>\n<col class=\"review-value\"/>\n</colgroup>\n<tbody>\n<tr>\n<th>Quality</th>\n<td>\n<div class=\"rating-box stars\">\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<div class=\"rating\" style=\"width:80%;\">\n<div class=\"mask\">\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n</div>\n</div>\n</div>\n</td>\n</tr>\n<tr>\n<th>Price</th>\n<td>\n<div class=\"rating-box stars\">\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<div class=\"rating\" style=\"width:80%;\">\n<div class=\"mask\">\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n</div>\n</div>\n</div>\n</td>\n</tr>\n<tr>\n<th>Value</th>\n<td>\n<div class=\"rating-box stars\">\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<div class=\"rating\" style=\"width:80%;\">\n<div class=\"mask\">\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n<i class=\"material-design-bookmark45\"></i>\n</div>\n</div>\n</div>\n</td>\n</tr>\n</tbody>\n</table>\n<span class=\"review-meta\">\nReview by Hitch /\n(Posted on 8/25/2015) </span>\n</dd>\n</dl>\n<a class=\"button review-button\" href=\"review/product/list/id/89/#review-form\"><span><span>Add Your Review</span></span></a>\n</div>\n</div>\n</dd>\n<dt class=\"tab\"><span id=\"product_tag_list\">Tags</span></dt>\n<dd class=\"tab-container\">\n<div class=\"tab-content\"><div class=\"box-collateral box-tags\">\n<h2>Product Tags</h2>\n<form id=\"addTagForm\" action=\"tag/index/save/product/89/uenc/aHR0cDovL2xpdmVkZW1vMDAudGVtcGxhdGUtaGVscC5jb20vbWFnZW50b181MzYzOC9mbGFyZWQtamVhbnMuaHRtbA,,/\" method=\"get\">\n<div class=\"form-add\">\n<label for=\"productTagName\">Add Your Tags:</label>\n<div class=\"input-box\">\n<input type=\"text\" class=\"input-text required-entry\" name=\"productTagName\" id=\"productTagName\"/>\n</div>\n<button type=\"button\" title=\"Add Tags\" class=\"button\" onclick=\"submitTagForm()\">\n<span>\n<span>Add Tags</span>\n</span>\n</button>\n</div>\n</form>\n<p class=\"note\">Use spaces to separate tags. Use single quotes (\") for phrases.</p>\n<script type=\"text/javascript\">\n //<![CDATA[\n var addTagFormJs = new VarienForm(\"addTagForm\");\n function submitTagForm(){\n if(addTagFormJs.validator.validate()) {\n addTagFormJs.form.submit();\n }\n }\n //]]>\n </script>\n</div>\n</div>\n</dd>\n<dt class=\"tab\"><span id=\"catalog.product.video\">Video</span></dt>\n<dd class=\"tab-container\">\n<div class=\"tab-content\">\n<div class=\"video-box box-collateral\">\n<h2>Video</h2>\n<div class=\"box-collateral-content\">\n<div class=\"video\">\n<iframe src=\"https://www.youtube.com/embed/E_IG2ubeTME?wmode=opaque\" id=\"video-frame\" allowfullscreen></iframe>\n</div>\n</div>\n</div>\n<script type=\"text/javascript\">\n jQuery(\"#video-frame\").attr(\"frameborder\",\"0\");\n </script>\n</div>\n</dd>\n</dl>\n</div>';\n//echo \"<pre>\";\n//print_r($PD);\n//echo \"</pre>\";\n//return false;\n/**/\n$div = $this->getTemplate($html, $PD , $reg);\n\nreturn $div;\n\t\t\t}", "title": "" }, { "docid": "874a7b8823a447ffa99d8753dc78ef30", "score": "0.4892123", "text": "public function print_button() {\n\t\t\techo do_shortcode( \"[yith_wcwl_add_to_wishlist]\" );\n\t\t}", "title": "" }, { "docid": "db444392652aad5315245001b873f440", "score": "0.48914504", "text": "function wc_product_generate_unique_sku($product_id, $sku, $index = 0)\n {\n }", "title": "" }, { "docid": "9109a9ccaa589e836b44b86910ae0979", "score": "0.48907524", "text": "public function sp_enable() {\n\n\t\t$options \t= get_option( $this->group . '-options' );\n\t\t$option \t= isset( $options['sp-enable']) ? $options['sp-enable'] : 1;\n\t\t$id \t\t= $this->group.'-options[sp-enable]';\n\t\t?>\n\t\t<input type=\"hidden\" name=\"<?php echo $id; ?>\" value=\"false\">\n\t\t<input type=\"checkbox\" id=\"<?php echo $id; ?>\" name=\"<?php echo $id; ?>\" value=\"1\" <?php checked($option, 1); ?> />\n\t\t<label for=\"<?php echo $id; ?>\">Show suggested products.</label>\n\t\t<?php\n\t}", "title": "" }, { "docid": "38dc18a43a8f0d84d8e5ca93017fdaf7", "score": "0.48904553", "text": "public function setSku($var)\n {\n GPBUtil::checkString($var, True);\n $this->sku = $var;\n }", "title": "" }, { "docid": "a9a24f797d1518dfac3ad044210277d9", "score": "0.48904294", "text": "public function getButtonPriceBySku($sku);", "title": "" }, { "docid": "3b032a8a200b91cef11b1b9ad370b1e2", "score": "0.48883078", "text": "function check_more_seller_product_tab( ) {\n global $post;\n $store_info = dokan_get_store_info( $post->post_author );\n if( isset( $store_info['show_more_ptab'] ) AND $store_info['show_more_ptab'] == 'yes' ){\n return true;\n }else {\n return false;\n }\n}", "title": "" }, { "docid": "60a4b8bbdd2493210d294690e75196fe", "score": "0.48844603", "text": "function add_sk() {\n//\t\tif (! $this->get_permission('fill_this')) return $this->intruder();\n\t\tglobal ${$GLOBALS['post_vars']};\n\n\t\tglobal $adodb;\n\t\t$record = $_POST;\n\t\tforeach ($record as $k => $v) $record[$k] = trim($v);\n\n // add record\n $rs = $adodb->Execute(\"SELECT * FROM \".$GLOBALS[my_table].\" WHERE id_sk='\".intval($record['oldpkvalue']).\"'\");\n if ($rs && ! $rs->EOF) {\n $adodb->Execute($adodb->GetUpdateSQL($rs, $record, 1));\n $st = \"Updated\";\n } else {\n $record['insert_by'] = $ses->loginid;\n $record['date_insert'] = time();\n $adodb->Execute($adodb->GetInsertSQL($rs, $record));\n $st = \"Added\";\n }\n\n $status = \"Successfull $st SK \".$GLOBALS[my_title].\" '<b>{$record['no_sk']}</b>'\";\n $this->log($status);\n\n $_block = new block();\n $_block->set_config('title', 'Status');\n $_block->set_config('width', \"90%\");\n $_block->parse(array(\"*\".$status));\n return $_block->get_str();\n\t}", "title": "" }, { "docid": "5af2cee4ebfa0bd6d87e584bd172b5ff", "score": "0.48721763", "text": "public function setPrefectButton()\n {\n // If ???? complete button active\n\n // If no correspondence, \"send head prefect email\"\n\n // if correspondence greater than 0 \"head prefect email sent\" btn-success-\n // need drop down to resend\n\n // else button disabled\n\n\n }", "title": "" }, { "docid": "a74f8d4e5926295b8345d7365b428247", "score": "0.48691645", "text": "function shop_isle_big_title_section_display_button() {\n\n\t$shop_isle_big_title_button_label = get_theme_mod( 'shop_isle_big_title_button_label', __( 'Read more', 'shop-isle' ) );\n\t$shop_isle_big_title_button_link = get_theme_mod( 'shop_isle_big_title_button_link', __( '#', 'shop-isle' ) );\n\n\tif ( ! empty( $shop_isle_big_title_button_label ) && ! empty( $shop_isle_big_title_button_link ) ) {\n\t\techo '<a href=\"' . esc_url( $shop_isle_big_title_button_link ) . '\" class=\"section-scroll btn btn-border-w btn-round\">' . $shop_isle_big_title_button_label . '</a>';\n\t} else {\n\t\tif ( is_customize_preview() ) {\n\t\t\techo '<a href class=\"section-scroll btn btn-border-w btn-round si-hidden-in-customizer\"></a>';\n\t\t}\n\t}\n}", "title": "" }, { "docid": "55bf77906306c7cbedf3dedcdce3c40c", "score": "0.48643014", "text": "function my_quotes_stuff_button($wp_admin_bar) {\n if( current_user_can('shop_manager') || current_user_can('administrator') ) {\n $dia_user = wp_get_current_user();\n $dia_user_id = esc_html( $dia_user->ID );\n $URL = site_url();\n $args = array(\n 'id' => 'my_quotes_button',\n 'title' => 'My Quotes',\n 'href' => $URL.'/wp-admin/edit.php?&post_type=shop_order&_current_user='.$dia_user_id,\n 'meta' => array(\n 'title' => 'View Quotes That I Created'\n )\n );\n $wp_admin_bar -> add_node($args);\n\n $other_args = array(\n 'id' => 'ns_quotes_button',\n 'title' => 'Nursing School Quotes',\n 'href' => $URL.'/wp-admin/edit.php?post_type=shop_order&dia_order_quote_header_drop_option=nursing_school',\n 'meta' => array(\n 'title' => 'Hey Jon, How\\'s your roomate(s)'\n )\n );\n $wp_admin_bar -> add_node($other_args);\n\n $ot_args = array(\n 'id' => 'hos_quotes_button',\n 'title' => 'Hospital Team Quotes',\n 'href' => $URL.'/wp-admin/edit.php?post_type=shop_order&dia_order_quote_header_drop_option=hospital_mm',\n 'meta' => array(\n 'title' => 'Justin is not funny. At all.'\n )\n );\n $wp_admin_bar -> add_node($ot_args);\n }\n}", "title": "" }, { "docid": "8c7084cf8db83dc4df90f080c5db6340", "score": "0.48592496", "text": "function to_show_offer_on_checkout() {\n do_shortcode(\"[so_show_offers]\");\n }", "title": "" }, { "docid": "4230193f2966f577802313cfe98e42cf", "score": "0.48546702", "text": "function mJobPackageScripts() {\n /**\n * Change checkbox to radio for most popular mJob categories tab\n */\n ?>\n <script>\n (function($) {\n $('#mjob_category-pop').find('li').each(function() {\n $(this).find('input[type=\"checkbox\"]').attr('type', 'radio');\n $(this).find('input[type=\"radio\"]').attr('name', 'tax_input[mjob_category][]');\n });\n })(jQuery)\n </script>\n <?php\n\n if(isset($_GET['page']) && $_GET['page'] == 'et-settings') {\n ?>\n <script>\n (function($) {\n $('body').delegate('input[name=\"et_permanent\"]', 'click', function() {\n var disabled = $(this).attr('data-disable');\n if($(this).is(':checked')) {\n $('input[name='+disabled+']').attr('disabled', true);\n $('label[for='+disabled+']').remove();\n } else {\n $('input[name='+disabled+']').removeAttr('disabled');\n }\n });\n })(jQuery)\n </script>\n <?php\n }\n\n // Include template part for admin\n if(is_admin() && ( isset( $_GET['page'] ) && $_GET['page'] == 'et-wizard' )) {\n ?>\n <div class=\"modal fade\" id=\"preview-skin-modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\">\n <div class=\"modal-dialog\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-body\">\n\n </div>\n </div>\n </div>\n </div>\n <?php\n }\n }", "title": "" }, { "docid": "c0d0d493498cfd0ee06fc008b315f2ad", "score": "0.48522237", "text": "public function sitestoreproductGutterShare() {\n if (!Engine_Api::_()->core()->hasSubject('sitestoreproduct_product')) {\n return false;\n }\n\n //GET SUBJECT\n $sitestoreproduct = Engine_Api::_()->core()->getSubject('sitestoreproduct_product');\n\n //GET VIEWER ID\n $viewer_id = Engine_Api::_()->user()->getViewer()->getIdentity();\n\n //RETURN IF VIEWER IS EMPTY\n if (empty($viewer_id)) {\n return false;\n }\n\n return array(\n 'class' => 'smoothbox seaocore_icon_share buttonlink',\n 'route' => 'default',\n 'params' => array(\n 'module' => 'activity',\n 'controller' => 'index',\n 'action' => 'share',\n 'type' => $sitestoreproduct->getType(),\n 'id' => $sitestoreproduct->getIdentity(),\n 'format' => 'smoothbox',\n ),\n );\n }", "title": "" }, { "docid": "f03a032d8d7ffd4d800852df68b405e8", "score": "0.48508677", "text": "function getWidgetHTML($customer_id, $btn_text, $style, $presetClass = '') {\n $buttonHTML = $presetClass ? $defaultPresetButtonHTML : $styledButtonHTML;\n if ($presetClass) {\n $continueButton = renderPresetButton('cClick()', \"Click Here To Checkout\", $presetClass);\n $buttonHTML = renderPresetButton('OfferPriceSubmit();', $btn_text, $presetClass);\n } else {\n $continueButton = renderStyledButton('cClick()', \"Click Here To Checkout\", $style);\n\t\tswitch($customer_id){\n\t\t\tcase \"68\":\n\t\t\t\t$style = \"color:white !important;background-color:#0099FF !important;width:151px !important; font-weight:bold;border:0px none\";\n\t\t\tbreak;\n\t\t\t\n\t\t}\n $buttonHTML = renderStyledButton('OfferPriceSubmit();', $btn_text, $style);\n }\n\n $default = '<div class=\"maoContent\" style=\"padding:17px;border:1px dashed #DDD\"><div id=\"cong_inline\"></div><div id=\"inline-oform\"> <form action=\"\" method=\"post\" id=\"ContactForm\" class=\"\"> <div style=\"margin-top:0px;font-family:verdana;margin-bottom:8px;\">Buy this product at your own price. <br /> Just enter your price below and hit submit</div><div style=\"\"><span style=\"font-weight:bold;font-size:18px;padding-right:10px;\">$</span><input type=\"text\" onblur=\"return change_blur(this.value);\" onfocus=\"return change_focus(this.value);\" value=\"Like The Product? Make Us An Offer\" style=\"width:57%;height:24px;font-size:13px;;font-weight:bold;\" name=\"contact_fullname\" id=\"contact_fullname\"> <br /> ' . $buttonHTML . ' <div style=\"display:none;\" id=\"loader_img1\"> Please Wait...</div> </div> </div><div style=\"display:none;\" id=\"success_offer\"><div style=\"display:none;\" id=\"addtocart2\"><input type=\"text\" disabled=\"disabled\" value=\"Congrats, Your Offer Accepted\" style=\"width:57%;height:24px;font-size:13px;background-color:green;color:#FFF;font-weight:bold;\" name=\"contact_fullname\" id=\"contact_fullname\"> ' . $continueButton . '</div><div><a style=\"margin-left:10px;\" onclick=\"return ResetCoupon();\" href=\"javascript:void(0);\">Try Again</a></div></div><div id=\"customer_id_val\" style=\"display:none;\">' . $customer_id . '</div></div>';\n\n// $bgColor = \"\";\n switch ($customer_id) {\n case \"58\": // special case for mensring\n //$default = '<div style=\"position:relative;right:128px;width:351px;\"><div style=\"height:10px\" >&nbsp;</div><div class=\"maoContent\" style=\"padding:17px;border:1px dashed #DDD\"><div id=\"cong_inline\"></div><div id=\"inline-oform\"> <form action=\"\" method=\"post\" id=\"ContactForm\" class=\"\"> <div style=\"margin-top:0px;font-family:verdana;margin-bottom:8px;\">Buy this product at your own price. <br /> Just enter your price below and hit submit</div><div style=\"\"><span style=\"font-weight:bold;font-size:18px;padding-right:10px;\">$</span><input type=\"text\" onblur=\"return change_blur(this.value);\" onfocus=\"return change_focus(this.value);\" value=\"Like The Product? Make Us An Offer\" style=\"width:275px;height:24px;font-size:13px;;font-weight:bold;\" name=\"contact_fullname\" id=\"contact_fullname\"> <br /> ' . $buttonHTML . ' <div style=\"display:none;\" id=\"loader_img1\"> Please Wait...</div> </div> </div><div style=\"display:none;\" id=\"success_offer\"><div style=\"display:none;\" id=\"addtocart2\"><input type=\"text\" disabled=\"disabled\" value=\"Congrats, Your Offer Accepted\" style=\"width:275px;height:24px;font-size:13px;background-color:green;color:#FFF;font-weight:bold;\" name=\"contact_fullname\" id=\"contact_fullname\"> ' . $continueButton . '</div><div style=\"display:none\"><a style=\"margin-left:10px;\" onclick=\"return ResetCoupon();\" href=\"javascript:void(0);\">Try Again</a></div></div><div id=\"customer_id_val\" style=\"display:none;\">' . $customer_id . '</div></div></div>';\n //$default .= '<link href=\"' . _OFFER_APP_CSS_PATH . '\" rel=\"stylesheet\" />'; \n //$default = file_get_contents(__DIR__ . \"/WidgetTemplates/rightFixButtonWithPopup.php\");\n\n $default = file_get_contents(__DIR__ . \"/WidgetTemplates/nenad-brent-mockup.php\");\n $default = str_replace(\"\\n\", \"\", $default);\n $default .= '<div id=\"customer_id_val\" style=\"display:none;\">' . $customer_id . '</div>';\n\n break;\n case \"100\":\n\t\tbreak;\n case \"115\":\n\t\t$default = '<div class=\"maoContent\" style=\"padding:17px;border:1px dashed #DDD\"><div id=\"cong_inline\"></div><div id=\"inline-oform\"> <form action=\"\" method=\"post\" id=\"ContactForm\" class=\"\"> <div style=\"margin-top:0px;font-family:verdana;margin-bottom:8px;\">Buy this product at your own price. <br /> Just enter your price below and hit submit</div><div style=\"\"><span style=\"font-weight:bold;font-size:18px;padding-right:10px;\">$</span><input type=\"text\" onblur=\"return change_blur(this.value);\" onfocus=\"return change_focus(this.value);\" value=\"Like The Product? Make Us An Offer\" style=\"width:57%;height:24px;font-size:13px;;font-weight:bold;\" name=\"contact_fullname\" id=\"contact_fullname\"> <br /> ' . $buttonHTML . ' <div style=\"display:none;\" id=\"loader_img1\"> Please Wait...</div> </div> </div><div style=\"display:none;\" id=\"success_offer\"><div style=\"display:none;\" id=\"addtocart2\"><input type=\"text\" disabled=\"disabled\" value=\"Congrats, Your Offer Accepted\" style=\"width:57%;height:24px;font-size:13px;background-color:green;color:#FFF;font-weight:bold;\" name=\"contact_fullname\" id=\"contact_fullname\"> ' . $continueButton . '</div></div><div id=\"customer_id_val\" style=\"display:none;\">' . $customer_id . '</div></div>';\n\t\tbreak;\n case \"100\":\n \n //case \"68\":\n case \"137\":\n\t\t\t$default = '<div id=\"customer_id_val\" style=\"display:none;\">' . $customer_id . '</div>';\n $default .= '<link href=\"' . _OFFER_APP_CSS_PATH . '\" rel=\"stylesheet\" />';\n $default .= file_get_contents(__DIR__ . \"/WidgetTemplates/jeff.php\");\n $default = str_replace(\"\\n\", \"\", $default);\n\t\tbreak;\n case \"99\":\n $default = '<div id=\"customer_id_val\" style=\"display:none;\">' . $customer_id . '</div>';\n $default .= '<link href=\"' . _OFFER_APP_CSS_PATH . '\" rel=\"stylesheet\" />';\n $default .= file_get_contents(__DIR__ . \"/WidgetTemplates/rightFixButtonWithPopup.php\");\n $default = str_replace(\"\\n\", \"\", $default);\n break;\n default:\n $html = $default;\n $buttonHTML .= '<link href=\"' . _OFFER_APP_CSS_PATH . '\" rel=\"stylesheet\" />';\n\t\t\t\n\t\t\tswitch($_REQUEST['cust_id']){\n\t\t\t\tcase \"117\":\n\t\t\t\t$default .= '<link href=\"' . _OFFER_APP_URL . 'offer-price/mao_117.css\" rel=\"stylesheet\" />';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t\n }\n $html = $default;\n $bgColor = \"\";\n\n return array(\"html\" => $html, \"bgColor\" => $bgColor);\n}", "title": "" }, { "docid": "38940f624eabae9f55fec97a8a53d172", "score": "0.4848154", "text": "public function SetPanelSettings()\n\t{\n\n\t\t$this->productClass = GetClass('ISC_PRODUCT');\n\t\t$this->db = $GLOBALS['ISC_CLASS_DB'];\n\n\t\t$productDetails = $this->productClass->GetProduct();\n\n\t\t$productCats\t=\texplode(',', $productDetails['prodcatids']);\n\t\t\n\t\t$GLOBALS['ShowCustomeButton']\t=\t'none';\n\n\t\tforeach($productCats\tAS\t$index\t=> $catId){\n\t\t\n\t\t\t$catSql\t\t=\t\"SELECT * FROM `[|PREFIX|]categories` WHERE `categoryid` = '$catId' \";\n\t\t\t$catQuery\t=\t$GLOBALS['ISC_CLASS_DB']->Query($catSql);\n\t\t\t$catInfo\t=\t$GLOBALS['ISC_CLASS_DB']->Fetch($catQuery);\n\n\t\t\tif(\t$catInfo['catparentid']\t==\t'13'\t){\n\t\t\t\t$GLOBALS['ShowCustomeButton']\t=\t'';\n\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\n\n\t\t$pageSql\t=\t\"\tSELECT * FROM `[|PREFIX|]pages` WHERE `pageid` = '9'\t\";\n\t\t$pageQuery\t=\t$GLOBALS['ISC_CLASS_DB']->Query($pageSql);\n\t\t$pageInfo\t=\t$GLOBALS['ISC_CLASS_DB']->Fetch($pageQuery);\n\n\t\t$GLOBALS['CustomButtonLink']\t=\tPageLink($pageInfo['pageid'], $pageInfo['pagetitle']);\n\t\n\t\t\n\t}", "title": "" }, { "docid": "d15eeb1dad364c994a092a6bb04ff031", "score": "0.484747", "text": "function to_show_offer_on_account() {\n do_shortcode(\"[so_show_offers]\");\n }", "title": "" }, { "docid": "2f7ff48940165f2cace807d1bd40f105", "score": "0.48467124", "text": "public function selectForBatchAction() {\n\t\t$this->findThumbnail()->click();\n\t}", "title": "" }, { "docid": "adf66dc2bf3794ae1c28f4b90bf7e871", "score": "0.48463202", "text": "public function onMenuInitialize_sitestoreproductWishlistGutterShare() {\n if (!Engine_Api::_()->core()->hasSubject('sitestoreproduct_wishlist')) {\n return false;\n }\n //GET VIEWER ID\n $viewer_id = Engine_Api::_()->user()->getViewer()->getIdentity();\n\n //RETURN IF VIEWER IS EMPTY\n if (empty($viewer_id)) {\n return false;\n }\n //GET SUBJECT\n $subject = Engine_Api::_()->core()->getSubject('sitestoreproduct_wishlist');\n return array(\n 'class' => 'smoothbox seaocore_icon_share buttonlink',\n 'route' => 'default',\n 'params' => array(\n 'module' => 'activity',\n 'controller' => 'index',\n 'action' => 'share',\n 'type' => $subject->getType(),\n 'id' => $subject->getIdentity(),\n 'format' => 'smoothbox',\n ),\n );\n }", "title": "" }, { "docid": "2aa7fa1e13084299355b4e0bfe353b56", "score": "0.4844657", "text": "function add_skillbox() {\r\n $nonce = $_POST['security'];\r\n if (! wp_verify_nonce($nonce, 'aqpb-settings-page-nonce') ) die('-1');\r\n\r\n $count = isset($_POST['count']) ? absint($_POST['count']) : false;\r\n $this->block_id = isset($_POST['block_id']) ? $_POST['block_id'] : 'aq-block-9999';\r\n\r\n //default key/value for the tab\r\n $box = array(\r\n 'title' => 'New Skill',\r\n 'icon' => 'Icon',\r\n 'value' => 'Value %'\r\n );\r\n\r\n if($count) {\r\n $this->box($box, $count);\r\n } else {\r\n die(-1);\r\n }\r\n\r\n die();\r\n }", "title": "" }, { "docid": "635cc0fd46448688e6b02ee022b2c673", "score": "0.4842421", "text": "function _productStockUpdate($sku, $qty){\n\t\t\n\t\t$connection = Mage::getSingleton('core/resource')->getConnection('core_read');\n\t\t$connectionW = Mage::getSingleton('core/resource')->getConnection('core_write');\n \n\t\t$product = Mage::getModel('catalog/product')->loadByAttribute('sku',$sku);\n\t\tif($product)\n\t\t {\n\t\t$stockItem = Mage::getModel('cataloginventory/stock_item')->loadByProduct($product->getId());\n\t\t$stockItemData = $stockItem->getData();\n\t\tif (empty($stockItemData)) {\n\t\t\n\t\t\t// Create the initial stock item object\n\t\t\t$stockItem->setData('manage_stock',1);\n\t\t\t$stockItem->setData('is_in_stock',$qty ? 1 : 0);\n\t\t\t$stockItem->setData('use_config_manage_stock', 0);\n\t\t\t$stockItem->setData('stock_id',1);\n\t\t\t$stockItem->setData('product_id',$product->getId());\n\t\t\t$stockItem->setData('qty',0);\n\t\t\t$stockItem->save();\n\t\t\n\t\t\t// Init the object again after it has been saved so we get the full object\n\t\t\t$stockItem = Mage::getModel('cataloginventory/stock_item')->loadByProduct($product->getId());\n\t\t}\n\t\t\n\t\t// Set the quantity\n\t\t$stockItem->setData('is_in_stock',$qty ? 1 : 0);\n\t\t$stockItem->setData('qty',$qty);\n\t\t$stockItem->save();\n\t\t$product->save();\n\t\t\n\t }\t\n\n }", "title": "" }, { "docid": "62b8ad28807d5881fe69e1f56dd61af9", "score": "0.48396727", "text": "public function setSKU($sKU)\n {\n $this->sKU = $sKU;\n return $this;\n }", "title": "" }, { "docid": "62b8ad28807d5881fe69e1f56dd61af9", "score": "0.48396727", "text": "public function setSKU($sKU)\n {\n $this->sKU = $sKU;\n return $this;\n }", "title": "" }, { "docid": "8791ef82e2fdcd36c20f31f4ab91ce40", "score": "0.48342982", "text": "public function productAvailableAction()\n {\n $this->loadLayout();\n $this->getLayout()\n ->getBlock('netevensync.product.view.available')\n ->setCheckedProducts($this->getRequest()->getPost('netevensync_available', null));\n $this->renderLayout();\n }", "title": "" }, { "docid": "29fe56e7e8330b45a5289fb6592e20bf", "score": "0.48302367", "text": "public function setAsVisible();", "title": "" }, { "docid": "71da658298c33444c6a24a5f5342778f", "score": "0.482874", "text": "public function SetPanelSettings()\n\t\t{\n\t\t\t$items = getCustomerQuote()->getItems();\n\t\t\tforeach($items as $item) {\n\t\t\t $pid=$item->getProductId();\n\t\t\t $quantity=$item->getQuantity();\n\t\t\t \n\t\t\t}\n\t\t\t\n\t\t\t//No mostrar el Panel a menos que deba mostrarlo.\n\t\t\t$mostrar=0;\n\t\t\t/*$GLOBALS['ShippingInfoBoxDisplay'] = 'display:none';\n\t\t\t$GLOBALS['ShippingSucursalOptionsDisplay'] = 'display:none';*/\n\t\t\t\n\t\t\t\n\t\t\t//Me fijo si el usuario es de una provincia que tiene envio\n\t\t\t$query = \"SELECT * FROM isc_shipping_addresses i where shipcustomerid=\".getClass('ISC_CUSTOMER')->getCustomerId();\t\t\n\n\t\t\t$result = $GLOBALS['ISC_CLASS_DB']->Query($query);\n\t\t\t\n\t\t\tif ($row = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) {\t\t\n\t\t\t //Si tiene cargado una provincia y no es capital ni buenos aires.. continuo\n\t\t\t\tif ( $row ['shipstateid']>0 and $row ['shipstateid']!=1001 and $row ['shipstateid']!=1006)\n\t\t\t\t{\t\n\t\t\t\t\t//me guardo la provincia para usarla despues en sucursales\n\t\t\t\t $provinciaId=$row ['shipstateid'];\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Me fijo la configuracion del producto\n\t\t\t\t\t$query = \"SELECT shippingallowed,prodfixedshippingcost,prodfixedshippingcost2 FROM [|PREFIX|]products i where productid=\".$pid;\t\t\t\t\t\t\t\t\n\t\t\t\t\t$result = $GLOBALS['ISC_CLASS_DB']->Query($query);\n\n\t\t\t\t\tif ($row = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) {\n\t\t\t\t\t\n\t\t\t\t\t //cargo informacion que voy a necesitar del producto. \t\t\t\t\t\n\t\t\t\t\t\t$precioSucursal = number_format($row ['prodfixedshippingcost'] * $quantity, GetConfig('DecimalPlaces'), GetConfig('DecimalToken'), \"\");\n\t\t\t\t\t\t$precioDomicilio=number_format($row ['prodfixedshippingcost2'] * $quantity, GetConfig('DecimalPlaces'), GetConfig('DecimalToken'), \"\");\n\t\t\t\t\t\t$shippingallowed=$row ['shippingallowed'];\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t$textoOpciones=\"\";\n\t\t\t\t\t\t$opcion=\"\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ($shippingallowed==1 || $shippingallowed==3) \n\t\t\t\t\t\t\t{\t\t\n\t\t\t\t\t\t\t\t$query = \"select count(*) from isc_sucursales where state_id = \".$provinciaId;\n\t\t\t\t\t\t\t\t$result = $GLOBALS['ISC_CLASS_DB']->Query($query);\n\t\t\t\t\t\t\t\t$isscuc = $GLOBALS['ISC_CLASS_DB']->FetchOne($result);\n\t\t\t\t\t\t\t\tif($isscuc > 0){\n\t\t\t\t\t\t\t\t $textoOpciones.=\"Precio Entrega en Sucursal: $\". $precioSucursal . \"<br/>\" ;\n\t\t\t\t\t\t\t\t $opcion.='<option value=\"1\">Entrega en Sucursal</option>';\t\n\t\t\t\t\t\t\t\t\t//trae telefono\n\t\t\t\t\t\t\t\t\t$query1 = \"SELECT shipphone FROM isc_shipping_addresses WHERE shipcustomerid = \".getClass('ISC_CUSTOMER')->getCustomerId();\n\t\t\t\t\t\t\t\t\t$result1 = $GLOBALS['ISC_CLASS_DB']->Query($query1);\n\t\t\t\t\t\t\t\t\t$GLOBALS['Suctel'] = $GLOBALS['ISC_CLASS_DB']->FetchOne($result1);\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ($shippingallowed==2 || $shippingallowed==3) \n\t\t\t\t\t\t\t{$textoOpciones.=\"Precio Entrega en Domicilio: $\". $precioDomicilio . \"<br/>\" ;\n\t\t\t\t\t\t\t$opcion.='<option value=\"2\">Entrega en Domicilio</option>';\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$GLOBALS['hiddenMethodPrice'] = \"<input type='hidden' name='precioSucursalHidden' value='\".$precioSucursal.\"' /><input type='hidden' name='precioDomicilioHidden' value='\".$precioDomicilio.\"' />\";\n\t\t\t\t\t\t\n\t\t\t\t\t\t$GLOBALS['TextoOpciones']=$textoOpciones;\n\t\t\t\t\t\tif ($opcion!=\"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t $opcion='<select onchange=\"showshipping(this.value)\" id=\"ShippingType\" name=\"ShippingType\">'.'<option value=\"0\">Selecciona M&eacute;todo de Env&iacute;o</option>'. $opcion. \"</select>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$GLOBALS['SelectShippingOptions']=$opcion;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ($shippingallowed>0)\n\t\t\t\t\t\t\t{$mostrar=1;}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t\t$GLOBALS['SucursalOptionsList'] = $this->GenerateSucursalSelect($provinciaId);\n\t\t\n\t\t\tif ($mostrar==1)\n\t\t\t{\n\t\t\t\n\t\t\t\t$GLOBALS['HideTabMultiple'] = 'display: none';\n\t\t\t\t$GLOBALS['ActiveTabSingle'] = 'Active';\n\t\t\t\t$GLOBALS['ShippingInfoBoxDisplay'] = 'display:none';\n\t\t\t\t$GLOBALS['ShippingSucursalOptionsDisplay'] = 'display:none';\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$GLOBALS['SNIPPETS']['ShippingAddressList'] = \"\";\n\t\t\t\t$GLOBALS['ShippingAddressRow'] = \"\";\n\t\t\t\t$count = 0;\n\n\t\t\t\t$GLOBALS['ISC_CLASS_CUSTOMER'] = GetClass('ISC_CUSTOMER');\n\n\n\t\t\t\t$numItems = getCustomerQuote()->getNumPhysicalItems();\n\n\t\t\t\t// Get a list of all shipping addresses for this customer and out them as radio buttons\n\t\t\t\t$shipping_addresses = $GLOBALS['ISC_CLASS_CUSTOMER']->GetCustomerShippingAddresses();\n\n\t\t\t\tif(empty($shipping_addresses) && isset($GLOBALS['CheckoutShippingIntroNoAddresses'])) {\n\t\t\t\t\t$GLOBALS['CheckoutShippingIntro'] = $GLOBALS['CheckoutShippingIntroNoAddresses'];\n\t\t\t\t}\n\n\t\t\t\t$GLOBALS['SplitAddressList'] = '';\n\t\t\t\tforeach($shipping_addresses as $address) {\n\t\t\t\t\t$GLOBALS['ShippingAddressId'] = (int) $address['shipid'];\n\t\t\t\t\t$GLOBALS['ShipFullName'] = isc_html_escape($address['shipfirstname'].' '.$address['shiplastname']);\n\n\t\t\t\t\t$GLOBALS['ShipCompany'] = '';\n\t\t\t\t\tif($address['shipcompany']) {\n\t\t\t\t\t\t$GLOBALS['ShipCompany'] = isc_html_escape($address['shipcompany']).'<br />';\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['ShipAddressLine1'] = isc_html_escape($address['shipaddress1']);\n\n\t\t\t\t\tif($address['shipaddress2'] != \"\") {\n\t\t\t\t\t\t$GLOBALS['ShipAddressLine2'] = isc_html_escape($address['shipaddress2']);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$GLOBALS['ShipAddressLine2'] = '';\n\t\t\t\t\t}\n\n\t\t\t\t\t$GLOBALS['ShipSuburb'] = isc_html_escape($address['shipcity']);\n\t\t\t\t\t$GLOBALS['ShipState'] = isc_html_escape($address['shipstate']);\n\t\t\t\t\t$GLOBALS['ShipZip'] = isc_html_escape($address['shipzip']);\n\t\t\t\t\t$GLOBALS['ShipCountry'] = isc_html_escape($address['shipcountry']);\n\n\t\t\t\t\tif($address['shipphone'] != \"\") {\n\t\t\t\t\t\t$GLOBALS['ShipPhone'] = isc_html_escape(sprintf(\"%s: %s\", GetLang('Phone'), $address['shipphone']));\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$GLOBALS['ShipPhone'] = \"\";\n\t\t\t\t\t}\n\n\t\t\t\t\t$splitAddressFields = array(\n\t\t\t\t\t\t$address['shipfirstname'].' '.$address['shiplastname'],\n\t\t\t\t\t\t$address['shipcompany'],\n\t\t\t\t\t\t$address['shipaddress1'],\n\t\t\t\t\t\t$address['shipaddress2'],\n\t\t\t\t\t\t$address['shipcity'],\n\t\t\t\t\t\t$address['shipstate'],\n\t\t\t\t\t\t$address['shipzip'],\n\t\t\t\t\t\t$address['shipcountry']\n\t\t\t\t\t);\n\n\t\t\t\t\t// Please see self::GenerateShippingSelect below.\n\t\t\t\t\t\n\t\t\t\t\t$splitAddressFields = array_filter($splitAddressFields, array($this, 'FilterAddressFields'));\n\t\t\t\t\t$splitAddress = isc_html_escape(implode(', ', $splitAddressFields));\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$GLOBALS['SplitAddressList'] .= '<option value=\"'.$address['shipid'].'\" <sel'.$address['shipid'].'>>'.$splitAddress.'</option>';\n\n\t\t\t\t\t$GLOBALS['SNIPPETS']['ShippingAddressList'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet(\"CheckoutShippingAddressItem\");\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\t$GLOBALS['SNIPPETS']['MultiShippingItem'] = '';\n\t\t\t\t\tif(!gzte11(ISC_MEDIUMPRINT) || !GetConfig('MultipleShippingAddresses') || !CustomerIsSignedIn() || $numItems == 1 || !isset($GLOBALS['ISC_CLASS_CHECKOUT'])) {\n\t\t\t\t\t\t$GLOBALS['HideShippingTabs'] = 'display: none';\n\t\t\t\t\t\t$GLOBALS['HideMultiShipping'] = 'display: none';\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif((isset($_REQUEST['type']) && $_REQUEST['type'] == 'multiple') || getCustomerQuote()->getIsSplitShipping() && CustomerIsSignedIn()) {\n\t\t\t\t\t\t\t$GLOBALS['HideTabSingle'] = 'display: none';\n\t\t\t\t\t\t\t$GLOBALS['HideTabMultiple'] = '';\n\t\t\t\t\t\t\t$GLOBALS['ActiveTabSingle'] = '';\n\t\t\t\t\t\t\t$GLOBALS['ActiveTabMultiple'] = 'Active';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\n\t\t\t\t\tforeach($items as $item) {\n\t\t\t\t\t\t$GLOBALS['ProductName'] = isc_html_escape($item->getName());\n\n\t\t\t\t\t\t// Is this product a variation?\n\t\t\t\t\t\t$GLOBALS['ProductOptions'] = '';\n\t\t\t\t\t\t$options = $item->getVariationOptions();\n\t\t\t\t\t\tif(!empty($options)) {\n\t\t\t\t\t\t\t$GLOBALS['ProductOptions'] .= \"<br /><small>(\";\n\t\t\t\t\t\t\t$comma = '';\n\t\t\t\t\t\t\tforeach($options as $name => $value) {\n\t\t\t\t\t\t\t\tif(!trim($name) || !trim($value)) {\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$GLOBALS['ProductOptions'] .= $comma.isc_html_escape($name).\": \".isc_html_escape($value);\n\t\t\t\t\t\t\t\t$comma = ', ';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$GLOBALS['ProductOptions'] .= \")</small>\";\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t// Loop through the cart items and add them individually to the list\n\t\t\t\t\t\t$quantity = $item->getQuantity();\n\t\t\t\t\t\tfor($i = 1; $i <= $quantity; ++$i) {\n\t\t\t\t\t\t\t$GLOBALS['AddressFieldId'] = $item->getId().'_'.$i;\n\t\t\t\t\t\t\t$sel = $item->getAddressId();\n\t\t\t\t\t\t\t$GLOBALS['ShippingAddressSelect'] = $this->GenerateShippingSelect($GLOBALS['SplitAddressList'], $sel);\n\t\t\t\t\t\t\t$GLOBALS['SNIPPETS']['MultiShippingItem'] .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('MultiShippingItem');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "1b66537c4968ae968280b0378074b29b", "score": "0.4827618", "text": "function efCustisLinkBeginUseskin($self, $target, &$text, &$customAttribs, &$query, &$options, &$ret)\n{\n global $wgRequest, $wgEnableParserCache;\n $sk = $wgRequest->getVal('useskin');\n if ($sk)\n {\n $query['useskin'] = $sk;\n $wgEnableParserCache = false;\n }\n return true;\n}", "title": "" }, { "docid": "9dd524def43d4c5735b6cec5b79e9523", "score": "0.48262447", "text": "function shortcode_for_showing_quantity($atts) {\n\n extract(shortcode_atts(array(\n 'value' => 1,\n 'allow_change' => 'false',\n 'min' => 1,\n 'max' => '',\n 'prod_id' => '',\n 'offer_id' => '',\n 'page' => '',\n 'where_url' => ''\n ), $atts));\n\n global $sa_smart_offers;\n\n if ($page == \"cart_page\" && !($sa_smart_offers->is_wc_gte_20()))\n return;\n\n if ($allow_change == 'false') {\n $style = \"display: none\";\n }\n\n $accept_link = do_shortcode(\"[so_acceptlink offer_id=\" . $offer_id . \" page_url=\" . urlencode($where_url . \"/\") . \"]\");\n $accept_link = untrailingslashit( str_replace( \"#038;\", \"&\", $accept_link ) );\n\n $html = '<form action=\"' . $accept_link . '\" method=\"POST\" id=\"so_qty_' . $offer_id . '\"';\n if (!empty($style)) {\n $html .= 'style=\"' . $style . '\"';\n }\n $html .= '>';\n\n $qty_params = array('input_value' => $value,\n 'max_value' => $max,\n 'min_value' => $min);\n\n $html .= woocommerce_quantity_input($qty_params, null, false);\n $html .= '</form>';\n\n return $html;\n }", "title": "" }, { "docid": "d472cc8d3a89388e2118fcfbb183c464", "score": "0.48258424", "text": "public static function addAQuantityForProductStrikeOut(){\n $config = FlycartWooDiscountBase::get_instance();\n $show_price_discount = $config->getConfigData('show_price_discount_on_product_page', 'show');\n $add = true;\n if($show_price_discount == 'show_after_rule_matches'){\n $add = false;\n }\n\n return $add;\n }", "title": "" }, { "docid": "82c6c639e15b34d01844befe39bdad75", "score": "0.48100647", "text": "public function wwof_get_product_stock_quantity_visibility_class () {\n\n $show_stock_quantity = get_option( 'wwof_general_show_product_stock_quantity' );\n\n if ( $show_stock_quantity === 'yes' )\n return apply_filters( 'wwof_filter_stock_quantity_visibility_class' , 'visible' );\n else\n return apply_filters( 'wwof_filter_stock_quantity_visibility_class' , 'hidden' );\n\n }", "title": "" }, { "docid": "14211507edec2c849b2a3c64ba6643d6", "score": "0.48060295", "text": "protected function sku_exists() {\r\n // Make sure it's a valid ajax call\r\n $response = new AjaxResponse( $this->verified() );\r\n\r\n $response->check( isset( $_POST['sku'], $_POST['brand_id'] ) && !empty( $_POST['sku'] ) && !empty( $_POST['brand_id'] ), _('Please type in a SKU & Brand') );\r\n\r\n // If there is an error or now user id, return\r\n if ( $response->has_error() )\r\n return $response;\r\n\r\n // Instantiate objects\r\n $product = new Product();\r\n\r\n // Check to see if it already exists\r\n $product->get_by_sku_by_brand( $_POST['sku'], $_POST['brand_id'] );\r\n\r\n if ( $product->id ) {\r\n $account_product = new AccountProduct();\r\n $account_product->get( $product->id, $this->user->account->id );\r\n\r\n if ( $account_product->product_id && $account_product->active )\r\n $message = 'A product with same SKU already exists in record and it is already added in your website.';\r\n else\r\n $message = 'A product with the same SKU already exists in record.';\r\n\r\n $response->check( false, $message );\r\n return $response;\r\n } else {\r\n $response->add_response( 'product', false );\r\n }\r\n\r\n return $response;\r\n }", "title": "" }, { "docid": "6124fa1005bd2f28428ba32a8aee206c", "score": "0.4805877", "text": "public function createNewSku()\n {\n $result=false;\n infolog('[createNewSku] START at '. now());\n $p=$this->shopifyProduct;\n $v=$this->shopifyVariant;\n $product=Product::where(\"sku\",$v[\"sku\"])->first();\n if($product){\n dump_err('[createNewSku] ERROR: SKU FOUND: '.$v[\"sku\"].' cannot create! at '. now());\n }else{\n $product=new Product();\n $product->source_id=Source::UNITEX_SHOPIFY;\n $product->sku=$v[\"sku\"];\n $product->name=\"[NEW] \".$p[\"title\"].\" - \".$v[\"title\"];\n $product->description=$p[\"body_html\"];\n $product->category=\"Rugs\";\n $product->cost=-1;\n $product->sell=$v[\"price\"];\n $product->rrp=$v[\"compare_at_price\"];\n $product->listing_price=-1;\n $product->qty=$v[\"inventory_quantity\"];\n }\n infolog('[createNewSku] END at '. now());\n return($result);\n }", "title": "" }, { "docid": "cda315155ff8ff75412a31429200fe43", "score": "0.4796959", "text": "public function getSku() {\n return $this->sku;\n }", "title": "" }, { "docid": "22012c241dff247d7a4e4371a32fc2f7", "score": "0.47943145", "text": "public function testAction()\n {\n $categoryId = 64;\n\n $products = Mage::getModel('catalog/category')->load($categoryId)\n ->getProductCollection()\n ->addAttributeToSelect('*')\n ->addAttributeToFilter('status', 1)\n ->addAttributeToFilter('visibility', 4);\n\n\n $productId = 91470;\n\n $myProduct = Mage::getModel('catalog/product')->load($productId);\n\n /* echo \"<pre>\";\n var_dump($myProduct);\n echo \"</pre>\"; */\n\n /*echo \"<ul>\";\n\n foreach ($products as $product) {\n\n echo \"<li>\" . $product->getSku() . \"</li>\";\n }\n\n echo \"</ul>\"; */\n\n /*\n echo \"<pre>\";\n var_dump($products);\n echo \"</pre>\"; */\n\n echo '<h3>' . $myProduct->getData('name') . '</h3>';\n echo '<p><strong>$' . $myProduct->getData('price') . '</strong></p>';\n echo '<img src=\"http://localhost/media/catalog/product/' . $myProduct->getData('image') . '\" width=\"100px\" />';\n\n $fave = '0.FSC10412UN27';\n $faveInfo = Mage::getModel('catalog/product')->loadByAttribute('sku', $fave);\n\n $count = 0;\n\n $imgPathPre = \"<img src='https://www.cshardware.com/media/images/\";\n $imgPathPost = \"' width='30px'/>\";\n\n echo \"<table style='text-align:center;border: 2px solid black;'>\";\n echo \"<tr><th>SKU</th><th>Length</th><th>Shaft Diameter</th><th>Head</th><th>Thread</th><th>Drive</th><th>Nibs</th><th>Self-Tapping</th><th>Finish</th><th>Price</th></tr>\";\n\n foreach ($products as $product) {\n\n // check to make sure the screw is less than $3/ea. (weeds out the bulk screw buckets)\n if ( $product->getPrice() < 3.00 ) {\n\n // determine which image to show for the head, drive, and finish values\n // head\n switch ( strtolower($product->getData('head_value')) ) {\n\n case 'flat':\n $head = $imgPathPre . 'flathead_black.png' . $imgPathPost;\n break;\n\n case 'pan':\n $head = $imgPathPre . 'panhead_black.png' . $imgPathPost;\n break;\n\n case 'modified pan':\n $head = $imgPathPre . 'modified-pan_black.png' . $imgPathPost;\n break;\n\n case 'truss':\n $head = $imgPathPre . 'truss_black.png' . $imgPathPost;\n break;\n\n case 'round washer':\n $head = $imgPathPre . 'round-washer_black.png' . $imgPathPost;\n break;\n\n case 'large round washer':\n $head = $imgPathPre . 'largeRw-black.png' . $imgPathPost;\n break;\n case 'power head':\n $head = $imgPathPre . 'powerhead_black.png' . $imgPathPost;\n break;\n case 'undercut':\n $head = $imgPathPre . 'undercut_black.png' . $imgPathPost;\n break;\n\n case 'bugle':\n $head = $imgPathPre . 'bugle_black.png' . $imgPathPost;\n break;\n\n case 'oval':\n $head = $imgPathPre . 'oval_black.png' . $imgPathPost;\n break;\n\n case 'trim flat':\n $head = $imgPathPre . 'trim-flat_black.png' . $imgPathPost;\n break;\n\n case 'hex':\n $head = $imgPathPre . 'hex_black.png' . $imgPathPost;\n break;\n\n default:\n $head = '';\n }\n\n\n // drive\n switch ( strtolower($product->getData('driver_value')) ) {\n\n case 'phillips':\n $drive = $imgPathPre . 'phillipsdrive_sm.png' . $imgPathPost;\n break;\n\n case 'combo':\n $drive = $imgPathPre . 'combo_sm.png' . $imgPathPost;\n break;\n\n case 'square':\n $drive = $imgPathPre . 'squaredrive_sm.png' . $imgPathPost;\n break;\n\n case 'pozidriv':\n $drive = $imgPathPre . 'pozidrive_sm.png' . $imgPathPost;\n break;\n\n case 'other':\n $drive = '';\n break;\n\n default:\n $drive = '';\n }\n\n // finish\n switch ( strtolower($product->getData('finish_value')) ) {\n\n case 'zinc':\n $finish = $imgPathPre . 'zinc-swatch.gif' . $imgPathPost;\n break;\n\n case 'black':\n $finish = $imgPathPre . 'black-swatch.gif' . $imgPathPost;\n break;\n\n case 'plain':\n $finish = $imgPathPre . 'plain-swatch.gif' . $imgPathPost;\n break;\n\n case 'antique brass':\n $finish = $imgPathPre . 'antique-brass-swatch.gif' . $imgPathPost;\n break;\n\n case 'bright brass':\n $finish = $imgPathPre . 'bright-brass-swatch.gif' . $imgPathPost;\n break;\n\n case 'ultraguard':\n $finish = $imgPathPre . 'ultraguard-swatch.gif' . $imgPathPost;\n break;\n\n case 'white':\n $finish = $imgPathPre . 'blank.gif' . $imgPathPost;\n break;\n\n case 'stainless steel':\n $finish = $imgPathPre . 'stainless-steel-swatch.gif' . $imgPathPost;\n break;\n\n case 'statuatory-bronze':\n $finish = $imgPathPre . 'statuatory-bronze-swatch.gif' . $imgPathPost;\n break;\n\n case 'protec-kote':\n $finish = $imgPathPre . 'protec-kote-swatch.gif' . $imgPathPost;\n break;\n\n case 'blue-kote':\n $finish = $imgPathPre . 'blue-kote-swatch.gif' . $imgPathPost;\n break;\n\n case 'nickel':\n $finish = $imgPathPre . 'nickel-swatch.gif' . $imgPathPost;\n break;\n\n case 'nylan':\n $finish = $imgPathPre . 'nylan-swatch.gif' . $imgPathPost;\n break;\n\n case 'other':\n $finish = '';\n break;\n\n default:\n $finish = '';\n }\n\n echo \"<tr>\";\n\n echo \"<td>\" . $product->getSku() . \"</td><td>\" . $product->getData('length_inches_value') . \"</td><td>\" . $product->getData('shaft_diameter_value') . \"</td><td>\" . $head . $product->getData('head_value') . \"</td><td>\" . $product->getData('thread_value') . \"</td><td>\" . $drive . $product->getData('driver_value') . \"</td><td>\" . $product->getData('nibs_value') . \"</td><td>\" . $product->getData('driver_value') . \"</td><td>\" . $finish . $product->getData('finish_value') . \"</td><td><strong>$\" . number_format($product->getPrice(), 2) . \"</strong></td>\";\n $count++;\n\n\n echo \"</tr>\";\n }\n\n /* if ($product->getSku() === $fave) {\n echo \"<pre>\";\n var_dump($faveInfo);\n echo \"</pre>\";\n } */\n }\n\n echo \"</table>\";\n\n\n\n // echo \"Total: \" . $count . \" screws.\";\n\n }", "title": "" }, { "docid": "75370ba279ececb13e9fb4473c55609f", "score": "0.47908646", "text": "function t_brady_cart_page_button() {\n $cat_array = array (\n 'iv-therapy',\n 'simulated-iv-bags',\n 'loaded-emergency-packs',\n 'loaded-crash-carts',\n 'refill-kits',\n 'practi-meds',\n 'supply-kits',\n 'simulation-bundles'\n );\n // Set False - then prove TRUE\n $cat_check = false;\n\n foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {\n $product = $cart_item['data'];\n foreach ($cat_array as $cats) {\n if ( has_term( $cats, 'product_cat', $product->id ) ) {\n $cat_check = true;\n // break because we only need one \"true\" to matter here\n break;\n }\n }\n }\n if ( $cat_check ) {\n echo '<a style=\"font-size:1.3em;\" target=\"_blank\" href=\"https://diamedicalusa.com/iv-bag-waiver/\">';\n echo '**Some of the items in your cart require this waiver before they will ship';\n echo '</a>';\n }\n}", "title": "" }, { "docid": "073a82547f95ba7a266d28c9b6a3d773", "score": "0.478936", "text": "public function shopECSPopUp()\n {\n }", "title": "" }, { "docid": "53ddfd83abfdae790ee72c3aa6d8208e", "score": "0.47806177", "text": "function wc_get_product_id_by_sku($sku)\n {\n }", "title": "" }, { "docid": "99e202841969a3d1f385a7835b5b660a", "score": "0.47774068", "text": "function wpdev_bk_payment_show_tab_in_top_settings_ipay88(){\n ?>\n <a href=\"javascript:void(0)\"\n onclick=\"javascript:\n jQuery('.visibility_container').css('display','none');\n jQuery('#visibility_container_ipay88').css('display','block');\n jQuery('.nav-tab').removeClass('booking-submenu-tab-selected');\n jQuery(this).addClass('booking-submenu-tab-selected');\"\n rel=\"tooltip\" class=\"tooltip_bottom nav-tab booking-submenu-tab <?php\n if ( get_bk_option( 'booking_ipay88_is_active' ) != 'On' ) echo ' booking-submenu-tab-disabled '; ?>\"\n original-title=\"<?php _e('Integration of iPay88 payment system' ,'booking');?>\" >\n <?php _e('iPay88' ,'booking');?>\n <input type=\"checkbox\" <?php if ( get_bk_option( 'booking_ipay88_is_active' ) == 'On' ) echo ' checked=\"CHECKED\" '; ?>\n name=\"ipay88_is_active_dublicated\" id=\"ipay88_is_active_dublicated\"\n onchange=\"document.getElementById('ipay88_is_active').checked=this.checked;\" >\n </a>\n <script type=\"text/javascript\">\n jQuery(document).ready( function(){\n recheck_active_itmes_in_top_menu('ipay88_is_active', 'ipay88_is_active_dublicated');\n });\n </script> \n <?php\n }", "title": "" }, { "docid": "6dee5ab7d4878b5456592d5a18caf328", "score": "0.47706556", "text": "function wpb_load_apd_bestseller_widget() {\n\tregister_widget( 'ApdBestsellerWidget' );\n}", "title": "" }, { "docid": "e83a26bb265781e9dbf734a55b33e3e4", "score": "0.47697914", "text": "function shortcode_for_showing_product_variants($atts) {\n\n if (empty($atts)) {\n return;\n }\n\n global $sa_smart_offers;\n\n extract(shortcode_atts(array(\n 'prod_id' => '',\n 'offer_id' => '',\n 'page' => '',\n 'where_url' => '',\n 'image' => 'yes'\n ), $atts));\n\n if ($page == \"cart_page\" && !($sa_smart_offers->is_wc_gte_20())) {\n return;\n }\n\n if ( $page == 'post_checkout_page' ) {\n $source = 'so_post_checkout';\n } elseif ( $page == 'checkout_page' ) {\n $source = 'so_pre_checkout';\n } else {\n $source = '';\n }\n\n wp_enqueue_script('wc-add-to-cart-variation');\n\n $product = $sa_smart_offers->get_product($prod_id);\n $available_variations = $product->get_available_variations();\n $selected_attributes = $product->get_variation_default_attributes();\n\n foreach ($available_variations as $key => $value) {\n\n if ( ! empty( $value['attributes'] ) ) {\n $found = 0;\n foreach ( $value['attributes'] as $attr_key => $attr_value ) {\n $attr_key = str_replace( 'attribute_', '', $attr_key );\n if ( ! empty( $selected_attributes[ $attr_key ] ) && $selected_attributes[ $attr_key ] == $attr_value ) {\n $found++;\n }\n }\n }\n\n $variation_id = $value['variation_id'];\n $prod_instance = $sa_smart_offers->get_product($variation_id);\n $sale_price = $prod_instance->get_sale_price();\n $price = $prod_instance->get_price();\n $so_offer = new SO_Offer();\n $offer_price = $so_offer->get_offer_price(array('offer_id' => $offer_id, 'prod_id' => $variation_id));\n if ( $sale_price != $offer_price ) {\n $so_display_price_html = '<del>' . $prod_instance->get_price_html() . '</del> <ins>' . $sa_smart_offers->wc_price($offer_price) . '</ins>';\n } else {\n $so_display_price_html = $prod_instance->get_price_html();\n }\n $available_variations[$key]['price_html'] = '<span class=\"price\"> ' . __( 'Offer Price', SA_Smart_Offers::$text_domain ) . ': ' . $so_display_price_html . '</span>';\n }\n\n $attributes = $product->get_variation_attributes();\n\n if ($sa_smart_offers->is_wc_gte_20()) {\n\n $accept_link = do_shortcode(\"[so_acceptlink offer_id=\" . $offer_id . \" page_url=\" . urlencode($where_url . \"/\") . \" source=\" . $source . \"]\");\n $accept_link = untrailingslashit( str_replace( \"#038;\", \"&\", $accept_link ) );\n\n $return_string = '<form action=\"' . $accept_link . '\" class=\"variations_form cart\" method=\"POST\" id=\"so_addtocart_' . $offer_id . '\" enctype=\"multipart/form-data\" data-product_id=\"' . $prod_id . '\" data-product_variations=\"' . esc_attr(json_encode($available_variations)) . '\">';\n if ( $image == 'yes' ) {\n $return_string .= do_shortcode(\"[so_product_image]\");\n }\n $return_string .= '<table class=\"variations\" cellspacing=\"0\"><tbody>';\n $loop = 1;\n foreach ($attributes as $name => $options) {\n\n $return_string .= '<tr>';\n $return_string .= '<td class=\"label\"><label for=\"' . sanitize_title($name) . '\">' . $sa_smart_offers->wc_attribute_label($name) . '</label></td>';\n $return_string .= '<td class=\"value\"><select class=\"attribute_' . $loop . '\" id=\"' . esc_attr(sanitize_title($name)) . '\" name=\"attribute_' . sanitize_title($name) . '\">';\n $return_string .= '<option value=\"\">' . __('Choose an option', SA_Smart_Offers::$text_domain) . '</option>';\n\n if (is_array($options)) {\n\n $selected_value = ( isset($selected_attributes[sanitize_title($name)]) ) ? $selected_attributes[sanitize_title($name)] : '';\n\n if (taxonomy_exists($name)) {\n\n $orderby = $sa_smart_offers->wc_attribute_orderby($name);\n\n $args = array();\n switch ($orderby) {\n case 'name' :\n $args = array('orderby' => 'name', 'hide_empty' => false, 'menu_order' => false);\n break;\n case 'id' :\n $args = array('orderby' => 'id', 'order' => 'ASC', 'menu_order' => false);\n break;\n case 'menu_order' :\n $args = array('menu_order' => 'ASC');\n break;\n }\n\n $terms = get_terms($name, $args);\n\n foreach ($terms as $term) {\n if (!in_array($term->slug, $options))\n continue;\n\n $return_string .= '<option value=\"' . esc_attr($term->slug) . '\" ' . selected($selected_value, $term->slug, false) . '>' . apply_filters('woocommerce_variation_option_name', $term->name) . '</option>';\n }\n } else {\n\n foreach ($options as $option) {\n $return_string .= '<option value=\"' . esc_attr(sanitize_title($option)) . '\" ' . selected(sanitize_title($selected_value), sanitize_title($option), false) . '>' . esc_html(apply_filters('woocommerce_variation_option_name', $option)) . '</option>';\n }\n }\n }\n\n $return_string .= '</select></td>';\n $return_string .= '</tr>';\n $loop++;\n }\n } else {\n\n $accept_link = do_shortcode(\"[so_acceptlink offer_id=\" . $offer_id . \" page_url=\" . urlencode($where_url . \"/\") . \" source=\" . $source . \"]\");\n $accept_link = untrailingslashit( str_replace( \"#038;\", \"&\", $accept_link ) );\n\n $return_string = '<script type=\"text/javascript\">';\n $return_string .= 'var product_variations_' . $prod_id . '=' . json_encode($available_variations) . '</script>';\n $return_string .= '<form action=\"' . $accept_link . '\" class=\"variations_form cart\" method=\"POST\" id=\"so_addtocart_' . $offer_id . '\" enctype=\"multipart/form-data\" data-product_id=\"' . $prod_id . '\">';\n $return_string .= '<table class=\"variations\" cellspacing=\"0\"><tbody>';\n $loop = 1;\n foreach ($attributes as $name => $options) {\n\n $return_string .= '<tr><td class=\"label\"><label for=\"' . sanitize_title($name) . '\">' . $sa_smart_offers->wc_attribute_label($name) . '</label></td>';\n $return_string .= '<td class=\"value\"><select class=\"attribute_' . $loop . '\" id=\"' . esc_attr(sanitize_title($name)) . '\" name=\"attribute_' . sanitize_title($name) . '\">';\n $return_string .= '<option value=\"\">' . __('Choose an option', SA_Smart_Offers::$text_domain) . '</option>';\n\n if (is_array($options)) {\n\n $selected_value = ( isset($selected_attributes[sanitize_title($name)]) ) ? $selected_attributes[sanitize_title($name)] : '';\n\n if (taxonomy_exists(sanitize_title($name))) {\n\n $terms = get_terms(sanitize_title($name), array('menu_order' => 'ASC'));\n\n foreach ($terms as $term) {\n\n if (!in_array($term->slug, $options))\n continue;\n $return_string .= '<option value=\"' . $term->slug . '\" ' . selected($selected_value, $term->slug, false) . '>' . apply_filters('woocommerce_variation_option_name', $term->name) . '</option>';\n }\n } else {\n\n foreach ($options as $option) {\n $return_string .= '<option value=\"' . esc_attr(sanitize_title($option)) . '\" ' . selected(sanitize_title($selected_value), sanitize_title($option), false) . '>' . esc_html(apply_filters('woocommerce_variation_option_name', $option)) . '</option>';\n }\n }\n }\n\n $return_string .= '</select></td></tr>';\n $loop++;\n }\n }\n\n $return_string .= '</tbody></table>';\n $return_string .= '<input type=\"hidden\" id=\"parent_prod_id\" name=\"parent_prod_id\" value=\"' . $prod_id . '\">';\n $return_string .= '<input type=\"hidden\" name=\"variation_id\" value=\"\" />';\n $return_string .= '<div class=\"single_variation_wrap\" style=\"display:none;\"><div class=\"single_variation\"></div></div></form>';\n\n return $return_string;\n }", "title": "" }, { "docid": "c2489b34f6cbf2e1eb4c5da0ab737a28", "score": "0.4769279", "text": "public function getSku();", "title": "" }, { "docid": "521abfda35a1645e9753022051613c2c", "score": "0.47629234", "text": "function add_small_button_to_heading( ?string $url_to = null ): void {\n\t$url_to = untrailingslashit( $url_to ?? \\wpinc\\get_file_uri( __DIR__ ) );\n\tadd_action(\n\t\t'enqueue_block_editor_assets',\n\t\tfunction () use ( $url_to ) {\n\t\t\twp_enqueue_script(\n\t\t\t\t'wpinc-blok-small-tag',\n\t\t\t\t\\wpinc\\abs_url( $url_to, './assets/js/small-tag.min.js' ),\n\t\t\t\tarray( 'wp-compose', 'wp-element', 'wp-data', 'wp-element', 'wp-block-editor' ),\n\t\t\t\t'1.0',\n\t\t\t\ttrue\n\t\t\t);\n\t\t\twp_set_script_translations( 'wpinc-blok-small-tag', 'wpinc', __DIR__ . '\\languages' );\n\t\t}\n\t);\n}", "title": "" } ]
4c8efa7dd527433697212918e0f410b1
Form API submit callback for the mee_asset form.
[ { "docid": "1057ebaffee2994115e53dc9baf235d9", "score": "0.74683744", "text": "function mee_asset_edit_form_submit(&$form, &$form_state) {\n $mee_asset = entity_ui_controller('mee_asset')->entityFormSubmitBuildEntity($form, $form_state);\n // Save the mee asset and go back to the list of mee assets\n\n // Add in created and changed times.\n if ($mee_asset->is_new = isset($mee_asset->is_new) ? $mee_asset->is_new : 0){\n $mee_asset->created = time();\n }\n\n $mee_asset->changed = time();\n\n $mee_asset->save();\n\n if($form_state['js']){\n if(empty($mee_asset->id)){\n drupal_set_message('Asset created successfully.');\n }else{\n drupal_set_message('Asset updated successfully.');\n }\n $form_state['rebuild'] = TRUE;\n }else{\n $form_state['redirect'] = 'admin/content/asset';\n }\n}", "title": "" } ]
[ { "docid": "1dad7d2ab08e45734467da21e4ac02bf", "score": "0.74906963", "text": "function mee_asset_edit_form($form, &$form_state, $mee_asset, $js) {\n // Add the default field elements.\n $form['name'] = array(\n '#type' => 'textfield',\n '#title' => t('Asset Name'),\n '#default_value' => isset($mee_asset->name) ? $mee_asset->name : '',\n '#maxlength' => 255,\n '#required' => TRUE,\n '#weight' => -5,\n );\n\n // $form['data']['#tree'] = TRUE;\n // $form['data']['sample_data'] = array(\n // '#type' => 'checkbox',\n // '#title' => t('An interesting mee asset switch'),\n // '#default_value' => isset($mee_asset->data['sample_data']) ? $mee_asset->data['sample_data'] : 1,\n // );\n\n // Add the field related form elements.\n $form_state['mee_asset'] = $mee_asset;\n field_attach_form('mee_asset', $mee_asset, $form, $form_state);\n\n $form['actions'] = array(\n '#type' => 'container',\n '#attributes' => array('class' => array('form-actions')),\n '#weight' => 400,\n );\n\n // We add the form's #submit array to this button along with the actual submit\n // handler to preserve any submit handlers added by a form callback_wrapper.\n $submit = array();\n\n if (!empty($form['#submit'])) {\n $submit += $form['#submit'];\n }\n\n $form['actions']['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Save Asset'),\n '#submit' => $submit + array('mee_asset_edit_form_submit'),\n '#attributes' => array('class'=>array('btn','btn-primary')),\n );\n\n if($js){\n $form_state['js'] = TRUE;\n $form['#id'] = 'asset-create-form';\n $form['actions']['submit']['#ajax'] = array(\n 'callback' => 'mee_asset_edit_form_submit_ajax',\n 'wrapper' => 'asset-create-form',\n 'method' => 'replace',\n 'effect' => 'fade',\n );\n $form['actions']['cancel'] = array(\n '#markup' => l('Cancel', 'asset/browser/'.$mee_asset->type.'/all/nojs', array('attributes'=>array('class'=>array('use-ajax', 'btn', 'btn-link')))),\n );\n }\n\n if (!empty($mee_asset->name) && !$js) {\n $form['actions']['delete'] = array(\n '#type' => 'submit',\n '#value' => t('Delete Asset'),\n '#suffix' => l(t('Cancel'), 'admin/content/mee'),\n '#submit' => $submit + array('mee_asset_form_submit_delete'),\n '#weight' => 45,\n );\n }\n\n // We append the validate handler to #validate in case a form callback_wrapper\n // is used to add validate handlers earlier.\n $form['#validate'][] = 'mee_asset_edit_form_validate';\n return $form;\n}", "title": "" }, { "docid": "0481cfa829213567a0b15a68431a8611", "score": "0.6608396", "text": "function mee_asset_form_wrapper($mee_asset, $js = FALSE) {\n // Add the breadcrumb for the form's location.\n mee_asset_set_breadcrumb();\n $output = drupal_get_form('mee_asset_edit_form', $mee_asset, $js);\n\n if( $js != 'ajax'){\n return $output;\n }\n\n $commands = array();\n $commands[] = ajax_command_html('#asset-browser', drupal_render($output));\n $commands[] = ajax_command_invoke('#mee-widget', 'addClass', array('mee-widget-expanded'));\n $page = array('#type' => 'ajax', '#commands' => $commands);\n ajax_deliver($page);\n}", "title": "" }, { "docid": "0c3ee1752e6dcdd0959ee3dcfabf477e", "score": "0.64606565", "text": "function mee_asset_delete_form_submit($form, &$form_state) {\n $mee_asset = $form_state['mee_asset'];\n\n mee_asset_delete($mee_asset);\n\n drupal_set_message(t('The mee asset %name has been deleted.', array('%name' => $mee_asset->name)));\n watchdog('mee_asset', 'Deleted mee asset %name.', array('%name' => $mee_asset->name));\n\n $form_state['redirect'] = 'admin/content/asset';\n}", "title": "" }, { "docid": "772b4b20b0b32d0e7d12dbb0908f66ef", "score": "0.64488477", "text": "function mee_asset_edit_form_validate(&$form, &$form_state) {\n $mee_asset = $form_state['mee_asset'];\n // Notify field widgets to validate their data.\n field_attach_form_validate('mee_asset', $mee_asset, $form, $form_state);\n}", "title": "" }, { "docid": "60dfeaffc0174e40cf1f0f114910adc8", "score": "0.6148643", "text": "public abstract function onSubmit();", "title": "" }, { "docid": "e5b033bfad8eb07495a9d1eec5d2bc89", "score": "0.6088555", "text": "public function submitForm()\n {\n\n }", "title": "" }, { "docid": "d7b81642c1e36746e22bc08d6ae7593b", "score": "0.6007556", "text": "public function handleSubmit() {\t\t$this->model->handleSubmit();\n\t}", "title": "" }, { "docid": "eab04754fb5421d2a6efd48b622b969c", "score": "0.59705067", "text": "public function submit()\n {\n //\n\n }", "title": "" }, { "docid": "d113fa892d9474b915436816477278d6", "score": "0.59550077", "text": "public function submit()\n {\n if (!$this->token->validate('submit'))\n {\n $this->error->add($this->token->getErrorMessage());\n }\n if (!$this->post('name'))\n {\n $this->error->add(t('You must specify a name.'));\n }\n if (!$this->error->has() && $this->getRequest()->isPost())\n {\n $this->gcs->updateCalendar($this->getRequest()->post());\n $this->redirect('/dashboard/calendar/google_calendar/', 'saved');\n }\n if ($this->post('id'))\n {\n $this->edit($this->post('id'));\n }\n else\n {\n $this->add();\n }\n }", "title": "" }, { "docid": "10381f334a9b723dd6c0aa0d237c2982", "score": "0.5930924", "text": "public function submit();", "title": "" }, { "docid": "d6e81ed853a35e6b816a510fdbdf68bf", "score": "0.5929698", "text": "public function submit() \n {\n parent::submit();\n }", "title": "" }, { "docid": "ab532bc30edc3acc6450d8329334a31e", "score": "0.5862786", "text": "function manage_feed_item_form_submit($form, &$form_state) {\r\n $feed =& $form_state['#feed'];\r\n \r\n feed_item_field_attach_submit($form, $form_state);\r\n}", "title": "" }, { "docid": "8f0c46171fb38e69699a9cfd929aa24a", "score": "0.5854596", "text": "public function submit()\n\t{\n\t\t$this->load->library('form_validation', $this->Agency_m->request_form_rules);\n\t\tif ($this->form_validation->run() == FALSE) {\n\t\t\t$this->requests();\n\t\t} else {\n\t\t\t$data = $this->Agency_m->agency_request_result();\n\t\t\t$this->load_my_views('Common/result_modal_v', $data);\n\t\t}\n\t}", "title": "" }, { "docid": "507c7921d4a94f95237ff4dfcac6bc3f", "score": "0.5816866", "text": "function onSubmit(Form $form);", "title": "" }, { "docid": "257d8ce54c3009ca20dc716eb8ebefff", "score": "0.58055925", "text": "public static function submitHandler() {\n include WEBPEXPRESS_PLUGIN_DIR . '/lib/options/submit.php';\n }", "title": "" }, { "docid": "9bb952966e89f7b6c6b22198acf88e24", "score": "0.5803494", "text": "abstract protected function submit();", "title": "" }, { "docid": "cd529691ad0d92ae3187048e093992d3", "score": "0.5763095", "text": "public function callbackSubmit()\n {\n $filter = new MyTextFilter();\n\n $title = $this->form->value(\"title\");\n $body = $filter->parse($this->form->value(\"body\"), [\"markdown\"]);\n $tags = $this->form->value(\"tags\");\n $ownerid = $this->form->value(\"id\");\n $ownerusername = $this->form->value(\"username\");\n $parentid = $this->form->value(\"parentid\");\n\n $question = new Question();\n $question->setDb($this->di->get(\"dbqb\"));\n\n $question->title = $title;\n $question->body = $body;\n $question->tags = $tags;\n $question->ownerid = $ownerid;\n $question->ownerusername = $ownerusername;\n $question->parentid = $parentid;\n\n //Active record seems to have issues with default\n $question->created = date('Y-m-d H:i:s');\n $question->acceptedanswer = \"false\";\n\n $question->save();\n\n $meObj = new Me();\n $meObj->setDb($this->di->get(\"dbqb\"));\n //answers give two points to rep\n $meObj->updateReputationByUsername($ownerusername, 2);\n\n $votes = new Votes();\n $votes->setDb($this->di->get(\"dbqb\"));\n $postid = $question->getSingleQIdByTitle($title);\n\n $votes->createVote($postid, $ownerid, \"post\");\n\n $this->form->addOutput(\"Answer added\");\n return true;\n }", "title": "" }, { "docid": "f94138e16b619f01ce2052a2457c2607", "score": "0.57565546", "text": "function mee_asset_form_submit_delete(&$form, &$form_state) {\n $form_state['redirect'] = 'admin/content/asset/' . $form_state['mee_asset']->id . '/delete';\n}", "title": "" }, { "docid": "f50382be729b0fb0ce39a3cc1e485272", "score": "0.575172", "text": "function vc_form_submit($form, &$form_state) {\n if (empty($form['#vc_submit'])) return;\n\n foreach ($form['#vc_submit'] as $submit) {\n call_user_func($submit, $form, $form_state);\n }\n}", "title": "" }, { "docid": "9c261deb01cc27751cabb2677691b137", "score": "0.56961024", "text": "public function submitted()\n {\n if (parent::submitted()) {\n if (isset($this->reset) && $this->isClicked($this->reset)) {\n $this->forget();\n $this->js(null, $this->view->js()->reload())->reload()->execute();\n } else {\n $this->memorizeAll();\n }\n $this->view->js()->reload()->execute();\n }\n }", "title": "" }, { "docid": "0b45b8787ecbaf024c6d5ed8ad04b6e2", "score": "0.56899834", "text": "protected function onFakeSubmit()\n { }", "title": "" }, { "docid": "817acba83ab8e7154d6104c695daff0f", "score": "0.56585264", "text": "function mee_asset_delete_form($form, &$form_state, $mee_asset) {\n $form_state['mee_asset'] = $mee_asset;\n\n $form['#submit'][] = 'mee_asset_delete_form_submit';\n\n $form = confirm_form($form,\n t('Are you sure you want to delete mee asset %name?', array('%name' => $mee_asset->name)),\n 'admin/content/asset',\n '<p>' . t('This action cannot be undone.') . '</p>',\n t('Delete'),\n t('Cancel'),\n 'confirm'\n );\n\n return $form;\n}", "title": "" }, { "docid": "fa1ec3dc600de195ce623f3f0f34c4cf", "score": "0.5641607", "text": "function module_video_node_form_submit($form, &$form_state) {\n v2_node_form_submit($form, $form_state);\n}", "title": "" }, { "docid": "cb6a212d05ad6be07aa84b0dd55c004d", "score": "0.56331617", "text": "function submitForm(array &$form, FormStateInterface $form_state) {\n\nreturn;\n\n\n}", "title": "" }, { "docid": "e293a0ad879315ebe6b72dde21c315c7", "score": "0.56283605", "text": "function exposed_submit(&$form, &$form_state) { }", "title": "" }, { "docid": "a7a5730f92a917de3fb63ba264647d8c", "score": "0.56198865", "text": "function bat_event_edit_form_submit(&$form, &$form_state) {\n // We also need appropriate named variables for start and end date.\n // It's simpler to do this than change all the other code for now.\n $form_state['values']['start_date'] = $form_state['values']['bat_start_date'];\n $form_state['values']['end_date'] = $form_state['values']['bat_end_date'];\n\n // If we are dealing with a new event.\n if ($form_state['bat_event']->event_id == '') {\n\n $event = bat_event_create(array(\n 'type' => $form_state['bat_event']->type,\n 'start_date' => $form_state['values']['start_date'],\n 'end_date' => $form_state['values']['end_date'],\n ));\n $form_state['bat_event'] = $event;\n\n $event = entity_ui_controller('bat_event')->entityFormSubmitBuildEntity($form, $form_state);\n\n $event->is_new = isset($event->is_new) ? $event->is_new : 0;\n }\n else {\n $event = entity_ui_controller('bat_event')->entityFormSubmitBuildEntity($form, $form_state);\n }\n\n // Subtract one minute from the end date since BAT considers the last minute of an event included.\n $end_date = new DateTime($event->end_date);\n $end_date->sub(new DateInterval('PT1M'));\n $event->end_date = $end_date->format('Y-m-d H:i');\n\n // Add in created and changed times.\n $event->created = !empty($event->date) ? strtotime($event->date) : REQUEST_TIME;\n $event->changed = time();\n\n // Add in the event owner.\n if ($account = user_load_by_name($event->owner_name)) {\n $event->uid = $account->uid;\n }\n else {\n $event->uid = 0;\n }\n\n // Save event.\n $event->save();\n\n // Add the event to $form_state to be altered by other submit handlers.\n $form_state['event'] = $event;\n\n $form_state['redirect'] = 'admin/bat/events';\n}", "title": "" }, { "docid": "439475c740f99a0a78ff9028d198e47a", "score": "0.5615387", "text": "public function submit(){\n\t\tIDMObject::authN();\n\n\t\t$tpl = new PSUSmarty();\n\t\t$form = $tpl->fetch( PSU_BASE_DIR . '/webapp/calllog/templates/ticket_form.tpl');\n\n\t\t$this->tpl->assign('form', $form);\n\t\t$this->tpl->display('submit.tpl');\n\t}", "title": "" }, { "docid": "105f12061efb2b399f868b076b77b6f7", "score": "0.5605796", "text": "function smg_pop_up_layout_form_submit($form, &$form_state){\n\n}", "title": "" }, { "docid": "17dd09720253915f102bb66a32a93163", "score": "0.56043404", "text": "function onSubmit() {\n if(!empty($this->onSubmit)) {\n if(function_exists($this->onSubmit)) {\n $this->onSubmit($this);\n }\n }\n }", "title": "" }, { "docid": "b0555dd5ccc9daa83fc3523fb4cbd6ac", "score": "0.5596027", "text": "function boston_college_video_upload_form_submit(array $form, array &$form_state) {\n form_load_include($form_state, 'inc', 'islandora_video', 'includes/video_upload.form');\n if ($form_state['values']['file']) {\n return islandora_video_upload_form_submit($form, $form_state);\n }\n}", "title": "" }, { "docid": "54c34688b8ad0fb01f8541b9a9cec969", "score": "0.5594417", "text": "public function submit(){\n\t\t$handler = form\\handler::get_instance( $this );\n\t\t$this->handler = $handler;\n\t\t\n\t\t/**\n\t\t* [php]\n\t\t* Only runs when the submission is non-ajax\n\t\t*/\n\t\tif( $handler->getProperty('ajax') == false && $handler->getProperty('formStatus') == 'success' ):\n\t\t\t$response = $handler->getProperty('successResponse');\n\t\t\tif( isset( $response['url'] ) && !empty($response['url']) ):\n\t\t\t\tif( strpos($response['url'], home_url()) ):\n\t\t\t\t\twp_redirect($response['url'] );\n\t\t\t\telse:\t\t\t\t\n\t\t\t\t\twp_redirect( home_url() . '/' . ltrim($response['url'] , '/') );\n\t\t\t\tendif;\n\t\t\t\texit();\n\t\t\telse:\n\t\t\t\twp_redirect(__aFormGetRealUri());// redirect to self\n\t\t\t\texit();\n\t\t\tendif;\n\t\tendif;\n\n\t\t// [ajax]\n\t\treturn $handler;\n\t}", "title": "" }, { "docid": "c203329a22b7ac74acbddcbe63f47df2", "score": "0.55724347", "text": "function options_submit($form, &$form_state) { }", "title": "" }, { "docid": "6af22b15ea50b8bac53b30b5ae1c7584", "score": "0.5569046", "text": "public function callbackSubmit()\n {\n // Get values from the submitted form\n // $user = $this->di->session->get('user');\n // $text = $this->form->value(\"Kommentera\");\n // $questionId = $this->form->value(\"questionid\");\n // $answerId = $this->form->value(\"answerid\") ?? null;\n // $createdDate = date(\"Y/m/d G:i:s\", time());\n //\n // $userD = new User();\n // $userD->setDb($this->di->get(\"dbqb\"));\n // $userInfo = $userD->find('acronym', $user);\n // $email = $userInfo->email;\n //\n // $comment = new Comment();\n // $comment->setDb($this->di->get(\"dbqb\"));\n // $comment->user = $user;\n // $comment->created = $createdDate;\n // $comment->text = $text;\n // $comment->email = $email;\n // $comment->questionid = $questionId;\n // $comment->answerid = $answerId;\n //\n // $comment->save();\n\n return true;\n }", "title": "" }, { "docid": "ca3d6c91b4a799a50adab906647a3985", "score": "0.55610615", "text": "public function form(Asset $asset)\n {\n return $this->form->of('assets', function (FormGrid $form) use ($asset) {\n if ($asset->exists) {\n $method = 'PATCH';\n $route = route('maintenance.assets.update', [$asset->getKey()]);\n $form->submit = 'Save';\n } else {\n $method = 'POST';\n $route = route('maintenance.assets.store');\n $form->submit = 'Create';\n }\n\n $categories = Category::getSelectHierarchy('assets');\n $locations = Location::getSelectHierarchy();\n\n $form->resource($this, $route, $asset, compact('method'));\n\n $form->fieldset(function (Fieldset $fieldset) use ($categories, $locations) {\n $fieldset\n ->control('input:text', 'tag')\n ->attributes([\n 'placeholder' => 'ex. 100010',\n ]);\n\n $fieldset\n ->control('input:text', 'name')\n ->attributes([\n 'placeholder' => 'ex. Ford F150',\n ]);\n\n $fieldset\n ->control('select', 'category')\n ->options($categories)\n ->value(function (Asset $asset) {\n return $asset->category_id;\n });\n\n $fieldset\n ->control('select', 'location')\n ->options($locations)\n ->value(function (Asset $asset) {\n return $asset->location_id;\n });\n\n $fieldset->control('input:textarea', 'description');\n\n $fieldset->control('select', 'condition')\n ->options(trans('assets.conditions'))\n ->value(function (Asset $asset) {\n return $asset->condition_number;\n });\n\n $fieldset->control('input:text', 'vendor')\n ->attributes([\n 'placeholder' => 'ex. Ford',\n ]);\n\n $fieldset->control('input:text', 'make')\n ->attributes([\n 'placeholder' => 'ex. F',\n ]);\n\n $fieldset->control('input:text', 'model')\n ->attributes([\n 'placeholder' => 'ex. 150',\n ]);\n\n $fieldset->control('input:text', 'serial')\n ->attributes([\n 'placeholder' => 'ex. 153423-13432432-2342423',\n ]);\n\n $fieldset->control('input:text', 'size')\n ->attributes([\n 'placeholder' => 'ex. 1905 x 2463',\n ]);\n\n $fieldset->control('input:text', 'weight')\n ->attributes([\n 'placeholder' => 'ex. 1 Ton',\n ]);\n\n $fieldset->control('input:text', 'acquired_at')\n ->attributes([\n 'class' => 'pickadate',\n 'placeholder' => 'Click to Select a Date',\n ]);\n\n $fieldset->control('input:text', 'end_of_life')\n ->attributes([\n 'class' => 'pickadate',\n 'placeholder' => 'Click to Select a Date',\n ]);\n });\n });\n }", "title": "" }, { "docid": "51aff7d47b608318bbb4c068d5d09cde", "score": "0.5558213", "text": "function bat_unit_edit_form_submit(&$form, &$form_state) {\n $units = array();\n\n if ($form_state['bat_unit']->unit_id == '') {\n $name = $form_state['values']['name'];\n $unit = bat_unit_create(array('type' => $form_state['bat_unit']->type));\n $form_state['bat_unit'] = $unit;\n $unit = entity_ui_controller('bat_unit')->entityFormSubmitBuildEntity($form, $form_state);\n }\n else {\n $unit = $form_state['bat_unit'];\n $unit = entity_ui_controller('bat_unit')->entityFormSubmitBuildEntity($form, $form_state);\n }\n\n $unit->changed = time();\n\n if (isset($unit->author_name)) {\n if ($account = user_load_by_name($unit->author_name)) {\n $unit->uid = $account->uid;\n }\n else {\n $unit->uid = 0;\n }\n }\n\n $unit->created = !empty($unit->date) ? strtotime($unit->date) : REQUEST_TIME;\n $unit->save();\n drupal_set_message(t('Bat Unit @name saved', array('@name' => $unit->name)));\n\n // If the form is being used in a views megarow, reload the page on\n // submission.\n if (strpos($form['#action'], '/display_megarow/') !== FALSE) {\n ctools_include('ajax');\n ctools_add_js('ajax-responder');\n $commands = array();\n $commands[] = ctools_ajax_command_reload();\n print ajax_render($commands);\n drupal_exit();\n }\n else {\n $form_state['redirect'] = 'admin/bat/config/units';\n }\n}", "title": "" }, { "docid": "fa10e61115e20fc1b1aad9e9bbcb0f13", "score": "0.5545859", "text": "private function _processSubmit()\n {\n /** Get current lead answers */\n if (!$this->_survey->getCurrentLeadAnswers()) {\n $this->_show();\n return;\n }\n\n /** Check questions mandatory not filled */\n if ($mandatoryNotFilled = $this->_survey->getNotFilledMandatoryFields()) {\n $this->_show($mandatoryNotFilled);\n return;\n }\n\n /** Save result process */\n if ($this->_survey->saveCurrentLeadAnswers()) {\n /** Reset lead survey data, for next show survey form. We take last answers as pre result */\n $this->_survey->setCurrentLeadAnswers([]);\n $this->_survey->setCurrentPageId(ModelSurvey::PAGE_BY_DEFAULT);\n\n\n /** Redirect when submitted if the link is not empty\n * @var $redirectUrl string\n */\n if ($redirectUrl = $this->_survey->getRedirectUrlAfter()) {\n\n $this->_redirectAfterSubmit($redirectUrl);\n\n } else {\n\n /** Get success page */\n \\TSInit::$app->session->setFlash('surveySuccess', true);\n }\n }\n\n $this->_show();\n }", "title": "" }, { "docid": "43df63b372f7dce5aac2b97e8261f1cc", "score": "0.553811", "text": "private function addSubmitFunctionality()\n {\n $this->vueInstance->addMethod('submitForm', 'function() {\n if (this.isSubmitting == false) {\n this.isSubmitting = true;\n this.clearErrors();\n this.successMessage = \"\";\n axios.post(\n this.$el.getAttribute(\"action\"),\n new FormData(this.$el)\n ).then((response) => {\n if (response.data.redirect) {\n this.redirect(response.data.redirect[\"url\"], response.data.redirect[\"delay\"]);\n }\n if (response.data.message) {\n this.displaySuccessMessage(response.data.message);\n }\n if (response.data.reset_form) {\n this.resetForm();\n }\n this.finishSubmit(response);\n }).catch((error) => {\n if(error.response.status == 422) {\n for (let fieldName in error.response.data.errors) {\n if (typeof this.fields[fieldName] === \"undefined\") {\n this.generalErrors = this.generalErrors.concat(error.response.data.errors[fieldName]);\n }\n this.fields[fieldName].errors = error.response.data.errors[fieldName];\n }\n }\n else if (error.response.status == 419) {\n this.generalErrors = [this.lang[\"form_expired_error\"]];\n }\n else {\n this.generalErrors = [this.lang[\"general_form_error\"]];\n }\n this.finishSubmit(error.response);\n });\n \n\n }\n }');\n\n $this->vueInstance->addMethod(\n 'clearErrors',\n 'function() {\n for (let fieldName in this.fields) {\n this.fields[fieldName].errors = [];\n }\n this.generalErrors = [];\n }');\n\n $this->vueInstance->addMethod(\n 'resetForm',\n 'function() {\n for (let fieldName in this.fields) {\n this.fields[fieldName].value = \"\";\n }\n this.clearErrors();\n }');\n\n $this->vueInstance->addMethod(\n 'redirect',\n 'async function(url, delay) {\n await new Promise(resolve => setTimeout(resolve, delay));\n window.location = url;\n }');\n\n $this->vueInstance->addMethod(\n 'finishSubmit',\n 'function(response) {\n this.isSubmitting = false;\n if (response.data.captcha_question) {\n this.captchaQuestion = response.data.captcha_question;\n }\n }');\n\n $this->vueInstance->addMethod(\n 'displaySuccessMessage', config('formfactory.vue.methods.display_success_message'));\n\n $this->vueInstance->addData('isSubmitting', false);\n $this->vueInstance->addData('generalErrors', []);\n $this->vueInstance->addData('successMessage', []);\n $this->vueInstance->addData('captchaQuestion', $this->form->getCaptchaQuestion());\n }", "title": "" }, { "docid": "c84343701e8037e34747f1e60c67c0c5", "score": "0.55257267", "text": "function at_ui_twig_form_submit($form, &$form_state)\n{\n $obj = new TwigForm();\n return $obj->submit($form, $form_state);\n}", "title": "" }, { "docid": "a5557d6222fe7139c7f3e41c7227d5d8", "score": "0.5512031", "text": "function hcbf_volunteer_form_submit($form, &$form_state) {\n // Create a volunteer node\n $volunteer = entity_create('node', array('type' => 'hcbf_volunteer'));\n $volunteer_entity = entity_metadata_wrapper('node',$volunteer);\n $volunteer_entity->field_hcbf_volunteer_name->set(check_plain($form_state['values']['name']));\n $volunteer_entity->field_hcbf_volunteer_email->set(check_plain($form_state['values']['email']));\n $volunteer_entity->field_hcbf_volunteer_phone->set(check_plain($form_state['values']['phone']));\n $volunteer_entity->field_hcbf_volunteer_dob->set(check_plain($form_state['values']['dob']));\n $volunteer_entity->field_hcbf_volunteer_shirt->set(check_plain($form_state['values']['shirt']));\n $volunteer_entity->field_hcbf_volunteer_volunteer->set(check_plain($form_state['values']['previous_volunteer']));\n $volunteer_entity->field_hcbf_volunteer_comments->set(check_plain($form_state['values']['comments']));\n $volunteer_entity->field_hcbf_volunteer_accepted->set('no');\n $volunteer_entity->save();\n\n hcbf_volunteers_send_mail($form_state['values']);\n\n // Notify the responsable role a volunteer has volunteered\n}", "title": "" }, { "docid": "c5b6aa0126b07a8124eb19e4777dfcd9", "score": "0.5474694", "text": "function formSubmit($form, &$form_state, $entity, $language = LANGUAGE_NONE) {\n $form_elements = $this->extractFormElements($form);\n field_attach_submit($this->getEntityType(), $entity, $form_elements, $form_state, array('field_name' => $this->field_name));\n }", "title": "" }, { "docid": "ae6e95d88067178efa90dde9edead033", "score": "0.5447748", "text": "public function PostSubmitAction()\n {\n return array();\n }", "title": "" }, { "docid": "89840a94d0c4315b260f78e627c74494", "score": "0.5441325", "text": "public function submit() {\n\t\t\twp_nonce_field( 'give-save-settings', '_give-save-settings' );\n\t\t\t?>\n\t\t\t<input type=\"hidden\" class=\"import-step\" id=\"import-step\" name=\"step\" value=\"<?php echo $this->get_step(); ?>\"/>\n\t\t\t<input type=\"hidden\" class=\"importer-type\" value=\"<?php echo $this->importer_type; ?>\"/>\n\t\t\t<?php\n\t\t}", "title": "" }, { "docid": "7c44fd28e812c2fda145f3d2762012d2", "score": "0.5434748", "text": "public function getPageSubmit(){\n }", "title": "" }, { "docid": "2f49b8ca4b2322d4542551e489cb85b0", "score": "0.54323906", "text": "function options_submit(&$form, &$form_state) { }", "title": "" }, { "docid": "b49dd7785453ab5ea073c69669f1477c", "score": "0.5404496", "text": "protected function form() {\n\t\t$form = new Form(new Market);\n\n\t\t$form->kindeditor('content', __('标题'))->help(\"请勿在内容中上传图片!\");\n\t\t$form->multipleImage('images', __('图片'))->uniqueName()->sortable()->removable();\n\t\t$form->number('shares', __('分享次数'));\n\t\t//\t$form->switch('type', __('Type'))->default(1);\n\t\t$form->text('item_id', __('淘宝商品ID'));\n\n\t\t$form->display('item_pic', __('淘宝商品图'))->with(function ($value) {\n\t\t\tif ($value) {\n\t\t\t\t$imgs = json_decode($value, true);\n\t\t\t\t$str = '';\n\t\t\t\tforeach ($imgs as $k => $v) {\n\t\t\t\t\t$str .= \"<img style='width:100px;' src='\" . $v . \"' />\";\n\t\t\t\t}\n\t\t\t\treturn $str;\n\t\t\t}\n\n\t\t})->help('商品自动获取');\n\t\t$form->text('item_title', __('淘宝商品标题'))->help('自动获取')->disable();\n\t\t$form->select('cate_id', __('分类'))->options(MarketCate::selectOption(['pid' => 1], false))->help('选择分类')->rules('required', ['required' => '请选择分类']);\n\t\t//$form->number('publish_id', __('发布人'));\n\t\t$form->select('publish_id', __('发布人'))->options(MarketUser::selectOption())->help('选择发布人')->rules('required', ['required' => '请选择发布人']);\n\t\t//$form->number('is_jx', __('Is jx'));\n\t\t$form->kindeditor('copy_text', __('复制文案'))->help(\"请勿在内容中上传图片!\\$淘口令\\$ 在复制时可自动替换为淘口令\");\n\t\t$form->hidden('cate_pid')->default(1);\n\t\t$form->saving(function (Form $form) {\n\t\t\t$Taobao = new Taobao();\n\t\t\t$item = $Taobao->getItemInfo(['item_id' => $form->item_id]);\n\t\t\tif ($item == NULL) {\n\t\t\t\t$error = new MessageBag([\n\t\t\t\t\t'title' => '获取错误',\n\t\t\t\t\t'message' => '淘宝商品ID 错误,获取不到商品信息',\n\t\t\t\t]);\n\t\t\t\treturn back()->with(compact('error'));\n\t\t\t};\n\t\t\t$form->item_pic = isset($item->small_images) ? json_encode($item->small_images, true) : json_encode([], true);\n\t\t\t$form->item_title = isset($item->title) ? $item->title : \"\";\n\t\t\t$form->copy_text = $form->copy_text ? base64_encode($form->copy_text) : \"\";\n\t\t});\n\t\treturn $form;\n\t}", "title": "" }, { "docid": "d1b03d5242044c82a4dbdf97b994c7a8", "score": "0.54012126", "text": "function release_form_submit(&$form, &$form_state) {\n $release = $form_state['release'];\n entity_form_submit_build_entity('release', $release, $form, $form_state);\n release_save($release);\n drupal_set_message(t('Release %title saved.', array('%title' => $release->label())));\n}", "title": "" }, { "docid": "f2056763223bc65ade46840d39589683", "score": "0.5385537", "text": "public function formSubmit(&$form, $form_state);", "title": "" }, { "docid": "4260daf873f83c84b9a2dd1498030ee4", "score": "0.53812087", "text": "public function actionSaveSubmission()\n {\n $this->requirePostRequest();\n\n // Get the form\n $handle = Craft::$app->getRequest()->getRequiredBodyParam('handle');\n /** @var Form $form */\n $form = SimpleForms::$plugin->forms->getFormByHandle($handle);\n\n // Get namespace\n $namespace = Craft::$app->getRequest()->getBodyParam('namespace');\n\n // Get the submission? Are we editing one?\n $submissionId = (int) Craft::$app->getRequest()->getBodyParam('submissionId');\n\n // Get the submission\n $submission = new Submission();\n if ($submissionId) {\n $submission = SimpleForms::$plugin->submissions->getSubmissionById($submissionId);\n }\n\n // Front-end submission, trigger AntiSpam or reCAPTCHA?\n if (!Craft::$app->getRequest()->getIsCpRequest()) {\n // Where was this submission submitted?\n $submission->submittedFrom = urldecode(Craft::$app->getRequest()->getReferrer());\n\n // Validate AntiSpam settings\n $submission->spamFree = SimpleForms::$plugin->antiSpam->verify($form->handle);\n\n // Redirect our spammers before reCAPTCHA can be triggered\n if (!$submission->spamFree) {\n return $this->_doRedirect($submission, false);\n } else {\n SimpleForms::$plugin->antiSpam->setMarkedAsNoSpam($form->handle);\n }\n\n // Validate reCAPTCHA\n if (SimpleForms::$plugin->getSettings()->googleRecaptchaEnabled) {\n $submission->spamFree = SimpleForms::$plugin->recaptcha->verify();\n\n // Was it verified?\n if (!$submission->spamFree) {\n $submission->addError('spamFree', Craft::t('simple-forms', 'reCAPTCHA was not verified.'));\n\n // Don't upload files now\n if (count($_FILES)) {\n foreach ($_FILES as $key => $file) {\n unset($_FILES[$key]);\n }\n }\n\n return $this->_doRedirect($submission, false);\n }\n }\n } else {\n // Possible user author?\n $authorId = Craft::$app->getRequest()->getBodyParam('authorId');\n if (is_array($authorId)) {\n $authorId = current($authorId);\n }\n $submission->authorId = $authorId;\n }\n\n // Add the form to the submission and populate it\n Craft::$app->getContent()->populateElementContent($submission);\n $submission->form = $form;\n $submission->formId = $form->id;\n\n // Set attributes\n $submission->ipAddress = Craft::$app->getRequest()->getUserHost();\n $submission->userAgent = Craft::$app->getRequest()->getUserAgent();\n\n // Save field values from request\n $request = Craft::$app->getRequest();\n $fieldsLocation = $namespace ?: (string) $request->getParam('fieldsLocation', 'fields');\n $submission->setFieldValuesFromRequest($fieldsLocation);\n\n // Save submission\n if (SimpleForms::$plugin->submissions->saveSubmission($submission)) {\n // Remove spam free token\n SimpleForms::$plugin->antiSpam->verify($form->handle);\n\n // Notification for new submissions\n if (!Craft::$app->getRequest()->getIsCpRequest() && !$submissionId) {\n SimpleForms::$plugin->submissions->emailSubmission($submission);\n }\n\n // Redirect\n if (Craft::$app->getRequest()->getIsAjax()) {\n $afterSubmitText = $form->afterSubmitText ? $form->afterSubmitText : Craft::t('simple-forms', 'Thanks for your submission.');\n\n return $this->asJson([\n 'success' => true,\n 'afterSubmitText' => $afterSubmitText,\n ]);\n } elseif (Craft::$app->getRequest()->getIsCpRequest()) {\n Craft::$app->getSession()->setNotice(Craft::t('simple-forms', 'Submission saved.'));\n\n return $this->redirectToPostedUrl($submission);\n } else {\n return $this->_doRedirect($submission, true);\n }\n } else {\n if (Craft::$app->getRequest()->getIsAjax()) {\n return $this->asJson([\n 'success' => false,\n 'errors' => $submission->getErrors(),\n ]);\n } elseif (Craft::$app->getRequest()->getIsCpRequest()) {\n Craft::$app->getSession()->setError(Craft::t('simple-forms', 'Couldn’t save submission.'));\n\n // Send the submission back to the template\n return Craft::$app->getUrlManager()->setRouteParams([\n 'submission' => $submission,\n ]);\n } else {\n // Remember active submissions\n SimpleForms::$plugin->submissions->setActiveSubmission($submission);\n\n // Return the submission by the form's handle, for custom HTML possibilities\n return Craft::$app->getUrlManager()->setRouteParams([\n $form->handle => $submission,\n ]);\n }\n }\n }", "title": "" }, { "docid": "7e405dea8f325a82fa065c8a5001dae7", "score": "0.53737694", "text": "function ckan_package_edit_form_submit(&$form, &$form_state) {\n \n $ckan = entity_ui_controller('ckan_package')->entityFormSubmitBuildEntity($form, $form_state);\n // Save the CKAN Package and go back to the list\n \n // Add in created and changed times.\n if ($ckan->is_new = isset($ckan->is_new) ? $ckan->is_new : 0){\n $ckan->created = time();\n }\n\n $ckan->changed = time();\n \n $ckan->save();\n $form_state['redirect'] = 'admin/content/ckan_packages';\n}", "title": "" }, { "docid": "4bf87111025dfa7706de8fbea84309fe", "score": "0.53717864", "text": "public function _report_form_submit()\n\t{\n\t\t$incident = Event::$data;\n\t\t//add hok with report submit and skip if case selected = [---------]\n\t\tif ($_POST && $_POST['case_id'] !=1)\n\t\t{\n\t\t\t$case_item = ORM::factory('case_incidents')\n\t\t\t\t->where('incident_id', $incident->id)\n\t\t\t\t->find();\n\t\t\t\t\n\t\t\t$case_item->incident_id = $incident->id;\n\t\t\t\n\t\t\t$case_item->cases_case_id = isset($_POST['case_id']) ? \n\t\t\t\t$_POST['case_id'] : \"\";\n\t\t\t\n\t\t\t$case_item->save();\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "4ea49ce92a9766f462b70e2d5d76b8b2", "score": "0.5362963", "text": "public function submit(Character $character, $formName, $data);", "title": "" }, { "docid": "a26d67d85087744de4f9fd06b4e0f09b", "score": "0.53628683", "text": "public function callbackSubmit()\n {\n $arrayOfData = $this->getDataFromForm();\n\n $formcheck = $this->arrayEmpty($arrayOfData);\n\n if (!$formcheck) {\n $this->form->addOutput(\"Please fill all inputs!\");\n return false;\n }\n\n #Create new Coupon and set databas.\n $coupon = new Coupon();\n $coupon->setDb($this->di->get(\"db\"));\n\n if ($coupon->getCouponByName($arrayOfData[\"name\"]) != null) {\n $this->form->addOutput(\"Coupon already exists.\");\n return false;\n }\n\n $coupon->setName($arrayOfData[\"name\"]);\n $coupon->setAmount((int) $arrayOfData[\"amount\"]);\n $coupon->setStartDate($arrayOfData[\"start\"]);\n $coupon->setFinishDate($arrayOfData[\"end\"]);\n $coupon->save();\n\n #Create url and redirect to admin.\n $url = $this->di->get(\"url\")->create(\"admin\");\n $this->di->get(\"response\")->redirect($url);\n return true;\n }", "title": "" }, { "docid": "6fdf2f1a134087f046ee8c0e9e44c9f2", "score": "0.53597605", "text": "function submit();", "title": "" }, { "docid": "40a3bf6edc970e219711f94db6c3618e", "score": "0.53580093", "text": "protected function addSubmitBlock() {\n\t\t$Field = new FormularSubmit(__('Search'), 'submit');\n\t\t$Field->setLayout( FormularFieldset::$LAYOUT_FIELD_W33.' c' );\n\n\t\t$this->Fieldset->addField($Field);\n\t}", "title": "" }, { "docid": "07d586c8cbbaea4a243944f43c431f4d", "score": "0.5349788", "text": "public function submit(){\n $response = null;\n $trackerId = $this->tracker->getId();\n $fields = CustomFieldModel::getFieldsByTrackId($trackerId);\n if($fields){\n $this->manageUser();\n $this->createQueueCard();\n foreach ($fields as $field) {\n $cRequest = new Request();\n $cRequest['queue_card_id'] = $this->cardId;\n $cRequest['queue_form_field_id'] = $field['field_id'];\n $cRequest['value'] = $field['field_value'];\n $this->createQueueCardFields($cRequest);\n }\n if($this->tracker->getCompanyId() != 6){\n $response = $this->queueCard();\n }\n \n $this->tracker->delete();\n //ImageGenerator::create($this->cardId);\n }\n else{\n $response = ['text' => \"Empty Fields\"];\n }\n return $response;\n }", "title": "" }, { "docid": "b8eb52c89163cb5ee786da3840f862ae", "score": "0.5328678", "text": "public function submitForm(array &$form, FormStateInterface $form_state) {}", "title": "" }, { "docid": "6659951e9840ffca0f4874cbe841d57e", "score": "0.53262126", "text": "public function options_submit($form, $form_state) {\n if (module_exists('vsite') && !$vsite = vsite_get_vsite()) {\n return;\n }\n\n // We try to delete the cache of a newly selected bundle, leaving the old cached\n // info unused. If we will re-select the old bundle its cache will be cleared\n // next time.\n if (isset($this->options['content_type']) && is_string($this->options['content_type'])) {\n $bundle = 'node:' . $this->options['content_type'];\n }\n else {\n $bundle = NULL;\n }\n $cid = $this->set_cache_id($bundle);\n\n cache_clear_all($cid, 'cache_os_boxes', TRUE);\n cache_clear_all('assets:' . $cid, 'cache_os_boxes', TRUE);\n }", "title": "" }, { "docid": "f5afe61a5eed273d285ecb765483389a", "score": "0.5326023", "text": "function at_ui_twig_form_ajax_callback($form, &$form_state)\n{\n $obj = new TwigForm();\n return $obj->ajaxSubmit($form, $form_state);\n}", "title": "" }, { "docid": "ec18436df08f4ce0b3bcb14407485b86", "score": "0.53256667", "text": "function onSubmit(&$var, &$vars)\n {\n $this->getImage($vars, $var);\n\n /* If this was done through the upload button override the submitted\n * value of the form. */\n if ($vars->get('_do_' . $var->getVarName())) {\n $var->form->setSubmitted(false);\n if (is_a($this->_uploaded, 'PEAR_Error')) {\n $this->_img = array('hash' => $this->getRandomId(),\n 'error' => $this->_uploaded->getMessage());\n }\n }\n }", "title": "" }, { "docid": "53641299cb0659d34afbf2977fbf3f49", "score": "0.53241026", "text": "public function process_submit()\r\n {\r\n log_debug(\"{$this->page->name} page does not accept submit requests\",\r\n !$this->page->has_submit());\r\n\r\n $submit = empty($_GET['submit']) ? (empty($_POST['submit']) ? NULL : $_POST['submit']) : $_GET['submit'];\r\n\r\n if ($submit != NULL && $this->page->has_submit())\r\n {\r\n log_debug(\"Submit request: {$submit}\");\r\n\r\n $this->submit_response = $this->page->submit($submit);\r\n\r\n if (!empty($this->submit_response))\r\n {\r\n log_debug(\"Submit response: \". print_r($this->submit_response, true));\r\n\r\n //report in the correct format\r\n if ($this->has_response_format())\r\n {\r\n echo export_format($this->page->get_data(), $this->format);\r\n }\r\n\r\n calc_gen_time();\r\n\r\n return false;\r\n }\r\n }\r\n \r\n return true;\r\n }", "title": "" }, { "docid": "838a3aa1181c2561bda87febcb98ffed", "score": "0.5318069", "text": "public function handle_form()\n\t{\n\t\t\n\t\tif( isset( $_POST[EXCHANGE_TAG . '_form_api'] ) ) {\n\n\t\t\tif ( ! wp_verify_nonce( $_POST[EXCHANGE_TAG . '_form_api'], EXCHANGE_TAG . '_api' ) ) { ?>\n\t\t\t\t<div class=\"error\">\n\t\t\t\t\t<p>Sorry, your nonce was not correct. Please try again.</p>\n\t\t\t\t</div> <?php\n\t\t\t\texit;\n\t\t\t}\n\n\t\t\t$api = sanitize_text_field( $_POST['api'] );\n\t\t\t$this->set_api( $api );\n\t\t\t$this->fetch(); ?>\n \n\t\t \t<div class=\"updated\">\n\t\t\t <p>Your fields were saved!</p>\n\t\t\t</div> <?php\n\t\t}\n\n\t\telse if( isset( $_POST[EXCHANGE_TAG . '_form_sync'] ) ) {\n\n\t\t\tif ( ! wp_verify_nonce( $_POST[EXCHANGE_TAG . '_form_sync'], EXCHANGE_TAG . '_sync' ) ) { ?>\n\t\t\t\t<div class=\"error\">\n\t\t\t\t\t<p>Sorry, your nonce was not correct. Please try again.</p>\n\t\t\t\t</div> <?php\n\t\t\t\texit;\n\t\t\t}\n\n\t\t\t$this->fetch();\n\n\t\t}\n\n\t\telse { ?>\n\t\t\t<div class=\"error\">\n\t\t\t <p>Sorry, your nonce was not correct. Please try again.</p>\n\t\t\t</div> <?php\n\t\t}\n\n\t}", "title": "" }, { "docid": "a446d019f4a5e7ca7596f398b16a87c6", "score": "0.53055745", "text": "function release_type_form_submit(&$form, &$form_state) {\n $release_type = entity_ui_form_submit_build_entity($form, $form_state);\n\n\n // If this was a clone operation, clone the field instances as well.\n $op = $form_state['build_info']['args'][1];\n if ($op == 'clone') {\n $original_instances = field_info_instances('release_type', $form_state['original_release_type']->type);\n foreach ($original_instances as $instance) {\n $instance['bundle'] = $release_type->type;\n field_create_instance($instance);\n }\n unset($release_type->uuid);\n }\n $release_type->save();\n field_attach_submit('release_type', $release_type, $form, $form_state);\n drupal_set_message(t('Release type %title saved.', array('%title' => $release_type->label())));\n $form_state['redirect'] = 'admin/structure/release_types';\n}", "title": "" }, { "docid": "395e568f4b6ac11b68258aeeec4e2a11", "score": "0.5305487", "text": "public function callbackSubmit() : bool\n {\n $answerId = $this->form->value('answerId');\n $userId = $this->form->value('userId');\n $rank = $this->form->value('rank');\n\n $this->rankModel->targetId = $answerId;\n $this->rankModel->userId = $userId;\n $this->rankModel->rankScore = $rank;\n $this->rankModel->save();\n\n return true;\n }", "title": "" }, { "docid": "928130796f6f83fe644e5ee3b2a3fc66", "score": "0.53053004", "text": "function extra_options_submit($form, &$form_state) { }", "title": "" }, { "docid": "a7779bd332241bed6b883a78905b7ae7", "score": "0.5299105", "text": "public function submissionAction()\r\n {\r\n $this->makeRosaResponse();\r\n\r\n if ($this->getRequest()->isHead()) {\r\n $this->getResponse()->setHttpResponseCode(204);\r\n } elseif ($this->getRequest()->isPost()) {\r\n //Post\r\n // We get $_FILES variable holding the formresults as xml and all possible\r\n // attachments like photo's and video's\r\n $upload = new \\Zend_File_Transfer_Adapter_Http();\r\n\r\n // We should really add some validators here see http://framework.zend.com/manual/en/zend.file.transfer.validators.html\r\n // Returns all known internal file information\r\n $files = $upload->getFileInfo();\r\n\r\n foreach ($files as $file => $info) {\r\n // file uploaded ?\r\n if (!$upload->isUploaded($file)) {\r\n print \"Why haven't you uploaded the file ?\";\r\n continue;\r\n }\r\n\r\n // validators are ok ?\r\n if (!$upload->isValid($file)) {\r\n print \"Sorry but $file is not what we wanted\";\r\n continue;\r\n }\r\n }\r\n\r\n //Dit moet een filter worden (rename filter) http://framework.zend.com/manual/en/zend.file.transfer.filters.html\r\n $upload->setDestination($this->responseDir);\r\n\r\n //Hier moeten we denk ik eerst de xml_submission_file uitlezen, en daar\r\n //iets mee doen\r\n if ($upload->receive('xml_submission_file')) {\r\n $xmlFile = $upload->getFileInfo('xml_submission_file');\r\n $answerXmlFile = $xmlFile['xml_submission_file']['tmp_name'];\r\n $resultId = $this->processReceivedForm($answerXmlFile);\r\n if ($resultId === false) {\r\n //form not accepted!\r\n foreach ($xml->children() as $child) {\r\n $log->log($child->getName() . ' -> ' . $child, \\Zend_Log::ERR);\r\n }\r\n } else {\r\n //$log->log(print_r($files, true), \\Zend_Log::ERR);\r\n //$log->log($deviceId, \\Zend_Log::ERR);\r\n \\MUtil_File::ensureDir($this->responseDir . 'forms/' . (int) $this->openrosaFormID . '/');\r\n $upload->setDestination($this->responseDir . 'forms/' . (int) $this->openrosaFormID . '/');\r\n foreach ($upload->getFileInfo() as $file => $info) {\r\n if ($info['received'] != 1) {\r\n //Rename to responseid_filename\r\n //@@TODO: move to form subdir, for better separation\r\n $upload->addFilter('Rename', $resultId . '_' . $info['name'], $file);\r\n }\r\n }\r\n\r\n //Now receive the other files\r\n if (!$upload->receive()) {\r\n $messages = $upload->getMessages();\r\n echo implode(\"\\n\", $messages);\r\n }\r\n $this->getResponse()->setHttpResponseCode(201); //Form received ok\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "9f110112788481f9c98170076967710b", "score": "0.52970403", "text": "public function submit() {\n $this->status = self::SS_SUBMITED;\n $this->submitted_at = Carbon\\Carbon::now();\n $this->save();\n DB::table('book_items')\n ->where('book_id', $this->id)\n ->update(array('status' => BookItem::SS_SUBMITED));\n // Write submit book event\n Activity::write(Session::get('User'), Activity::SUBMITED_BOOK, $this);\n }", "title": "" }, { "docid": "0af881e9e82d4206060514027c7d5592", "score": "0.5289395", "text": "function gmodu_edit_form_submit($form, &$form_state) {\n $gmodu_submission = (object) $form_state['values'];\n field_attach_submit('gmodu', $gmodu_submission, $form, $form_state);\n $gmodu = gmodu_save($gmodu_submission);\n $form_state['redirect'] = $gmodu['path'];\n drupal_set_message(t('Modification enregistrée'));\n print_r($gmodu_submission);\n}", "title": "" }, { "docid": "9ea28b1f67e67b2927695b4319069a27", "score": "0.52844244", "text": "function mee_asset_delete_form_wrapper($mee_asset) {\n // Add the breadcrumb for the form's location.\n //mee_asset_set_breadcrumb();\n return drupal_get_form('mee_asset_delete_form', $mee_asset);\n}", "title": "" }, { "docid": "0016fbd56f4a6694d85eeafa69d6831e", "score": "0.52757144", "text": "public function callbackSubmit()\n {\n // Get values from the submitted form\n $postId = $this->form->value(\"postId\");\n $text = $this->form->value(\"text\");\n $userId = $this->di->get(\"session\")->get(\"userId\");\n\n if ($postId && $text && $userId) {\n $comment = new Comment();\n $comment->setDb($this->di->get(\"database\"));\n\n $newComment = $comment->createComment($userId, $postId, $text);\n if ($newComment) {\n $karma = new Karma();\n $karma->setDb($this->di->get(\"database\"));\n $karma->increaseKarma($userId, 1);\n $this->form->addOutput(\"Comment was created.\");\n return true;\n }\n }\n }", "title": "" }, { "docid": "050645bf48d9d428c0a2136bbc235606", "score": "0.52691746", "text": "public function upload_postAction() {\n\t\t$ret = Common::upload('img', 'Brand');\n\t\t$imgId = $this->getPost('imgId');\n\t\t$this->assign('code' , $ret['data']);\n\t\t$this->assign('msg' , $ret['msg']);\n\t\t$this->assign('data', $ret['data']);\n\t\t$this->assign('imgId', $imgId);\n\t\t$this->getView()->display('common/upload.phtml');\n\t\texit;\n }", "title": "" }, { "docid": "3d72ea76de543f5b3ac8d2de383bece0", "score": "0.5257585", "text": "function submit(){\n\t\t$this['status']='Submitted';\n $this->app->employee\n ->addActivity(\" Campaign : '\".$this['title'].\"' Submitted For Approval [ Based On Type : '\".ucfirst($this['campaign_type']).\"']\", $this->id,null,null,null,\"xepan_marketing_subscriberschedule&campaign_id=\".$this->id.\"\")\n ->notifyWhoCan('approve,redesign','Submitted',$this);\n $this->saveAndUnload(); \n\t}", "title": "" }, { "docid": "95a4593f2eeff7bdcbd1ec2c3209703b", "score": "0.52561367", "text": "public function submit_form()\n\t{\n\t\t$content = Http::request('content_abuse', 'post');\n\t\tif ($this->mode == 'mp')\n\t\t{\n\t\t\tFsb::$db->insert('posts_abuse', array(\n\t\t\t\t'u_id' =>\t\tFsb::$session->id(),\n\t\t\t\t'pa_time' =>\tCURRENT_TIME,\n\t\t\t\t'pa_text' =>\t$content,\n\t\t\t\t'pa_status' =>\tIS_NOT_APPROVED,\n\t\t\t\t'pa_mp_id' =>\t$this->id,\n\t\t\t));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$sql = 'SELECT t_id\n\t\t\t\t\t\tFROM ' . SQL_PREFIX . 'posts\n\t\t\t\t\t\tWHERE p_id = ' . $this->id;\n\t\t\t$post_data = Fsb::$db->request($sql);\n\n\t\t\tFsb::$db->insert('posts_abuse', array(\n\t\t\t\t'p_id' =>\t\t$this->id,\n\t\t\t\t'u_id' =>\t\tFsb::$session->id(),\n\t\t\t\t't_id' =>\t\t$post_data['t_id'],\n\t\t\t\t'pa_time' =>\tCURRENT_TIME,\n\t\t\t\t'pa_text' =>\t$content,\n\t\t\t\t'pa_status' =>\tIS_NOT_APPROVED,\n\t\t\t));\n\t\t}\n\n\t\tSync::signal(Sync::ABUSE);\n\n\t\t$url = ($this->mode == 'mp') ? 'mp&amp;id=' . $this->id : 'topic&amp;p_id=' . $this->id . '#' . $this->id;\n\t\tDisplay::message('abuse_submit', ROOT . 'index.' . PHPEXT . '?p=' . $url, 'forum_abuse');\n\t}", "title": "" }, { "docid": "13f78a9db799880fc29365f49a245a8d", "score": "0.5252644", "text": "static function submit()\n {\n $errors = [];\n if (!is_email($_POST['email'])) {\n array_push($errors, 'The email is not valid.');\n }\n if (!array_key_exists('times', $_POST)) {\n array_push($errors, 'Please select at least one time slot.');\n }\n $params = [\n 'page' => 'dukes-menu',\n 'date' => $_POST['date']\n ];\n if (count($errors) > 0) {\n $params['errors'] = $errors;\n } else {\n if (is_admin() && current_user_can('administrator')) {\n DBS_Booking::save();\n } else {\n if (DukesBookingSystem::submit_payment()) {\n DBS_Booking::save('paid (credit card)');\n }\n }\n }\n if ($_POST['origin'] == 'admin') {\n $url = admin_url('admin.php') . '?' . http_build_query($params);\n } else {\n $url = site_url() . '/booking/today' . '?' . http_build_query($params);\n }\n header(\"Location: $url\");\n }", "title": "" }, { "docid": "66d7acd1e9faf6afafb497f591372c11", "score": "0.52512634", "text": "protected function ___formSubmitSuccess(InputfieldForm $form) {\n\t\tif($form) {} // ignore\n\t\t$this->submitted = true; \n\t}", "title": "" }, { "docid": "39456393d1e8fd1495672e2f9a1b2897", "score": "0.523943", "text": "function getGroupAddEditFormSubmit() {\n\t\tinclude(SECURITYMANAGER_DIR . $this->_formsPath . $this->_formGroupAddEditSubmit);\n\t}", "title": "" }, { "docid": "a190c7f0de4ff3f1c2c9ffb854f92ebf", "score": "0.5237914", "text": "protected function _prepareForm() {\n $form = new Varien_Data_Form ( array ('id' => 'edit_form', 'name' => 'edit_form','action' => $this->getUrl ( '*/*/save', array ('id' => $this->getRequest ()->getParam ( 'id' )) ), 'method' => 'post','enctype' => 'multipart/form-data' ) );\n $form->setUseContainer ( true );\n $this->setForm ( $form );\n $fieldset = $form->addFieldset ( 'base_fieldset', array ('legend' => Mage::helper ( 'airhotels' )->__ ( 'Post Information' ) ) );\n $fieldset->addField ( 'video_name', 'text', array ('label' => Mage::helper ( 'airhotels' )->__ ( 'Video Name' ),'class' => 'required-entry','required' => true,'name' => 'video_name') );\n $requireFlag = 1;\n if (Mage::registry ( 'video_data' )) {\n $videoDataInfo = Mage::registry ( 'video_data' )->getData ();\n if (isset ( $videoDataInfo ['video_url_mp4'] )) {\n $requireFlag = 0;\n }\n }\n $videoField = $this->VideoTypeMp4Field ( $requireFlag, $fieldset, $videoDataInfo );\n $this->VideoTypeMp4 ( $form, $videoField );\n $requireFlag = 1;\n /**\n * Get the required flag value\n */ \n $videoField = $this->VideoTypeWebmField ($fieldset );\n $this->VideoTypeWebm ( $form, $videoField );\n /**\n * Display image field.\n */\n $imageField = $fieldset->addField ( 'image_url', 'file', array (\n 'name' => 'image_url[]',\n 'style' => \"display:none;\" \n ) );\n if (Mage::registry ( 'video_data' )) {\n $postData = Mage::registry ( 'video_data' )->getData ();\n }\n $htmlContent = '<span class=\"required\">*</span>';\n $form->setValues ( $postData );\n /**\n * Display image uploader label.\n */\n $imageUploaderLabel = Mage::helper ( 'airhotels' )->__ ( 'Upload Image For IE8 & Mobile Devices' ) . $htmlContent;\n $imagePreview = Mage::helper ( 'airhotels' )->__ ( 'Image' );\n $imageRemove = Mage::helper ( 'airhotels' )->__ ( 'Remove' );\n $imageTableHtml = \"<span class='image-resolution' style='float:left;'>Suggested Image Resolution : 1400x500</span><div class='grid' style='float:left;clear:both;margin-top:20px;'><table cellspacing='0' id='post_image'>\n<tr class='headings'>\n<th>$imagePreview</th>\n<th>$imageRemove</th>\n</tr>\";\n $allImagePath = '';\n $allImagePathArray = array ();\n if (Mage::registry ( 'video_data' ) && isset ( $postData ['image_url'] )) {\n $allImagePath = $postData ['image_url'];\n }\n $allImagePathArray = unserialize ( $allImagePath );\n Mage::getSingleton ( 'core/session' )->setImageValidationFlagStatusForVideoPost ( 0 );\n $imageTableHtml = $imageTableHtml . '<tbody id=\"post_image_table_body\">';\n /**\n * get the image html table value\n */\n $imageTableHtml = $this->getImageTableHtml ( $allImagePath, $allImagePathArray, $imageTableHtml, $postData );\n $imageTableHtml = $imageTableHtml . '</tbody>';\n $imageTableHtml = $imageTableHtml . '</table><style type=\"text/css\">#imageuploader .progress, #imageuploader .complete{clear: both;padding: 10px;margin: 0 0 12px;border: 1px solid #90c898;background-color: #e5ffed;}</style>';\n $imagesUrlForVideoPost = array ();\n /**\n * Store image url for video post in sessions.\n */\n Mage::getSingleton ( 'core/session' )->setImagesUrlForVideoPost ( $imagesUrlForVideoPost );\n $imageField->setAfterElementHtml ( \"<tr><td class='label'>$imageUploaderLabel</td><td class='value' id='image_uploader_for_post'>$imageTableHtml\" . Mage::helper ( 'airhotels/url' )->getImageUploaderForVideo () . \"<div class='validation-advice' id='image-validation' style='display:none;'></div></div></td></tr>\" );\n if (Mage::registry ( 'video_data' )) {\n $postData = Mage::registry ( 'video_data' )->getData ();\n }\n $form->setValues ( $postData );\n $statusData = Mage::registry ( 'video_data' )->getData ();\n $fieldset->addField ( 'status', 'select', array (\n 'label' => Mage::helper ( 'airhotels' )->__ ( 'Status' ),\n 'class' => 'required-entry',\n 'required' => true,\n 'name' => 'status',\n 'values' => Mage::getModel ( 'airhotels/videostatus' )->getOptionArray ( true ) \n ) );\n if (Mage::registry ( 'video_data' )) {\n $statusData = Mage::registry ( 'video_data' )->getData ();\n if (isset ( $statusData ['status'] )) {\n $status = $statusData ['status'];\n $statusData ['status'] = $status;\n }\n $form->setValues ( $statusData );\n }\n $this->setForm ( $form );\n ?>\n<script type=\"text/javascript\"> \n function editformsubmit(){\n Validation.validate($('video_name'));\n Validation.validate($('video_url_mp4')); \n Validation.validate($('status')); \n $('image-validation').hide();\n document.getElementById('image-validation').innerHTML = \"\"; \n if(document.getElementById(\"image\")){\n editForm.submit(); \n }else{\n respondToClick();\n function respondToClick(event) { \n $('image-validation').show(); \n $('image-validation').insert('Please select at least one image');\n }\n } \n }\n </script>\n<?php\n/**\n * Calling the parent Construct Method.\n */\n return parent::_prepareForm ();\n }", "title": "" }, { "docid": "f0a8aad851767ba9f2efc020f55a7344", "score": "0.52338064", "text": "function submit()\r\n {\r\n\r\n /* $this->load->library('form_validation');\r\n\r\n $this->form_validation->set_rules('page_headline', 'Page Headline', 'required|xss_clean');\r\n $this->form_validation->set_rules('page_content', 'Page Content', 'required|xss_clean');\r\n\r\n\r\n if ($this->form_validation->run() == FALSE)\r\n {\r\n $this->create();\r\n }\r\n else\r\n { */\r\n $data = $this->get_data_from_post();\r\n\r\n // form and upload correct, go for upload/save\r\n $update_id = $this->uri->segment(3);\r\n if (is_numeric($update_id)) {\r\n $this->_update($update_id, $data);\r\n } else {\r\n $this->_insert($data);\r\n }\r\n /* } */\r\n\r\n redirect('components');\r\n }", "title": "" }, { "docid": "4171c08ef078fdc42f22c44f3fe43cac", "score": "0.5227878", "text": "public function submit(){\n \n if($this->IsNew()){\n $this->rules['title']='required|string|max:255';\n $this->rules['tag']='required|string';\n $this->rules['email']='required';\n $this->rules['body']='required|string|max:255';\n }else{\n $this->rules['email']='required';\n $this->rules['title']='required';\n $this->rules['body']='required';\n }\n\n $this->validate(); \n\n if($this->IsNew()){\n $post = new Post();\n }else{\n $post = Post::find($this->_id);\n }\n $post->title = $this->title;\n $post->tag = $this->tag;\n $post->email = $this->email;\n $post->body = $this->body;\n $post->save();\n $this->dispatchBrowserEvent('load-page', ['page' => 'admin.blog.index']);\n $this->show=false;\n $this->resetForm();\n }", "title": "" }, { "docid": "9db84b1e272156f08bd63d2e2972b630", "score": "0.5222708", "text": "public function setFormOnSubmit($eventhandler) {\n\t\t$this->formOnSubmit = $eventhandler;\n\t}", "title": "" }, { "docid": "7591c0a7791c9f218a6680447fee4c33", "score": "0.52206755", "text": "public function gform_after_submission( $entry, $form ) {\n\n\t\t$this->get_pdfs( $entry, $form );\n\n\t\t$this->send_request();\n\n\t\t$this->remove_temp_files();\n\n\t}", "title": "" }, { "docid": "c61c526b812f9b020f04ddc5a351d884", "score": "0.52201", "text": "function feed_item_field_settings_form_submit($form, &$form_state) {\r\n $feed =& $form_state['#feed'];\r\n \r\n $feed_field =& $form_state['#feed_field'];\r\n $feed_field->name = trim($form_state['values']['name']);\r\n $feed_field->tag = trim($form_state['values']['tag']);\r\n $feed_field->namespace = $form_state['values']['namespace'];\r\n \r\n // Run handlers to apply feed field settings\r\n feed_item_field_settings_attach_submit($form, $form_state);\r\n\r\n $feed_fields = array();\r\n $feed_fields[] =& $feed_field;\r\n \r\n $status = feed_fields_save($feed_fields, $feed, TRUE);\r\n \r\n if ($status !== FALSE) {\r\n \r\n if ($status == SAVED_UPDATED) {\r\n drupal_set_message(t('The feed item field %name has been updated.', array('%name' => $feed_field->name)));\r\n }\r\n elseif ($status == SAVED_NEW) {\r\n drupal_set_message(t('The feed item field %name has been added.', array('%name' => $feed_field->name)));\r\n }\r\n }\r\n}", "title": "" }, { "docid": "117d6cda3d1251ebf6ec678c82ade687", "score": "0.52186096", "text": "public function callbackSubmit()\n {\n $userid = $this->form->value(\"select\");\n\n $user = new User();\n $user->setDb($this->di->get(\"db\"));\n $user->find(\"id\", $userid);\n\n // set user account to deleted\n $user->deleted = date(\"G:i:s M jS Y\", time());\n $user->acronym = \"Raderad användare\";\n $user->email = \"no@nomail.com\";\n $user->rank = 0;\n $user->gravatar = $user->gravatar($user->email);\n $user->password = \"XYXYXY\";\n $user->role = 1;\n $user->save();\n // $user->delete();\n\n // erase connections for voting\n\n $voteQuestion = new VoteQuestion();\n $voteQuestion->setDb($this->di->get(\"db\"));\n $voteQuestion->deleteWhere(\"userid = ?\", $userid);\n\n $voteAnswer = new VoteAnswer();\n $voteAnswer->setDb($this->di->get(\"db\"));\n $voteAnswer->deleteWhere(\"userid = ?\", $userid);\n\n $voteComment = new VoteComment();\n $voteComment->setDb($this->di->get(\"db\"));\n $voteComment->deleteWhere(\"userid = ?\", $userid);\n\n $this->form->addOutput(\"Användaren raderades.\");\n $this->di->get(\"response\")->redirect(\"user/edit-all\");\n }", "title": "" }, { "docid": "b446610b59a10fd33bf31070d6623eeb", "score": "0.52102035", "text": "protected function postSubmit(){\n RegistrationMisc::setJpartnerAfterRegistration($this->loginProfile,RegistrationEnums::$jpartnerfields[$this->getPageName()]);\n }", "title": "" }, { "docid": "30ae93ea5649038c779e014f75fdde93", "score": "0.52085847", "text": "function field_collection_item_form_submit($form, &$form_state) {\n $field_collection_item = field_collection_item_form_submit_build_field_collection($form, $form_state);\n $field_collection_item->save();\n drupal_set_message(t('The changes have been saved.'));\n $form_state['redirect'] = $field_collection_item->path();\n}", "title": "" }, { "docid": "535c7d6741b8efb0e7c51c01ee49f73e", "score": "0.52049875", "text": "function eck__entity__form_submit($form, &$state) {\n $entity = $state['values']['entity'];\n\n field_attach_submit($entity->entityType(), $entity, $form, $state);\n\n $entity_type = $entity->entityType();\n $entity_type = EntityType::loadByName($entity_type);\n $properties = $entity_type->properties;\n\n $wrapper = NULL;\n // If we find a value set for a property lets just set it.\n foreach ($properties as $property => $info) {\n $form_value = _eck_form_property_value($state, $property);\n\n if (isset($form_value)) {\n // @todo maybe we should do this in the form validation step.\n // that way we can catch entity wrapper validation exceptions\n // and set a form error message appropiately.\n\n // Lets give the behavior a chance to manipulate the data\n // before it is set.\n $vars = array('data' => $form_value);\n $data = eck_property_behavior_invoke_plugin($entity_type, 'pre_set', $vars);\n\n if (array_key_exists($property, $data)) {\n $form_value = $data[$property];\n }\n\n if (!$wrapper) {\n $wrapper = entity_metadata_wrapper($entity_type->name, $entity);\n }\n\n $wrapper->{$property}->set($form_value);\n }\n }\n\n $entity->save();\n\n drupal_set_message(t(\"Entity @entity_id - @entity_label has been saved\",\n array(\n \"@entity_id\" => $entity->id,\n \"@entity_label\" => entity_label($form['#entity_type'], $entity),\n )));\n\n $uri = eck__entity__uri($entity);\n $state['redirect'] = $uri['path'];\n}", "title": "" }, { "docid": "490b7b58fc23671f5cfb8f2a09d44153", "score": "0.5201864", "text": "function editor_form_submit($context, $values) {\n return $values;\n }", "title": "" }, { "docid": "e3c04632819ad907554cda0777f0fd10", "score": "0.5187408", "text": "protected function getSubmitAction(){\n\t\treturn \"update_solicitud\";\n\t}", "title": "" }, { "docid": "5ec754a77d052b897c6dec4d21fb35f9", "score": "0.5187184", "text": "function elife_article_fragment_title_edit_form_submit(&$form, &$form_state) {\n // Nothing.\n}", "title": "" }, { "docid": "282d32133861a3e0a55888d66bd70d30", "score": "0.5184819", "text": "public function submitForm(array &$form, FormStateInterface $form_state);", "title": "" }, { "docid": "892fa888ab817dc63ed7341b4c9501f7", "score": "0.5182673", "text": "function doSubmitEntry() {\r\n\t\tglobal $my;\r\n\r\n\t\t$event = new mosEventCal_Event();\r\n\t\t$event->bind( $_REQUEST, '' );\r\n\r\n\t\t//create the back button for the redirect dialog:\r\n\t\t\t$back_button = '<input class=\"button\" type=\"button\" value=\"' . _CMN_PREV . '\" onClick=\"history.back()\">';\r\n\t\t//before I save I need to check some user rights\r\n\t\t//for example if this user may edit events OR this user may post events\r\n\t\t\tif (($event->id && hasAccess( \"edit_event\" ) && $event->checked_out == $my->id) || (!$event->id && hasAccess( \"editor_form\" ))) {\r\n\t\t\t\tif( $event->check( $error ) ) {\r\n\t\t\t\t\tif ($event->store()) {\r\n\t\t\t\t\t\tHTML_EventCal::redirect_dialog( _SUCCESSFULL_ACTION_CAP, _SUCCESSFULL_POSTED );\r\n\t\t\t\t\t\tHTML_EventCal::view_event($event);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tHTML_EventCal::redirect_dialog( _ACTION_ABORTED_CAP, $event->_error , $back_button );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse HTML_EventCal::redirect_dialog( _ACTION_ABORTED_CAP, $error , $back_button );\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tmosNotAuth();\r\n\t}", "title": "" }, { "docid": "848d3c65e9a43267f28cbc6288a7928d", "score": "0.51721054", "text": "function ding_serendipity_form_base_submit(&$form_state) {\n $form_state['conf']['view_mode'] = !empty($form_state['values']['view_mode']) ? $form_state['values']['view_mode'] : 'big_teaser';\n $form_state['conf']['sort_weight'] = !empty($form_state['values']['sort_weight']) ? $form_state['values']['sort_weight'] : FALSE;\n $form_state['conf']['max'] = !empty($form_state['values']['max']) ? $form_state['values']['max'] : 0;\n $form_state['conf']['min'] = !empty($form_state['values']['min']) ? $form_state['values']['min'] : 0;\n $form_state['conf']['random'] = !empty($form_state['values']['random']) ? $form_state['values']['random'] : FALSE;\n}", "title": "" }, { "docid": "2104caa66289cd8f48db72610efd6624", "score": "0.5170338", "text": "function submitAction()\n {\n $tmplt = new Template('default');\n $_SESSION['submitted'] = true;\n $page = new Page();\n $page->findBy('id', $this->entityID);\n $tmplt->view('static-page', $page);\n }", "title": "" }, { "docid": "47a74fd1d2dafcf9df87eb1882411b66", "score": "0.5164753", "text": "function property_attach_form_submit($entity_type, $entity, $property, &$form, &$form_state, $options = array()) {\n //@todo _property_attach_form_submit()\n}", "title": "" }, { "docid": "8d82bfbbd630e0c4070f43de65198250", "score": "0.5163576", "text": "public function handleRequest()\n {\n $submitted = $this->isSubmitted();\n\n if ($submitted) {\n CHtml::setModelNameConverter(function () { return $this->getFormName(); });\n\n $formData = $GLOBALS['_' . $this->formMethod][$this->formName];\n foreach ($this->getFileAttributes() as $fileAttribute) {\n $formData[$fileAttribute] = CUploadedFile::getInstance($this, $fileAttribute);\n }\n\n CHtml::setModelNameConverter(null);\n\n $this->submit($formData);\n }\n\n return $submitted;\n }", "title": "" }, { "docid": "a31c5f630b3e3a3c24d74750fa4ee21e", "score": "0.514835", "text": "public function handleFormSubmit(): array\n {\n $formResponse = new FormResponse();\n $enterpriseDemoRequestForm = new EnterpriseDemoRequestForm();\n $formFields = $enterpriseDemoRequestForm->getFields();\n\n if (!empty($_POST)) {\n $requiredFields = $enterpriseDemoRequestForm->getRequiredFields();\n $form = new Form($requiredFields, $this->getNonceTokenName());\n\n if ($form->isFormValid()) {\n try {\n $hubspotFormHandler = new HubspotFormHandler();\n $hubspotFormHandler->handleFormToHubspot(\n $enterpriseDemoRequestForm->prepareHubspotLeadFromFormData(),\n HubspotConfiguration::FORM_ID_ENTERPRISE_DEMO_REQUEST\n );\n\n $requestContext = new RequestContext($_SERVER);\n $segmentContextBuilder = new SegmentContextBuilder($requestContext, $_COOKIE);\n\n require_once(__DIR__ . '../../libraries/segment/lib/Segment.php');\n \\Segment::init('9N0peU5oWLnsE151CaXjJSKB1WJaqpiq');\n \\Segment::track([\n 'userId' => Data::_stringFromPost('email'),\n 'event' => 'Submitted Successfully',\n 'properties' => [\n 'category' => 'Multistep form',\n 'label' => 'Enteprise demo request',\n 'value' => '10',\n ],\n 'integrations' => [\n 'Google Analytics' => [\n 'clientId' => $segmentContextBuilder->getGoogleAnalyticsClientId()\n ]\n ],\n 'context' => $segmentContextBuilder->build()\n ]);\n\n $formResponse->setSuccess();\n wp_redirect(get_permalink(get_page_by_path('enterprise-thank-you')), 303);\n exit;\n } catch (\\Exception $e) {\n error_log($e);\n $formFields = $enterpriseDemoRequestForm->getOldData();\n $formResponse->setError();\n }\n } else {\n error_log('Tried to submit an invalid form');\n // return data that user filled in, it is easier to fix already submitted data than submiting once again\n $formFields = $enterpriseDemoRequestForm->getOldData();\n $formResponse->setError();\n }\n\n }\n $formResponse->setFields($formFields);\n\n return $formResponse->returnResponse();\n }", "title": "" }, { "docid": "571335094e2a3334f25ddf749c5346e0", "score": "0.5147657", "text": "public function viewsFormProcess(array $element, FormStateInterface $form_state) {\n $element['#submit'][] = [$this, 'saveEntities'];\n return $element;\n }", "title": "" }, { "docid": "813d610b1311e4cefd84d89ef75edeb1", "score": "0.5135793", "text": "public function _submit_data()\n {\n $data = $this->_get_data_from_post();\n\n if (isset($_FILES['photo']) && $_FILES['photo']['name'] != null) {\n $data['image'] = Modules::run('uploader/upload', 'photo', 'profile');\n }\n\n $id = $this->uri->segment(3) == 'edit' ? $this->session->user_id : '';\n if (is_numeric($id)) {\n $this->_update($id, $data);\n Modules::run('auth/create_session', $this->session->user_id);\n redirect($this->uri->segment(3) == 'edit' ? 'users/profile' : 'users');\n } else {\n $this->_insert($data);\n redirect('users/login');\n }\n }", "title": "" }, { "docid": "946b3961a4f0206bb7f458fb80fb2541", "score": "0.5131346", "text": "function elife_article_criticalrelation_edit_form_submit(&$form, &$form_state) {\n // Nothing.\n}", "title": "" }, { "docid": "b74e73a030fdde92d6f5ddf27efabefa", "score": "0.5122899", "text": "public function onFormSubmit() {\n\n /**\n * Form validation\n */\n $customValidationMessages = [\n 'name.required' => trans('zainab.simplecontact::validation.custom.name.required'),\n 'email.required' => trans('zainab.simplecontact::validation.custom.email.required'),\n 'email.email' => trans('zainab.simplecontact::validation.custom.email.email'),\n 'subject.required' => trans('zainab.simplecontact::validation.custom.subject.required'),\n 'message.required' => trans('zainab.simplecontact::validation.custom.message.required'),\n ];\n $formValidationRules = [\n 'name' => 'required',\n 'email' => 'required|email',\n 'subject' => 'required',\n 'message' => 'required',\n ];\n\n $validator = Validator::make(post(), $formValidationRules, $customValidationMessages);\n\n if ($validator->fails()) {\n\n $messages = $validator->messages();\n Flash::error($messages->first());\n\n throw new AjaxException([\n '#simple_contact_flash_message' => $this->renderPartial('@flashMessage.htm', [\n 'errors' => $messages->all()\n ])\n ]);\n }\n\n /**\n * Validating reCaptcha\n */\n if (Settings::get('recaptcha_enabled', false)) {\n\n $response = json_decode(file_get_contents(\"https://www.google.com/recaptcha/api/siteverify?secret=\" . Settings::get('secret_key') . \"&response=\" . post('g-recaptcha-response') . \"&remoteip=\" . $_SERVER['REMOTE_ADDR']),\n true);\n if ($response['success'] == false) {\n Flash::error(e(trans('zainab.simplecontact::validation.custom.reCAPTCHA.required')));\n\n throw new AjaxException(['#simple_contact_flash_message' => $this->renderPartial('@flashMessage.htm')]);\n }\n }\n\n\n /**\n * At this point all validations succeded\n * further processing form\n */\n\n $this->submitForm();\n\n\n if (Settings::get('redirect_to_page', false) && !empty(Settings::get('redirect_to_url', ''))) {\n return Redirect::to(Settings::get('redirect_to_url'));\n }\n else {\n Flash::success(Settings::get('success_message', 'Thankyou for contacting us'));\n return ['#simple_contact_flash_message' => $this->renderPartial('@flashMessage.htm')];\n }\n }", "title": "" }, { "docid": "fe8f1697e8849b1a859cbd443fc6b713", "score": "0.5120283", "text": "function fr_dataset_field_table_overrides_add_submit_callback($form, &$form_state) {\n $form_state['rebuild'] = TRUE;\n}", "title": "" } ]
8e50bb81092dbddfc8b274820a6a6091
Log le message passe en parametre $this>log('message');
[ { "docid": "a48f9614465c21f374f13112141941b0", "score": "0.62030554", "text": "function log($message)\n\t{\n\t\t($GLOBALS['auteur_session'] && ($qui = $GLOBALS['auteur_session']['login']))\n\t\t|| ($qui = $GLOBALS['ip']);\n\t\tspip_log('cfg (' . $this->nom_config() . ') par ' . $qui . ': ' . $message);\n\t}", "title": "" } ]
[ { "docid": "dfff05cadbcd11f2bc6ad286474e614b", "score": "0.82209", "text": "public function log($message){\n\t}", "title": "" }, { "docid": "606a0f340cee7ae837c7bbb422b8f240", "score": "0.7999732", "text": "public function log($message);", "title": "" }, { "docid": "606a0f340cee7ae837c7bbb422b8f240", "score": "0.7999732", "text": "public function log($message);", "title": "" }, { "docid": "8e62f67032eceb92a80abca69d7d1885", "score": "0.77718616", "text": "public static function log( $message ) {\n }", "title": "" }, { "docid": "2c9ea451f4b21a5638215ee119640fcd", "score": "0.7650634", "text": "private function log( $message )\n\t{\n\t}", "title": "" }, { "docid": "8ac390d59212772e4d975e3374117e6d", "score": "0.74838907", "text": "public static function log($message)\n {\n echo $message.\"\\n\"; \n }", "title": "" }, { "docid": "73041a9ec21d110f6f763c0d7fefd5b5", "score": "0.7418468", "text": "private function logMessage($log, $level=\"debug\"){\n\t \terror_log(\"Class \".get_class($this).\": \".$log);\n\t }", "title": "" }, { "docid": "7ae2c248da1c97621d99d00dedccb5bb", "score": "0.7331502", "text": "public function log($log);", "title": "" }, { "docid": "e27c694930a2a2e1216883761c9be677", "score": "0.72637236", "text": "public function log($log_text) {}", "title": "" }, { "docid": "d6b3e8d0a09a7e88818bf36190a84bee", "score": "0.7197861", "text": "public function log($string)\n {\n }", "title": "" }, { "docid": "5ceccc18e6429301abaecffe5d1012c7", "score": "0.7193601", "text": "public function logMessage(LogData $data);", "title": "" }, { "docid": "be5226ac91dc7293ffd017e119ef1dd3", "score": "0.71473956", "text": "public function log(ILogMessage $log);", "title": "" }, { "docid": "af332e4e9db0b59320097275c905e08c", "score": "0.7140128", "text": "public function log()\n {\n }", "title": "" }, { "docid": "628938043000f4127fa8f49cb80e5804", "score": "0.70102584", "text": "public function log($message)\n {\n echo \"\\n\";\n print_r($message);\n echo \"\\n\";\n }", "title": "" }, { "docid": "f40d9e4ae3a83452e82ad37fadf978ef", "score": "0.6974164", "text": "public function log($data);", "title": "" }, { "docid": "363ecf28e8cde22e504cb8c3d5915bbd", "score": "0.69554067", "text": "public function log();", "title": "" }, { "docid": "5b24a6767ccdaa15d6d2cad3dc125f77", "score": "0.69331014", "text": "abstract public function log($level, $msg);", "title": "" }, { "docid": "efdc66b1cf181b7c89c94936a6ae0e32", "score": "0.6921784", "text": "public static function Log($logline){\n\t}", "title": "" }, { "docid": "0e3fd96ff79b0047d6f8b83bfc7a5816", "score": "0.6913312", "text": "private function log($message) {\n echo \"[\" . date('Y-m-d H:i:s') . '] ' . $message . \"\\n\";\n }", "title": "" }, { "docid": "b27c7b7f135ccd851089d00fb7167674", "score": "0.6880609", "text": "public function log($msg){\n \\Lobby::log($msg, \"apps.log\");\n }", "title": "" }, { "docid": "eed8daebb21a7d18a6c905704ef5ab7f", "score": "0.686491", "text": "public function log( $message, $_ = null ) {\n\n\t\tif ( $this->debug_log_enabled() ) {\n\t\t\tparent::log( $message );\n\t\t}\n\t}", "title": "" }, { "docid": "edeaf842392e4c739d0cdc07e9791755", "score": "0.6850523", "text": "public function log($message)\n {\n Mage::log($message, null, \"loyalty.log\");\n }", "title": "" }, { "docid": "78113f373922248419601b96c8d39a0f", "score": "0.6818582", "text": "public function log($str);", "title": "" }, { "docid": "94d684772941a098e47e29aed400c2e6", "score": "0.68131644", "text": "private function logMessage($message)\n\t{\n\t\tif ($this->_logger != null)\n\t\t\t$this->_logger->logMessage($message);\n\t}", "title": "" }, { "docid": "5965c049bc2ab015a98511db93829a9f", "score": "0.6773169", "text": "public function logDebug($message);", "title": "" }, { "docid": "1d55fe4048d0b931bed5639c3d71c00c", "score": "0.6742461", "text": "public function log($message, $type = null) {\n\t\tif (!class_exists('RequestHandlerComponent')) {\n\t\t\tApp::import('Component', 'RequestHandler');\n\t\t}\n\t\tif (!is_string($message)) {\n\t\t\t$message = print_r($message, true); //@ignore\n\t\t}\n\t\tparent::log(RequestHandlerComponent::getClientIP() . \"\\t\" . $message, $type);\n\t}", "title": "" }, { "docid": "42d9ccc2b4270eca3539025ba16820e8", "score": "0.670871", "text": "protected function log($str,$data=\"\"){\r\n\t\t$this->_log->log($str,$data);\r\n\t}", "title": "" }, { "docid": "979c191ad15746b97f505394b866dec4", "score": "0.66878474", "text": "public abstract function log($message, $level);", "title": "" }, { "docid": "32180b246fc67b0de0d3d5590be89925", "score": "0.6662955", "text": "function writeLog($logMessage) {\r\n // log function, unable to show\r\n}", "title": "" }, { "docid": "3f440a701fe73a831c7040dd48d84b88", "score": "0.66618866", "text": "protected function log($message)\r\n {\r\n $this->messages[] = $message;\r\n }", "title": "" }, { "docid": "1b0ab546786b125ca12bc03825b83c41", "score": "0.6638684", "text": "public function log($title, $description, $level, $log) {\n }", "title": "" }, { "docid": "25cadb4981399d677d3604546d4a56a7", "score": "0.66329914", "text": "abstract public function log($message, $category);", "title": "" }, { "docid": "066bc1d9108fcb6c18eefe013c97121f", "score": "0.66121244", "text": "private function log($message, $type = 'info')\n {\n echo $message . \"\\n\";\n }", "title": "" }, { "docid": "acfb3fb0d7f5170e9852cd2deceb2e88", "score": "0.6575136", "text": "function logger($message)\n{\n\techo \"logger: \" . $message . PHP_EOL;\n}", "title": "" }, { "docid": "d3fe5cdda49cb2f883baf0a868f6f6a1", "score": "0.65678173", "text": "public function logDebug($text);", "title": "" }, { "docid": "d1796548f467762cadf7b7396dd49310", "score": "0.6543251", "text": "public abstract function log($message, $level = Log2::NOTICE);", "title": "" }, { "docid": "a7647f5a180b41d79d075dc58a8a3c64", "score": "0.65335864", "text": "public function msg($strLogP);", "title": "" }, { "docid": "61d7d49cca1d7b0e3d65498e17fbdec0", "score": "0.6533313", "text": "private function log($message, $params = '') {\n Log::log($message, L_INFO, 'actions', array('layer' => 'app', 'source' => 'User', 'params' => \"user=\" . $this->getName() . ' ' . $params));\n }", "title": "" }, { "docid": "4658139885e42ca6289f4da6a34b42c1", "score": "0.6509224", "text": "public function writeLog()\n {\n }", "title": "" }, { "docid": "366e0d4a9c61e6b0c3526b7e3bc0c29a", "score": "0.64973706", "text": "function xlog($message = 'null')\n {\n $log = print_r($message, true);\n \\Magento\\Framework\\App\\ObjectManager::getInstance()\n ->get('Psr\\Log\\LoggerInterface')\n ->debug($log)\n ;\n }", "title": "" }, { "docid": "e4ffbe1eb40030f60e6a685fa8ec0d7f", "score": "0.64878863", "text": "public function log($type, $message, $context=null){ }", "title": "" }, { "docid": "a55a6aecffa5191cd32f40c757737454", "score": "0.64846826", "text": "public function log($message, $level, $ip);", "title": "" }, { "docid": "8426998b3cb1e2ba81814d24935a2611", "score": "0.64832085", "text": "function logger($message)\n\t\t{\n\t\t\t$requester=$_SERVER['REMOTE_ADDR'];\n\t\t\t$log = new Logging();\n\t\t\t$log->logfile('./'.$this->aps->id.'.log');\n\t\t\t$log->logwrite($requester.\":\".$message);\n\t\t\t$log->logclose();\n\t\t}", "title": "" }, { "docid": "f1858fa03b9c0caa9f9bc87838bd2ca6", "score": "0.6466167", "text": "public function log() {\n if (func_num_args() > 0) {\n foreach (func_get_args() as $argument) {\n if (is_array($argument)) echo print_r($argument,true); else echo $argument;\n\t\techo \"<br>\\n\";\n }\n }\n }", "title": "" }, { "docid": "86c2993bbdd58fd53349ca279b123566", "score": "0.64612746", "text": "protected function log( string $message ) {\n\t\tfacebook_for_woocommerce()->log(\n\t\t\t$message,\n\t\t\tsprintf( '%s_%s', WC_Facebookcommerce::PLUGIN_ID, $this->get_name() )\n\t\t);\n\t}", "title": "" }, { "docid": "c91f8c842ef42bcd56ad4a6174f5dd1b", "score": "0.64602613", "text": "function fphp_log($data = '', $title = '')\n {\n FB::log( $data, $title );\n }", "title": "" }, { "docid": "592d987d019778bfa0b3eda57a508c0c", "score": "0.64524925", "text": "function log($message)\n {\n if (array_key_exists('API_Logger', $GLOBALS))\n {\n global $API_Logger;\n $API_Logger->log($message);\n }\n }", "title": "" }, { "docid": "a8eedc474c11d55a6d7370157425b7ab", "score": "0.64399534", "text": "public function log($message)\n {\n $this->bootstrap->log($message);\n }", "title": "" }, { "docid": "5ce1dd3318414510ad19ddd1355d5f51", "score": "0.6408292", "text": "function _log($text,$level=10) {\n\t\tif($this->logger) call_user_func($this->logger, $text, $level);\n\t}", "title": "" }, { "docid": "424fd7c4365da921ca38e31bb0bd801d", "score": "0.6403139", "text": "static public function log($message) {\n\t\tif (isset(self::$instance)) {\n\t\t\t$trace = debug_backtrace();\n\t\t\t$info = $trace[0];\n\n\t\t\tself::$instance->messages[] = array(\n\t\t\t\t'message' => $message,\n\t\t\t\t'file' => $info['file'],\n\t\t\t\t'line' => $info['line'],\n\t\t\t\t//'time' => date('r'),\n\t\t\t\t'args' => array_slice($info['args'], 1)\n\t\t\t\t//'trace' => array_slice($trace, 1)\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "38eecbf72094bb10b7e18230cd6f1e17", "score": "0.6395417", "text": "protected function log($msg)\n\t{\n\t\tget_log('scheduling')->Write(__CLASS__.\": {$msg}\");\n\t}", "title": "" }, { "docid": "9ea9e593061fecd8f16107c918148f20", "score": "0.638946", "text": "protected function logInfo($message, $log)\n {\n $log->info($message);\n $this->info($message);\n }", "title": "" }, { "docid": "ab99e24dba0b34a5a45bc8e2dc9cefb4", "score": "0.63889587", "text": "public static function log()\n\t{\n\t\tswitch (func_num_args()) {\n\t\tcase 1:\n\t\t\t$level = LOG_INFO;\n\t\t\t$msg = func_get_arg(0);\n\t\t\tbreak;\n\t\t\t\n\t\tcase 2:\n\t\t\t$level = func_get_arg(0);\n\t\t\t$msg = func_get_arg(1);\n\t\t\tbreak;\n\t\t\t\n\t\tcase 3:\n\t\t\t$level = LOG_INFO;\n\t\t\t$msg = sprintf(\"%s:%s %s\\n\", func_get_arg(0), \n\t\t\t func_get_arg(1), func_get_arg(2));\n\t\t\tbreak;\n\t\t\t\n\t\tcase 4:\n\t\t\t$level = func_get_arg(0);\n\t\t\t$msg = sprintf(\"%s:%s %s\\n\", func_get_arg(1), \n\t\t\t func_get_arg(2), func_get_arg(3));\n\t\t\tbreak;\n\t\t\t\n\t\tdefault:\n\t\t\terror_log(self.\"::\".__FUNCTION__.\": wrong number of args\");\n\t\t}\n\t\t\n\t\tif (!defined('CFG_LOGLEVEL')) {\n\t\t\tdefine('CFG_LOGLEVEL', LOG_INFO);\n\t\t}\n\t\t\n\t\tif ($level > CFG_LOGLEVEL)\n\t\t\treturn;\n\t\t\n\t\tif (defined('CFG_LOGFACILITY')) {\n\t\t\topenlog(\"geoproxy\", LOG_PID, CFG_LOGFACILITY);\n\t\t\tsyslog($level, $msg);\n\t\t\tcloselog();\n\t\t} else {\n\t\t\terror_log($_msg);\n\t\t}\n\t}", "title": "" }, { "docid": "efbc6ddf293886c413bbe17902eb2c88", "score": "0.6377191", "text": "private function log($message)\n {\n if ($this->debug) {\n $this->logger->add($this->logger_id, $message);\n }\n }", "title": "" }, { "docid": "9b6bf184c3910f9d57b71f1709d50cec", "score": "0.6368564", "text": "function logMessage($line) {\n/*\t\n*/ \t\n}", "title": "" }, { "docid": "15ce12499049e792dfd9ed554ee15526", "score": "0.63617766", "text": "public function log($message, $line = 0)\n {\n if ($this->verbose) {\n echo \"$line - $message\\n\";\n }\n }", "title": "" }, { "docid": "79ec1ffabe3eeaeb6c6b943b58ea9ccd", "score": "0.63393295", "text": "public function log($file);", "title": "" }, { "docid": "de280db95b0bf3a738ff78469309f703", "score": "0.63241607", "text": "function setLog($log) {\r\n $this->log = $log;\r\n }", "title": "" }, { "docid": "7a78dbb77de43c1ad09fb64fe2217234", "score": "0.63000256", "text": "public function index(){\n Log::write('debug',\"Something didn't work.\");\n \n /*The second way to write to log file.*/\n $this->log(\"Something didn't work.\",'debug');\n }", "title": "" }, { "docid": "c3b93e31fa21c3a47c08b51efdde14d9", "score": "0.6286915", "text": "protected function log(string $message)\n {\n echo '[' . date('Y-m-d H:i:s') . '] - ' . $message . PHP_EOL;\n }", "title": "" }, { "docid": "ad4c23f277a2eae4152aa53998d0eaf4", "score": "0.62822574", "text": "function log();", "title": "" }, { "docid": "615efe26ea889825f48c42a6f0e36cb7", "score": "0.62637776", "text": "function logEvent($type, $message){\n $this->logNotice($message, ['category' => $type, 'vku' => $this]);\n return $message;\n }", "title": "" }, { "docid": "d55cf7c99c86a60b2be7c68a890611f6", "score": "0.6259568", "text": "public function log($message) {\n $this->logs[] = $message;\n }", "title": "" }, { "docid": "522aac1ea1ce6cc8e674cb62c606572a", "score": "0.62555104", "text": "private function setLog($logMsg) {\r\n\t\t\t$this->logMsg .= $logMsg;\r\n\t\t}", "title": "" }, { "docid": "6d519dc823e7b607fe0b59e3ea70f9d3", "score": "0.62539446", "text": "protected function log($maessage){\n// echo $date.PHP_EOL;\n// $date = date_create($date);\n// echo date_timezone_get($date)->getName().PHP_EOL;\n//\n// $date->setTimezone(new DateTimeZone('Africa/Lagos'));\n// echo date_timezone_get($date)->getName().PHP_EOL;\n// echo $date->format('Y-m-d H:i:s');\n\n echo '['.date('Y-m-d H:i:s').']-'.$maessage.PHP_EOL;\n }", "title": "" }, { "docid": "6ce42a5b38ba7770b844b810f71fa585", "score": "0.62478", "text": "public function log( $level, string $message, array $context = [] );", "title": "" }, { "docid": "b22604515476fb8cb011e2032b002133", "score": "0.6239518", "text": "public function getLogMessage();", "title": "" }, { "docid": "2b106dca15d2348ab7dd811baadfae22", "score": "0.61962426", "text": "public function put() {\n\t\tif (!is_null($this->log)) {\n\t\t\tcall_user_func_array([$this->log, 'put'], func_get_args());\n\t\t}\n\t}", "title": "" }, { "docid": "9f1cd37ae1235746f494562342a6b5d7", "score": "0.6195998", "text": "public function log( $message ) {\n if ($this->logging == \"yes\") {\n if (empty( $this->log ) ) {\n $this->log = new WC_Logger();\n }\n $this->log->add($this->id, $message);\n }\n }", "title": "" }, { "docid": "fa338e0fe9e2c8defb12802138d96a08", "score": "0.6171068", "text": "public function logTime($message);", "title": "" }, { "docid": "0b085d0ba60691106d2d4dead793e08f", "score": "0.61696726", "text": "public function log($pMsg)\r\n {\r\n echo '>> ';\r\n echo $pMsg, \"\\n\";\r\n }", "title": "" }, { "docid": "6c1cf9f74357f82bee9a97dfdabb2de5", "score": "0.6161234", "text": "private function log($msg) {\n\t\t// if log_mode is false we don't have any work here\n\t\tif ($this->log_mode === false) return;\n\n\t\t// if given message is object or array we present it as string\n\t\tif (is_object($msg))\n\t\t\t$msg = print_r($msg, true);\n\t\tif (is_array($msg))\n\t\t\t$msg = print_r($msg, true);\n\n\t\t// adds date and delimiters into message\n//\t\t$msg = $delim.date(\"Y-m-d H:i:s\").$delim.$msg.$delim;\n\t\t\n\t\t// sends message into log-file\n\t\terror_log($msg.\"\\n\", 3, $this->log_name);\n\t}", "title": "" }, { "docid": "d704a8ea458e7655e72338f34a9fbe03", "score": "0.6146922", "text": "public function message($message);", "title": "" }, { "docid": "51891ec48e0fbe095e41a83dd6d01d12", "score": "0.61458504", "text": "public function logInfo($text);", "title": "" }, { "docid": "28c3b89e57da431c2feb45f0414e3733", "score": "0.6138223", "text": "public function log($message, $data=null) {\n\t\tif(is_array($data) || is_object($data)) {\n\t\t\t$message.=\" \".print_r($data, true);\n\t\t}\n\t\t$id = uniqid('',true);\n\t\t$timestamp = date(\"Y-m-d H:i:s\");\n\t\tif($this->do_write) {\n\t\t\t$this->db->insert($this->table, array('id'=>$id, 'message'=>$message, 'timestamp'=>$timestamp));\n\t\t\treturn $message;\n\t\t}\n\t}", "title": "" }, { "docid": "aa82f0058787c532527ea281d8eda5db", "score": "0.61193246", "text": "static function log($message, $delim=true) {\n\t\tVtiger_Utils::Log($message, $delim);\n\t}", "title": "" }, { "docid": "5c438d094ebc20043ad631329aa7be4b", "score": "0.6110887", "text": "public function log($path);", "title": "" }, { "docid": "53eb1f0d8d02b2de1e9c04fe0ed6033b", "score": "0.6102501", "text": "public function logSuccess($message);", "title": "" }, { "docid": "c7da6bc67818f1520d0d58f259471b6e", "score": "0.60958785", "text": "private function logit( $msg ) {\r\n\t\t\tif ( $this->debug ) {\r\n\t\t\t\t$this->log->add( DS_KASHFLOW, $msg );\r\n\t\t\t}\r\n\t\t\tif ($this->debug) {\r\n\t\t\t\tif (version_compare(WC_VERSION, '3.0', '<')) {\r\n\t\t\t\t\tif (empty($this->log)) {\r\n\t\t\t\t\t\t$this->log = new WC_Logger();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$this->log->add(DS_KASHFLOW, $msg);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (empty($this->log)) {\r\n\t\t\t\t\t\t$this->log = wc_get_logger();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$this->log->log('notice', $msg, array('source' => DS_KASHFLOW));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}", "title": "" }, { "docid": "43f6cb3e0b1e622342fc0cf9dd50d9a3", "score": "0.6092123", "text": "public function log($message)\n {\n\n if (!empty($this->log_file)) {\n //echo $message;\n \\file_put_contents($this->log_file, \"\\n\" . $message, \\FILE_APPEND);\n }\n }", "title": "" }, { "docid": "dcbffaf3379183c0bd139801c841fa1f", "score": "0.6073693", "text": "private function log($text){\n\t\t$save = new Save;\n\t\t$save->WriteLog('pos','commands','receive',$text);\n\t}", "title": "" }, { "docid": "c241bdde9e60051eebbf31ebd9808513", "score": "0.6066116", "text": "private function logg($message) {\n $file = Craft::getAlias('@storage/logs/changestripesubsciption.log');\n $log = date('Y-m-d H:i:s').' '.$message.\"\\n\";\n \\craft\\helpers\\FileHelper::writeToFile($file, $log, ['append' => true]);\n }", "title": "" }, { "docid": "d83d2f21be160697e6ae6fe7fb61ffb5", "score": "0.6040256", "text": "protected function log($message, $args = NULL) {\n $this->logger->logInfo($message, $args);\n }", "title": "" }, { "docid": "8c4e99170946d16754aace7decf0d19d", "score": "0.603558", "text": "function _log($s) {\n echo $s.\"\\n\";\n}", "title": "" }, { "docid": "5dfcd08e8a855c94355d3b385a4c0217", "score": "0.60259163", "text": "public function log($msg) {\n\t\tif (filter_var($this->getConfig()->EnableLogging, FILTER_VALIDATE_BOOLEAN)) \n\t\t{\n\t\t\tMage::log($msg, null, 'Isiweb_Magestpay.log');\n\t\t}\n }", "title": "" }, { "docid": "be6f501a91aaaa8b17c4dc76fd1905de", "score": "0.6019006", "text": "public function logfmt();", "title": "" }, { "docid": "6724130f02b423a7b2aa10b8a5a165c7", "score": "0.60152173", "text": "public function Log($msg) {\n\n error_log(print_r($msg, true));\n error_log(\"***********************\");\n }", "title": "" }, { "docid": "d74f05643daf2e5b61b57fdd926d72ed", "score": "0.6014453", "text": "function log($caseid, $message) {\n $d=$this->_cases->rDisplay($caseid);\n $this->_cases->procEdit(array('oid'=>$caseid, 'log'=>$d['olog']->raw.date('Y-m-d H:i:s').':'.$message.\"\\n\"));\n }", "title": "" }, { "docid": "20b24cf19bc9c05488f8faa40546a020", "score": "0.60124177", "text": "public function message($message)\n\t{\n\t\t$this->message = $message;\n }", "title": "" }, { "docid": "64dd9b1bef21fbae90436fe1f278ad35", "score": "0.60054064", "text": "public function log(string $message, string $type = 'info'): void\n {\n if ($this->logger === null) {\n return;\n }\n\n $this->logger->log($type, $message);\n }", "title": "" }, { "docid": "cdb5104e58e82b27e5604e0499dc4483", "score": "0.5996008", "text": "public function writeLog() {\n // To be overridden by Child class.\n }", "title": "" }, { "docid": "432ac78b75e3135302929d3a81c646b8", "score": "0.5981892", "text": "private function message($message)\n {\n echo $message . PHP_EOL;\n }", "title": "" }, { "docid": "0689cccf8d1839cea10cd45aafef545a", "score": "0.5979792", "text": "public static function log($level, $message, array $context = array());", "title": "" }, { "docid": "10860fbf31327c47cce9d41606d73f75", "score": "0.59768397", "text": "private function log(string $message) {\n\t\t$log_msg = sprintf(\"%s: %s\\n\", date(\"Y-m-d H:i:s\"), $message);\n\t\tif (GITHOOK_DEBUG)\n\t\t\techo $log_msg;\n\n\t\t@file_put_contents($this->log_fp, $log_msg, FILE_APPEND);\n\t}", "title": "" }, { "docid": "a725c832a750dfe45bd776525b3d73d4", "score": "0.59735227", "text": "public static function log($level, $message, $placeholders = []);", "title": "" }, { "docid": "2fa563ef2829d410678609b4d5f87f3f", "score": "0.59686923", "text": "function logMessage($message){\n//file_put_contents( LOG_PATH . \"log.txt\", $message. \"\\n\",FILE_APPEND);\n}", "title": "" }, { "docid": "5efdfadc8ca314cf0c55ac2f98484370", "score": "0.59628236", "text": "private function _log(string $message)\n {\n if ($this->_debug === true) {\n error_log(\n sprintf(\n \"%s; %s; %s\\n\",\n date(\"Y-m-d H:i:s\"),\n $this->_id,\n $message\n ),\n 3,\n $this->_logFile\n );\n }\n }", "title": "" }, { "docid": "3af6b05fcfded0947c95cc40e934de8f", "score": "0.5956916", "text": "private function logInfo($message) {\n Injector::inst()->get(LoggerInterface::class)->info($message);\n }", "title": "" }, { "docid": "03b126ac0d42131e28f76ca775a13f33", "score": "0.59562534", "text": "private function _logError($message, $log)\n {\n $log->error($message);\n $this->error($message);\n }", "title": "" }, { "docid": "0e5b6d3c5680e7e635dabe1dc90e9f5e", "score": "0.5951868", "text": "public function log(string $message): void\n\t{\n\t\tfile_put_contents($this->fileName, sprintf(\"[%s]: %s\\n\", date('Y-m-d H:i:s'), $message), FILE_APPEND);\n\t}", "title": "" } ]
a214740e2918b25e27112b7d7ca3c00f
Example: e9ddc296b76b3398934bfc06239073df Notes: The verification hash is a combination of the MD5 of your API Passphrase and specific parameters sent in the transaction.
[ { "docid": "145c8abedbdb40b05f45e402eb9b0abb", "score": "0.5818575", "text": "public function getTransactionHash()\n {\n $currency = (is_null($this->getCurrency()))? 'AUD' : $this->getCurrency();\n $hash = md5(strtolower(md5($this->getApiPassphrase()) . $this->getMerchantUUID() . $this->getAmount() . $currency));\n\n return $hash;\n }", "title": "" } ]
[ { "docid": "1a078ab099cb8da7511d9d224b5d6740", "score": "0.65176916", "text": "public function testAuthHashGeneration() {\n\n\t\t$card = new Card();\n\n\t\t$request = new PaymentRequest();\n\t\t$request->addType( PaymentType::AUTH )\n\t\t ->addTimeStamp( SampleXmlValidationUtils::TIMESTAMP )\n\t\t ->addMerchantId( SampleXmlValidationUtils::MERCHANT_ID )\n\t\t ->addOrderId( SampleXmlValidationUtils::ORDER_ID )\n\t\t ->addAmount( SampleXmlValidationUtils::AMOUNT )\n\t\t ->addCurrency( SampleXmlValidationUtils::CURRENCY )\n\t\t ->addCard( $card->addNumber( SampleXmlValidationUtils::CARD_NUMBER ) );\n\n\t\t$request->hash( SampleXmlValidationUtils::SECRET );\n\n\t\t$this->assertEquals( SampleXmlValidationUtils::REQUEST_HASH, $request->getHash() );\n\t}", "title": "" }, { "docid": "2320cf1bc9d91fe4fdc11c237b95c0a1", "score": "0.6270389", "text": "public function getVerifyToken()\n {\n return sha1(\n $this->created_at->timestamp .\n $this->email .\n Config::get('app.key')\n );\n }", "title": "" }, { "docid": "bc70c52a29f9496222045713093e5120", "score": "0.61889297", "text": "private function getHashValue()\n {\n\n // Mandatory\n $string = self::VERSION;\n $string .= $this->getMerchantId();\n $string .= $this->getPaymentDescription();\n $string .= $this->getInvoice();\n $string .= $this->getCurrency();\n $string .= $this->getAmountParameter();\n\n // Not Mandatory\n $string .= $this->getCustomerEmail();\n $string .= $this->getSuccessUrl();\n $string .= $this->getBackendUrl();\n $string .= $this->getExpire();\n $string .= $this->getLanguage();\n\n $hashValue = hash_hmac('sha1', $string, $this->getSecretKey(),false);\n $hashValue = strtoupper($hashValue);\n\n return $hashValue;\n }", "title": "" }, { "docid": "900f1b1422dd5f08f1916525d3be4fb7", "score": "0.6159992", "text": "public function getVerifyCodeTest()\n {\n /*$this->number = '';\n $this->expire = '';*/\n// $this->amount = '350000';\n\n $token = Az::$app->payer->payme->create();\n vdd(Az::$app->payer->payme->getVerifyCode());\n }", "title": "" }, { "docid": "11635ab9e6e867ac86fade03b768b8b7", "score": "0.6076955", "text": "public function verifyTest()\n {\n /*$this->number;\n $this->expire;\n $this->amount = '350000';*/\n $token = Az::$app->payer->payme->create();\n //Az::$app->payer->payme->getVerifyCode();\n vdd(Az::$app->payer->payme->verify());\n }", "title": "" }, { "docid": "5cf26e7f8674494678c18711fc4cc8c7", "score": "0.6025371", "text": "public function testSettleHashGeneration() {\n\t\t$request = new PaymentRequest();\n\t\t$request->addType( PaymentType::SETTLE )->addTimeStamp( SampleXmlValidationUtils::SETTLE_TIMESTAMP )->addMerchantId( SampleXmlValidationUtils::SETTLE_MERCHANT_ID )\n\t\t ->addOrderId( SampleXmlValidationUtils::SETTLE_ORDER_ID )->addPaymentsReference( SampleXmlValidationUtils::SETTLE_PASREF )->addAuthCode( SampleXmlValidationUtils::SETTLE_AUTH_CODE )\n\t\t ->addAmount( SampleXmlValidationUtils::SETTLE_AMOUNT )->addCurrency( SampleXmlValidationUtils::SETTLE_CURRENCY );\n\t\t$request->hash( SampleXmlValidationUtils::SECRET );\n\n\t\t$this->assertEquals( SampleXmlValidationUtils::SETTLE_REQUEST_HASH, $request->getHash() );\n\t}", "title": "" }, { "docid": "85e04cd7a9e1760808937423f42d8815", "score": "0.58993185", "text": "public function testHmacSigning() {\n $api = new Api(10001, 2000001, 'secret', 10002, TRUE);\n $data = [\n 'request' => \"authorization\",\n 'portalid' => 2000001,\n 'mid' => 10001,\n 'aid' => 10002,\n 'key' => \"secret\",\n 'responsetype' => \"REDIRECT\",\n 'id' => [1 => \"123-345\"],\n 'pr' => [1 => 5900],\n 'no' => [1 => 1],\n 'de' => [1 => \"Puma Outdoor\"],\n 'va' => [1 => 19],\n 'currency' => \"EUR\",\n 'reference' => \"73464354\",\n 'customerid' => \"123456\",\n ];\n $data['amount'] = round($data['pr'][1] * $data['no'][1]);\n $correct_hash = '9483269a96a513e8ed3a61fe3090955703a38d747d29eff5ca43efc4a2990b191f79fdbd1e52a659e6bbb77ff9b6dd7b';\n $this->assertEqual($correct_hash, $api->hmacSign($data));\n }", "title": "" }, { "docid": "207973c7a94f411e8110ce5c5315cc32", "score": "0.58937645", "text": "public function getMboxSha1Sum();", "title": "" }, { "docid": "550c5f8227c13801ece8a88ac0a1f32b", "score": "0.5826636", "text": "public function verifySecurityHashValid()\n {\n $response = new Response();\n $response->getProcessing()->set('result', ProcessingResult::ACK);\n $response->getCriterion()->set(\n 'secret',\n '3c02e798e22f278ccc8652a37da2c84c0a5b32021da2e1558956c55d422a8e585be4e774245a49afc939b0' .\n 'd7a5be046ad02067bac1de5cfec31745f297f0c272'\n );\n $this->assertTrue(\n $response->verifySecurityHash(\n $this->secret,\n 'InvoicePaymentMethodTest::Refund 2017-02-24 10:22:35'\n )\n );\n }", "title": "" }, { "docid": "dc02a9052699d4c4731d22408219b6e3", "score": "0.5820131", "text": "public function verify()\n {\n $paymentRecord = Payment::where('reference_id', $generatedVal)->orderBy('id', 'DESC')->first();\n \n $curl = curl_init();\n\n /** Check for a reference and return else make empty */\n $reference = isset($_GET['reference']) ? $_GET['reference'] : '';\n if (!$reference) {\n die('No reference supplied');\n }\n\n /** Set the client for url's array values for the Curl's */\n curl_setopt_array($curl, array(\n CURLOPT_URL => \"https://api.paystack.co/transaction/verify/\" . rawurlencode($reference),\n CURLOPT_RETURNTRANSFER => true,\n\n /** Set the client for url header values passed */\n CURLOPT_HTTPHEADER => [\n \"accept: application/json\",\n \"authorization: Bearer \".$this->secret_key,\n \"cache-control: no-cache\"\n ],\n ));\n\n /** The response should be executed if successful */\n $response = curl_exec($curl);\n\n /** If there's an error return the error message */\n $err = curl_error($curl);\n\n if ($err) {\n print_r('Api returned error ' . $err);\n }\n\n /** The transaction details and stats would be returned */\n $trans = json_decode($response);\n if (!$trans->status) {\n die('Api returned Error ' . $trans->message);\n }\n\n }", "title": "" }, { "docid": "d8ce784ec66ee65977d7a02886363fdb", "score": "0.58048856", "text": "private function signature()\n {\n $string = $this->nonceV . $this->username . $this->apiKey; //Create string\n $hash = hash_hmac('sha256', $string, $this->apiSecret); //Create hash\n $hash = strtoupper($hash);\n\n return $hash;\n }", "title": "" }, { "docid": "890d27c1b18b926a85830fe338640132", "score": "0.57555836", "text": "public function verificationVerify(): void\n {\n $this->testCase()->get(route($this->auth->route_verification_verify, ['id' => 1, 'hash' => 'wrong']))\n ->assertNotFound() // Should be 404\n ;\n }", "title": "" }, { "docid": "d6ded5bbca8b68696f30a4a0a99a656d", "score": "0.5742578", "text": "public function testReceiptInHashGeneration() {\n\t\t$request = new PaymentRequest();\n\t\t$request->addType( PaymentType::RECEIPT_IN )\n\t\t ->addTimeStamp( SampleXmlValidationUtils::RECEIPT_IN_TIMESTAMP )->addMerchantId( SampleXmlValidationUtils::RECEIPT_IN_MERCHANT_ID )\n\t\t ->addOrderId( SampleXmlValidationUtils::RECEIPT_IN_ORDER_ID )->addAmount( SampleXmlValidationUtils::RECEIPT_IN_AMOUNT )\n\t\t ->addCurrency( SampleXmlValidationUtils::RECEIPT_IN_CURRENCY )->addPayerReference( SampleXmlValidationUtils::RECEIPT_IN_PAYER );\n\t\t$request->hash( SampleXmlValidationUtils::SECRET );\n\n\t\t$this->assertEquals( SampleXmlValidationUtils::RECEIPT_IN_REQUEST_HASH, $request->getHash() );\n\t}", "title": "" }, { "docid": "0c40535dca6a44de47ebc7d39ee02eac", "score": "0.5723604", "text": "public function getVerifyCode()\n {\n return $this->verify_code;\n }", "title": "" }, { "docid": "0fdafa925344410f31b0dfc9ede6afc2", "score": "0.57215244", "text": "function generateCodeVerifier()\n {\n return $this->base64url_encode(pack('H*', $this->codeVerifier));\n }", "title": "" }, { "docid": "907995b487379a013bcc354c025540c5", "score": "0.57125956", "text": "public function testRebateHashGeneration() {\n\t\t$request = new PaymentRequest();\n\t\t$request->addType( PaymentType::REBATE )->addTimeStamp( SampleXmlValidationUtils::REBATE_TIMESTAMP )->addMerchantId( SampleXmlValidationUtils::REBATE_MERCHANT_ID )\n\t\t ->addOrderId( SampleXmlValidationUtils::REBATE_ORDER_ID )->addPaymentsReference( SampleXmlValidationUtils::REBATE_PASREF )->addAuthCode( SampleXmlValidationUtils::REBATE_AUTH_CODE )\n\t\t ->addAmount( SampleXmlValidationUtils::REBATE_AMOUNT )->addCurrency( SampleXmlValidationUtils::REBATE_CURRENCY )->addRefundHash( SampleXmlValidationUtils::REBATE_REFUND_HASH );\n\t\t$request->hash( SampleXmlValidationUtils::SECRET );\n\n\t\t$this->assertEquals( SampleXmlValidationUtils::REBATE_REQUEST_HASH, $request->getHash() );\n\t}", "title": "" }, { "docid": "8c550863f8e78e1df47cd1d8f3444cef", "score": "0.5675216", "text": "public function testReleaseHashGeneration() {\n\t\t$request = new PaymentRequest();\n\t\t$request->addType( PaymentType::RELEASE )->addTimeStamp( SampleXmlValidationUtils::RELEASE_TIMESTAMP )->addMerchantId( SampleXmlValidationUtils::RELEASE_MERCHANT_ID )\n\t\t ->addOrderId( SampleXmlValidationUtils::RELEASE_ORDER_ID )->addPaymentsReference( SampleXmlValidationUtils::RELEASE_PASREF );\n\t\t$request->hash( SampleXmlValidationUtils::SECRET );\n\n\t\t$this->assertEquals( SampleXmlValidationUtils::RELEASE_REQUEST_HASH, $request->getHash() );\n\t}", "title": "" }, { "docid": "e2bd51366c248a91af1f8c3a5da386bc", "score": "0.5666484", "text": "function Sign($passwd, $facId, $acquirerId, $orderNumber, $amount, $currency)\n {\n $stringtohash = $passwd . $facId . $acquirerId . $orderNumber . $amount . $currency;\n $hash = sha1($stringtohash, true);\n $signature = base64_encode($hash);\n\n return $signature;\n }", "title": "" }, { "docid": "9ba1e7c3c826cd97fc604c09ec449173", "score": "0.56329906", "text": "public function paySign(): string\n {\n $signStr = 'MerNo=' . $this->getParameter('MerNo') . '&';\n $signStr .= 'BillNo=' . $this->getParameter('BillNo') . '&';\n $signStr .= 'Amount=' . $this->getParameter('Amount') . '&';\n $signStr .= 'OrderTime=' . $this->getParameter('OrderTime') . '&';\n $signStr .= 'AdviceURL=' . $this->getParameter('AdviceURL') . '&';\n $signStr .= $this->getMchKey();\n\n return strtoupper(md5($signStr));\n\n }", "title": "" }, { "docid": "13090cfb6ec4015ddae100357cc3ffab", "score": "0.56288236", "text": "function amsVerifyCallback($amsPublicKey = false) {\n\tglobal $amsOptions;\n\tif (!$amsPublicKey)\n\t\t$amsPublicKey = $amsOptions['amsPublicKey'];\n\t\n\t$post = file_get_contents(\"php://input\");\n\tif (!$post)\n\t\treturn 'No post data.';\n\t\t\n\t$json = json_decode($post, true);\n\t\n\tif (is_string($json))\n\t\treturn $json; // error\n\n\tif (!array_key_exists('payload', $json)) \n\t\treturn 'No payload. Invalid format.';\n\t\n\t$payload = $json['payload'];\n\tpreg_match('/\"payload\":(.*), \"sign\":/', $post, $matches);\n\t$payloadString = $matches[1];\n\t$sign = base64_decode($json['sign']);\n\t$public_key = openssl_get_publickey($amsPublicKey);\n\t$verify = openssl_verify($payloadString, $sign, $public_key);\n\tif ($verify != 1) return \"Not verified\";\n\t\n\treturn $payload;\n}", "title": "" }, { "docid": "98f076ebf5280c60babb12acb45f0e8f", "score": "0.5621535", "text": "public static function email_action_verify($rgid, $email, $hash)\n {\n global $wpdb;\n $table_lead = $wpdb->prefix . \"rg_lead\";\n $table_lead_detail = $wpdb->prefix . \"rg_lead_detail\";\n $prepared = $wpdb->prepare('SELECT date_created FROM $table_lead WHERE id=%d', $rgid);\n $time_ = $wpdb->get_var($prepared);\n\n $prepared = $wpdb->prepare('SELECT value FROM $table_lead_detail WHERE field_number=1 AND lead_id=%d', $rgid);\n $email_ = $wpdb->get_var($prepared);\n\n if ($email != $email) {\n //email verification: email not matched\n return 995126;\n }\n\n $prepared = $wpdb->prepare('SELECT value FROM $table_lead_detail WHERE field_number=3 AND lead_id=%d', $rgid);\n $hkidname = $wpdb->get_var($prepared);\n if (!$hkidname) {\n //email verification: ID name not found\n return 995027;\n }\n $prepared = $wpdb->prepare('SELECT value FROM $table_lead_detail WHERE field_number=4 AND lead_id=%d', $rgid);\n $hkidcode = $wpdb->get_var($prepared);\n if (!$hkidcode) {\n //email verification: HKID not found\n return 995138;\n }\n $prepared = $wpdb->prepare('SELECT value FROM $table_lead_detail WHERE field_number=5 AND lead_id=%d', $rgid);\n $password = $wpdb->get_var($prepared);\n if (!$password) {\n //the password code does not match\n return 995165;\n }\n $prepared = $wpdb->prepare(\"SELECT ID FROM $wpdb->users WHERE user_activation_key=%s\", $hash);\n $user_id_ = $wpdb->get_var($prepared);\n\n // echo \"\\n\";\n /* print_r(array(\n \"lead_id\" => $rgid,\n \"t\" => $time_,\n \"e1\" => $email_,\n \"e2\" => $email,\n \"hash\" => $hash,\n \"user_id\" => $user_id_\n ));*/\n if ($user_id_) {\n if (!empty($password)) {\n $hash = wp_hash_password($password);\n $prepared = $wpdb->prepare(\"\n UPDATE $wpdb->users SET\n user_pass=%s,\n email_verified='Y',\n user_email=%s,\n user_activation_key=''\n WHERE ID=%d\", $hash, $email_, $user_id_);\n } else {\n $prepared = $wpdb->prepare(\"\n UPDATE $wpdb->users SET\n email_verified='Y',\n user_email=%s,\n user_activation_key=''\n WHERE ID=%d\", $email_, $user_id_);\n }\n\n $r = $wpdb->query($prepared);\n //http://codex.wordpress.org/Function_Reference/wp_update_user\n if ($hkidname && $hkidcode) {\n if (!empty($hkidname)) {\n $name_d = explode(\" \", $hkidname);\n wp_update_user(\n array('ID' => $user_id_,\n 'first_name' => $name_d[0],\n 'last_name' => $name_d[1]\n ));\n update_user_meta($user_id_, 'id4digit', $hkidcode);\n }\n }\n return 1;\n } else {\n //the specific user did not found\n return 995125;\n }\n\n }", "title": "" }, { "docid": "34ced82156db574de07c3ca10ee676d2", "score": "0.5566959", "text": "public function testAuthMobileHashGeneration() {\n\n\t\t$request = new PaymentRequest();\n\t\t$request->addType( PaymentType::AUTH_MOBILE )\n\t\t ->addTimeStamp( SampleXmlValidationUtils::AUTH_MOBILE_TIMESTAMP )\n\t\t ->addMerchantId( SampleXmlValidationUtils::AUTH_MOBILE_MERCHANT_ID )\n\t\t ->addOrderId( SampleXmlValidationUtils::AUTH_MOBILE_ORDER_ID )\n\t\t ->addToken( SampleXmlValidationUtils::AUTH_MOBILE_TOKEN );\n\n\t\t$request->hash( SampleXmlValidationUtils::SECRET );\n\n\t\t$this->assertEquals( SampleXmlValidationUtils::AUTH_MOBILE_REQUEST_HASH, $request->getHash() );\n\t}", "title": "" }, { "docid": "42060f0849a36abf5f3b85cee3fc9aaa", "score": "0.554242", "text": "private function sign($params)\n {\n $hash = array();\n $hash[] = $this->md5ForKey($params, 'Shop_IDP');\n $hash[] = $this->md5ForKey($params, 'Order_IDP');\n $hash[] = $this->md5ForKey($params, 'Subtotal_P');\n $hash[] = $this->md5ForKey($params, 'MeanType');\n $hash[] = $this->md5ForKey($params, 'EMoneyType');\n $hash[] = $this->md5ForKey($params, 'Lifetime');\n $hash[] = $this->md5ForKey($params, 'Customer_IDP');\n $hash[] = $this->md5ForKey($params, 'Card_IDP');\n $hash[] = $this->md5ForKey($params, 'IData');\n $hash[] = $this->md5ForKey($params, 'PT_Code');\n //! It should be in CONFEG ??!?!?!?\n $hash[] = md5(Yii::app()->payments->password);\n print_r(Yii::app()->payments->password);\n print_r($hash);\n $hash = implode('&', $hash);\n print_r($hash);\n $hash = md5(strtolower($hash));\n return strtoupper($hash);\n }", "title": "" }, { "docid": "17ff7f48b193c7c2f87ccfa87075aabc", "score": "0.55415946", "text": "protected function createChecksumVerificationSignature() {\n $import = BIP32::import($this->primaryPrivateKey->key());\n\n $public = $this->primaryPrivateKey->publicKey();\n $address = BitcoinLib::public_key_to_address($public, $import['version']);\n\n return [$address, BitcoinLib::signMessage($address, $import)];\n }", "title": "" }, { "docid": "5f54cf996127736e8a103291fa064c71", "score": "0.55360556", "text": "public function testSignatureVerification()\n {\n\n $key = new \\Phactor\\Key;\n $info = $key->GenerateKeypair();\n\n $sig = new \\Phactor\\Signature;\n $sigfo = $sig->Generate('my message to sign...', $info['private_key_hex']);\n $result = $sig->Verify($sigfo, 'my message to sign...', $info['public_key']);\n\n $this->assertTrue($result);\n }", "title": "" }, { "docid": "12ae8e1021e009aea634a5781719d4fe", "score": "0.5517729", "text": "public function generateAuthKey()\n {\n $this->verification_code = bin2hex(random_bytes(32));\n }", "title": "" }, { "docid": "a59af1dc340a5230006a9fd40f5d9ae9", "score": "0.55113935", "text": "function verify() {\r\n // Setup post variables\r\n\r\n $postFields = \"receiver_email=\" . urlencode($this->receiver_email) . \"&\" .\r\n \"item_name=\" . urlencode($this->item_name) . \"&\" .\r\n \"item_number=\" . urlencode($this->item_number) . \"&\" .\r\n \"quantity=\" . urlencode($this->quantity) . \"&\" .\r\n \"invoice=\" . urlencode($this->invoice) . \"&\" .\r\n \"option_name1=\" . urlencode($this->option_name1) . \"&\" .\r\n \"option_selection1=\" . urlencode($this->option_selection1) . \"&\" .\r\n \"option_name2=\" . urlencode($this->option_name2) . \"&\" .\r\n \"option_selection2=\" . urlencode($this->option_selection2) . \"&\" .\r\n \"num_cart_items=\" . urlencode($this->num_cart_items) . \"&\" .\r\n \"payment_status=\" . urlencode($this->payment_status) . \"&\" .\r\n \"pending_reason=\" . urlencode($this->pending_reason) . \"&\" .\r\n \"payment_date=\" . urlencode($this->payment_date) . \"&\" .\r\n \"payment_gross=\" . urlencode($this->payment_gross) . \"&\" .\r\n \"payment_fee=\" . urlencode($this->payment_fee) . \"&\" .\r\n \"txn_id=\" . urlencode($this->txn_id) . \"&\" .\r\n \"txn_type=\" . urlencode($this->txn_type) . \"&\" .\r\n \"first_name=\" . urlencode($this->first_name) . \"&\" .\r\n \"last_name=\" . urlencode($this->last_name) . \"&\" .\r\n \"address_street=\" . urlencode($this->address_street) . \"&\" .\r\n \"address_city=\" . urlencode($this->address_city) . \"&\" .\r\n \"address_state=\" . urlencode($this->address_state) . \"&\" .\r\n \"address_zip=\" . urlencode($this->address_zip) . \"&\" .\r\n \"address_country=\" . urlencode($this->address_country) . \"&\" .\r\n \"payer_email=\" . urlencode($this->payer_email) . \"&\" .\r\n \"payer_status=\" . urlencode($this->payer_status) . \"&\" .\r\n \"payment_type=\" . urlencode($this->payment_type) . \"&\" .\r\n \"notify_version=\" . urlencode($this->notify_version) . \"&\" .\r\n \"verify_sign=\" . urlencode($this->verify_sign) . \"&\" .\r\n \"mc_gross=\" . urlencode($this->mc_gross) . \"&\" .\r\n \"mc_fee=\" . urlencode($this->mc_fee) . \"&\" .\r\n \"mc_currency=\" . urlencode($this->mc_currency) . \"&\" .\r\n \"cmd=_notify-validate\";\r\n\r\n // Send the post request\r\n\r\n // Initialize cURL\r\n $ch = curl_init(\"http://www.paypal.com/cgi-bin/webscr\");\r\n\r\n // Setup cURL options\r\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Return the result instead\r\n // of writing it out. \r\n curl_setopt($ch, CURLOPT_GETFIELDS, $postFields); // Setup post fields.\r\n \r\n $this->result = curl_exec($ch); // Execute the post\r\n\r\n $this->curl_error = curl_error($ch); // Save the error string\r\n\r\n curl_close($ch); // Close the channel\r\n\r\n // Check response\r\n\r\n if (strcmp($this->result, \"VALID\") == 0) {\r\n return 1;\r\n }\r\n else if (strcmp($this->result, \"INVALID\") == 0) {\r\n return 0;\r\n }\r\n else {\r\n // The request failed. This _should_ only happen if we were unable\r\n // to access PayPal for some reason.\r\n return 0;\r\n }\r\n }", "title": "" }, { "docid": "a4ae6ee34553f1c1dda7a2e188f6e9a6", "score": "0.5486392", "text": "public function testOTBHashGeneration() {\n\t\t$request = new PaymentRequest();\n\t\t$request->addType( PaymentType::OTB )->addTimeStamp( SampleXmlValidationUtils::OTB_TIMESTAMP )->addMerchantId( SampleXmlValidationUtils::OTB_MERCHANT_ID )\n\t\t ->addOrderId( SampleXmlValidationUtils::OTB_ORDER_ID );\n\t\t$request->hash( SampleXmlValidationUtils::SECRET );\n\n\t\t$this->assertEquals( SampleXmlValidationUtils::OTB_REQUEST_HASH, $request->getHash() );\n\t}", "title": "" }, { "docid": "eb9b8979345395a24064ec2e13ed425d", "score": "0.54857403", "text": "public function testHoldHashGeneration() {\n\t\t$request = new PaymentRequest();\n\t\t$request->addType( PaymentType::HOLD )->addTimeStamp( SampleXmlValidationUtils::HOLD_TIMESTAMP )->addMerchantId( SampleXmlValidationUtils::HOLD_MERCHANT_ID )\n\t\t ->addOrderId( SampleXmlValidationUtils::HOLD_ORDER_ID )->addPaymentsReference( SampleXmlValidationUtils::HOLD_PASREF );\n\t\t$request->hash( SampleXmlValidationUtils::SECRET );\n\n\t\t$this->assertEquals( SampleXmlValidationUtils::HOLD_REQUEST_HASH, $request->getHash() );\n\t}", "title": "" }, { "docid": "bb5deda380b0838a623563f81fa6aba0", "score": "0.5460043", "text": "public function __construct($multipass_secret){\n ### one for encryption, one for signing\n\n $method = 'sha256';\n $key_material = openssl_digest ( $multipass_secret, $method , TRUE);\n if($key_material){\n $this->encryption_key = substr($key_material,0,16);\n $this->signature_key = substr($key_material,16,16);\n }\n \n}", "title": "" }, { "docid": "9a86f74e7e58c4b730ad5db8be4999f6", "score": "0.5453836", "text": "function AcoountOtpVerify()\n{\n\tif ($this->session->userdata('user_id') == FALSE) {\n redirect('web');\n }\n\t $transactionRef \t= $_POST['transactionRef'];\n\t $otp \t\t\t\t= $_POST['otp'];\n\t $redirecturl \t\t= $_POST['redirecturl'];\n\n\t $request=file_get_contents( base_url('webservices/api.php?rquest=AcoountOtpVerify&transactionRef='.$transactionRef.'&otp='.$otp));\n\t\t\t\t$result \t\t\t=\tjson_decode($request);\n\n\t$status\t\t\t\t=\t$result->status;\n\t$message\t\t\t=\t$result->message;\n\n\tredirect(base_url($redirecturl.'?url='.$status));\n\t\t\n}", "title": "" }, { "docid": "c7b25a7d5f67cbd8807e7f7f4202f387", "score": "0.5452486", "text": "public function testVerifyCode()\n {\n $this->Controller->OneTimePasswordAuthenticator->initialize([]);\n $secret = $this->Controller->OneTimePasswordAuthenticator->createSecret();\n $verificationCode = $this->Controller->OneTimePasswordAuthenticator->tfa->getCode($secret);\n\n $verified = $this->Controller->OneTimePasswordAuthenticator->verifyCode($secret, $verificationCode);\n $this->assertTrue($verified);\n }", "title": "" }, { "docid": "1487429c93774c900d25907c677e2d1f", "score": "0.5448471", "text": "public function testReceiptInOTBHashGeneration() {\n\t\t$request = new PaymentRequest();\n\t\t$request->addType( PaymentType::RECEIPT_IN_OTB )\n\t\t ->addTimeStamp( SampleXmlValidationUtils::RECEIPT_IN_OTB_TIMESTAMP )\n\t\t ->addMerchantId( SampleXmlValidationUtils::RECEIPT_IN_OTB_MERCHANT_ID )\n\t\t ->addOrderId( SampleXmlValidationUtils::RECEIPT_IN_OTB_ORDER_ID )\n\t\t ->addAmount( SampleXmlValidationUtils::RECEIPT_IN_OTB_AMOUNT )\n\t\t ->addCurrency( SampleXmlValidationUtils::RECEIPT_IN_OTB_CURRENCY )\n\t\t ->addPayerReference( SampleXmlValidationUtils::RECEIPT_IN_OTB_PAYER );\n\n\t\t$request->hash( SampleXmlValidationUtils::SECRET );\n\n\t\t$this->assertEquals( SampleXmlValidationUtils::RECEIPT_IN_OTB_REQUEST_HASH, $request->getHash() );\n\t}", "title": "" }, { "docid": "0a00c8072066f25bc18049af464738bc", "score": "0.5433099", "text": "function process_return(){\r\n $paynow_data = $_REQUEST;\r\n\r\n //checking if the passed hash is legit\r\n\r\n\r\n if($paynow_data['hash']==$this->CreateHash($paynow_data, $this->get_paynow_integration_key())){\r\n if($paynow_data['status']==\"Paid\"){\r\n /*\r\n * The transaction was successful and the user has paid. This is where you can give access to your user etc.\r\n */\r\n }\r\n }else{\r\n //either write to a log file or something. But the returned hash is not the same, so its possible that the transacation\r\n //was compromised or its just bad code.\r\n }\r\n\r\n }", "title": "" }, { "docid": "75f42fd605444b67471077fe411be49c", "score": "0.54184234", "text": "public function testCreditHashGeneration() {\n\t\t$request = new PaymentRequest();\n\t\t$request->addType( PaymentType::REFUND )->addTimeStamp( SampleXmlValidationUtils::REFUND_TIMESTAMP )->addMerchantId( SampleXmlValidationUtils::REFUND_MERCHANT_ID )\n\t\t ->addOrderId( SampleXmlValidationUtils::REFUND_ORDER_ID )->addPaymentsReference( SampleXmlValidationUtils::REFUND_PASREF )->addAuthCode( SampleXmlValidationUtils::REFUND_AUTH_CODE )\n\t\t ->addAmount( SampleXmlValidationUtils::REFUND_AMOUNT )->addCurrency( SampleXmlValidationUtils::REFUND_CURRENCY )->addRefundHash( SampleXmlValidationUtils::REFUND_REFUND_HASH );\n\t\t$request->hash( SampleXmlValidationUtils::SECRET );\n\n\t\t$this->assertEquals( SampleXmlValidationUtils::REFUND_REQUEST_HASH, $request->getHash() );\n\t}", "title": "" }, { "docid": "f09e53634b3193074a54930867192684", "score": "0.5417996", "text": "public function testPayerNewHashGeneration() {\n\n\t\t$payer = new Payer();\n\t\t$payer->addRef( SampleXmlValidationUtils::PAYER_NEW_PAYER_REF );\n\n\t\t$request = new PaymentRequest();\n\t\t$request->addType( PaymentType::PAYER_NEW )->addTimeStamp( SampleXmlValidationUtils::PAYER_NEW_TIMESTAMP )\n\t\t ->addMerchantId( SampleXmlValidationUtils::PAYER_NEW_MERCHANT_ID )\n\t\t ->addOrderId( SampleXmlValidationUtils::PAYER_NEW_ORDER_ID )\n\t\t ->addPayer( $payer );\n\n\t\t$request->hash( SampleXmlValidationUtils::SECRET );\n\n\t\t$this->assertEquals( SampleXmlValidationUtils::PAYER_NEW_REQUEST_HASH, $request->getHash() );\n\t}", "title": "" }, { "docid": "486a09aa3c133a01a2109c2e6d4aed89", "score": "0.5416972", "text": "public function sign() {\n $sign = $this->v_amount.$this->v_moneytype.$this->v_oid.$this->v_mid.$this->v_url.$this->key;\n return strtoupper(md5($sign));\n }", "title": "" }, { "docid": "bfc59200b3bda9514d54614532c7972c", "score": "0.5381022", "text": "function sendVerify($userInfo) {\n $this->userInfo = $userInfo;\n //generate hash for email. @TODO should be own function. \n $this->hash = bin2hex(openssl_random_pseudo_bytes(4));\n //generate time to save hash against. \n $date = strtotime('now');\n //save hash to db. \n $sql = \"INSERT INTO `Verification` (verify_time, verify_hash, user_id, status) VALUES (:vdate, :vhash, :id ,:status)\";\n try {\n $this->db->query($sql);\n $this->db->bind(':vdate', $date);\n $this->db->bind(':vhash', $this->hash);\n $this->db->bind(':id', $this->userInfo['id']);\n $this->db->bind(':status', 0);\n $this->db->execute();\n //send out email. \n $this->sendVerifyMail();\n }\n catch(\\PDOException $e) {\n $this->log->logError($e->getMessage());\n } \n catch(\\Exception $e) {\n //In case we cannot send our email. \n $this->log->logError($e->getMessage());\n }\n }", "title": "" }, { "docid": "ccc567d101b8072e8fb624cfde42e709", "score": "0.537723", "text": "public function verifyingTask()\n\t{\n\t\t// Check the request token\n\t\tSession::checkToken('request') or exit(Lang::txt('JINVALID_TOKEN'));\n\n\t\t// Grab the token (not to be confused with the CSRF token above!)\n\t\tif (!$token = trim(Request::getString('token', false)))\n\t\t{\n\t\t\tApp::redirect(\n\t\t\t\tRoute::url('index.php?option=' . $this->_option . '&task=verify', false),\n\t\t\t\tLang::txt('COM_MEMBERS_CREDENTIALS_ERROR_MISSING_TOKEN'),\n\t\t\t\t'warning'\n\t\t\t);\n\t\t\treturn;\n\t\t}\n\n\t\t// Get the token and user id from the confirmation process\n\t\t$id = User::getState('com_members.reset.user', null);\n\n\t\t// Get the user object\n\t\ttry\n\t\t{\n\t\t\t$user = \\Hubzero\\User\\User::oneOrFail($id);\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\tApp::redirect(\n\t\t\t\tRoute::url('index.php?option=' . $this->_option . '&task=reset', false),\n\t\t\t\tLang::txt('COM_MEMBERS_CREDENTIALS_ERROR_TOKENS_MISSING'),\n\t\t\t\t'warning'\n\t\t\t);\n\t\t\treturn;\n\t\t}\n\t\t$parts = explode(':', $user->tokens()->latest()->token);\n\t\t$crypt = $parts[0];\n\n\t\tif (!isset($parts[1]))\n\t\t{\n\t\t\tApp::redirect(\n\t\t\t\tRoute::url('index.php?option=' . $this->_option . '&task=verify', false),\n\t\t\t\tLang::txt('COM_MEMBERS_CREDENTIALS_ERROR_USER_NOT_FOUND'),\n\t\t\t\t'warning'\n\t\t\t);\n\t\t\treturn;\n\t\t}\n\n\t\t$salt = $parts[1];\n\t\t$testcrypt = \\JUserHelper::getCryptedPassword($token, $salt);\n\n\t\t// Verify the token\n\t\tif (!($crypt == $testcrypt))\n\t\t{\n\t\t\tApp::redirect(\n\t\t\t\tRoute::url('index.php?option=' . $this->_option . '&task=verify', false),\n\t\t\t\tLang::txt('COM_MEMBERS_CREDENTIALS_ERROR_USER_NOT_FOUND'),\n\t\t\t\t'warning'\n\t\t\t);\n\t\t\treturn;\n\t\t}\n\n\t\t// Make sure the user isn't blocked\n\t\tif ($user->get('block'))\n\t\t{\n\t\t\tApp::redirect(\n\t\t\t\tRoute::url('index.php?option=' . $this->_option . '&task=verify', false),\n\t\t\t\tLang::txt('COM_MEMBERS_CREDENTIALS_ERROR_USER_NOT_FOUND'),\n\t\t\t\t'warning'\n\t\t\t);\n\t\t\treturn;\n\t\t}\n\n\t\t// Push the user data into the session\n\t\tUser::setState('com_members.reset.token', $crypt . ':' . $salt);\n\n\t\t// Everything went well...go to the actual change password page\n\t\tApp::redirect(\n\t\t\tRoute::url('index.php?option=' . $this->_option . '&task=setpassword', false),\n\t\t\tLang::txt('COM_MEMBERS_CREDENTIALS_TOKEN_CONFIRMED'),\n\t\t\t'passed'\n\t\t);\n\t}", "title": "" }, { "docid": "66012ea55e10999537a891261ec5c5e9", "score": "0.53731483", "text": "public function verify();", "title": "" }, { "docid": "66012ea55e10999537a891261ec5c5e9", "score": "0.53731483", "text": "public function verify();", "title": "" }, { "docid": "daa0ba91f401c602833941e155c3e933", "score": "0.5356076", "text": "private function preSignMsg () {\n\t\t$timestamp = round(microtime(true) * 1000);\n\t\t$msg = '';\n\t\t$msg .= $this->appSecret;\n\t\t$msg .= 'api=';\n\t\t$msg .= $this->apiName;\n\t\t$msg .= 'appkey=';\n\t\t$msg .= $this->appKey;\n\t\t$msg .= 'timestamp=';\n\t\t$msg .= $timestamp;\n\t\t$msg .= $this->appSecret;\n\n\t\t// Generate MD5 digest.\n\t\treturn md5($msg);\n\t}", "title": "" }, { "docid": "b8f9709e5f67ac30ca856b9071a7317a", "score": "0.5348635", "text": "public function buildSignature()\n {\n // Re-create the VPSSignature\n if ($this->getTxType() == 'TOKEN') {\n $signature_data = array(\n // For some bizarre reason, the VPSTxId is hashed at the Sage Pay gateway\n // without its curly crackets, so we must do the same to validate the hash.\n str_replace(array('{', '}'), '', $this->getVPSTxId()),\n // VendorTxCode\n $this->getTransactionId(),\n $this->getStatus(),\n strtolower($this->getVendor()),\n // Only returned for card tokenisation requests.\n $this->getToken(),\n // As saved in the merchant application.\n $this->getSecurityKey(),\n );\n } else {\n // Transaction types PAYMENT, DEFERRED and AUTHENTICATE (when suppoted)\n $signature_data = array(\n $this->getVPSTxId(),\n // VendorTxCode\n $this->getTransactionId(),\n $this->getStatus(),\n $this->getTxAuthNo(),\n strtolower($this->getVendor()),\n $this->getDataItem('AVSCV2'),\n // As saved in the merchant application.\n $this->getSecurityKey(),\n // Optional.\n $this->getDataItem('AddressResult'),\n $this->getDataItem('PostCodeResult'),\n $this->getDataItem('CV2Result'),\n $this->getDataItem('GiftAid'),\n $this->getDataItem('3DSecureStatus'),\n $this->getDataItem('CAVV'),\n $this->getDataItem('AddressStatus'),\n $this->getDataItem('PayerStatus'),\n $this->getDataItem('CardType'),\n $this->getLast4Digits(),\n // New for protocol v3.00\n $this->getDataItem('DeclineCode'),\n $this->getExpiryDate(),\n $this->getDataItem('FraudResponse'),\n $this->getDataItem('BankAuthCode'),\n );\n }\n\n return md5(implode('', $signature_data));\n }", "title": "" }, { "docid": "a308887747b9b2c7223b0097451f353c", "score": "0.5335227", "text": "public function verifySecurityHashInvalid()\n {\n $response = new Response();\n $response->getProcessing()->set('result', ProcessingResult::ACK);\n $this->expectException(HashVerificationException::class);\n $response->getCriterion()->set(\n 'secret',\n '84c48ba8b3386a4e2f38ef5eeb3b3544788f675eef63c6e83c828049b706aa7e57ba69243902bfcd105'\n . 'c1ed28b6519fb4277b3355b9807819dd4b0414722a3f5'\n );\n $response->verifySecurityHash($this->secret, 'false');\n }", "title": "" }, { "docid": "f28111124d5fabedafd8318bc62560e5", "score": "0.532954", "text": "function getHash($params,$return_response=true){\n //build_response($params);\n if(!array_key_exists('val',$params)){\n build_response([],false,'getHash needs a \"val\" parameter!');\n }else{\n $val = $params['val'];\n }\n\n //$hash = password_hash($val, PASSWORD_DEFAULT);\n $hash = md5($val);\n if ($return_response) {\n build_response($hash, true);\n }\n return $hash;\n}", "title": "" }, { "docid": "912b0ebd0c7e8c504f16b436cc7c5b42", "score": "0.5322597", "text": "function verify_message($log, $headers, $body, $webhook_secret) {\n\n $hmac_message = $headers['Twitch-Eventsub-Message-Id'] . $headers['Twitch-Eventsub-Message-Timestamp'] . rtrim($body);\n $signature = hash_hmac('sha256',$hmac_message, $webhook_secret);\n $actual_signature = 'sha256=' . $signature;\n\n $exepcted_signature = $headers['Twitch-Eventsub-Message-Signature'];\n\n $is_valid = $actual_signature == $exepcted_signature;\n\n $log->info(\"verify_message: is_valid=$is_valid actual_sginature=$actual_signature expected_signature=$exepcted_signature\");\n\n return $is_valid;\n}", "title": "" }, { "docid": "c972047a705e13ca2b1299e52453ee15", "score": "0.531656", "text": "public function generateEmailVerificationToken()\n {\n $this->verification_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "28cdb96419d85be0a4238eb20e10cd76", "score": "0.5313758", "text": "public function test_sync_valid_verification() {\n $body = json_encode( array(\n 'verb' => 'verify',\n 'challenge' => 'come at me, bro',\n ) );\n $hub_signature = hash_hmac( 'sha512', $body, 'valid_token' );\n\n $request = new WP_REST_Request( 'POST', DISQUS_REST_NAMESPACE . '/sync/webhook' );\n $request->set_body( $body );\n $request->set_header( 'X-Hub-Signature', 'sha512=' . $hub_signature );\n $request->set_header( 'Content-Type', 'application/json' );\n\n $response = $this->server->dispatch( $request );\n $response_data = $response->get_data();\n $this->assertEquals(\n 200,\n $response->get_status(),\n 'Not a valid 200 status code, response was: ' . json_encode( $response_data )\n );\n $this->assertEquals( 'come at me, bro', $response_data );\n }", "title": "" }, { "docid": "8f61032fc540ccd357f5eb9a57f8022e", "score": "0.5312636", "text": "protected function getSign(...$params): string\n {\n $middleHash = \\implode(\\array_map('strrev', $params));\n\n $resultHash = \\strrev($this->config->getKey())\n . $middleHash\n . \\strrev($this->config->getPass());\n\n return \\md5(\\strtoupper($resultHash));\n }", "title": "" }, { "docid": "b6f2cd17b686bea09db886159b7f6e84", "score": "0.53101194", "text": "public function getAuthPassword()\n\t{\n\t\treturn Hash::make($this->token);\n\t}", "title": "" }, { "docid": "73653aa08e5ecac617fca499d315da78", "score": "0.5309826", "text": "public function verify(ActivationCode $code, HashedActivationCode $hashedCode);", "title": "" }, { "docid": "f28d2c19bfb41f66c136ce5d66b418bd", "score": "0.5304848", "text": "public function getHash(): string\n {\n if(!$this->txSigned) {\n throw new \\Exception('You need to sign transaction before');\n }\n\n // create SHA256 of tx\n $tx = hash('sha256', hex2bin($this->txSigned));\n\n // return first 40 symbols\n return MinterPrefix::TRANSACTION_HASH . substr($tx, 0, 40);\n }", "title": "" }, { "docid": "a66e07d788bfd0fc4d162926f851751c", "score": "0.5301531", "text": "function generateHash($input){\n $_arraysign = array();\n $_arraysign[] = $input; //entrada de data\n $_arraysign[] = $_SERVER['HTTP_USER_AGENT']; //agente de usuario del navegador\n $_arraysign[] = getUserIp(); //IP del usuario\n $_arraysign[] = SIGNATURE_HASH; //key hash\n\n $_str2sign = implode(\"\\n\", $_arraysign);\n\n return base64_encode( hash_hmac('sha256', urldecode(utf8_encode($_str2sign)), base64_decode(SIGNATURE_HASH), true) ); //hash para retornar\n}", "title": "" }, { "docid": "f0f333aaf6528ff1b7d9d62de28f1d5b", "score": "0.52896386", "text": "private function generateInitialHash()\n {\n $mergedString = $this->isLive . $this->transaction['orderId'] . $this->transaction['invoiceNumber'] .\n $this->transaction['amount'] . $this->customer['telephoneNumber'] . $this->customer['email'] .\n $this->vendorId . $this->currency . $this->payloads['payload1'] . $this->payloads['payload2'] .\n $this->payloads['payload3'] . $this->payloads['payload4'] . $this->callback .\n $this->customer['sendEmail'] . $this->callbackMode;\n\n return hash_hmac('sha1', $mergedString, $this->hashKey);\n }", "title": "" }, { "docid": "cd4386c50068fa645797efb2f67e5515", "score": "0.52871865", "text": "public function testCardUpdateHashGeneration() {\n\n\t\t$card = new Card();\n\t\t$card->addReference( SampleXmlValidationUtils::CARD_ADD_REF )\n\t\t ->addPayerReference( SampleXmlValidationUtils::CARD_UPDATE_PAYER_REF )\n\t\t ->addCardHolderName( SampleXmlValidationUtils::CARD_UPDATE_CARD_HOLDER_NAME )\n\t\t ->addExpiryDate( SampleXmlValidationUtils::CARD_UPDATE_EXP_DATE )\n\t\t ->addNumber( SampleXmlValidationUtils::CARD_UPDATE_NUMBER );\n\n\n\t\t$request = new PaymentRequest();\n\t\t$request->addType( PaymentType::CARD_UPDATE )\n\t\t ->addTimeStamp( SampleXmlValidationUtils::CARD_UPDATE_TIMESTAMP )\n\t\t ->addMerchantId( SampleXmlValidationUtils::CARD_UPDATE_MERCHANT_ID )\n\t\t ->addOrderId( SampleXmlValidationUtils::CARD_UPDATE_ORDER_ID )\n\t\t ->addCard( $card );\n\n\t\t$request->hash( SampleXmlValidationUtils::SECRET );\n\n\t\t$this->assertEquals( SampleXmlValidationUtils::CARD_UPDATE_REQUEST_HASH, $request->getHash() );\n\t}", "title": "" }, { "docid": "acf5c8f27c2f555be5ab432368e794c8", "score": "0.5273121", "text": "public static function generateVerificationCode()\n {\n return str_random(40);\n }", "title": "" }, { "docid": "5b47cfe4c900b90647c36150c2fb444e", "score": "0.52620363", "text": "public function getTransactionHash()\r\n {\r\n return $this->transaction_hash;\r\n }", "title": "" }, { "docid": "cdeaa4106616cc39439d39677e2790d9", "score": "0.5261058", "text": "function CreateAuthenticatedMessageHash(){\n\t\treturn password_hash(RAND_AUTH_HASH, PASSWORD_DEFAULT);\n\t}", "title": "" }, { "docid": "a4e70b7ff213bb5c5de6f66b5ef5fdbd", "score": "0.5255929", "text": "public function testInvalidHashMethod() {\n $jwt = JWT::encode(['jti' => uniqid()], 'TestSecret', 'HS512', null, ['azp' => 'TestClientID']);\n\n $this->assertFalse($this->vanillaConnect->validateRequest($jwt));\n }", "title": "" }, { "docid": "e2457bc98e4e7a462bbd203aafc547e6", "score": "0.52501804", "text": "public function getHash()\n {\n return $this->createHash($this->getCid(). $this->getType() . $this->getAmount() . $this->getCurrencyNumeric() . $this->getTransactionId() . $this->getSs() . $this->getReturnUrl());\n }", "title": "" }, { "docid": "66d9c63b0109af6d8253c5b7a4571803", "score": "0.5249482", "text": "function verify_payment()\n {\n $this->registry->input->clean_array_gpc('p', array(\n 'operation_xml' => TYPE_STR,\n 'signature' => TYPE_STR,\n ));\n\n if ( !strlen($this->registry->GPC['operation_xml'])\n OR !strlen($this->registry->GPC['signature']))\n return false;\n\n $operation_xml = base64_decode($this->registry->GPC['operation_xml']);\n\n if ($operation_xml === false)\n return false;\n\n // check signature\n $signature = base64_encode(sha1(\n $this->settings['merchant_pass']\n . $operation_xml\n . $this->settings['merchant_pass'],\n 1\n ));\n\n if ($signature != $this->registry->GPC['signature'])\n return false;\n\n // signature passed\n // parse xml\n require_once(DIR . '/includes/class_xml.php');\n $xmlobj = new vB_XML_Parser($operation_xml);\n $order = $xmlobj->parse('UTF-8');\n\n if ($order === false)\n return false;\n\n $this->transaction_id = $order['transaction_id'];\n\n if ($this->transaction_id > 0)\n {\n $this->paymentinfo = $this->registry->db->query_first(\"\n SELECT paymentinfo.*, user.username\n FROM \" . TABLE_PREFIX . \"paymentinfo AS paymentinfo\n INNER JOIN \" . TABLE_PREFIX . \"user AS user USING (userid)\n WHERE hash = '\" . $this->registry->db->escape_string($order['order_id']) . \"'\n \");\n\n // lets check the values\n if (!empty($this->paymentinfo))\n {\n $this->paymentinfo['currency'] = strtolower($order['currency']);\n $this->paymentinfo['amount'] = floatval($order['amount']);\n\n $sub = $this->registry->db->query_first(\"\n SELECT *\n FROM \" . TABLE_PREFIX . \"subscription\n WHERE subscriptionid = \" . $this->paymentinfo['subscriptionid']\n );\n\n $cost = unserialize($sub['cost']);\n\n // Check if its a payment or if its a reversal\n if ($order['status'] == 'success')\n {\n if ($this->paymentinfo['amount'] == floatval($cost[\"{$this->paymentinfo[subscriptionsubid]}\"]['cost'][strtolower($order['currency'])]))\n {\n $this->type = 1;\n }\n else\n {\n $this->error_code = 'invalid_payment_amount';\n }\n }\n else\n if ($order['status'] == 'wait_secure')\n {\n $this->error_code = 'payment_verification_is_in_progress';\n }\n else\n if ($order['status'] == 'failure')\n {\n $this->type = 2;\n $this->error_code = 'payment_failed';\n }\n else\n {\n $this->error_code = 'unhandled_payment_status_or_type';\n }\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->error_code = 'invalid_subscriptionid';\n\t\t\t}\n\n\t\t\t$status_code = '200 OK';\n\n\t\t\t// LiqPay likes to get told its message has been received (?)\n\t\t\tif (SAPI_NAME == 'cgi' OR SAPI_NAME == 'cgi-fcgi')\n\t\t\t{\n\t\t\t\theader('Status: ' . $status_code);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\theader('HTTP/1.1 ' . $status_code);\n\t\t\t}\n\t\t\treturn ($this->type > 0);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->error_code = 'authentication_failure';\n\t\t\t$this->error = 'Invalid Request';\n\t\t}\n\n\t\t$status_code = '503 Service Unavailable';\n\n\t\t// LiqPay likes to get told its message has been received (?)\n\t\tif (SAPI_NAME == 'cgi' OR SAPI_NAME == 'cgi-fcgi')\n\t\t{\n\t\t\theader('Status: ' . $status_code);\n\t\t}\n\t\telse\n\t\t{\n\t\t\theader('HTTP/1.1 ' . $status_code);\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e05d1d8caba5e0f8a7b4c6c05b4377c5", "score": "0.5247901", "text": "public function getVerificationKeyVersion()\n {\n return $this->verification_key_version;\n }", "title": "" }, { "docid": "6de9b7f56c0b8c78ebfae538e37a14c6", "score": "0.5245395", "text": "public function testPayerEditHashGeneration() {\n\n\t\t$payer = new Payer();\n\t\t$payer->addRef( SampleXmlValidationUtils::PAYER_EDIT_PAYER_REF );\n\n\t\t$request = new PaymentRequest();\n\t\t$request->addType( PaymentType::PAYER_EDIT )\n\t\t ->addTimeStamp( SampleXmlValidationUtils::PAYER_EDIT_TIMESTAMP )\n\t\t ->addMerchantId( SampleXmlValidationUtils::PAYER_EDIT_MERCHANT_ID )\n\t\t ->addOrderId( SampleXmlValidationUtils::PAYER_EDIT_ORDER_ID )->addPayer( $payer );\n\n\t\t$request->hash( SampleXmlValidationUtils::SECRET );\n\n\t\t$this->assertEquals( SampleXmlValidationUtils::PAYER_EDIT_REQUEST_HASH, $request->getHash() );\n\t}", "title": "" }, { "docid": "9f5789cde3381606dc7c1e235afaac6e", "score": "0.52390534", "text": "function pestle_cli($argv)\n{\n $client = getClient();\n $result = sendVerifyVerification($client, $argv['request_id'], $argv['code']);\n if($result)\n {\n output($result->getResponseData());\n }\n}", "title": "" }, { "docid": "7e59c460333994170b5901f82649d5af", "score": "0.5236835", "text": "function VerifyMessageAuthenticity($ReceivedHash){\n\t\treturn password_verify(RAND_AUTH_HASH, $ReceivedHash);\n\t}", "title": "" }, { "docid": "9cf16c7da383b8847d93746cbdb0d74a", "score": "0.52289194", "text": "public function verifySecurityHashEmpty()\n {\n $response = new Response();\n $response->getProcessing()->set('result', ProcessingResult::ACK);\n $this->expectException(HashVerificationException::class);\n $response->verifySecurityHash($this->secret, 'Order 12345');\n }", "title": "" }, { "docid": "19772a662360a3eb0dd5250b53cf00e8", "score": "0.52207124", "text": "public function verifyWebhook()\n {\n if ($this->request->getParameter('token') === $this->getParameter('verify_token')) {\n return $this->request->getParameter('challenge');\n }\n throw new InvalidRequest('Invalid verify token');\n }", "title": "" }, { "docid": "c4214a6080c5b254e6cdcc65a42124da", "score": "0.5218461", "text": "protected static function verify_gift_with_from_given_mac_address($hash, $mac_address, $transaction_id)\n {\n global $wpdb;\n //$stock_id = self::find_stock_id_by_hash($hash);\n\n $only_user_id = self::check_store_manager_device($mac_address);\n if (!$only_user_id) {\n inno_log_db::log_stock_system(-1, 1079, \"unauthorized device attempted to redeem the benefit. Device:\" . $mac_address);\n throw new Exception(\"Sorry, this is an unauthorized device.\", 7011);\n } else {\n $prep = $wpdb->prepare('SELECT * FROM cms_transaction_redeem WHERE transaction_id=%d', $transaction_id);\n $row = $wpdb->get_row($prep);\n $address_location_code = $row->claim_address;\n $vendor_id = VendorRequest::get_vendor_by_product_id($row->stockid);\n $location_address_id = get_user_meta($only_user_id, 'vendor_loc_center', true);\n\n // $ven_ids = self::get_vendor_ids_by_address_id($location_address_id);\n $message = \"this user has the mac address to request redemption system:\" . $mac_address . \"<br>location address ID from this staff:\" . $location_address_id .\n \"<br>vendor id:\" . $vendor_id['name'];\n\n\n if ($address_location_code == 'loc_centralized') {\n $loc_ids = VendorRequest::retrieve_address_id_list_by_vendor($vendor_id['wp_post_id']);\n\n $message .= \"<br>addresses comparision:\" . print_r($loc_ids, true) . \":\" . $vendor_id['wp_post_id'];\n inno_log_db::log_stock_system($only_user_id, 7014, $message);\n\n if (!in_array($location_address_id, $loc_ids)) {\n //debug throw new Exception(\"You are not at the right location to redeem this product!\" . print_r($loc_ids, true) . \" : \" . $location_address_id, 7012);\n throw new Exception(\"You are not at the right location to redeem this benefit!\", 7012);\n } else {\n inno_log_db::log_stock_system(-1, 93202, \"success redemption. detail{ location : \" . $address_location_code . \" on ID = \" . $transaction_id . \"}\");\n return true;\n }\n } else if (intval($address_location_code) > -1) {\n // inno_log_db::log_stock_system(-1, 93200, \"people found : \" . $user_id . \" as the user\");\n $message .= \"<br>product :\" . $vendor_id['wp_post_id'];\n $message .= \"success-failure:\" . $location_address_id == $address_location_code;\n inno_log_db::log_stock_system($only_user_id, 7014, $message);\n if ($location_address_id != $address_location_code) {\n throw new Exception(\"You are not at the right location to pick up this benefit!\", 7012);\n } else {\n inno_log_db::log_stock_system(-1, 93201, \"success redemption. detail{ location : \" . $address_location_code . \" on ID = \" . $transaction_id . \"}\");\n return true;\n }\n } else {\n inno_log_db::log_stock_system(-1, 93201, \"old redemption {location : \" . $address_location_code . \" on ID = \" . $transaction_id . \"}\");\n return true;\n }\n }\n }", "title": "" }, { "docid": "21bb5e85864acb8b99492bf3652e9cf7", "score": "0.5217079", "text": "public function digest(): string;", "title": "" }, { "docid": "5361c24463cf43c62597928212f2c091", "score": "0.52115417", "text": "function trialpayQstring($custom=''){\r\r\t$timestamp=time();\r\r\t$sid=$_SESSION['username'];\r\r\t$key=\"fed7ee9f94\";//we can add in to config file----Notification key--fed7ee9f94\r\r\t$message=\"timestamp=\".$timestamp.\"&sid=\".$sid;\r\r\t$hmac=hash_hmac(\"md5\",$message,$key);\r\r\t$message=\"message=\".urlencode($message);\r\r\t$qstring=$message.\"&hmac=\".$hmac.$custom;\r\r\treturn $qstring;\r\r}", "title": "" }, { "docid": "a0fd23782c624a2ddb4bbb54306d4177", "score": "0.5209679", "text": "public function verifyPayment(Request $request){\n $book_id=$request->book_id;\n //get book actual price from database\n $price=Book::find($book_id)->value('price');\n //get josn data from ajax call to verify payment\n $payload=$request->payload;\n //decoding json data to standard array format\n $payload=json_decode($payload);\n\n //assign decoded json data to the variables \n $idx=$payload->token;\n $token=$payload->token;\n $amount=$payload->amount;\n $mobile=$payload->mobile;\n $product_url=$payload->product_url;\n $product_name=$payload->product_name;\n $product_identity=$payload->product_identity;\n \n\n\n $args = http_build_query(array(\n 'token' => $token,\n 'amount' => $amount\n ));\n\n $url = \"https://khalti.com/api/v2/payment/verify/\";\n\n # Make the call using API.\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS,$args);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\n $headers = ['Authorization: Key test_secret_key_af69eb19f21d4b50ba5cd7c768200c2d'];\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n\n // Response\n $response = curl_exec($ch);\n $status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n curl_close($ch);\n //khalti api codes for payment verification\n\n $verResponse=json_decode($response);\n if($verResponse->token)//token will initailize only when verification failed\n {\n print_r(\"Sorry!! Transaction can't complete or Verification failed\");\n \n }\n else{\n //accessing json one by one\n $trans_idx=$verResponse->idx;\n // //get trasncation type and name\n // $type_idx=$verResponse->type['idx'];\n // $type_name=$verResponse->type['type_name'];\n\n // //get transcation state i.e completed or not\n // $state_idx=$verResponse->state['idx'];\n // $state_name=$verResponse->state['name'];\n // $state_template=$verResponse->state['template'];\n\n // //get amount, fee_amount,date,ebanker datas\n $trans_amount=$verResponse->amount;\n $user_id= Auth::user()->id;\n // $fee_amount=$verResponse->fee_amount;\n // $refunded=$verResponse->refunded;\n // $created_on=$verResponse->created_on;\n // $ebanker=$verResponse->ebanker;\n\n // //get user details\n // $user_idx=$verResponse->user['idx'];\n // $user_name=$verResponse->user['name'];\n // $user_mobile=$verResponse->user['mobile'];\n\n // //get merchant details\n // $merchant_idx=$verResponse->merchant['idx'];\n // $merchant_name=$verResponse->merchant['name'];\n // $merchant_mobile=$verResponse->merchant['mobile'];\n \n //will store sucess repsone to the database for futher use.\n $MyBook=new MyBook;\n $MyBook->user_id=$user_id;\n $MyBook->book_id=$book_id;\n $MyBook->trans_idx=$trans_idx;\n $MyBook->trans_amount=$trans_amount;\n $MyBook->save();\n\n $message=\"All OK!! You have purchased a Book\";\n return response([\n 'message' =>$message,\n ]);\n }\n \n }", "title": "" }, { "docid": "875e6a66290597f1f81000cf1abe6dfd", "score": "0.5206559", "text": "public function getOneTimeLoginHash();", "title": "" }, { "docid": "51214f3d0d878feb8c28a082d5de2c9d", "score": "0.5206545", "text": "public function generateEmailVerificationToken() {\n return $this->verification_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "db81d1a21aa7aec9341ed94732031530", "score": "0.5198765", "text": "private function verifySign()\n {\n $descriptorspec = [0 => [\"pipe\", \"r\"], 1 => [\"pipe\", \"w\"], 2 => [\"pipe\", \"w\"]];\n $certificate = 'yamoney.pem';\n $process = proc_open('openssl smime -verify -inform PEM -nointern -certfile '.$certificate.' -CAfile '.$certificate,\n $descriptorspec, $pipes);\n if (is_resource($process)) {\n // Getting data from request body.\n $data = file_get_contents($this->settings->request_source); // \"php://input\"\n fwrite($pipes[0], $data);\n fclose($pipes[0]);\n $content = stream_get_contents($pipes[1]);\n fclose($pipes[1]);\n $resCode = proc_close($process);\n if ($resCode != 0) {\n return null;\n } else {\n $this->log(\"Row xml: \".$content);\n $xml = simplexml_load_string($content);\n $array = json_decode(json_encode($xml), true);\n return $array[\"@attributes\"];\n }\n }\n return null;\n }", "title": "" }, { "docid": "62cf0b1d749bbde97b62eca0aec3fa5d", "score": "0.5195575", "text": "public function verifyIntegrity() {\n\t\t$this->silentLog('[info] verifyIntegrity()');\n\n\t\tif($this->getCurrentReleaseChannel() === 'daily') {\n\t\t\t$this->silentLog('[info] current channel is \"daily\" which is not signed. Skipping verification.');\n\t\t\treturn;\n\t\t}\n\n\t\t$response = $this->getUpdateServerResponse();\n\t\tif(!isset($response['signature'])) {\n\t\t\tthrow new \\Exception('No signature specified for defined update');\n\t\t}\n\n\t\t$certificate = <<<EOF\n-----BEGIN CERTIFICATE-----\nMIIEojCCA4qgAwIBAgICEAAwDQYJKoZIhvcNAQELBQAwezELMAkGA1UEBhMCREUx\nGzAZBgNVBAgMEkJhZGVuLVd1ZXJ0dGVtYmVyZzEXMBUGA1UECgwOTmV4dGNsb3Vk\nIEdtYkgxNjA0BgNVBAMMLU5leHRjbG91ZCBDb2RlIFNpZ25pbmcgSW50ZXJtZWRp\nYXRlIEF1dGhvcml0eTAeFw0xNjA2MTIyMTA1MDZaFw00MTA2MDYyMTA1MDZaMGYx\nCzAJBgNVBAYTAkRFMRswGQYDVQQIDBJCYWRlbi1XdWVydHRlbWJlcmcxEjAQBgNV\nBAcMCVN0dXR0Z2FydDEXMBUGA1UECgwOTmV4dGNsb3VkIEdtYkgxDTALBgNVBAMM\nBGNvcmUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDUxcrn2DC892IX\n8+dJjZVh9YeHF65n2ha886oeAizOuHBdWBfzqt+GoUYTOjqZF93HZMcwy0P+xyCf\nQqak5Ke9dybN06RXUuGP45k9UYBp03qzlUzCDalrkj+Jd30LqcSC1sjRTsfuhc+u\nvH1IBuBnf7SMUJUcoEffbmmpAPlEcLHxlUGlGnz0q1e8UFzjbEFj3JucMO4ys35F\nqZS4dhvCngQhRW3DaMlQLXEUL9k3kFV+BzlkPzVZEtSmk4HJujFCnZj1vMcjQBg/\nBqq1HCmUB6tulnGcxUzt/Z/oSIgnuGyENeke077W3EyryINL7EIyD4Xp7sxLizTM\nFCFCjjH1AgMBAAGjggFDMIIBPzAJBgNVHRMEAjAAMBEGCWCGSAGG+EIBAQQEAwIG\nQDAzBglghkgBhvhCAQ0EJhYkT3BlblNTTCBHZW5lcmF0ZWQgU2VydmVyIENlcnRp\nZmljYXRlMB0GA1UdDgQWBBQwc1H9AL8pRlW2e5SLCfPPqtqc0DCBpQYDVR0jBIGd\nMIGagBRt6m6qqTcsPIktFz79Ru7DnnjtdKF+pHwwejELMAkGA1UEBhMCREUxGzAZ\nBgNVBAgMEkJhZGVuLVd1ZXJ0dGVtYmVyZzESMBAGA1UEBwwJU3R1dHRnYXJ0MRcw\nFQYDVQQKDA5OZXh0Y2xvdWQgR21iSDEhMB8GA1UEAwwYTmV4dGNsb3VkIFJvb3Qg\nQXV0aG9yaXR5ggIQADAOBgNVHQ8BAf8EBAMCBaAwEwYDVR0lBAwwCgYIKwYBBQUH\nAwEwDQYJKoZIhvcNAQELBQADggEBADZ6+HV/+0NEH3nahTBFxO6nKyR/VWigACH0\nnaV0ecTcoQwDjKDNNFr+4S1WlHdwITlnNabC7v9rZ/6QvbkrOTuO9fOR6azp1EwW\n2pixWqj0Sb9/dSIVRpSq+jpBE6JAiX44dSR7zoBxRB8DgVO2Afy0s80xEpr5JAzb\nNYuPS7M5UHdAv2dr16fDcDIvn+vk92KpNh1NTeZFjBbRVQ9DXrgkRGW34TK8uSLI\nYG6jnfJ6eJgTaO431ywWPXNg1mUMaT/+QBOgB299QVCKQU+lcZWptQt+RdsJUm46\nNY/nARy4Oi4uOe88SuWITj9KhrFmEvrUlgM8FvoXA1ldrR7KiEg=\n-----END CERTIFICATE-----\nEOF;\n\n\t\t$validSignature = (bool)openssl_verify(\n\t\t\tfile_get_contents($this->getDownloadedFilePath()),\n\t\t\tbase64_decode($response['signature']),\n\t\t\t$certificate,\n\t\t\tOPENSSL_ALGO_SHA512\n\t\t);\n\n\t\tif($validSignature === false) {\n\t\t\tthrow new \\Exception('Signature of update is not valid');\n\t\t}\n\n\t\t$this->silentLog('[info] end of verifyIntegrity()');\n\t}", "title": "" }, { "docid": "574537f644a1eba23f222def737ed50c", "score": "0.5194972", "text": "public function verified() {\n\n\n $this->verified = true;\n\n $this->verification_token = null;\n\n $this->save();\n }", "title": "" }, { "docid": "81716cd1e50f17f713a0c5f3f30442da", "score": "0.5181989", "text": "public function testVoidHashGeneration() {\n\t\t$request = new PaymentRequest();\n\t\t$request->addType( PaymentType::VOID )->addTimeStamp( SampleXmlValidationUtils::VOID_TIMESTAMP )->addMerchantId( SampleXmlValidationUtils::VOID_MERCHANT_ID )\n\t\t ->addOrderId( SampleXmlValidationUtils::VOID_ORDER_ID )->addPaymentsReference( SampleXmlValidationUtils::VOID_PASREF )->addAuthCode( SampleXmlValidationUtils::VOID_AUTH_CODE );\n\t\t$request->hash( SampleXmlValidationUtils::SECRET );\n\n\t\t$this->assertEquals( SampleXmlValidationUtils::VOID_REQUEST_HASH, $request->getHash() );\n\t}", "title": "" }, { "docid": "5de1a507428be473bdc9200d60014b98", "score": "0.5178179", "text": "public function getVerificationKeyId()\n {\n return $this->verification_key_id;\n }", "title": "" }, { "docid": "a8d1fc15c8dd5746ed49cdff93e76540", "score": "0.51759124", "text": "public function VerificationResult($txID) {\n return $this->sendRequest('email/verificationresult', array(\n 'txID' => $txID));\n }", "title": "" }, { "docid": "2063ea4fcca4966a8c0e360f1fdf6501", "score": "0.5174891", "text": "public function getRequestHash()\n {\n return $this->request_hash;\n }", "title": "" }, { "docid": "5768286b2e61fcb26200255e0c3f5500", "score": "0.5174631", "text": "abstract public function signPayment();", "title": "" }, { "docid": "31f9e4e9ebca17b17e8bc88cb0884680", "score": "0.5170165", "text": "public function hash( $secret ) {\n\n\t\t//check for any null values and set them to empty string for hashing\n\t\t$timeStamp = null == $this->timestamp ? \"\" : $this->timestamp;\n\t\t$merchantId = null == $this->merchantId ? \"\" : $this->merchantId;\n\t\t$orderId = null == $this->orderId ? \"\" : $this->orderId;\n\t\t$amount = \"\";\n\t\t$currency = \"\";\n\t\t$token = null == $this->token ? \"\" : $this->token;\n\t\t$payerRef = null == $this->payerRef ? \"\" : $this->payerRef;\n\n\t\tif ( $this->amount != null ) {\n\t\t\t$amount = null == $this->amount->getAmount() ? \"\" : $this->amount->getAmount();\n\t\t\t$currency = null == $this->amount->getCurrency() ? \"\" : $this->amount->getCurrency();\n\t\t}\n\n\t\t$cardNumber = \"\";\n\n\t\tif ( $this->card != null ) {\n\t\t\t$cardNumber = null == $this->card->getNumber() ? \"\" : $this->card->getNumber();\n\t\t}\n\n\t\t$payerNewRef = \"\";\n\t\tif ( $this->payer != null ) {\n\t\t\t$payerNewRef = null == $this->payer->getRef() ? \"\" : $this->payer->getRef();\n\t\t}\n\n\t\t$cardHolderName = \"\";\n\n\t\tif ( $this->card != null ) {\n\t\t\t$cardHolderName = null == $this->card->getCardHolderName() ? \"\" : $this->card->getCardHolderName();\n\t\t}\n\n\t\t$cardPayerRef = \"\";\n\n\t\tif ( $this->card != null ) {\n\t\t\t$cardPayerRef = null == $this->card->getPayerReference() ? \"\" : $this->card->getPayerReference();\n\t\t}\n\n\t\t$cardRef = \"\";\n\n\t\tif ( $this->card != null ) {\n\t\t\t$cardRef = null == $this->card->getReference() ? \"\" : $this->card->getReference();\n\t\t}\n\n\t\t$cardExpiryDate = \"\";\n\n\t\tif ( $this->card != null ) {\n\t\t\t$cardExpiryDate = null == $this->card->getExpiryDate() ? \"\" : $this->card->getExpiryDate();\n\t\t}\n\n\t\t//create String to hash\n\t\tif ( $this->type == PaymentType::AUTH_MOBILE ) {\n\t\t\t$toHash = $timeStamp\n\t\t\t . \".\"\n\t\t\t . $merchantId\n\t\t\t . \".\"\n\t\t\t . $orderId\n\t\t\t . \".\"\n\t\t\t . $amount\n\t\t\t . \".\"\n\t\t\t . $currency\n\t\t\t . \".\"\n\t\t\t . $token;\n\t\t} elseif ( $this->type == PaymentType::OTB ) {\n\t\t\t$toHash = $timeStamp\n\t\t\t . \".\"\n\t\t\t . $merchantId\n\t\t\t . \".\"\n\t\t\t . $orderId\n\t\t\t . \".\"\n\t\t\t . $cardNumber;\n\n\t\t} elseif ( $this->type == PaymentType::RECEIPT_IN || $this->type == PaymentType::PAYMENT_OUT || $this->type == PaymentType::STORED_CARD_DCC_RATE ) {\n\t\t\t$toHash = $timeStamp\n\t\t\t . \".\"\n\t\t\t . $merchantId\n\t\t\t . \".\"\n\t\t\t . $orderId\n\t\t\t . \".\"\n\t\t\t . $amount\n\t\t\t . \".\"\n\t\t\t . $currency\n\t\t\t . \".\"\n\t\t\t . $payerRef;\n\n\t\t} elseif ( $this->type == PaymentType::PAYER_NEW || $this->type == PaymentType::PAYER_EDIT ) {\n\t\t\t$toHash = $timeStamp\n\t\t\t . \".\"\n\t\t\t . $merchantId\n\t\t\t . \".\"\n\t\t\t . $orderId\n\t\t\t . \".\"\n\t\t\t . $amount\n\t\t\t . \".\"\n\t\t\t . $currency\n\t\t\t . \".\"\n\t\t\t . $payerNewRef;\n\n\t\t} elseif ( $this->type == PaymentType::CARD_NEW ) {\n\t\t\t$toHash = $timeStamp\n\t\t\t . \".\"\n\t\t\t . $merchantId\n\t\t\t . \".\"\n\t\t\t . $orderId\n\t\t\t . \".\"\n\t\t\t . $amount\n\t\t\t . \".\"\n\t\t\t . $currency\n\t\t\t . \".\"\n\t\t\t . $cardPayerRef\n\t\t\t . \".\"\n\t\t\t . $cardHolderName\n\t\t\t . \".\"\n\t\t\t . $cardNumber;\n\n\t\t} elseif ( $this->type == PaymentType::CARD_UPDATE ) {\n\t\t\t$toHash = $timeStamp\n\t\t\t . \".\"\n\t\t\t . $merchantId\n\t\t\t . \".\"\n\t\t\t . $cardPayerRef\n\t\t\t . \".\"\n\t\t\t . $cardRef\n\t\t\t . \".\"\n\t\t\t . $cardExpiryDate\n\t\t\t . \".\"\n\t\t\t . $cardNumber;\n\n\t\t} elseif ( $this->type == PaymentType::CARD_CANCEL ) {\n\t\t\t$toHash = $timeStamp\n\t\t\t . \".\"\n\t\t\t . $merchantId\n\t\t\t . \".\"\n\t\t\t . $cardPayerRef\n\t\t\t . \".\"\n\t\t\t . $cardRef;\n\n\t\t} elseif ( $this->type == PaymentType::RECEIPT_IN_OTB ) {\n\t\t\t$toHash = $timeStamp\n\t\t\t . \".\"\n\t\t\t . $merchantId\n\t\t\t . \".\"\n\t\t\t . $orderId\n\t\t\t . \".\"\n\t\t\t . $payerRef;\n\n\t\t} else {\n\t\t\t$toHash = $timeStamp\n\t\t\t . \".\"\n\t\t\t . $merchantId\n\t\t\t . \".\"\n\t\t\t . $orderId\n\t\t\t . \".\"\n\t\t\t . $amount\n\t\t\t . \".\"\n\t\t\t . $currency\n\t\t\t . \".\"\n\t\t\t . $cardNumber;\n\t\t}\n\n\t\t$this->hash = GenerationUtils::generateHash( $toHash, $secret );\n\n\t\treturn $this;\n\n\t}", "title": "" }, { "docid": "3bdc20d87de7d5208679932c74a9f75d", "score": "0.5162956", "text": "protected function verifySignature($total, $id, $password)\n {\n return md5(sprintf('%s:%s:%s', $total / config('commerce.currency.basic'), $id, $password));\n }", "title": "" }, { "docid": "1548471b842b339711312385d4734d39", "score": "0.515545", "text": "private function verifySign() {\n $descriptorspec = array(0 => array(\"pipe\", \"r\"), 1 => array(\"pipe\", \"w\"), 2 => array(\"pipe\", \"w\"));\n $certificate = 'yamoney.pem';\n $process = proc_open('openssl smime -verify -inform PEM -nointern -certfile ' . $certificate . ' -CAfile ' . $certificate,\n $descriptorspec, $pipes);\n if (is_resource($process)) {\n // Getting data from request body.\n $data = file_get_contents($this->settings->request_source); // \"php://input\"\n fwrite($pipes[0], $data);\n fclose($pipes[0]);\n $content = stream_get_contents($pipes[1]);\n fclose($pipes[1]);\n $resCode = proc_close($process);\n if ($resCode != 0) {\n return null;\n } else {\n $this->log(\"Row xml: \" . $content);\n $xml = simplexml_load_string($content);\n $array = json_decode(json_encode($xml), TRUE);\n return $array[\"@attributes\"];\n }\n }\n return null;\n }", "title": "" }, { "docid": "994dcb5c46c711d14ca4186849d76a8e", "score": "0.51470107", "text": "public function verify($hash){\n\t\tif($this->isVerificationHashValid($hash)){\n\t\t\t$this->verificationHash = '*'; //* cannot be generated by md5 i.e. blocks the hash until new is generated\n\t\t\t$this->userVerified = true;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "c69bacc0e43292ed984dbe20b828ebaf", "score": "0.5145057", "text": "public function SetHash($sharedSecret)\r\n\t\t{\r\n\t\t\t\t$this->hash = $this->GetRequestHash($this->terminalId . $this->merchantRef . $this->dateTime . $this->type . $this->name . $this->periodType . $this->currency . $this->recurringAmount . $this->initialAmount . $this->length . $sharedSecret);\r\n\t\t}", "title": "" }, { "docid": "c69bacc0e43292ed984dbe20b828ebaf", "score": "0.5145057", "text": "public function SetHash($sharedSecret)\r\n\t\t{\r\n\t\t\t\t$this->hash = $this->GetRequestHash($this->terminalId . $this->merchantRef . $this->dateTime . $this->type . $this->name . $this->periodType . $this->currency . $this->recurringAmount . $this->initialAmount . $this->length . $sharedSecret);\r\n\t\t}", "title": "" }, { "docid": "f714ca13edd420e8c49f6d3e4844cd3b", "score": "0.51423126", "text": "function verifychecksum($MerchantId,$OrderId,$Amount,$AuthDesc,$CheckSum,$WorkingKey)\n{\n\t$str = \"$MerchantId|$OrderId|$Amount|$AuthDesc|$WorkingKey\";\n\t$adler = 1;\n\t$adler = adler32($adler,$str);\n\tif($adler == $CheckSum)\n\treturn \"true\";\n\telse\n\treturn \"false\" ;\n}", "title": "" }, { "docid": "cc69463fcb05cc7e5fd1eef15a1f5c46", "score": "0.5139579", "text": "private function createSignature()\n {\n return base64_encode(hash_hmac('sha256', $this->stringToSign(), $this->secret, true));\n }", "title": "" }, { "docid": "7e4937617855a99869abc20231612533", "score": "0.51355714", "text": "public function getInputTransactionHash()\r\n {\r\n return $this->input_transaction_hash;\r\n }", "title": "" }, { "docid": "43e80025d7f0f46d6b3219eccfe5f57a", "score": "0.51344573", "text": "public function getHash()\n {\n return $this->transactionBuilder->hash();\n }", "title": "" }, { "docid": "081f69bccf72a111cfbd8f5ed9c34dea", "score": "0.5131248", "text": "public function SetHash($sharedSecret)\r\n\t\t{\r\n\t\t\t\t$this->hash = $this->GetRequestHash($this->terminalId . $this->orderId . $this->dateTime . $this->mobileNumber . $this->email . $this->currency . $this->amount . $sharedSecret);\r\n\t\t}", "title": "" }, { "docid": "bc57959c08c4f86da715b449673d4d70", "score": "0.51307833", "text": "function buildSign($toSign, $privkey) {\n global $ficheroLog;\n escribelog(\"\\tFirmando:\" .$toSign,$ficheroLog);\n $signature = null;\n $priv_key = $privkey;\n //$pub_key = openssl_get_publickey($publickey);\n $pkeyid = openssl_get_privatekey($priv_key);\n\n openssl_sign($toSign, $signature, $priv_key, OPENSSL_ALGO_SHA1);\n\n /*\n $ok = openssl_verify($toSign, $signature, $pub_key);\n\n if ($ok == 1) {\n // echo \"VALIDA\";\n } elseif ($ok == 0) {\n // echo \"NO VALIDA\";\n } else {\n echo \"error: \".openssl_error_string();\n }\n */\n openssl_free_key($pkeyid);\n $base64 = base64_encode($signature);\n return $base64;\n}", "title": "" }, { "docid": "b0c50ed7f54341e3a765953108ddaddd", "score": "0.51301813", "text": "public function getHash(): string;", "title": "" }, { "docid": "c906a53a6e521fc3f750bfad520a2e14", "score": "0.51283205", "text": "public function testDccAuthHashGeneration() {\n\n\t\t$card = new Card();\n\t\t$card\n\t\t\t->addNumber( SampleXmlValidationUtils::DCC_AUTH_CARD_NUMBER )\n\t\t\t->addExpiryDate( SampleXmlValidationUtils::DCC_AUTH_CARD_EXPIRY_DATE )\n\t\t\t->addCardHolderName( SampleXmlValidationUtils::DCC_AUTH_CARD_HOLDER_NAME )\n\t\t\t->addType( SampleXmlValidationUtils::DCC_AUTH_CARD_TYPE );\n\n\t\t// add dccinfo. Note that the type is not set as it is already defaulted to 1\n\t\t$dccInfo = ( new DccInfo() );\n\t\t$dccInfo\n\t\t\t->addDccProcessor( SampleXmlValidationUtils::DCC_AUTH_CCP );\n\n\n\t\t$request = new PaymentRequest();\n\t\t$request\n\t\t\t->addTimeStamp( SampleXmlValidationUtils::DCC_AUTH_TIMESTAMP )\n\t\t\t->addMerchantId( SampleXmlValidationUtils::DCC_AUTH_MERCHANT_ID )\n\t\t\t->addAmount( SampleXmlValidationUtils::DCC_AUTH_AMOUNT )\n\t\t\t->addCurrency( SampleXmlValidationUtils::DCC_AUTH_CURRENCY )\n\t\t\t->addOrderId( SampleXmlValidationUtils::DCC_AUTH_ORDER_ID )\n\t\t\t->addCard( $card )\n\t\t\t->addDccInfo( $dccInfo );\n\n\n\t\t$request->hash( SampleXmlValidationUtils::SECRET );\n\n\t\t$this->assertEquals( SampleXmlValidationUtils::DCC_AUTH_REQUEST_HASH, $request->getHash() );\n\t}", "title": "" }, { "docid": "23aaddbd82912f46d398c9a52bd5d02a", "score": "0.5127488", "text": "public function getUserHash();", "title": "" }, { "docid": "c62c101c3e876a5a95f35c64fb967027", "score": "0.5111216", "text": "public function callToVerify()\n {\n\n // $this->forceFill([\n // 'verification_code' => $code\n // ])->save();\n\n\n\n /* Get credentials from .env */\n\n $token = getenv(\"TWILIO_AUTH_TOKEN\");\n $twilio_sid = getenv(\"TWILIO_SID\");\n $twilio_verify_sid = getenv(\"TWILIO_VERIFY_SID\");\n $twilio = new Client($twilio_sid, $token);\n $verification = $twilio->verify->v2->services($twilio_verify_sid)\n ->verifications\n ->create($this->phone, \"sms\");\n //force fill in to the database\n $this->forceFill([\n 'verification_code' => $verification->sid\n ])->save();\n\n ////to make a call\n //$client = new Client(env('TWILIO_SID'), env('TWILIO_AUTH_TOKEN'));\n // $client->calls->create(\n // $this->phone,\n // \"+243993002040\", // REPLACE WITH YOUR TWILIO NUMBER\n // [\"url\" => config('app.url') . \"/build-twiml/{$code}\"]\n // );\n }", "title": "" }, { "docid": "40e2b18eb7861660a6a667c3222ab6bf", "score": "0.5108476", "text": "function auth($id1, $name, $token_local){\r\n if($_POST['APIKey'] == \"7ec992283ee0ce3b8df55159cec4fd37a6bd31ab\")\r\n { \r\n $hash = sha1(\"IITPseerSecReTKey\".$id1.$name);\r\n if($hash == $token_local)\r\n return true;\r\n else\r\n return false;\r\n }\r\n else\r\n return false;\r\n}", "title": "" }, { "docid": "1a0a01e35c5d5c01de701facc15aced9", "score": "0.5107225", "text": "function be2bill_signature($password, $params = array())\n{\n static $stack = array(); //tableau static\n $query = array(); //tableau de\n\n ksort($params);// trie le tableau suivant les clefs\n\n foreach ($params as $key => $value) {\n if ($key == 'HASH' && empty($stack)) continue;\n if (!is_array($value)) {\n if ($stack) {\n $query[] = implode('', $stack) . '[' . $key . ']=' . $value; // Rassemble les éléments d'un tableau en une chaîne\n } else {\n $query[] = $key . '=' . $value;\n }\n } else {\n $stack[] = ($stack) ? '[' . $key . ']' : $key;\n $query[] = be2bill_signature($password, $value);\n array_pop($stack); // dépile et retourne le dernier élément du tableau array, le raccourcissant d'un élément.\n }\n }\n if (!$stack) {\n $result = $password . implode($password, $query) . $password;\n return hash('sha256', $result);\n\n } else {\n $result = implode($password, $query);\n return $result;\n }\n}", "title": "" }, { "docid": "181a65315428930d1420497ffbf3cfac", "score": "0.51038104", "text": "public function generatePassword()\n {\n $bytes=openssl_random_pseudo_bytes(9,$cstrong);\n $pass=bin2hex($bytes);\n $finalPass=hash('sha512',$pass);\n return $finalPass;\n }", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "d19f8dec3026f10ff38dbe7329c75206", "score": "0.0", "text": "public function index()\n {\n //\n return view('contactform');\n }", "title": "" } ]
[ { "docid": "a1420ad0fb284c611971591393b45aef", "score": "0.7509679", "text": "public function index()\n\t{\n\t\t$resources = Resources::all();\n\t\t$collection = array();\n\t\t\n\t\tforeach ($resources as $name => $options)\n\t\t{\n\t\t\tif (false === value($options->visible)) continue;\n\t\t\t\n\t\t\t$collection[$name] = $options;\n\t\t}\n\n\t\t$table = $this->presenter->table($collection);\n\n\t\tSite::set('title', trans('orchestra/foundation::title.resources.list'));\n\t\tSite::set('description', trans('orchestra/foundation::title.resources.list-detail'));\n\n\t\treturn View::make('orchestra/foundation::resources.index', array(\n\t\t\t'eloquent' => $collection,\n\t\t\t'table' => $table,\n\t\t));\n\t}", "title": "" }, { "docid": "03c28056ac36b9758780b52bcb56ea11", "score": "0.7453479", "text": "public function actionList() {\n $this->getList();\n }", "title": "" }, { "docid": "79ad7ebbde0cad2af3c2becbd440dc9d", "score": "0.736227", "text": "public function listing();", "title": "" }, { "docid": "0aa4853e6e1c011310051c464837c9be", "score": "0.7341522", "text": "public function index()\n {\n $resources = $this->resource->paginate(10);\n\n return view('manager.resources.index', compact('resources'));\n }", "title": "" }, { "docid": "f6249e52b27cd61546f9ac9938889b8c", "score": "0.72989535", "text": "public function index()\n {\n $resources = Resource::all();\n return view('admin.resource.list')->with('resources',$resources);\n }", "title": "" }, { "docid": "dd0281461ff38e01dc7daaf263a98684", "score": "0.72688746", "text": "function index() {\n $this->getList();\n }", "title": "" }, { "docid": "223999e9a02d01dc0cad36705dec31b1", "score": "0.72478926", "text": "public function actionList() {\n $this->_getList();\n }", "title": "" }, { "docid": "eacf64f52d5b73d527cae880dfe65bc1", "score": "0.72152483", "text": "public function index()\n {\n return RecipeListResource::collection(Recipe::paginate(10));\n }", "title": "" }, { "docid": "5e485f5256447384c89b0040914b850e", "score": "0.7209843", "text": "public function index()\n {\n $resources = Resource::orderBy('id', 'desc')->paginate(10);\n\n return view('admin.resource.index', [\n 'resources' => $resources\n ]);\n }", "title": "" }, { "docid": "2e3564beb136b7de619ee51f1088fb53", "score": "0.719667", "text": "public function index()\n {\n\n return \\View::make('resources.index')\n ->with(['displayName' => 'resources']\n );\n }", "title": "" }, { "docid": "6ba01bde2894545b26719d51e92cebf6", "score": "0.71551645", "text": "public function indexAction()\n {\n\n $em = $this->getDoctrine()->getManager();\n\n $resources = $em->getRepository('AppBundle:Resource')->findAllDesc();\n\n return $this->render('admin/resource/index.html.twig', array(\n 'resources' => $resources,\n ));\n }", "title": "" }, { "docid": "42bee349ff83930cb164b3a793f6d5b2", "score": "0.71432024", "text": "public function listAction()\n {\n //Setup search properties form\n $searchForm = $this->service->getForm('Search');\n $action = $this->view->url(['action'=>'search'], 'controllers');\n $searchForm->setAction($action);\n $this->view->searchForm = $searchForm;\n //Setup properties list\n $this->service->setPaginatorOptions($this->getAppSetting('paginator'));\n $page = (int) $this->param($this->view->translate('page'), 1);\n $collection = $this->service->retrievePropertyCollection($page);\n $this->view->collection = $collection;\n $this->view->paginator = $this->service->getPaginator($page);\n }", "title": "" }, { "docid": "d7820004a578ddc16d57dff08d715ef0", "score": "0.713195", "text": "public function showResource()\n\t{\n\t\treturn view('resources.list')->with('resources', Resources::all());\n\t}", "title": "" }, { "docid": "1ac60064d05eb6556018c88c4294567a", "score": "0.7113176", "text": "public function index()\n\t{\n\t\t$this->lists();\n\t}", "title": "" }, { "docid": "21284f1b8a31a69a0252300fcccbc357", "score": "0.71072334", "text": "public function listingAction()\r\n {\r\n\r\n $oZendDbSelect = new Zend_Db_Select(Zend_Db_Table::getDefaultAdapter());\r\n $oZendDbSelect->from('View_Rclient_Types_Listing')->order('cl_type_id asc');\r\n\r\n // Query search engine\r\n $oMySearchEngine = new My_Search_Engine($oZendDbSelect);\r\n $oMySearchEngine->findWordOn(array('cl_type_libelle' => array('operator' => 'like')));\r\n\r\n $oMySearchEngine->findByFields(\r\n array(\r\n 'cl_type_id' => array('operator' => 'eql'),\r\n 'cl_type_libelle' => array('operator' => 'like')\r\n )\r\n );\r\n\r\n $oMySearchEngine->makeOrderBy();\r\n\r\n // Downloading the filtered list in CSV\r\n if ($this->_helper->ContextSwitch()->getCurrentContext() == 'csv') {\r\n $oExport = new My_Data_Export_CSV(new My_Data_Export_Source_Adapter_Select($oMySearchEngine->getSelect()));\r\n $this->view->csv = $oExport->make();\r\n $this->view->filename = Phoenix_Data_Export_Csv::buildFileName();\r\n } // Viewing the filtered list in HTML\r\n else {\r\n // Initialize paginator adapter\r\n $oAdapter = new Zend_Paginator_Adapter_DbSelect($oMySearchEngine->getSelect());\r\n\r\n // Pagination management\r\n $oPaginator = new My_Paginator($oAdapter);\r\n $oPaginator->setCurrentPageNumber($this->_getParam('page'));\r\n $oPaginator->setItemCountPerPage(15);\r\n $this->view->paginator = $oPaginator;\r\n }\r\n }", "title": "" }, { "docid": "68a189cc0bf8bc79e0e116676dbdb66b", "score": "0.70221174", "text": "public function actionList()\n {\n $this->assign(\"name\", \"leiyi\");\n\n $this->display('home/page/list.tpl');\n }", "title": "" }, { "docid": "eeebaafb341e5dcfe7cd3e2d7c48f741", "score": "0.7020841", "text": "public function listAction()\n {\n \t$currentPage = 1;\n \t//Check if the user is not on page 1\n \t$i = $this->_request->getQuery('i');\n \tif(!empty($i))\n \t{\n \t\t$currentPage = $this->_request->getQuery('i');\n \t}\n \t\n \t//Create a db object\n \trequire_once \"../application/models/Db/Db_Db.php\";\n \t$db = Db_Db::conn();\n \t\n \t//Create a Zend_db_select object\n \t$sql = new Zend_Db_Select($db);\n \t\n \t//Define the columns to retrieve as well as table.\n \t$columns = array(\"id\",\"artist_name\");\n \t$table = array(\"artists\");\n \t\n \t//SELECT `artists`.`id`, `artists`.`artist_name` FROM `artists`\n\t\t$statement = $sql->from($table, $columns);\n \t\n \t//Initialize the Zend_Paginator\n \t$paginator = Zend_Paginator::factory($statement);\n \t\n \t//Set the properties for the pagination\n \t$paginator->setItemCountPerPage(10);\n \t$paginator->setPageRange(10);\n \t$paginator->setCurrentPageNumber($currentPage);\n \t\n \t$this->view->paginator = $paginator;\n \t\n }", "title": "" }, { "docid": "7c87396141031b5bdb4d7fce1a123f8f", "score": "0.7008967", "text": "public function index()\n {\n $this->listing('0', '', '0');\n }", "title": "" }, { "docid": "20d766db80674b0e4072b2719471b257", "score": "0.69712967", "text": "public function index()\n {\n\n $ourresource = OurResource::all();\n return view('Admin.ourresource.all', compact('ourresource'));\n }", "title": "" }, { "docid": "217e339de79424bf236318e41ddb0695", "score": "0.6958182", "text": "public function index()\n {\n $resources = Resource::getResourceDetails();\n return view('admin.resources.index')->with('resources', $resources);\n }", "title": "" }, { "docid": "84dde6f109c23a0b3b845c0d6e864169", "score": "0.69026124", "text": "public function index()\n\t{\n $config['list'] = VrResources::get()->toArray();\n $config['title'] = trans('app.adminMenuResources');\n $config['no_data'] = trans('app.adminNoData');\n $config['new'] = route('app.resources.create');\n $config['edit'] = 'app.resources.edit';\n $config['delete'] = 'app.resources.destroy';\n return view('admin.adminList', $config);\n\t}", "title": "" }, { "docid": "6e166e624d00d2c763463d2f398dd1ef", "score": "0.68946916", "text": "public function indexAction() {\n $this->pageTitle = $this->_(\"AclResource management\");\n $grid = new AclResourceGrid(\"AclResource\");\n $grid->run();\n $this->view->setVars(array(\n 'grid' => $grid\n ));\n }", "title": "" }, { "docid": "bebf123d6dd48762f8190b1776616d05", "score": "0.68929", "text": "public function index()\n {\n if (is_null($this->resource)) {\n return response()->json($this->service->paginate());\n } else {\n return $this->resource::collection($this->service->paginate());\n }\n }", "title": "" }, { "docid": "97968d8873a94786d3e40145696ee2bd", "score": "0.68919075", "text": "public function index()\n {\n return Resources::collection(Model::orderBy('id', 'desc')->paginate());\n }", "title": "" }, { "docid": "5dc08bdec3bdf1e8261a81891fdb5f4e", "score": "0.6873949", "text": "public function index()\n {\n $arrObjResource = Resource::latest()->paginate(5);\n return view('resource.index', compact('arrObjResource'))\n ->with('i', (request()->input('page', 1) - 1) * 5);\n }", "title": "" }, { "docid": "0e8ad7256c7bbd8504ebf3d782bb3209", "score": "0.68704486", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $resources = $em->getRepository('AppBundle:Resource')->findBy(array('channel' => $this->getUser()->getActiveChannel()));\n\n return $this->render('AppBundle:Resource:index.html.twig', array(\n 'resources' => $resources,\n 'channel' => $this->getUser()->getActiveChannel(),\n ));\n }", "title": "" }, { "docid": "e76df9bb5e40cc75acb3fb5e4b084b82", "score": "0.6848992", "text": "public function listing() {\n $title = \"Admin - Listing\";\n $this->set(compact('title'));\n\n $conditions = array('delete_status' => NotDeleted);\n if ($this->request->is('post') && !empty($this->request->data['search'])) {\n $conditions['OR']['first_name LIKE'] = '%' . $this->request->data['search'] . '%';\n $conditions['OR']['last_name LIKE'] = '%' . $this->request->data['search'] . '%';\n $conditions['OR']['email LIKE'] = '%' . $this->request->data['search'] . '%';\n }\n\n $this->paginate = [\n 'limit' => PAGING_SIZE,\n 'conditions' => $conditions,\n ];\n $Results = $this->paginate('Admins');\n $this->set(compact('Results'));\n\n if ($this->request->is('ajax')) {\n $this->viewBuilder()->layout('ajax');\n $this->viewBuilder()->templatePath('Element' . DS . 'admin' . DS . 'admin');\n $this->render('index');\n }\n }", "title": "" }, { "docid": "6b9f4551cb0d7103440e15f4ff2bc102", "score": "0.6844889", "text": "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->_actividadModel->getActividad();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "title": "" }, { "docid": "95b579529f8b40d1b2b6ae580a9b3250", "score": "0.6835474", "text": "public function index()\n {\n $this->params['page'] = empty($this->params['page']) ? 1 : $this->params['page'];\n $collection = $this->model->paginate($this->params);\n $this->set('objects', $collection['objects']);\n $this->set_pagination($collection);\n }", "title": "" }, { "docid": "358b82626374a39ca1c5cb87e1d94243", "score": "0.68288803", "text": "public function crane_list() {\n\t\t\t$this->setAction('index');\t\n\t\t\t$this->render('crane_list');\n\t}", "title": "" }, { "docid": "4b8e52b6fdf81afdda958487f24d56b3", "score": "0.68279797", "text": "public function listAction()\n {\n $catalog = $this->container->get('catalog');\n\n $book_list = $catalog->listBooks();\n\n return [\n 'list' => $book_list,\n ];\n }", "title": "" }, { "docid": "3824dabd41509647ac9d2bc02a329701", "score": "0.68272334", "text": "public function indexAction()\n {\n $config = $this->getConfiguration();\n\n $listRenderer = $this->getListRenderer();\n $sort = $this->getSort();\n $listRenderer->setSort($sort);\n $criteria = $this->getFilterCriteria();\n\n $pager = $this->getPager();\n $pager->setMaxRows($config->getListOption('max_page_rows'));\n $pager->setPage($this->getCurrentPage());\n $pager->setQueryBuilder(\n $this->getModelManager()->buildQuery(\n $criteria,\n $sort\n )\n );\n\n $criteria = $this->getModelManager()->mergeFilterCriteriaObjects($criteria);\n $filterForm = $this->getFilterRenderer()->getForm($criteria);\n\n return $this->container->get('templating')\n ->renderResponse($listRenderer->getTemplate(), array(\n 'renderer' => $listRenderer,\n 'filter' => $this->getFilterRenderer(),\n 'pager' => $pager,\n 'csrf' => $this->container->get('form.csrf_provider')->generateCsrfToken('list'),\n 'filtered' => count($criteria),\n 'form' => $filterForm->createView()\n ));\n }", "title": "" }, { "docid": "cf4f6462e1cc3025d88860aa2c4ba62f", "score": "0.6825393", "text": "function index()\n\t{\n\t\t$args = func_get_args();\n\t\tcall_user_func_array(array($this, 'listing'), $args);\n\t}", "title": "" }, { "docid": "01d58c7ca6fc90f9a714a9eb1332496e", "score": "0.6821498", "text": "public function index()\n\t{\n\t\t$resourceLikes = $this->resourceLikeRepository->paginate(10);\n\n\t\treturn view('resourceLikes.index')\n\t\t\t->with('resourceLikes', $resourceLikes);\n\t}", "title": "" }, { "docid": "550d19f420a94197568709e17d512612", "score": "0.68181574", "text": "public function listTask()\n\t{\n\t\t// Incoming directory (this should be a path built from a resource ID and its creation year/month)\n\t\t$listdir = Request::getString('listdir', '');\n\t\tif (!$listdir)\n\t\t{\n\t\t\techo '<p class=\"error\">' . Lang::txt('COM_RESOURCES_ERROR_NO_LISTDIR') . '</p>';\n\t\t\treturn;\n\t\t}\n\n\t\t// Incoming sub-directory\n\t\t$subdir = Request::getString('subdir', '');\n\n\t\t// Build the path\n\t\t$path = Utilities::buildUploadPath($listdir, $subdir);\n\n\t\t$folders = array();\n\t\t$docs = array();\n\n\t\tif (is_dir($path))\n\t\t{\n\t\t\t// Loop through all files and separate them into arrays of images, folders, and other\n\t\t\t$dirIterator = new \\DirectoryIterator($path);\n\n\t\t\tforeach ($dirIterator as $file)\n\t\t\t{\n\t\t\t\tif ($file->isDot())\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$name = $file->getFilename();\n\n\t\t\t\tif ($file->isDir())\n\t\t\t\t{\n\t\t\t\t\t$folders[$path . DS . $name] = $name;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif ($file->isFile())\n\t\t\t\t{\n\t\t\t\t\tif (in_array(strtolower($name), array('cvs', '.svn', '.git', '.ds_store')))\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t$docs[$path . DS . $name] = $name;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tksort($folders);\n\t\t\tksort($docs);\n\t\t}\n\n\t\t$this->view\n\t\t\t->set('listdir', $listdir)\n\t\t\t->set('subdir', $subdir)\n\t\t\t->set('docs', $docs)\n\t\t\t->set('folders', $folders)\n\t\t\t->set('config', $this->config)\n\t\t\t->setErrors($this->getErrors())\n\t\t\t->setLayout('list')\n\t\t\t->display();\n\t}", "title": "" }, { "docid": "78f3ca79946467b9bfd80223ec5ba614", "score": "0.6808544", "text": "public function index()\n {\n return PlayResource::collection(Play::paginate());\n }", "title": "" }, { "docid": "f1c7ec0399bbc0a26f289a612459ed88", "score": "0.67977417", "text": "function index()\r\n\t{\r\n $this->showlist();\r\n\t}", "title": "" }, { "docid": "31a61aadfd15cf04075c88c5088f8860", "score": "0.67884994", "text": "public function listing(Request $request)\n {\n //validations and access control\n $this->validationAndAccess(__FUNCTION__, $request);\n\n //Start query builder. You can start limiting your results here, for example:\n $scope = $this->nested_parameters;\n if(empty($scope)){\n $query = '';\n }else{\n $query = $this->model->select($this->model->availableTableFields());\n foreach($scope as $field => $value){\n $query = (!empty($value)) ? $query->where($field,'=',$value) : $query;\n }\n }\n\n //Get resources list using our query builder function, just to pass the tablable model, the json request from the table view and optionally, a initial query object.\n $query_results = VibrantTools::getListFromModel($this->model, $request, $this->force_id_request, $query);\n\n return response()->json($query_results);\n }", "title": "" }, { "docid": "118caca12a46f44cf44d066cf46e4baf", "score": "0.6768095", "text": "public function index()\n {\n return ItemResource::collection(Items::orderBy('id', 'desc')->paginate(30));\n }", "title": "" }, { "docid": "50b94f1d44a80883647d7fc440645f79", "score": "0.67589504", "text": "public function listAction()\n {\n $contents = $this->entityManager->getRepository('Studit\\H5PBundle\\Entity\\Content')->findAll();\n return $this->render('@StuditH5P/list.html.twig', ['contents' => $contents]);\n }", "title": "" }, { "docid": "6cb967692b4f77fb138723c118707e5a", "score": "0.6756384", "text": "public function listAction()\n\t{\n\t\t$pages = Model_Query_Page::getTree(Model_Query_Page::TREE_TYPE_FLAT);\n\t\t\n\t\t$this->view->pages = $pages;\n\t}", "title": "" }, { "docid": "a62c8fb3c6a39b17143e4f99a44215eb", "score": "0.674278", "text": "public function index()\n {\n // Get Products\n $products = Product::paginate(15);\n\n // Return collection of products as a resource\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "17f3cd4988f20f8325c593af544287ff", "score": "0.67272323", "text": "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "title": "" }, { "docid": "24af10ce4b6b3777185b0f14f381d2ed", "score": "0.6723023", "text": "public function index() {\n $resources = $this->resourceMapper->findAll();\n\n // put the array containing Resource object to the view\n $this->view->setVariable(\"resources\", $resources);\n if (isset($this->currentUser) && $this->currentUser->getUser_type() == usertype::Administrator){\n $this->view->render(\"resources\", \"index\");\n }\n }", "title": "" }, { "docid": "1d448703f5190066628ad9862a2d03f8", "score": "0.67209285", "text": "public function indexAction() {\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n\n //GET VIEWER\n $viewer = Engine_Api::_()->user()->getViewer();\n\t\t$viewer_id = $viewer->getIdentity();\n\n //GET LISTING SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n \n\t\t//GET LEVEL SETTING\n $this->view->allowed_upload_photo = Engine_Api::_()->authorization()->isAllowed($list, $viewer, 'photo');\n \n //GET PAGINATOR\n $this->view->album = $album = $list->getSingletonAlbum();\n $this->view->paginator = $paginator = $album->getCollectiblesPaginator();\n $this->view->total_images = $paginator->getTotalItemCount();\n $paginator->setCurrentPageNumber($this->_getParam('page'));\n $paginator->setItemCountPerPage(20);\n\n if (empty($this->view->allowed_upload_photo) && empty($this->view->total_images)) {\n return $this->setNoRender();\n }\n \n //ADD COUNT TO TITLE\n if ($this->_getParam('titleCount', false) && $paginator->getTotalItemCount() > 0) {\n $this->_childCount = $paginator->getTotalItemCount();\n }\n }", "title": "" }, { "docid": "871969a5830c5824710f35f92b284e14", "score": "0.6717003", "text": "public function list_action()\n {\n $productRp = new ProductRepository;\n\n $pageTitle = 'crud';\n $crudLinkStyle = 'current_page';\n\n $cssStyleRule = $this->buildStyleRule();\n $backgroundColor = $this->getBackgroundColor();\n\n $isLoggedInAsAdmin = $this->isAdminUser();\n\n // 2. get all products\n $products = $productRp->get_all_products();\n\n $isLoggedIn = $this->is_logged_in_from_session();\n $user_name = $this->username_from_session();\n\n\n require_once __DIR__ . '/../template/admin_crud.php';\n }", "title": "" }, { "docid": "114a63c0832877abfdcd8697254fa24d", "score": "0.67128056", "text": "public function list()\n {\n // On va vérifier les authorisations : Admin only\n $this->checkAuthorisation(['admin']);\n\n // On appelle la méthode show() de l'objet courant\n // En argument, on fournit le fichier de Vue\n // Par convention, chaque fichier de vue sera dans un sous-dossier du nom du Controller\n\n $products = Product::findAll();\n\n $dataToDisplay = [\n 'products' => $products\n ];\n\n // On va appeler (require) le fichier views/category/list.tpl.php\n $this->show('product/list', $dataToDisplay);\n }", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "86eb524e99a31621e46aa2e8718e61f6", "score": "0.67027086", "text": "public function index()\n {\n $items = Item::orderBy('id', 'DESC')->paginate(10);\n\n return ItemResource::collection($items);\n }", "title": "" }, { "docid": "d79dbba2d57614ef830362a19c63a970", "score": "0.66864055", "text": "public function index()\n {\n return $this->view('list', [\n 'elements' => $this->service->index()\n ]);\n }", "title": "" }, { "docid": "db8a0696586c7515873c89a6a0d1cb86", "score": "0.6681138", "text": "public function actionIndex()\n {\n $array = MyList::getAll();\n\n return $this->render('index', ['model' => $array]);\n }", "title": "" }, { "docid": "f87e4c930a716211a968b3d9cc7f28cb", "score": "0.6679537", "text": "public function listAction()\n {\n $data = array(\n 'red',\n 'green',\n 'blue',\n 'yellow'\n );\n\n $request = $this->getRequest();\n $acceptHeader = $request->getHeader('Accept');\n\n $this->view->assign(\n array(\n 'data' => $data\n )\n );\n }", "title": "" }, { "docid": "0fd2e15257bfa9204ec9573726987c66", "score": "0.66752803", "text": "public function index()\n {\n $menu = Menu::paginate(10);\n\n return MenuResource::collection($menu);\n }", "title": "" }, { "docid": "daba699beaeef91359ed7b10313414c0", "score": "0.6675206", "text": "public function index()\n {\n $this->checkPermission(\"admin_permission_management\");\n $items = $this->service->getAll();\n\n $items = ApiResource::collection($items);\n\n return $this->respondWithSuccess($items);\n }", "title": "" }, { "docid": "93802b97c6f44ae5e366b70deec744b9", "score": "0.66626006", "text": "public function show()\n {\n $results = $this->run('show');\n }", "title": "" }, { "docid": "5278e85997fa12c693ce5b7a9a5f2e24", "score": "0.6659221", "text": "public function index() {\n\t\treturn ClientResource::collection(Client::paginate(15));\n\t}", "title": "" }, { "docid": "601280f6c7a8fe1284080c1c22a3e447", "score": "0.6654493", "text": "public function index()\n {\n // Get Accounts\n $accounts = Account::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of Accounts as a resource\n return AccountResource::collection($accounts);\n }", "title": "" }, { "docid": "5d3102f6a725b79d77b0e3bc731ae984", "score": "0.66521215", "text": "public function index()\n {\n $polls = Poll::latest()->paginate(16);\n return PollResource::collection($polls);\n }", "title": "" }, { "docid": "4c33127363526600cc1da25d18f917b1", "score": "0.66481763", "text": "public function index()\n {\n $entries = Entry::all();\n return view('list', compact('entries'));\n }", "title": "" }, { "docid": "e2eacd814cad9b8205ce83c08f3b5e18", "score": "0.6644318", "text": "public function showAllAction()\n {\n $title = \"Product overview\";\n $page = $this->app->page;\n $db = $this->app->db;\n\n $this->connection();\n $sql = \"SELECT * FROM product;\";\n $res = $db->executeFetchAll($sql);\n\n $data = [\n \"res\" => $res,\n \"check\" => \"check\"\n ];\n\n // $page->add(\"flash\", [], \"hej\");\n $page->add(\"products/header\");\n $page->add(\"products/show-all\", $data);\n\n return $page->render([\n \"title\" => $title,\n ]);\n }", "title": "" }, { "docid": "7ba8d3b39da88e11faeb12313b1810c2", "score": "0.6642726", "text": "public function index()\n {\n return view('pages.listing-list', [ 'listings' => Listing::all() ]);\n }", "title": "" }, { "docid": "2e266895b57f5ca532a4517799527c81", "score": "0.6637523", "text": "public function index()\n {\n $this->authorize('viewAny', Article::class);\n return ArticleResource::collection(Article::paginate(10));\n }", "title": "" }, { "docid": "e3549202853588a65782bc96028199ed", "score": "0.6635664", "text": "public function indexAction()\n {\n $page = isset($_GET['page']) ? (int)$_GET['page'] : 1;\n $perpage = 9;\n $count = R::count('product');\n $pagination = new Pagination($page, $perpage, $count);\n $start = $pagination->getStart();\n $products = R::getAll(\"SELECT product.*, category.title AS cat FROM product JOIN category ON category.id = product.category_id ORDER BY product.title LIMIT $start, $perpage\");\n $this->setMeta('Product Liste');\n $this->set(compact('products', 'pagination', 'count'));\n }", "title": "" }, { "docid": "c7312e7e8966df50b49658cf582ce6ec", "score": "0.66348624", "text": "public function index()\n {\n return ScreenResource::collection(Screen::orderby('created_at','desc')->paginate(10));\n }", "title": "" }, { "docid": "a7737316f2150c9517aa85bb9cd5c182", "score": "0.6620835", "text": "public function actionList()\n {\n $this->render(\n 'list',\n array(\n 'modules' => ($modules = $this->getInstalledModules()) ? $modules : array(),\n )\n );\n }", "title": "" }, { "docid": "fe5cbdcbc1d4a099ac316f47b6bde600", "score": "0.66093606", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n }", "title": "" }, { "docid": "48b9c834ddf22a0e1e54ba121573b35d", "score": "0.65925086", "text": "public function index()\n {\n $items= Item::all();\n return ItemResource::collection($items);\n }", "title": "" }, { "docid": "ca2a7c14d5251722cbb44ad0cf858243", "score": "0.65886205", "text": "public function overviewAction()\n {\n return $this->getProxy(self::PROXY_CLASS)->findAll();\n }", "title": "" }, { "docid": "904c604bfcee5f1df6ea56185ca68d5b", "score": "0.6587205", "text": "public function index()\n {\n //GET all the ARTICLES\n $articles = Article::paginate(15);//display 15 records per page\n\n //return colletion of articles\n return ArticleResource::collection($articles);\n\n }", "title": "" }, { "docid": "1cb3c7ae8b44dd6649599a0c6b21c3c7", "score": "0.65857047", "text": "public function index()\n\t{\n\t\t$data = [\n\t\t\t'pageTitle' => $this->getResourcePluralName(),\n\t\t\t'allItems' => $this->repo->search($this->getIndexFilter()),\n\t\t\t'isDestroyingEntityAllowed' => $this->isDestroyAllowed(),\n\t\t\t'canCreateEntities' => $this->canCreateEntities(),\n\t\t\t'canEditEntities' => $this->canEditEntities(),\n\t\t];\n\n\t\t$viewName = $this->getIndexViewName();\n\n\t\treturn view($viewName, $data);\n\t}", "title": "" }, { "docid": "918a60c91683ae2630d02bdb5af36fd8", "score": "0.6585502", "text": "public function index()\n\t{\n\t\t// if view_table_permission is false, abort\n\t\tif (isset($this->crud['view_table_permission']) && !$this->crud['view_table_permission']) {\n\t\t\tabort(403, 'Not allowed.');\n\t\t}\n\n\t\t// get all results for that entity\n\t\t$model = $this->crud['model'];\n\t\t$this->data['entries'] = $model::all();\n\n\t\t$this->_prepare_columns(); // checks that the columns are defined and makes sure the response is proper\n\n\t\t$this->data['crud'] = $this->crud;\n\n\t\t// load the view from /resources/views/vendor/dick/crud/ if it exists, otherwise load the one in the package\n\t\tif (view()->exists('vendor.dick.crud.list'))\n\t\t{\n\t\t\treturn view('vendor.dick.crud.list', $this->data);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn view('crud::list', $this->data);\n\t\t}\n\t}", "title": "" }, { "docid": "4e0e77be39529387e26200c96e69287c", "score": "0.65843135", "text": "public function index()\n {\n return $this->respondResource($this->courseTransformer->transformCollection($this->model->all()));\n }", "title": "" }, { "docid": "679aeb0a886968964597db4d52db9f05", "score": "0.65769154", "text": "public function action_list() {\n\t\tKohana::$log->add(Kohana::DEBUG,'Executing Controller_Admin_Photo::action_list');\n\n\t\t// Build request\n\t\t$query = DB::select();\n\n\t\tif(isset($_POST['terms']))\n\t\t{\n\t\t\t$query->where('title','like',\"%\".$_POST['terms'].\"%\");\n\t\t\t$query->or_where('subtitle','like',\"%\".$_POST['terms'].\"%\");\n\t\t}\n\n\t\t$photos = Sprig::factory('photo')->load($query, FALSE);\n\n\n\t\tif(Request::$is_ajax)\n\t\t{\n\t\t\t// return a json encoded HTML table\n $this->request->response = json_encode(\n\t\t\t\tView::factory('admin/photo/list_tbody')\n\t\t\t\t\t->bind('photos', $photos)\n ->render()\n );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// return the full page\n\t\t\t$this->template->content = View::factory('admin/photo/list')\n\t\t\t\t->set('tbody', View::factory('admin/photo/list_tbody')\n\t\t\t\t\t->bind('photos', $photos)\n\t\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "e99878c1a0eff5bcf7bf12ed5c8ef9d5", "score": "0.65716714", "text": "public function show()\n {\n return view('listing::show');\n }", "title": "" }, { "docid": "2a58e9f56c195880d92e6beb689abbba", "score": "0.6570577", "text": "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t\n\t\t$perpage = $this->perpage;\n\t\t$search = array();\n\t\t\n\t\tlist($total, $data) = Cut_Service_Type::getList($page, $perpage, $search);\n\t\t$count = Cut_Service_Store::getCountByType();\n\t\t$this->assign('data', $data);\n\t\t$this->assign('count', $count);\n\t\t$url = $this->actions['listUrl'] .'/?'. http_build_query($search) . '&';\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $url));\n\t\t$this->assign('search', $search);\n\t\t$this->cookieParams();\n\t}", "title": "" }, { "docid": "ec4c68627da9cf6d0e66bd08ee79a1dc", "score": "0.65669394", "text": "public function index()\n {\n // Get articles\n $phonebook = Phonebook::all();\n // $phonebook = Phonebook::orderBy('created_at', 'desc')->paginate(10);\n\n // Return collection of articles as a resource\n return PhonebookResource::collection($phonebook);\n }", "title": "" }, { "docid": "c192cad1748d0fe11000b8d2063a908e", "score": "0.65643096", "text": "public function index()\n {\n return $this->view('lists');\n }", "title": "" }, { "docid": "91bd64ec31d39c68673ba29f7d9f8854", "score": "0.6563426", "text": "public function index()\n {\n $books = Book::all();\n\n return BookResource::collection($books);\n }", "title": "" }, { "docid": "fbe5edfb0d98ba0fd6a7b19c41578f77", "score": "0.6557768", "text": "public function index()\n {\n try{\n $records = $this->recordRepository->all();\n return RecordResource::collection($records);\n }catch(Exception $ex){\n return (new RecordResource(null))->additional([\"success\" => false, 'message' => $ex->getMessage()]);\n }\n }", "title": "" }, { "docid": "d6b8267e53f8fa9ab6b806d4fbc412ee", "score": "0.655762", "text": "public function indexAction()\n {\n $total = 0;\n $records = $this->selectRecords($total);\n\n $this->apiOutRecords($records, array('_total' => $total));\n }", "title": "" }, { "docid": "3880843e6dad72ba6c5735793fc1ed0b", "score": "0.6556616", "text": "public function index()\n {\n $query = Person::getList(request('filter', ''))\n ->orderBy(request('order_by','s_FullLegalName'),request('order','ASC'));\n \n return PersonResource::collection($query->paginate(request('per_page', 100)));\n }", "title": "" }, { "docid": "04cfd6b456f88347b94d80eedaf2f138", "score": "0.65456504", "text": "public function index()\n {\n return new FormatResourceCollection(Format::paginate(12));\n }", "title": "" }, { "docid": "9c04a592d034f52c23e6d6ecf983a3ae", "score": "0.6544668", "text": "public function index()\n {\n return EmployeeResource::collection(Employee::query()->paginate());\n }", "title": "" }, { "docid": "ab27904c6696fc1d0abf6bfaac7bde7e", "score": "0.65404403", "text": "public function listAction()\n {\t\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepEmp = $em->getRepository('BoAdminBundle:SupEmployee');\n\t\t$nb_tc = $oRepEmp->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$supemployees = $em->getRepository('BoAdminBundle:SupEmployee')->findBy(array(),array('firstname' => 'asc'),$nb_cpp,$offset);\n return $this->render('supemployee/index.html.twig', array(\n 'supemployees' => $supemployees,\n\t\t\t'types'=>$em->getRepository('BoAdminBundle:Contracts')->getContractType(),\n\t\t\t'languages'=>$em->getRepository('BoAdminBundle:Language')->getAll(),\n\t\t\t'statuss'=>$em->getRepository('BoAdminBundle:Employee')->getStatusEmployee(),\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'message'=> $this->getSessionMessage(),\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"archives\",\n\t\t\t'sm'=>\"supemployee\",\n ));\n }", "title": "" }, { "docid": "4b7799b0d4a4b471dbc995e613462306", "score": "0.6540187", "text": "public function listAction()\n {\n return new Response(\n json_encode([\n [\n 'id' => 1,\n 'title' => 'First Post on Vox',\n 'author' => 'Mario Rossi',\n 'author_id' => 1,\n 'excerpt' => \"Here we are! Finally this is my first post on Vox and I am so happy that...\",\n 'content' => \"Here we are! Finally this is my first post on Vox and I am so happy that this is my lorem ipsum bla bla bla bla!\",\n 'date' => \"08/01/2015\"\n ],\n [\n 'id' => 2,\n 'title' => 'And yes, this is my second post!',\n 'author' => 'Lukas Schneider',\n 'author_id' => 2,\n 'excerpt' => \"Well this is already my second post and so you already know that...\",\n 'content' => \"Well this is already my second post and so you already know that, in terms of being my second post,\n this is exactly what is says it is: my second, incredibly well written and fantastimagically published post!\",\n 'date' => \"09/02/2015\"\n ]\n ]),\n 200,\n 'application/json'\n );\n }", "title": "" }, { "docid": "7bf076a0c3e59596e2f2d0bcbed69f85", "score": "0.65379655", "text": "public function index()\n {\n $artigos = Artigo::paginate(15);\n return ArtigoResource::collection($artigos);\n }", "title": "" }, { "docid": "f02310ea34b1d707bc2f4d714e4c27f4", "score": "0.65372354", "text": "public function index()\n {\n return view($this->template.'.list.index');\n }", "title": "" }, { "docid": "f852b02ada9624be17ccc6c0b233bca4", "score": "0.65288365", "text": "public function list()\n {\n }", "title": "" }, { "docid": "151cb6ff960217da12cef7baa33178ed", "score": "0.652593", "text": "public function listAction()\n {\n if ((!$this->auth->hasIdentity()) || ($this->session->type != '1'))\n $this->_helper->redirector('index', 'index');\n\n $this->view->headTitle(\"Noticias\");\n $this->view->headLink()->appendStylesheet($this->view->baseUrl().'/css/list.css');\n\n $tbNews = new TbNews();\n $this->view->news = $tbNews->select()->query()->fetchAll();\n }", "title": "" }, { "docid": "37171947214224489a9ea88290a99d00", "score": "0.652515", "text": "public function index()\n {\n return view(self::$prefixView.'list');\n }", "title": "" }, { "docid": "37171947214224489a9ea88290a99d00", "score": "0.652515", "text": "public function index()\n {\n return view(self::$prefixView.'list');\n }", "title": "" }, { "docid": "b1dec5f0dac45e2b14cc0f57d1289acb", "score": "0.65199256", "text": "public function index()\n {\n //\n\t\t\t\t// $resources = Resource::all();\n\t\t\t\t// $resources = $resources->sortByDesc('creation_date');\n\t\t\t\t// return response()->json($resources->values()->all());\n\n\t\t\t\treturn response()->json(Resource::orderBy('creation_date', 'desc')->get());\n }", "title": "" }, { "docid": "e88169ebd124db7bccec6b3cfb0167be", "score": "0.65179664", "text": "public function index()\n {\n $albums = Album::orderBy('date', 'desc')->paginate(20);\n\n\n return AlbumResource::collection($albums);\n }", "title": "" }, { "docid": "fbf72fd4f1e2e3a08a1398a646fce575", "score": "0.651124", "text": "public function index()\n\t{\n\t\t$shows = $this->shows->all();\n\t\n\t\treturn $this->apiResponse('success', $shows->toArray());\n\t}", "title": "" }, { "docid": "1860cb7aec35aa79a7186d6bd7c6a7d4", "score": "0.65010643", "text": "public function index()\n {\n //\n return view('backend.admin.catalogs.index')\n ->with(['catalogs' => Catalog::paginate(10)]);\n }", "title": "" }, { "docid": "66db74bb7d42b9897dbcbf88ebabf0ca", "score": "0.64994514", "text": "public function index()\n {\n $request = request();\n if($request->query->has('page_size')){\n $this->setPageSize(request()->query->getInt('page_size', $this->page_size));\n }\n\n $items = $this->indexService->getItems($this->pageSize());\n\n return view($this->templateIndex, [\n 'items' => $items,\n 'title' => $this->getTitle(),\n 'controller' => $this->getController(),\n 'fields' => $this->listFields(),\n 'sortable' => $this->isSortable\n ]);\n }", "title": "" }, { "docid": "3bcd0d0bc609b30833a686c0ca043c6e", "score": "0.6498308", "text": "public function index()\n {\n $links = Link::all();\n\n return LinkResource::collection($links);\n }", "title": "" }, { "docid": "bc53be210c897827bfafe166eceeb35a", "score": "0.6491012", "text": "public function index()\n {\n $employees = $this->paginate($this->Employees);\n\n $this->set(compact('employees'));\n $this->set('_serialize', ['employees']);\n }", "title": "" }, { "docid": "43a505c360befd38cd453143a05a36e2", "score": "0.6481906", "text": "public function index()\n {\n $statuses = $this->statuses->paginate(10);\n\n return view('backend.statuses.index',compact('statuses'));\n }", "title": "" }, { "docid": "65d1d46b6cab2b6d3d5320b59de21946", "score": "0.64814454", "text": "public function index()\n {\n //get some articles\n $posts = Post::paginate(15);\n //return the collection as resource\n return PostResource :: collection($posts);\n }", "title": "" } ]
02e9039718435561fff1c40ab5e2421b
Test getRecommListsUrl method with Seo
[ { "docid": "1c2113e6f781888c264f727dc088fe59", "score": "0.7686591", "text": "public function testGetRecommListsUrlSeoOn()\n {\n $oLang = oxRegistry::getLang();\n $oLang->setBaseLanguage(1);\n \\OxidEsales\\Eshop\\Core\\Registry::set(\\OxidEsales\\Eshop\\Core\\Language::class, $oLang);\n\n $oConfig = $this->getConfig();\n $oConfig->setConfigParam('blSeoMode', true);\n $oConfig->setConfigParam('sShopURL', 'http://myshop/');\n\n $oRss = oxNew('oxRssFeed');\n\n $oArt = oxNew('oxArticle');\n $oArt->setId('ajai');\n $oArt->oxarticles__oxtitle = new oxField('tsss');\n\n $sCheckString = \"http://myshop/en/rss/Listmania/tsss/\";\n $this->assertEquals($sCheckString, $oRss->getRecommListsUrl($oArt));\n }", "title": "" } ]
[ { "docid": "7100f2dcead19785e2881c5ce8cb45e3", "score": "0.70549625", "text": "public function testGetRecommListsUrlSeoOff()\n {\n $oLang = oxRegistry::getLang();\n $oLang->setBaseLanguage(1);\n \\OxidEsales\\Eshop\\Core\\Registry::set(\\OxidEsales\\Eshop\\Core\\Language::class, $oLang);\n\n $oConfig = $this->getConfig();\n $oConfig->setConfigParam('blSeoMode', false);\n $oConfig->setConfigParam('sShopURL', 'http://myshop/');\n\n $oRss = oxNew('oxRssFeed');\n\n $oArt = oxNew('oxArticle');\n $oArt->setId('ajai');\n $oArt->oxarticles__oxtitle = new oxField('tsss');\n $sCheckString = \"http://myshop/?cl=rss&amp;fnc=recommlists&amp;anid=ajai&amp;lang=1\";\n if ($this->getConfig()->getEdition() === 'EE') {\n $sCheckString .= \"&amp;shp=1\";\n }\n $this->assertEquals($sCheckString, $oRss->getRecommListsUrl($oArt));\n }", "title": "" }, { "docid": "93f9b4488ed130e0887473c895f4746d", "score": "0.68712497", "text": "public function testGetRecommListArticlesUrlSeoOn()\n {\n $oLang = oxRegistry::getLang();\n $oLang->setBaseLanguage(1);\n \\OxidEsales\\Eshop\\Core\\Registry::set(\\OxidEsales\\Eshop\\Core\\Language::class, $oLang);\n\n $oConfig = $this->getConfig();\n $oConfig->setConfigParam('blSeoMode', true);\n $oConfig->setConfigParam('sShopURL', 'http://myshop/');\n\n $oRss = oxNew('oxRssFeed');\n\n $oRecommList = oxNew('oxRecommList');\n $oRecommList->setId('ajai');\n $oRecommList->oxrecommlists__oxtitle = new oxField('tsssactive');\n $sCheckString = \"http://myshop/en/rss/Listmania/tsssactive/\";\n $this->assertEquals($sCheckString, $oRss->getRecommListArticlesUrl($oRecommList));\n }", "title": "" }, { "docid": "c0e101384f1f6d71cf65da9e6dc33e3b", "score": "0.67281073", "text": "public function testGetRecommListArticlesUrlSeoOff()\n {\n $oLang = oxRegistry::getLang();\n $oLang->setBaseLanguage(1);\n \\OxidEsales\\Eshop\\Core\\Registry::set(\\OxidEsales\\Eshop\\Core\\Language::class, $oLang);\n\n $oConfig = $this->getConfig();\n $oConfig->setConfigParam('blSeoMode', false);\n $oConfig->setConfigParam('sShopURL', 'http://myshop/');\n\n $oRss = oxNew('oxRssFeed');\n\n\n $oRecommList = oxNew('oxRecommList');\n $oRecommList->setId('ajai');\n $oRecommList->oxrecommlists__oxtitle = new oxField('tsss');\n $sCheckString = \"http://myshop/?cl=rss&amp;fnc=recommlistarts&amp;recommid=ajai&amp;lang=1\";\n if ($this->getConfig()->getEdition() === 'EE') {\n $sCheckString .= \"&amp;shp=1\";\n }\n $this->assertEquals($sCheckString, $oRss->getRecommListArticlesUrl($oRecommList));\n }", "title": "" }, { "docid": "cef2d529ddb1d5db0ee255f60eb3cce3", "score": "0.6020225", "text": "function userToListing($url)\n{\n $client = new Client();\n $crawler = $client->request('GET', $url);\n\n $storeUrl = '';\n $itemsForSaleUrl = '';\n\n if($crawler->filter('#shortcuts span.store soi_lk a')->first())\n {\n $itemsForSaleUrl = $crawler->filter('#shortcuts span.store soi_lk a')->first()->extract(array('href'))[0];\n }\n else if($crawler->filter('#shortcuts span.store store_lk a')->first())\n {\n $storeUrl = $crawler->filter('#shortcuts span.store store_lk a')->first()->extract(array('href'))[0];\n }\n\n if($storeUrl) return storeToListing($storeUrl);\n else if($itemsForSaleUrl) return itemsForSaleToListing($itemsForSaleUrl);\n else return [];\n}", "title": "" }, { "docid": "9fde5b584c7396d62d761e016c6b7f24", "score": "0.579494", "text": "public function testGettingDataFromUrl()\n {\n $scrapper = new ScrapperManager([\n TrendyolService::class => 'https://www.trendyol.com/erkek-spor-ayakkabi-x-g2-c109',\n DefactoService::class => 'https://www.defacto.com.tr/erkek',\n ]);\n\n $response =$scrapper->scrap();\n\n $this->assertTrue(count($response)>0);\n }", "title": "" }, { "docid": "efc1e5ec37a2afde59c8eed00975e947", "score": "0.5782092", "text": "public function url_set_and_get_method(){\n $url = new \\App\\Models\\Url;\n $url->setUrlsFromBulkListUrl(public_path('log.scrap.@kumparanoto.with.l1.filtered'));\n \n $this->assertCount(10, $url->getUrls());\n }", "title": "" }, { "docid": "9fc9ef45ea3cec14b145eebf040de1c7", "score": "0.5665232", "text": "function storeToListing($url)\n{\n $alternative = false;\n $pages = [];\n $listingUrls = [];\n $client = new Client();\n $crawler = $client->request('GET', $url);\n\n $crawler->filter('.pages a')->each(function ($node) use(&$pages)\n {\n $pages[] = $node->extract(array('href'))[0];\n });\n\n if (!count($pages))\n {\n $crawler->filter('.pgn a.no')->each(function ($node) use(&$pages)\n {\n $pages[] = $node->extract(array('href'))[0];\n });\n\n $alternative = true;\n }\n\n if(count($pages))\n {\n foreach ($pages as $page)\n {\n $parts = parse_url($url);\n\n if($page == '')\n {\n if($alternative)\n {\n $parts = parse_url($page);\n\n if($parts['path'] == \"\")\n {\n $parts = parse_url($pages[1]);\n }\n\n parse_str($parts['query'], $query);\n $query['_pgn'] = 1;\n $pageUrl = $parts['scheme'].'://'.$parts['host'].$parts['path'].http_build_query($query);\n }\n else\n {\n $pageUrl = $parts['scheme'].'://'.$parts['host'].substr_replace($pages[1], '1', -1);\n }\n }\n else\n {\n if($alternative) $pageUrl = $page;\n else $pageUrl = $parts['scheme'].'://'.$parts['host'].$page;\n }\n\n $listingUrls[] = getItemUrl($pageUrl);\n }\n }\n else\n {\n $crawler->filter('a.vip')->each(function ($node) use(&$pages)\n {\n $listingUrls[] = $node->extract(array('href'))[0];\n });\n }\n\n return $listingUrls;\n}", "title": "" }, { "docid": "aa7ff9cbf0b12afb38e2ef6539d02d77", "score": "0.56098294", "text": "public function testTemplistIdListsGet()\n {\n }", "title": "" }, { "docid": "07f971518890e28e01b825f190cb8836", "score": "0.5534236", "text": "function genre_list(){\n\t\t$response = $this->actingAs($this->user)->get('/category/genre');\n\t\t$response->assertStatus(200);\n\t}", "title": "" }, { "docid": "e1ac4e6afb8c7bfcecfa2483ec42b434", "score": "0.5532896", "text": "public function getyourlisturl() {\n return $this->_getUrl ( 'property/general/show' );\n }", "title": "" }, { "docid": "295bef6c0426c4d5754027f5d8d6beac", "score": "0.5529578", "text": "function get_recommendations() {\n // Read the term form the POST variable\n $items = $_POST['terms'];\n $context = $_POST['trigger'];\n\n /**\n * URL: http://eexcess-dev.joanneum.at/eexcess-privacy-proxy/api/v1/recommend\n * Alternative URL: http://132.231.111.197:8080/eexcess-privacy-proxy/api/v1/recommend\n * METHOD: POST\n * DEV: http://eexcess-dev.joanneum.at/eexcess-federated-recommender-web-service-1.0-SNAPSHOT/recommender/recommend\n * Privacy Proxy\n */\n //dev\n //$proxyURL = \"http://eexcess-dev.joanneum.at/eexcess-privacy-proxy/api/v1/recommend\";\n\n //stable\n $proxyURL = \"http://eexcess.joanneum.at/eexcess-privacy-proxy/api/v1/recommend\";\n\n // Data for the api call\n $postData = array(\n \"numResults\" => 100,\n \"contextKeywords\" => array(),\n \"context\" => array(\"reason\" => $context, \"value\" => \"\")\n );\n\n // Creating the context list for the api call\n foreach($items as $term) {\n array_push($postData[\"contextKeywords\"], array( \"weight\" => strval (1.0 / sizeof($items)), \"text\" => $term ));\n }\n\n // Create context for the API call\n $context = stream_context_create(array(\n 'http' => array(\n 'method' => 'POST',\n 'header' => array(\"Content-Type: application/json\", \"Origin: WP\"),\n 'content' => json_encode($postData)\n )\n ));\n\n // Send the request and return the result\n echo @file_get_contents($proxyURL, FALSE, $context);\n\n\t die(); // this is required to return a proper result\n }", "title": "" }, { "docid": "1b35fcac449818881326958c064458a0", "score": "0.54798806", "text": "public function testTemplistsGet()\n {\n }", "title": "" }, { "docid": "645780fb3f4f661bcef9c79432b7c279", "score": "0.5472047", "text": "public function testPlaylistsSharev1playlists()\n {\n\n }", "title": "" }, { "docid": "c05c1c80eeda2020cc294cef1cba6d70", "score": "0.53923595", "text": "public function test_profilePrototypeGetReviews() {\n\n }", "title": "" }, { "docid": "61736d295052eb816e55952354adf89a", "score": "0.5365582", "text": "public function testURL()\n {\n $this->browse(function (Browser $browser) {\n $browser->loginAs(1)\n ->visit('/suppliers/create')\n ->assertSee('CREATE SUPPLIER PAGE');\n });\n }", "title": "" }, { "docid": "f39ced8ea5340c9e0cbbf72b78fc7592", "score": "0.53471524", "text": "public function testgetLinkPreviewPageUrl()\n { \n $applane_integration = new ApplaneIntegrationControllerTest();\n $user_info = $applane_integration->getLoginUser();\n $access_token = $user_info['access_token'];\n $user_id = $user_info['user_id'];\n $baseUrl = $this->getContainer()->getParameter('symfony_base_url');\n $vat_number = $this->getContainer()->getParameter('store_vat');\n $serviceUrl = $baseUrl . 'webapi/getlinkpreview?access_token='.$access_token;\n $data = array(\n 'text' => 'http://book.cakephp.org/3.0/en/views/helpers.html',\n 'imagequantity' => '-1',\n );\n \n $request_object = $this->madeRequestObject($data);\n $client = new CurlRequestService();\n $response = $client->send('POST', $serviceUrl, array(), $data)\n ->getResponse();\n\n $service_resp = json_decode($response,true);\n foreach($service_resp as $key => $value){\n $resp[$key] = $key;\n }\n $this->assertEquals('pageUrl',$resp['pageUrl']);\n }", "title": "" }, { "docid": "6e3268b7710dd21f9430f6d466e2e3f5", "score": "0.53340465", "text": "public function testPlaylistsSharev1playlists0()\n {\n\n }", "title": "" }, { "docid": "5e2b1df42a5b0d1208af6897eaaa0100", "score": "0.53302777", "text": "public function indexAction()\n\t{\n\t\t$this->loadLayout();\n\t\t$products = [];\n\n\t\t$product_ids = explode(',', $this->getRequest()->getParam('ids'));\n\t\t$type = Mage::helper('core')->escapeHtml($this->getRequest()->getParam('type'));\n\t\t$limit = intval($this->getRequest()->getParam('limit'));\n\n\t\t$attributes = Mage::getSingleton('catalog/config')->getProductAttributes();\n\t\t$collection = Mage::getModel('catalog/product')\n\t\t\t->getCollection()\n\t\t\t->addAttributeToFilter('entity_id', ['in' => $product_ids])\n\t\t\t->addAttributeToSelect($attributes);\n\n\t\t/* Sort items as REES46 returned */\n\t\tforeach($product_ids as $id) {\n\t\t\tforeach($collection as $product) {\n\t\t\t\tif ($product->getId() == $id) {\n\t\t\t\t\t$products[] = $product;\n\n\t\t\t\t\tif (count($products) == $limit) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (count($products) > 0) {\n\t\t\tif ($this->getRequest()->getParam('title')) {\n\t\t\t\t$title = urldecode($this->getRequest()->getParam('title'));\n\t\t\t} else {\n\t\t\t\t$title = Mage::helper('rees46_personalization')->__($type);\n\t\t\t}\n\n\t\t\t$html = '<div class=\"rees46 rees46-recommend\"><div class=\"recommender-block-title\">' . Mage::helper('core')->escapeHtml($title) . '</div><div class=\"recommended-items\">';\n\n\t\t\tforeach($products as $product) {\n\t\t\t\t$productForImage = Mage::getModel('catalog/product')->load($product->getId());\n\n\t\t\t\t$product_url = $product->getProductUrl(false);\n\n\t\t\t\tif (strpos($product_url, '?') !== false) {\n\t\t\t\t\t$product_url = str_replace('?', '?recommended_by=' . $type . '&\t', $product_url);\n\t\t\t\t} else {\n\t\t\t\t\t$product_url = $product_url . '?recommended_by=' . $type;\n\t\t\t\t}\n\n\t\t\t\t$html .= '<div class=\"recommended-item\">\n\t\t\t\t <div class=\"recommended-item-photo\">\n\t\t\t\t\t<a href=\"' . $product_url . '\"><img src=\"' . $productForImage->getThumbnailUrl(200, 200) . '\"></a></div>\n\t\t\t\t <div class=\"recommended-item-title\">\n\t\t\t\t\t<a href=\"' . $product_url . '\">' . $product->getName() . '</a>\n\t\t\t\t </div>\n\t\t\t\t <div class=\"recommended-item-price\">' . $product->getFormatedPrice() . '</div>\n\t\t\t\t <div class=\"recommended-item-action\"><a href=\"' . $product_url . '\">' . Mage::helper('rees46_personalization')->__('More') . '</a></div>\n\t\t\t\t</div>';\n\t\t\t}\n\n\t\t\t$html .= '</div></div>';\n\n\t\t\techo $html;\n\t\t} else {\n\t\t\techo '';\n\t\t}\n\t}", "title": "" }, { "docid": "19796d1e8d8d7d64fdd7ec97850d10f1", "score": "0.53272396", "text": "public function getURIs();", "title": "" }, { "docid": "94b872fb7d9a887808831d4c78d263e8", "score": "0.53081995", "text": "public function test_listResourcesRequest() {\n\n }", "title": "" }, { "docid": "e255c64b84231b3a8a0bed0c04bd98bc", "score": "0.5286851", "text": "public function testgetLinkPreviewUrl()\n { \n $applane_integration = new ApplaneIntegrationControllerTest();\n $user_info = $applane_integration->getLoginUser();\n $access_token = $user_info['access_token'];\n $user_id = $user_info['user_id'];\n $baseUrl = $this->getContainer()->getParameter('symfony_base_url');\n $vat_number = $this->getContainer()->getParameter('store_vat');\n $serviceUrl = $baseUrl . 'webapi/getlinkpreview?access_token='.$access_token;\n $data = array(\n 'text' => 'http://book.cakephp.org/3.0/en/views/helpers.html',\n 'imagequantity' => '-1',\n );\n \n $request_object = $this->madeRequestObject($data);\n $client = new CurlRequestService();\n $response = $client->send('POST', $serviceUrl, array(), $data)\n ->getResponse();\n\n $service_resp = json_decode($response,true);\n foreach($service_resp as $key => $value){\n $resp[$key] = $key;\n }\n $this->assertEquals('url',$resp['url']);\n \n }", "title": "" }, { "docid": "27868450d19356649f84c938c6cfc23b", "score": "0.52693087", "text": "public function testListMaterial(){\n $client = $this->createAuthorizedClient();\n $crawler = $client->request('GET', '/material/listadmin');\n $this->assertNotTrue($client->getResponse()->isNotFound());\n $this->assertEquals(\n 200,\n $client->getResponse()->getStatusCode()\n );\t\t\n /*\n Testeamos que al hacer una request a /listadmin nos devuelva la pagina\n del listado de material\n */\n $crawler = $client->request(\"GET\",\"/material/listadmin\");\n $para1 = $crawler->filter('h1')->first()->text();\n $this->assertEquals(\"Lista de Material de Empresa \",$para1);\n }", "title": "" }, { "docid": "d8fb61bf916c789c6389d43065204b51", "score": "0.5268565", "text": "public function getUrls();", "title": "" }, { "docid": "d8fb61bf916c789c6389d43065204b51", "score": "0.5268565", "text": "public function getUrls();", "title": "" }, { "docid": "c7114504c2b30770e5d93bbe690d70d8", "score": "0.52684754", "text": "private function getListlink(){\n }", "title": "" }, { "docid": "3546c05a321b5b569c30292fd25b0358", "score": "0.52547103", "text": "public function index()\n\t{\n\t\t$take = Input::get('take', $this->defaultTake);\n\n\t\tif (! Auth::check())\n\t\t{\n\t\t\treturn $this->apiResponse(\n\t\t\t\t'error',\n\t\t\t\tLang::get('controllers.recommended.not-logged_error'),\n\t\t\t\t401\n\t\t\t);\n\t\t}\n\n\t\t$this->recommendatore->generate(Auth::user());\n\t\t$recommendations = $this->recommendatore->fetch(Auth::user(), $take);\n\n\t\treturn $this->apiResponse(\n\t\t\t'success',\n\t\t\t$this->generateResponseData($recommendations)\n\t\t);\t\t\n\t}", "title": "" }, { "docid": "b1cc7aaeb1a4eca52a2aec36296de3a8", "score": "0.5231534", "text": "public function testLinkWithScreeningQuestions()\n {\n }", "title": "" }, { "docid": "6da431114ecb72f06908037be00b7291", "score": "0.52173823", "text": "public function testSetListeNoire()\n {\n\n }", "title": "" }, { "docid": "9af7029ff78bce648069339a6213b976", "score": "0.5207258", "text": "public function __construct(){\n $this->listUrl();\n }", "title": "" }, { "docid": "beac2fcd9c513f9794f5c5213c129530", "score": "0.5193229", "text": "function getTestResults2() {\n\treturn array(\n\"http://www.google.com/\",\n\"http://www.yahoo.com/\",\n\"http://www.more.com/\",\n\"http://www.shop4campinggear.com/\");\n\n}", "title": "" }, { "docid": "fae9fc46ebbdef42378c3f4952b20b42", "score": "0.51822406", "text": "public function testgetRequestURL() {\n $this->model = new RequestURLModel();\n\n $baseUrl = \"baseUrl\";\n $ip = \"200.200.200.200\";\n $apiKey = $this->getApiKey();\n $url = $this->model->getRequestURL($baseUrl, $ip);\n\n $validUrl = $baseUrl . '/api?ip=' . $ip . '?api-key=' . $apiKey;\n $this->assertEquals($validUrl, $url);\n }", "title": "" }, { "docid": "07cb259272a4f9731f5dafca28d24d56", "score": "0.5174372", "text": "public function getUrlRewriteForList()\n {\n return Mage::getStoreConfig('news/post/url_rewrite_list');\n }", "title": "" }, { "docid": "e9fbe0935aaffa3a9a7db439881d6130", "score": "0.5163941", "text": "public function testLikerListAction()\n {\n $array = ['type' => 1, 'type_id' => 24, 'viewer_id' => 56];\n\n $response = $this->action('GET', 'Api\\LikeController@likerListAction', $array);\n\n $this->assertEquals(200, $response->getStatusCode());\n $this->isJson($response);\n\n $array_response = json_decode($response->getContent());\n\n $this->assertNotNull($array_response);\n $this->assertNotNull($array_response->data);\n $this->assertNotNull($array_response->page->current);\n $this->assertNotNull($array_response->page->number);\n\n foreach ($array_response->data as $data) {\n $this->assertNotNull($data->id);\n }\n }", "title": "" }, { "docid": "0a6666745288b9e81e31c78c14b37179", "score": "0.5151557", "text": "abstract protected function getListUrlSegment();", "title": "" }, { "docid": "9ca453a7718d935d25ab6e66e2442447", "score": "0.5140541", "text": "public function testSearchesGet()\n {\n }", "title": "" }, { "docid": "34c725a69f415dde3e1a39079bfb2a0b", "score": "0.5127885", "text": "function test_list_fail_3()\n {\n $this->do_request('/elementos', [],[],status::$BAD_REQUEST, \"GET\");\n }", "title": "" }, { "docid": "c99771da898e1e2d94011aea7dbdf207", "score": "0.5124618", "text": "function get_listurl($q) {\n\tglobal $hansardmajors;\n\t$id_data = array(\n\t\t'gid' => fix_gid_from_db($q->field(0, 'gid')),\n\t\t'major' => $q->field(0, 'major'),\n\t\t'htype' => $q->field(0, 'htype'),\n\t\t'subsection_id' => $q->field(0, 'subsection_id'),\n\t);\n\t$db = new ParlDB;\n\t$LISTURL = new URL($hansardmajors[$id_data['major']]['page_all']);\n\t$fragment = '';\n\tif ($id_data['htype'] == '11' || $id_data['htype'] == '10') {\n\t\t$LISTURL->insert( array( 'id' => $id_data['gid'] ) );\n\t} else {\n\t\t$parent_epobject_id = $id_data['subsection_id'];\n\t\t$parent_gid = '';\n\t\t$r = $db->query(\"SELECT gid\n\t\t\t\tFROM \thansard\n\t\t\t\tWHERE\tepobject_id = '\" . mysql_real_escape_string($parent_epobject_id) . \"'\n\t\t\t\t\");\n\t\tif ($r->rows() > 0) {\n\t\t\t$parent_gid = fix_gid_from_db( $r->field(0, 'gid') );\n\t\t}\n\t\tif ($parent_gid != '') {\n\t\t\t$LISTURL->insert( array( 'id' => $parent_gid ) );\n\t\t\t$fragment = '#g' . gid_to_anchor($id_data['gid']);\n\t\t}\n\t}\n\treturn $LISTURL->generate('none') . $fragment;\n}", "title": "" }, { "docid": "a0ba2283420e0f98a64bafc309003834", "score": "0.5122736", "text": "public function testList()\n {\n $user = User::findOrFail(1);\n $response = $this->actingAs($user)->get('/books');\n $response->assertViewIs('books');\n }", "title": "" }, { "docid": "4f81b9c5faefb3ae2744065282ef4b23", "score": "0.5121889", "text": "public function testListProductSources()\n {\n }", "title": "" }, { "docid": "23d239e968a2718ad109fa57e007cbea", "score": "0.5115319", "text": "public function get_recommendations(){\n \n $this->request->onlyAllow('ajax');\n App::uses('AuthComponent', 'Controller/Component');\n \n //gets recommendations only of user is logged in\n if($this->Auth->user('id')){\n //converts filter parameters into conditions\n $conditions = $this->_filters_to_conditions($this->request->data);\n \n //defines number of results and offset\n $offset = $this->request->data['offset'];\n $result_limit = 20;\n \n $this->set('result_limit',$result_limit);\n $this->set('offset',$offset);\n \n $this->set('recommendations', $this->Recommendation->find('threaded', array(\n 'conditions' => $conditions,\n 'recursive' => 2,\n 'order' => array('Recommendation.modified' => 'DESC'),\n 'limit' => $result_limit,\n 'offset' => $offset)));\n \n //sets next offset\n $this->set(array('next_offset' => $offset+$result_limit));\n \n //sets countries\n $this->set('countries',$this->Recommendation->Experience->City->Country->find('list'));\n //sets recommendationtypes (icons et names)\n $this->set('recommendationtype_names',$this->Recommendation->Recommendationtype->find('list'));\n $this->set('recommendationtype_icons',$this->Recommendation->Recommendationtype->find('list',array(\n 'fields' => array('Recommendationtype.icon')\n )));\n }\n \n $this->render('/Recommendations/get_recommendations');\n }", "title": "" }, { "docid": "193686f6b5b786d77c38677043dd5f0a", "score": "0.5114211", "text": "public function testNewLimitUrlIncludesClientId() {\n\n GoCardless::set_account_details($this->config);\n\n $url = GoCardless::$client->new_limit_url('subscription',\n array('x' => '1'));\n\n $parts = parse_url($url);\n\t\tparse_str($parts['query'], $url_params);\n\n\t $this->assertNotEmpty($url_params['client_id']);\n\n\t}", "title": "" }, { "docid": "f1b59e301a2235bfaab2bc2dbe657af6", "score": "0.5112049", "text": "public function generateSwitcherUrls();", "title": "" }, { "docid": "94d09cd1c9fc500abd50ce352807a5d3", "score": "0.51051337", "text": "public function getShoppingLists();", "title": "" }, { "docid": "c25f18694ff63257fb1c85deafdd21ff", "score": "0.51027", "text": "public function testTemplistsIdGet()\n {\n }", "title": "" }, { "docid": "35a54b99b1eb19bd97c511e2d22bc484", "score": "0.5094017", "text": "public function testGetLinkedScreeningQuestions()\n {\n }", "title": "" }, { "docid": "3daa6db20fe05daa0e836d43c0c056f7", "score": "0.5089961", "text": "abstract protected function getRequestUrl();", "title": "" }, { "docid": "eac0d8482848b8139e595da831e487a1", "score": "0.50892603", "text": "public function getTermsURL();", "title": "" }, { "docid": "0d5d314436b5c31c593e2e0b420e0196", "score": "0.50882447", "text": "public function testListProducts()\n {\n }", "title": "" }, { "docid": "f92ab28802479ce0af48d7dfead573d7", "score": "0.50805473", "text": "public function testIndex()\n {\n $client00 = $this->createAuthorizedClient();\n $crawler00 = $client00->request('GET', '/material/listuser');\n $this->assertNotTrue($client00->getResponse()->isNotFound());\n $this->assertEquals(\n 200,\n $client00->getResponse()->getStatusCode()\n );\t\t\n /*\n Testeamos que al hacer una request al indice nos devuelva la pagina\n de listado de material\n */\n $crawler00 = $client00->request(\"GET\",\"/material/listuser\");\n $para1 = $crawler00->filter('h1')->first()->text();\n $this->assertEquals(\"Mi material \",$para1);\n\n }", "title": "" }, { "docid": "220e76fb0876a15978f7ddcbd981f098", "score": "0.50747746", "text": "public function testStudentUrl()\n {\n\n $user = new User(array('name' => 'John'));\n $this->be($user); //You are now authenticated\n\n $response1 = $this->call('GET', '/add-student');\n $response2 = $this->get('/student-list');\n $response3 = $this->get('/student-list?page=100');\n $response4 = $this->get('/student-list?by=reg_number&sort=asc&page=1');\n $response5 = $this->get('/student-list?by=father_name&sort=asc&page=1');\n $response6 = $this->get('/student-list?by=caste&sort=asc&page=1');\n \n $response1->assertStatus(200);\n $response2->assertStatus(200);\n $response3->assertStatus(200);\n $response4->assertStatus(200);\n $response5->assertStatus(200);\n $response6->assertStatus(200);\n }", "title": "" }, { "docid": "fba9d2d56a230c79699f19c9ccd9377b", "score": "0.506899", "text": "function list_uri() {\n\t\t$request = get_admin_url() . \"admin.php?page=list-workshops\";\n\t\treturn $request;\n\t}", "title": "" }, { "docid": "a0d28e9694686d003d3dd50120589fa3", "score": "0.5056861", "text": "public function testList()\n {\n $client = static::createClient();\n $client->followRedirects(true);\n\n\n $crawler = $client->request('GET', '/login');\n\n // response should be success\n $this->assertEquals(200, $client->getResponse()->getStatusCode());\n\n //check if words are available on the page\n $this->assertGreaterThan(0, $crawler->filter('title:contains(\"Welcome, please login\")')->count());\n\n // select the login form\n $form = $crawler->selectButton('submit')->form();\n\n // submit the form with valid credentials\n $crawler = $client->submit(\n $form, array(\n '_username' => 'ronald.conco@creativecloud.co.za',\n '_password' => '654321',\n )\n );\n\n // response should be success\n $this->assertEquals(200, $client->getResponse()->getStatusCode());\n $this->assertTrue($client->getResponse()->isSuccessful());\n\n //check if words are not available on the page\n $this->assertEquals(0, $crawler->filter('title:contains(\"Welcome, please login\")')->count());\n\n\n //check if user landed on the service provider list pager\n $this->assertEquals(1, $crawler->filter('title:contains(\"Manage service providers\")')->count());\n\n //go to list view page\n $crawler = $client->request('GET', '/member/list.html');\n\n // response should be success\n $this->assertEquals(200, $client->getResponse()->getStatusCode());\n $this->assertTrue($client->getResponse()->isSuccessful());\n\n //check if words are not available on the page\n $this->assertEquals(1, $crawler->filter('title:contains(\"Manage members\")')->count()); \n return;\n }", "title": "" }, { "docid": "abe356eb814a4cd707b10acc710b0a93", "score": "0.5052008", "text": "public function getPageUrl()\n {\n\n }", "title": "" }, { "docid": "7b6afefabaeacce796cc289ee90e8e82", "score": "0.50424445", "text": "function _get_items(){\n $segments = \"explore/product/\";\n return $segments;\n }", "title": "" }, { "docid": "2fe1c80fe452ff557cba9bb711e707a7", "score": "0.5034688", "text": "public function testDesignFoldersFindOneGet()\n {\n\n }", "title": "" }, { "docid": "ade5d32dffa3b46c5f873bbfde6a6c31", "score": "0.5021321", "text": "public function testTemplistIdListId2Get()\n {\n }", "title": "" }, { "docid": "90cc0c2c8b0095b79b096168ddbe1252", "score": "0.50160563", "text": "public function testList()\n\t{\n\t\t$client = \\Aimeos\\Client\\Html\\Catalog\\Lists\\Factory::createClient( $this->context, $this->paths );\n\t\t$client->setView( $this->view );\n\t\t$client->getBody();\n\t\t$client->getHeader();\n\n\n\t\t$start = microtime( true );\n\n\t\t$client = \\Aimeos\\Client\\Html\\Catalog\\Lists\\Factory::createClient( $this->context, $this->paths );\n\t\t$client->setView( $this->view );\n\t\t$client->getHeader();\n\t\t$client->getBody();\n\n\t\t$stop = microtime( true );\n\t\techo \"\\n catalog list: \" . ( ( $stop - $start ) * 1000 ) . \" msec\\n\";\n\t}", "title": "" }, { "docid": "a24b925ec7d0dbde37b2c3cc2ac70fd0", "score": "0.50139517", "text": "public function provides()\n {\n return ['recommendations'];\n\n }", "title": "" }, { "docid": "5bc7ee7c137b9cf14e82dbcb93ee86ce", "score": "0.50114113", "text": "public function test_profilePrototypeFindByIdReviews() {\n\n }", "title": "" }, { "docid": "cb86f31d2dd49d2006fcfca83f2a47a0", "score": "0.50097436", "text": "public function testNewLimitUrlIncludesRedirectUri() {\n\n GoCardless::set_account_details($this->config);\n\n $params = array(\n 'a' => '1',\n 'b' => '2',\n 'redirect_uri' => 'http://www.google.com'\n );\n\n $url = GoCardless::$client->new_limit_url('subscription', $params);\n\n $parts = parse_url($url);\n\t\tparse_str($parts['query'], $url_params);\n\n\t\t$this->assertEquals('http://www.google.com', $url_params['redirect_uri']);\n\n\t}", "title": "" }, { "docid": "6191b70bbd94dba8a60427faad024617", "score": "0.5007488", "text": "public function getRenderingUrl(){\n\n return Mage::helper('favizone_recommender/data')->getRecommendationRendererUrl() .\"/\".$this->getCanal();\n }", "title": "" }, { "docid": "758820ced45d59bc21494718444b6110", "score": "0.49956533", "text": "public function testNewLimitUrlIncludesParamsInUrl() {\n\n GoCardless::set_account_details($this->config);\n\n $params = array('a' => '1', 'b' => '2');\n\n $url = GoCardless::$client->new_limit_url('subscription', $params);\n\n $parts = parse_url($url);\n\t\tparse_str($parts['query'], $url_params);\n\n\t\tforeach ($params as $key => $value) {\n\t\t $this->assertEquals($value, $url_params['subscription'][$key]);\n\t\t}\n\n\t}", "title": "" }, { "docid": "c44fe8d7e39054fedf38feabc6b1230d", "score": "0.49920326", "text": "public function urlRedirectBookersnap() {\n $request = request();\n //$token = $request->input('token');\n $microsite_id = $request->route('id');\n if(@$microsite_id){\n $microsite = OldMicrosite::where('id', $microsite_id)->first();\n return config(\"settings.SYS_BOOKERSNAP\").\"/\".$microsite->site;\n }else{\n return config(\"settings.SYS_BOOKERSNAP\");\n }\n }", "title": "" }, { "docid": "6ae28bee2df723ac7c35a8c11b711e9f", "score": "0.49883947", "text": "public function testChecklistList()\n {\n $this->get('/checklists',$this->header());\n $this->seeStatusCode(200);\n $this->seeJsonStructure([\n 'data' =>[\n '*'=>[\n \"type\",\n \"id\",\n \"attributes\"=> [\n \"object_domain\",\n \"object_id\",\n \"description\",\n \"is_completed\",\n \"due\",\n \"task_id\",\n \"urgency\",\n \"completed_at\",\n \"last_update_by\",\n \"updated_at\",\n \"created_at\",\n ],\n \"links\"=>[\n \"self\"\n ]\n ]\n ],\n 'meta' => [\n 'count',\n 'total'\n ],\n 'links' => [\n 'first',\n 'last',\n 'next',\n 'prev'\n ]\n ]);\n }", "title": "" }, { "docid": "ade8935ea98afc5548d65ef6013f0441", "score": "0.4985032", "text": "public function testAnalyticsListAudiences()\n {\n }", "title": "" }, { "docid": "dacc60258aaaa575f16a8b78b9197e7a", "score": "0.49686423", "text": "public function testRouteRoulette()\n {\n $client = static::createClient();\n $crawler = $client->request('GET', '/roulette');\n $this->assertEquals(200, $client->getResponse()->getStatusCode());\n }", "title": "" }, { "docid": "088b35616314f51c0c0ea84a62ecd966", "score": "0.49648762", "text": "public function test2(){\n $resp=$this->call('POST', '/course_description/-1/addrating' ,['code'=>'222', 'rating'=>'blabla']);\n $this->assertRedirectedTo('http://localhost');\n\n }", "title": "" }, { "docid": "e5f5c4c882cb326c9adcddc0f0420663", "score": "0.4957463", "text": "public function test_get_course_url() {\n $this->resetAfterTest(true);\n $course = new stdclass();\n $course->shortname = 'testcourse-one';\n $course1 = $this->getDataGenerator()->create_course($course);\n $service = new block_recommender_service_course($course1);\n\n $url = $service->get_course_url($course1);\n $checkagainst = new moodle_url('/course/view.php', array('id' => $course1->id));\n $this->assertSame($url->out(), $checkagainst->out());\n }", "title": "" }, { "docid": "0c6e7b7d1b278ff499fdd96e25988f91", "score": "0.49524698", "text": "public function testFindLocationByPermalink()\n {\n\n }", "title": "" }, { "docid": "7b4d1cf779ca21602a6af54bab423ca5", "score": "0.4951622", "text": "private function _getTestParams()\n {\n \t$baseurl = Mage::getUrl();\n \tforeach ($this->_requestTokenParams as $key => $value) {\n \t\t$params[$key] = str_replace(':baseurl/', $baseurl, $value);\n \t}\n \treturn $params;\n }", "title": "" }, { "docid": "ecc3df5340f4582b190815d840b7e70e", "score": "0.4942135", "text": "public function testItemListingSucess()\n {\n $params = [];\n $this->get('/checklists/1/items', [\n 'Authorization' => 'Bearer '. User::find(1)->auth_key,\n ]);\n $this->seeStatusCode(200);\n\n $this->seeJsonStructure([\n 'meta'=>['total','count'],\n 'links'=>['first', 'last', 'next', 'prev'],\n 'data'\n ] \n );\n }", "title": "" }, { "docid": "870f7110a65720575fd83f79b6702cf7", "score": "0.49412924", "text": "protected function _getListUrl()\n {\n return $this->view->url(\n array(\n 'action' => 'list',\n 'controller' => 'admin'\n ),\n null,\n true\n );\n }", "title": "" }, { "docid": "0e7616e20860dbc9edfe1dbc31e0db5a", "score": "0.4941032", "text": "public function getshowlisturl() {\n /**\n * Set listing url\n */\n return $this->_getUrl ( 'property/general/show' );\n }", "title": "" }, { "docid": "0edfb2a9d2e36e7f5e3dfd14f38ea0c2", "score": "0.4937354", "text": "public function test_postPrototypeLinkLikes() {\n\n }", "title": "" }, { "docid": "8b5ecc0fec1da100aa7f341beb910c59", "score": "0.49370453", "text": "public function testShouldListAllProducts()\n {\n \n }", "title": "" }, { "docid": "66284518a07b63d635c14dc0c171fc70", "score": "0.49363533", "text": "public function testClientUrl()\n {\n $this->testLogin();\n\n $this->get('api/client/clienturl')->seeJson([\n 'clienturl' => 'http://localhost/client/habbo-client',\n ]);\n }", "title": "" }, { "docid": "357cc0580a9248a4ce28d0e511d85f31", "score": "0.4935298", "text": "public function getRequestUrl () {}", "title": "" }, { "docid": "357cc0580a9248a4ce28d0e511d85f31", "score": "0.4935298", "text": "public function getRequestUrl () {}", "title": "" }, { "docid": "357cc0580a9248a4ce28d0e511d85f31", "score": "0.4935298", "text": "public function getRequestUrl () {}", "title": "" }, { "docid": "357cc0580a9248a4ce28d0e511d85f31", "score": "0.4935298", "text": "public function getRequestUrl () {}", "title": "" }, { "docid": "357cc0580a9248a4ce28d0e511d85f31", "score": "0.4935298", "text": "public function getRequestUrl () {}", "title": "" }, { "docid": "1d07f75b72db328ce6724d6828036951", "score": "0.49261057", "text": "public function should_show_retrieved_data()\n {\n $this->visit('/product')\n ->see('OveSeA');\n }", "title": "" }, { "docid": "c22d3a074bc75640e9f910bc7bfc8982", "score": "0.4920396", "text": "public function testGetAllList()\n {\n }", "title": "" }, { "docid": "390cb9f473bcc461bcb23c48f209fb6b", "score": "0.49071616", "text": "protected function _get_lists() {\n\n\t}", "title": "" }, { "docid": "addc2169f05c9e9e503f225be0f13b00", "score": "0.49045885", "text": "public function test_product_list_can_be_retrieved()\n {\n Sanctum::actingAs(\n User::factory()->create()\n );\n $response = $this->get('/api/products');\n\n $response->assertOk();\n }", "title": "" }, { "docid": "5f4e7d06477b6481079a7959ca8592ca", "score": "0.49022305", "text": "function recommend_shop(){\n if ($this->isAdmin() == TRUE) {\n $this->loadThis();\n } else {\n $this->global['pageTitle'] = '终端便利店推荐人列表';\n $this->global['pageName'] = 'recommend_shop';\n $data['searchName'] = '';\n\n $this->loadViews(\"statistics_manage/recommend_shop\", $this->global, $data, NULL);\n }\n }", "title": "" }, { "docid": "d8e313ea5347ffac9d1a51ece84e0e29", "score": "0.49015325", "text": "public function testCursosLista()\n {\n \t$response = $this->call('GET','cursos');\n \t$this->assertResponseOk();\n \n //\t$this->assertEquals('Esto es el listado de cursos :) ',$response->getContent());\n }", "title": "" }, { "docid": "7753908f2fcd8f29e57827419bea16c9", "score": "0.48996714", "text": "public function testAddToList()\n {\n }", "title": "" }, { "docid": "1f8ebf799a54a7b5c3173afc33322e92", "score": "0.48994938", "text": "public function testDocumentsGetForProfile()\n {\n }", "title": "" }, { "docid": "7fe7f8752c4fe71d641eacab86b89970", "score": "0.48992002", "text": "public function loadListUrl($value=''){\t\t\n\t\t$name='loadListUrl';\n\t\tif(!$value)\t$value = site_url($this->module.'/'.$this->controller.'/getList'); \n\t\t$html = '<input type=\"hidden\" name=\"'.$name.'\" value=\"'.$value.'\"/>';\n\t\treturn $html;\t\t\n\t}", "title": "" }, { "docid": "36b723246312d54e4a10619942bf1682", "score": "0.4890372", "text": "function recommend_provider(){\n\n if ($this->isAdmin() == TRUE) {\n $this->loadThis();\n } else {\n $this->global['pageTitle'] = '区域总代理推荐人列表';\n $this->global['pageName'] = 'recommend_provider';\n $data['searchName'] = '';\n\n $this->loadViews(\"statistics_manage/recommend_provider\", $this->global, $data, NULL);\n }\n }", "title": "" }, { "docid": "c4fa05c655c213dea7b2ecb3eae1fb3b", "score": "0.488954", "text": "function get_index($params) {\r\n\t\r\n // redirect to the sample controller get_list() function...\r\n get_list($params);\r\n}", "title": "" }, { "docid": "46c7211dae8ac049f4f7fdc86dd627a2", "score": "0.48890883", "text": "function test_list_fail_2()\n {\n $this->do_request('/elementos', garbage_data::$unidad_gestion_error,[], status::$NOT_FOUND,\"GET\");\n }", "title": "" }, { "docid": "c14b6f58999772122cfc928bbf1b3cfd", "score": "0.4888816", "text": "public function testListGuestLinks()\n {\n }", "title": "" }, { "docid": "9bf9a041bac3ffdbd272dd6234a199dc", "score": "0.48848307", "text": "function test_it_uses_custom_url(){\n $this->repo = new ElogRepository('https://logbooks.jlab.org/api/elog');\n $this->test_it_verifies_a_known_logentry_exists();\n }", "title": "" }, { "docid": "54ae4ec1078997a759219f5bf02443dd", "score": "0.48835853", "text": "public function getRealUrl();", "title": "" }, { "docid": "6e13e73b5f70b775daf1a2e7580bcaf8", "score": "0.48806188", "text": "function getLinkUrl($id=\"\",$excludeList=\"\",$orderBy=\"\",$productID=\"\",$accessorieID=\"\",$numCombination=\"\",$detail=false,$productPage=\"\",$pid_product=\"\")\t{\n\t\t$queryString=array();\n\t\t$queryString[\"id\"] = ($id ? $id : $GLOBALS[\"TSFE\"]->id);\n\t\t$queryString[\"type\"]= $GLOBALS[\"TSFE\"]->type ? 'type='.$GLOBALS[\"TSFE\"]->type : \"\";\n\t\t$queryString[\"backPID\"]= 'backPID='.$GLOBALS[\"TSFE\"]->id;\n\t\t$queryString[\"swords\"]= t3lib_div::_GP(\"swords\") ? \"swords=\".rawurlencode(t3lib_div::_GP(\"swords\")) : \"\";\n\t\t$queryString[\"L\"]= t3lib_div::_GP(\"L\") ? \"L=\".t3lib_div::_GP(\"L\") : \"\";\n\t\tif ($orderBy!=\"\")\n\t\t\t$queryString[\"orderBy\"]='orderBy='.$orderBy;\n\t\tif ($productID!=\"\")\n\t\t\t$queryString[\"productID\"]='productID='.$productID;\n\t\tif ($accessorieID!=\"\")\n\t\t\t$queryString[\"accessorieID\"]='accessorieID='.$accessorieID;\n\t\tif ($numCombination!=\"\")\n\t\t\t$queryString[\"numCombination\"]='numCombination='.$numCombination;\n\t\tif ($productPage!=\"\")\n\t\t\t$queryString[\"productPage\"]='productPage='.$productPage;\n\t\tif ($pid_product!=\"\")\n\t\t\t$queryString[\"pid_product\"]='pid_product='.$pid_product;\n\t\t$queryString[\"detail\"]='detail='.$detail;\n\t\t\n\t\treset($queryString);\n\t\twhile(list($key,$val)=each($queryString))\t{\n\t\t\tif (!$val || ($excludeList && t3lib_div::inList($excludeList,$key)))\t{\n\t\t\t\tunset($queryString[$key]);\n\t\t\t} \n\t\t}\n\t\tif ($GLOBALS['TSFE']->config['config']['simulateStaticDocuments']) {\n\t\t\t$pageId = $id ? $id : $GLOBALS[\"TSFE\"]->id ;\n\t\t\t$pageType = $GLOBALS[\"TSFE\"]->type ;\n\t\t\tunset($queryString['id']);\n\t\t\tunset($queryString['type']);\n\n\t\t\t$allQueryString = implode($queryString,\"&\");\n\t\t\tif( $addQueryString )\t{\n\t\t\t\t$allQueryString .= \"&\".implode($addQueryString,\"&\");\n\t\t\t}\t\n\t\t\t$URLtitle = \"\";\n\t\t\tif ($productID!=\"\")\t{\n\t\t\t\t$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'tx_extendedshop_products', 'deleted<>1 AND uid='.$productID,'','','');\n\t\t\t\t$row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);\n\t\t\t\t$URLtitle = $row[\"title\"];\n\t\t\t}\n//\t\t\tdebug($allQueryString);\n return $GLOBALS[\"TSFE\"]->makeSimulFileName($URLtitle, $pageId, $pageType, $allQueryString ).\".html\";\t\t\t\t\t\t\t\t\n\t\t\n\t\t}\telse\t{\n\t\t\treturn $GLOBALS[\"TSFE\"]->absRefPrefix.'index.php?'.implode($queryString,\"&\");\n\t\t}\n\t}", "title": "" }, { "docid": "456a13a9df982a4d52969d47a9eaf0aa", "score": "0.48753762", "text": "public function testGetBrokerageBankLinkUsingGet()\n {\n }", "title": "" }, { "docid": "b5e3528b5e2b5ce37283695f9c6b6d8f", "score": "0.48704386", "text": "public function testIndexListado()\n {\n $salon = factory(Salon::class)->create();\n\n $response = $this->get(\"/salones\");\n $response->assertStatus(200)\n ->assertSee($salon->seccion)\n ->assertSee($salon->grado->nombre);\n }", "title": "" }, { "docid": "c99615ef258169e34c0a2af9a9e5377c", "score": "0.48699093", "text": "public function getPracticeList();", "title": "" } ]
ad7bf84f04f127a0ed10b2b3b95e6472
POST /contacts Remove contact description
[ { "docid": "13008324303f4caf022d75036227d02e", "score": "0.7539989", "text": "public function actionRemoveDescription() {\r\n $id = \\Yii::$app->request->post('id');\r\n\r\n $contact = Contact::model()->find($id);\r\n $contact->description = '';\r\n $contact->save();\r\n\r\n return $this->response->data = [\r\n 'username' => $contact->username\r\n ];\r\n }", "title": "" } ]
[ { "docid": "db5b764cba88b188b70cc51748188757", "score": "0.69408256", "text": "public function removeContact(){\n\t\t$contact = PazientiContatti::find(Input::get('id_contact'));\n\t\t$contact->delete();\n\t\treturn Redirect::back()->with('contact_deleted');\n\t}", "title": "" }, { "docid": "e5079ad4d04106c59b07c607decac8b7", "score": "0.64892703", "text": "public function deleteContact(){\n\t\n\t\t$app \t= JFactory::getApplication();\n\t\t$id\t\t= JRequest::getInt('contactid');\t\t\n\t\t$model \t= $this->getModel('provider');\n\t\t$data \t= $model->deleteContact( $id );\n\t\t\n\t\techo json_encode($data);\n\t\t\n\t\t$app->close();\n\t\n\t}", "title": "" }, { "docid": "8db80ef53bacc0d78166c967e1413836", "score": "0.63698035", "text": "public static function delete_contact($params = array()) {\n $params['action'] = 'deletecontact';\n return self::send_request($params);\n }", "title": "" }, { "docid": "8aeba885094c8b2d291dc2843b0f6dd5", "score": "0.6273133", "text": "public function postDeleteContact(Request $request)\n {\n $this->validate($request, [\n 'id' => 'required|exists:contacts',\n 'consumer_id' => 'required|exists:consumers,id'\n ]);\n $contact = Contact::find($request->id);\n $consumer_id = $contact->consumer->id;\n if($consumer_id != $request->consumer_id) abort(403, 'illegal post data');\n\n $contact->delete();\n\n return Redirect::to('/consumer/view/'.$consumer_id);\n }", "title": "" }, { "docid": "0a308884388902bc32dea5d0bde0cf30", "score": "0.6206902", "text": "public function test_message_contact_removed() {\n global $USER;\n\n // Set this user as the admin.\n $this->setAdminUser();\n\n // Create a user to add to the admin's contact list.\n $user = $this->getDataGenerator()->create_user();\n\n // Add the user to the admin's contact list.\n \\core_message\\api::add_contact($USER->id, $user->id);\n\n // Trigger and capture the event when adding a contact.\n $sink = $this->redirectEvents();\n \\core_message\\api::remove_contact($USER->id, $user->id);\n $events = $sink->get_events();\n $event = reset($events);\n\n // Check that the event data is valid.\n $this->assertInstanceOf('\\core\\event\\message_contact_removed', $event);\n $this->assertEquals(context_user::instance(2), $event->get_context());\n $expected = array(SITEID, 'message', 'remove contact', 'index.php?user1=' . $user->id .\n '&amp;user2=2', $user->id);\n $this->assertEventLegacyLogData($expected, $event);\n $url = new moodle_url('/message/index.php', array('user1' => $event->userid, 'user2' => $event->relateduserid));\n $this->assertEquals($url, $event->get_url());\n }", "title": "" }, { "docid": "c6270dd6d309c52c6a5ca7c3c505c436", "score": "0.61775345", "text": "public function destroy(contact $contact)\n {\n //\n }", "title": "" }, { "docid": "c6270dd6d309c52c6a5ca7c3c505c436", "score": "0.61775345", "text": "public function destroy(contact $contact)\n {\n //\n }", "title": "" }, { "docid": "c6270dd6d309c52c6a5ca7c3c505c436", "score": "0.61775345", "text": "public function destroy(contact $contact)\n {\n //\n }", "title": "" }, { "docid": "c6270dd6d309c52c6a5ca7c3c505c436", "score": "0.61775345", "text": "public function destroy(contact $contact)\n {\n //\n }", "title": "" }, { "docid": "c6270dd6d309c52c6a5ca7c3c505c436", "score": "0.61775345", "text": "public function destroy(contact $contact)\n {\n //\n }", "title": "" }, { "docid": "8159e40791dcbaecab178b1b17edd87e", "score": "0.6170874", "text": "function delete_contact() {\n if (!$this->can_edit_bu()) {\n app_redirect(\"forbidden\");\n }\n\n $this->validate_submitted_data(array(\n \"id\" => \"required|numeric\"\n ));\n\n $this->access_only_allowed_members();\n\n $id = $this->request->getPost('id');\n\n $contact_info = $this->Users_model->get_one($id);\n $this->can_access_this_bu($contact_info->bu_id);\n\n if ($this->request->getPost('undo')) {\n if ($this->Users_model->delete($id, true)) {\n echo json_encode(array(\"success\" => true, \"data\" => $this->_contact_row_data($id), \"message\" => app_lang('record_undone')));\n } else {\n echo json_encode(array(\"success\" => false, app_lang('error_occurred')));\n }\n } else {\n if ($this->Users_model->delete($id)) {\n echo json_encode(array(\"success\" => true, 'message' => app_lang('record_deleted')));\n } else {\n echo json_encode(array(\"success\" => false, 'message' => app_lang('record_cannot_be_deleted')));\n }\n }\n }", "title": "" }, { "docid": "a0aa71fefa1bb69c94f878052752c9d6", "score": "0.6163328", "text": "function delete_contact() {\n if (!$this->can_edit_clients()) {\n app_redirect(\"forbidden\");\n }\n\n $this->validate_submitted_data(array(\n \"id\" => \"required|numeric\"\n ));\n\n $this->access_only_allowed_members();\n\n $id = $this->request->getPost('id');\n\n $contact_info = $this->Users_model->get_one($id);\n $this->can_access_this_client($contact_info->client_id);\n\n if ($this->request->getPost('undo')) {\n if ($this->Users_model->delete($id, true)) {\n echo json_encode(array(\"success\" => true, \"data\" => $this->_contact_row_data($id), \"message\" => app_lang('record_undone')));\n } else {\n echo json_encode(array(\"success\" => false, app_lang('error_occurred')));\n }\n } else {\n if ($this->Users_model->delete($id)) {\n echo json_encode(array(\"success\" => true, 'message' => app_lang('record_deleted')));\n } else {\n echo json_encode(array(\"success\" => false, 'message' => app_lang('record_cannot_be_deleted')));\n }\n }\n }", "title": "" }, { "docid": "0a7195bb1838e8c126687cf3996bb4fd", "score": "0.60913086", "text": "public function delete_contact(){\n\t\tif ($this->checkLogin('A') == ''){\n\t\t\tredirect('admin_ror');\n\t\t}else {\n\t\t\t$contact_id = $this->uri->segment(4,0);\n\t\t\t$condition = array('id' => $contact_id);\n\t\t\t$this->contact_model->commonDelete(CONTACT,$condition);\n\t\t\t$this->setErrorMessage('success','Contact deleted successfully');\n\t\t\tredirect('admin/contact/display_contact_list');\n\t\t}\n\t}", "title": "" }, { "docid": "022f3e58cdaa258dae0005a0d9a0ea70", "score": "0.6053915", "text": "static public function ctrEliminarContacto(){\n\t\tif(isset($_POST[\"accionContacto\"]) && ($_POST[\"accionContacto\"] == \"eliminar\")){\n\t\t\t$tabla1 = 'vtaca_contacto';\n\t\t\t$tabla2 = 'vtade_contacto_informe';\n\t\t\t$rutaGlobal = realpath(dirname(__FILE__));\n\t\t\t$rutaGlobal = rutaGlobal($rutaGlobal);\n\t\t\t$codContacto = $_POST[\"codigoContacto\"];\n\t\t\t$respuesta = ModeloContacto::mdlEliminarContacto($tabla1,$tabla2,$codContacto,$rutaGlobal);\n\t\t\treturn $respuesta;\n\t\t}//if\n\t}", "title": "" }, { "docid": "de6a5d8a2c8e0a221ca36317c4cdf714", "score": "0.60485065", "text": "public function destroy(Request $request, Contact $contact)\n {\n if($request->user()->role == 'admin' || $request->user()->id == $contact->user_id ){\n $contact->delete();\n return response()->json(null, 204);\n }\n else{\n return response()->json(['error' => 'You can only delete messages you created.'], 403);\n }\n }", "title": "" }, { "docid": "9cf870d99e03e1b359e991d45bad5bef", "score": "0.60449106", "text": "public function deleteAction(Request $request, Contact $contact)\n {\n $form = $this->createDeleteForm($contact);\n $form->handleRequest($request);\n\n if ($form->isSubmitted() && $form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n\n $em->remove($contact);\n $em->flush();\n }\n $request->getSession()->getFlashBag()->add('success', 'Suppression effectuée du message');\n return $this->redirectToRoute('admin_contact_index');\n }", "title": "" }, { "docid": "ca478c515d2d9961e7931e3413aaca85", "score": "0.6018455", "text": "function supprimerContact() {\r\n\t mysql_query(\"DELETE FROM if_contacts WHERE numcontact='$this->numcontact'\");\r\n\t mysql_query(\"DELETE FROM if_cont_categ WHERE numcontact='$this->numcontact'\"); \r\n\t mysql_query(\"DELETE FROM if_cont_sscateg WHERE numcontact='$this->numcontact'\");\r\n\t}", "title": "" }, { "docid": "3f5a64aa96db3b67ac58a76a6456cd08", "score": "0.5985382", "text": "public function destroy(Contact $contact)\n {\n //\n }", "title": "" }, { "docid": "3f5a64aa96db3b67ac58a76a6456cd08", "score": "0.5985382", "text": "public function destroy(Contact $contact)\n {\n //\n }", "title": "" }, { "docid": "3f5a64aa96db3b67ac58a76a6456cd08", "score": "0.5985382", "text": "public function destroy(Contact $contact)\n {\n //\n }", "title": "" }, { "docid": "3f5a64aa96db3b67ac58a76a6456cd08", "score": "0.5985382", "text": "public function destroy(Contact $contact)\n {\n //\n }", "title": "" }, { "docid": "3f5a64aa96db3b67ac58a76a6456cd08", "score": "0.5985382", "text": "public function destroy(Contact $contact)\n {\n //\n }", "title": "" }, { "docid": "3f5a64aa96db3b67ac58a76a6456cd08", "score": "0.5985382", "text": "public function destroy(Contact $contact)\n {\n //\n }", "title": "" }, { "docid": "3f5a64aa96db3b67ac58a76a6456cd08", "score": "0.5985382", "text": "public function destroy(Contact $contact)\n {\n //\n }", "title": "" }, { "docid": "3f5a64aa96db3b67ac58a76a6456cd08", "score": "0.5985382", "text": "public function destroy(Contact $contact)\n {\n //\n }", "title": "" }, { "docid": "3f5a64aa96db3b67ac58a76a6456cd08", "score": "0.5985382", "text": "public function destroy(Contact $contact)\n {\n //\n }", "title": "" }, { "docid": "3f5a64aa96db3b67ac58a76a6456cd08", "score": "0.5985382", "text": "public function destroy(Contact $contact)\n {\n //\n }", "title": "" }, { "docid": "3f5a64aa96db3b67ac58a76a6456cd08", "score": "0.5985382", "text": "public function destroy(Contact $contact)\n {\n //\n }", "title": "" }, { "docid": "3f5a64aa96db3b67ac58a76a6456cd08", "score": "0.5985382", "text": "public function destroy(Contact $contact)\n {\n //\n }", "title": "" }, { "docid": "3f5a64aa96db3b67ac58a76a6456cd08", "score": "0.5985382", "text": "public function destroy(Contact $contact)\n {\n //\n }", "title": "" }, { "docid": "3f5a64aa96db3b67ac58a76a6456cd08", "score": "0.5985382", "text": "public function destroy(Contact $contact)\n {\n //\n }", "title": "" }, { "docid": "d4a71b9a618599341393376cd25828fe", "score": "0.5973599", "text": "public function destroy($contact)\n {\n Contact::find($contact)->delete();\n return response()->json(['message'=>\"Deleted!\"], 200); \n }", "title": "" }, { "docid": "176659e02ed3175c0f4367b4dbe17187", "score": "0.5947805", "text": "public function destroy(Contacts $contact)\n {\n $contact->delete();\n \n return $this->sendResponse([], 'Contact deleted successfully.');\n }", "title": "" }, { "docid": "2c7b2410381982da60ef76e68874da85", "score": "0.59187436", "text": "public function deletecontactmessage($input){\n\t\t$objInstance = new CONTACT_US();\n\t\t$mainObj = Array(\n\t\t\t\t\t\t\"status\"=>false, \n\t\t\t\t\t\t\"msg\"=>\"Invalid data, Please send all required data.\",\n\t\t\t\t\t\t\"next_url\"=>'manage_blog.php'\n\t\t\t\t\t);\n\n\t\t$id = isset($input[\"id\"]) ? $input[\"id\"] : 0;\n\t\tif (!$id) {\n\t\t\treturn json_encode($mainObj);\n\t\t} \n\n\t\t$mainObj = $objInstance->delete($id);\n\t\t$mainObj[\"next_url\"] = \"manage_contactus.php\";\n\t\treturn json_encode($mainObj);\n\t}", "title": "" }, { "docid": "eb513753fcc15b45dd724abdc03996e3", "score": "0.5912796", "text": "function delete_contact($service, $contact_id) {\n try {\n $service->contacts->delete($contact_id);\n } catch (Exception $e) {\n print 'An error occurred: ' . $e->getMessage();\n }\n}", "title": "" }, { "docid": "3e32e989b0c432011cc04d7c61039484", "score": "0.590199", "text": "public function destroy(Contact $contact)\n {\n //todo: validation, auth and input sanitize\n $type=$contact->type->rawname;\n switch($type){\n case 'agent':\n $msg = trans('contact.agent_deleted_msg');\n break;\n default:\n $msg = trans('contact.client_deleted_msg');\n break;\n }\n $contact->delete();\n return redirect()->route('contact.index.filter',['type'=>$type])->with('message',$msg);\n }", "title": "" }, { "docid": "a0ec613a5bf151eb98ddb3f7772f3014", "score": "0.58454883", "text": "function deleteContact()\n {\n // Parse query string\n $query_array = parse_query_string($_SERVER['QUERY_STRING']);\n\n // Delete contact\n try {\n DB::delete('contacts', \"id=%d\", $query_array['id']);\n return 1;\n } catch (MeekroDBException $e) {\n return 0;\n }\n }", "title": "" }, { "docid": "bfb7c3bc2d8a7d95d5c4bb1ebe37efd8", "score": "0.58331406", "text": "public function deleted(ContactUs $contactUs)\n {\n //\n }", "title": "" }, { "docid": "16a4ac8bbcf6ac273e2e6fea66d51e15", "score": "0.5831629", "text": "public function removeContact($contact)\n\t\t{\n\t\t\t$utility = new Utility();\n\t\t\t$existingContact = $this->getContactDetails($contact);\n\t\t\t$existingContact->removeLists();\n\t\t\t\n\t\t\t$contactXml = $this->createContactXml($existingContact->getId(), $existingContact);\n\t\t\t$return = $utility->httpPut($utility->getApiPath() . $existingContact->getLink(), $contactXml);\n\t\t\t$code = $return['info']['http_code'];\n\t\t\treturn $code;\n\t\t}", "title": "" }, { "docid": "6f03c64e835b417ae3f694c9050a08d4", "score": "0.57987404", "text": "public function destroy($contact_id)\n {\n // Find the resource by id.\n $contact = Contact::where('id', $contact_id)->first();\n\n // Check if exist.\n if(is_null($contact)) {\n return response()->json([\"message\"=>\"Contact not found.\", \"data\"=>[], \"errors\"=>[\"Contact not found.\"], \"success\"=>false], 204);\n }\n \n $contact->save();\n $contact->delete();\n \n // Return results.\n return response()->json([\"message\"=>\"Contact deleted successfully.\", \"data\"=>[], \"errors\"=>[], \"success\"=>true], 204);\n }", "title": "" }, { "docid": "5b06d43894fc3800fb4f6c74cd9cbc43", "score": "0.5797576", "text": "function deleteContact() {\n $filename = \"contacts.txt\";\n $handle = fopen($filename, \"r\");\n $contents = fread($handle, filesize($filename));\n $contents = trim($contents); \n // Turns txt file into array\n $contactsArray = explode(\"\\n\", $contents);\n \n fwrite(STDOUT, \"Input full name or number of contact to delete (needs to be exact)\" . PHP_EOL);\n $delVal = trim(fgets(STDIN));\n\n foreach($contactsArray as $key => $contact) {\n $tempArray = explode(\"|\", $contact);\n $result = array(\"name\" => $tempArray[0],\n \"number\" => $tempArray[1]);\n\n if($delVal === $tempArray[0] || $delVal === $tempArray[1]){\n echo \"=====DELETE=====\" . PHP_EOL;\n unset($contactsArray[$key]);\n fclose($handle);\n $writeHandle = fopen($filename, \"w\");\n $rewrite = implode(\"\\n\", $contactsArray) . PHP_EOL;\n fwrite($writeHandle, $rewrite);\n fclose($writeHandle);\n }\n \n }\n prompt();\n}", "title": "" }, { "docid": "3a7ea0d0fef3b5d84ecc464d26e90c2c", "score": "0.57794607", "text": "function delete_contact() {\n\n validate_submitted_data(array(\n \"id\" => \"required|numeric\"\n ));\n\n $this->access_only_allowed_members();\n\n $id = $this->input->post('id');\n\n if ($this->input->post('undo')) {\n if ($this->Users_model->delete($id, true)) {\n echo json_encode(array(\"success\" => true, \"data\" => $this->_contact_row_data($id), \"message\" => lang('record_undone')));\n } else {\n echo json_encode(array(\"success\" => false, lang('error_occurred')));\n }\n } else {\n if ($this->Users_model->delete($id)) {\n echo json_encode(array(\"success\" => true, 'message' => lang('record_deleted')));\n } else {\n echo json_encode(array(\"success\" => false, 'message' => lang('record_cannot_be_deleted')));\n }\n }\n }", "title": "" }, { "docid": "d87d7724f6cff074ff88b2edf608dd85", "score": "0.5753621", "text": "public function removeContacts($contacts)\n\t{\n\t\treturn $this->contactable()->detach($contacts);\n\t}", "title": "" }, { "docid": "fe379957e877818bad56efb0070705fc", "score": "0.57437354", "text": "public function deleteAction(Request $request, Contact $contact)\n {\n $form = $this->createDeleteForm($contact);\n $form->handleRequest($request);\n\n if ($form->isSubmitted() && $form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n $em->remove($contact);\n $em->flush();\n $this->get('session')->getFlashBag()->add(\n 'alert', 'Le contact a été supprimé!');\n }\n\n return $this->redirectToRoute('contact_index');\n }", "title": "" }, { "docid": "9335bf6f6bfa7a7156ab8b7947612b98", "score": "0.5702347", "text": "public function ajaxEliminarPersonaContacto()\t{\n\n\t\t$tabla = \"personas_contactos\";\n\t\t$datos = $this->id;\n\n\t\t$respuesta = ModeloPersonasContactos::mdlEliminarPersonaContacto($tabla, $datos);\n\n\t\t// var_dump($datos);\n\n\t\techo $respuesta;\n\n\t}", "title": "" }, { "docid": "4e0a862fd5bb1f0e3cae9998f2464e98", "score": "0.56859374", "text": "public function destroy(ContactEmail $contactEmail)\n {\n //\n }", "title": "" }, { "docid": "d61840ccf832907d1573200bf23ce119", "score": "0.56698", "text": "public function destroy(AdminContact $contact)\n {\n //\n $contact->delete();\n return response(\"success\");\n }", "title": "" }, { "docid": "c0cadb84ffde34aea10e28db3c75a953", "score": "0.56583583", "text": "public function delete_contact() {\n\n\t\tif($this->input->post('data')=='delete_record') {\n\t\t\t$Return = array('result'=>'', 'error'=>'');\n\t\t\t$id = $this->uri->segment(3);\n\t\t\t/*User Logs*/\n\t\t\t$affected_row= table_deleted_row('xin_employee_contacts','contact_id',$id);\n\t\t\tuserlogs('Employees-Emergency Contact-Delete','Employee Contact Deleted',$id,$affected_row);\n\t\t\t/*User Logs*/\n\n\t\t\t$this->Employees_model->delete_contact_record($id);\n\t\t\tif(isset($id)) {\n\t\t\t\t$Return['result'] = $this->lang->line('xin_employee_contact_deleted');\n\t\t\t} else {\n\t\t\t\t$Return['error'] = $this->lang->line('xin_error_msg');\n\t\t\t}\n\t\t\t$this->output($Return);\n\t\t}\n\t}", "title": "" }, { "docid": "6054143ba41af07cf1a16395a5869039", "score": "0.56307876", "text": "public function delete_contact($contact_id)\n {\n DB::table('tbl_contact')\n ->where('contact_id',$contact_id)\n ->delete();\n Session::put('message','Delete contact Successfully!!' );\n return Redirect::to('/allcontact'); \n }", "title": "" }, { "docid": "43eb3beb70014f476f0c895e644b6bbd", "score": "0.56242955", "text": "function remove_content_from_survey(Request $req){\n $success = DB::table('components')\n ->where('component_id', $req->get('id'))\n ->delete();\n echo $success;\n }", "title": "" }, { "docid": "ac9992fa33bb5e38ea07c3619ff0810b", "score": "0.56221277", "text": "public function deleteContact($contact)\n\t\t{\n\t\t\t$utility = new Utility();\n\t\t\t$call = $utility->getApiPath() . $contact->getLink();\n\t\t\t$return = $utility->httpDelete($call);\n\t\t\t$code = $return['info']['http_code'];\n\t\t\treturn $code;\n\t\t}", "title": "" }, { "docid": "2df0f08314a6e829e8bd08459699b0e1", "score": "0.5611928", "text": "public function destroy(Request $request, $id)\n {\n $contact = Contact::where('id',$id)->delete();\n return redirect(route('list.contact'))->with('success','Thông tin đã được xóa');\n \n }", "title": "" }, { "docid": "fcf62a4217bc29047ae53d22166da563", "score": "0.5602206", "text": "static public function ctrEliminarInformeContacto(){\n\t\tif(isset($_POST[\"accionInformeContacto\"]) && ($_POST[\"accionInformeContacto\"] == \"eliminar\")){\n\t\t\t$tabla = 'vtade_contacto_informe';\n\t\t\t$codContacto = $_POST[\"codigoContacto\"];\n\t\t\t$numLinea = $_POST[\"numLinea\"];\n\t\t\t$respuesta = ModeloContacto::mdlEliminarInformeContacto($tabla,$codContacto,$numLinea);\n\t\t\treturn $respuesta;\n\t\t}//if\n\t}", "title": "" }, { "docid": "bb610b7eb84fc970748f8bf2497a8275", "score": "0.559892", "text": "public function destroy(Contact $contact): \\Illuminate\\Http\\Resources\\Json\\AnonymousResourceCollection\n {\n $this->service->delete($contact);\n\n return ContactResource::collection($this->service->all())\n ->additional(['message' => 'Contact successfully deleted']);\n }", "title": "" }, { "docid": "5a37e06f6c8330388862c79313a51a4a", "score": "0.5587971", "text": "public function destroy(Contacto $contacto)\n {\n //\n }", "title": "" }, { "docid": "5ffcf89a1682ed66bb48122b46633818", "score": "0.5587614", "text": "public function destroy($contact_id,$id)\n {\n $input = (object)Request::all();\n $address = Address::findOrFail($input->id);\n $name = $address->straat;\n\n if(count($address->contact) > 1):\n $address->delete();\n endif;\n\n\n return redirect('contact/'.$contact_id.\"/address\")->with('info_message', \"Address $name is verwijderd\");\n }", "title": "" }, { "docid": "fe1bab8b2b7c17f1fe98fb962a6fceaf", "score": "0.5573639", "text": "public function actionRemoveFavorites() {\r\n $id = \\Yii::$app->request->post('id');\r\n\r\n $contact = Contact::model()->find($id);\r\n $contact->status = 9;\r\n $contact->save();\r\n\r\n return $this->response->data = [\r\n 'username' => $contact->username\r\n ];\r\n }", "title": "" }, { "docid": "86f9b9fc1ae63253701843856faa40a6", "score": "0.5567258", "text": "public function destroy($contacto_id)\n {\n $contacto = Contacto::find($contacto_id);\n $contacto->delete();\n }", "title": "" }, { "docid": "21c6d76f69f324519c4d39255f714268", "score": "0.5550966", "text": "public function destroy(ContactUs $contactUs)\n {\n //\n }", "title": "" }, { "docid": "cb815da13b15c45fc357db98b04751e0", "score": "0.554531", "text": "public function destroy(Contact $contact)\n {\n $contact->delete();\n return view('delete');\n }", "title": "" }, { "docid": "fd10da0833ae5aa6a7ac3b01bb6b75d5", "score": "0.5534164", "text": "public function destroy(contact $contact)\n {\n $contact->delete();\n return response(null,Response::HTTP_NO_CONTENT);\n }", "title": "" }, { "docid": "37b9e96c3e9e9a1f9208ed113db4ae37", "score": "0.5531982", "text": "public function destroy(contacto $contacto)\n {\n $contacto->delete();\n return redirect()->route('contacto.index')->with('message','SE ELIMINO CORRECTAMENTE');\n }", "title": "" }, { "docid": "98821e7fe19bd824c874010b214c5cfe", "score": "0.55313635", "text": "public function destroy(Contact $contact)\n {\n $a = Contact::findOrFail($id); \n $a->delete(); \n return redirect()->route('contact.index');\n\n }", "title": "" }, { "docid": "eabe1f64d8309722cd4be40e926622aa", "score": "0.5526998", "text": "public function actionAddDescription() {\r\n $id = \\Yii::$app->request->post('id');\r\n $description = \\Yii::$app->request->post('description');\r\n\r\n $contact = Contact::model()->find($id);\r\n $contact->description = $description;\r\n $contact->save();\r\n\r\n return $this->response->data = [\r\n 'username' => $contact->username\r\n ];\r\n }", "title": "" }, { "docid": "d684542c7db2184dae3e92bb5c3e10d8", "score": "0.55132335", "text": "protected function createComponentDeleteContact()\r\n\t{\r\n\t\t$form = new Form;\r\n\t\t$form->addSubmit('delete', 'Smazat')->setAttribute('class', 'default');\r\n\t\t$form->addSubmit('cancel', 'Storno');\r\n\t\t$form->onSuccess[] = callback($this, 'deleteContactSubmitted');\r\n\t\t$form->addProtection(self::MESS_PROTECT);\r\n\t\treturn $form;\r\n\t}", "title": "" }, { "docid": "925937f320d6d3655a406bd27dcd0476", "score": "0.5509852", "text": "public function deleteContact($contactDTO){\n $id = $contactDTO->getIdContact();\n return $this->db->where('idContact', $id)->delete($this->table);\n }", "title": "" }, { "docid": "0b9fafbb92a9309d358edd1a3c81ebaf", "score": "0.55025274", "text": "public function destroy(contact $contact)\n {\n //\n $contact = Contact::findOrFail($id);\n $contact->delete();\n return redirect()->route('con$contact.index');\n }", "title": "" }, { "docid": "1970dd856cb4f6d113f1fdb56714fa60", "score": "0.5489516", "text": "function delete_linked_contact() {\n global $conf;\n $temp = array();\n $typeContact = $this->liste_type_contact('');\n\n foreach ($typeContact as $key => $value) {\n array_push($temp, $key);\n }\n $listId = implode(\",\", $temp);\n\n $sql = \"DELETE FROM \" . MAIN_DB_PREFIX . \"element_contact\";\n $sql.= \" WHERE element_id =\" . $this->rowid;\n $sql.= \" AND fk_c_type_contact IN (\" . $listId . \")\";\n $sql.= \" AND entity = \".$conf->entity;\n $this->db->begin();\n Syslog::log(\"CommonObject::delete_linked_contact sql=\" . $sql);\n if ($this->db->query($sql)) {\n $this->db->commit();\n return 1;\n } else {\n $this->error = $this->db->lasterror();\n Syslog::log(\"CommonObject::delete_linked_contact error=\" . $this->error, LOG_ERR);\n $this->db->rollback();\n return -1;\n }\n }", "title": "" }, { "docid": "96c6a877fa9d0dc531561780d8739eb0", "score": "0.5482833", "text": "public function destroy(Contactus $contactus)\n {\n //\n }", "title": "" }, { "docid": "da5cd5e83ba81a78e063860fc04cbcc7", "score": "0.5482724", "text": "public function destroy(Contact $contact)\n {\n $contact->delete();\n return back()->with('info', 'Le contacts a bien été mis dans la corbeille.');\n }", "title": "" }, { "docid": "86c536aacb32d0f257db6e9f87d7c267", "score": "0.54826075", "text": "function contactDeleted(Res\\Deleted $cobj);", "title": "" }, { "docid": "90afc86c4eb43ca64fa236549b37777d", "score": "0.5480979", "text": "public function actionEditDescription() {\r\n $id = \\Yii::$app->request->post('id');\r\n $description = \\Yii::$app->request->post('description');\r\n\r\n $contact = Contact::model()->find($id);\r\n $contact->description = $description;\r\n $contact->save();\r\n\r\n return $this->response->data = [\r\n 'username' => $contact->username\r\n ];\r\n }", "title": "" }, { "docid": "0bf2b2edbd5454c935480d4344cba7bb", "score": "0.54614305", "text": "public function deleteAction(Contact $id)\n {\n $search = $this->createForm(new SearchContactType());\n $form = $this->createFormBuilder()->getForm();\n\n $request = $this->getRequest();\n if ($request->getMethod() == 'POST') {\n $form->bind($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n $user = $this->container->get('security.context')->getToken()->getUser();\n $foyers = $user->getFoyers();\n\n $entity = $em->getRepository('SfContactBundle:Contact')->findOneBy(array('id' => $id, 'foyer' => $foyers[$user->getCurrentFoyer()]));\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Contact entity.');\n }\n\n $em->remove($entity);\n $em->flush();\n return $this->redirect($this->generateUrl('contact', array('search' => $search->createView())));\n }\n }\n \n return $this->render('SfContactBundle:Contact:supprimer.html.twig', array(\n 'entity' => $id,\n 'form' => $form->createView(),\n 'search' => $search->createView(),\n ));\n\n }", "title": "" }, { "docid": "e8678380e8dfa509e1cbe36ce9c77932", "score": "0.5459064", "text": "function jwp_cl_delete_contact( $id ) {\n global $wpdb;\n\n $deleted = $wpdb->delete(\n $wpdb->prefix . 'jcl_contacts',\n [ 'id' => $id ],\n [ '%d' ]\n );\n\n jwp_cl_contact_purge_cache( $id );\n\n return $deleted;\n}", "title": "" }, { "docid": "29e63b6bdfcbf5e7aa0d3e8deeee9c54", "score": "0.5456529", "text": "public function destroy(Contact $contact)\n {\n $contact->delete();\n return redirect()->route('contact.index')->with('message','The contact has been deleted successfully!');\n }", "title": "" }, { "docid": "875c040f0021cd5b0f685ef5a50eb1f3", "score": "0.5449309", "text": "public function deleteContactGroup($groupName){\n $params = array();\n $params['groupName'] = $groupName;\n return $this->makePostRequest('deleteContactGroup', $params);\n }", "title": "" }, { "docid": "d89c6bcb2baa26597fdb399f96946cbd", "score": "0.5443183", "text": "public function delete($id)\n {\n // Load contacts who use this contact reason\n $contacts = ContactModel::where('contact_reason_id', $id)->first();\n \n // Remove if not empty\n if($contacts != null){\n // Redirect with errors\n $errors = array('message' => 'No se pudo eliminar la entrada #' .$id. ' porque ya está siendo usada en un contacto');\n return redirect()->route('management/contact-reasons')->withErrors($errors);\n } else {\n try {\n // Try to delete contact reason\n ContactReasonModel::destroy($id);\n \n // Return to index page\n return redirect()->route('management/contact-reasons');\n \n } catch(\\Exception $e){\n // Catch exception and return error\n $errors = array('message' => 'Ha ocurrido un error. Por favor, inténtelo de nuevo más tarde');\n return redirect()->route('management/contact-reasons')->withErrors($errors);\n }\n }\n }", "title": "" }, { "docid": "9527806112944d0a50c3fbff70fedfc9", "score": "0.5442062", "text": "public function destroy(Request $request, Contact $contact): RedirectResponse\n {\n $this->actions->delete($contact);\n\n $route = redirect()->back();\n if ($request->redirectIndex) {\n $route = redirect()->route('contacts.index');\n }\n\n return $route->withFlash('Deleted', 'Contact '.$contact->first_name.' has been deleted');\n }", "title": "" }, { "docid": "c78d2c69de124230a9c941bb107e29b3", "score": "0.543509", "text": "public function ajaxEliminarCanalContacto(){\n\t\t$respuesta = ControladorCanalContacto::ctrEliminarCanalContacto();\n\t\techo $respuesta;\n\t}", "title": "" }, { "docid": "80d1798824f0688b3cfbe4f626cc27dd", "score": "0.54329395", "text": "public function postDelete(Request $request)\n {\n $this->validate($request, ['id' => 'required|exists:consumers']);\n $consumer = Consumer::find($request->id);\n foreach($consumer->contacts as $contact)\n $contact->delete();\n $consumer->delete();\n\n return Redirect::to('/consumer/dashboard');\n }", "title": "" }, { "docid": "72e4c5447d33c508a417ac652072f14b", "score": "0.5431914", "text": "function deleteContacts( $contact_id ) \n{\n global $bdd;\n\n if ( checkId( $contact_id ) ) {\n $sRequete = \"DELETE FROM contacts WHERE contact_id = $contact_id\";\n $bdd->query( $sRequete );\n }\n}", "title": "" }, { "docid": "0dffb9bcbdb421c45a2c22fcee04ca23", "score": "0.54229003", "text": "public function supprimer_message($id_contact)\n\t{\n try\n {\n $stmt = $this->conn->prepare(\"DELETE FROM contact WHERE IDContact = :idcontact\");\n $stmt->bindparam(\":idcontact\", $id_contact);\n $stmt->execute();\n return $stmt;\n }\n catch(PDOException $e)\n {\n echo $e->getMessage();\n }\n\t}", "title": "" }, { "docid": "0df9c931273b45cefef71fe1c9dd40ee", "score": "0.54171157", "text": "public function destroy(Contact $contact)\n {\n $mail = Contact::find($contact->id);\n $mail->delete();\n return redirect('admin/contact');\n }", "title": "" }, { "docid": "3281045fb9891a067a10bdbdbb62054b", "score": "0.5415122", "text": "public function destroy($id,Request $request)\n {\n $contact = Contact::findOrFail($id);\n $contact->delete();\n\n return redirect()->route('admin.categories.index');\n }", "title": "" }, { "docid": "12a9c377263a722db8064143ab62200c", "score": "0.5412851", "text": "public function destroy($id)\n\t{\n\t\t$contact = Contact::findOrFail($id);\n $pseudo = User::find($contact->contact_ID)->pseudo;\n $contact->delete();\n Session::flash('success_message', 'You have removed '.$pseudo.' from your contacts');\n return Redirect::back();\n\t}", "title": "" }, { "docid": "082c4593579dcabc8b5df6e3d4ed0ead", "score": "0.54078007", "text": "public function destroy(Contact $contact)\n\t{\n\t\t$contact->delete();\n\n\t\treturn redirect()->action('ContactController@index', $contact)->with('status', 'Contact Deleted Successfully');\n\t}", "title": "" }, { "docid": "230e0979e0a0044fbc584b9ac2175a73", "score": "0.53963786", "text": "public function destroy(Contact $contact)\n {\n $this->authorize(\"delete\", $contact);\n $contact->delete();\n return redirect()->route('contact.index')->with('message', 'supprimé avec succès');\n }", "title": "" }, { "docid": "5ff6a9b1a55a219482d8b1ebbd6226e7", "score": "0.5382763", "text": "public function destroy(contactModel $contactModel)\n {\n //\n }", "title": "" }, { "docid": "70415e5cfd5484aaa345772d219f993a", "score": "0.53804046", "text": "public function destroy(MessageContact $messageContact)\n {\n //\n }", "title": "" }, { "docid": "9c790be4bf1e391bd4d22db272135a63", "score": "0.53783244", "text": "public function deleteAction($id)\n\t{\n\t\t$contact = Contacts::findFirst($id);\n\n\t\tif(!$contact){\n\t\t\t$this->flash->error(\"Don’t try to remove a contact that doesn’t even exist in the first please.\");\n\t\t}\n\t\telse {\n\t\t\tif(!$contact->delete()){\n\t\t\t\t\n\t\t\t\tforeach ($contact->getMessages() as $message) {\n\t\t\t\t\t$this->flash->error($message);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$this->flash->success(\"The Contact R.I.P successful!!!\");\n\t\t\t}\n\n\t\t}\n\n\t\t$this->dispatcher->forward(['action' => 'index']);\n\t}", "title": "" }, { "docid": "a38f683e8e270c08b860ba76006e6d34", "score": "0.5373017", "text": "public function massDestroy(Request $request)\n {\n if (! Gate::allows('contact_company_delete')) {\n return prepareBlockUserMessage();\n }\n if ( isDemo() ) {\n return prepareBlockUserMessage( 'info', 'crud_disabled' );\n }\n if ($request->input('ids')) {\n $entries = ContactCompany::whereIn('id', $request->input('ids'))->get();\n\n foreach ($entries as $entry) {\n $entry->delete();\n }\n\n flashMessage( 'success', 'deletes' );\n }\n }", "title": "" }, { "docid": "52d48867667dce1ffdcd84a1d76e95a9", "score": "0.53726566", "text": "public function destroy($id)\n {\n\n $contact = Contactpersonne::findOrFail($id);\n $contact->delete();\n return response()->json($contact,200);\n }", "title": "" }, { "docid": "52cb42272eb7cdc4e131cf8ca6b73e51", "score": "0.53710294", "text": "function deleteContacts($module, $id) {\n $params = array(\n 'Verb' => 'DELETE',\n 'Model' => $module,\n 'Version' => Yii::app()->params->API_VERSION,\n 'Timestamp' => date(\"c\"),\n 'KeyID' => Yii::app()->params->GIZURCLOUD_API_KEY,\n 'UniqueSalt' => uniqid()\n );\n // Sorg arguments\n ksort($params);\n // Generate string for sign\n $string_to_sign = \"\";\n foreach ($params as $k => $v)\n $string_to_sign .= \"{$k}{$v}\";\n\n // Generate signature\n $signature = base64_encode(hash_hmac('SHA256', $string_to_sign, Yii::app()->params->GIZURCLOUD_SECRET_KEY, 1));\n //login using each credentials\n $rest = new RESTClient();\n $rest->format('json');\n $rest->set_header('X_USERNAME', Yii::app()->session['username']);\n $rest->set_header('X_PASSWORD', Yii::app()->session['password']);\n $rest->set_header('X_TIMESTAMP', $params['Timestamp']);\n $rest->set_header('X_UNIQUE_SALT', $params['UniqueSalt']);\n $rest->set_header('X_SIGNATURE', $signature);\n $rest->set_header('X_GIZURCLOUD_API_KEY', Yii::app()->params->GIZURCLOUD_API_KEY);\n $response = $rest->delete(Yii::app()->params->URL . $module . '/' .$id);\n $response = json_decode($response);\n if ($response->success == true) {\n echo json_encode(array('msg'=>'Contact deleted successfully'));\n } else {\n echo json_encode(array('msg'=>$response->error->message));\n }\n }", "title": "" }, { "docid": "4a67d878dfce20591e3252ad29afa55d", "score": "0.5363597", "text": "public function delete(Contact $contact)\n {\n $contact->delete();\n return redirect('contact');\n }", "title": "" }, { "docid": "d1e1f883109311808125bfdf3c353287", "score": "0.5320994", "text": "function eliminarPersona(){\r\n\t\t$this->objFunSeguridad = $this->create('MODPersona');\t\r\n\t\t$this->res=$this->objFunSeguridad->eliminarPersona();\r\n\t\t$this->res->imprimirRespuesta($this->res->generarJson());\r\n\r\n\t}", "title": "" }, { "docid": "129de5975ae46854c7eafaa738a086b0", "score": "0.53178763", "text": "function modifierContact() {\r\n\t mysql_query(\"UPDATE if_contacts SET nom='$this->nom',prenom='$this->prenom',genre='$this->genre',fonction='$this->fonction',email='$this->email',tel='$this->tel',fax='$this->fax',gsm='$this->gsm',referent='$this->referent' WHERE numcontact='$this->numcontact'\");\r\n\t mysql_query(\"DELETE FROM if_cont_categ WHERE numcontact='$this->numcontact'\"); \r\n\t mysql_query(\"DELETE FROM if_cont_sscateg WHERE numcontact='$this->numcontact'\");\r\n\t $this->associerContactCateg();\r\n\t $this->associerContactSscateg();\r\n\t}", "title": "" }, { "docid": "9c6cbace3def50b25a537f3d847af957", "score": "0.5313108", "text": "public function deleteContact($modelId = 0){\r\n\t\tif($modelId){\r\n\t\t\t$model = Contact::findorFail($modelId);\r\n\t\t\t$model->description()->delete();\r\n\t\t\t$model->delete();\r\n\t\t\tSession::flash('flash_notice',trans(\"messages.$this->model.deleted_message\")); \r\n\t\t}\r\n\t\treturn Redirect::route(\"$this->model.index\");\r\n\t}", "title": "" }, { "docid": "19ffa66482171dc43e18ef1169b308fb", "score": "0.5297464", "text": "public function removeAction()\r\n {\r\n $companyid = $this->getRequest()->getParam('id', false);\r\n \r\n if ($companyid === false)\r\n {\r\n throw new Zend_Exception(\"Fail.\");\r\n }\r\n\r\n $this->view->companyid = $companyid;\r\n\r\n $companies = new Companies();\r\n \r\n $is_root_company = $companies->isRootCompany($companyid);\r\n $this->view->is_root_company = $is_root_company;\r\n\r\n $this->view->companyname = $companies->getName($companyid); \r\n\r\n $form = new crmForm();\r\n $form->setMethod(Zend_Form::METHOD_POST);\r\n $form->setAction($this->_request->getBaseUrl() . \"/company/remove/id/$companyid\");\r\n\r\n $submit = new Zend_Form_Element_Submit('submit');\r\n $submit->setLabel($this->tr->_('Remove company'));\r\n \r\n $form->addElement($submit);\r\n\r\n // Form POSTed\r\n if ($this->getRequest()->isPost())\r\n {\r\n if ($form->isValid($_POST))\r\n {\r\n $this->_db->beginTransaction();\r\n\r\n try\r\n {\r\n $companies->delete($companies->getAdapter()->quoteInto('id = ?', $companyid));\r\n\r\n $this->_db->commit();\r\n\r\n return $this->_helper->redirector->gotoUrl(\"/company\");\r\n\r\n }\r\n catch (Exception $e)\r\n {\r\n $this->_db->rollBack();\r\n var_dump($e);\r\n }\r\n \r\n }\r\n }\r\n\r\n $this->view->form = $form;\r\n }", "title": "" }, { "docid": "4176d4a18bb8812e8881c4ac2fbe44b0", "score": "0.52862", "text": "public function service_delete($request, $response)\n {\n \n // resource laden\n $user = $this->getUser();\n \n // prüfen ob irgendwelche steuerflags übergeben wurde\n $params = new BuizContactData_Crud_Request($request, $this);\n \n $manager = new BuizContactData_Manager($this);\n $manager->deleteItem($params->objid);\n \n /* @var $view BuizContactData_Ajax_View */\n $view = $response->loadView(\n $this->servKey.'-delete',\n 'BuizContactData',\n 'displayDelete'\n );\n \n // die view zum baue des formulars veranlassen\n $view->displayDelete($params);\n \n }", "title": "" }, { "docid": "65b5d607410faea9d6da95473d70bf60", "score": "0.5285437", "text": "public function destroy(Request $request, $id)\n {\n //Delete Contact\n $companyID = $request->get('CompanyID');\n $deleteURL = \"$this->COMPANY_URL$companyID/Contacts/$id\";\n $this->CURL_Request($deleteURL, \"\", 'DELETE');\n return redirect('contact/delete');\n }", "title": "" } ]
5183dd8e43a6c3e0a923e7b33984b436
Returns the path to the frontend.
[ { "docid": "905ca96026a2d49628d431418f5162cb", "score": "0.7633005", "text": "function frontend($path = null)\n {\n return url(config('app.frontend') . '/' . $path);\n }", "title": "" } ]
[ { "docid": "35a54aa07ff5e2dc1841d09bad577fd6", "score": "0.7176842", "text": "public function onGetControllerPathFrontend(Enlight_Event_EventArgs $args)\n\t{ \t\n \treturn $this->Path() . 'Controllers/Frontend/Easymarketing.php';\n }", "title": "" }, { "docid": "ba08db647e4d46f582fa9e2646bc31d0", "score": "0.7096525", "text": "public function getWebappPath();", "title": "" }, { "docid": "8daed6b2974bac16aa61afa6e2a8aeb7", "score": "0.70415604", "text": "protected function getFrontendURL()\n {\n return $this->getMinkParameter('base_url');\n }", "title": "" }, { "docid": "d9b0ce6977af33303d196b71d57da1c4", "score": "0.70199305", "text": "public function getWebsiteBackendPath() {\n return $this->websiteOffsetPath . self::FOLDER_NAME_BACKEND;\n }", "title": "" }, { "docid": "bc5bfb3f07030fb7e0eb0647f1c2c46d", "score": "0.6996357", "text": "function view_path(): string\n {\n return App::getViewPath();\n }", "title": "" }, { "docid": "681d4f67299f37b539c0e6334f3cd8a2", "score": "0.69328845", "text": "public function viewPath(): string;", "title": "" }, { "docid": "88bf5691c0eff45dcd4cf158957e83ab", "score": "0.6821691", "text": "public function getSitePath();", "title": "" }, { "docid": "b9d9552ce1f1fa9d76d747412f91d695", "score": "0.68166465", "text": "public function getPath()\n {\n \tif(is_null($this->parentpath)) //true only for Welcome page\n {\n return $this->pagename;\n }\n return $this->parentpath.\"/\".$this->pagename;\n }", "title": "" }, { "docid": "d593495fff6d7bbf6093fbabb59ade73", "score": "0.68163806", "text": "protected function getViewPath()\n {\n if ($key = $this->form->getResourceId()) {\n return $this->getListPath().'/'.$key;\n }\n\n return $this->getListPath();\n }", "title": "" }, { "docid": "1f19adea74a7e4890e3d081efaa303a0", "score": "0.6815025", "text": "private function getPath(): string\n {\n return $this->response['basePath']\n . 'app/content/notes/';\n }", "title": "" }, { "docid": "7d8ec5870dc24435d8cffad52d0c73a9", "score": "0.6813234", "text": "public function getPath() {\n\t\treturn $this->app->path->path($this->resource);\n\t}", "title": "" }, { "docid": "23c6fa8622c3febab54640c49061af39", "score": "0.68123764", "text": "public function get_path() {\n\t\treturn '';\n\t}", "title": "" }, { "docid": "71489282db02d1a2ab9c1ba6e538ca6e", "score": "0.67880017", "text": "public function getPath(): string\n {\n return $this->path ?? '/';\n }", "title": "" }, { "docid": "cbd7f662e94836198ab1ab4a60eeda9e", "score": "0.67678225", "text": "public function getPath()\n\t{\n\t\treturn $this->appPath;\n\t}", "title": "" }, { "docid": "4a065a20d52f30d925a957bdbac39f29", "score": "0.6763147", "text": "public function getPath()\n {\n if ($this->type == self::INVOICE) {\n return Yii::$app->params['invoicePath'];\n }\n\n return Yii::$app->params['preInvoicePath'];\n }", "title": "" }, { "docid": "5a90ce1bb0e4f570beb1c7ad7071d7d8", "score": "0.6751102", "text": "public function path()\n {\n return $this->basePath.DIRECTORY_SEPARATOR.'app';\n }", "title": "" }, { "docid": "9b21bc7bb6c1d3bb443e25eb73c2520a", "score": "0.67187625", "text": "public function get_path();", "title": "" }, { "docid": "37ebde4a2b686740a11e724d5ba99c44", "score": "0.666853", "text": "public function onGetControllerPathBackend(Enlight_Event_EventArgs $args) \n\t{\n return dirname(__FILE__) . '/Controllers/Backend/Easymarketing.php';\n }", "title": "" }, { "docid": "c7be16176cb6eeed9d04399cffdc1b3f", "score": "0.6661403", "text": "public function getPath()\n {\n // TODO find a better way to do this\n $path = $this->currentPagePath;\n\n //First page and root index file\n if ($this->currentPage === 1 && $this->file->getRelativePathname() === 'index.html') {\n return '/index.html';\n }\n $extension = $this->file->getExtension();\n if ($extension !== 'html' || !$this->currentPagePath) {\n return '';\n }\n\n if (substr($path, -5) !== '.html') {\n $path = str_replace('//', '/', $path.'/index.html');\n }\n return $path;\n }", "title": "" }, { "docid": "df021e613abd3e0fe055b620356723c5", "score": "0.6647215", "text": "public function getWebPath()\n {\n return null === $this->path ? null : 'Admin/actualities/'.$this->getId().'/'.$this->getUploadDir().'/'.$this->path;\n }", "title": "" }, { "docid": "921c2e24ae5478ae7a0f7e6371e62d4f", "score": "0.6644433", "text": "protected function getWebappPath()\n {\n return $this->webappPath;\n }", "title": "" }, { "docid": "fa71e4130912168032de642032b3888e", "score": "0.6637731", "text": "public function getWebappPath()\n {\n return $this->webappPath;\n }", "title": "" }, { "docid": "fa71e4130912168032de642032b3888e", "score": "0.6637731", "text": "public function getWebappPath()\n {\n return $this->webappPath;\n }", "title": "" }, { "docid": "fa71e4130912168032de642032b3888e", "score": "0.6637731", "text": "public function getWebappPath()\n {\n return $this->webappPath;\n }", "title": "" }, { "docid": "fa71e4130912168032de642032b3888e", "score": "0.6637731", "text": "public function getWebappPath()\n {\n return $this->webappPath;\n }", "title": "" }, { "docid": "f32e6121f8956f7c53e2f36dd75d1044", "score": "0.66313326", "text": "public function getPath(): string\n {\n return $this->path;\n }", "title": "" }, { "docid": "f32e6121f8956f7c53e2f36dd75d1044", "score": "0.66313326", "text": "public function getPath(): string\n {\n return $this->path;\n }", "title": "" }, { "docid": "f32e6121f8956f7c53e2f36dd75d1044", "score": "0.66313326", "text": "public function getPath(): string\n {\n return $this->path;\n }", "title": "" }, { "docid": "f32e6121f8956f7c53e2f36dd75d1044", "score": "0.66313326", "text": "public function getPath(): string\n {\n return $this->path;\n }", "title": "" }, { "docid": "f32e6121f8956f7c53e2f36dd75d1044", "score": "0.66313326", "text": "public function getPath(): string\n {\n return $this->path;\n }", "title": "" }, { "docid": "f32e6121f8956f7c53e2f36dd75d1044", "score": "0.66313326", "text": "public function getPath(): string\n {\n return $this->path;\n }", "title": "" }, { "docid": "a778aa71906019bbfb260416351459c0", "score": "0.663072", "text": "private function getPath()\n {\n if($this->get('src'))\n {\n return $this->get('src');\n }\n return $this->get('src', Config::get('theming.theme'));\n }", "title": "" }, { "docid": "910b2f7c913cc7c875b33f2fa0f49069", "score": "0.6629665", "text": "protected function getPathResource()\r\n {\r\n $meta = $this->scaffoldCommandObj->getMeta();\r\n $module_base_dir = './app/Modules/' . $meta['Module'];\r\n return $module_base_dir . '/resources/views/';\r\n }", "title": "" }, { "docid": "0e21297974a0fccda252da4d3cf62059", "score": "0.6628212", "text": "public function onGetControllerPathFrontend(Enlight_Event_EventArgs $args) {\r\n $this->registerNamespace();\r\n\r\n return $this->Path() . '/Controllers/Frontend/SwpCleverReach.php';\r\n }", "title": "" }, { "docid": "431ac797660cbb0d45a8736deccb4500", "score": "0.6601115", "text": "public function getPath()\n {\n if(isset($_SERVER['HTTPS'])){\n $protocol = ($_SERVER['HTTPS'] && $_SERVER['HTTPS'] != \"off\") ? \"https\" : \"http\";\n }\n else{\n $protocol = 'http';\n }\n return $protocol . \"://\" . $_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];\n \n }", "title": "" }, { "docid": "2245745af8b7b4c23487090c8623b2fa", "score": "0.6585531", "text": "public function getPath(): string\n {\n return $this->_path;\n }", "title": "" }, { "docid": "bb7523af2fbd14491fc8a07f1a2999b2", "score": "0.6580357", "text": "public function path()\n {\n if ($this->prefix) {\n return url(\"{$this->prefix}/{$this->slug}\");\n }\n\n return url(\"{$this->slug}\");\n }", "title": "" }, { "docid": "661c330ab25caef5a12dec6751dc0b22", "score": "0.6563518", "text": "public function getPath(): string\n\t{\n\t\treturn $this->path;\n\t}", "title": "" }, { "docid": "b1f7f4dc23bfc951be41601fa1ffecb9", "score": "0.65615994", "text": "public function getPath():string\n {\n\t\treturn $this->path;\n\t}", "title": "" }, { "docid": "7e232f46de9f01248a718c98575061c3", "score": "0.654931", "text": "public function path()\n {\n return $this->path();\n }", "title": "" }, { "docid": "0295ba7b0c707374683f3da52e9ec0af", "score": "0.654063", "text": "public function getPath()\n {\n return $this->view->getDirectory() . $this->name . '.php';\n }", "title": "" }, { "docid": "16667e375c95b37a03f23802af36732b", "score": "0.6534256", "text": "public function get_path() {\n return $this->path;\n }", "title": "" }, { "docid": "9dcc2e36722717e3a5beff809423871f", "score": "0.65278476", "text": "public function getPath() {\n\t\treturn $this->app->path->path(\"elements:\".$this->getElementType());\n\t}", "title": "" }, { "docid": "0fedbba3cd1d39950799a31f28a6177b", "score": "0.6519932", "text": "public function getWidgetPath();", "title": "" }, { "docid": "933831d67d4219b873213b1273d2fcbf", "score": "0.65118027", "text": "public function getPath() : string\n {\n return $this->path;\n }", "title": "" }, { "docid": "933831d67d4219b873213b1273d2fcbf", "score": "0.65118027", "text": "public function getPath() : string\n {\n return $this->path;\n }", "title": "" }, { "docid": "3e87127faa87cf76f823e7c09f51d6e7", "score": "0.64972067", "text": "public function getPath()\n {\n return isset($this->path) ? $this->path : '';\n }", "title": "" }, { "docid": "0333ac481f9e9c677c13b81bad9c8945", "score": "0.64899313", "text": "public function path()\n {\n return \"/{$this->slug}\";\n }", "title": "" }, { "docid": "ac9a8ab407b4c6797b912979f8211f9d", "score": "0.64859366", "text": "protected function getPath()\n\t{\n\t\tif (is_null($this->path))\n\t\t{\n\t\t\t$client = $this->getClient();\n\t\t\t$this->path = JLanguageHelper::getLanguagePath($client->path);\n\t\t}\n\n\t\treturn $this->path;\n\t}", "title": "" }, { "docid": "90d92f27a5ecdd8b4801a736ff50a420", "score": "0.6485135", "text": "public function getServerPath ():String\n {\n return $this->configValues['getServerPath'];\n }", "title": "" }, { "docid": "586e33c58fd4c7904946717904c7e1c6", "score": "0.6484384", "text": "public function getPath()\n {\n return ltrim(parent::getPath(), '/');\n }", "title": "" }, { "docid": "b566fc747922c42c040a621f36f519db", "score": "0.6479196", "text": "protected function getPath()\n {\n if (\n isset($_SERVER)\n && isset($_SERVER['REQUEST_URI'])\n ) {\n return $_SERVER['REQUEST_URI'];\n }\n\n return '';\n }", "title": "" }, { "docid": "18f79f49f6b63402432cfc95f8e08c36", "score": "0.6478955", "text": "final public function GetSitePath() {\n return cms_join_path($this->config['root_path'], 'netdesign', $this->GetSiteId());\n }", "title": "" }, { "docid": "9b75c76d7efb24a44c7426a127b703b3", "score": "0.64782894", "text": "public function getWebPath()\n {\n return str_replace('/', '-', $this->getId());\n }", "title": "" }, { "docid": "e2898bcc2e4e7789edb95ec8e2dae74c", "score": "0.6478145", "text": "public function get_path() {\n\t\treturn $this->path;\n\t}", "title": "" }, { "docid": "38af358134d1e6d806e20fd42d822c92", "score": "0.647244", "text": "function get_path() {\r\n\t\treturn $this->path;\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "9062bdc05cb6a4bfacce80be1c759fc3", "score": "0.6469075", "text": "public function getPath()\n {\n return $this->customPath ?? app()->runtime . '/' . $this->getFilename(false);\n }", "title": "" }, { "docid": "3db2f0da0b3c3e652b3b78d0ff734516", "score": "0.6466744", "text": "public static function getFrontEndThemeUrl(){\n\t\t$themeActual=Yii::app()->theme;\n\t\tYii::app()->theme=Yii::app()->params['frontendTheme'];\n\t\t$themePath= Yii::app()->theme->baseUrl ;\n\t\tYii::app()->theme=$themeActual;\n return $themePath;\n }", "title": "" }, { "docid": "f11c8c0cfef0cd444f1425fe39b05e05", "score": "0.6446964", "text": "public function getPathAttribute()\n\t{\n\t\treturn env('APP_URL') . '/' . config('formcinch.formcinch.form_admin_prefix') . '/' . $this->slug . '/results';\n\t}", "title": "" }, { "docid": "870db70ecc7a6c0d7d94ff087fbfa24b", "score": "0.6444964", "text": "public function path()\n {\n return $this->path;\n }", "title": "" }, { "docid": "f4203038cb9cc179146d448f961593df", "score": "0.6435606", "text": "public function getActiveRenderPath(){ }", "title": "" }, { "docid": "0610b57ad8adb4c85e2a1bdc30d0fc16", "score": "0.6431851", "text": "public static function get_path() {\r\n \r\n }", "title": "" }, { "docid": "f10a05ae6efa997c03735aa37d710fa5", "score": "0.64315593", "text": "function getPath() {\n\t\treturn $this->getData('path');\n\t}", "title": "" }, { "docid": "f10a05ae6efa997c03735aa37d710fa5", "score": "0.64315593", "text": "function getPath() {\n\t\treturn $this->getData('path');\n\t}", "title": "" }, { "docid": "4d45baf2a86b84b0cfd705f65407f69c", "score": "0.64265555", "text": "static public function getWebPath()\n {\n return dirname(self::getCurrentUrl(true));\n }", "title": "" }, { "docid": "01443810087f00b5cc1d618c88bd6941", "score": "0.6425135", "text": "protected function getPath()\n\t{\n\t\treturn $this->path;\n\t}", "title": "" }, { "docid": "a30b460cb9f615be5c5cda8e09fe53df", "score": "0.64247924", "text": "protected function getListPath()\n {\n return $this->form->resource();\n }", "title": "" }, { "docid": "fad80b06443f56436cccae6bcce1e4b6", "score": "0.6424312", "text": "public final function getPath() : string\n {\n return $this->path;\n }", "title": "" }, { "docid": "7931001f3ac93e982b2cc98da2919380", "score": "0.64215624", "text": "function GetPagePath(){\n\t\treturn Engine::GetPagePath($this);\n\t}", "title": "" }, { "docid": "15258075f98602a04b0bcbdb10dd0135", "score": "0.641344", "text": "public function getPath(): string;", "title": "" }, { "docid": "15258075f98602a04b0bcbdb10dd0135", "score": "0.641344", "text": "public function getPath(): string;", "title": "" }, { "docid": "15258075f98602a04b0bcbdb10dd0135", "score": "0.641344", "text": "public function getPath(): string;", "title": "" }, { "docid": "15258075f98602a04b0bcbdb10dd0135", "score": "0.641344", "text": "public function getPath(): string;", "title": "" }, { "docid": "15258075f98602a04b0bcbdb10dd0135", "score": "0.641344", "text": "public function getPath(): string;", "title": "" }, { "docid": "15258075f98602a04b0bcbdb10dd0135", "score": "0.641344", "text": "public function getPath(): string;", "title": "" }, { "docid": "15258075f98602a04b0bcbdb10dd0135", "score": "0.641344", "text": "public function getPath(): string;", "title": "" }, { "docid": "15258075f98602a04b0bcbdb10dd0135", "score": "0.641344", "text": "public function getPath(): string;", "title": "" }, { "docid": "17e578fefb450185ad6a793e43f05fb6", "score": "0.64121056", "text": "public function getStoragePath()\n {\n $moduleName = AbstractModel::moduleName(static::className());\n return \"@app/web/files/{$moduleName}/\"\n . $this->formName() . '/' . $this->id;\n }", "title": "" }, { "docid": "7563a4dc9063ebc359c9895c2901da59", "score": "0.64114785", "text": "public function get_path(){\r\n\t\treturn $this->root_path;\r\n\t}", "title": "" }, { "docid": "33f530a59925dc5cd8f906e53f432cda", "score": "0.6407714", "text": "public function sitesPath()\n {\n return $this->valetHomePath().'/Sites';\n }", "title": "" }, { "docid": "6c194b24252eb9cc3621a67441e1415b", "score": "0.6403746", "text": "public function getPath()\n {\n return $this->getPart('path');\n }", "title": "" }, { "docid": "60f7afc2a7baec085cb49513af60d671", "score": "0.6395334", "text": "public function getBackendPathPrefix()\n {\n return $this->config->getBackendPathPrefix();\n }", "title": "" }, { "docid": "74ba54d7fe2e92d2192f7a4f5ab0233f", "score": "0.63947916", "text": "private static function getPath() {\n\t\t$path = Reg::get('Cache.path');\n\t\t\n\t\tif (empty($path)) {\n\t\t\t$path = Reg::get('Path.physical') . '/cache';\n\t\t}\n\t\t\n\t\treturn $path;\n\t}", "title": "" }, { "docid": "9325c6422b47db523212f49252785d3a", "score": "0.63902986", "text": "public function get_path()\n {\n if (self::debug > 0) {\n error_log('learnpathItem::get_path()', 0);\n }\n if (empty($this->path)) {\n return '';\n }\n return $this->path;\n }", "title": "" }, { "docid": "6d2aa37803eaee557641c6f94ab37a2f", "score": "0.63865995", "text": "private function getPath() {\n\t\treturn $this->path;\n\t}", "title": "" }, { "docid": "6d2aa37803eaee557641c6f94ab37a2f", "score": "0.63865995", "text": "private function getPath() {\n\t\treturn $this->path;\n\t}", "title": "" }, { "docid": "ac7e3f2f3e90f2f4f0ef3d95e63e5cc6", "score": "0.63812447", "text": "final public function RequestPathGet() {\n\t\t//--\n\t\treturn (string) SmartFrameworkRegistry::getRequestPath(); // string\n\t\t//--\n\t}", "title": "" }, { "docid": "8aa28fdfe9a911f8a7e34242cc9ea96b", "score": "0.6378904", "text": "public function getPath()\n\t{\n\t\treturn $this->_data['request']->getPath();\n\t}", "title": "" }, { "docid": "c2012f0c62a3c730221f7ac0c5310db8", "score": "0.6377818", "text": "public function get_full_path(){\r\n\t\treturn WEBURL . $this->get_path();\r\n\t}", "title": "" }, { "docid": "bff2b9cbf4d1593d1d5490fd947de329", "score": "0.637573", "text": "public function getPath(): string\n {\n if (!$this->path) {\n $this->initPath();\n }\n return $this->path;\n }", "title": "" }, { "docid": "688208e3b16c07ddc36d4879769b7756", "score": "0.63719547", "text": "public function getPath()\n\t{\n\t\treturn \"/\" . $this->uri();\n\t}", "title": "" }, { "docid": "eefe5f0c58d9850dad1072431fb2b686", "score": "0.6369569", "text": "protected function getPath()\n {\n return $this->path;\n }", "title": "" }, { "docid": "18e9042829313f20f7398fc00c1d63a7", "score": "0.63688", "text": "public function onGetControllerPathBackend(Enlight_Event_EventArgs $args) {\r\n $this->registerNamespace();\r\n $this->registeTemplateDir();\r\n $this->registerSnippetsDir();\r\n\r\n return $this->Path() . '/Controllers/Backend/SwpCleverReach.php';\r\n }", "title": "" }, { "docid": "6d5964cc9ce54c880017d79fae02a61e", "score": "0.6365555", "text": "public function get_path(/* ... */)\n {\n return $this->_path;\n }", "title": "" }, { "docid": "03b5e8b312345a596fffc7eb7cc82655", "score": "0.6364456", "text": "function getFullPath() {\n\t\treturn system::getConfig()->getPathWebsites().system::getDirSeparator().'base'.\"/\";\n\t}", "title": "" }, { "docid": "3917664f95555a2418e0413ce26c6fca", "score": "0.6362442", "text": "public function getViewPath()\n {\n return $this->getPaths() . '/' . Str::slug(Str::plural($this->type)) . '/';\n }", "title": "" }, { "docid": "7277ec7920677934046103484bedec03", "score": "0.63555616", "text": "public static function onGetControllerPathFrontendMoptPaymentPayone() {\n return dirname(__FILE__) . '/Controllers/Frontend/MoptPaymentPayone.php';\n }", "title": "" }, { "docid": "865b5afe2435b24de9ff54014ba8d597", "score": "0.63470215", "text": "public function getPath(): string\n {\n if (empty($this->deploymentPath)) {\n $this->setPath();\n }\n\n return $this->deploymentPath;\n }", "title": "" }, { "docid": "1b14d3fc2668439126d360b8951e0abe", "score": "0.6346944", "text": "public function getUrlPath(): string\n {\n return $this->wordpress->pluginsUrl('', $this->baseFile) . '/';\n }", "title": "" }, { "docid": "c84abff01dfb0761261e0457d4fbbfee", "score": "0.63451606", "text": "public function getPath()\n {\n\n $return = $this->getBasePath() . '/' . $this->getConfigGeneratorClassPath($this->getClassType(), true) . '/'. 'web.php';\n // Log::debug($return);\n return $return;\n }", "title": "" } ]
11081c3e15db2420759f72678f68cf78
A file must be passed
[ { "docid": "24c41e834caa08a9aa6bca9694ea4109", "score": "0.0", "text": "public function __construct(File $file, $disk_type = 's3')\n {\n if (empty($file)) {\n throw new \\Exception('Must provide a valid file');\n }\n // Set FileUploader properties\n $this->file = $file;\n $this->disk = Storage::disk($disk_type);\n }", "title": "" } ]
[ { "docid": "0486eb6dfa99d99a2b2d13b26e9940fb", "score": "0.7535295", "text": "abstract public function file();", "title": "" }, { "docid": "69417d909ac714133181f277b8144012", "score": "0.69935155", "text": "public function usesFilename();", "title": "" }, { "docid": "ded3f5133bc6eec12dc1f6b7ba5f68e8", "score": "0.678722", "text": "public function testfile() {\n\t}", "title": "" }, { "docid": "febcc95575e6d50272c749a22362a26d", "score": "0.67311716", "text": "abstract public function is_file($file);", "title": "" }, { "docid": "375cea692046ffd8bca4be9c687720da", "score": "0.6690617", "text": "abstract public function loadFile($file);", "title": "" }, { "docid": "3b35125697a58ab3e79d35c209c05c49", "score": "0.6650768", "text": "public function file($file) {\r\n\r\n\t\t$this->set_file_array($file);\r\n\r\n\t}", "title": "" }, { "docid": "778857d21b0293ef4206a1fd4447dcc4", "score": "0.6646266", "text": "public function file($name = null);", "title": "" }, { "docid": "38b1738efb73c7e8467543c5eb0d13f2", "score": "0.6603901", "text": "function passfile($args) {\n\t$mime = null;\n\t$e = null;\n\t$filename = '';\n\t$dirname = '';\n\n\ttry {\n\t\t_requireArgument(__FUNCTION__,'dir',$args);\n\t\t$dirname = $args['dir'];\n\t}\n\tcatch (Exception $e) {\n\t\t_requireArgument(__FUNCTION__,'dir',$args['context']);\n\t\t$dirname = $args['context']['dir'];\n\t}\n\t\n\ttry {\n\t\t_requireArgument(__FUNCTION__,'file',$args);\n\t\t$filename = $args['file'];\n\t}\n\tcatch (Exception $e) {\n\t\t_requireArgument(__FUNCTION__,'file',$args['context']);\n\t\t$filename = $args['context']['file'];\n\t}\n\n\tif (strpos($filename, '..') !== false || strpos($filename, '/') !== false) {\n\t\tthrow new Exception('file-argument contains illegal characters');\n\t}\n\n\t$file = $dirname.'/'.$filename;\n\tif (!is_readable($file) || !is_file($file)) {\n\t\tif (LF_DEBUG) {\n\t\t\ttrigger_error($file.' not found or not a file');\n\t\t}\n\t\telse {\n\t\t\t// TODO: use a 404 helper\n\t\t\t$response = new Response(array('title'=>'Not Found'), 'http/base.html', true);\n\t\t\t$response->status = 404;\n\t\t\treturn $response;\n\t\t}\n\t}\n\t\n\t/*\n\t * because mime_content_type is deprecated and PECL Fileinfo hardly is \n\t * installed, do stuff the hard way.\n\t */\n\t\n\t$extension = explode('.',$file);\n\t$extension = array_pop($extension);\n\t\n\t// TODO: to config file?\n\t$blacklist = array(\n\t\t'conf', 'php', 'cfg', 'ini', 'htpasswd', 'htaccess'\n\t);\n\t\n\tif (in_array($extension, $blacklist)) {\n\t\t// TODO: mail the admin?\n\t\ttrigger_error('files with the extension \\''.$extension.'\\' are blacklisted');\n\t}\n\t\n\t// TODO: to config file?\n\t$mimes = array(\n\t\t// text / script\n\t\t'html' => 'text/html; charset='.LF_DEFAULT_CHARSET,\n\t\t'htm' => 'text/html; charset='.LF_DEFAULT_CHARSET,\n\t\t'txt' => 'text/plain; charset='.LF_DEFAULT_CHARSET,\n\t\t'css' => 'text/css; charset='.LF_DEFAULT_CHARSET,\n\t\t'phps' => 'application/x-httpd-php-source; charset='.LF_DEFAULT_CHARSET,\n\t\t'js' => 'application/x-javascript; charset='.LF_DEFAULT_CHARSET,\n\t\t'xml' => 'text/xml; charset='.LF_DEFAULT_CHARSET,\n\t\t'xhtml' => 'application/xhtml+xml; charset='.LF_DEFAULT_CHARSET,\n\t\t'rss' => 'application/rss+xml; charset='.LF_DEFAULT_CHARSET,\n\t\n\t\t// documents\n\t\t'pdf' => 'application/pdf',\n\t\t'doc' => 'application/msword',\n\t\t'xls' => 'application/vnd.ms-excel',\n\t\t'rtf' => 'application/rtf',\n\t\t'odf' => 'application/vnd.oasis.opendocument.text',\n\t\t'ods' => 'application/vnd.oasis.opendocument.spreadsheet',\n\t\t'odp' => 'application/vnd.oasis.opendocument.presentation',\n\t\n\t\t// images\n\t\t'jpg' => 'image/jpeg',\n\t\t'jpeg' => 'image/jpeg',\n\t\t'png' => 'image/png',\n\t\t'gif' => 'image/gif',\n\t\t'tif' => 'image/tiff',\n\t\t'tiff' => 'image/tiff',\n\t\t'svg' => 'image/svg+xml',\n\t\n\t\t// interactive\n\t\t'swf' => 'application/x-shockwave-flash',\n\t\n\t\t// video\n\t\t'mpg' => 'video/mpeg',\n\t\t'mpeg' => 'video/mpeg',\n\t\t'avi' => 'audio/msvideo',\n\t\t'mov' => 'video/quicktime',\n\t\t'qt' => 'video/quicktime',\n\t\n\t\t// audio\n\t\t'mp3' => 'audio/mpeg',\n\t\t'm3u' => 'audio/m-mpegurl',\n\t\n\t);\n\t\n\tif (isset($mimes[$extension])) {\n\t\t$mime = $mimes[$extension];\n\t}\n\telse {\n\t\t$mime = 'application/octet-stream';\n\t}\n\t\n\trequire_once(LF_LIGHTFRAME_PATH.'/lib/response/response.php');\n\t$headers = new HTTPHeaders();\n\t$headers->{'Content-Type'} = $mime;\n\t$headers->{'Content-Length'} = (string)filesize($file);\n\t$headers->send();\n\treadfile($file);\n\tdie();\n}", "title": "" }, { "docid": "1b323982df6646e557e6af2d10dca2aa", "score": "0.6588534", "text": "private function _getFile() {\n\t\tErrorHandler::throwOne(Array(\"API-Error\", \"getFile not yet implemented.\"));\n\t}", "title": "" }, { "docid": "d99c9daebddf3dd51f4000c41f0ab5d8", "score": "0.65271956", "text": "function isFile();", "title": "" }, { "docid": "d99c9daebddf3dd51f4000c41f0ab5d8", "score": "0.65271956", "text": "function isFile();", "title": "" }, { "docid": "f216a017263789ec0578609ea1365fc1", "score": "0.6468815", "text": "public static function getFile(){}", "title": "" }, { "docid": "525398324ab6fc28e9723544dd3f625a", "score": "0.6463879", "text": "public function __construct($file)\n {\n $this->file = $file;\n }", "title": "" }, { "docid": "913466bbb33a1766fbe01e9377448606", "score": "0.64599025", "text": "public function fromFile($filename);", "title": "" }, { "docid": "a334ed65024b549c52b80c9ec4185915", "score": "0.645039", "text": "public function __construct($file = null)\n\t{\n\t\t$this->file = $file;\n\t}", "title": "" }, { "docid": "fa03b10b30f4b824495257c6d4aa582b", "score": "0.6432247", "text": "public function setFile($file);", "title": "" }, { "docid": "d28bdfdf2f2efef639ccf972f645f417", "score": "0.6411375", "text": "function passValidation($file_obj)\n{\n return true;\n}", "title": "" }, { "docid": "a71918da5c55ded74400a9670ba0428f", "score": "0.6408843", "text": "function __construct($file)\n\t{\n\t\tif(!empty($file[0])) $this->files = $file;\n\t\telse if($file) $this->file = $file;\n\t}", "title": "" }, { "docid": "6a08b0f83d79b1d15a6144ee8a0eb6d4", "score": "0.63807356", "text": "abstract protected function support(SplFileObject $file);", "title": "" }, { "docid": "0487c7cba8de6432559039e8118e5a45", "score": "0.6329496", "text": "public function testGetParametersFromFile()\n {\n $options = $this->getOptions();\n\n if (!isset($options['file']) || empty($options['file']))\n {\n throw new \\Exception('file not set!');\n }\n\n $file = $options['file'];\n\n $utilsFile = App::make('Utils\\UtilsFile');\n\n $result = $utilsFile->getParametersFromFile($file);\n\n $this->assertArrayHasKey('parameters',$result,'File does not exist or is empty !');\n }", "title": "" }, { "docid": "f00ef32cdf6026ed12b40b7b63f92820", "score": "0.63098574", "text": "abstract public function isFile() : bool;", "title": "" }, { "docid": "a0fe94cffb51cc553d6b38e5f9f5db2e", "score": "0.62960607", "text": "public function __construct( $file ) {\n\t\t$this->file = $file;\n\t}", "title": "" }, { "docid": "1c0966b823fe1284b4b0c9ed5b4b3d79", "score": "0.62932795", "text": "public function getFile()\n {\n }", "title": "" }, { "docid": "896d5a3b8f06e32d996688ffc94eb7e2", "score": "0.6279324", "text": "public function testNormalLoadAnyRealFile() {\n\t\t$file = \"./tests/resources/text.file.any\";\n\t\tnew Eximporter($file);\n\n\n\t}", "title": "" }, { "docid": "fb1f909fe4db8eec8b4e7b0026d60de7", "score": "0.6271738", "text": "public function testCreateFile()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "b868ebc1751497c523eae5ca4eb020f4", "score": "0.6266199", "text": "public function __construct($file){\n $this->setFile($file);\n }", "title": "" }, { "docid": "931a8a911988e7489b434c03bbe86601", "score": "0.62589115", "text": "public function file(): string;", "title": "" }, { "docid": "931a8a911988e7489b434c03bbe86601", "score": "0.62589115", "text": "public function file(): string;", "title": "" }, { "docid": "1850153fc94e1dca236a2542596c942f", "score": "0.625541", "text": "public function loadFile(string $file);", "title": "" }, { "docid": "15f08d0a7fa069af99ceba1e6336c699", "score": "0.6252236", "text": "public function __construct($file)\n {\n $this->_file = $file;\n }", "title": "" }, { "docid": "02ae894e9ac32830b4520180308a9847", "score": "0.62414175", "text": "public function getFile();", "title": "" }, { "docid": "e4315e1d7675efd257f915d008cd9b6c", "score": "0.6180307", "text": "function accept(&$file) {\n\t\t// code here...\n\t}", "title": "" }, { "docid": "375c1c38e4076484ca8a8fa4fc8da51b", "score": "0.617844", "text": "public function setFile(File $file);", "title": "" }, { "docid": "b688437e420899989a9a507ed7b35282", "score": "0.6175166", "text": "public function load($file);", "title": "" }, { "docid": "b688437e420899989a9a507ed7b35282", "score": "0.6175166", "text": "public function load($file);", "title": "" }, { "docid": "a7829eaf9d750fc191c3e9132404b055", "score": "0.61732066", "text": "function process_file($file, $ruta) {\r\n\r\n\r\n}", "title": "" }, { "docid": "61b6fb77184900659b18d21b9464aaf1", "score": "0.6158513", "text": "public function __construct(string $file)\n {\n $this->file = $file;\n }", "title": "" }, { "docid": "61b6fb77184900659b18d21b9464aaf1", "score": "0.6158513", "text": "public function __construct(string $file)\n {\n $this->file = $file;\n }", "title": "" }, { "docid": "8e1fdf93c88b1edf8485585f9b5438b4", "score": "0.6147411", "text": "public function __construct($filename)\r {\r $this->filename = $filename;\r }", "title": "" }, { "docid": "04417bf9b1d976c95785ca6ff61174d0", "score": "0.6139397", "text": "public function testAddFile()\n {\n }", "title": "" }, { "docid": "52958336f7b3c85470cec63829c93fa7", "score": "0.61393654", "text": "protected function validateArgument($file)\n {\n if (!stream_is_local($file)) {\n throw new \\InvalidArgumentException(sprintf('This is not a local file \"%s\".', $file));\n }\n\n if (!file_exists($file)) {\n throw new \\InvalidArgumentException(sprintf('The service file \"%s\" is not valid.', $file));\n }\n }", "title": "" }, { "docid": "138f8e039922fefe58f3242dcc243ca6", "score": "0.6138048", "text": "public function getFile(string $path)\n {\n }", "title": "" }, { "docid": "d49ebd740e88fec4b27e01f587b7bbfa", "score": "0.60989237", "text": "protected abstract function isFile($filename);", "title": "" }, { "docid": "0fa40e93ca7789bc55bb884723d1ab30", "score": "0.60896695", "text": "public function is_file(): bool;", "title": "" }, { "docid": "c21e2cce17b2735ea4e6ed5406a201c4", "score": "0.6083559", "text": "public function testFileArgument()\n {\n $cmd = $this->createCommand();\n $cmd->addArg($this->getPathToData('atx_heading.md'));\n $cmd->execute();\n\n $this->assertEquals(0, $cmd->getExitCode());\n $expectedContents = trim(file_get_contents($this->getPathToData('atx_heading.html')));\n $this->assertEquals($expectedContents, $cmd->getOutput());\n }", "title": "" }, { "docid": "6d483d09fa960cfcac0700aa4dd6496f", "score": "0.6073015", "text": "private function loadFromFile(string $file)\n {\n // TODO\n }", "title": "" }, { "docid": "9fc946b2d66297af3a0f98025c174a14", "score": "0.60484695", "text": "abstract protected function __construct($filename);", "title": "" }, { "docid": "19401b1f3bcd0505326608f4375a4c2c", "score": "0.60450315", "text": "function addFile( $FilePath );", "title": "" }, { "docid": "36f17e79ec2145a5af0b44c20c27a676", "score": "0.6026323", "text": "function __construct($file=\"\"){\n\t\n\t\t// get file-content if file-path is not empty\n\t\tif(\"\"!=$file){\n\t\t\t$fh = fopen($file, \"r\");\n\t\t\t$this->content = fread($fh, filesize($file));\n\t\t\tfclose($fh);\n\t\t}\n\t}", "title": "" }, { "docid": "8f286bd63ae5853c34a80650ddf35a7e", "score": "0.60209835", "text": "public static function load($file)\n {\n }", "title": "" }, { "docid": "c16ee6c374ca7dc7b6b2ca93799f9b9d", "score": "0.6009771", "text": "function requireFile($file) {\n require_once $file;\n}", "title": "" }, { "docid": "d0ad84bb0f99dc77c77cc6c69ac2b956", "score": "0.59805715", "text": "public function __construct($file){\n\t\tparent::__construct($file);\n\t}", "title": "" }, { "docid": "a3d3a7769b01e2360ceff76484c0af2c", "score": "0.5963054", "text": "function validateFile($file) {\r\n\t\t$name_of_uploaded_file = basename($file['name']);\r\n\t\t//get the file extension of the file\r\n\t\t$type_of_uploaded_file = substr($name_of_uploaded_file,\tstrrpos($name_of_uploaded_file, '.') + 1);\r\n\t\t$size_of_uploaded_file = $file[\"size\"]/1024;//size in KBs\r\n\t\t\r\n\t\t//Validations\r\n\t\tif($size_of_uploaded_file > MAX_ALLOWED_FILE_SIZE ) {\r\n\t\t\treturn 'Il file deve essere minore di ' . MAX_ALLOWED_FILE_SIZE . ' KB';\r\n\t\t}\r\n\t\t\r\n\t\t$allowed_extensions = explode(\",\", ALLOWED_FILE_EXTENSIONS);\r\n\t\t$allowed_ext = false;\r\n\t\tfor($i=0; $i<sizeof($allowed_extensions); $i++) {\r\n\t\t\tif(strcasecmp($allowed_extensions[$i],$type_of_uploaded_file) == 0) {\r\n\t\t\t\t$allowed_ext = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(!$allowed_ext) {\r\n\t\t\treturn 'Il file deve avere una delle seguenti estensioni: ' . ALLOWED_FILE_EXTENSIONS;\r\n\t\t}\r\n\t\t\r\n\t\treturn 'ok';\r\n\t}", "title": "" }, { "docid": "1510d72060a8535ee6f07e1c67aa19cd", "score": "0.5961608", "text": "public function file(): FileInterface;", "title": "" }, { "docid": "4bdd2251efaa0f4f7cfbef3beb5f4d2f", "score": "0.59613824", "text": "public function testWrongFile()\n {\n $this->expectException(\\InvalidArgumentException::class);\n \n processor::processFile('tests/testfiles/wrongfile.log');\n }", "title": "" }, { "docid": "0e3ed4d4cd9e72a19380e05b463ecefb", "score": "0.5953106", "text": "abstract public function load( $file, $mime = null );", "title": "" }, { "docid": "b9301b9b0a57837cab02c108cce28cb9", "score": "0.5945257", "text": "public function __construct(string $file_path)\n {\n parent::__construct(\n \"Failed to read file '{$file_path}' are you sure it exists?\"\n );\n }", "title": "" }, { "docid": "435723df8385be22523963245d3ee717", "score": "0.5944069", "text": "function load($file = false){\n\n\t\t\tif(is_file($file)){\n\n\t\t\t\tinclude $file; \n\n\t\t\t}\n\n\t\t\telse{\n\n\t\t\t\t\\_native::wCnsl('<h1>Gougnon Core</h1> Fichier introuvable (' . $file . ') ');\n\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "a01f687654dbf0fc7eacf965356421b8", "score": "0.5942844", "text": "abstract public function file_exists($file);", "title": "" }, { "docid": "1ec39c0071471828094737af21d92c70", "score": "0.59413934", "text": "function embed($file,$params = array()){\n\t\t\n\t\tif(!is_file($file))\n\t\t\tthrow new InvalidArgumentException(sprintf('File do not exists at %s'),$file);\n\n\t\textract($params);\n\t\treturn require($file);\n\t}", "title": "" }, { "docid": "d818f238d75ae9bceda7b8a40d33248c", "score": "0.59355754", "text": "public function file($file, array $headers = []);", "title": "" }, { "docid": "acdc4f9461dad64941def24c5b6d6c78", "score": "0.5925451", "text": "function test_validate_fileupload_valid($file)\n {\n $otp_regex = '#.*/.*#';\n\n $this->assertRegExp($otp_regex,check_file_type($file));\n }", "title": "" }, { "docid": "b04129d1d8abbfaca481a31a9aefa730", "score": "0.59153074", "text": "function load(string $fileName) {\n }", "title": "" }, { "docid": "fc277d57b9e99217a643ef2939b5d968", "score": "0.59091634", "text": "public function set_file($file){\n\t\t\n\t\tif(empty($file)|| !$file|| !is_array($file)){\n\t\t\t\n\t\t\t$this->errors[] = \"There was no file uploaded here\";\n\t\t\treturn false;\n\t\t\n\t\t}elseif($file['error'] != 0){\n\t\t\t$this->errors[] = $this->upload_errors_array[$file['error']];\n\t\t\t\n\t\t\treturn false;\n\t\t\t\n\t\t}else{\n\t\t\n\t\t\t$this->filename = basename($file['name']);\n\t\t\t$this->tmp_path = $file['tmp_name'];\n\t\t\t$this->size = $file['size'];\n\t\t\t$this->type = $file['type'];\n\n\n\t\t\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "394bb229047c57cb187d345a2fe500cd", "score": "0.59024405", "text": "public function isValidConfigFile($file);", "title": "" }, { "docid": "d39005ec0b046f5d0acdc27f5e35a9a6", "score": "0.58889246", "text": "public function __construct($file = null)\n {\n if(null !== $file) {\n $this->setFile($file);\n }\n }", "title": "" }, { "docid": "1d3a40598391429b218efe8526e6708d", "score": "0.58867407", "text": "private function checkFile()\n {\n $requestParams = REST::getRequestParams();\n /* Getting the value of url variable */\n $filename = $requestParams['url'];\n $file = dirname(__FILE__) .'/../Controllers'.'/'.$filename.'.php';\n if(file_exists($file))\n {\n require_once($file);\n if(class_exists($filename))\n {\n $filename = new $filename();\n }\n else\n {\n ErrorAndMessages::generalError(\"Class doesnot Exist\",400);\n }\n }else\n {\n ErrorAndMessages::generalError(\"Please enter correct Url\",400);\n }\n }", "title": "" }, { "docid": "f215ba6017b6b082487077db1bb7d362", "score": "0.58830774", "text": "public function setFile($file) \n\t{\n\t\t$this->file = $file;\n\t}", "title": "" }, { "docid": "f948050fc8973d52f8a123a9d67b1c16", "score": "0.5877409", "text": "public function loadFromFile(string $filename);", "title": "" }, { "docid": "5da8e10146f81d3ea7ceb5a28747d6a1", "score": "0.58676726", "text": "public function is_file()\n\t{\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "4d4207e01e002fd43126bb1c92089bbc", "score": "0.5861716", "text": "public function setFile($file){\n\n if(empty($file) || !$file || !is_array($file)){\n\n $this->errors[] = \"There was no file uploaded here\";\n return false; \n\n }elseif($file['error'] != 0){\n\n $this->errors[] = $this->upload_errors_array[$file['error']];\n return false;\n\n }else {\n\n $this->filename = basename($file['name']);\n $this->tmp_path = $file['tmp_name'];\n $this->type = $file['type'];\n $this->size = $file['size'];\n\n }\n }", "title": "" }, { "docid": "4a1bb974e71f8cd1fc16b9cc4fb6435c", "score": "0.58615667", "text": "public function testGetFile()\n\t{\n\t\t//Initilise\n\t\t$log = new Log;\n\t\t$log->init('tests/fixtures/logs/', 'getFile.log');\n\n\t\t$this->assertTrue(is_resource($log->getFile()));\n\t\t$this->assertEquals('stream', get_resource_type($log->getFile()));\n\t}", "title": "" }, { "docid": "4272e382047854a650370f8e4e93a405", "score": "0.5853561", "text": "public function filename($filename);", "title": "" }, { "docid": "368ed15e1156271606636e24f8bfbf9a", "score": "0.5849392", "text": "public function setFile() {\n //Create file string\n $fileString = $this->getLocation().DS.$this->getName().'.'.$this->getformat();\n // Check to see if file ecists on system\n if(file_exists($fileString)) {\n //Open the file\n $file = fopen($fileString, \"r\");\n //Check file has Opened\n if($file !== false) {\n //Set File to property\n $this->_file = $file;\n //Else throw exception \n } else {\n throw new Library\\FeedProccessor\\FeedProccessorException('Cant open provided file');\n }\n //Else throw exception \n } else {\n throw new Library\\FeedProccessor\\FeedProccessorException('Provided File does not exist');\n }\n }", "title": "" }, { "docid": "51c32a05d37766e0f96199094cfe9ddf", "score": "0.5848371", "text": "public function testMissingFile()\n {\n $this->expectException(\\InvalidArgumentException::class);\n \n processor::processFile('tests/testfiles/nofile.xml');\n }", "title": "" }, { "docid": "29994a2c3d78d86e8f1576ab0243262e", "score": "0.5844678", "text": "function __construct($file='') {\r\n\t\tif ($file != '')\r\n\t\t\t$this->set_excel($file);\r\n\t\treturn TRUE;\r\n\t}", "title": "" }, { "docid": "f9e642df52d755ef5d05e1c8618a102b", "score": "0.5836456", "text": "public function supports($fileName);", "title": "" }, { "docid": "4d00a3d7dbf118b1599d3c9705d7ba35", "score": "0.58323467", "text": "public static function file($link)\n {\n }", "title": "" }, { "docid": "9e04e4629af2f05fc4582ba634ee1ebf", "score": "0.5822265", "text": "function validFile($file)\r\n{\r\n //check if file is not empy\r\n if(!empty($file['name'])) {\r\n //directory to save files too\r\n $target_dir = \"profileImages/\";\r\n $target_file = $target_dir . basename($file[\"name\"]);\r\n $imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));\r\n\r\n //check if file type is an image\r\n $check = getimagesize($file[\"tmp_name\"]);\r\n if(!$check) {\r\n return \"File type is not an image\";\r\n }\r\n\r\n //check if file is too large\r\n if ($file[\"size\"] > 500000) {\r\n return \"Sorry, your file is too large.\";\r\n }\r\n //check if image type match jpg jpeg or gif\r\n if($imageFileType != \"jpg\" && $imageFileType != \"png\" && $imageFileType != \"jpeg\"\r\n && $imageFileType != \"gif\" ) {\r\n return \"Sorry, only JPG, JPEG, PNG & GIF files are allowed.\";\r\n }\r\n //error free\r\n return \"\";\r\n }\r\n else{\r\n return \"Field is required\";\r\n }\r\n}", "title": "" }, { "docid": "aa6c69542d666a8ed2b5c9dbf3deadaf", "score": "0.58183926", "text": "public function setFile($filename);", "title": "" }, { "docid": "87fb4b5ff9083a5db810023d9e43bc15", "score": "0.58103925", "text": "public function __construct($file)\n\t{\n\t\t$this->prepare($file);\n\t}", "title": "" }, { "docid": "d0f43d8921935211e5cfc939e7a6b412", "score": "0.5809117", "text": "private static function checkDocument($file) {\n\t\t$extension_ar = explode('.', $file);\n\t\t$extension = end($extension_ar);\n\t\t$accepted_extensions = array('htm', 'html');\n\n\t\tif(!$file || !in_array($extension, $accepted_extensions)) {\n\t\t\tthrow new Exception(\"Invalid file: {$file}, please use a valid file.\");\n\t\t}\n\t}", "title": "" }, { "docid": "48d42f452a50512403e8ebd028c2738e", "score": "0.5805166", "text": "static function file( $file=NULL, $require=FALSE, $params=NULL ) {\r\n // inlude the global page file so that snippets can see it\r\n if( !file_exists( $file )) return false;\r\n @extract( $params );\r\n if( $require ) require_once( $file );\r\n else include( $file );\r\n return true;\r\n }", "title": "" }, { "docid": "481b507a20978e27feed9610711ab90e", "score": "0.5799788", "text": "public function isFile(): bool\n {\n return true;\n }", "title": "" }, { "docid": "226cd3eaf3dba81280670a56969c259a", "score": "0.5796904", "text": "abstract protected function loadFileData(SplFileObject $file);", "title": "" }, { "docid": "debebb47afb48f3361d5887c31b0e0ab", "score": "0.5788824", "text": "public function setFile($file)\n\t{\n\t\t$this->file = $file;\n\t}", "title": "" }, { "docid": "04092692885d4009a8d32a961eecd869", "score": "0.5776738", "text": "public function __construct(FileInterface $file)\n {\n $this->file = $file;\n }", "title": "" }, { "docid": "ba8fef6e9bfae2718b1903cf6ffaa672", "score": "0.5773876", "text": "function addFile($type,$file)\n\t{\n\t\tif(is_file($file))\n\t\t{\n\t\t\t$this->_includes[] = array('type' => $type, 'name' => $file);\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttrigger_error('Le fichier '.$file.' est introuvable. La page risque de ne pas s\\'afficher correctement.',E_USER_WARNING);\n\t\t}\n\t}", "title": "" }, { "docid": "ce541b80b20b914b7923842c5c8d778c", "score": "0.5773633", "text": "public function __construct(string $file)\n {\n if(!is_file($file))\n {\n throw new \\InvalidArgumentException(\"Given name $file is not a valid file\", 20001);\n }\n $this->getInfo();\n $this->subjectFile = $file;\n }", "title": "" }, { "docid": "599e94704483a82c9842fc2be76e8934", "score": "0.5772176", "text": "function __construct( $file, $reason = null )\n {\n $reasonPart = '';\n if ( $reason )\n {\n $reasonPart = \" Reason: $reason.\";\n }\n parent::__construct( \"Could not process file '{$file}'.{$reasonPart}\" );\n }", "title": "" }, { "docid": "acfe053d8fb46f513d857eb8cc49da48", "score": "0.5766287", "text": "public function get_file(): string;", "title": "" }, { "docid": "b3c2b818cbf5baaa269bc57d0efe57d0", "score": "0.5764854", "text": "private static function file(): void\n {\n Debug::setBacklog();\n\n self::fileCheckControllerData();\n\n if(Parameters::getDownloadable()){\n self::fileDownload();\n } else {\n self::filePrintContent();\n }\n }", "title": "" }, { "docid": "52f89137f78566b40a59ba53e54eaf36", "score": "0.5761781", "text": "abstract public function getFileObject($filename);", "title": "" }, { "docid": "5ffe719fd803b2132f2f03751707e8c3", "score": "0.575586", "text": "public function setFile($file)\n\t{\n\t\t# Check if the passed value is empty.\n\t\tif(!empty($file))\n\t\t{\n\t\t\t# Clean it up.\n\t\t\t$file=trim($file);\n\t\t\t# Set the data member.\n\t\t\t$this->file=$file;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t# Explicitly set the data member to NULL.\n\t\t\t$this->file=NULL;\n\t\t}\n\t}", "title": "" }, { "docid": "0bba275faad655f94b07fb308ee4bc0a", "score": "0.5755764", "text": "public function addFile($file)\n\t{\n\t\t// These will be the types of file that will pass the validation.\n\t\t$allowed_filetypes = array(\n\t\t\t'jpg', 'gif', 'bmp', 'png', 'jpeg',\n\t\t\t'doc', 'rtf', 'odf'\n\t\t);\n\t\t\n\t\t// Maximum filesize in BYTES (currently 5MB).\n\t\t$max_filesize = 5242880;\n\t\t\n\t\t// Get the name of the file (including file extension).\n\t\t$filename = $_SESSION['user']['id'].'_'.$file['name'];\n\t\t\n\t\t// Get the extension from the filename.\n\t\t$ext = substr($filename, strpos($filename,'.') + 1, strlen($filename) - 1);\n\n\t\t// Check if the filetype is allowed, if not DIE and inform the user.\n\t\tif(!in_array(strtolower($ext), $allowed_filetypes))\n\t\t\tthrow new Exception('The file you attempted to upload ('.$ext.') is not allowed.');\n\t\n\t\t// Now check the filesize, if it is too large then DIE and inform the user.\n\t\tif(filesize($file['tmp_name']) > $max_filesize)\n\t\t\tthrow new Exception('The file you attempted to upload is too large.');\n\t\n\t\t// Check if we can upload to the specified path, if not DIE and inform the user.\n\t\tif(!is_writable(UPLOAD_PATH))\n\t\t\tthrow new Exception('You cannot upload to the specified directory, please CHMOD it.');\n\t\n\t\t// Upload the file to the specified path.\n\t\tif(move_uploaded_file($file['tmp_name'], UPLOAD_PATH . $filename))\n\t\t{\n\t\t\t$this->filename = $filename;\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "33aaec225771edc3710dc670da7bc1d4", "score": "0.57518375", "text": "public function getFile()\n {\n // TODO: Implement getFile() method.\n }", "title": "" }, { "docid": "666c0154dbcc34362d0bd6547564768b", "score": "0.5743991", "text": "private function generateFile($file, $data)\r\n\t{\r\n\t\tif(file_exists($file))\r\n\t\t{\r\n\t\t\tif(is_array($data))\r\n\t\t\t\textract($data);\r\n\r\n\t\t\tob_start();\r\n\r\n\t\t\trequire $file;\r\n\r\n\t\t\treturn ob_get_clean();\r\n\t\t}\r\n\t\telse\r\n\t\t\tthrow new Exception('Fichier '.$file.' introuvable');\r\n\t}", "title": "" }, { "docid": "785914e2ff63f484725258c0bc8a57a6", "score": "0.5741843", "text": "function dropbox_validate_file($fileName)\n{\n $dropboxDir = dropbox_get_files_dir_path();\n $filePath = $dropboxDir .DIRECTORY_SEPARATOR . $fileName;\n $realFilePath = realpath($filePath);\n // Ensure the path is actually within the dropbox files dir.\n if (!$realFilePath\n || strpos($realFilePath, $dropboxDir . DIRECTORY_SEPARATOR) !== 0) {\n throw new Dropbox_Exception(__('The given path is invalid.'));\n }\n if (!file_exists($realFilePath)) {\n throw new Dropbox_Exception(__('The file \"%s\" does not exist or is not readable.', $fileName));\n }\n if (!is_readable($realFilePath)) {\n throw new Dropbox_Exception(__('The file \"%s\" is not readable.', $fileName));\n }\n return $realFilePath;\n}", "title": "" }, { "docid": "0702b900d901ff7b5853b92d2ef5b9e5", "score": "0.57395697", "text": "function loadFile($path);", "title": "" }, { "docid": "1dbd15be955d04ec94ec89d09c7de42e", "score": "0.5715223", "text": "public function __construct($file, $params, $validators){\n\t\t$this->file = $file;\n\t\tparent::__construct($params, $validators);\n\t}", "title": "" }, { "docid": "e643a37a62bca64c743f55a02d13df1e", "score": "0.57126707", "text": "public function __construct($filepath)\n {\n $this->filepath = $filepath;\n }", "title": "" } ]
0db8e50ba8d421c22432c8cabd73a62c
Returns next message ID
[ { "docid": "976676cc0f8ce31f47bcf3498b368973", "score": "0.73656094", "text": "protected function getMsgId() {\n $this->msg_id++;\n return $this->msg_id;\n }", "title": "" } ]
[ { "docid": "c286975efd890ea27b110181836bc00c", "score": "0.8548823", "text": "public function getNextMessageIdentifier()\n {\n return ++$this->messageIdSeq;\n }", "title": "" }, { "docid": "5d1e50d18c8ab8a0f3d02b494ed6914c", "score": "0.71405333", "text": "public function getNextId()\n {\n return $this->oMapper->getNextId();\n }", "title": "" }, { "docid": "f780adc76aeef22d797bd1515aebaece", "score": "0.70056564", "text": "public function nextId(){ }", "title": "" }, { "docid": "1e2cfb53179af0e66224a763efcd8301", "score": "0.69894266", "text": "private function nextPageId() {\n $pageLen = sizeof($this->pageList['pages']);\n\n $lastId = $this->pageList['pages'][$pageLen - 1]['id'];\n\n return ($lastId + 1);\n }", "title": "" }, { "docid": "85cb4ddb856a5f2ccd026776d06eca9f", "score": "0.6891068", "text": "public function getNextId()\n {\n $next_id = $this->connection->get($this->getNextIdKey());\n\n if (!$next_id) {\n $this->connection->set($this->getNextIdKey(), 1);\n\n return 1;\n }\n\n return (integer) $next_id;\n }", "title": "" }, { "docid": "d52435001416d7c6206b4a3f878321cb", "score": "0.6876673", "text": "public static function getNextId(){\n\t\t$connection = self::connectSQL();\n\t\t$result = $connection->query('SHOW TABLE STATUS LIKE \\'events\\'');\n\t\t$data = $result->fetch_assoc();\n\t\treturn $data['Auto_increment'];\n\t}", "title": "" }, { "docid": "12f6db5e9c5fdd7dddfc88dd212a6c60", "score": "0.6803842", "text": "protected function getNextMessage() {\n\t\treturn DonationQueue::queueMessageToNormalized(\n\t\t\tPendingDatabase::get()\n\t\t\t\t->fetchMessageByGatewayOldest( 'globalcollect' ) );\n\t}", "title": "" }, { "docid": "7c6b23351f5e93f9fa9d704d02362f17", "score": "0.6765405", "text": "function getNextId() {\n\t\t$query = \"select min( $this->pKey ) from $this->table where $this->pKey > $this->id\";\n\t\treturn $this->getDb()->query( $query )->getFirst();\n\t}", "title": "" }, { "docid": "1a27bc5ea43b1ea30b14dd3ebf04223a", "score": "0.67466486", "text": "public function getNextSubscriptionIdentifier()\n {\n return ++$this->subscriptionIdSeq;\n }", "title": "" }, { "docid": "497e42e874c4c69b5b11873858e05c92", "score": "0.671511", "text": "public function getNextID()\n {\n try{\n //define the query to get the next ID\n $this->dbQuery = \"SELECT CustomerID FROM customer\n ORDER BY CustomerID DESC LIMIT 0,1\";\n \n $results = $this->dbObj->query($this->dbQuery);\n \n while($row = mysqli_fetch_array($results))\n {\n return $row['CustomerID'] +1;\n }\n }catch(Exception $e)\n {\n echo $e->getMessage();\n }\n }", "title": "" }, { "docid": "6c2b540da15d4b0531c0286ce30b760a", "score": "0.6626967", "text": "public function get_next_order_id()\r\r\n\t{\r\r\n\t\t$res = $this->db->select('MAX(o_id) as o_id')\r\r\n\t\t\t\t\t\t->from('mb_orders')\r\r\n\t\t\t\t\t\t->order_by('o_id','desc')\r\r\n\t\t\t\t\t\t->get();\r\r\n\r\r\n\t\tif ($res->num_rows()>0 && isset($res->result_array()[0]['o_id']) && $res->result_array()[0]['o_id']) \r\r\n\t\t{\r\r\n\t\t\t$current = $res->result_array()[0]['o_id'];\r\r\n\t\t\t$current +=1;\r\r\n\t\t\treturn $current;\r\r\n\t\t} else {\r\r\n\t\t\treturn 3400;\r\r\n\t\t}\r\r\n\t}", "title": "" }, { "docid": "4b2973a639b5a9de8606c42427893d00", "score": "0.6569293", "text": "protected function _getNextEntityId()\n {\n if (!$this->_nextEntityId) {\n /** @var $addressResource \\Magento\\Customer\\Model\\ResourceModel\\Address */\n $addressResource = $this->_addressFactory->create()->getResource();\n $addressTable = $addressResource->getEntityTable();\n $this->_nextEntityId = $this->_resourceHelper->getNextAutoincrement($addressTable);\n }\n return $this->_nextEntityId++;\n }", "title": "" }, { "docid": "9731607dfe6141697b42f8e6f49a4c21", "score": "0.6452705", "text": "private function getNextId(): int\n {\n if ($this->counter === null) {\n $this->counter = $this->initialValue;\n } else {\n $this->counter++;\n }\n\n return $this->counter;\n }", "title": "" }, { "docid": "96250b001e23a6c1ff9fbc7d14b005e1", "score": "0.6451161", "text": "function get_next_id($forum_id=0)\n\t{\n\t\tif ( empty($forum_id) )\n\t\t{\n\t\t\t$res = $forum_id;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$forum_main = $this->data[$forum_id]['forum_main'];\n\n\t\t\t// no subs (not possible btw :)) : next is itself\n\t\t\tif ( empty($this->data[$forum_main]['subs']) )\n\t\t\t{\n\t\t\t\t$res = $forum_id;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// find next child\n\t\t\t\t$tsubs = array_flip($this->data[$forum_main]['subs']);\n\t\t\t\t$i = $tsubs[$forum_id] + 1;\n\t\t\t\t// already in last position : next is itself\n\t\t\t\tif ( $i >= count($this->data[ $this->data[$forum_id]['forum_main'] ]['subs']) )\n\t\t\t\t{\n\t\t\t\t\t$res = $forum_id;\n\t\t\t\t}\n\t\t\t\t// get next\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$res = $this->data[ $this->data[$forum_main]['subs'][$i] ]['last_child_id'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $res;\n\t}", "title": "" }, { "docid": "cebec24011cb9ca3aca9ef7a39fae522", "score": "0.6445122", "text": "public function getMessageId();", "title": "" }, { "docid": "cebec24011cb9ca3aca9ef7a39fae522", "score": "0.6445122", "text": "public function getMessageId();", "title": "" }, { "docid": "2d1bfda247c53ad3a1d875b4ac6467b3", "score": "0.6438609", "text": "public function nextId()\n {\n return $this->query(\"SHOW TABLE STATUS LIKE ?\", [$this->table])->fetch()->Auto_increment;\n }", "title": "" }, { "docid": "d0b2d341196ea116efdc2a4235f431aa", "score": "0.64320725", "text": "public function sqlNextId();", "title": "" }, { "docid": "b0b42ca6500c494d0d884daf0ad77793", "score": "0.6419711", "text": "public function nextJobId()\n\t{\n\t\treturn (string) Redis::incr('test:like_log_id');\n\t}", "title": "" }, { "docid": "e0cc8eb3d5a5ea1f7e096cd96067cdac", "score": "0.641723", "text": "public function getMessageId() {\n\t\treturn (int) $this->message_id;\n\t}", "title": "" }, { "docid": "861d9cf50f72316fbdfaf9ab885e357e", "score": "0.64147717", "text": "public function getLastMessageID()\n {\n }", "title": "" }, { "docid": "d267ae93202dcb57e79c23f6faba0efa", "score": "0.6397101", "text": "public function getMessageId() {\n\treturn ($this->messageId);\n}", "title": "" }, { "docid": "046453f256ff49236a235b9fa1635038", "score": "0.6376831", "text": "public function getLastMessageId()\n {\n $this->dao->select('pm_id');\n $this->dao->from($this->getTable_pmMessages()) ;\n $this->dao->orderBy('pm_id', 'DESC') ;\n $this->dao->limit(1) ;\n \n $result = $this->dao->get() ;\n $aux = $result->row();\n return $aux['pm_id']; \n }", "title": "" }, { "docid": "d64f88372ae4dd0522006c24bf9a8faa", "score": "0.63763624", "text": "public static function getNextId()\n {\n\n return 'tb' . self::$_counter++;\n }", "title": "" }, { "docid": "64a401c063cb90032a2f13ae3463b751", "score": "0.63651246", "text": "function getNextSequence()\n\t{\n\t\t$query = sprintf(\"insert into %ssequence (seq) values (ident_incr('%ssequence'))\", $this->prefix, $this->prefix);\n\t\t$this->_query($query);\n\n\t\t$query = sprintf(\"select ident_current('%ssequence')+1 as sequence\", $this->prefix);\n\t\t$result = $this->_query($query);\n\t\t$tmp = $this->_fetch($result);\n\n\n\t\treturn $tmp->sequence;\n\t}", "title": "" }, { "docid": "bbb42db1062f98581ae1312dae5b2fb7", "score": "0.63595515", "text": "public function nextJobId()\n {\n return (string) $this->connection()->incr('job_id');\n }", "title": "" }, { "docid": "b2af0019b004c952aef4b47ff84708c8", "score": "0.63345563", "text": "static public function getNextPrimaryKey()\r\n\t{\r\n\t\t$oTableCells = Core_Entity::factory(\"Table_Cell\");\r\n\t\t$oTableCells\r\n\t\t\t->queryBuilder()\r\n\t\t\t->clearOrderBy()\r\n\t\t\t->orderBy('id', 'DESC')\r\n\t\t\t->limit(1);\r\n\t\t$aTableCells = $oTableCells->findAll(false);\r\n\t\treturn intval(reset($aTableCells)->id);\r\n\t}", "title": "" }, { "docid": "1299f88e11131cac96cefa4582c5f22d", "score": "0.63276434", "text": "public function getMessageId()\n {\n return $this->data->message_id;\n }", "title": "" }, { "docid": "e404d6c9e4f8b10c803ae31d18f7f7f0", "score": "0.63138306", "text": "public function getMessageId()\n {\n return $this->message_id;\n }", "title": "" }, { "docid": "c9a72688b185f1ece55c005e58502f02", "score": "0.6267267", "text": "public function getNextFreeId()\n {\n $continue = true;\n while($continue) {\n $id = $this\n ->getRedisClient(true)\n ->incr($this->storageKeyBuilder->generateKeyPrimaryIncr());\n\n if(!$this->getRedisClient(true)->exists($this->storageKeyBuilder->generateKeyData($id))) {\n $continue = false;\n }\n }\n\n return $id;\n }", "title": "" }, { "docid": "73105391eb458ec5bee5a4c3cc172143", "score": "0.62656486", "text": "public function get_id_message()\n {\n return $this->id_message;\n }", "title": "" }, { "docid": "9521e0437b59bbfcbab58640d640bb65", "score": "0.62065405", "text": "public function getNextTid() {\n \n $nextTid = 1;\n \n foreach ($this->sessionTids as $key => $value) {\n \n if(intval($value) >= $nextTid)\n $nextTid = intval($value) + 1;\n }\n \n return $nextTid; \n \n }", "title": "" }, { "docid": "c944783d757fb2e4b240a8292f74e449", "score": "0.62051624", "text": "function nextID($ID = '') {\r\n\r\n global $prefix, $SYS;\r\n\r\n if (empty($ID)) {\r\n $ID = $this->ID;\r\n }\r\n\r\n\r\n $qry = \"SELECT `ID` from {$prefix}_\" . $this->name . \" WHERE `ID`>$ID AND `ID`>1 ORDER BY `ID` ASC\";\r\n\r\n $bdres = _query($qry);\r\n /* $rawres=fetch_array($bdres);\r\n $this->ID=$rawres[\"ID\"];\r\n $this->properties=array_slice($rawres,1); */\r\n if ($bdres)\r\n if ($rawres = _fetch_array($bdres))\r\n return $rawres[\"ID\"];\r\n else\r\n return $ID;\r\n }", "title": "" }, { "docid": "94a28a40d2e00fdeb44059c068edb5aa", "score": "0.6204136", "text": "public function sel_next_playlist_id()\n\t{\n\t\t$playlist_id = null;\n\t\ttry{\n\t\t\t$t_playlist = new Model_T_Playlist($this->db, $this->client_id);\n\t\t\t$playlist_id = $t_playlist->sel_next_id();\n\t\t} catch(Exception $e){\n\t\t\tKohana::$log->add(Log::ERROR, Kohana_Exception::text($e))->write();\n\t\t\t$playlist_id = null;\n\t\t}\n\t\treturn $playlist_id;\n\t}", "title": "" }, { "docid": "798e5129e4b620a67082fb516342d596", "score": "0.6200408", "text": "public function return_next_id($id_field, $table_name) {\n $this->db->select_max($id_field);\n $result = $this->db->get($table_name)->row();\n $next_id = $result->id + 1;\n return $next_id;\n }", "title": "" }, { "docid": "9c78295715bebf02c6b16d267c8889c8", "score": "0.6173218", "text": "public function getLastMessageID()\n {\n return $this->lastMessageID;\n }", "title": "" }, { "docid": "bb4b5ba0b51f6ae2086098657ac3f51b", "score": "0.6138934", "text": "public static function loadNextCourseID()\n {\n $conn = SQLConnector::createConn();\n $stat = $conn->prepare(\"SELECT MAX(id) FROM course;\");\n $stat->execute();\n $result = $stat->get_result();\n\n $row = $result->fetch_array(MYSQLI_NUM);\n $id = $row[0] + 1;\n $conn->close();\n return $id;\n\n }", "title": "" }, { "docid": "887af6824f32159b14014084658da58d", "score": "0.6116913", "text": "public function getNextPlayerId()\n {\n $nbPlayers = count($this->gameOrder);\n $currentPlayerId = (string) $this->currentPlayer->getId();\n $nextPlayerPosition = (array_search($currentPlayerId, $this->gameOrder) + 1) % $nbPlayers;\n\n $pos = $nextPlayerPosition;\n do {\n $player = $this->get($this->gameOrder[$pos]);\n\n if ($player->getState() === HangmanPlayer::STATE_IN_GAME) {\n return PlayerId::create($this->gameOrder[$pos]);\n }\n\n $pos = ($pos + 1) % $nbPlayers;\n } while ($pos !== $nextPlayerPosition);\n\n return null;\n }", "title": "" }, { "docid": "505e009d40155f3e2206609c674d60ec", "score": "0.61013126", "text": "public function nextSequenceId()\n {\n $platform = $this->tableGateway->adapter->getPlatform();\n $platformName = $platform->getName();\n\n switch ($platformName) {\n case 'Oracle':\n $sql = 'SELECT ' . $platform->quoteIdentifier($this->sequenceName) . '.NEXTVAL as \"nextval\" FROM dual';\n break;\n case 'PostgreSQL':\n $sql = 'SELECT NEXTVAL(\\'' . $this->sequenceName . '\\')';\n break;\n default :\n return;\n }\n\n $statement = $this->tableGateway->adapter->createStatement();\n $statement->prepare($sql);\n $result = $statement->execute();\n $sequence = $result->current();\n unset($statement, $result);\n return $sequence['nextval'];\n }", "title": "" }, { "docid": "a6aabdd8a974b9597c27533b2673f8bd", "score": "0.60870016", "text": "public function PullNextQuestionID()\n {\n $questionID = 0;\n \n $foundNextQues = FALSE;\n $lvlQAs = $this->GetLvlQAs();\n \n for($index = 0; $index < count($lvlQAs) && !$foundNextQues; $index++)\n {\n $lvlQA = $lvlQAs[$index];\n \n if(!$lvlQA->IsAnswerIdSet())\n {\n $foundNextQues = TRUE;\n $questionID = $lvlQA->GetQuestionId();\n }\n }\n \n return $questionID;\n }", "title": "" }, { "docid": "180bfbcfefeb03248c299ca5f0b361cd", "score": "0.60702014", "text": "public function getNextPubkey()\n {\n return $this->next_pubkey;\n }", "title": "" }, { "docid": "8e578c8fc138631bf0987146710c2049", "score": "0.6049717", "text": "public function getIdMessage() \n\t{\n\t\treturn $this->idMessage;\n\t}", "title": "" }, { "docid": "fac5ffd3f280d5eadc9205ded328b44b", "score": "0.6047472", "text": "public function requestSequenceId()\n {\n $id = $this->_counter++;\n $this->_sequenceIds[] = $id;\n return $id;\n }", "title": "" }, { "docid": "7a10285fbb6a72f6fd143e92e85cbe23", "score": "0.60356337", "text": "public function getMessageId()\n {\n }", "title": "" }, { "docid": "fd5908a4c952f68fcb1f3130c6a6f5fa", "score": "0.60342866", "text": "public function getMessageId()\n {\n return $this->messageId;\n }", "title": "" }, { "docid": "ad774355b2a5ece856885741ee141aa8", "score": "0.5992667", "text": "function jpid_next_customer_id() {\n\treturn JPID()->db_customers->get_next_id();\n}", "title": "" }, { "docid": "fe5d77a421096410a52a36de3f6747a2", "score": "0.59501016", "text": "function NextId($sequencename=false, $idcolumn=false)\n\t{\n\t\tif (!$sequencename) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$query = \"SELECT \".$sequencename.\".nextval FROM dual\";\n\t\t$nextid = $this->FetchOne($query);\n\t\treturn $nextid;\n\t}", "title": "" }, { "docid": "a1ee979c79ac853ad2a94814ed83526c", "score": "0.5947704", "text": "public function getNext() {\n try {\n /* Assume the counter is created, and fetch it */\n $result = $this->_collection->findAndModify(\n [\n '_id' => $this->_counterName\n ],\n [\n '$inc' => [\n 'seq' => 1\n ]\n ],\n [\n 'seq' => TRUE\n ],\n [\n 'new' => TRUE\n ]\n );\n\n if ( is_array( $result ) && isset( $result[ 'seq' ] ) && is_int( $result[ 'seq' ] ) )\n return $result['seq'];\n \n // insert the new counter and return 1;\n $this->_collection->save( [ '_id' => $this->_counterName, 'seq' => 1 ] );\n\n return 1;\n } catch ( Exception $e ) {\n return FALSE;\n }\n }", "title": "" }, { "docid": "d15134d60431a7329d10f27ce34dbd70", "score": "0.59399307", "text": "function nextid($seq_name) {\r\n if (!$this->connect()) {\r\n return 0; /* we already complained in connect() about that. */\r\n };\r\n \r\n if ($this->lock($this->Seq_Table)) {\r\n /* get sequence number (locked) and increment */\r\n $q = sprintf(\"select %s from %s where %s = '%s'\",\r\n $this->Seq_ID_Col,\r\n $this->Seq_Table,\r\n $this->Seq_Name_Col,\r\n $seq_name);\r\n $id = odbc_exec($this->Link_ID, $q);\r\n $res = 0;\r\n if (odbc_fetch_row($id, 1)) {\r\n $res = array();\r\n $count = odbc_num_fields($id);\r\n for ($i=1; $i<=$count; $i++) {\r\n $res[strtolower(odbc_field_name($id, $i))] = odbc_result($id, $i);\r\n }\r\n }\r\n\r\n /* No current value, make one */\r\n if (!is_array($res)) {\r\n $currentid = 0;\r\n $q = sprintf(\"insert into %s ( %s, %s ) values('%s', %s)\",\r\n $this->Seq_Table,\r\n $this->Seq_Name_Col,\r\n $this->Seq_ID_Col,\r\n $seq_name,\r\n $currentid);\r\n $id = odbc_exec($this->Link_ID, $q);\r\n } else {\r\n $currentid = $res[$this->Seq_ID_Col];\r\n }\r\n $nextid = $currentid + 1;\r\n $q = sprintf(\"update %s set %s = '%s' where %s = '%s'\",\r\n $this->Seq_Table,\r\n $this->Seq_ID_Col,\r\n $nextid,\r\n $this->Seq_Name_Col,\r\n $seq_name);\r\n $id = odbc_exec($this->Link_ID, $q);\r\n $this->unlock();\r\n } else {\r\n $this->halt(\"cannot lock \".$this->Seq_Table.\" - has it been created?\");\r\n return 0;\r\n }\r\n return $nextid;\r\n }", "title": "" }, { "docid": "095be8551121acd8c5f2941c6134211e", "score": "0.5935952", "text": "public function getSequenceNumber();", "title": "" }, { "docid": "095be8551121acd8c5f2941c6134211e", "score": "0.5935952", "text": "public function getSequenceNumber();", "title": "" }, { "docid": "16db4c32ed8982b04082a6c6f592b788", "score": "0.59293634", "text": "public function getIdMessage()\n {\n return $this->idMessage;\n }", "title": "" }, { "docid": "053a591e4d55a2fe22e7f942b36ce3e9", "score": "0.5917897", "text": "public function getIdMsg()\n {\n return $this->idMsg;\n }", "title": "" }, { "docid": "6dccd8c4489f9eebdb97e8e5a2ef85ce", "score": "0.59161615", "text": "public function getMessageId()\n {\n $messageId = $this->getParameter('messageId');\n\n if (!$this->getParameter('messageId')) {\n $this->setMessageId($this->generateMessageId());\n }\n\n return $this->getParameter('messageId');\n }", "title": "" }, { "docid": "0e600e92d8d1cd55cd7e3957420b53a8", "score": "0.5907917", "text": "protected function getNextIncrement()\n {\n return ++$this->counter;\n }", "title": "" }, { "docid": "4d30ead3399c5826aaf409bb38600f54", "score": "0.58851314", "text": "public function getNextKey()\n {\n return $this->nextKey;\n }", "title": "" }, { "docid": "4d30ead3399c5826aaf409bb38600f54", "score": "0.58851314", "text": "public function getNextKey()\n {\n return $this->nextKey;\n }", "title": "" }, { "docid": "74b4d79979362da5c945f87a06a26ef2", "score": "0.58843344", "text": "public function nextId(): int\n {\n $nextId = random_int(1000, 2000000000);\n\n while (FragmentModel::find($nextId)) {\n $nextId = random_int(1000, 2000000000);\n }\n\n return $nextId;\n }", "title": "" }, { "docid": "db02404f3cf6fe156bfcab0f95016e29", "score": "0.58827055", "text": "private function getNewID()\n\t{\n\t\t$ids = array_keys($this->metadata['posts']);\n\t\t$lastId = (count($ids) > 0) ? max($ids) : 0;\n\n\t\treturn $lastId + 1;\n\t}", "title": "" }, { "docid": "daa6bdf509af49fe154353da478ebf0d", "score": "0.58789414", "text": "public function getNextEvent()\n {\n return isset($this->eventIds[$this->currentEvent]) ? $this->eventIds[$this->currentEvent] : null;\n }", "title": "" }, { "docid": "7f354eb355c9f7ea8d7f216304835dc8", "score": "0.58568823", "text": "function getNextAttempt($item_id){\n $query = \"select max(attempt) as attempt from email_history where item_id = \" . $item_id;\n\n $queryResponse = db::query($query);\n if($queryResponse){\n $queryResponse = $queryResponse[0];\n return $queryResponse['attempt'] + 1;\n }\n return 1;\n }", "title": "" }, { "docid": "0ba8af44a5b98982a7d0a6aabb9aa64e", "score": "0.58557916", "text": "function sql_nextid () {\n return mysql_insert_id($this->id);\n }", "title": "" }, { "docid": "41ee3c9a2f4561e8e07ca5f620889b42", "score": "0.58472985", "text": "protected function getNextOffset(): int\n {\n return $this->nextOffset;\n }", "title": "" }, { "docid": "2ca76eca880b7636ec556f88b7b73b29", "score": "0.58334595", "text": "function getNextBillboardNumber() {\n\t\t$billboard = BillboardQuery::create()\n\t\t\t->filterByAddress($this)\n\t\t\t->orderByNumber()\n\t\t\t->findOne();\n\t\t\t\n\t\tif (empty($billboard))\n\t\t\treturn 1;\n\t\treturn $billboard->getNumber()+1;\n }", "title": "" }, { "docid": "7ce500ae225f71a1cb0d087cacbc9a2a", "score": "0.58253187", "text": "public function sel_next_prog_id()\n\t{\n\t\t$prog_id = null;\n\t\ttry{\n\t\t\t$t_prog = new Model_T_Prog($this->db, $this->client_id);\n\t\t\t$prog_id = $t_prog->sel_next_id();\n\t\t} catch(Exception $e){\n\t\t\tKohana::$log->add(Log::ERROR, Kohana_Exception::text($e))->write();\n\t\t\t$prog_id = null;\n\t\t}\n\t\treturn $prog_id;\n\t}", "title": "" }, { "docid": "7ce500ae225f71a1cb0d087cacbc9a2a", "score": "0.58253187", "text": "public function sel_next_prog_id()\n\t{\n\t\t$prog_id = null;\n\t\ttry{\n\t\t\t$t_prog = new Model_T_Prog($this->db, $this->client_id);\n\t\t\t$prog_id = $t_prog->sel_next_id();\n\t\t} catch(Exception $e){\n\t\t\tKohana::$log->add(Log::ERROR, Kohana_Exception::text($e))->write();\n\t\t\t$prog_id = null;\n\t\t}\n\t\treturn $prog_id;\n\t}", "title": "" }, { "docid": "d7300befbb011d0867bc335f7530eb47", "score": "0.5823052", "text": "function nextId($seqname, $ondemand = true)\n {\n $result = $this->dbc->nextId($seqname, $ondemand);\n if (PEAR::isError($result)) {\n return Tree::raiseError(TREE_ERROR_DB_ERROR, null, null, $result->getMessage() . '-' . $result->getUserInfo());\n }\n return $result;\n }", "title": "" }, { "docid": "d4ecaa123ce78f28dbfade7ff8b84d35", "score": "0.5812496", "text": "function generateMessageId() {\n\t\treturn md5(md5(microtime(true).\"\"));\n\t}", "title": "" }, { "docid": "e79ec32c3bcf7a56b1ac97383925edb9", "score": "0.58098835", "text": "function get_next_post_id( $post_id ) {\n\t global $post;\n\t // Store the existing post object for later so we don't lose it\n\t $oldGlobal = $post;\n\t // Get the post object for the specified post and place it in the global variable\n\t $post = get_post( $post_id );\n\t // Get the post object for the next post\n\t $next_post = get_next_post();\n\t // Reset our global object\n\t $post = $oldGlobal;\n\t if ( '' == $next_post )\n\t return 0;\n\t return $next_post->ID;\n\t}", "title": "" }, { "docid": "643825660f054bdd61727927890be748", "score": "0.578532", "text": "function getMembershipId() {\r\n\t\t$db = JFactory::getDbo() ;\r\n\t\t$sql = 'SELECT MAX(membership_id) FROM #__osmembership_subscribers';\r\n\t\t$db->setQuery($sql);\r\n\t\t$membershipId = (int) $db->loadResult() ;\r\n\t\tif (!$membershipId) {\r\n\t\t\t$membershipId = (int) OSMembershipHelper::getConfigValue('membership_id_start_number');\r\n\t\t\tif (!$membershipId)\r\n\t\t\t\t$membershipId = 1000 ;\r\n\t\t} else {\r\n\t\t\t$membershipId++ ;\r\n\t\t}\t\r\n\t\t\r\n\t\treturn $membershipId ;\r\n\t}", "title": "" }, { "docid": "d0d22c58febd8a01298168203835c1bf", "score": "0.5781541", "text": "function nextId(){\n if (!file_exists(\"tablaPedidos.json\")) {\n $json = \"\";//'' no va\n }else {\n $json = file_get_contents(\"tablaPedidos.json\");\n }\n if ($json == \"\") {\n return 1;\n }\n\n $array = json_decode($json, true);\n $ultimoUsuario = array_pop($array[\"usuarios\"]);\n $lastId = $ultimoUsuario[\"id\"];\n\n return $lastId + 1;\n }", "title": "" }, { "docid": "b1ff1f8b6e26e85220b7f8be97593057", "score": "0.5762532", "text": "public function getNextUserID()\n {\n $lastID = $this->lastUserID();\n $year = substr($lastID, 0, (strpos($lastID, '-') ?: +1));\n if ($year >= date(\"Y\")) {\n return $year . '-' . ($this->getUserNo($lastID) + 1);\n } else {\n return ($year + 1) . '-1001';\n }\n }", "title": "" }, { "docid": "af29d170949853e96082b50c070b724a", "score": "0.5760884", "text": "public function getNextIdleTask()\n {\n $sql=\"select id from is_tasks where stage=2 order by mru desc\";\n $retTaskId=intval(db_sql($sql));\n $retTaskId=$retTaskId>0?$retTaskId:-1;\n if ($retTaskId>0) {\n db_sql(\"update is_tasks set mru=mru+1 where id=$retTaskId\");\n }\n $this->setTaskId($retTaskId);\n return $retTaskId;\n }", "title": "" }, { "docid": "6b319ae481bdc4ace59440d0b93efce0", "score": "0.57543486", "text": "function nextID( $table, $field=\"ID\" )\r\n {\r\n $result = mysql_query( \"SELECT $field FROM $table Order BY $field DESC LIMIT 1\", $this->Database );\r\n\r\n $id = 1;\r\n if ( $result )\r\n {\r\n if ( !mysql_num_rows( $result ) == 0 )\r\n {\r\n $array = mysql_fetch_row( $result );\r\n $id = $array[0];\r\n $id++;\r\n }\r\n else\r\n $id = 1;\r\n }\r\n return $id;\r\n }", "title": "" }, { "docid": "a11a470238a307b6299ad5b0c444f743", "score": "0.57523054", "text": "protected function getUniqueId() {\n $newId = 0;\n for($i = 0;$i < count($this->TaskDataSource);$i++)\n {\n if(isset($this->TaskDataSource[$i])){\n if($this->TaskDataSource[$i]->TaskId >= $newId){\n $newId = $this->TaskDataSource[$i]->TaskId + 1;\n }\n }\n }\n return $newId; // Placeholder return for now\n }", "title": "" }, { "docid": "860b9d93f2a82085995eb3f88cf80029", "score": "0.57203084", "text": "private function selectID()\n {\n $result = $this->sdb->query('select nextval(\\'id_seq\\') as id',array());\n $row = $this->sdb->fetchrow($result);\n return $row['id'];\n }", "title": "" }, { "docid": "d795374c5bd5ae9290959094d9343182", "score": "0.57198167", "text": "public static function getNextId($table_name){\n $table_stat=DB::select('SHOW TABLE STATUS where name= ?',[$table_name]);\n $id=$table_stat[0]->Auto_increment;\n if(is_null($id))\n return 0;\n return $id;\n }", "title": "" }, { "docid": "bb01bb72d3c3f6692adb6a9947dde3da", "score": "0.5695642", "text": "public function getNextSequence()\n {\n $objects = SevDeskApi::getFromSevDesk((new SevSequence)->objectName);\n $nextSequence = null;\n\n foreach($objects as $object)\n {\n if ($object['forObject'] == $this->objectName)\n $nextSequence = $object['nextSequence'];\n }\n\n return $nextSequence;\n }", "title": "" }, { "docid": "1f652d6c77404c44742bea2db7b76d63", "score": "0.5691925", "text": "function sql_nextid() {\n return $this->is_connected() ? $this->_connect_id->lastInsertRowID() : false;\n }", "title": "" }, { "docid": "0ec20dff305b37224884ec49e8d8c844", "score": "0.56891656", "text": "public function getNextId($type)\n {\n $type = ucwords($type);\n $key = \"last{$type}Id\";\n $user = $this->getUserRecord();\n if($user === false)\n return false;\n\n if(!isset($user[$key]))\n $user[$key] = '';\n $nextIntId = base_convert($user[$key], 31, 10) + 1;\n $nextId = base_convert($nextIntId, 10, 31);\n\n /*$nextId = $this->getAttribute($type);\n if($nextId === false)\n $nextId = '';\n $nextIntId = base_convert($nextId, 31, 10) + 1;\n $nextId = base_convert($nextIntId, 10, 31);*/\n $this->update(array($key => $nextId));\n return $nextId;\n }", "title": "" }, { "docid": "5bf074e2d8b03487a7a5ba9488b16ed2", "score": "0.568876", "text": "public function getNextOrderNumber() {\r\n\t\t$number = $this->find('first', array('order' => 'number DESC'), -1);\r\n\t\treturn (int)$number['Order']['number'] + 1;\t\r\n\t}", "title": "" }, { "docid": "43a1a0f737a9a9e07f11cda5e445058f", "score": "0.5686438", "text": "public function getNewUid() {\n\t\treturn $this->highestUid + 1;\n\t}", "title": "" }, { "docid": "d5f24b26b822b2ccc81d0b71daa526d9", "score": "0.5683725", "text": "function nextId(){\n if(!file_exists(\"db.json\")){\n $json = \"\";\n } else {\n $json= file_get_contents(\"db.json\");\n }\n\n //Que pasa si devuelve una cadena vacía\n if($json === \"\"){\n return $lastID = 1;\n }\n $usuariosArray = json_decode($json, true);\n\n $lastUser = array_pop($usuariosArray[\"usuarios\"]);\n $lastId = $lastUser[\"id\"];\n return $lastId + 1;\n}", "title": "" }, { "docid": "a0234cd09e1e1bf8006379379bf8f7e7", "score": "0.5667189", "text": "public static function nextId()\n {\n return (self::$connection) ? mysqli_insert_id(self::$connection) : false;\n }", "title": "" }, { "docid": "6d566181f590f5d517ea17718e536ebd", "score": "0.565295", "text": "public function getNext ( ){}", "title": "" }, { "docid": "9be834bcd77b76de67dd8268e4163727", "score": "0.5652454", "text": "function generateNextTestId($db)\n{\n\t$query = \"SELECT MAX(id) FROM tests\";\n\t$result = $db->query($query);\n\tif(!$result)\n\t\treturn $result;\n\t\n\t$row = $result->fetch_array();\n\t\n\t$maxId = $row[0] + 1;\n\t//$maxId = $row->id;//or else $row->MAX(id)\n\treturn $maxId;\n}", "title": "" }, { "docid": "bd1679802fe4d32191ce0bfcc11de74c", "score": "0.5649398", "text": "function getNextGroupGid()\n\t{\n\t\tglobal $conf;\n\n\t\t$search='('.$conf->global->LDAP_KEY_GROUPS.'=*)';\n\t\t$result = $this->search($this->groups,$search);\n\t\tif($result)\n\t\t{\n\t\t\t$c = $result['count'];\n\t\t\t$gids = array();\n\t\t\tfor($i=0;$i<$c;$i++)\n\t\t\t{\n\t\t\t\t$gids[] = $result[$i]['gidnumber'][0];\n\t\t\t}\n\t\t\trsort($gids);\n\n\t\t\treturn $gids[0]+1;\n\t\t}\n\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "c7f3b75bca47a755b1f0a641218d63b5", "score": "0.56407607", "text": "private function generateNextQuestion(){\n while(true) {\n $id = rand($this->minId, /*$this->maxId*/20);\n\n if (!in_array($id, $this->answeredQuestions)) {\n array_push($this->answeredQuestions,$id);\n return $id;\n }\n }\n }", "title": "" }, { "docid": "cc3a62c690702162933e013ff5efd683", "score": "0.5634092", "text": "public function getNext()\n {\n return isset($this->items['next']) ? $this->items['next'] : null;\n }", "title": "" }, { "docid": "91bfcea8dbf1b95dda5520de007447cc", "score": "0.5625901", "text": "public function generateMessageId()\n {\n $hash = hash('sha256', microtime());\n\n return substr($hash, 0, 30);\n }", "title": "" }, { "docid": "2efa18a91ce194104fd931d09f1c413e", "score": "0.56168437", "text": "public function getMessageId(): ?string\n {\n return $this->getProp('message_id');\n }", "title": "" }, { "docid": "c838507475bca84f117ab869470a7a65", "score": "0.56157106", "text": "private function createUniqueId() : int\n {\n return ++$this->lastId;\n }", "title": "" }, { "docid": "2b59dafea9593d88bba2320e8b4a773e", "score": "0.5598063", "text": "public function getNextText()\n {\n return _t(__CLASS__ . '.NEXT', 'Next');\n }", "title": "" }, { "docid": "7b596e9ef110581d0c9797597bf88a05", "score": "0.5597251", "text": "public function getNextProcess() {\n\t\t$bean = $this->unbox();\n\t\t$processes = $bean->with(' AND `status` = \"Queued\" ORDER BY `id` ASC LIMIT 1 ')->ownProcess;\n\t\treturn end($processes);\n\t}", "title": "" }, { "docid": "3eabfd7b05c3b837e1b66c419ccc5108", "score": "0.5593575", "text": "public function next_link()\n\t{\n\t\treturn $this->link_to_page($this->get_cur_page() + 1);\n\t}", "title": "" }, { "docid": "7d8908fc68ed60b56334bbda357ef553", "score": "0.5591431", "text": "public function lead_next_auto_id()\n {\n $result = common_select_values('AUTO_INCREMENT', 'INFORMATION_SCHEMA.TABLES', ' TABLE_SCHEMA = database() AND TABLE_NAME = \"leads\"', 'row');\n return $result; \n }", "title": "" }, { "docid": "f7009a6641b6b4d92c9310c9291cee9f", "score": "0.55809736", "text": "private function selectResourceID()\n {\n $result = $this->sdb->query('select nextval(\\'resource_id_seq\\') as id',array());\n $row = $this->sdb->fetchrow($result);\n return $row['id'];\n }", "title": "" }, { "docid": "51101bf9cc41ebf76fb02f9fcf8a0ed9", "score": "0.5580673", "text": "public static function next_tran_number( $pidm ) {\n\t\t$sql = \"SELECT NVL(max(tbraccd_tran_number)+1,1) FROM tbraccd WHERE tbraccd_pidm = :pidm\";\n\t\treturn \\PSU::db('banner')->GetOne( $sql, array('pidm' => $pidm) );\n\t}", "title": "" }, { "docid": "23d313edb6cfdcf14d9a2d5e479a44b1", "score": "0.55748326", "text": "public function getNextSequence($emergencia_id) {\n\t\t$max = self::find ()->where ( [ \n\t\t\t\t'emergencia_id' => $emergencia_id \n\t\t] )->orderBy ( 'sequencecap desc' )->one ();\n\t\treturn ($max ['sequencecap'] + 1);\n\t}", "title": "" }, { "docid": "3095c5288c991d491f3303273d84ab9e", "score": "0.5572062", "text": "private function get_next_asterisk_uid()\n {\n $this->connect();\n \n $search = @ldap_search( $this->resource, $this->base, '(&(uid=*))' );\n if( !$search )\n throw new exc\\ldap( ldap_error( $this->resource ), ldap_errno( $this->resource ) );\n \n $entries = @ldap_get_entries( $this->resource, $search );\n ldap_free_result( $search );\n if( !$entries )\n throw new exc\\ldap( ldap_error( $this->resource ), ldap_errno( $this->resource ) );\n \n $max_id = 999;\n foreach( $entries as $index => $entry )\n {\n if( !is_int( $index ) ) continue;\n if( array_key_exists( 'astaccountcallerid', $entry ) )\n {\n $id = $entry['astaccountcallerid'][0];\n if( $max_id < $id ) $max_id = $id;\n }\n }\n \n return $max_id + 1;\n }", "title": "" } ]
cfb734005c73e05c2b7ecd3dbe335910
Gets the notCompliantTenantsCount property value. The notCompliantTenantsCount property
[ { "docid": "5042bad157481da1ae782167eb644906", "score": "0.7151296", "text": "public function getNotCompliantTenantsCount(): ?int {\n $val = $this->getBackingStore()->get('notCompliantTenantsCount');\n if (is_null($val) || is_int($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'notCompliantTenantsCount'\");\n }", "title": "" } ]
[ { "docid": "bffdad182ad82ff1d70d5fdd9eadd517", "score": "0.73336583", "text": "public function getNonCompliantCount()\n {\n if (array_key_exists(\"nonCompliantCount\", $this->_propDict)) {\n return $this->_propDict[\"nonCompliantCount\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "3d3fc5cd8130e697330f8f8dc01524ab", "score": "0.6936263", "text": "public function getCompliantTenantsCount(): ?int {\n $val = $this->getBackingStore()->get('compliantTenantsCount');\n if (is_null($val) || is_int($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'compliantTenantsCount'\");\n }", "title": "" }, { "docid": "a954a3c8e5eda3f0b36052b9b5136393", "score": "0.6891993", "text": "public function getNumberOfTenants()\r\n {\r\n return $this->numberOfTenants;\r\n }", "title": "" }, { "docid": "59b72529736badad0324c0ddb2756832", "score": "0.65343213", "text": "public function getIneligibleTenantsCount(): ?int {\n $val = $this->getBackingStore()->get('ineligibleTenantsCount');\n if (is_null($val) || is_int($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'ineligibleTenantsCount'\");\n }", "title": "" }, { "docid": "7a317a7b6661368b5009565f8032cca8", "score": "0.63098866", "text": "public function getNotSecureCount()\n {\n if (array_key_exists(\"notSecureCount\", $this->_propDict)) {\n return $this->_propDict[\"notSecureCount\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "4882d0f7a052ad3976c34634578b1308", "score": "0.62803143", "text": "public function getDismissedTenantsCount(): ?int {\n $val = $this->getBackingStore()->get('dismissedTenantsCount');\n if (is_null($val) || is_int($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'dismissedTenantsCount'\");\n }", "title": "" }, { "docid": "7749822c0aefcda5e35778d9e9648a15", "score": "0.6268029", "text": "public function getAssignedTenantsCount(): ?int {\n $val = $this->getBackingStore()->get('assignedTenantsCount');\n if (is_null($val) || is_int($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'assignedTenantsCount'\");\n }", "title": "" }, { "docid": "4fd765ca99a85fc1234873af64f1bd2b", "score": "0.6261261", "text": "public function getNotApplicableCount()\n {\n if (array_key_exists(\"notApplicableCount\", $this->_propDict)) {\n return $this->_propDict[\"notApplicableCount\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "4fd765ca99a85fc1234873af64f1bd2b", "score": "0.6261261", "text": "public function getNotApplicableCount()\n {\n if (array_key_exists(\"notApplicableCount\", $this->_propDict)) {\n return $this->_propDict[\"notApplicableCount\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "a33ba3c0d6ed255fc6682a6e667bf041", "score": "0.62552166", "text": "public function setNotCompliantTenantsCount(?int $value): void {\n $this->getBackingStore()->set('notCompliantTenantsCount', $value);\n }", "title": "" }, { "docid": "4425373f91349f8c32a93de186ef7a9d", "score": "0.6142414", "text": "public function getCompliantCount()\n {\n if (array_key_exists(\"compliantCount\", $this->_propDict)) {\n return $this->_propDict[\"compliantCount\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "dd580871436ff9a8f6cb2a341049c0a7", "score": "0.6141801", "text": "public function getInfantCount()\n {\n return $this->infantCount;\n }", "title": "" }, { "docid": "29ba40aad48044e37d04060b4872bf3f", "score": "0.6115302", "text": "public function setNonCompliantCount($val)\n {\n $this->_propDict[\"nonCompliantCount\"] = intval($val);\n return $this;\n }", "title": "" }, { "docid": "fcc8158fb9866501b36ec089474acc98", "score": "0.5908686", "text": "public function getApplicantCount($force = false) {\n if (c('Garden.Registration.Method') != 'Approval') {\n return 0;\n }\n\n $cacheKey = 'Moderation.ApplicantCount';\n\n if ($force) {\n Gdn::cache()->remove($cacheKey);\n }\n\n $applicantRoleIDs = static::getDefaultRoles(self::TYPE_APPLICANT);\n\n $count = Gdn::cache()->get($cacheKey);\n if ($count === Gdn_Cache::CACHEOP_FAILURE) {\n $count = Gdn::sql()\n ->select('u.UserID', 'count', 'UserCount')\n ->from('User u')\n ->join('UserRole ur', 'u.UserID = ur.UserID')\n ->where('ur.RoleID', $applicantRoleIDs)\n ->where('u.Deleted', '0')\n ->get()->value('UserCount', 0);\n\n Gdn::cache()->store($cacheKey, $count, [\n Gdn_Cache::FEATURE_EXPIRY => 300 // 5 minutes\n ]);\n }\n return $count;\n }", "title": "" }, { "docid": "d62daa548d67b57f9aa64d7d3d6a8a38", "score": "0.58709663", "text": "public function getNotApplicableCount(): ?int {\n $val = $this->getBackingStore()->get('notApplicableCount');\n if (is_null($val) || is_int($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'notApplicableCount'\");\n }", "title": "" }, { "docid": "65f14a4d2e98e41cc5d7d619a62d8a5e", "score": "0.58241594", "text": "public function getCant() {\n\t\treturn $this->db->count_all ( self::TABLE_NAME );\n\t}", "title": "" }, { "docid": "65f14a4d2e98e41cc5d7d619a62d8a5e", "score": "0.58241594", "text": "public function getCant() {\n\t\treturn $this->db->count_all ( self::TABLE_NAME );\n\t}", "title": "" }, { "docid": "a627fcd17b5877971691da9385390220", "score": "0.5811727", "text": "public function GetNumberOfNotRunTests()\n {\n return $this->GetNumberOfTestsByField('testnotrun');\n }", "title": "" }, { "docid": "9dae1c5171de79bf861ecdc240199bb1", "score": "0.5785206", "text": "public function getCantOperaciones() : int\n {\n return $this->cantOperaciones;\n }", "title": "" }, { "docid": "4dd4090414a9b79ec3dac6c416f57d9d", "score": "0.5776935", "text": "public function getNumberOfInvalidTransactions(): int\n {\n return $this->numberOfInvalidTransactions;\n }", "title": "" }, { "docid": "527cb09ce2eba494b793d01ffbc0f1f3", "score": "0.57486075", "text": "public function getUnassignedDiscountCodesCount()\n {\n return DiscountCode::where('carrot_id', null)\n ->orderBy('id', 'ASC')\n ->count();\n }", "title": "" }, { "docid": "dbad93233ec339ba5495cd426a1bdb7c", "score": "0.5712304", "text": "public function getNotUpdatedCount()\n\t{\n\t\treturn $this->notUpdatedCount; \n\n\t}", "title": "" }, { "docid": "eb77bd547ca32ccc518abae19d7537d2", "score": "0.5699927", "text": "public function getAppliancesCount()\n {\n return $this->appliancesCount;\n }", "title": "" }, { "docid": "38a2dc14f7d2c2ca1d4a7156c0d4a542", "score": "0.56974363", "text": "public function count()\n {\n return count($this->grants);\n }", "title": "" }, { "docid": "38a2dc14f7d2c2ca1d4a7156c0d4a542", "score": "0.56974363", "text": "public function count()\n {\n return count($this->grants);\n }", "title": "" }, { "docid": "066f8e0b808abffaa7184e4165b46ff5", "score": "0.5656948", "text": "public function countUnapproved()\r\n {\r\n $db = $this->db->select()\r\n ->count('id', 'count')\r\n ->from(self::getTableName())\r\n ->whereEquals('approved', '0');\r\n\r\n return $db->query('count');\r\n }", "title": "" }, { "docid": "2f2571176f45078a8eecfc2bd6293f0a", "score": "0.5653529", "text": "public function getNoContact24HoursCount(): int;", "title": "" }, { "docid": "77c1b9cb6bf11c48f2d2e36b20a44769", "score": "0.56465924", "text": "public function getNotApplicablePlatformCount(): ?int {\n $val = $this->getBackingStore()->get('notApplicablePlatformCount');\n if (is_null($val) || is_int($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'notApplicablePlatformCount'\");\n }", "title": "" }, { "docid": "a738f2b85c63975a39a5318271d0d44b", "score": "0.56445587", "text": "public function setCompliantTenantsCount(?int $value): void {\n $this->getBackingStore()->set('compliantTenantsCount', $value);\n }", "title": "" }, { "docid": "94a92cb4944503571da34cae413e09f9", "score": "0.5643556", "text": "public function getUnclaimedLockersCountAttribute()\n {\n if ($this->unclaimed_lockers_count === null) {\n $bought = $this->sales()->locker()->sum('quantity');\n $owned = $this->lockers()->where('status', '=', \"taken\")->count();\n\n $this->unclaimed_lockers_count = $bought - $owned;\n }\n\n return $this->unclaimed_lockers_count;\n }", "title": "" }, { "docid": "2a83ef65e2cdd6abf25787697f42c3b8", "score": "0.5636923", "text": "public function numberOfAccounts(): int\n {\n return $this->numberOfAccounts;\n }", "title": "" }, { "docid": "d6aaba008e6506dfb0d6d4c14b1b8c0c", "score": "0.5618509", "text": "public function getUnknownCount()\n {\n if (array_key_exists(\"unknownCount\", $this->_propDict)) {\n return $this->_propDict[\"unknownCount\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "c23cbdb829ae3f21bea2c8042402c733", "score": "0.5581533", "text": "public function nbSignalementsEnCours()\n {\n return $this->nbSignalementsEnCours ?? ($this->nbSignalementsEnCours = $this->em->getRepository('AppBundle:Signalement')->countEnCours());\n }", "title": "" }, { "docid": "b19086ee281757b7c2fbc387eeaf3003", "score": "0.556845", "text": "public function getNumberOfNonContractedArtists()\n {\n return $this->numberOfNonContractedArtists;\n }", "title": "" }, { "docid": "02f53fb42f8a90d3661adbf77845747d", "score": "0.5561599", "text": "public function count()\n {\n return 0;\n }", "title": "" }, { "docid": "6f4999f09b2c8260c6e6dc0e277214d5", "score": "0.5544257", "text": "public function totalUnconfirmed()\n {\n return QcJobApplication::where('confirmStatus', $this->getDefaultNotConfirm())->count();\n }", "title": "" }, { "docid": "6a8e6bab517b17732b2a2a5efa2186dd", "score": "0.55315566", "text": "public function getUnclaimedDinnerTicketsCountAttribute()\n {\n if ($this->unclaimed_dinner_tickets_count === null) {\n $bought = $this->getDinnerTicketsCountAttribute();\n $claimed = DinnerGroupMember::purchasedBy($this)->count();\n\n $this->unclaimed_dinner_tickets_count = $bought - $claimed;\n }\n\n return $this->unclaimed_dinner_tickets_count;\n }", "title": "" }, { "docid": "eff554244b5676d44b82f71e9fd9a814", "score": "0.5511809", "text": "public function getRrpTenantReferenceCount();", "title": "" }, { "docid": "f4311c93d94617fd4e66cbf41c4570ee", "score": "0.5506157", "text": "public function getThematicCount()\n {\n return $this->count(self::thematic);\n }", "title": "" }, { "docid": "f6e06d7dd0d339bf811193ea640d28de", "score": "0.55051804", "text": "public function setCompliantCount($val)\n {\n $this->_propDict[\"compliantCount\"] = intval($val);\n return $this;\n }", "title": "" }, { "docid": "dae9110671f0843e5a70b839387cd159", "score": "0.54979146", "text": "public function getMfaExcludedUserCount()\n {\n if (array_key_exists(\"mfaExcludedUserCount\", $this->_propDict)) {\n return $this->_propDict[\"mfaExcludedUserCount\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "fac2588b95e9d6fb23bfbd3c79826872", "score": "0.5490655", "text": "public function count()\n {\n return count($this->advisors);\n }", "title": "" }, { "docid": "c3b9359878e91cfe2bbb00d00ff776d5", "score": "0.5477214", "text": "public function getCount(): int\n {\n return $this->client->workersCount() ?: 0;\n }", "title": "" }, { "docid": "7e5555f1049417566ef86a0ab4faee55", "score": "0.5464175", "text": "public function count()\n {\n return 0;\n }", "title": "" }, { "docid": "7e5555f1049417566ef86a0ab4faee55", "score": "0.5464175", "text": "public function count()\n {\n return 0;\n }", "title": "" }, { "docid": "7e5555f1049417566ef86a0ab4faee55", "score": "0.5464175", "text": "public function count()\n {\n return 0;\n }", "title": "" }, { "docid": "7e5555f1049417566ef86a0ab4faee55", "score": "0.5464175", "text": "public function count()\n {\n return 0;\n }", "title": "" }, { "docid": "2ae342b3eaddd0521e5ecfee759e6abf", "score": "0.5459223", "text": "public function count()\n {\n return count($this->permissions);\n }", "title": "" }, { "docid": "6d1c4a9f23f4840290efecc46b9a9884", "score": "0.544009", "text": "public static function getContactUsCount(){\n return ContactUs::count();\n }", "title": "" }, { "docid": "3770c4389ba21efa764eaf88513cc599", "score": "0.5437583", "text": "public function getConfigurableCount()\n {\n $count = $this->configurableManagement->getCount();\n return (int)$count;\n }", "title": "" }, { "docid": "ce6e68d82105e7df27656c8dfccfd963", "score": "0.5435205", "text": "public function nonDeletedOccupants(){\n\t\t\treturn $this->valueForRelationship(\"occupants\");\n\t\t}", "title": "" }, { "docid": "ffe52fc2b0d7c732cff5f9e971bae91d", "score": "0.54244643", "text": "public function GetCount () \n\t{\n\t\treturn ($this->Count);\n\t}", "title": "" }, { "docid": "7248ba537b581982071d650589c5f163", "score": "0.5415552", "text": "public function count()\n {\n $this->notifyAccess();\n return $this->total;\n }", "title": "" }, { "docid": "2be575f9520c37e783d2e1f6d1cf65d6", "score": "0.5414813", "text": "public function getNumberOfNonFeaturedArtists()\n {\n return $this->numberOfNonFeaturedArtists;\n }", "title": "" }, { "docid": "f67f0dda49dad1a28e49661cf4afa993", "score": "0.5399254", "text": "public function hasProtectCount(){\r\n return $this->_has(6);\r\n }", "title": "" }, { "docid": "5d2061f58d2063a8ac842d83691707cc", "score": "0.53931814", "text": "public function getCnt()\n {\n\n return $this->cnt;\n }", "title": "" }, { "docid": "cace139e35049f744f955e9319156171", "score": "0.53893423", "text": "public function getNumberOfNonCompliantDevices(): ?int {\n $val = $this->getBackingStore()->get('numberOfNonCompliantDevices');\n if (is_null($val) || is_int($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'numberOfNonCompliantDevices'\");\n }", "title": "" }, { "docid": "981036d90a6cb20a3ca3e6b08c4a7a87", "score": "0.5386789", "text": "public function count()\n {\n return $this->contact->count();\n }", "title": "" }, { "docid": "28a16a132e034effd7fbfc746f496c81", "score": "0.53801674", "text": "public function getNumMemberships()\n\t{\n return (int) $this->_numMemberships; \n\t}", "title": "" }, { "docid": "6451f7034b1b1c3921dad16bfa8350a8", "score": "0.53799206", "text": "public function getNumberOfLicensesUsed ()\n {\n return count(UserMapper::getInstance()->fetchUserListForDealer($this->id));\n }", "title": "" }, { "docid": "731f9fb435ddd718f68ed0dcb0f526f3", "score": "0.5376005", "text": "public function count()\n {\n return count($this->exceptions);\n }", "title": "" }, { "docid": "f8954adf16785d532fbbc758d049f6fc", "score": "0.5374771", "text": "public function registration_count()\n {\n \tif ($this->registrations) {\n \t\treturn $this->registrations->sum('tickets');\n \t} else {\n \t\treturn 0;\n \t}\n }", "title": "" }, { "docid": "f8e22f374114d88d560ac49082a72ddd", "score": "0.5372774", "text": "public function getCategoryCount()\n {\n return $this->categoryCount;\n }", "title": "" }, { "docid": "7685140b34afd145098e4fc670487647", "score": "0.53705734", "text": "private function getClientCount() {\n // try {\n // $count = ClientManage::where('sClientStatus', '=', 'Pending')->count();\n // } catch(Exception $e) { $count = \"\"; }\n $count = ClientManage::where('sClientStatus', '=', 'Pending')->count();\n return ( $count > 0 ) ? $count : \"\" ;\n }", "title": "" }, { "docid": "ede2f4a88aa60b496a4f0ffdf0f5eb6a", "score": "0.53659236", "text": "public function count() {\n return $this->count;\n }", "title": "" }, { "docid": "f84ed8385f282a81111ef335742550d0", "score": "0.53625387", "text": "public function getTemplateCount()\n {\n return (int) $this->get('/templates/count');\n }", "title": "" }, { "docid": "e17321401e98c31a4a86a6b88601654a", "score": "0.53575766", "text": "public function getCategoryCount(): int\n {\n return $this->privateMessageRepository->getAmountByFolder(\n $this->privateMessageFolder\n );\n }", "title": "" }, { "docid": "0c3794bf4dc8b8024f67ba5d4605cf1e", "score": "0.5339367", "text": "public function getInvalidDocumentsCount()\n {\n return $this->invalid_documents_count;\n }", "title": "" }, { "docid": "348a2e7ae79e76af63d4b161b7f46936", "score": "0.53328437", "text": "public function count() {\n\t\treturn count ( $this->users );\n\t}", "title": "" }, { "docid": "34165977cdd3372ebf31c0815646d1ac", "score": "0.53291696", "text": "public function count() {\n return $this->_count;\n }", "title": "" }, { "docid": "34165977cdd3372ebf31c0815646d1ac", "score": "0.53291696", "text": "public function count() {\n return $this->_count;\n }", "title": "" }, { "docid": "34165977cdd3372ebf31c0815646d1ac", "score": "0.53291696", "text": "public function count() {\n return $this->_count;\n }", "title": "" }, { "docid": "7bbaf20d2e6802daa2249a80e28568bd", "score": "0.5328854", "text": "public function getApplicationCount(): int;", "title": "" }, { "docid": "b9953821c33818ed5c669a6653129d4a", "score": "0.5328469", "text": "public function setNotApplicableCount($val)\n {\n $this->_propDict[\"notApplicableCount\"] = intval($val);\n return $this;\n }", "title": "" }, { "docid": "b9953821c33818ed5c669a6653129d4a", "score": "0.5328469", "text": "public function setNotApplicableCount($val)\n {\n $this->_propDict[\"notApplicableCount\"] = intval($val);\n return $this;\n }", "title": "" }, { "docid": "61ae3a5715ce707a778585a1cb511666", "score": "0.53265935", "text": "public function getNumWarnings() {\r\n return $this->num_warnings;\r\n }", "title": "" }, { "docid": "a68eaceeeb3f4314ab5b8ad603b3057e", "score": "0.5322011", "text": "public function count()\n {\n return $this->count;\n }", "title": "" }, { "docid": "a68eaceeeb3f4314ab5b8ad603b3057e", "score": "0.5322011", "text": "public function count()\n {\n return $this->count;\n }", "title": "" }, { "docid": "a68eaceeeb3f4314ab5b8ad603b3057e", "score": "0.5322011", "text": "public function count()\n {\n return $this->count;\n }", "title": "" }, { "docid": "74ee1be62df1ec6608afa01d4ce84a0e", "score": "0.53211397", "text": "function record_count_company_notupdatedinstt()\n\t{\n\t\t $sql = \"SELECT COUNT(DISTINCT candstatus.institute) As cnt FROM candidates JOIN candstatus ON candidates.id=candstatus.cdid WHERE (is_instt_updated='0') AND is_to_Delete = 0 \";\n\t $q = $this->db->query($sql);\n\t $row = $q->row();\n\t return $row->cnt;\n\t}", "title": "" }, { "docid": "2f20d4d36aa733c031c32a09996b5900", "score": "0.5320649", "text": "public static function getAccountsCount();", "title": "" }, { "docid": "c12d8f17aca082c453632689000885bf", "score": "0.53180003", "text": "#[ReturnTypeWillChange]\n\tpublic function count()\n\t{\n\t\treturn $this->getCount();\n\t}", "title": "" }, { "docid": "00f54a204d5e75c9e26bde8f318793a4", "score": "0.53131115", "text": "public function getMailCount() {\r return $this->mailCount;\r }", "title": "" }, { "docid": "dccbb40efcd1fd1f5a6b014499480b58", "score": "0.531164", "text": "public function count() {\n\t\treturn count($this->required_retreats);\n\t}", "title": "" }, { "docid": "5921c49bf0d11308512a5b40f7ede97d", "score": "0.5306254", "text": "public function count() {\n return $this->total;\n }", "title": "" }, { "docid": "68c51b27f18e0e28af40d8bfc6059e45", "score": "0.5305504", "text": "public function countClusteredTerms(){\r\n\t\treturn count($this->clusteredTerms);\r\n\t}", "title": "" }, { "docid": "50f21b07fb860cfe5ff7c2d15530ad10", "score": "0.5305285", "text": "#[ReturnTypeWillChange] public function count()\n {\n return $this->count;\n }", "title": "" }, { "docid": "637f41572e529435bf9256e5920167f1", "score": "0.53023195", "text": "function record_count_company_notupdatedcoursegroup()\n\t{\n\t\t$sql = \"SELECT COUNT(DISTINCT candidates.course) As cnt FROM candidates LEFT JOIN candstatus ON candidates.id=candstatus.cdid WHERE candstatus.course_to_synonym='0' AND candstatus.is_course_updated='0' \";\n\t $q = $this->db->query($sql);\n\t $row = $q->row();\n\t return $row->cnt;\n\t}", "title": "" }, { "docid": "d6c0cdf3c3a765db93fd905d1f0906d4", "score": "0.5295439", "text": "public function count() {\n\t\t\treturn $this->count;\n\t\t}", "title": "" }, { "docid": "2db22e47d831bdba76ac4fae77843c1d", "score": "0.5294984", "text": "public function getNumberOfIssues(){\n return count($this->notAvailableFor);\n }", "title": "" }, { "docid": "73818c6179d0cc4ef3c04ebfb28c7e4b", "score": "0.5292074", "text": "public function countTreesVoucherPartner()\r\n {\r\n return $this->createTreesVoucherPartnerQuery()->count();\r\n }", "title": "" }, { "docid": "ba99cff1a3509d64cb045eaaf62978c9", "score": "0.52874815", "text": "public function count() {\n return count( $this->reports );\n }", "title": "" }, { "docid": "e556b4cb21a573dfaa7318036be674eb", "score": "0.52838", "text": "function record_count_company_notupdatedcourse()\n\t{\n\t\t $sql = \"SELECT COUNT(DISTINCT candstatus.course) As cnt FROM candidates JOIN candstatus ON candidates.id=candstatus.cdid WHERE (is_course_updated='0') AND is_to_Delete = 0 \";\n\t $q = $this->db->query($sql);\n\t $row = $q->row();\n\t return $row->cnt;\n\t}", "title": "" }, { "docid": "3cceeb274d2f495ccc7fc07dd1320b2a", "score": "0.5279135", "text": "public function count()\n {\n return $this->_count;\n }", "title": "" }, { "docid": "3cceeb274d2f495ccc7fc07dd1320b2a", "score": "0.5279135", "text": "public function count()\n {\n return $this->_count;\n }", "title": "" }, { "docid": "3cceeb274d2f495ccc7fc07dd1320b2a", "score": "0.5279135", "text": "public function count()\n {\n return $this->_count;\n }", "title": "" }, { "docid": "a2d6b278738582ea4d53e7d01486e1b5", "score": "0.52781427", "text": "public function getCantidad() {\n return $this->cantidad;\n }", "title": "" }, { "docid": "f120c92627b5a1325ffd240de9bc4450", "score": "0.5272992", "text": "public function getNumberOfAllTransactions(): int\n {\n return $this->numberOfAllTransactions;\n }", "title": "" }, { "docid": "2cbf3b6354f94667e0db5c734b27c4c7", "score": "0.5269038", "text": "public function hasAttackcount(){\n return $this->_has(12);\n }", "title": "" }, { "docid": "00b0a1326f77f342fdce2fb790efffe0", "score": "0.52683586", "text": "final public function count() {\r\n return count($this->data);\r\n }", "title": "" } ]
6615c17782afbc990bb9d864ea639865
Get the title for the supplied record, if available; null otherwise.
[ { "docid": "4e6cf6e23689d13b6fbe15004263aa36", "score": "0.85458314", "text": "function getTitle(&$record) {\n\t\treturn null;\n\t}", "title": "" } ]
[ { "docid": "d562124fe9751c74ba4d320d2a1aaf16", "score": "0.8177294", "text": "function getTitle(&$record) {\n\t\t$entries = $record->getParsedContents();\n\t\tif (isset($entries['245']['0']['0']['a'])) return array_shift($entries['245']['0']['0']['a']);\n\t\tif (isset($entries['520'][' '][' ']['a'])) return array_shift($entries['520'][' '][' ']['a']);\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ae193d1461aea656c3c2f4f4ac6aab6f", "score": "0.7015021", "text": "public function getTitle()\n {\n if (array_key_exists('title', $this->_params)) {\n return $this->_params['title'];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "d7705f3e79838aa3cf1b1fc944d40577", "score": "0.687215", "text": "public function getTitle()\n {\n if (!$this->isPropertyAvailable(\"Title\")) {\n return null;\n }\n return $this->getProperty(\"Title\");\n }", "title": "" }, { "docid": "9820f4d61c873af0ad97f00c27bc0710", "score": "0.67477196", "text": "public function getTitle()\n {\n if (!isset($this->data['fields']['title'])) {\n if (\n (!isset($this->data['fields']) || !array_key_exists('title', $this->data['fields']))\n &&\n ($rap = $this->getRootAndPath())\n &&\n !$this->isEmbeddedOneChangedInParent()\n &&\n !$this->isEmbeddedManyNew()\n ) {\n $field = $rap['path'].'.title';\n $rap['root']->addFieldCache($field);\n $collection = $this->getMandango()->getRepository(get_class($rap['root']))->getCollection();\n $data = $collection->findOne(array('_id' => $rap['root']->getId()), array($field => 1));\n foreach (explode('.', $field) as $key) {\n if (!isset($data[$key])) {\n $data = null;\n break;\n }\n $data = $data[$key];\n }\n if (null !== $data) {\n $this->data['fields']['title'] = (string) $data;\n }\n }\n if (!isset($this->data['fields']['title'])) {\n $this->data['fields']['title'] = null;\n }\n }\n\n return $this->data['fields']['title'];\n }", "title": "" }, { "docid": "6a31ae3a3dc96e807dc375d43194f9f8", "score": "0.65981567", "text": "public function getTitle(): ?string\n {\n return $this->title;\n }", "title": "" }, { "docid": "6a31ae3a3dc96e807dc375d43194f9f8", "score": "0.65981567", "text": "public function getTitle(): ?string\n {\n return $this->title;\n }", "title": "" }, { "docid": "e8c34070ca679b1f6ed4eaf11ffb8438", "score": "0.6545273", "text": "public static function getRecordTitle($type, $recordID)\n {\n if(!self::$CI)\n self::$CI = get_instance();\n\n if($type === 'answer')\n {\n $record = self::$CI->model('Answer')->get($recordID)->result;\n return ($record) ? $record->Summary : Config::getMessage(ANSWER_LBL);\n }\n if ($type === 'incident')\n {\n $record = self::$CI->model('Incident')->get($recordID)->result;\n return ($record) ? $record->Subject : Config::getMessage(VIEW_QUESTION_HDG);\n }\n if ($type === 'asset')\n {\n $record = self::$CI->model('Asset')->get($recordID)->result;\n return ($record) ? $record->Name : Config::getMessage(VIEW_ASSET_CMD);\n }\n // products and categories??\n throw new \\Exception(\"Unknown record type: [$type]\");\n }", "title": "" }, { "docid": "213b76e3560041b4f0c85f32c440da06", "score": "0.65357125", "text": "public function getTitle()\n {\n if ($this->title_field && $this->hasField($this->title_field)) {\n return $this->getField($this->title_field)->get();\n }\n\n return $this->getId();\n }", "title": "" }, { "docid": "db6c4c23893f9cf5c65b4fe853ccfa93", "score": "0.65192384", "text": "function getTitle( $pHash = NULL ) {\n\t\t$ret = NULL;\n\t\tif( empty( $pHash ) ) {\n\t\t\t$pHash = &$this->mInfo;\n\t\t} else {\n\t\t\tif ( $this->mContactId != $pHash['contact_id'] ) {\n\t\t\t\t$this->load($pHash['contact_id']);\n\t\t\t\t$pHash = &$this->mInfo;\n\t\t\t}\n\t\t}\n\n\t\tif( !empty( $pHash['title'] ) ) {\n\t\t\t$ret = \"Contact - \".$this->mInfo['title'];\n\t\t} elseif( !empty( $pHash['content_name'] ) ) {\n\t\t\t$ret = $pHash['content_name'];\n\t\t}\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "d4be0055e957e93159467389cba9a16c", "score": "0.6494284", "text": "public function getTitle($length=256) {\n $post = $this->get();\n $title = self::getTitleOrContent($post);\n if ( $title ) return strcut($title, $length);\n else return null;\n }", "title": "" }, { "docid": "1a545b324e9e3669ea54c50cd9163e3f", "score": "0.6482128", "text": "public function getTitle()\n {\n $value = $this->get(self::title);\n return $value === null ? (string)$value : $value;\n }", "title": "" }, { "docid": "aaa663917c28a89a21f0d421f2c159a8", "score": "0.64451873", "text": "public function get_title() {\n return !empty($this->row->title) ? $this->row->title : $this->row->coursename;\n }", "title": "" }, { "docid": "f257ab2b735c7e382e2c9fff4135e4c4", "score": "0.64343005", "text": "public function getTitle(): string|null;", "title": "" }, { "docid": "913bcd1b06274f96de326c9f17458530", "score": "0.6410001", "text": "public function title(): ?string\n {\n return $this->title;\n }", "title": "" }, { "docid": "adfec79396e3d246278f7f437f03eadf", "score": "0.64043397", "text": "public function getTitle()\n {\n return $this->getMetaData()['title'] ?? '';\n }", "title": "" }, { "docid": "f6b39dd155b61195a3ea5261ddc46efc", "score": "0.63845664", "text": "public function getTitle()\n {\n $db = Tools::getDatabaseConnection();\n $rs = $db->sql_query(\"SELECT title FROM pages WHERE uid = $this->pid\");\n\n $title = '';\n if ($db->sql_num_rows($rs)) {\n list($title) = $db->sql_fetch_row($rs);\n }\n\n return $title;\n }", "title": "" }, { "docid": "a2b43979a275088f67ef7ed56bd5e704", "score": "0.6383964", "text": "protected function getTitleRef($title)\n {\n $supportedTitles = ['dr', 'miss', 'mr', 'mrs', 'ms'];\n\n if (in_array(strtolower($title), $supportedTitles)) {\n return $this->getRepo()->getRefdataReference('title_'. strtolower($title));\n }\n\n return null;\n }", "title": "" }, { "docid": "9ba76a7f35fbe58e49c123af3e726cf6", "score": "0.634133", "text": "public function getTitle(){\n\t\treturn is_null($this->title)? '' : $this->title;\n\t}", "title": "" }, { "docid": "bd096c39ed081e40b3bff5104f20a04a", "score": "0.63365585", "text": "public function title($strTitle = NULL) {\n\t\t\tif (!is_null($strTitle)) $this->strTitle = $strTitle; \n\t\t\tif (is_null($this->strTitle)) $this->load();\n\t\t\treturn $this->strTitle; \n\t\t}", "title": "" }, { "docid": "f1428e15a319e23674fd980968640dc8", "score": "0.63180643", "text": "protected function getMessageOrTitle()\n {\n if (isset($this->message)) {\n return $this->message;\n }\n\n return $this->title ?? null;\n }", "title": "" }, { "docid": "2151bf04a1155c5a7f10c35d49c9de0b", "score": "0.63159984", "text": "public function get_title()\n {\n $database = \\sabretooth\\session::self()->get_setting( 'survey_db', 'database' );\n $prefix = \\sabretooth\\session::self()->get_setting( 'survey_db', 'prefix' );\n \n $modifier = new \\sabretooth\\database\\modifier();\n $modifier->where( 'sid', $this->sid );\n $modifier->where( 'surveyls_language', static::get_table_name().'.language', false );\n\n // get the title from the survey's main language\n return self::get_one(\n sprintf( 'SELECT surveyls_title FROM %s.%s, %s %s',\n $database,\n $prefix.'surveys_languagesettings',\n static::get_table_name(),\n $modifier->get_sql() ) );\n }", "title": "" }, { "docid": "a3407377c9a50a90afdfb65aba36068b", "score": "0.62905496", "text": "public function getTitle($title){\n\t \treturn $this->title;\n\t }", "title": "" }, { "docid": "ea0d983a5f0ddd4b1cd09957640fe01b", "score": "0.6278528", "text": "protected function _getAssetTitle()\n\t{\n\t\tif (!empty($this->{$this->_title}))\n\t\t{\n\t\t\treturn $this->{$this->_title};\n\t\t}\n\t\telseif (!empty($this->title))\n\t\t{\n\t\t\treturn $this->title;\n\t\t}\n\t\telseif (!empty($this->label))\n\t\t{\n\t\t\treturn $this->label;\n\t\t}\n\t\telseif (!empty($this->name))\n\t\t{\n\t\t\treturn $this->name;\n\t\t}\n\n\t\treturn $this->_getAssetName();\n\t}", "title": "" }, { "docid": "47877e3ddf3ea1b0c70b31da340396f9", "score": "0.627852", "text": "public function getTitle()\n {\n return empty($this->title) ? $this->filename : $this->title;\n }", "title": "" }, { "docid": "c57bd98f92c98faf44711ea3d5442599", "score": "0.6260676", "text": "public function getTitle()\n\t{\n\t\t$column = self::COL_TITLE;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (string)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "title": "" }, { "docid": "62e6e02ce0858045a1f3c0cfe46c4305", "score": "0.62492156", "text": "public function title() {\n if(!is_null($this->title)) return $this->title;\n return $this->title = $this->content() && $this->content()->title() ? $this->content()->title() : $this->uid();\n }", "title": "" }, { "docid": "b32fa4f907931dbaf9b3ca84dd2e57c1", "score": "0.62448287", "text": "protected function getTitle()\n {\n if (null !== $this->title) {\n return $this->title;\n }\n\n if (null === $this->title\n && $this->describedBy == 'http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html'\n && array_key_exists($this->getHttpStatus(), $this->problemStatusTitles)\n ) {\n return $this->problemStatusTitles[$this->httpStatus];\n }\n if ($this->detail instanceof \\Exception) {\n return get_class($this->detail);\n }\n if (null === $this->title) {\n return 'Unknown';\n }\n\n return $this->title;\n }", "title": "" }, { "docid": "386e5fc4ab8936494477fe1b4e65081f", "score": "0.6239237", "text": "public function getTitle() {\n\t\treturn Convert::raw2att($this->getField('Title'));\n\t}", "title": "" }, { "docid": "44b65cdba49cb770f219bb3f8766280e", "score": "0.62378013", "text": "public function getTitle()\n {\n return $this->data['fields']['title'];\n }", "title": "" }, { "docid": "98c8f38b0a50a98069283c342b8e9f7d", "score": "0.62358546", "text": "public function getTitle() {\n\t\t// configure the link\n\t\t$linkconf = $this->getResultLinkConfiguration();\n\n\t\tlist($type) = explode(':', $this->row['type']);\n\t\tswitch($type) {\n\t\t\tcase 'file':\n\t\t\t\t// if we use FAL, see if we have a title in the metadata\n\t\t\t\tif ($this->row['orig_uid']) {\n\t\t\t\t\t$fileRepository = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance('TYPO3\\\\CMS\\\\Core\\\\Resource\\\\FileRepository');\n\t\t\t\t\t$fileObject = $fileRepository->findByUid($this->row['orig_uid']);\n\t\t\t\t\tif (TYPO3_VERSION_INTEGER >= 6002000) {\n\t\t\t\t\t\t$metadata = $fileObject->_getMetaData();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$metadata = array();\n\t\t\t\t\t}\n\t\t\t\t\t$linktext = ($metadata['title'] ? $metadata['title'] : $this->row['title']);\n\t\t\t\t} else {\n\t\t\t\t\t$linktext = $this->row['title'];\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$linktext = $this->row['title'];\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// clean title\n\t\t$linktext = strip_tags($linktext);\n\t\t$linktext = $this->pObj->div->removeXSS($linktext);\n\n\t\t// highlight hits in result title?\n\t\tif($this->conf['highlightSword'] && count($this->pObj->swords)) {\n\t\t\t$linktext = $this->highlightArrayOfWordsInContent($this->pObj->swords, $linktext);\n\t\t}\n\t\treturn $this->cObj->typoLink($linktext, $linkconf);\n\t}", "title": "" }, { "docid": "cdf247df207708961e662cbbd2ad7d55", "score": "0.6225327", "text": "public function getTitle()\n {\n if (null === $this->title) {\n return $this->sysname;\n } else {\n return $this->title;\n }\n }", "title": "" }, { "docid": "83aa5d5652d7120d30f94fb7b9b85f23", "score": "0.6215359", "text": "function get_title() {\n\t\tpreg_match('@<title>(.*)</title>@is', $this->content, $matches);\n\n\t\tif (isset($matches[1])) {\n\t\t\treturn $matches[1];\n\t\t} else {\n\t\t\treturn '';\n\t\t}\n\n\t}", "title": "" }, { "docid": "fdb136a2f1f73eb23e2e7924b609abad", "score": "0.61851805", "text": "function get_title($model, $id, $column){\n\n \t$model = $model::where(['id'=>$id])->first();\n \tif($model != null){\n \t\treturn $model->{$column};\n \t}else{\n \t\treturn null;\n \t}\n }", "title": "" }, { "docid": "57802631aea297badbc04ed1036c2596", "score": "0.6179506", "text": "public function getTitle()\n {\n if (!empty($this->title)) {\n return $this->title;\n }\n }", "title": "" }, { "docid": "87f08ecc4b115562615cc9ac62167d6e", "score": "0.6175501", "text": "public function getTitle() {\n return $this->get(self::TITLE);\n }", "title": "" }, { "docid": "87f08ecc4b115562615cc9ac62167d6e", "score": "0.6175501", "text": "public function getTitle() {\n return $this->get(self::TITLE);\n }", "title": "" }, { "docid": "5430f95c7662f59182b2042dc74e55aa", "score": "0.61666876", "text": "public function getTITLE()\n {\n\t\treturn $this->getValue('title');\n }", "title": "" }, { "docid": "e1087d4a45db3b9fabfb9bdb84d60592", "score": "0.616272", "text": "public function get_title() {\n return $this->object['title'];\n }", "title": "" }, { "docid": "e1776b225cb45f21b5f0c9bf49004707", "score": "0.612138", "text": "public function getTitle()\n {\n return $this->getData('title');\n }", "title": "" }, { "docid": "e1776b225cb45f21b5f0c9bf49004707", "score": "0.612138", "text": "public function getTitle()\n {\n return $this->getData('title');\n }", "title": "" }, { "docid": "b7c626ce6ddc23f54ceda545fba8ff81", "score": "0.6113868", "text": "function getTitle() {\n\t\treturn $this->data_array['title'];\n\t}", "title": "" }, { "docid": "7a54ef913f3cab412b56f201205cd44c", "score": "0.6111158", "text": "public function getMetaTitle()\n {\n if (is_null($this->metaTitle)) {\n /** @psalm-var stdClass|array<string, mixed>|null $data */\n $data = $this->raw(self::FIELD_META_TITLE);\n if (is_null($data)) {\n return null;\n }\n\n $this->metaTitle = LocalizedStringModel::of($data);\n }\n\n return $this->metaTitle;\n }", "title": "" }, { "docid": "7a54ef913f3cab412b56f201205cd44c", "score": "0.6111158", "text": "public function getMetaTitle()\n {\n if (is_null($this->metaTitle)) {\n /** @psalm-var stdClass|array<string, mixed>|null $data */\n $data = $this->raw(self::FIELD_META_TITLE);\n if (is_null($data)) {\n return null;\n }\n\n $this->metaTitle = LocalizedStringModel::of($data);\n }\n\n return $this->metaTitle;\n }", "title": "" }, { "docid": "1f29acd0185e3ec3a053f740eca37f17", "score": "0.6105943", "text": "function get_title($note) {\n\treturn $note[0];\n}", "title": "" }, { "docid": "97c1015de01c1a77b13ab0232433aa62", "score": "0.60893625", "text": "public function getTitle()\n {\n return $this->getExtensionProperty('title') ?: $this->getId();\n }", "title": "" }, { "docid": "f6c0cb0899e532706ec0a5fee9bdae2d", "score": "0.6085482", "text": "public function getTitle()\n {\n if (isset($this->source['facets']['title']['value']))\n return $this->source['facets']['title']['value'];\n else if (isset($this->source['displayname']))\n return $this->source['displayname'];\n else\n return $this->source['title'];\n }", "title": "" }, { "docid": "49e29ed3748ab0c1c36bbb61463909e3", "score": "0.6068286", "text": "public function get_title();", "title": "" }, { "docid": "49e29ed3748ab0c1c36bbb61463909e3", "score": "0.6068286", "text": "public function get_title();", "title": "" }, { "docid": "1f5dbb4377f3e20bf315d01b01b43950", "score": "0.60672796", "text": "protected function _getTitle(){\r\n\t\t$author = $this->_getAuthor();\r\n\t\treturn isset($author->name) ? $author->name . '\\'s Blog' : null;\r\n\t}", "title": "" }, { "docid": "2c6cd26b5ace1588244086cacca741b1", "score": "0.60533786", "text": "public function getTitle()\n {\n return $this->titles[\"title\"];\n }", "title": "" }, { "docid": "bd0b0d052705edfcecc40454109b6a42", "score": "0.6050506", "text": "function getTitle() {\n\t\treturn $this->getResource()->getDataValue('title');\n\t}", "title": "" }, { "docid": "815083875ad12d84dfb765bda63d9d8e", "score": "0.60434145", "text": "public function getTitle() {\n\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "e2a4fb81518ed2e168ff5ea2cf4b70ff", "score": "0.6041135", "text": "public function getRecordTitle($id) {\n\t\t$data = $this->find('first', array(\n\t\t\t'conditions' => array(\n\t\t\t\t'ComplianceAuditSetting.id' => $id\n\t\t\t),\n\t\t\t'fields' => array(\n\t\t\t\t'CompliancePackageItem.item_id',\n\t\t\t\t'CompliancePackageItem.name'\n\t\t\t),\n\t\t\t'recursive' => 0\n\t\t));\n\n\t\treturn sprintf('%s (%s)', $data['CompliancePackageItem']['name'], $data['CompliancePackageItem']['item_id']);\n\t}", "title": "" }, { "docid": "21d5d6ec335d052fce9e94da044993a7", "score": "0.6035149", "text": "public function getTitle() {\n\t\treturn $this->_title;\n\t}", "title": "" }, { "docid": "cd1aa76dc4d1b3924b0846e3431c60a4", "score": "0.60323524", "text": "public function title($title = null, $subtitle = null) {\n if (!is_null($title)) {\n $this->setData('Title', $title);\n }\n\n if (!is_null($subtitle)) {\n $this->setData('_Subtitle', $subtitle);\n }\n\n return $this->data('Title');\n }", "title": "" }, { "docid": "55cb1b321767190dd5d9d22cc6f6b678", "score": "0.60310143", "text": "public function getTitle() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "55cb1b321767190dd5d9d22cc6f6b678", "score": "0.60310143", "text": "public function getTitle() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "55cb1b321767190dd5d9d22cc6f6b678", "score": "0.60310143", "text": "public function getTitle() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "55cb1b321767190dd5d9d22cc6f6b678", "score": "0.60310143", "text": "public function getTitle() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "55cb1b321767190dd5d9d22cc6f6b678", "score": "0.60310143", "text": "public function getTitle() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "55cb1b321767190dd5d9d22cc6f6b678", "score": "0.60310143", "text": "public function getTitle() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "55cb1b321767190dd5d9d22cc6f6b678", "score": "0.60310143", "text": "public function getTitle() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "dbc70572aecf47106033f0346c14abaf", "score": "0.6029442", "text": "public function getTitle()\n {\n return empty($this->title) ? Str::title($this->model) : $this->title;\n }", "title": "" }, { "docid": "61070627312d7cabbfce22d9aaeded33", "score": "0.6025304", "text": "public function getTitle()\n {\n return $this->getEntityValue('title', '');\n }", "title": "" }, { "docid": "90ec3506f93efd1fdc23677529d61e01", "score": "0.60231954", "text": "public function getTitle()\n {\n return $this->getAttribute( static::getTitleField() );\n }", "title": "" }, { "docid": "a18c44d42e878e42d38fd56ae603beea", "score": "0.6018986", "text": "public function GetTitle() {\n \n \treturn $this->title;\n }", "title": "" }, { "docid": "d1ed34b4033a994acf15a4c8977e1057", "score": "0.6018721", "text": "function getTitle() \n {\n return $this->getValueByFieldName( 'episode_title' );\n }", "title": "" }, { "docid": "895f29e019956299bf11714e3a15aa0a", "score": "0.60185057", "text": "public function get_title() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "895f29e019956299bf11714e3a15aa0a", "score": "0.60185057", "text": "public function get_title() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "ece8f51fcc94f293312ab23b1fbba6d1", "score": "0.6014089", "text": "protected function getViewSubtitle($entry = null) {\n $pkField = $this->pkField;\n\n if (!$entry || !$entry->$pkField) {\n return null;\n }\n\n return $entry->getName();\n }", "title": "" }, { "docid": "825b33000efb5f0675b563cc0655334d", "score": "0.6010534", "text": "public function getTitle()\n {\n if (!isset($this->title)) {\n $videoId = $this->getVideoId();\n $object = $this->getFlickrObject();\n\n $this->title = $object['title']['_content'];\n }\n\n return $this->title;\n }", "title": "" }, { "docid": "827b9c0ed72f0947483c822c86616faf", "score": "0.6006879", "text": "public function get_title()\n\t{\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "827b9c0ed72f0947483c822c86616faf", "score": "0.6006879", "text": "public function get_title()\n\t{\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "742191ef01da6da8b5264d21a8bb08bf", "score": "0.60042137", "text": "public function title( $field ){\n\n if($field=='')\n return;\n\n if(isset($this->_properties['columns'][$field]))\n return $this->_properties['columns'][$field]['title'];\n else\n return;\n\n }", "title": "" }, { "docid": "3af227f7648b67ba0a4e0d2edd5fe845", "score": "0.59965533", "text": "public function get_title()\n {\n if (self::debug > 0) {\n error_log('learnpathItem::get_title()', 0);\n }\n if (empty($this->title)) {\n return '';\n }\n return $this->title;\n }", "title": "" }, { "docid": "a646a73f77004b9546f1c726051734fb", "score": "0.59947914", "text": "public function getTitle() {\r\n \treturn $this->title;\r\n }", "title": "" }, { "docid": "a646a73f77004b9546f1c726051734fb", "score": "0.59947914", "text": "public function getTitle() {\r\n \treturn $this->title;\r\n }", "title": "" }, { "docid": "821fe681a27fa51d7a400e50528e661e", "score": "0.59937215", "text": "public function get_title() {\n\t\treturn isset( self::$form_titles[$this->id] ) ? self::$form_titles[$this->id] : '';\n\t}", "title": "" }, { "docid": "5772227139ea149d7719bbc0d7646a64", "score": "0.5990405", "text": "public function getTitle(): string\n {\n $title = $this->getField()->getTitle();\n if (empty($title)) {\n $title = $this->getColumn()->getTitle();\n }\n if (empty($title)) {\n $title = $this->getField()->getName();\n }\n return $title;\n }", "title": "" }, { "docid": "ded9d178dd224e10feb7a747d753a8b2", "score": "0.59893817", "text": "public function getTitle()\n {\n if (!isset($this->title)) {\n $oembed = $this->getOEmbedInfo($this->url);\n\n $this->title = (string) $oembed->title;\n }\n\n return $this->title;\n }", "title": "" }, { "docid": "70de4e562ec0d38bd402dc83616af070", "score": "0.59849596", "text": "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "70de4e562ec0d38bd402dc83616af070", "score": "0.59849596", "text": "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "70de4e562ec0d38bd402dc83616af070", "score": "0.59849596", "text": "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "70de4e562ec0d38bd402dc83616af070", "score": "0.59849596", "text": "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "70de4e562ec0d38bd402dc83616af070", "score": "0.59849596", "text": "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "70de4e562ec0d38bd402dc83616af070", "score": "0.59849596", "text": "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "2c2a3b79a0deba042fea1b70110d5e95", "score": "0.5983842", "text": "public function getTitle()\n {\n if($this->hasOverridenTitle())\n {\n return parent::getTitle();\n }\n\n $title_parts = array();\n if(self::$LONG_TITLES)\n {\n if($this->getID3Album()) $title_parts[] = $this->getID3Album();\n if($this->getID3Artist()) $title_parts[] = $this->getID3Artist();\n }\n if($this->getID3Title())\n {\n $title_parts[] = $this->getID3Title();\n }\n if(!empty($title_parts))\n {\n return implode(' - ', $title_parts);\n }\n return parent::getTitle();\n }", "title": "" }, { "docid": "c3c3ba91962674ff689884b6349b46b7", "score": "0.59825325", "text": "public function get_title()\n\t\t{\n\t\t\treturn $this->title;\n\t\t}", "title": "" }, { "docid": "e23e1be354761578364f5f9b9c6b0fce", "score": "0.5979991", "text": "public final function getTitle()\n\t{\n\t\treturn $this->m_title;\n\t}", "title": "" }, { "docid": "79f894c1497d12b09fa40197c89d5208", "score": "0.59794754", "text": "public function getTitle ()\n\t{\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "d3daf4b5065622a1583ab272ce3615f7", "score": "0.59623057", "text": "public function getTitle() {\n\t\t\treturn $this->title;\n\t\t}", "title": "" }, { "docid": "8ccf9d57a993b73c1ab81470bdc6ab21", "score": "0.59583056", "text": "public function getTitle()\n\t{\n\t return $this->title;\n\t}", "title": "" }, { "docid": "4df2a21596b3ba07dee80a56eb85d9fa", "score": "0.59525687", "text": "public function fetchTitle(string $url): ?string {\n return Embed::create($url)->getTitle();\n }", "title": "" }, { "docid": "b31a55b3a0e9495fc828366610bdc34e", "score": "0.59500253", "text": "public function get_title()\n\t{\n\t\t//Return the title\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "77b442ace5b01e4502e2a9ce187cdc2c", "score": "0.5947438", "text": "public function getEventTitle()\n {\n return isset($this->source['event_title']) ? $this->source['event_title'] : null;\n }", "title": "" }, { "docid": "784a76d83920085e7b3bb74cbb52d64d", "score": "0.59467", "text": "function get_the_title( ?\\WP_Post $post, ?string $key = null ): string {\n\t$inst = _get_instance();\n\t$p = get_post( $post );\n\tif (\n\t\t$p instanceof \\WP_Post &&\n\t\tin_array( $p->post_type, $inst->post_types, true )\n\t) {\n\t\t$t = _get_title( $p, $key );\n\t\tif ( null !== $t ) {\n\t\t\treturn $t;\n\t\t}\n\t}\n\treturn \\get_the_title( $post );\n}", "title": "" }, { "docid": "b72ded643bc6205e84a11c1b1c522e21", "score": "0.59388095", "text": "protected function get_title() {\n\t\treturn get_the_title( $this->post_id );\n\t}", "title": "" }, { "docid": "4c6a347d5b60d03b01aa20f07880992b", "score": "0.5937495", "text": "public function getTitle()\r\n {\r\n return $this->_title;\r\n }", "title": "" }, { "docid": "f1775253b65cc2bb44373ed5817ec640", "score": "0.5931428", "text": "public function getTitle()\n {\n return $title;\n }", "title": "" }, { "docid": "756ece3f857a8e7329b0890efe3f52d8", "score": "0.5927957", "text": "public function getTitle(string $langcode = 'EN'): ?string {\n if (!isset($this->data['titles_json']) || !is_array($this->data['titles_json'])) {\n return NULL;\n }\n\n // Filter out any NULL, TRUE, FALSE and non-scalar titles.\n $titles = array_filter($this->data['titles_json'], function ($value): bool {\n return is_string($value) || is_numeric($value);\n });\n if (empty($titles)) {\n return NULL;\n }\n\n // The first available title will be used as fallback in case the specified\n // langcode is not present.\n $title = reset($titles);\n\n $title = $this->getTranslatedValue($titles, $langcode) ?? $title;\n\n return $this->truncateString(strip_tags(Html::decodeEntities($title)));\n }", "title": "" } ]
fb40437e9cc38e77cca68d1354f84f28
Outputs a message flagged as Message.
[ { "docid": "62ebd9091702286af86685b51d28ddc8", "score": "0.0", "text": "static public function Msg($message, $printStackTrace = false)\n {\n $log = new Log($message, self::LEVEL_MESSAGE);\n $log->_printTraceStack = (bool)$printStackTrace;\n $log->saveToFile();\n }", "title": "" } ]
[ { "docid": "b72bb5cb98dc10458a318d0a890fb769", "score": "0.6446068", "text": "public function output()\n {\n $output = '';\n if (count($this->messages)) {\n foreach($this->messages as $message) {\n // Configure css class\n $cssClass = 'flash-message';\n if (!empty($this->cssClasses[$message['type']])) {\n $cssClass = $this->cssClasses[$message['type']];\n }\n\n // Append output\n $output.= '<div class=\"' . $cssClass . '\">' \n . $message['text'] \n . '</div>';\n }\n }\n return $output;\n }", "title": "" }, { "docid": "6455a73d651e5e99f9bbc46bb7dc7c0d", "score": "0.63820845", "text": "public function render_message() {\n // $uprofile = render_user($user);\n return \"<div class='sm-message'>\n $uprofile\n $mdate\n $mbody\n </div>\";\n }", "title": "" }, { "docid": "83ebdebc4a4386a1b48481c1fbfee0fe", "score": "0.618886", "text": "public function output( $message = '', $type = '' ) {\n\t\techo $message . '<br />';\n\t}", "title": "" }, { "docid": "ef4593962e206e61df46824b5bd6c856", "score": "0.61878544", "text": "public function message()\n {\n return false;\n }", "title": "" }, { "docid": "8358483c245c5103cb719a4d31b081e5", "score": "0.61162716", "text": "public function __toString()\n {\n \t$message = $this->getMessage();\n \t\n\t\tif( is_null($message->getText()) )\n\t\t{\n\t\t\treturn '';\n\t\t}\n\t\t\n\t\t$output = '';\n\t\n\t\tswitch( $message->getType() ) \n\t\t{\n\t\t\tcase Cms_Message::TYPE_SUCCESS:\n\t\t\t\t$output .= 'showSuccess(\\'';\n\t\t\t\tbreak;\n\t\t\tcase Cms_Message::TYPE_ERROR:\n\t\t\t\t$output .= 'showError(\\'';\n\t\t\t\tbreak;\n\t\t\tcase Cms_Message::TYPE_CUSTOM:\n\t\t\tdefault:\n\t\t\t\t$output .= 'showCustomMessage(\\'';\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t$output .= $message->getText() . '\\');';\n\t\t\n\t\treturn $output;\n }", "title": "" }, { "docid": "27231d37d3e337538d9e1a94a01b81b0", "score": "0.60888124", "text": "public function out($message)\r\n {\r\n echo $message;\r\n }", "title": "" }, { "docid": "520b44889909bb11596d1773a6b0f0dc", "score": "0.6083071", "text": "function showMessage() {\n\t\treturn ClassForum_Posts::swapForumTags($this->_dao->message);\n\t}", "title": "" }, { "docid": "a87fbcba0ecd11f7465aba70d7cee899", "score": "0.6025653", "text": "public function out()\n\t{\n\t\tif ( is_scalar( $this->message ) ) {\n\t\t\techo $this->message . \"\\n\";\n\t\t}\n\t\telse {\n\t\t\techo var_export( $this->message, true ) . \"\\n\";\n\t\t}\n\t}", "title": "" }, { "docid": "45123dcff24069cce17f74beeeea5118", "score": "0.5998998", "text": "public function out($message) {\n echo $message . \"\\n\";\n }", "title": "" }, { "docid": "2cb64579b6260db22ed425b69eb9fccc", "score": "0.5918816", "text": "function message($message) {\n\t$msg = \"\\t<div class=\\\"clear\\\"></div>\\n\\n\";\n\t$msg .= \"\\t<!-- div class message is for general messages & warnings -->\\n\";\n\t$msg .= \"\\t<div class=\\\"message\\\">\".$message.\"</div>\\n\";\n\n\treturn $msg;\n}", "title": "" }, { "docid": "1bd4b6378712612567d306630170a0fd", "score": "0.5902782", "text": "public function show(Message $message)\n {\n return $message;\n }", "title": "" }, { "docid": "7b558641fea87bafca2a3b89c532a7b8", "score": "0.5857912", "text": "public function output_metabox_message()\n\t\t{\n\t\t\techo '<div style=\"margin-top:5px\">* ', __('Auto Sync currently activated.', 'wpsitesync-auto-sync'), '</div>';\n\t\t}", "title": "" }, { "docid": "e16fc907cf2d2910bd3ecf120d09bfec", "score": "0.5855643", "text": "function show_message($type,$message) {\n\t\treturn $message;\n\t}", "title": "" }, { "docid": "3ad20d0d7ef99c1c52ebed0305cc1915", "score": "0.58464766", "text": "function outputMessage()\n{\n\tglobal $strSign, $arrMail;\n\n\t$strMailContent = nl2br( $arrMail['Content'] );\n\t\n\t$strOutput = \"\";\n\n\tif ( $GLOBALS['config']['orderform']['show_form_title'] )\n\t{\n\t\t$stroutput .= sprintf('<h2 class=\"line\">%s</h2>', post('Formulartitel') );\n\t}\n\n\t$strOutput = \"\n\t\t<h2>Vielen Dank für Ihre Bestellung!</h2>\n\n\t\t<p>\n\t\t\tWir haben Ihre nachstehende Bestellung entgegengenommen.<br />\n\t\t\tDiese Nachricht wird auch an die von Ihnen angegebene Emailadresse versandt.<br />\n\t\t\t<br />\n\t\t\t<span class=\\\"quote\\\">\n\t\t\t<strong>Ihre Bestellung:</strong><br />\n\t\t\t{$strMailContent}\n\t\t\t</span>\n\t\t\t<br />\n\t\t\tHerzlichen Dank für Ihre Bestellung.<br />\n\t\t\tWir kümmern uns darum, daß Sie Ihre Bestellung so zügig wie möglich erhalten.<br />\n\t\t\t<br />\n\t\t\tMit besten Grüßen<br />\n\t\t\t{$GLOBALS['company']['owner']}<br />\n\t\t\t{$strSign}<br />\n\t\t</p>\n\n\t\t<p style=\\\"text-align: center;\\\">\n\t\t\t<a title=\\\"zurück\\\" href=\\\"\".post('Umleitung').\"\\\">zurück zur Startseite</a>\n\t\t</p>\\n\";\n\n return $strOutput;\n\n}", "title": "" }, { "docid": "3aaa5f44fa2ab1415f9b84526581498f", "score": "0.58114696", "text": "function outputResultMessage()\n {\n global $application;\n\n if (modApiFunc('Session', 'is_set', 'ResultMessage'))\n {\n $msg = modApiFunc('Session', 'get', 'ResultMessage');\n modApiFunc('Session', 'un_set', 'ResultMessage');\n $template_contents = array(\n \"ResultMessage\" => getMsg('CMS', $msg)\n );\n $this -> _Template_Contents = $template_contents;\n $application -> registerAttributes($this -> _Template_Contents);\n return $this -> mTmplFiller -> fill('cms/cms_menu/',\n 'result-message.tpl.html',\n array());\n }\n else\n {\n return '';\n }\n }", "title": "" }, { "docid": "dc8cd849ee34d5b48ec567c0d32770ed", "score": "0.58088654", "text": "public function messageAction()\n {\n $name = 'admin-message';\n\n $content = $this->params()->fromPost('content');\n if (Pi::service('permission')->isAdmin()) {\n Pi::user()->data->set(0, $name, $content);\n }\n\n if ($content) {\n $data = [\n 'value' => $content,\n 'time' => time(),\n ];\n } else {\n $data = Pi::user()->data->get(0, 'admin-welcome', true);\n }\n\n $message = [\n 'time' => _date($data['time']),\n 'content' => Pi::service('markup')->render(\n $data['value'],\n 'text'\n ),\n ];\n\n return $message;\n }", "title": "" }, { "docid": "e0f5f8ce61423b34375eee33ffb6f696", "score": "0.57963437", "text": "function output_message($message=\"\") {\n if(!empty($message)) {\n return \"<p class=\\\"message\\\">{$message}</p>\";\n } else {\n return \"\";\n }\n}", "title": "" }, { "docid": "e6869f91514f96a12f21106f0152ba25", "score": "0.57920265", "text": "public function getMessage()\n {\n return 'This is an example message.';\n }", "title": "" }, { "docid": "f9590ab9821901ab51c071b16aebc0d3", "score": "0.57840616", "text": "public function getMessage()\n {\n return htmlspecialchars($this->message);\n }", "title": "" }, { "docid": "fa6c678d3a0f28305661f3bd1665f6d4", "score": "0.57788265", "text": "public function getOut(): Message;", "title": "" }, { "docid": "721ffb4d58b7330ac0c2da008d7294ab", "score": "0.5750715", "text": "public function message()\n {\n return 'Ya te postulaste a éste empleo.';\n }", "title": "" }, { "docid": "2266a1fe5eea39bf9120aff996e6d4f1", "score": "0.5739775", "text": "public function print($message, $type, $transient = false)\n {\n $typeCssKlass = $this->getCssKlass($type);\n $transientCssKlass = $transient ? \"transient\" : \"\";\n return \"<div class='ui-message {$typeCssKlass} {$transientCssKlass}'>{$message}</div>\";\n }", "title": "" }, { "docid": "c26c3c448a8c36b9ab34dc2c97b40f0e", "score": "0.57309324", "text": "public function print_message($message) {\r\n global $tpl;\r\n $tpl->setCurrentBlock('message_block');\r\n $html = '';\r\n // $message kommt als indexiertes Array daher, wobei alle geraden indices den \r\n // Wert der Klasse (error/success) darstellen, alle ungeraden Werte den Meldungstext \r\n if (count($message) > 0) {\r\n foreach ($message as $index => $value) {\r\n if ($index % 2 == 0) {\r\n $html .= '<span class=\"' . $value . '\">';\r\n } else {\r\n $html .= $value . '</span><br />' . \"\\n\";\r\n }\r\n }\r\n $tpl->setVariable('meldung', $html);\r\n } else {\r\n $tpl->setVariable('class_meldung', 'hide');\r\n }\r\n $tpl->parseCurrentBlock();\r\n }", "title": "" }, { "docid": "9677e7d8e0c06bd8ddd9e40639779979", "score": "0.5717851", "text": "public function message(): string;", "title": "" }, { "docid": "9d66f926d14b46a4160d302a346dcf0e", "score": "0.57140654", "text": "function writeMessage(){\n\t\t\techo \"Your mum gay lol!!\";\n\t\t}", "title": "" }, { "docid": "411cc7651dd3da95035f622a9a6d8f91", "score": "0.5679603", "text": "public function msg()\n\t{\n\t\tif (!$this->_have_msg)\n\t\t{\n\t\t\t$this->buf .= \"<div name=\\\"ltform_msg\\\" id=\\\"ltform_msg\\\" \" .\n\t\t\t\t\"style=\\\"position:absolute;z-index:105;top:100px;left:300px;visibility:hidden;background:white;\".\n\t\t\t\t\"text-align:center;border:5px solid black;-moz-box-shadow: 10px 10px 5px #888; \".\n\t\t\t\t\"-webkit-box-shadow: 10px 10px 5px #888; box-shadow: 10px 10px 5px #888;\\\">\".\n\t\t\t\t\"<div name=\\\"ltform_msg_p\\\" id=\\\"ltform_msg_p\\\" \".\n\t\t\t\t\"style=\\\"text-align:center;margin:10px;background:white;\\\"></div></div>\";\n\t\t\t$this->_have_msg = TRUE;\n\t\t}\n\t}", "title": "" }, { "docid": "53cb57bbce4faed0277d2dfea51c8e24", "score": "0.5674968", "text": "public function render()\n {\n return '<div>' . $this->message . '</div>';\n }", "title": "" }, { "docid": "3330d0938bb18a1f617be2b8e94c26e5", "score": "0.5673281", "text": "function render() {\n\t\tprintf( '<div class=\"notice %1$s %2$s\"><p>%3$s</p></div>',\n\t\t\tesc_attr( $this->notice_type ),\n\t\t\tesc_attr( ($this->dismissible ? 'is-dismissible' : '') ),\n\t\t\tesc_html( $this->message )\n\t\t);\n\t}", "title": "" }, { "docid": "fe44cf95ce0048c5d8a16a0d4fcd94a9", "score": "0.56701577", "text": "private function message()\n {\n if (setting('auto_approve_reviews')) {\n return trans('review::messages.thank_you');\n }\n\n return trans('review::messages.submitted_for_approval');\n }", "title": "" }, { "docid": "43fd38c56fb83e838c70b96560e7f9b3", "score": "0.56657887", "text": "protected function response()\r\n {\r\n return Message::className();\r\n }", "title": "" }, { "docid": "87ee125455d928266511bb69028888e6", "score": "0.5659925", "text": "public function message()\n {\n return $this->messageText;\n }", "title": "" }, { "docid": "8693ba3406985eb4a09bd8f0df85f807", "score": "0.5653537", "text": "public function __toString() {\n return $this->message();\n }", "title": "" }, { "docid": "74c2476f4895875e7a4ecb994d944fa5", "score": "0.56462026", "text": "public function echoMessage(): void\n {\n echo $this->message;\n }", "title": "" }, { "docid": "1f6609b6041ded094ab2c23c7d77f6b9", "score": "0.56246996", "text": "private function message($msg) {\n echo $msg;\n }", "title": "" }, { "docid": "eacc426703adc0ab80e740a89595e1b7", "score": "0.56227607", "text": "public function message()\n {\n return $this->msg;\n }", "title": "" }, { "docid": "3ef831d5ba11b705e554092984d1824c", "score": "0.56210935", "text": "public function generate_text_for_display()\n\t{\n\t\t$message = $message_uid = $message_bitfield = $message_options = false;\n\t\t$this->get_message_fields($message, $message_uid, $message_bitfield, $message_options);\n\n\t\treturn generate_text_for_display($message, $message_uid, $message_bitfield, $message_options);\n\t}", "title": "" }, { "docid": "f7411d37d5446ca898933f3576f11d00", "score": "0.5610668", "text": "public function printMsg(){\n print $this->msg;\n }", "title": "" }, { "docid": "7f8f09485d5ecc59eb3a2520a36bfc0e", "score": "0.56022435", "text": "function\n\tisMessage ()\n\t{\n\t\tif ('message' == strtolower ($this->_type))\n\t\t\treturn true;\n\t}", "title": "" }, { "docid": "1ebec83113529863b6047228783c346d", "score": "0.55917335", "text": "public function kindOf()\n {\n return 'msg';\n }", "title": "" }, { "docid": "0e945a9ad95d299c3902d97d22535a9d", "score": "0.55914843", "text": "public function returnMessage(): string\n {\n return $this->message;\n }", "title": "" }, { "docid": "f65d084e3cb50556c6094cb995e9c2de", "score": "0.55908483", "text": "private function msg(string $message)\n {\n $this->output->write($message);\n }", "title": "" }, { "docid": "0dac70b5e5587f4f610f3acd34427808", "score": "0.5590782", "text": "public function getMessage() {\n return$this->message;\n }", "title": "" }, { "docid": "96a57eb2fcd8bc0a8075fc88ac0edaa3", "score": "0.55881447", "text": "public function __toString()\n {\n return $this->message;\n }", "title": "" }, { "docid": "96a57eb2fcd8bc0a8075fc88ac0edaa3", "score": "0.55881447", "text": "public function __toString()\n {\n return $this->message;\n }", "title": "" }, { "docid": "8e55b00fdbfc32a1c5885793c664bd48", "score": "0.5585241", "text": "public function say($type, $message)\n {\n $message = \"<{$type}>{$message}</{$type}>\";\n\n return $this->output->write($message.PHP_EOL);\n }", "title": "" }, { "docid": "26683c5481b5a32d73a2d2566fc87f81", "score": "0.5583245", "text": "public function __toString()\n {\n return $this->message();\n }", "title": "" }, { "docid": "ab0f210dc6d9c6e0bf87e6f696cf6428", "score": "0.5583076", "text": "public abstract function display($message);", "title": "" }, { "docid": "0f6525148d5991e41ae0e114b8960347", "score": "0.5544872", "text": "public function display($message)\n {\n $this->newLine();\n $this->out($message);\n $this->newLine();\n $this->newLine();\n }", "title": "" }, { "docid": "bcd3e5a60c0714f4f847a2d79cf7a993", "score": "0.5538973", "text": "public\n function display_info() {\n //Iterates msg\n foreach ($this->msg as $msg) {\n //Output msg\n echo '<p class=\"msg\">' . $msg . '</p>';\n }\n }", "title": "" }, { "docid": "cd12d44ec3470951e4449f2595e8b744", "score": "0.55227125", "text": "private function output($sMessage) {\n\n\t\tfwrite($this->rStdOut, $sMessage);\n\t}", "title": "" }, { "docid": "1d6d264c2b5ce83975a3eb112326419d", "score": "0.551671", "text": "protected function messageProcessor($id, $message) {\n //return \"Received: \" . $message;\n }", "title": "" }, { "docid": "6b76adfbd7de9361e45feee11c7c2f3f", "score": "0.5499143", "text": "public function message($message)\n {\n if (!$this->_enabled) {\n return;\n }\n // @TODO Implement console process output messages handling\n // This method should be overridden in output handlers\n // that can handle output messages\n }", "title": "" }, { "docid": "f4bc70d4319614d258774080786e4a32", "score": "0.54949", "text": "public function toString()\n {\n return \"Message with appropriate notification status is available in Comments History section.\";\n }", "title": "" }, { "docid": "3bfc3c1c9113f817d8a7009c748ced49", "score": "0.5494774", "text": "public function getMessage() {\n return $this->message;\n }", "title": "" }, { "docid": "3bfc3c1c9113f817d8a7009c748ced49", "score": "0.5494774", "text": "public function getMessage() {\n return $this->message;\n }", "title": "" }, { "docid": "3bfc3c1c9113f817d8a7009c748ced49", "score": "0.5494774", "text": "public function getMessage() {\n return $this->message;\n }", "title": "" }, { "docid": "3bfc3c1c9113f817d8a7009c748ced49", "score": "0.5494774", "text": "public function getMessage() {\n return $this->message;\n }", "title": "" }, { "docid": "3bfc3c1c9113f817d8a7009c748ced49", "score": "0.5494774", "text": "public function getMessage() {\n return $this->message;\n }", "title": "" }, { "docid": "2321ba7b14fdb3551876b6f0c5ecfb3f", "score": "0.5494428", "text": "public function getMessage()\n {\n return $this->message;\n }", "title": "" }, { "docid": "d244941600a6b9dc9f72fbb7f29bd868", "score": "0.54938954", "text": "public function message()\n {\n return 'Deze positie is al in gebruik, kies een positie die nog niet gebruikt wordt.';\n }", "title": "" }, { "docid": "703e8a32564513834b57dda4a5576d64", "score": "0.5493607", "text": "public static function inline($message)\n {\n if(self::getOption('silent')) return;\n echo $message;\n }", "title": "" }, { "docid": "fe4c778356bc54c8227148c2bb0deefe", "score": "0.54855347", "text": "public function message()\n\t{\n\t\treturn $this->msg;\n\t}", "title": "" }, { "docid": "d6cd133926b23b724df54816f3ad333f", "score": "0.54827183", "text": "public function message()\n {\n return 'شما یک مدرس نیستید ';\n }", "title": "" }, { "docid": "0e258d43f4fb258a8abba27acc46300a", "score": "0.5469523", "text": "public function get_message_no_user()\n {\n\n $message = $_GET['message'];\n if ($message == \"true\") \n {\n $message_body = \"<p class='red text-justify'>Estimado alumno,</br></br> \n Estamos trabajando para brindarte un mejor servicio, por lo cual te pedimos realizar tus operaciones a través de www.intranet.upc.edu.pe</br></br>\n Pronto te informaremos desde cuándo puedes realizar tus operaciones por este medio.</br></br> Gracias por tu comprensión.<p>\";\n }\n return $message_body;\n }", "title": "" }, { "docid": "55d85535cc571d2fd2e6feff4eaaabe5", "score": "0.5463244", "text": "public function output_login_message( $message ) {\n\t\tif ( ! empty( $this->settings['login_message'] ) ) {\n\t\t\t$message .= '<p class=\"message\">' . esc_html( $this->settings['login_message'] ) . '</p>';\n\t\t}\n\t\treturn $message;\n\t}", "title": "" }, { "docid": "cd3617136cb42e896eb979966b85d93c", "score": "0.5461003", "text": "public function generate() {\n\n if ($this->isPlural()) {\n $message = new PluralMessage($this->getSingular(), $this->getPlural(), $this->getN());\n } else {\n $message = new Message($this->getSingular());\n }\n $message->setTranslator($this->getTranslator())\n ->setTranslationRule($this->getTranslateArgs())\n ->setArguments($this->getParams());\n return $message;\n }", "title": "" }, { "docid": "f504e88ee277a29f45e2c1fec15150e7", "score": "0.5460411", "text": "function display_message(){\n\t\n\t\t$output = $this ->get_os_message().$this -> alt_browser();\n\t\treturn $output ; \n\t}", "title": "" }, { "docid": "df82e3fa37d4c9300b3944f5c4bbe9e1", "score": "0.5458675", "text": "function banned_message($message) {\n\t$msg = \"\\t<div class=\\\"clear\\\"></div>\\n\\n\";\n\t$msg .= \"\\t<!-- div class message is for general messages & warnings -->\\n\";\n\t$msg .= \"\\t<div class=\\\"banned-message\\\">\".$message.\"</div>\\n\";\n\n\treturn $msg;\n}", "title": "" }, { "docid": "e9099c53c709a712ba513cdd87bcdfa5", "score": "0.5457149", "text": "public function echo($message) {}", "title": "" }, { "docid": "2aa4da4e52d351e899a9557f3cbbeb5c", "score": "0.54539305", "text": "public function message(): string\n {\n return $this->message;\n }", "title": "" }, { "docid": "2aa4da4e52d351e899a9557f3cbbeb5c", "score": "0.54539305", "text": "public function message(): string\n {\n return $this->message;\n }", "title": "" }, { "docid": "087f2560431b3c02b8783a52ab9e0e94", "score": "0.54350394", "text": "public function getMessage() {\r\n return $this->message;\r\n }", "title": "" }, { "docid": "7244f7d77812d36a800fdbd2227566e1", "score": "0.5434384", "text": "function Message() {\n }", "title": "" }, { "docid": "f9ccfc6e8a1f7ed96841e492b13f0351", "score": "0.54339427", "text": "function getMessage() {\n return $this->getBody();\n }", "title": "" }, { "docid": "37860978d0d05f295ffae321dda9d53c", "score": "0.5433875", "text": "public function blockMsgCommand(): int\n {\n if (!$this->output->supportColor()) {\n $this->write('Current terminal is not support output color text.');\n\n return 0;\n }\n\n $this->write('block message:');\n\n foreach (Show::getBlockMethods() as $type) {\n $this->output->$type(\"$type style message text\");\n }\n\n return 0;\n }", "title": "" }, { "docid": "71dbc4729c371bcf515a9298788bb24b", "score": "0.5430955", "text": "protected function message(string $message)\n {\n $this->_output->write($this->_planetDotName . \": \" . $message);\n }", "title": "" }, { "docid": "c15d8111d137d6fbf06ac07e3fbe619a", "score": "0.54222393", "text": "public function show(Message $message)\n {\n //\n }", "title": "" }, { "docid": "c15d8111d137d6fbf06ac07e3fbe619a", "score": "0.54222393", "text": "public function show(Message $message)\n {\n //\n }", "title": "" }, { "docid": "c15d8111d137d6fbf06ac07e3fbe619a", "score": "0.54222393", "text": "public function show(Message $message)\n {\n //\n }", "title": "" }, { "docid": "c15d8111d137d6fbf06ac07e3fbe619a", "score": "0.54222393", "text": "public function show(Message $message)\n {\n //\n }", "title": "" }, { "docid": "c15d8111d137d6fbf06ac07e3fbe619a", "score": "0.54222393", "text": "public function show(Message $message)\n {\n //\n }", "title": "" }, { "docid": "c15d8111d137d6fbf06ac07e3fbe619a", "score": "0.54222393", "text": "public function show(Message $message)\n {\n //\n }", "title": "" }, { "docid": "c15d8111d137d6fbf06ac07e3fbe619a", "score": "0.54222393", "text": "public function show(Message $message)\n {\n //\n }", "title": "" }, { "docid": "c15d8111d137d6fbf06ac07e3fbe619a", "score": "0.54222393", "text": "public function show(Message $message)\n {\n //\n }", "title": "" }, { "docid": "c15d8111d137d6fbf06ac07e3fbe619a", "score": "0.54222393", "text": "public function show(Message $message)\n {\n //\n }", "title": "" }, { "docid": "c15d8111d137d6fbf06ac07e3fbe619a", "score": "0.54222393", "text": "public function show(Message $message)\n {\n //\n }", "title": "" }, { "docid": "1be3d35fca9aad8e477db56e68e7e9af", "score": "0.54214406", "text": "public function getMessage();", "title": "" }, { "docid": "1be3d35fca9aad8e477db56e68e7e9af", "score": "0.54214406", "text": "public function getMessage();", "title": "" }, { "docid": "1be3d35fca9aad8e477db56e68e7e9af", "score": "0.54214406", "text": "public function getMessage();", "title": "" }, { "docid": "1be3d35fca9aad8e477db56e68e7e9af", "score": "0.54214406", "text": "public function getMessage();", "title": "" }, { "docid": "1be3d35fca9aad8e477db56e68e7e9af", "score": "0.54214406", "text": "public function getMessage();", "title": "" }, { "docid": "1be3d35fca9aad8e477db56e68e7e9af", "score": "0.54214406", "text": "public function getMessage();", "title": "" }, { "docid": "1be3d35fca9aad8e477db56e68e7e9af", "score": "0.54214406", "text": "public function getMessage();", "title": "" }, { "docid": "1be3d35fca9aad8e477db56e68e7e9af", "score": "0.54214406", "text": "public function getMessage();", "title": "" }, { "docid": "1be3d35fca9aad8e477db56e68e7e9af", "score": "0.54214406", "text": "public function getMessage();", "title": "" }, { "docid": "1be3d35fca9aad8e477db56e68e7e9af", "score": "0.54214406", "text": "public function getMessage();", "title": "" }, { "docid": "1be3d35fca9aad8e477db56e68e7e9af", "score": "0.54214406", "text": "public function getMessage();", "title": "" }, { "docid": "1be3d35fca9aad8e477db56e68e7e9af", "score": "0.54214406", "text": "public function getMessage();", "title": "" }, { "docid": "1be3d35fca9aad8e477db56e68e7e9af", "score": "0.54214406", "text": "public function getMessage();", "title": "" }, { "docid": "f3d1d01e35bf1219e846c2fc88b87aec", "score": "0.5415915", "text": "private function getMsg() {\n $msg = new displayMessage();\n $this->data[\"msg\"] = $msg->create();\n }", "title": "" }, { "docid": "0cf6ffff7c163969a6e8b9997c0e0fcd", "score": "0.54095435", "text": "public function message($text, $flags = 0);", "title": "" } ]
801a6fbe47d3bb7f71c40a4cfd9d8b25
abort_if(Gate::denies('user_delete'), Response::HTTP_FORBIDDEN, '403 Forbidden');
[ { "docid": "c9c2294a66c63d518a4c25cfa52ea7c3", "score": "0.0", "text": "public function destroy(User $user)\n {\n\n $user->delete();\n\n return back()->withSuccess('Task Created Successfully!');\n }", "title": "" } ]
[ { "docid": "6739ef1064d9b329f8228d22bf9dc351", "score": "0.7066132", "text": "public function forbiddenResponse()\n {\n return App::abort('403', 'Unauthorized action.');\n }", "title": "" }, { "docid": "4f939da49c15d91046d5e42c0f41a588", "score": "0.7050614", "text": "public function destroy($id)\n {\n Gate::authorize('haveaccess'); \n }", "title": "" }, { "docid": "947111bdeba1ae1815869bbeaeee1a80", "score": "0.6928344", "text": "public function forbiddenResponse()\n {\n abort(403);\n }", "title": "" }, { "docid": "24e62a2dfa7cf3d44d01aa578ac4aec0", "score": "0.68183035", "text": "public function delete() : void\n {\n $context = Context::getinstance();\n if ($context->user()->login !== $this->bean->owner()->login)\n {\n throw new \\Framework\\Exception\\Forbidden('Permission Denied');\n }\n \n }", "title": "" }, { "docid": "b145eb6e071cef5d7c0505954cc87132", "score": "0.6759042", "text": "public function forbidden(){\r\n response::forbidden();\r\n }", "title": "" }, { "docid": "65f376f608ff5a0eaa049d06ee111627", "score": "0.674772", "text": "public function unauthorized(){\r\n response::unauthorized();\r\n }", "title": "" }, { "docid": "1d20fe3aaf12e1138c1ae66f2160499f", "score": "0.66943216", "text": "function permissions_delete()\n{\n // Deletion not allowed\n return false;\n}", "title": "" }, { "docid": "76765bb64fe8005cf75cb36aff213d09", "score": "0.66552913", "text": "public function isForbidden();", "title": "" }, { "docid": "2e893fea341ff3bb8a9a4ec2a68ed09a", "score": "0.6645497", "text": "public function testDeleteDenyNotHrAndAdmin() {\n\t\t$this->setExpectedException('MissingActionException');\n\t\t$userRoles = [\n\t\t\tUSER_ROLE_USER => '',\n\t\t\tUSER_ROLE_USER | USER_ROLE_SECRETARY => 'secret',\n\t\t];\n\t\t$opt = [\n\t\t\t'method' => 'POST',\n\t\t];\n\t\tforeach ($userRoles as $userRole => $userPrefix) {\n\t\t\t$userInfo = [\n\t\t\t\t'role' => $userRole,\n\t\t\t\t'prefix' => $userPrefix,\n\t\t\t];\n\t\t\t$this->applyUserInfo($userInfo);\n\t\t\t$this->generateMockedController();\n\t\t\t$url = [\n\t\t\t\t'controller' => 'deferred',\n\t\t\t\t'action' => 'delete',\n\t\t\t\t'3',\n\t\t\t];\n\t\t\tif (!empty($userPrefix)) {\n\t\t\t\t$url['prefix'] = $userPrefix;\n\t\t\t\t$url[$userPrefix] = true;\n\t\t\t}\n\t\t\t$this->testAction($url, $opt);\n\t\t\t$this->checkIsNotAuthorized();\n\t\t\t$this->checkRedirect(true);\n\t\t}\n\t}", "title": "" }, { "docid": "59f376d33fce88f4785de8d23b628c1c", "score": "0.658795", "text": "public function testDeleteDenyNotAdmin() {\n\t\t$this->setExpectedException('MissingActionException');\n\t\t$userRoles = [\n\t\t\tUSER_ROLE_USER => '',\n\t\t\tUSER_ROLE_USER | USER_ROLE_SECRETARY => 'secret',\n\t\t\tUSER_ROLE_USER | USER_ROLE_HUMAN_RESOURCES => 'hr',\n\t\t];\n\t\t$opt = [\n\t\t\t'method' => 'POST',\n\t\t];\n\t\tforeach ($userRoles as $userRole => $userPrefix) {\n\t\t\t$userInfo = [\n\t\t\t\t'role' => $userRole,\n\t\t\t\t'prefix' => $userPrefix,\n\t\t\t];\n\t\t\t$this->applyUserInfo($userInfo);\n\t\t\t$this->generateMockedController();\n\t\t\t$url = [\n\t\t\t\t'controller' => 'logs',\n\t\t\t\t'action' => 'delete',\n\t\t\t\t'1',\n\t\t\t];\n\t\t\tif (!empty($userPrefix)) {\n\t\t\t\t$url['prefix'] = $userPrefix;\n\t\t\t\t$url[$userPrefix] = true;\n\t\t\t}\n\t\t\t$this->testAction($url, $opt);\n\t\t\t$this->checkIsNotAuthorized();\n\t\t\t$this->checkRedirect(true);\n\t\t}\n\t}", "title": "" }, { "docid": "b5498890ec447c8dc2d830374a615b20", "score": "0.6557562", "text": "public function testCannotDeleteOtherUsersExhibits()\n {\n $this->request->setMethod('POST');\n $this->dispatch('neatline/delete/'.$this->exhibit->id);\n $this->assertAction('forbidden');\n }", "title": "" }, { "docid": "be14936abede21f0dc3cdad8c28f99fa", "score": "0.6544982", "text": "function abortIfVerified() {\n\t\tif (!User::findOrLogout(auth()->id())->isAdmin()) {\n\t\t\t// And booking is disetujui\n\t\t\tif ($this->disetujui != null) {\n\t\t\t\t// Abort Disallow user to edit\n\t\t\t\tabort(403, 'Booking yang sudah di verify tidak bisa di edit');\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b8e607ffc5469cb3f8b1372562859412", "score": "0.64845276", "text": "public function destroy($id)\n {\n Gate::authorize('haveaccess');\n }", "title": "" }, { "docid": "5b510f8b5327e9ecb1aaca025b94ef3d", "score": "0.6472497", "text": "public function authorize()\n {\n return $this->can('delete');\n }", "title": "" }, { "docid": "d796ec6e398acfacc78533d15e5ef4ff", "score": "0.6465344", "text": "public function authorize()\n {\n return access()->allow('delete-pass-durations');\n }", "title": "" }, { "docid": "f32d4cd70b60b8890a53f2a5f8c3b7d0", "score": "0.64605075", "text": "public function delete(User $user, BASE_Upper_singular $BASE_lower_singular)\n {\n return true // TODO CRUD ADD POLICY CHECK HERE\n ? Response::allow()\n : Response::deny('Unauthorized: You cannot delete this BASE_lower_singular.');\n }", "title": "" }, { "docid": "dd8fab455ab479bec8af3655920246bc", "score": "0.64031434", "text": "public function delete()\n {\n $user = new Task();\n $attributes = $this->request->body();\n\n if( $user->setAttributes($attributes)->delete() ) {\n // return ['status' => 'success']; // for ajax\n header(\"Location: /task/index\");\n exit;\n }\n\n return ['status' => 'cannot delete'];\n }", "title": "" }, { "docid": "f502b6704d71496abca455c731c2d8b7", "score": "0.63775206", "text": "private function checkForbidden(){\n\n }", "title": "" }, { "docid": "26ff2406518693c7969128b12c798f10", "score": "0.6370168", "text": "public function testCannotDeleteAnotherUser()\n {\n $user = factory(User::class)->create();\n $user->activate();\n $user2 = factory(User::class)->create();\n $user2->activate();\n Auth::login($user2);\n \n $this->delete('/api/v1/user/'.$user->id, ['HTTP_X-Requested-With' => 'XMLHttpRequest'])\n ->assertStatus(403);\n $this->assertDatabaseHas('users', [\n 'name' => $user->name,\n 'email' => $user->email,\n 'activated' => true\n ]);\n }", "title": "" }, { "docid": "2e6922d8768321d0e3e30994a86bb339", "score": "0.6329785", "text": "public static function deny(Request $request);", "title": "" }, { "docid": "747214512266b2098c5f5593b49d6e97", "score": "0.63194335", "text": "function checkPermissionDelete() {\n\t\tif ($_SESSION['log_delete']!=='1'){\n\t\t\theader('Location: start.php');\n\t\t\tdie();\n\t\t}\n\t}", "title": "" }, { "docid": "bf68a22a74e230f5765432ee9243f84f", "score": "0.631525", "text": "public function testDeleteAnotherExistingUser_()\n {\n $this->getTestingUserWithoutAccess();\n\n $anotherUser = factory(User::class)->create();\n\n // send the HTTP request\n $response = $this->injectId($anotherUser->id)->makeCall();\n\n // assert response status is correct\n $response->assertStatus(403);\n }", "title": "" }, { "docid": "2ad10b976125f846144bf4469a1b4588", "score": "0.6301505", "text": "public function interceptDelete()\n\t{\n\t\t$user = $this->getService('com://admin/ninjaboard.model.people')->getMe();\n\t\t$rows = $this->getModel()->getList();\n\t\tforeach($rows as $row)\n\t\t{\n\t\t\t$topic = $this->getService('com://site/ninjaboard.model.topics')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->id($row->ninjaboard_topic_id)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->getItem();\n\t\t\t$forum = $this->getService('com://site/ninjaboard.model.forums')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->id($topic->forum_id)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->getItem();\n\n\t\t\t// @TODO we migth want to add an option later, wether or not to allow users to delete their own post.\n\t\t\tif($forum->post_permissions < 3 && $row->created_by != $user->id) {\n\t\t\t\tJError::raiseError(403, JText::_('COM_NINJABOARD_YOU_DONT_HAVE_THE_PERMISSIONS_TO_DELETE_OTHERS_TOPICS'));\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9337bfe94d44d0b010448c4d39fa595d", "score": "0.62833285", "text": "public function testDeleteUserWithoutAuthorization(): void\n {\n static::createClient()->request(Request::METHOD_DELETE, '/api/users/1');\n $this->assertResponseStatusCodeSame(Response::HTTP_UNAUTHORIZED);\n }", "title": "" }, { "docid": "3c7eeac606d9f1502cdac6a9760d4624", "score": "0.62680024", "text": "public function destroy(User $user, Request $request)\n { $this->authorize('delete', $user);\n $delete = User::whereIn('id',$request->input('id'))->delete();\n $true = response() -> json(['true' => 'Successfully!']);\n $false = response() -> json(['false' => 'Something went wrong!']);\n return $delete ? $true : $false;\n }", "title": "" }, { "docid": "d8cd18c99bdfab1e9727b13f27f48cf6", "score": "0.62675136", "text": "protected function applyUserDeletePermission()\n {\n return TRUE;\n }", "title": "" }, { "docid": "4bc22a74bce9e19f54e5d3a5348fa24c", "score": "0.62618244", "text": "public function testDeleteAnotherUser(): void\n {\n $authToken = $this->getAuthToken();\n\n static::createClient()->request(Request::METHOD_DELETE, '/api/users/8', ['auth_bearer' => $authToken]);\n $this->assertResponseStatusCodeSame(Response::HTTP_FORBIDDEN);\n }", "title": "" }, { "docid": "fb22224e53ffda7aa88fdd46df3954c2", "score": "0.6254096", "text": "public function authorize()\r\n {\r\n return false;\r\n }", "title": "" }, { "docid": "ede0b6bea6bb51c639789593be34c946", "score": "0.62451977", "text": "public function handle($request, Closure $next)\n{\t\nif(Auth::user()->type == 'admin') {\nreturn abort(401,'Not authorized'); //Or redirect() or whatever you want\n}\nreturn $next($request);\n}", "title": "" }, { "docid": "584558858913af8d55c2f65206e171de", "score": "0.6243627", "text": "public function testDeleteServerUnauthorized(){\n \n $user = User::where('email', $this->emailOfTestUser)->first();\n $response = $this->actingAs($user, 'api')->json('DELETE', \"/api/server/delete/1\");\n \n $response->seeStatusCode(401);\n\n }", "title": "" }, { "docid": "c1a2cfdc2cba799e8c25118826be1ae5", "score": "0.6224855", "text": "public function destroy($id)\n\n { if(Auth::check()){\n if(Favorite::where('requestId', $id)->first()) {\n $favorites = Favorite::where('requestId', $id)->where('userId', Auth::id() )->first();\n $favorites->delete();\n\n return response()->json([\n \"message\" => \"Favorite successfully deleted\"\n ], 200);\n } else {\n return response()->json([\n \"message\" => \"Request is neither found, best guess is, it is not marked as Favorite by you.\"\n ], 404);\n }\n }\n //Returns 401 error for non Authenticated users \n else {\n return response()->json([\n \"error\" => \"Unauthorized to perform operation\"\n ], 401);\n }\n}", "title": "" }, { "docid": "064972be9e47d92fc5fd1e009532a3b1", "score": "0.6202882", "text": "public static function denyAccess()\n {\n header('HTTP/1.0 403 Forbidden');\n echo '403 Forbidden';\n exit;\n }", "title": "" }, { "docid": "ffeb5ae78f04b1bb64d42a7b8c270b7d", "score": "0.6199586", "text": "public function delete(){ return false; }", "title": "" }, { "docid": "ffeb5ae78f04b1bb64d42a7b8c270b7d", "score": "0.6199586", "text": "public function delete(){ return false; }", "title": "" }, { "docid": "3b8cc11d0f4c59d5b5f78f0644db63e0", "score": "0.61970454", "text": "public function authorize() {\n\t\treturn false;\n }", "title": "" }, { "docid": "9ef5dcc0ab1d8cd337692eb7b2ed4ac4", "score": "0.6184328", "text": "public function delete(User $user, PhotographerRequest $photographerRequest)\n {\n if ($user->id === (int)$photographerRequest->photographer_id || $user->id === (int)$photographerRequest->product->user_id) {\n return Response::allow();\n };\n throw new UnauthorisedException(\"Sorry you dont have access to delete this request\");\n }", "title": "" }, { "docid": "0571820cf9a130502df923ee5e2e3175", "score": "0.6182374", "text": "public function authorize()\n {\n // return false;\n return true;\n }", "title": "" }, { "docid": "9cdb88fe1510c1a4f35cacace93c790e", "score": "0.6170645", "text": "public function authorize()\n {\n //return false;\n return true;\n }", "title": "" }, { "docid": "9cdb88fe1510c1a4f35cacace93c790e", "score": "0.6170645", "text": "public function authorize()\n {\n //return false;\n return true;\n }", "title": "" }, { "docid": "9cdb88fe1510c1a4f35cacace93c790e", "score": "0.6170645", "text": "public function authorize()\n {\n //return false;\n return true;\n }", "title": "" }, { "docid": "9cdb88fe1510c1a4f35cacace93c790e", "score": "0.6170645", "text": "public function authorize()\n {\n //return false;\n return true;\n }", "title": "" }, { "docid": "9cdb88fe1510c1a4f35cacace93c790e", "score": "0.6170645", "text": "public function authorize()\n {\n //return false;\n return true;\n }", "title": "" }, { "docid": "f41d9804b5c8a4648e4cbb391fdcf2df", "score": "0.6161801", "text": "abstract public function canDelete();", "title": "" }, { "docid": "1cd11dd8c04fcd7608a7a78216d13e40", "score": "0.6161163", "text": "function deleteUser($user_id){\n // This block automatically checks this action against the permissions database before running.\n if (!checkActionPermissionSelf(__FUNCTION__, func_get_args())) {\n addAlert(\"danger\", \"Sorry, you do not have permission to access this resource.\");\n return false;\n }\n\n return removeUser($user_id);\n}", "title": "" }, { "docid": "207ff0eea777f82ef8a20910ba2e1fbb", "score": "0.61481273", "text": "public function test_delete_forbidden_membership() {\n\t\t// create a membership first.\n\t\twp_set_current_user( $this->user_allowed );\n\t\t$membership = $this->factory->membership->create_and_get();\n\n\t\t// Delete membership.\n\t\twp_set_current_user( $this->user_forbidden );\n\t\t$response = $this->perform_mock_request( 'DELETE', $this->route . '/' . $membership->get( 'id' ) );\n\n\t\t// Forbidden.\n\t\t$this->assertEquals( 403, $response->get_status() );\n\t}", "title": "" }, { "docid": "69a9881a1599fc43a21e258b13ca9706", "score": "0.6137831", "text": "public function deletePolicy(User $user)\n {\n return $user->may(static::PERMISSION_DELETE);\n }", "title": "" }, { "docid": "7919967f2463436d9008a91b97c62894", "score": "0.6135477", "text": "public function destroy($id)\n\t{\n\t\t// Nutzer kann Familien löschen\n\t\tif (!Auth::user()->can('delete-familie'))\n\t\t{\n\t\t\treturn abort(403);\n\t\t}\n\t}", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "189dff5de6b9f702e89adffc7bb7da29", "score": "0.61323744", "text": "public function authorize()\n {\n return false;\n }", "title": "" }, { "docid": "6f109d1a8c9d9ac08964e6e653457368", "score": "0.61313385", "text": "public function testDeleteServerThatDoesNotBelongToTheUser(){\n \n //Used to to login to get token\n $token = $this->login();\n \n $user = User::where('email', $this->emailOfTestUser)->first();\n $response = $this->actingAs($user, 'api')->json('DELETE', \"/api/server/delete/4?token=$token\");\n \n $response->seeStatusCode(403);\n\n }", "title": "" }, { "docid": "2f86a7c5a10b3ea6abbbca9afba40df0", "score": "0.6123112", "text": "public function withoutAuthorization();", "title": "" }, { "docid": "22297046baed65aa2b80555bf451e57b", "score": "0.61194134", "text": "public function deny_advertiser(Request $request)\n {\n\n }", "title": "" }, { "docid": "693fd70558d6d4f2cdb7aaf5c59d09d4", "score": "0.61144096", "text": "private function checkIfAllowed()\n {\n if (!in_array($this->getUser()->getRole->name, ['automatedTask', 'admin'])) {\n abort(403, 'You are not allowed to access this area of the application');\n }\n }", "title": "" }, { "docid": "1d6bea6a744ffe8c70692cd232006d19", "score": "0.6111576", "text": "public function authorize()\n {\n // return false;\n return true;\n }", "title": "" }, { "docid": "1dc3cdfa0bcdf560957a3e9bad8cf7fb", "score": "0.61087114", "text": "function unauthenticated_users_may_not_delete_replies()\n {\n\n $this->expectException('Illuminate\\Auth\\AuthenticationException');\n $replay = create('App\\Replay');\n\n $this->delete(\"/replies/{$replay->id}\")\n ->assertRedirect('login');\n\n $this->signIn()->delete(\"/replies/{$replay->id}\")\n ->assertStatus(403);\n\n }", "title": "" }, { "docid": "9155ac8723971e8e66192254ae95178e", "score": "0.6108325", "text": "public function test_admins_delete_response_without_login()\n {\n $admin = factory(admin::class)->create();\n $admin2 = factory(admin::class)->create();\n $response = $this->delete('admin/user/' . $admin2->id);\n $response->assertRedirect('/admin-login');\n }", "title": "" }, { "docid": "8e21fbc341bc9fe265e6891fe9e055c1", "score": "0.6083871", "text": "public function delete(): bool\n {\n return $this->isAllowed(self::DELETE);\n }", "title": "" } ]
d0d6991e7bb10cf81caefbcbe8c1e8b0
Function to Get Total
[ { "docid": "20bcdcd0e76ebe304af96c3d11e2241e", "score": "0.0", "text": "public function getTotalAttribute() {\n return $this->cartItems->map(function ($item, $key) {\n return $item->subtotal;\n })->sum();\n }", "title": "" } ]
[ { "docid": "496bc0c28c1ae84e89700058cc363d67", "score": "0.8709243", "text": "public function getTotal();", "title": "" }, { "docid": "496bc0c28c1ae84e89700058cc363d67", "score": "0.8709243", "text": "public function getTotal();", "title": "" }, { "docid": "784f2d264a06f5791b4a21657c9a6fd2", "score": "0.86939377", "text": "public function total();", "title": "" }, { "docid": "784f2d264a06f5791b4a21657c9a6fd2", "score": "0.86939377", "text": "public function total();", "title": "" }, { "docid": "784f2d264a06f5791b4a21657c9a6fd2", "score": "0.86939377", "text": "public function total();", "title": "" }, { "docid": "2e2dc78e4a207fe9d689edfa4b756bf4", "score": "0.82258415", "text": "public function get_total()\n {\n }", "title": "" }, { "docid": "3745362daedc3f3566dea5e94df51eb0", "score": "0.8216955", "text": "abstract public function countTotal();", "title": "" }, { "docid": "9c526cd048f21969c70807b7a7776048", "score": "0.8112814", "text": "public function getTotal() {\n return $this->get(self::TOTAL);\n }", "title": "" }, { "docid": "ae4fd2ea41d432b50486a52009d3715f", "score": "0.8099936", "text": "public function getTotalAmount();", "title": "" }, { "docid": "935ecf77f287b9379e29bf1f823ec60b", "score": "0.8020833", "text": "protected function getTotal()\n {\n $total = 0;\n foreach ($this->entries as $entry) {\n $total += $entry['price'] * $entry['quantity'];\n }\n\n return $total;\n }", "title": "" }, { "docid": "fe00a6a24d526dfac7da62ab7b435745", "score": "0.7952092", "text": "public function getTotal()\n {\n $cart = $this->getContent();\n\n $sum = array_reduce($cart->all(), function ($a, ItemCollection $item) {\n return $a += $item->getPrice(false);\n }, 0);\n\n return Helpers::formatValue(floatval($sum), $this->config['format_numbers'], $this->config);\n }", "title": "" }, { "docid": "950a82c6f34d0dc45240dff5643b4108", "score": "0.7942201", "text": "public function getTotal() \n {\n $tax = $this->getTax(); \n return $this->_subtotal + $tax; \n }", "title": "" }, { "docid": "7e681aae0bccb4c9179b8c66573026e7", "score": "0.794125", "text": "public function total(): float;", "title": "" }, { "docid": "7e681aae0bccb4c9179b8c66573026e7", "score": "0.794125", "text": "public function total(): float;", "title": "" }, { "docid": "f87201e69eb113228d59f8ee5b8f9e81", "score": "0.7929529", "text": "public function subtotal();", "title": "" }, { "docid": "fa68a0b671a5aba95cada57f66d14ea1", "score": "0.7890795", "text": "public function getTotal()\n\t{\n\t\treturn $this->total;\n\t}", "title": "" }, { "docid": "077903844d65716e6afa0468bee415bf", "score": "0.78890616", "text": "public function getTotal() {\n\t\treturn $this->total;\n\t}", "title": "" }, { "docid": "d0aa6248e3833e56b071733a8048825d", "score": "0.7880917", "text": "public function getTotal(){\n $total=0;\n\n foreach ( $this->getOrderLines() as $ol){\n $total += $ol->getSubTotal();\n }\n \n return $total;\n }", "title": "" }, { "docid": "3d49b93b01cfc6c2ebe43433be0004a2", "score": "0.7870087", "text": "public function total()\n {\n \treturn $this->price()*$this->quantity;\n }", "title": "" }, { "docid": "fe65f4ce5d17eeb57165a1f5270c3f21", "score": "0.7864581", "text": "public function getTotal(): float;", "title": "" }, { "docid": "dbb7cf3eaa40476a99c74f600e24790d", "score": "0.7859495", "text": "public function itemTotal(): float;", "title": "" }, { "docid": "c139a9f64ea1dd4663786cf3437e0f86", "score": "0.78499335", "text": "public function getTotal()\n {\n return $this->total;\n }", "title": "" }, { "docid": "c139a9f64ea1dd4663786cf3437e0f86", "score": "0.78499335", "text": "public function getTotal()\n {\n return $this->total;\n }", "title": "" }, { "docid": "c139a9f64ea1dd4663786cf3437e0f86", "score": "0.78499335", "text": "public function getTotal()\n {\n return $this->total;\n }", "title": "" }, { "docid": "c139a9f64ea1dd4663786cf3437e0f86", "score": "0.78499335", "text": "public function getTotal()\n {\n return $this->total;\n }", "title": "" }, { "docid": "c139a9f64ea1dd4663786cf3437e0f86", "score": "0.78499335", "text": "public function getTotal()\n {\n return $this->total;\n }", "title": "" }, { "docid": "c139a9f64ea1dd4663786cf3437e0f86", "score": "0.78499335", "text": "public function getTotal()\n {\n return $this->total;\n }", "title": "" }, { "docid": "b1051a8c0c4ad95b0c5de0c7fdec458a", "score": "0.783428", "text": "public static function searchTotal()\n\t{\n\t\t$total = self::all()->total();\n\t\treturn $total;\n\t}", "title": "" }, { "docid": "abf95846f5e9a3a4cf460c7615981bfb", "score": "0.78272843", "text": "public function getTotal(){\n\t\treturn $this->_total;\n\t}", "title": "" }, { "docid": "eb100bd35623d97dfdf142ca44f6eb27", "score": "0.7810785", "text": "public function getTotal(): int;", "title": "" }, { "docid": "d5ac90e77b7b6f950347a204e41f7b1c", "score": "0.7798676", "text": "public function formattedTotal(): string;", "title": "" }, { "docid": "a4a6c009e91efb61d59f2aedbabfd499", "score": "0.7793274", "text": "public function getTotal() {\n\n }", "title": "" }, { "docid": "17eea6af5cf68687eebe9b7f55f66a2b", "score": "0.7792492", "text": "public function getTotal()\n\t{\n\t\treturn $this->getKeyValue('total'); \n\n\t}", "title": "" }, { "docid": "da272b45811ebc43e5c0866a20b71d0b", "score": "0.7766408", "text": "function getTotal()\n\t{\n\t\treturn $this->_total;\n\t}", "title": "" }, { "docid": "f714c99d3bb087c7940c9d0da5593de3", "score": "0.7744855", "text": "public function totalCount();", "title": "" }, { "docid": "f714c99d3bb087c7940c9d0da5593de3", "score": "0.7744855", "text": "public function totalCount();", "title": "" }, { "docid": "83d34fae2f6fc90537cee017584f3566", "score": "0.7726394", "text": "public function getTotal()\n {\n $subTotal = $this->getSubTotal(false);\n\n $newTotal = 0.00;\n\n $process = 0;\n\n $conditions = $this\n ->getConditions()\n ->filter(function (CartCondition $cond) {\n return $cond->getTarget() === 'total';\n });\n\n // if no conditions were added, just return the sub total\n if (!$conditions->count()) {\n return Helpers::formatValue($subTotal, $this->config['format_numbers'], $this->config);\n }\n\n $conditions\n ->each(function (CartCondition $cond) use ($subTotal, &$newTotal, &$process) {\n $toBeCalculated = ($process > 0) ? $newTotal : $subTotal;\n\n $newTotal = $cond->applyCondition($toBeCalculated);\n\n $process++;\n });\n\n return Helpers::formatValue($newTotal, $this->config['format_numbers'], $this->config);\n }", "title": "" }, { "docid": "9c4e534139f4a080336061f829dc2bf0", "score": "0.77225125", "text": "public function total()\n {\n return $this->calculateTotal();\n }", "title": "" }, { "docid": "f8d710260a3d32d42230ec9b39f3b27e", "score": "0.77218574", "text": "public function total(){\n\t\treturn $this->total;\n\t}", "title": "" }, { "docid": "d58b2e927511b84fb1ce54af959b533e", "score": "0.77102435", "text": "public function getTotal()\n {\n return $this->getAmount() * $this->getPrice();\n }", "title": "" }, { "docid": "2ed5e05a681c78c99b5cfeea68b71700", "score": "0.76769906", "text": "public function get_total(){\n $total = 0;\n \n // récupert tous les articles de la commande\n $articles = $this->get_all_articles();\n \n // parcourt ces articles\n foreach($articles as $a){\n $price = $a->get_price(true);\n \n // puis calcul le prix\n $total += $a->nb * $price;\n }\n \n return $total;\n }", "title": "" }, { "docid": "e5e99f2a09ed7e076ccf8763d3c1a6ce", "score": "0.7663042", "text": "public function initTotal()\n {\n // Return val.\n $temp = 0;\n // Add cone price.\n $temp += $this->coneType['price'];\n // Add all scoops of ice cream.\n foreach ($this->scoops as $scoop) {\n $temp += $scoop['price'];\n }\n // Return total item cost.\n return $temp;\n }", "title": "" }, { "docid": "9c605234cfe5b8c6fa6f7b406eed4c75", "score": "0.7661538", "text": "public function total()\n\t{\n\t\treturn $this->total;\n\t}", "title": "" }, { "docid": "509f67572ab2057a20fff705fcaac5bd", "score": "0.7647866", "text": "function calculerTotal () {\n\t $total = 0;\n\t \n\t foreach ($this->lignes as $lp) {\n\t $prod = $lp->prod;\n\t $prixLigne = $prod->prix * $lp->qte ;\n\t $total = $total + $prixLigne ;\n\t }\n\t \n\t return $total;\n\t }", "title": "" }, { "docid": "6bcb6e5a58edf9335c90a4683e5edaaa", "score": "0.7635945", "text": "function get_total() {\n\t\t\treturn cmdeals_price($this->total);\n\t\t}", "title": "" }, { "docid": "ffe4502b21dc8e2deaa50917b9de284b", "score": "0.7603421", "text": "public function getGrandTotal();", "title": "" }, { "docid": "35b332e1c6027c20e6af1c7df8aa8a1a", "score": "0.7601487", "text": "public function gettotal()\r\n {\r\n return $this->total;\r\n }", "title": "" }, { "docid": "886ea937a4214ab532408e32bb9ada9e", "score": "0.75920385", "text": "public function total()\n {\n return $this->total;\n }", "title": "" }, { "docid": "886ea937a4214ab532408e32bb9ada9e", "score": "0.75920385", "text": "public function total()\n {\n return $this->total;\n }", "title": "" }, { "docid": "d7a1a47a1a9339cabc77429b5986d9fe", "score": "0.7587488", "text": "public function getTotal()\n {\n return $this->totalCalculator->getCartTotal($this->cart);\n }", "title": "" }, { "docid": "240ab95ef8e62ad51a6950d784954a75", "score": "0.75791895", "text": "public function get_total_items(){\n\t \t$total = 0;\n\t \t//Si no esta vacio va sumando la cantidad de articulos\n\t \tif(!empty($this->cart)){\n\t \t\tforeach ($this->cart as $linea){\n\t\t\t\t\t$total += $linea['amount'];\n\t\t\t\t}\n\t \t}\n\t \techo $total;\n\t }", "title": "" }, { "docid": "1d53c321b364f5d2b8cccd75e070e4ef", "score": "0.75672996", "text": "private function total()\n\t{\n\t\t//\tObteniendo los productos del carro.\n\t\t$cart = \\Session::get('cart');\n\t\t$total = 0;\n\t\t//\tSumando el precio de cada producto.\n\t\tforeach($cart as $item){\n\t\t\t$total += $item->precio * $item->cantidad;\n\t\t}\n\t\treturn $total;\n\t}", "title": "" }, { "docid": "d63fc279c9d20f5e6515f60d2d02d467", "score": "0.75345427", "text": "public function getSubtotal();", "title": "" }, { "docid": "86d3d3af83e5c8002eb87838fbf0e3f5", "score": "0.75324595", "text": "public function getTotal()\n {\n return ($this->amount + $this->tax_amount)* $this->currency_converter;\n }", "title": "" }, { "docid": "61a176edc09277daf1a4c24311413518", "score": "0.74865794", "text": "protected function calculatetotal()\n {\n $total = $this->UnitPrice() * $this->Quantity;\n $this->extend('updateTotal', $total);\n $this->CalculatedTotal = $total;\n return $total;\n }", "title": "" }, { "docid": "f92b6f4a60c85f25314b7bae1711c16f", "score": "0.74781144", "text": "public function get_total()\n\t{\n\t\treturn $this->EE->cartthrob->cart->total();\n\t}", "title": "" }, { "docid": "2ba51c090263a0e51a5d1f01bc74a18f", "score": "0.74761254", "text": "public function total()\n {\n return $this->subtotal() + $this->shipping() + $this->vat()->sum();\n }", "title": "" }, { "docid": "57c9ef7fabf115e03423878bae2df21f", "score": "0.74710995", "text": "public function getTotal() {\n\t\treturn $this->find('count', array(\n\t\t\t'contain' => false,\n\t\t\t'recursive' => false,\n\t\t\t'cache' => $this->alias . '::' . __FUNCTION__,\n\t\t\t'cacheExpires' => '+24 hours'\n\t\t));\n\t}", "title": "" }, { "docid": "a0c952acce086a7d9f6f18861aca0eb8", "score": "0.74593383", "text": "public function total(){\n $total = $this->qualification + $this->referee_report + $this->interview;\n }", "title": "" }, { "docid": "baee8ea4aab8d69364d404783437f60e", "score": "0.74364537", "text": "public function getTotal() : int\n {\n return $this->total;\n }", "title": "" }, { "docid": "f4e1468a012eede302ccfaf8cd9a8c8b", "score": "0.74308276", "text": "public function getTotal(){\n $cantidad = $this->cantidad;\n\t\treturn $this->productos\n\t\t\t\t\t\t->map(function($prod){return $prod->precio;})\n\t\t\t\t\t\t->reduce(function($acum, $elem)use($cantidad){\n return $acum + ($elem * $cantidad);\n });\n\t}", "title": "" }, { "docid": "17a65b9434a0c4ff85242eac53c95e6a", "score": "0.74279237", "text": "function getTotal()\r\n\t{\r\n\t\tif( empty($this->_total) )\r\n\t\t{\r\n\t\t\t$this->_total\t= $this->_getListCount( $this->_query() );\r\n\t\t}\r\n\r\n\t\treturn $this->_total;\r\n\t}", "title": "" }, { "docid": "5854a2720e4d5fe8cceadac7bd6eeb70", "score": "0.7423359", "text": "public function totals()\n {\n return $this->get(self::BASE_PATH.'/totals');\n }", "title": "" }, { "docid": "93fd6c9e0b0efdd2a6fc1afd67be3522", "score": "0.7419969", "text": "public function getTotal() {\n $sub = ($this->hasDiscount()) ? $this->SubTotal - $this->DiscountAmount : $this->SubTotal;\n\n return number_format($sub + $this->Postage + $this->TaxTotal, 2);\n }", "title": "" }, { "docid": "987db097e0ed953c122193c0a36842c4", "score": "0.74179846", "text": "function getTotal()\r\n{\r\n if (empty($this->_total))\r\n {\r\n $query = $this->_buildQuery();\r\n $this->_total = $this->_getListCount($query);\r\n }\r\n \r\n return $this->_total;\r\n}", "title": "" }, { "docid": "0e8c4b2f3940df14b2bd8bb4c230f183", "score": "0.7411592", "text": "public function getTotalPrice();", "title": "" }, { "docid": "0e8c4b2f3940df14b2bd8bb4c230f183", "score": "0.7411592", "text": "public function getTotalPrice();", "title": "" }, { "docid": "955cad1c6cf4563a8b32395461dc1675", "score": "0.74110246", "text": "public function total()\n {\n $total = 0;\n\n foreach ($this->contents() as $item) $total += (float)$item->total();\n\n return (float)$total;\n }", "title": "" }, { "docid": "c78f7a8df514ff45625a24cd02252d6c", "score": "0.740436", "text": "function getTotals(){\n\t\treturn $this->cache->getTotals();\n\t}", "title": "" }, { "docid": "9443ef2a5c2bfe05cb1d1fdbcef8e0f2", "score": "0.73718566", "text": "public function getTotal()\n {\n return $this->service()->getTotalOfOrder();\n }", "title": "" }, { "docid": "a3faac103e9a7b8b13402127099f3fa1", "score": "0.7363429", "text": "public function calculateTotal() {\n $result = 0;\n\n if(isset($_SESSION['user']['basket']))\n foreach ($_SESSION['user']['basket'] as $item)\n $result += $item['product']['price']*$item['quantity'];\n\n return $result;\n }", "title": "" }, { "docid": "7a7236f1b0079483aeba1eebf79cd31a", "score": "0.7362834", "text": "public function get_total()\n\t{\n\t\t$query = $this->query;\n\t\tif(isset($query['order']))\n\t\t\t$query['order'] = $this->model->table() . '.id';\n\t\treturn $this->model->count($query);\n\t}", "title": "" }, { "docid": "1641dd2aa108885b421cd44b430221b0", "score": "0.7359503", "text": "public function provideTotal()\n {\n return [\n [[1, 2, 5, 8], 16],\n [[-1, 2, 5, 8], 14],\n [[1, 2, 8], 11]\n ];\n }", "title": "" }, { "docid": "6cc9135c269e165672782854e1eb3c0b", "score": "0.735623", "text": "function getTotal() {\r\n\t\tif (empty ( $this->_total )) {\r\n\t\t\t$query = $this->_buildQuery ();\r\n\t\t\t$this->_total = $this->_getListCount ( $query );\r\n\t\t}\r\n\t\treturn $this->_total;\r\n\t}", "title": "" }, { "docid": "d953a8418cbd5992d1fcc676256969b6", "score": "0.7350587", "text": "public function getTotal():int{\r\n\t return (int)$this->_vars['total_items']??0;\r\n\t}", "title": "" }, { "docid": "612bcd602ada40b2b7bad09d5b98ba52", "score": "0.733522", "text": "protected function _getTotal()\n {\n return $this->formatPriceWithComma($this->_getOrder()->getGrandTotal());\n }", "title": "" }, { "docid": "116efc167d713f7bbccb9841cc8bbbaf", "score": "0.7332077", "text": "function totals()\n\t{\n\t\treturn $this->_tour_voucher_contents['totals'];\n\t}", "title": "" }, { "docid": "54fe82093342395a20729d752f349370", "score": "0.7328508", "text": "public function total()\n {\n // $this->line_items\n $total_price = 0;\n foreach ($this->line_items as $key => $value) {\n $total_price = $total_price + $value->product->price_amount;\n }\n // dd();\n return $total_price;\n }", "title": "" }, { "docid": "97df77a2bb3034c5d1418657f2ed305f", "score": "0.7319076", "text": "public function getTotal(): string\n {\n return $this->total;\n }", "title": "" }, { "docid": "faa954891fc32535264b8766ffcdd65b", "score": "0.73060143", "text": "function getTotal()\n\t{\n\t\tif (empty($this->_total)) {\n\t\t\t$query = $this->_buildQuery();\n\t\t\t$this->_total = $this->_getListCount($query); \n\t\t}\n\t\treturn $this->_total;\n\t}", "title": "" }, { "docid": "b19a96d555f170e9a7e9f0ba02135057", "score": "0.7295414", "text": "public function getTotalCount();", "title": "" }, { "docid": "b19a96d555f170e9a7e9f0ba02135057", "score": "0.7295414", "text": "public function getTotalCount();", "title": "" }, { "docid": "b19a96d555f170e9a7e9f0ba02135057", "score": "0.7295414", "text": "public function getTotalCount();", "title": "" }, { "docid": "bedfdeea070b934c3e23f6032f6e9741", "score": "0.72948855", "text": "public function Total()\n {\n if ($this->Order()->IsCart()) { //always calculate total if order is in cart\n return $this->calculatetotal();\n }\n return $this->CalculatedTotal; //otherwise get value from database\n }", "title": "" }, { "docid": "53236e7f4ff86e0d415035101b864243", "score": "0.72720516", "text": "public function getMontoTotal() {\n $command = Yii::app()->db->createCommand()\n ->select('sum(t.monto) as total')\n ->from('pago t');\n return $command->queryRow()['total'];\n }", "title": "" }, { "docid": "fe9eaf62303a4a4aa5c596e340d4f7c3", "score": "0.72592556", "text": "function getTotal()\n\t{\n\t\tif (empty($this->_total)) {\n\t\t\t$query = $this->_buildQuery();\n\t\t\t$this->_total = $this->_getListCount($query);\n\t\t}\n\t\treturn $this->_total;\n\t}", "title": "" }, { "docid": "a628f1abb2cab1e5b2c45ae3d27b0f9b", "score": "0.72540313", "text": "public function getTotalResults();", "title": "" }, { "docid": "cfa4c343cd9456b8a7c9d27023f81648", "score": "0.72533613", "text": "public function getTotal()\n {\n return $this->getQty() * $this->getProduct()->getPrice();\n }", "title": "" }, { "docid": "94e64a756ec22f8c179483dbe2d4ef60", "score": "0.7251275", "text": "public function reporteMensualTotal(){\n\n }", "title": "" }, { "docid": "6ef8b19e12732a54bea9624bc63dbf4e", "score": "0.72375894", "text": "public function total(){\n return $this->cart_contents['cart_total'];\n }", "title": "" }, { "docid": "8f464ff53f6ac3c60aaad1518d62f646", "score": "0.72358894", "text": "function getTotal() {\n\t\tif (empty($this->_total)) {\n\t\t\t$query = $this->_buildQuery();\n\t\t\t$this->_total = $this->_getListCount($query);\n\t\t}\n\n\t\treturn $this->_total;\n\t}", "title": "" }, { "docid": "9ff4baa83c916bf475f8a41b2615ee35", "score": "0.723038", "text": "public function getValorTotal(){\n $sum = 0;\n foreach($this->itens as $i):\n $sum += $i->getPreco() * $i->getQuantidade();\n endforeach;\n\n return $sum;\n }", "title": "" }, { "docid": "0323a4462890d6f3c3fec451e5be0577", "score": "0.72218925", "text": "public function netTotal(): float;", "title": "" }, { "docid": "09b05c3861dbcb257e20a7e48016ba2c", "score": "0.72153616", "text": "public function total()\n {\n $total = 0;\n foreach($this->_data as &$product) {\n $total += ($product['price'] * $product['quantity']);\n }\n\n return $total;\n }", "title": "" }, { "docid": "471280d5d3156127663711f1dabb95d1", "score": "0.7190364", "text": "public function totcarte()\n {\n $detalle = FacturaDet::join('factura_cab', 'factura_cab.numfac', '=', 'factura_det.numfac')\n ->select(DB::raw('sum(cantserv*valserv) as total'))\n ->where('factura_cab.estfac','<>','0')\n ->where('factura_cab.estfac','<>','1')\n ->first();\n $total=$detalle->total+0;\n $pagos = Pago::select(DB::raw('sum(valpago) as total'))\n ->first();\n if($pagos)\n $pagado = $pagos->total;\n else\n $pagado=0;\n $total = $total - $pagado;\n return $total;\n }", "title": "" }, { "docid": "8ce617556be74341d6aabefef78f86f9", "score": "0.71840656", "text": "function exibeTotal($params, &$smarty){\n return $this->NumResult;\n }", "title": "" }, { "docid": "6a34efd7fedc9632be6535b467330752", "score": "0.71788025", "text": "public function total()\n\t{\n\t\treturn array_get($this->cart_contents, $this->cart_name . '.cart_total', 0);\n\t}", "title": "" }, { "docid": "8c25010825bb277d39158696ab03bc08", "score": "0.7174106", "text": "public function getBaseGrandTotal();", "title": "" }, { "docid": "021e0696469f6eb6dcfbf8b51c2119ac", "score": "0.7166633", "text": "public static function total()\n {\n $total = 0;\n if (isset($_SESSION['cart']) && $_SESSION['cart'] != null) {\n foreach ($_SESSION['cart'] as $cart) {\n $total += $cart['qty'];\n }\n }\n return $total;\n }", "title": "" }, { "docid": "6d5f944561448205a5ae9e03088c8739", "score": "0.7165915", "text": "function getTotalPrice()\n {\n $total = 0;\n foreach ($_SESSION['cart'] as $key => $value) {\n $total += $_SESSION['cart'][$key]['total'];\n }\n return $total;\n }", "title": "" }, { "docid": "aecffaef031b2227831f238826e9a3f3", "score": "0.7165048", "text": "public function getCartTotal()\n {\n }", "title": "" } ]
a0badb207d99a157f24519cbfb7962db
Get the parent that owns the child.
[ { "docid": "37d40cf91ac0579ea8441566454c00e2", "score": "0.0", "text": "public function parent()\n {\n return $this->belongsTo('App\\User', 'parent_id');\n }", "title": "" } ]
[ { "docid": "17198c04888426a0a0e40363948f281b", "score": "0.80536664", "text": "public function getParent() {\n $this->_checkValid();\n return $this->_parent;\n }", "title": "" }, { "docid": "922e9c0cc9792bbd2db2ac7b17f2a216", "score": "0.79719335", "text": "public function getParent()\n {\n return $this->_parent;\n }", "title": "" }, { "docid": "2ba1b8a473a40f158d167d625258824d", "score": "0.7958446", "text": "public function GetParent()\n\t{\n\t\treturn $this->parent;\n\t}", "title": "" }, { "docid": "932cd6151d52f8a080d7669f3904bd59", "score": "0.7958171", "text": "public function get_parent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "945bdf4642ce93bd68a315b9f451f93c", "score": "0.79235953", "text": "public function getParent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "945bdf4642ce93bd68a315b9f451f93c", "score": "0.79235953", "text": "public function getParent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "945bdf4642ce93bd68a315b9f451f93c", "score": "0.79235953", "text": "public function getParent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "945bdf4642ce93bd68a315b9f451f93c", "score": "0.79235953", "text": "public function getParent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "945bdf4642ce93bd68a315b9f451f93c", "score": "0.79235953", "text": "public function getParent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "945bdf4642ce93bd68a315b9f451f93c", "score": "0.79235953", "text": "public function getParent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "945bdf4642ce93bd68a315b9f451f93c", "score": "0.79235953", "text": "public function getParent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "945bdf4642ce93bd68a315b9f451f93c", "score": "0.79235953", "text": "public function getParent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "945bdf4642ce93bd68a315b9f451f93c", "score": "0.79235953", "text": "public function getParent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "945bdf4642ce93bd68a315b9f451f93c", "score": "0.79235953", "text": "public function getParent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "945bdf4642ce93bd68a315b9f451f93c", "score": "0.79235953", "text": "public function getParent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "945bdf4642ce93bd68a315b9f451f93c", "score": "0.79235953", "text": "public function getParent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "945bdf4642ce93bd68a315b9f451f93c", "score": "0.79235953", "text": "public function getParent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "945bdf4642ce93bd68a315b9f451f93c", "score": "0.79235953", "text": "public function getParent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "945bdf4642ce93bd68a315b9f451f93c", "score": "0.79235953", "text": "public function getParent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "945bdf4642ce93bd68a315b9f451f93c", "score": "0.79235953", "text": "public function getParent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "945bdf4642ce93bd68a315b9f451f93c", "score": "0.79235953", "text": "public function getParent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "945bdf4642ce93bd68a315b9f451f93c", "score": "0.79235953", "text": "public function getParent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "945bdf4642ce93bd68a315b9f451f93c", "score": "0.79235953", "text": "public function getParent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "945bdf4642ce93bd68a315b9f451f93c", "score": "0.79235953", "text": "public function getParent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "ca1a36b435b377f90a0eb796c6fc739e", "score": "0.79021007", "text": "public function getParent() {\n\t\treturn $this->_parent;\n\t}", "title": "" }, { "docid": "6fa7f33fd7eb40b38d40ca771bf63f4c", "score": "0.79020584", "text": "public function getParent ( ) { return $this->parent; }", "title": "" }, { "docid": "058a64083e52163f0e649e51710dd805", "score": "0.7886654", "text": "public function getParent() {\n return $this->parent;\n }", "title": "" }, { "docid": "5dee45e910d8808cf3d62b15edf59aeb", "score": "0.7882788", "text": "public function getParent() {\n\t\treturn $this->parent;\n\t}", "title": "" }, { "docid": "5dee45e910d8808cf3d62b15edf59aeb", "score": "0.7882788", "text": "public function getParent() {\n\t\treturn $this->parent;\n\t}", "title": "" }, { "docid": "5dee45e910d8808cf3d62b15edf59aeb", "score": "0.7882788", "text": "public function getParent() {\n\t\treturn $this->parent;\n\t}", "title": "" }, { "docid": "13097089066b56cd7651b396fe3906c6", "score": "0.7882367", "text": "final public function getParent()\n {\n return $this->_Parent;\n }", "title": "" }, { "docid": "a1c38c4992939704a16173df8eb09700", "score": "0.7864418", "text": "public function getParent() {\r\n return $this->_parent;\r\n }", "title": "" }, { "docid": "381bf5d4314d9724679300e42860966b", "score": "0.78612137", "text": "public function getParent()\n\t{\n\t\treturn $this->_parent;\n\t}", "title": "" }, { "docid": "c3a4dfa773a95466728c3bc9b11f5a63", "score": "0.78310895", "text": "public function parent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "737f944b70d33358bb9bc8d010a37cda", "score": "0.78038025", "text": "public function parent()\n {\n return $this->_parent;\n }", "title": "" }, { "docid": "6e7a7b213335c244050929e4fbd368dd", "score": "0.77982587", "text": "public function getParent()\n {\n return $this->parent;\n }", "title": "" }, { "docid": "0cb9b99bfba69706407a7762af89cac2", "score": "0.77959186", "text": "public function getParent() {\n return $this->parent;\n }", "title": "" }, { "docid": "b441783feb2dc7b2787b6875a51db0a4", "score": "0.7795378", "text": "public function parent()\n\t{\n\t\tif ($this->_parent) {\n\t\t\treturn $this->_parent;\n\t\t}\n\t}", "title": "" }, { "docid": "201dd55b61b33dfd502c45e78557cb26", "score": "0.7759231", "text": "public function &_get_parent()\n\t{\n\t\treturn $this->parent;\n\t}", "title": "" }, { "docid": "201dd55b61b33dfd502c45e78557cb26", "score": "0.7759231", "text": "public function &_get_parent()\n\t{\n\t\treturn $this->parent;\n\t}", "title": "" }, { "docid": "b8affb294ea9fbeca330b28b8d12048e", "score": "0.77452236", "text": "public function Parent()\n {\n return $this->_parent;\n }", "title": "" }, { "docid": "617c133c7d357681ceb26214909ceb94", "score": "0.77148163", "text": "function getParent() {\n return $this->parent;\n }", "title": "" }, { "docid": "79df911331b1676e5b0262c652056232", "score": "0.7661292", "text": "public function & getParent() {\n\t\treturn $this->parent;\n\t}", "title": "" }, { "docid": "42577e38ac648a38ad65622b6d9bbe95", "score": "0.765617", "text": "final public function getParent() {\n\t\treturn $this->_parentNode;\n\t}", "title": "" }, { "docid": "1641559a7deb0173f335a97f076865c3", "score": "0.76404375", "text": "public function &getParent() {\n return $this->parent;\n }", "title": "" }, { "docid": "425b5cb8f7994f290438e919e397fa8a", "score": "0.76308924", "text": "function parent() {\n return $this->parent;\n }", "title": "" }, { "docid": "5dfb5977ed232575a69ac777c9c6a041", "score": "0.76037246", "text": "public function getParent();", "title": "" }, { "docid": "5dfb5977ed232575a69ac777c9c6a041", "score": "0.76037246", "text": "public function getParent();", "title": "" }, { "docid": "5dfb5977ed232575a69ac777c9c6a041", "score": "0.76037246", "text": "public function getParent();", "title": "" }, { "docid": "5dfb5977ed232575a69ac777c9c6a041", "score": "0.76037246", "text": "public function getParent();", "title": "" }, { "docid": "5dfb5977ed232575a69ac777c9c6a041", "score": "0.76037246", "text": "public function getParent();", "title": "" }, { "docid": "5dfb5977ed232575a69ac777c9c6a041", "score": "0.76037246", "text": "public function getParent();", "title": "" }, { "docid": "5dfb5977ed232575a69ac777c9c6a041", "score": "0.76037246", "text": "public function getParent();", "title": "" }, { "docid": "5dfb5977ed232575a69ac777c9c6a041", "score": "0.76037246", "text": "public function getParent();", "title": "" }, { "docid": "5dfb5977ed232575a69ac777c9c6a041", "score": "0.76037246", "text": "public function getParent();", "title": "" }, { "docid": "5dfb5977ed232575a69ac777c9c6a041", "score": "0.76037246", "text": "public function getParent();", "title": "" }, { "docid": "5dfb5977ed232575a69ac777c9c6a041", "score": "0.76037246", "text": "public function getParent();", "title": "" }, { "docid": "50220f0ddf64905ca7465c0839d6a746", "score": "0.7581593", "text": "public function getParent() {\n return $this->_data['parent_id'];\n }", "title": "" }, { "docid": "8eba33f37931bef7a1f20e704bc43e20", "score": "0.75802594", "text": "public function getParent() {}", "title": "" }, { "docid": "64e8ebcfafe1d2cb73a8cbb516d189d7", "score": "0.7571872", "text": "function getParent() {\n \tif($this->getParentType() && $this->getParentId()) {\n \t\treturn DataObjectPool::get($this->getParentType(), $this->getParentId());\n \t} else {\n \t\treturn null;\n \t} // if\n }", "title": "" }, { "docid": "f642d1350729b7f329c020d4a783c51e", "score": "0.75469524", "text": "function &get_parent() {\r\n\t\treturn $this->parent;\r\n\t}", "title": "" }, { "docid": "09c24a3d601b574573d694c4f5bc193e", "score": "0.7546705", "text": "public function getParent()\n {\n $query = new Query($this->getConnection());\n $query->sql(\n QueryBuilder::select($this->closureTable, ['parent_id'])->where(['child_id' => $this->id, 'depth' => 1])->limit(1)\n );\n list($results) = $query->execute();\n \n return static::find(['id' => $results[0]['parent_id']]);\n }", "title": "" }, { "docid": "3b2c3273efc35a5d8b3a65c45df19d02", "score": "0.75204396", "text": "public function parent(): ?self\n {\n return $this->parent;\n }", "title": "" }, { "docid": "6e064eec8ec42cafbf36a1c91123144a", "score": "0.7490856", "text": "public function getTopLevelParent();", "title": "" }, { "docid": "70164d31ce445b7f77e5b579738a6715", "score": "0.73393136", "text": "public function parent()\n {\n return $this->morphTo();\n }", "title": "" }, { "docid": "3e0bb4ea79f4f7a85bc94eb53ad0a851", "score": "0.7332671", "text": "public function getParent()\n\t{\n\t\tif ($this->parent instanceof \\TYPO3\\CMS\\Extbase\\Persistence\\Generic\\LazyLoadingProxy) {\n\t\t\t$this->parent->_loadRealInstance();\n\t\t}\n\t\treturn $this->parent;\n\t}", "title": "" }, { "docid": "262fec6227fcbac3298268f1ade46766", "score": "0.7318567", "text": "public function get_parent()\n\t{\n\t\treturn $this->parentnode;\n\t}", "title": "" }, { "docid": "de5617aeb1b3398b6d3be58ad49f248f", "score": "0.7293087", "text": "public function getParent() {\r\n return $this->getParentAL();\r\n }", "title": "" }, { "docid": "20b9af172eb0e9e629e72cb6284c3ce3", "score": "0.7282793", "text": "public function getParent()\n {\n return $this->hasOne(Parents::className(), ['parent_id' => 'parent_id']);\n }", "title": "" }, { "docid": "1140ef3b1c8863d2ba74c508cf21d5d5", "score": "0.72658485", "text": "public function parent() {\n\t\tif(!is_null($this->_parent)) return $this->_parent;\n\t\t$parent_id = $this->parent_id; \n\t\tif(!$parent_id) return null;\n\t\t$field = $this->getField();\n\t\t$comments = $this->getPage()->get($field->name); // no getPageComments() call intentional\n\t\t$parent = null;\n\t\tforeach($comments as $c) {\n\t\t\tif($c->id != $parent_id) continue;\n\t\t\t$parent = $c;\n\t\t\tbreak;\n\t\t}\n\t\t$this->_parent = $parent; \n\t\treturn $parent;\n\t}", "title": "" }, { "docid": "f27999daa9246d0f083b2686db38ba48", "score": "0.7259442", "text": "public function getParent()\r\n {\r\n $parent = $this->parent;\r\n if (null === $parent) {\r\n $parent = new self($this->element->parentNode);\r\n $this->parent = $parent;\r\n }\r\n \r\n return $parent;\r\n }", "title": "" }, { "docid": "66537913fa8010cb9daa725f3217d9e0", "score": "0.7238819", "text": "public function fetchParent(){\r\n return static::fetchById($this->parent_id);\r\n }", "title": "" }, { "docid": "8d7b1ff6f21ac83d9f8d468c5e886f24", "score": "0.7230129", "text": "public function parentEntity()\n {\n return $this->parentEntity;\n }", "title": "" }, { "docid": "919174fa6780ff688be582df29b0bcfd", "score": "0.7220989", "text": "public function getParent()\n\t{\n\t\t$Page = new self();\n\t\treturn $Page->findItem( array( 'Id = '.$this->ParentId ) );\n\t}", "title": "" }, { "docid": "2f3d6d972e6ff59ff874f13d25db4686", "score": "0.7186334", "text": "public function parent(): MorphOne\n {\n return $this->morphOne($this->parentModel, $this->parentEntity);\n }", "title": "" }, { "docid": "8b41610abe67224b53cba2b876ac279e", "score": "0.71645164", "text": "public function getParent()\n\t{\n\t\t$item = $this->getItem();\n\t\t$item->parent_id = (int)$item->parent_id;\n\t\tif ($item->parent_id === 0) {\n\t\t\t$parent = 0;\n\t\t} else {\n\t\t\t$db = FabrikWorker::getDbo(true);\n\t\t\t$query = $db->getQuery(true);\n\t\t\t$query->select('*')->from('#__{package}_elements')->where('id = '.(int)$item->parent_id);\n\t\t\t$db->setQuery($query);\n\t\t\t$parent = $db->loadObject();\n\t\t\tif (is_null($parent)) {\n\t\t\t\t//perhaps the parent element was deleted?\n\t\t\t\t$parent = 0;\n\t\t\t\t$item->parent_id = 0;\n\t\t\t}\n\t\t}\n\t\treturn $parent;\n\t}", "title": "" }, { "docid": "4b8a1e020380946fc5bb5459f2b1e43b", "score": "0.71501094", "text": "public function getParent()\n {\n return $this->hasOne(AuthModule::className(), ['id' => 'parent_id']);\n }", "title": "" }, { "docid": "081c767d47a6280e38f35cecacc06da7", "score": "0.71413124", "text": "public function getOnlyParent()\n {\n return $this->onlyParent;\n }", "title": "" }, { "docid": "1b73867d634c1a59cea89a771046e1f5", "score": "0.7107316", "text": "public function getParent(){\n\t\tif( false == $this->parent_id ) return null;\n\t\treturn Go_Factory::get( 'Forum_Model_Post', $this->getParentId() );\n\t}", "title": "" }, { "docid": "cc6263a1353e2682ab357051201b720e", "score": "0.7105911", "text": "function get_parent_id() {\n return $this->parent;\n }", "title": "" }, { "docid": "25f6ee6d99014899454a7c185f11e849", "score": "0.7049832", "text": "public function getParent() : Model {\n return $this->__parent;\n }", "title": "" }, { "docid": "bd999bb1c08f773ccca3b86dc9f21255", "score": "0.70437217", "text": "public function getParentId()\n {\n return $this->parent_id;\n }", "title": "" }, { "docid": "bd999bb1c08f773ccca3b86dc9f21255", "score": "0.70437217", "text": "public function getParentId()\n {\n return $this->parent_id;\n }", "title": "" }, { "docid": "11f3075e7bce5a3fa4a2ce52485f50b3", "score": "0.70389396", "text": "public function getParentNode()\n {\n return $this->parentNode;\n }", "title": "" }, { "docid": "74929839fe561b8501ac0290249adc7e", "score": "0.70086795", "text": "public function getParent()\n {\n return $this->hasOne(Rubric::className(), ['id' => 'parent_id']);\n }", "title": "" }, { "docid": "8ba3011607e70f5aff659c38987dc29e", "score": "0.70080924", "text": "public function parent()\n {\n return $this->hasOne('Category', 'id', 'parent_id');\n }", "title": "" }, { "docid": "4bda17fd9e675e1f822b8e2f5268cc86", "score": "0.6997469", "text": "public function getParentRecord()\n {\n return $this->parentRecord;\n }", "title": "" }, { "docid": "a0ea91d074b2a90a3fa9d0e4c6d5b6c0", "score": "0.6982543", "text": "public function parent()\n\t{\n\t\treturn $this->belongsToOne(__NAMESPACE__ . '\\\\Entry', 'parent_id', 'id');\n\t}", "title": "" }, { "docid": "1c4734a6ae53e9825edf9c1096b99694", "score": "0.6979149", "text": "public function getParentEntry() {\n\n\t\treturn $this->parentEntry;\n\n\t}", "title": "" }, { "docid": "f6e07f332febe25f82aa859166136759", "score": "0.69625527", "text": "public function getParent($child)\n\t{\n\t\treturn $this->find($child)->parent;\n\t}", "title": "" }, { "docid": "446e50f540149c663610a8b9afce9924", "score": "0.69429916", "text": "function get_parent(){\n\t\tif($this->parent) return $this->parent;\n\t\t\n\t\t$this->parent = Taxon::factory($this->row['parentNameUsageID']);\n\t\t\n\t\treturn $this->parent;\n\t\n\t}", "title": "" }, { "docid": "b8778e795c42be0fc94b972b060c54f9", "score": "0.6942852", "text": "public function getParentRaadstukId() {\n\t\treturn $this->parent;\n\t}", "title": "" }, { "docid": "b8778e795c42be0fc94b972b060c54f9", "score": "0.6942852", "text": "public function getParentRaadstukId() {\n\t\treturn $this->parent;\n\t}", "title": "" }, { "docid": "f6b1b048abc0202893d0e2679f31696f", "score": "0.6921234", "text": "public function getParentDocument()\n {\n return $this->parentDocument;\n }", "title": "" }, { "docid": "61d04f6eab749dc58d6741e05b5e81fc", "score": "0.68808824", "text": "public function getParent() {\n\t\ttry {\n\t\t\tif ($this->hasParent()) {\n\t\t\t\t$className\t= get_class($this);\n\t\t\t\t$parent\t\t= new $className;\n\t\t\t\t$parent->setNode($this->node->parentNode);\n\t\t\t\t$parent->setConfig($this->config);\n\t\t\t\tif ($this->outputFilter instanceof LBoxOutputFilter) {\n\t\t\t\t\t$ofClassName\t= get_class($this->outputFilter);\n\t\t\t\t\t$parent->setOutputFilter(new $ofClassName($parent));\n\t\t\t\t}\n\t\t\t\treturn $parent;\n\t\t\t}\r\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\tthrow $e;\n\t\t}\n\t}", "title": "" }, { "docid": "9aebf58f0988d7975e9b1cae5576068e", "score": "0.6880725", "text": "public function parent()\n {\n return $this->belongsTo(Comment::class, 'child_id');\n }", "title": "" }, { "docid": "9aebf58f0988d7975e9b1cae5576068e", "score": "0.6880725", "text": "public function parent()\n {\n return $this->belongsTo(Comment::class, 'child_id');\n }", "title": "" }, { "docid": "9e7f1b9bdbd20ee3f9a8072d8b8e3136", "score": "0.68637", "text": "public function parent()\n {\n return $this->belongsTo(static::class, $this->referenceKey);\n }", "title": "" }, { "docid": "b1df9ebc02e2dde549620aa5c893adae", "score": "0.68622714", "text": "public function parentId()\n {\n return $this->_parentId;\n }", "title": "" }, { "docid": "1b32efbc286205b46894885a2aec2a7d", "score": "0.6855237", "text": "public function getParentId();", "title": "" }, { "docid": "1b32efbc286205b46894885a2aec2a7d", "score": "0.6855237", "text": "public function getParentId();", "title": "" } ]
628b3d02f745fbe426bc7b4b15a5350a
Callback function for `stripslashes_deep()` which strips slashes from strings.
[ { "docid": "f75c84d110f3b78985f00382917a96e8", "score": "0.68846494", "text": "function stripslashes_from_strings_only($value)\n {\n }", "title": "" } ]
[ { "docid": "781389fe7ac34af33eae58b3b713325a", "score": "0.76407063", "text": "function stripslashes_deep($value) {\n $value = is_array($value) ?\n array_map('stripslashes_deep', $value) :\n stripslashes($value);\n\n return $value;\n}", "title": "" }, { "docid": "0f84136df403b9840e60757f145b07e4", "score": "0.75220466", "text": "function stripslashes_deep($value)\n {\n $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);\n return $value;\n }", "title": "" }, { "docid": "c6da9dc8456a4fe46a0f1a216a52f815", "score": "0.75167507", "text": "function stripslashes_deep($value)\n {\n }", "title": "" }, { "docid": "868a72b6ab280f2758b2f8fe68af7ce8", "score": "0.74959207", "text": "public static function trim_stripslashes_deep($value){\n\t\tif ( is_array($value) ) {\n\t\t\t$value = array_map(array(get_called_class(), 'trim_stripslashes_deep'), $value);\n\t\t} elseif ( is_object($value) ) {\n\t\t\t$vars = get_object_vars( $value );\n\t\t\tforeach ($vars as $key=>$data) {\n\t\t\t\t$value->{$key} = self::trim_stripslashes_deep( $data );\n\t\t\t}\n\t\t} elseif ( is_string( $value ) ) {\n\t\t\t$value = trim(stripslashes($value));\n\t\t}\n\t\treturn $value;\n\t}", "title": "" }, { "docid": "155e6418fb5f7110e8ad4c0bd63c8eda", "score": "0.7482873", "text": "function stripSlashesDeep($value) {\n\t$value = is_array($value) ? array_map('stripSlashesDeep', $value) : stripslashes($value);\n\treturn $value;\n}", "title": "" }, { "docid": "03194957979ebc6bc4654ea58804fccb", "score": "0.74819964", "text": "function stripslashes_deep($value)\n{\n\treturn $value;\n}", "title": "" }, { "docid": "358cd75a9d2ee32f59a49d7c627a5846", "score": "0.74641496", "text": "function stripslashes_deep($value)\r\n {\r\n $value = is_array($value) ?\r\n array_map('stripslashes_deep', $value) :\r\n stripslashes($value);\r\n \r\n return $value;\r\n }", "title": "" }, { "docid": "5b85dbe65eea45120cff37aba51c97a9", "score": "0.74588674", "text": "function stripSlashesDeep($value) {\r\n $value = is_array($value) ? array_map('stripSlashesDeep', $value) : stripslashes($value);\r\n return $value;\r\n}", "title": "" }, { "docid": "7b4edbca1c823c759d94388864387df1", "score": "0.7441187", "text": "function stripslashes_deep($value) {\r\n\tif ( is_array($value) ) {\r\n\t\t$value = array_map('stripslashes_deep', $value);\r\n\t} elseif ( is_object($value) ) {\r\n\t\t$vars = get_object_vars( $value );\r\n\t\tforeach ($vars as $key=>$data) {\r\n\t\t\t$value->{$key} = stripslashes_deep( $data );\r\n\t\t}\r\n\t} else {\r\n\t\t$value = stripslashes($value);\r\n\t}\r\n\treturn $value;\r\n}", "title": "" }, { "docid": "f5ced669b43e2c9f401e862372d821b5", "score": "0.7437061", "text": "function stripSlashesDeep($value)\n{\n $value = is_array($value) ? array_map('stripSlashesDeep', $value) : stripslashes($value);\n\n return $value;\n}", "title": "" }, { "docid": "ab192c16b77f9cae40e54bd6b9cac5e0", "score": "0.7432829", "text": "function stripSlashesDeep($value) {\n $value = is_array($value) ? array_map('stripSlashesDeep', $value) : stripslashes($value);\n return $value;\n}", "title": "" }, { "docid": "ab192c16b77f9cae40e54bd6b9cac5e0", "score": "0.7432829", "text": "function stripSlashesDeep($value) {\n $value = is_array($value) ? array_map('stripSlashesDeep', $value) : stripslashes($value);\n return $value;\n}", "title": "" }, { "docid": "ab192c16b77f9cae40e54bd6b9cac5e0", "score": "0.7432829", "text": "function stripSlashesDeep($value) {\n $value = is_array($value) ? array_map('stripSlashesDeep', $value) : stripslashes($value);\n return $value;\n}", "title": "" }, { "docid": "07d08958cc77b7073ebbbb9e98784ee7", "score": "0.73502016", "text": "function stripslashes_deep($value) {\n\tif ( is_array($value) ) {\n\t\t$value = array_map('stripslashes_deep', $value);\n\t} elseif ( is_object($value) ) {\n\t\t$vars = get_object_vars( $value );\n\t\tforeach ($vars as $key=>$data) {\n\t\t\t$value->{$key} = stripslashes_deep( $data );\n\t\t}\n\t} elseif ( is_string( $value ) ) {\n\t\t$value = stripslashes($value);\n\t}\n\n\treturn $value;\n}", "title": "" }, { "docid": "07d08958cc77b7073ebbbb9e98784ee7", "score": "0.73502016", "text": "function stripslashes_deep($value) {\n\tif ( is_array($value) ) {\n\t\t$value = array_map('stripslashes_deep', $value);\n\t} elseif ( is_object($value) ) {\n\t\t$vars = get_object_vars( $value );\n\t\tforeach ($vars as $key=>$data) {\n\t\t\t$value->{$key} = stripslashes_deep( $data );\n\t\t}\n\t} elseif ( is_string( $value ) ) {\n\t\t$value = stripslashes($value);\n\t}\n\n\treturn $value;\n}", "title": "" }, { "docid": "ad297d892633d68947be12e4c14f12f1", "score": "0.7342789", "text": "function wp_unslash( $value ) {\n\treturn stripslashes_deep( $value );\n}", "title": "" }, { "docid": "de49516d6d0268da569147eb11cedd60", "score": "0.72858083", "text": "function stripslashesDeep( $data)\r\n {\r\n return is_array($data) ? array_map( 'stripslashesDeep', $data) : stripslashes($data) ;\r\n }", "title": "" }, { "docid": "a2f9fcb1282f1a2d00f5baba81f4d9db", "score": "0.7215086", "text": "public function stripSlashesDeep($value) {\n $value = is_array($value) ? array_map(array($this, 'stripSlashesDeep'), $value) : $this->stripslashes($value);\n return $value;\n }", "title": "" }, { "docid": "3cd6236ac239e966f63e9d99f998412f", "score": "0.7202787", "text": "public static function stripSlashesDeep($value) {\r\n $value = is_array($value) ? array_map(self::stripSlashesDeep, $value) : stripslashes($value);\r\n return $value;\r\n }", "title": "" }, { "docid": "5bda536e8ced958189c14099720ea4af", "score": "0.7198281", "text": "private function stripSlashesDeep($value) {\n $value = is_array($value) ? array_map(array($this, 'stripSlashesDeep'), $value) : stripslashes($value);\n return $value;\n }", "title": "" }, { "docid": "f47025d1176b9cce726d78160b6cfdeb", "score": "0.71785307", "text": "function stripslashes_deep($value='')\n{\n\tif (!get_magic_quotes_gpc()) {\n\t\treturn $value;\n\t}\n\tif (is_array($value)) {\n\t\tforeach ($value as $k=>$v) {\n\t\t\t$sk = stripslashes($k); // we may need to strip the key as well\n\t\t\t$sv = stripslashes_deep($v);\n\t\t\tif ($sk != $k) {\n\t\t\t\tunset($value[$k]);\n\t\t\t}\n\t\t\t$value[$sk] = $sv;\n\t\t}\n\t} else {\n\t\t$value = stripslashes($value);\n\t}\n\treturn $value;\n}", "title": "" }, { "docid": "4dca3e8353f297a587ceba9328800b54", "score": "0.7123797", "text": "function stripslashes_deep($values) {\n\t\tif (is_array($values)) {\n\t\t\tforeach ($values as $key => $value) {\n\t\t\t\t$values[$key] = stripslashes_deep($value);\n\t\t\t}\n\t\t} else {\n\t\t\t$values = stripslashes($values);\n\t\t}\n\t\treturn $values;\n\t}", "title": "" }, { "docid": "ba8dae3cf548d34b23f5034539b9e24a", "score": "0.70807296", "text": "function stripslashes ($str) {}", "title": "" }, { "docid": "2f9e7d47f86604be172e8938f28d0754", "score": "0.706587", "text": "public static function stripslashesDeep($value) {\n\t\tif ( is_array($value) ) {\n\t\t\t$value = array_map('tx_laterpay_helper_string::stripslashesDeep', $value);\n\t\t} elseif ( is_object($value) ) {\n\t\t\t$vars = get_object_vars( $value );\n\t\t\tforeach ($vars as $key => $data) {\n\t\t\t\t$value->{$key} = self::stripslashesDeep( $data );\n\t\t\t}\n\t\t} elseif ( is_string( $value ) ) {\n\t\t\t$value = stripslashes($value);\n\t\t}\n\n\t\treturn $value;\n\t}", "title": "" }, { "docid": "885794f0d30404b04d9147d2806dd1e8", "score": "0.69268185", "text": "function stripslashes_recursive($value) {\n\t\t$value = is_array($value) ? array_map(array($this, 'stripslashes_recursive'), $value) : stripslashes($value);\n\t\treturn $value;\n\t}", "title": "" }, { "docid": "57d6d324522c29142b9f90fa93912397", "score": "0.68870914", "text": "function stripslashes($str)\n{\n}", "title": "" }, { "docid": "323d2cc123274f432bdca96d5c56f51b", "score": "0.68305695", "text": "function stripslashesFull($input)\r\n{\r\n if (is_array($input)) {\r\n $input = array_map('stripslashesFull', $input);\r\n \r\n } elseif (is_object($input)) {\r\n $vars = get_object_vars($input);\r\n foreach ($vars as $k=>$v) {\r\n $input->{$k} = stripslashesFull($v);\r\n }\r\n } else {\r\n $input = htmlspecialchars(stripslashes($input));\r\n \r\n }\r\n return $input;\r\n}", "title": "" }, { "docid": "39d42ab55f4185da4f4319694f4e7347", "score": "0.673674", "text": "function stripslashes_array( $given ) {\n return is_array( $given ) ? array_map( 'stripslashes', $given ) : stripslashes( $given );\n}", "title": "" }, { "docid": "26940df84ad4b01d0b2a2812cc7efa0c", "score": "0.6707776", "text": "function stripString($string) {\r\n return stripslashes($string);\r\n}", "title": "" }, { "docid": "4bd1e4ac33260c4aa0a3285cfd0a46b0", "score": "0.6671721", "text": "function fix_slashes($arr='')\n\t{\n\t\tif (is_null($arr) || $arr == '') return null;\n\t\tif (!get_magic_quotes_gpc()) return $arr;\n\t\treturn is_array($arr) ? array_map('fix_slashes', $arr) : stripslashes($arr);\n\t}", "title": "" }, { "docid": "19d5dde7bae3b23cd72e0470f8583161", "score": "0.66401625", "text": "private function _stripslashes($var){\n if(is_array($var)){\n foreach($var as $k=>$v){\n $var[stripcslashes($k)] = $this->_stripslashes($v);\n }\n } else {\n $var = stripslashes($var);\n }\n \n return $var;\n }", "title": "" }, { "docid": "a060cb557f632fc42c8fdc6fca7efcb0", "score": "0.6629203", "text": "function stripslashes($string) {\r\n return stripslashes(trim($string));\r\n }", "title": "" }, { "docid": "3e353218ae7f3c135913dedec6bf02dd", "score": "0.66058785", "text": "function stripslashes_nested($v)\n\t{\n\t\tif (is_array($v)) {\n\t\t\treturn array_map('stripslashes_nested', $v);\n\t\t} else {\n\t\t\treturn stripslashes($v);\n\t\t}\n\t}", "title": "" }, { "docid": "e562865c49f0021e014efd85e29c1da1", "score": "0.66050154", "text": "function stripslashes_all( $field ) {\r\n do {\r\n $field = stripslashes($field);\r\n }\r\n while (strstr($field, '\\\\') !== FALSE);\r\n return $field;\r\n}", "title": "" }, { "docid": "4e3ab47812b48a128abc132655518dc5", "score": "0.6436302", "text": "function stripslashes2($valeur) { //vire les / lorsqu'ils sont en double ou triple\n\t$valeur = str_replace(\"\\\\\\\\'\",\"'\",$valeur);\n\t$valeur = str_replace(\"\\\\'\",\"'\",$valeur);\n\t$valeur = str_replace(\"'\\\\\\\\\",\"'\\\\\",$valeur);\n\t$valeur = stripslashes($valeur);\n\treturn $valeur;\n}", "title": "" }, { "docid": "7d935f8aad6703fea393aad00a92938e", "score": "0.6422446", "text": "function stripcslashes ($str) {}", "title": "" }, { "docid": "34b02a27525334b53bd7434efe0cf395", "score": "0.6411446", "text": "function unslashify($str)\n{\n return preg_replace('/\\/$/', '', $str);\n}", "title": "" }, { "docid": "67631c4445361938322178371ea90171", "score": "0.64050436", "text": "public static function StripSlashes($value)\n\t{\n\t\tif (get_magic_quotes_runtime())\n\t\t{\n\t\t\tif (is_array($value))\n\t\t\t{\n\t\t\t\tforeach ($value as $key => $val)\n\t\t\t\t{\n\t\t\t\t\tif (is_array($val)) $value[$key] = self::StripSlashes($val);\n\t\t\t\t\telse $value[$key] = stripslashes($val);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse $value = stripslashes($value);\n\t\t}\n\t\treturn $value;\n\t}", "title": "" }, { "docid": "63b27c57f1d9259978589acee0fafffb", "score": "0.64011323", "text": "protected static function stripSlashesRecursive($value)\n {\n $value = is_array($value)\n ? array_map(array('XoopsRequest', 'stripSlashesRecursive'), $value)\n : stripslashes($value);\n\n return $value;\n }", "title": "" }, { "docid": "83d1387093261b325ed080cc07462b86", "score": "0.6379754", "text": "function wp_unslash($value)\n {\n }", "title": "" }, { "docid": "e1aa11828b79f0c02a8bda2ce234a713", "score": "0.63683474", "text": "static function array_stripslashes($var)\n\t{\n\t\treturn array_stripslashes($var);\n\t}", "title": "" }, { "docid": "1dd8165ec1639e0d7333d609010cb714", "score": "0.63643223", "text": "function tf_stripslashes_deep_keys($value) {\r\n static $magic_quotes = null;\r\n if ($magic_quotes === null) {\r\n $magic_quotes = get_magic_quotes_gpc();\r\n }\r\n\r\n if ( is_array($value) ) {\r\n if ($magic_quotes) {\r\n $new_value = array();\r\n foreach ($value as $key=>$value) {\r\n $new_value[ is_string($key) ? stripslashes($key) : $key ] = tf_stripslashes_deep_keys($value);\r\n }\r\n $value = $new_value;\r\n unset($new_value);\r\n } else {\r\n $value = array_map('tf_stripslashes_deep_keys', $value);\r\n }\r\n } elseif ( is_object($value) ) {\r\n $vars = get_object_vars( $value );\r\n foreach ($vars as $key=>$data) {\r\n $value->{$key} = tf_stripslashes_deep_keys( $data );\r\n }\r\n } elseif ( is_string( $value ) ) {\r\n $value = stripslashes($value);\r\n }\r\n\r\n return $value;\r\n }", "title": "" }, { "docid": "2ae433133b1fdbd5fc82d1fadc96aad4", "score": "0.63466525", "text": "public static function stripslashes($string) {\n if (!is_array($string)) {\n $string = is_string($string) ? stripslashes($string) : $string;\n return $string;\n } else {\n foreach ($string as $key => $val) {\n $string[$key] = stripslashes($val);\n }\n return $string;\n }\n }", "title": "" }, { "docid": "ee299f2ef6e456b94450fba72102056d", "score": "0.63453615", "text": "function stripSlashes($var)\r\n {\r\n if (get_magic_quotes_gpc()) {\r\n return stripslashes($var);\r\n }\r\n return $var;\r\n }", "title": "" }, { "docid": "85f4e2653aae777302fc4c20ab1dad06", "score": "0.6342666", "text": "private function _sanitize($path) {\n\t\t$path = str_replace('\\\\', '/', $path);\n\t\twhile (strpos($path, '//')) {\n\t\t\t$path = str_replace('//', '/', $path);\n\t\t}\n\t\t\n\t\treturn ($path);\n\t}", "title": "" }, { "docid": "bd4a1b7693b46b005009f6631b440170", "score": "0.6341528", "text": "public static function wb_normalize_slashes($str) {\n return preg_replace('|/+|', '/', $str);\n }", "title": "" }, { "docid": "da854c8fe035f6492ba8aab3ba8b5dcd", "score": "0.63141567", "text": "function fixslashes($str) {\n\t\treturn $str?strtr($str,'\\\\','/'):$str;\n\t}", "title": "" }, { "docid": "da854c8fe035f6492ba8aab3ba8b5dcd", "score": "0.63141567", "text": "function fixslashes($str) {\n\t\treturn $str?strtr($str,'\\\\','/'):$str;\n\t}", "title": "" }, { "docid": "d733b44d0e0c336050cd64e6fc8ac23b", "score": "0.6310595", "text": "function sysStripSlash($Data)\r\n{\r\n if(is_array($Data))\r\n {\r\n foreach($Data as $Key => $Value)\r\n {\r\n if(is_array($Value))\r\n {\r\n $Data[$Key] = sysStripSlash($Value);\r\n }\r\n else\r\n {\r\n $Data[$Key] = stripslashes($Value);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n $Data = stripslashes($Data);\r\n }\r\n return $Data;\r\n}", "title": "" }, { "docid": "812ad7f1b7ec1aa1482479fd9c3e68f9", "score": "0.6291386", "text": "function cs_stripslashes_htmlspecialchars($value)\n{\n $value = is_array($value) ? array_map('cs_stripslashes_htmlspecialchars', $value) : stripslashes(htmlspecialchars($value));\n return $value;\n}", "title": "" }, { "docid": "3dcb781fda924ec11ce60fa322597194", "score": "0.62644774", "text": "function array_strip_slashes($array)\n{\n\t$result = array();\n\n\tforeach($array as $key => $value)\n\t{\n\t\t$key = stripslashes($key);\n\n\t\t// If the value is an array, we will just recurse back into the\n\t\t// function to keep stripping the slashes out of the array,\n\t\t// otherwise we will set the stripped value.\n\t\tif (is_array($value))\n\t\t{\n\t\t\t$result[$key] = array_strip_slashes($value);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$result[$key] = stripslashes($value);\n\t\t}\n\t}\n\n\treturn $result;\n}", "title": "" }, { "docid": "4a0ce7003b44d3012cedc28a7700401b", "score": "0.6255122", "text": "private function stripSlashes(&$array)\n\t{\n\t\tforeach($array as $key => $value) {\n\t\t\t$array[$key] = (is_array($value) ? array_map('stripslashes', $value) : stripslashes($value));\n\t\t}\n\t}", "title": "" }, { "docid": "e702e1e17f0ee3cefd752d16e91a2f5c", "score": "0.6249345", "text": "public function getNormalizeSlashes(): bool;", "title": "" }, { "docid": "ddade9ebf30da687e3668011b9619761", "score": "0.62127715", "text": "function wp_slash( $value ) {\n\tif ( is_array( $value ) ) {\n\t\tforeach ( $value as $k => $v ) {\n\t\t\tif ( is_array( $v ) ) {\n\t\t\t\t$value[$k] = wp_slash( $v );\n\t\t\t} else {\n\t\t\t\t$value[$k] = addslashes( $v );\n\t\t\t}\n\t\t}\n\t} else {\n\t\t$value = addslashes( $value );\n\t}\n\n\treturn $value;\n}", "title": "" }, { "docid": "e10100697f8d3f3835ca80a7fa3021cd", "score": "0.61795694", "text": "function cleanData($data) {\n $data = stripslashes($data);\n $data = trim($data);\n return $data;\n}", "title": "" }, { "docid": "7122d736fd9e9a6d99818d78f29fe188", "score": "0.61665684", "text": "function strip_slashes_array(&$array)\n\t{\n\t\tforeach($array as $key => $val)\n\t\t{\n\t\t\tif(is_array($array[$key]))\n\t\t\t{\n\t\t\t\t$this->strip_slashes_array($array[$key]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$array[$key] = stripslashes($array[$key]);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "965dc6a4982040f3864521d37ba70cce", "score": "0.61638844", "text": "function safe_output($string) {\n return trim((stripslashes($string)));\n}", "title": "" }, { "docid": "197364fd8e79da034d82d1e0fb3138ea", "score": "0.614781", "text": "function slashes($string)\n{\n\treturn str_replace('\\\\', '/', $string);\n}", "title": "" }, { "docid": "7ccfcc3b347e0af5b333942e03766b74", "score": "0.6144946", "text": "function cleanSlash($str){\n $str = implode(\"/\", explode(\"\\\\\", $str));\n while( count(explode(\"//\", $str)) > 1){\n $str = implode(\"/\", explode(\"//\", $str));\n }\n\n return $str;\n}", "title": "" }, { "docid": "55fa57e7fdfaad7ba81a2e61b4059f86", "score": "0.61230564", "text": "public static function wb_standardize_slashes($str) {\n return str_replace('\\\\', '/', $str);\n }", "title": "" }, { "docid": "3c69191b432dae026dfdc71c992bee80", "score": "0.611886", "text": "function daddslashes($string, $force = 0, $strip = FALSE) {\n\tif(!MAGIC_QUOTES_GPC || $force) {\n\t\tif(is_array($string)) {\n\t\t\tforeach($string as $key => $val) {\n\t\t\t\t$string[$key] = daddslashes($val, $force, $strip);\n\t\t\t}\n\t\t} else {\n\t\t\t$string = addslashes($strip ? stripslashes($string) : $string);\n\t\t}\n\t}\n\treturn $string;\n}", "title": "" }, { "docid": "43c2d1a70f7ffebec4f2f0198df812e7", "score": "0.611759", "text": "function mf_sanitize($input){\n\t\tif(get_magic_quotes_gpc() && !empty($input)){\n\t\t\t $input = is_array($input) ?\n\t array_map('mf_stripslashes_deep', $input) :\n\t stripslashes(trim($input));\n\t\t}\n\t\t\n\t\treturn $input;\n\t}", "title": "" }, { "docid": "ce5075bcbb3d521748197aa0b189d96e", "score": "0.6116486", "text": "function js_stripslashes($str) {\n\treturn str_replace(array(\"'\", '\"', \"\\n\", \"\\r\\n\", \"\\r\"), array(\"&#39;\", \"&#34;\", \" \", \" \", \" \"), $str);\n}", "title": "" }, { "docid": "1a5a4d00bcc4ecb12c9d19a181bf3ade", "score": "0.6087846", "text": "function stripslashes_array($arr) {\n\tif (! is_array($arr)) {\n\t\ttrigger_error(\"<div style='color: red;'>User-function stripslash_array() expects array as argument, got \". gettype($arr) .\".</div>\", E_USER_WARNING);\n\t\treturn false;\n\t}\n\t$out = array();\n\tforeach($arr as $key => $val) {\n\t\t$out[$key] = (is_array($val)) ? stripslashes_array($val) : stripslashes($val);\n\t}\n\treturn $out;\n}", "title": "" }, { "docid": "8498c5b05022d6740f8897f09f715952", "score": "0.60867834", "text": "function my_addslashes($array) {\n\n\tforeach ( $array as $var => $value ) :\n\t\tif ( is_array($value) ) :\n\t\t\t$array[$var] = my_addslashes($value);\n\t\telse :\n\t\t\tif ( substr($value, -1) != '/' ) :\n\t\t\t\t$array[$var] = $value . '/';\n\t\t\tendif;\n\t\tendif;\n\tendforeach;\n\t\n\treturn $array;\n}", "title": "" }, { "docid": "d162188ec599216246660d32b2fe51d3", "score": "0.6085284", "text": "private function reduce_double_slashes($str)\n {\n return preg_replace('#([^:])//+#', '\\\\1/', $str);\n }", "title": "" }, { "docid": "961e057e1f8cb9f1d2b001feedf40c0c", "score": "0.6080398", "text": "function mosStripslashes(&$value)\n{\n\t$ret = '';\n\tif (is_string($value))\n\t{\n\t\t$ret = stripslashes($value);\n\t}\n\telse\n\t{\n\t\tif (is_array($value))\n\t\t{\n\t\t\t$ret = array();\n\t\t\tforeach ($value as $key => $val)\n\t\t\t{\n\t\t\t\t$ret[$key] = mosStripslashes($val);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$ret = $value;\n\t\t}\n\t}\n\treturn $ret;\n}", "title": "" }, { "docid": "d9653747579534d70f2e9519a16a38fd", "score": "0.6067592", "text": "static function revertSlashes($to_strip = null)\n\t{\t\t\n\t\tif (get_magic_quotes_gpc()) {\n\t\t\tif (isset($to_strip)) {\n\t\t\t\treturn is_array($to_strip)\n\t\t\t\t ? array_map(array('Pie_Bootstrap', 'revertSlashes'), $to_strip) \n\t\t\t\t : stripslashes($to_strip);\n\t\t\t}\n\t\t\t$_COOKIE = self::revertSlashes($_COOKIE);\n\t\t\t$_FILES = self::revertSlashes($_FILES);\n\t\t\t$_GET = self::revertSlashes($_GET);\n\t\t\t$_POST = self::revertSlashes($_POST);\n\t\t\t$_REQUEST = self::revertSlashes($_REQUEST);\n\t\t}\n\t}", "title": "" }, { "docid": "ce77034f956d40e0dcb9dd8bd4dd9abe", "score": "0.60569155", "text": "public function stripSlashes(&$data)\n {\n return is_array($data) ? array_map(array($this, 'stripSlashes'), $data) : stripslashes($data);\n }", "title": "" }, { "docid": "39122fbfe6479d2008b7628a7bc0846d", "score": "0.604192", "text": "function cleanse_output($output) {\n\t\t\tif (is_array($output)) {\n\t\t\t\tarray_walk_recursive($output, create_function('&$val', '$val = trim(stripslashes($val));'));\n\t\t\t} else {\n\t\t\t\t$output = stripslashes($output);\n\t\t\t}\n\t\t\treturn $output;\n\t\t}", "title": "" }, { "docid": "f4e884175e5791c80b32f921ea886875", "score": "0.5996705", "text": "public function mosStripslashes($value) {\r\n\t if (is_string($value)) $ret = stripslashes($value);\r\n\t\telseif (is_array($value)) {\r\n\t $ret = array();\r\n\t foreach ($value as $key=>$val) $ret[$key] = $this->mosStripslashes($val);\r\n\t }\r\n\t\telse $ret = $value;\r\n\t return $ret;\r\n\t}", "title": "" }, { "docid": "17a760da59beee26f080286dcbf9277a", "score": "0.59940135", "text": "function slashify($str)\n{\n return unslashify($str).'/';\n}", "title": "" }, { "docid": "eeec43988619da7c9f1ae310e892af72", "score": "0.59619415", "text": "function &stripSlashesGPC( $text, $force = false ) {\n if ( get_magic_quotes_gpc() || $force == true ) {\n $text = stripslashes( $text );\n }\n return $text;\n }", "title": "" }, { "docid": "9e3d29ca1101511f4652c8c0c17996cd", "score": "0.59426224", "text": "function removeslashes($inpData)\n\t{\n\t\t$inpData = implode(\"\", explode(\"\\\\\", $inpData));\n\t\t$inpData = implode(\"\", explode(\"/\", $inpData));\n\t\treturn $inpData;\n\t}", "title": "" }, { "docid": "c34088c156495e39b344503f683132bf", "score": "0.59294665", "text": "function scrub_input($input_text) {\n\t$output_text = stripslashes($input_text);\n\treturn $output_text;\n}", "title": "" }, { "docid": "af8173939de927c311b316bbf4cd123b", "score": "0.58940804", "text": "protected function _stripvalueslashes($matches)\n {\n return $matches[1].stripslashes(substr($matches[2], 1, -1));\n }", "title": "" }, { "docid": "a138b77ffd86c6ee059187b52f8c8f01", "score": "0.5874273", "text": "static function recursiveUnescape($value)\n\t{\n\t\tif (is_array($value))\n\t\t{\n\t\t\treturn array_map([__CLASS__, 'recursiveUnescape'], $value);\n\t\t}\n\n\t\treturn str_replace(['\\r', '\\n', '\\t', '\\\"'], [\"\\r\", \"\\n\", \"\\t\", '\"'], $value);\n\t}", "title": "" }, { "docid": "732cbbf65134ca9cde9de4b8727a4fb4", "score": "0.5837944", "text": "function wp_slash_strings_only($value)\n {\n }", "title": "" }, { "docid": "4d4a0889e4941559122ec512dbf8eee4", "score": "0.5828285", "text": "function wp_kses_stripslashes($content)\n {\n }", "title": "" }, { "docid": "83b61006d63123c6a8d06c96afe51e05", "score": "0.5818918", "text": "private function stripslash_gpc(&$value) {\r\n $value = stripslashes($value);\r\n }", "title": "" }, { "docid": "6af5994bc46947683ac36f6d0ae36a32", "score": "0.5812353", "text": "public static function fixSlashes($_str) {\n\t\treturn $_str?str_replace('\\\\','/',$_str):$_str;\n\t}", "title": "" }, { "docid": "8d1b8b49a859e285055c61ffd4e7a857", "score": "0.57833934", "text": "function magicQuotesSuck(&$a)\r\n{\r\n\tif (is_array($a))\r\n\t{\r\n\t\tforeach ($a as $k => $v)\r\n\t\t{\r\n\t\t\tif (is_array($v))\r\n\t\t\tmagicQuotesSuck($a[$k]);\r\n\t\t\telse\r\n\t\t\t$a[$k] = stripslashes($v);\r\n\t\t}\r\n\t}\r\n}", "title": "" }, { "docid": "529d0c12c35fe458cc083c0ce72e9166", "score": "0.5781477", "text": "function xStripSlashesGPC($_data){\r\n\r\n\tif(!get_magic_quotes_gpc())return $_data;\r\n\tif(is_array($_data)){\r\n\t\t\r\n\t\tforeach ($_data as $_ind => $_val){\r\n\t\t\t\r\n\t\t\t$_data[$_ind] = xStripSlashesGPC($_val);\r\n\t\t}\r\n\t\treturn $_data;\r\n\t}\r\n\treturn stripslashes($_data);\r\n}", "title": "" }, { "docid": "b14dac9b580a5e7fa1eb230e541b6abb", "score": "0.5773303", "text": "function addslashes_strings_only($value)\n {\n }", "title": "" }, { "docid": "876472e8cdd9c129d3721267d8f6011b", "score": "0.576458", "text": "public static function runtimeStripSlashes($in)\n {\n return (get_magic_quotes_runtime()) ? stripslashes($in) : $in;\n }", "title": "" }, { "docid": "be0c9d963b5f65f178637b5123a9b22b", "score": "0.5752574", "text": "function removeDoubleBslash( $str ) {\n\t\t$str = str_replace('\\\\\\\\', '\\\\', $str);\n\t\treturn $str;\n\t}", "title": "" }, { "docid": "565b03a09a5f60847da3893e6d7f6aef", "score": "0.573393", "text": "function printCleanString($string) {\n\t\t$string = str_replace(\"../../\", \"/\", $string);\n\t\t$string = stripslashes($string);\n\t\treturn $string;\n\t}", "title": "" }, { "docid": "a0465e5fe11b75936f65c5bc4a3279f9", "score": "0.5705639", "text": "function filter_mydata($data)\n{\n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n return $data;\n}", "title": "" }, { "docid": "484181c09a7647612fa54d6f007ec2db", "score": "0.5701767", "text": "function revertSlashes($param)\n{\n\n\treturn str_replace(\"\\\\\", '/', $param);\n\n}", "title": "" }, { "docid": "370a933303cc464b4a0d0afac053c97c", "score": "0.5688635", "text": "function StringInputCleaner($data)\r\n{\r\n\t$data = trim($data); \r\n\t//remove slashes\r\n\t$data = stripslashes($data); \r\n\t$data=(filter_var($data, FILTER_SANITIZE_STRING));\r\n\treturn $data;\r\n}", "title": "" }, { "docid": "82c3c743fdeee05918c2bbae23df0e75", "score": "0.5678662", "text": "function atf_deslashit($stringvar){\n if (1 == get_magic_quotes_gpc()){\n $stringvar = stripslashes($stringvar);\n }\n return $stringvar;\n }", "title": "" }, { "docid": "cd79529b5566f37b4a672847171f62f0", "score": "0.5677108", "text": "function unfck($v) {\n return is_array($v) ? array_map('unfck', $v) : addslashes($v);\n}", "title": "" }, { "docid": "eae9226e4ceeee46948dae57089c79d0", "score": "0.56731206", "text": "function preg_windows_slashes($string_value, $rep_value = \"\\\\\\\\\")\n {\n if (strtoupper(PHP_OS == \"WINDOWS\") || strtoupper(PHP_OS) == 'WINNT') {\n $string_value = str_replace('/', $rep_value, $string_value);\n }\n return $string_value;\n }", "title": "" }, { "docid": "27d55a14a21fb8cd4ab2f44531c104f4", "score": "0.5665839", "text": "public function stripslash_gpc($value) {\r\n $value = stripslashes($value);\r\n\t\t$value = htmlspecialchars($value);\r\n\t\t$value = trim($value);\r\n\t\treturn $value;\r\n }", "title": "" }, { "docid": "0627f89bad2d0ff79b7aa3fa45cd8896", "score": "0.56647795", "text": "function addslash( $val ) {\n return( is_array( $val ) ? array_map( 'gpcAddslash', $val ) : addslashes( $val ) );\n}", "title": "" }, { "docid": "e97d8f3b96631f8cf829ff37ee8822e3", "score": "0.56637245", "text": "public static function stripSlashes($cadena)\n\t\t{\n\t\t\treturn str_replace(\"''\", \"'\", $cadena);\n\t\t}", "title": "" }, { "docid": "416511ec81c8ab89b946c4c45ec970bc", "score": "0.5656085", "text": "public function json_decode_slashes($data){\n\t\tif(gettype($data) == 'string'){\n\t\t\t$data_decoded = json_decode(stripslashes($data), true);\n\t\t\tif(empty($data_decoded))\n\t\t\t\t$data_decoded = json_decode($data, true);\n\t\t\t\n\t\t\t$data = $data_decoded;\n\t\t}\n\t\t\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "c2aa04b622b52c983beb961705dd1eab", "score": "0.5647051", "text": "function FILTER_SANITIZE_TURTLE_STRING($value)\r\n{\r\n $value = preg_replace('/\\r?\\n|\\r/', ' ', $value); // newline as space\r\n $value = preg_replace('/\\\\\\\\/', '\\\\\\\\\\\\\\\\', $value); // escape backslash\r\n $value = preg_replace('/\"/', '\\\\\"', $value); // escape double quote\r\n \r\n return $value?:null;\r\n}", "title": "" }, { "docid": "651709c662fce4f2c56f4511746e878c", "score": "0.56237024", "text": "function addslashes ($str) {}", "title": "" }, { "docid": "b026af04f4f030a7233ae8c561607f0f", "score": "0.5617488", "text": "function cleanText($str) {\r\n $str = @trim($str);\r\n if (get_magic_quotes_gpc()) {\r\n $str = stripslashes($str);\r\n }\r\n return $str;\r\n}", "title": "" } ]
ba6ab71bd56892c1f3591935c8fbc9bc
where provinsi sampai kelurahan
[ { "docid": "2e26d979019c454fecb66ff9e69561a9", "score": "0.0", "text": "public function PosisiLingkungan() {\n $kelompok = Yii::$app->levelcomponent->getKelompok();\n $pos = [\n 'Kd_Prov' => $kelompok['Kd_Prov'],\n 'Kd_Kab' => $kelompok['Kd_Kab'],\n 'Kd_Kec' => $kelompok['Kd_Kec'],\n 'Kd_Kel' => $kelompok['Kd_Kel'],\n 'Kd_Urut_Kel' => $kelompok['Kd_Urut_Kel'],\n 'Kd_Lingkungan' => $kelompok['Kd_Lingkungan'],\n ];\n return $pos;\n }", "title": "" } ]
[ { "docid": "85312dc58568a902ecb9885a61096fec", "score": "0.6675822", "text": "function _getSKPTahunan($id_user)\n\t{\n\t\t$sql=\"SELECT d.* ,ROUND((SUM(d.nilai))/count(d.nilai),2) nilai_capaian_skp,\n\t\tekinerja.sf_formatTanggal(d.awal_periode_skp) format_awal_periode_skp,\n\t\tekinerja.sf_formatTanggal(d.akhir_periode_skp) format_akhir_periode_skp\nFROM \n(SELECT c.*, \nROUND(c.nilai_kuantitas + c.nilai_kualitas + c.nilai_waktu,2) perhitungan,\nCASE\n\tWHEN c.target_biaya > 0 THEN ROUND((c.nilai_kuantitas + c.nilai_kualitas + c.nilai_waktu )/4,3)\n ELSE ROUND((c.nilai_kuantitas + c.nilai_kualitas + c.nilai_waktu )/3,3)\nEND\nnilai\nFROM (SELECT b.*,\nCASE\n WHEN b.persen_waktu <=24 THEN ((1.76 * b.target_Waktu - b.realisasi_waktu ) / b.target_waktu) * 100\n ELSE 76 - ((((1.76 * b.target_waktu - b.realisasi_waktu) / b.target_waktu ) * 100 ) - 100 )\nEND\nnilai_waktu,\nCASE\n\tWHEN b.persen_biaya <= 24 THEN ((1.76 * b.target_biaya - b.realisasi_biaya) / b.target_biaya) * 100\n ELSE 76 - ((((1.76 * b.target_biaya - b.realisasi_biaya) / b.target_biaya ) * 100 ) - 100 )\nEND\nnilai_biaya\nFROM ( SELECT a.*,\n(realisasi_kuantitas/target_kuantitas) * 100 nilai_kuantitas,\n(realisasi_kualitas/100) * 100 nilai_kualitas,\n100 - ( (realisasi_waktu/target_waktu) * 100) persen_waktu,\n100 - ( (realisasi_biaya/target_biaya) * 100) persen_biaya\nFROM \n(SELECT a.id_opmt_target_skp, a.kegiatan_tahunan,a.target_kuantitas,\nb.satuan_kuantitas,a.target_waktu,a.biaya target_biaya,\nCASE \n\tWHEN ISNULL(sum(c.kuantitas)) THEN 0\n ELSE sum(c.kuantitas)\nEND\nrealisasi_kuantitas,\nCASE \n\tWHEN ISNULL(d.kualitas) THEN 0\n ELSE d.kualitas\nEND\nrealisasi_kualitas,d.waktu realisasi_waktu,d.biaya realisasi_biaya, a.id_dd_user, \ne.id_opmt_tahunan_skp, e.awal_periode_skp, e.akhir_periode_skp\nFROM ekinerja.opmt_target_skp a\nLEFT JOIN ekinerja.dd_kuantitas b on a.satuan_kuantitas = b.id_dd_kuantitas\nLEFT JOIN ekinerja.opmt_realisasi_harian_skp c ON a.id_opmt_target_skp = c.id_opmt_target_skp AND c.proses=0\nLEFT JOIN ekinerja.opmt_realisasi_skp d ON a.id_opmt_target_skp = d.id_opmt_target_skp\nINNER JOIN ekinerja.opmt_tahunan_skp e ON e.id_opmt_tahunan_skp = a.id_opmt_tahunan_skp\nWHERE a.id_dd_user='$id_user'\nGROUP BY a.id_opmt_target_skp\n ) a) b ) c ) d \n GROUP BY d.id_opmt_tahunan_skp \n ORDER BY d.awal_periode_skp asc\";\n \n $query\t=$this->db->query($sql);\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "6857a5d0985a0f55a2c452adaa6dea10", "score": "0.65177816", "text": "function kwh_chart_filter_bulan_total($device, $bulan, $tahun){\n $query = $this->db->query(\"SELECT dev_bill_hour as pm,\n sum(kwh_r) as kwh_r, \n sum(kwh_s) as kwh_s, \n sum(kwh_t) as kwh_t\n FROM billing_hour\n WHERE dev_bill_hour = '$device' AND monthname(updated_date_hour) = '$bulan' AND year(updated_date_hour) = '$tahun'\");\n if($query->num_rows() > 0){\n foreach($query->result() as $data){\n $hasil[] = $data;\n }\n return $hasil;\n }\n }", "title": "" }, { "docid": "89be8ce7135dca8f3f1476a67129f09d", "score": "0.6514218", "text": "function datasmig($tahun, $bulan, $hari) {\n// $whereBulan = \"\";\n// if ($bulan != 00) {\n// $whereBulan = \"BULAN = '$bulan' AND\";\n// }\n if (date('Ym') != $tahun . '' . $bulan) {\n $hari = date('t', strtotime($tahun . \"-\" . $bulan));\n } else {\n $hari = str_pad(($hari - 1), 2, '0', STR_PAD_LEFT);\n }\n $sql = \"SELECT\n TB1.PROV,\n TB8.NM_PROV,\n NVL (TB1.TARGET, 0) TARGET,\n NVL (TB2. REAL, 0) REAL,\n NVL (TB6.RKAP_MS, 0) RKAP_MS,\n NVL (TB8.DEMAND_HARIAN, 0) DEMAND_HARIAN,\n CASE TB7.DEMAND_HARIAN\nWHEN 0 THEN\n 0\nELSE\n NVL (\n (\n (TB2. REAL / TB7.DEMAND_HARIAN) * 100\n ),\n 0\n )\nEND AS MARKETSHARE\nFROM\n (\n SELECT\n A .prov,\n SUM (A .quantum) AS target\n FROM\n sap_t_rencana_sales_type A\n WHERE\n co != '6000'\n AND thn = '$tahun'\n AND bln = '$bulan'\n AND A .prov != '0001'\n AND A .prov != '1092'\n GROUP BY\n A .prov\n ) TB1\nLEFT JOIN (\n SELECT\n PROPINSI_TO,\n SUM (QTY) REAL\n FROM\n ZREPORT_SCM_REAL_SALES\n WHERE\n ORG != '6000'\n AND TAHUN = '$tahun'\n AND BULAN = '$bulan'\n AND HARI <= '$hari'\n AND PROPINSI_TO NOT IN ('1092', '0001')\n GROUP BY\n PROPINSI_TO\n) TB2 ON TB1.PROV = TB2.PROPINSI_TO\nLEFT JOIN (\n SELECT\n PROPINSI,\n SUM(QTY) RKAP_MS\n FROM\n ZREPORT_MS_RKAPMS\n WHERE KODE_PERUSAHAAN IN ('110','102','112')\n AND THN = '$tahun'\n AND STATUS = '0'\nGROUP BY PROPINSI\n) TB6 ON TB1.PROV = TB6.PROPINSI\nLEFT JOIN (\n SELECT\n TB1.KD_PROV,\n (\n tb1.qty * (\n SELECT\n SUM (porsi) porsi\n FROM\n zreport_porsi_sales_region c\n WHERE\n c.region = 5\n AND c.vkorg != '6000'\n AND c.budat LIKE '$tahun$bulan%'\n AND c.budat <= '$tahun$bulan$hari'\n ) / (\n SELECT\n SUM (porsi) porsi_total\n FROM\n zreport_porsi_sales_region c\n WHERE\n c.region = 5\n AND c.vkorg != '6000'\n AND c.budat LIKE '$tahun$bulan%'\n )\n ) DEMAND_HARIAN\nFROM\n (\n SELECT\n KD_PROV,\n SUM (qty) qty\n FROM\n ZREPORT_SCM_DEMAND_PROVINSI\n WHERE\n tahun = '$tahun'\n AND bulan = '$bulan'\n GROUP BY\n KD_PROV\n ) tb1\n) TB7 ON TB1.PROV = TB7.KD_PROV\nLEFT JOIN ZREPORT_M_PROVINSI TB8 ON TB1.prov = TB8.KD_PROV\nLEFT JOIN(\nSELECT\n tbm1.KD_PROV,\n (\n tbm1.qty * tbm2.porsi / tbm3.porsi_total\n ) DEMAND_HARIAN\nFROM\n (\n SELECT\n KD_PROV,\n SUM (qty) qty\n FROM\n ZREPORT_SCM_DEMAND_PROVINSI\n WHERE\n tahun = '$tahun'\n AND bulan = '$bulan'\n GROUP BY\n KD_PROV\n ) tbm1\nLEFT JOIN (\n SELECT\n vkorg org,\n SUM (porsi) porsi\n FROM\n zreport_porsi_sales_region c\n WHERE\n c.region = 5\n AND c.vkorg != '6000'\n AND c.budat LIKE '$tahun$bulan%'\n AND c.budat <= '$tahun$bulan$hari'\n GROUP BY\n VKORG\n) tbm2 ON tbm2.org != '6000'\nLEFT JOIN (\n SELECT\n vkorg org,\n SUM (porsi) porsi_total\n FROM\n zreport_porsi_sales_region c\n WHERE\n c.region = 5\n AND c.vkorg != '6000'\n AND c.budat LIKE '$tahun$bulan%'\n GROUP BY\n VKORG\n) tbm3 ON tbm2.org = tbm3.org)TB8 ON TB1.PROV = TB8.KD_PROV\nORDER BY\n TB1.PROV\";\n $data = $this->db->query($sql);\n return $data->result_array(); \n }", "title": "" }, { "docid": "46032a538b9973f5707c9fac9e2fbd8d", "score": "0.6382781", "text": "function totalangg($id_Spm)\r\n{\r\n $sql= mysql_query(\"SELECT SUM(b.AnggKeg) total FROM datakegiatan b,rincspm c\r\n WHERE c.id_DataKegiatan = b.id_DataKegiatan\r\n AND c.id_Spm = '$id_Spm'\");\r\n $r = mysql_fetch_array($sql);\r\n return $r[total];\r\n}", "title": "" }, { "docid": "3ca0db0c3400b81ea9b4dae52cc1c39a", "score": "0.6329932", "text": "function cost_chart_filter_bulan_total($device, $bulan, $tahun){\n $query = $this->db->query(\"SELECT dev_bill_hour as pm,\n sum(bill_r_hour) as cost_r, \n sum(bill_s_hour) as cost_s, \n sum(bill_t_hour) as cost_t\n FROM billing_hour\n WHERE dev_bill_hour = '$device' AND monthname(updated_date_hour) = '$bulan' AND year(updated_date_hour) = '$tahun'\");\n if($query->num_rows() > 0){\n foreach($query->result() as $data){\n $hasil[] = $data;\n }\n return $hasil;\n }\n }", "title": "" }, { "docid": "5344de05775bd5dab3f28340e259fed9", "score": "0.6312643", "text": "function kwh_chart_filter_tanggal_total($device, $tanggal){\n $query = $this->db->query(\"SELECT dev_bill_hour as pm,\n sum(kwh_r) as kwh_r, \n sum(kwh_s) as kwh_s, \n sum(kwh_t) as kwh_t\n FROM billing_hour\n WHERE dev_bill_hour = '$device' AND DATE(updated_date_hour) = '$tanggal'\");\n if($query->num_rows() > 0){\n foreach($query->result() as $data){\n $hasil[] = $data;\n }\n return $hasil;\n }\n }", "title": "" }, { "docid": "574dbbac6f68a77b23e617c0e934999d", "score": "0.6251043", "text": "function dataprice($bulan_fil, $tahun_fil) {\n// $bulan = date('m');\n// $tahun = date('Y');\n return $this->db->query(\"SELECT\n\tZREPORT_M_PROVINSI.NM_PROV,\n\tZREPORT_M_KOTA.NM_KOTA,\n ZREPORT_MS_PERUSAHAAN.PRODUK,\n\tSCM_MI_PRICE_SURVEY.*\nFROM\n\tZREPORT_M_PROVINSI,\n\tZREPORT_M_KOTA,\n\tSCM_MI_PRICE_SURVEY,\n ZREPORT_MS_PERUSAHAAN\nWHERE\nSCM_MI_PRICE_SURVEY.KD_PROV=ZREPORT_M_PROVINSI.KD_PROV\nAND\nSCM_MI_PRICE_SURVEY.KD_KOTA=ZREPORT_M_KOTA.KD_KOTA\nAND\nSCM_MI_PRICE_SURVEY.KD_PERUSAHAAN=ZREPORT_MS_PERUSAHAAN.KODE_PERUSAHAAN\nAND\nSCM_MI_PRICE_SURVEY.BULAN='$bulan_fil'\nAND\nSCM_MI_PRICE_SURVEY.TAHUN='$tahun_fil'\n\")->result_array();\n }", "title": "" }, { "docid": "405efe4661cb62a9f99ae5292b8aee05", "score": "0.62174076", "text": "public function get_total_iuran_wajib_by_pencarian_by_date($tanggal_awal, $tanggal_akhir){\n //$cari = str_replace('-',' ',$cari);\n $total = $this->db->query(\"SELECT SUM(iuran_wajib.jumlah_iuran_wajib) \n AS total_iuran_wajib from anggota INNER JOIN iuran_wajib\n ON anggota.id_anggota = iuran_wajib.id_anggota \n WHERE (iuran_wajib.tanggal_transaksi >= '$tanggal_awal' \n AND iuran_wajib.tanggal_transaksi <= '$tanggal_akhir') \n AND anggota.status = 'aktif'\")->row()->total_iuran_wajib;\n\n //$total = $this->db->query(\"SELECT SUM(jumlah_iuran_wajib) as total_iuran_wajib \n //FROM iuran_wajib \")->row()->total_iuran_wajib;\n echo $total;\n //exit();\n //exit();\n if(empty($total))\n return 0;\n return $total;\n \n}", "title": "" }, { "docid": "13b7a55b882f04e2fedbb418a86dce38", "score": "0.62143505", "text": "function get_jml_estimasi_angsur() {\n\t\t$this->db->select('SUM(ags_per_bulan * lama_angsuran) AS jml_total');\n\t\t$this->db->from('v_hitung_pinjaman');\n\n\t\tif(isset($_REQUEST['tgl_dari']) && isset($_REQUEST['tgl_samp'])) {\n\t\t\t$tgl_dari = $_REQUEST['tgl_dari'];\n\t\t\t$tgl_samp = $_REQUEST['tgl_samp'];\n\t\t} else {\n\t\t\t$tgl_dari = date('Y') . '-01-01';\n\t\t\t$tgl_samp = date('Y') . '-12-31';\n\t\t}\n\t\t$this->db->where('DATE(tgl_pinjam) >= ', ''.$tgl_dari.'');\n\t\t$this->db->where('DATE(tgl_pinjam) <= ', ''.$tgl_samp.'');\n\n\t\t$query = $this->db->get();\n\t\treturn $query->row();\n\t}", "title": "" }, { "docid": "8ecf575b0139ac5a57255b592b36201a", "score": "0.62064815", "text": "function chek_bayar($nim,$jenis_bayar,$kode)\n{\n $CI = & get_instance();\n $m = $CI->db->query(\"select konsentrasi_id,angkatan_id from student_mahasiswa where nim='$nim'\")->row_array();\n if($kode==01)\n {\n\n $j=$CI->db->get_where('keuangan_biaya_kuliah',array( 'jenis_bayar_id'=>$jenis_bayar,'angkatan_id'=>$m['angkatan_id'],'konsentrasi_id'=>$m['konsentrasi_id']))->row_array();\n return $j['jumlah'];\n }\n else\n {\n $sql=\"SELECT sum(jumlah) as total from keuangan_pembayaran_detail where nim='$nim' and jenis_bayar_id=$jenis_bayar\";\n $data=$CI->db->query($sql);\n if($data->num_rows()>0)\n {\n $r=$data->row_array();\n return $r['total'];\n }\n else\n {\n return 0;\n }\n }\n}", "title": "" }, { "docid": "45d0f3baebbd768a4a63709247834280", "score": "0.6183899", "text": "function ubah_kalkulasi_sjm($inputan,$id_kalkulasi_sjm,$id_sjm)\n\t{\n\t\t$this->db->where('id_kalkulasi_sjm', $id_kalkulasi_sjm);\n\t\t$this->db->update('kalkulasi_sjm', $inputan);\n\n\t\t$data_kalkulasi = $this->ambil_kalkulasi($id_sjm);\n\t\t$total_sjm = 0;\n\t\tforeach ($data_kalkulasi as $key => $value)\n\t\t{\n\t\t\t$total_sjm+=$value['qty_sjm'];\n\t\t}\n\n\t\t$hasil['qty_total'] = $total_sjm;\n\n\t\t$this->db->where('id_sjm',$id_sjm);\n\t\t$this->db->update('total_sjm', $hasil);\n\t}", "title": "" }, { "docid": "c3bf0bcb33d4f826f8bd43386b5d4659", "score": "0.6175311", "text": "function cost_chart_filter_bulan($device, $bulan, $tahun){\n $query = $this->db->query(\"SELECT dev_bill_hour as pm,\n dev_loc as loc,\n updated_date_hour as tanggal,\n sum(bill_r_hour) as cost_r, \n sum(bill_s_hour) as cost_s, \n sum(bill_t_hour) as cost_t\n FROM billing_hour\n JOIN devices ON dev_bill_hour = dev\n WHERE dev_bill_hour = '$device' AND monthname(updated_date_hour) = '$bulan' AND year(updated_date_hour) = '$tahun'\n GROUP BY updated_date_hour\");\n //COLLATE utf8mb4_unicode_ci \n if($query->num_rows() > 0){\n foreach($query->result() as $data){\n $hasil[] = $data;\n }\n return $hasil;\n }\n }", "title": "" }, { "docid": "6a66a74ef0003438749b52fd1d5b07d5", "score": "0.61699206", "text": "function realisasi($tahun, $bulan, $hari) {\n return $this->db->query(\"SELECT\n SUM (qty) real\n FROM\n ZREPORT_SCM_REAL_SALES\n WHERE\n tahun = '$tahun'\n AND bulan = '$bulan'\n AND hari <= '$hari'\n AND propinsi_to NOT IN ('1092', '0001')\n AND item != '121-200'\")->result_array();\n }", "title": "" }, { "docid": "6ef3f7eb3b4f0354c2164315663aedef", "score": "0.61423755", "text": "function kwh_chart_filter_bulan($device, $bulan, $tahun){\n $query = $this->db->query(\"SELECT dev_bill_hour as pm,\n dev_loc as loc,\n updated_date_hour as tanggal,\n sum(kwh_r) as kwh_r, \n sum(kwh_s) as kwh_s, \n sum(kwh_t) as kwh_t\n FROM billing_hour\n JOIN devices ON dev_bill_hour = dev\n WHERE dev_bill_hour = '$device' AND monthname(updated_date_hour) = '$bulan' AND year(updated_date_hour) = '$tahun'\n GROUP BY updated_date_hour\");\n //COLLATE utf8mb4_unicode_ci\n if($query->num_rows() > 0){\n foreach($query->result() as $data){\n $hasil[] = $data;\n }\n return $hasil;\n }\n }", "title": "" }, { "docid": "3b93c29f7f6f37ee67086ba351e473a9", "score": "0.6139263", "text": "public function getData($mk, $tgl) {\n $query = $this->db->query(\"SELECT SUM(IF(`flag`='', status)) FROM absensi\");\n\n //$query = $this->db->query(\"SELECT SUM(IF(`flag`='y', last_amount)) FROM absensi\");\n return $query;\n }", "title": "" }, { "docid": "c83bb43c937aaffb20316d9b04145e63", "score": "0.61282825", "text": "function cost_chart_filter_tanggal_total($device, $tanggal){\n $query = $this->db->query(\"SELECT dev_bill_hour as pm,\n sum(bill_r_hour) as cost_r, \n sum(bill_s_hour) as cost_s, \n sum(bill_t_hour) as cost_t\n FROM billing_hour\n WHERE dev_bill_hour = '$device' AND DATE(updated_date_hour) = '$tanggal'\");\n if($query->num_rows() > 0){\n foreach($query->result() as $data){\n $hasil[] = $data;\n }\n return $hasil;\n }\n }", "title": "" }, { "docid": "163fcf9f84ad31a7e16050acd0dc12c7", "score": "0.6063906", "text": "public function searchDialogPemusnahan()\n {\n\t\t\t$format = new MyFormatter();\n $criteria=new CDbCriteria;\n\t\t\tif(!empty($this->ruangan_id)){\n\t\t\t\t$criteria->addCondition('ruangan_id = '.$this->ruangan_id);\n\t\t\t}else{\n\t\t\t\t$criteria->addCondition('ruangan_id = '.Yii::app()->user->getState('ruangan_id'));\n\t\t\t}\n\t\t\tif(!empty($this->jenisobatalkes_id)){\n\t\t\t\t$criteria->addCondition('jenisobatalkes_id = '.$this->jenisobatalkes_id);\n\t\t\t}\n $criteria->compare('LOWER(obatalkes_kode)',strtolower($this->obatalkes_kode),true);\n $criteria->compare('LOWER(obatalkes_barcode)',strtolower($this->obatalkes_kode),true,'OR');\n $criteria->compare('LOWER(obatalkes_nama)',strtolower($this->obatalkes_nama),true);\n $criteria->compare('LOWER(obatalkes_namalain)',strtolower($this->obatalkes_nama),true,'OR');\n\t\t\t$criteria->compare('LOWER(satuankecil_nama)',strtolower($this->satuankecil_nama),true);\t\t\t\n $criteria->compare('LOWER(nobatch)',strtolower($this->nobatch),true);\n $criteria->compare('DATE(tglkadaluarsa)',$format->formatDateTimeForDb($this->tglkadaluarsa));\n if($this->transaksi){\n\t\t\t\t$criteria->addCondition($this->transaksi.' > 0'); \n\t\t\t}\n $criteria->addCondition('stokoa_aktif = TRUE'); \n $criteria->addCondition('qtystok_in > 0'); \n \n $criteria->limit=5;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "e591f4eee29af7ae46a00be386430222", "score": "0.60530627", "text": "public function simpanEksternal($file_name)\r\n {\r\n $no = $this->input->post('noeksternal');\r\n $waktu = $this->input->post('waktu');\r\n\r\n $bpu = $this->db->query(\"SELECT SUM(jumlah) as total from bpu where no = '$no' and waktu = '$waktu'\")->row_array();\r\n $term = $this->db->get_where('bpu',['waktu'=> $waktu, 'no'=>$no])->num_rows();\r\n\r\n $total = $this->input->post('total');\r\n $bpu = $total + $bpu['total'];\r\n $sisa = $this->input->post('sisa');\r\n $totalPengajuan = $this->input->post('totalpengajuan');\r\n\r\n $pengajuan = $this->db->get_where('pengajuan', ['waktu'=>$waktu])->row_array();\r\n\r\n if($bpu<$totalPengajuan){\r\n $data = [\r\n 'no' => $no,\r\n 'jumlah' => $total,\r\n 'tglcair' => $this->input->post('tanggal'),\r\n 'namabank' => $this->input->post('bank'),\r\n 'norek' => $this->input->post('norek'),\r\n 'namapenerima' => $this->input->post('nama'),\r\n // 'pengaju' => $this->session->userdata('ses_level'), //SALAH\r\n // 'divisi' => $this->session->userdata('ses_divisi'), //SALAH\r\n 'pengaju' => $pengajuan['pengaju'],\r\n 'divisi' => $pengajuan['divisi'],\r\n 'waktu' => $waktu,\r\n 'status' => 'Belum Di Bayar',\r\n 'persetujuan' => 'Belum Disetujui',\r\n 'jumlahbayar' => 0,\r\n 'term' => $term + 1,\r\n 'statusbpu' => $this->input->post('statusbpu'),\r\n 'fileupload' => $file_name,\r\n ];\r\n\r\n $this->db->insert('bpu', $data);\r\n return 1;\r\n } else {\r\n return 0;\r\n }\r\n }", "title": "" }, { "docid": "257d733cbe9701532efc7072bda3cf80", "score": "0.60383093", "text": "public function siswaSakitPerBulan()\n\t{\n\n\t\t$namaguru = $this->session->userdata('jeneng');\n\t\t$bulan = date('m');\n\t\t$tahun = date('Y');\n\n\t\treturn $this->db->select('tb_post.id_user')\n\t\t\t\t\t\t->where('MONTH(tanggal)', $bulan)\n\t\t\t\t\t\t->where('YEAR(tanggal)', $tahun)\n\t\t\t\t\t\t->where('ket_abs', \"Sakit\")\n\t\t\t\t\t\t->from('tb_post')\n\t\t\t\t\t\t->join('tb_user_siswa', 'tb_post.id_user = tb_user_siswa.id_user', 'left')\n\t\t\t\t\t\t->count_all_results();\n\t}", "title": "" }, { "docid": "7e16ff0e3d7544fb9deb5863a2807b80", "score": "0.59905684", "text": "public function get_pilihan_nama_progress(){\n\t\t$this->db->where('jenis_nama_progress = \"kegiatan\" OR jenis_nama_progress = \"semua\"'); //progress buat kegiatan dan semua\n\t\t$query = $this->db->get('nama_progress');\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "12283477662522cd7854ce0046823e6b", "score": "0.5966393", "text": "function get_where_pengguna(){\n\t\t// \tpengguna_level = '0', \");\n\t\t$this->db->select('*');\n\t\t$this->db->from('pengguna, detailikm');\n\t\t$this->db->where('pengguna.ID_IKM = detailikm.ID_IKM');\n\t\t$this->db->where('pengguna.pengguna_level = \"0\"');\n\t\t$this->db->where('pengguna.pengguna_status= \"1\"');\n\t\t$hsl = $this->db->get();\n\t\treturn $hsl;\t\n\t}", "title": "" }, { "docid": "2718b8d25d45d2a5ec55d0037f042773", "score": "0.5959805", "text": "function gedung_ruangan(){\n\t\t//SELECT * FROM ruangan WHERE status = 1\n\t\t//$where = array('status' => 1);\n\t\t$a = 2;\n\t\t$b = 3;\n\t\t$data['gedung'] = $this->m_data->get_data('gedung')->result();\n\n\t\t$data['ruangan_konfirmasi'] = $this->db->query(\"\n\t\tSELECT * \n\t\tFROM peminjaman \n\t\tWHERE peminjaman_status = $a \n\t\t\")->result();\n\n\t\t$data['ruanganii'] = $this->db->query(\"select * from ruangan where status = $b \")->result();\n\t\t$this->load->view('admin/v_header');\n\t\t$this->load->view('admin/gedung/v_gedung_ruangan',$data);\n\t\t$this->load->view('admin/v_footer');\n\t}", "title": "" }, { "docid": "58906694eac8511e0a13673cedff3f82", "score": "0.59584373", "text": "public function getJenisSumur($jns = '', $wil = ''){\n if ($wil == '') {\n $this->db->select('*');\n $this->db->from('t_sumur');\n $this->db->join('t_perusahaan', 't_perusahaan.id_perusahaan = t_sumur.id_perusahaan', 'left');\n $this->db->where('id_jenis_sumur', $jns);\n //$this->db->where('id_kota', $wil);\n return $this->db->get();\n } else {\n $this->db->select('*');\n $this->db->from('t_sumur');\n $this->db->join('t_perusahaan', 't_perusahaan.id_perusahaan = t_sumur.id_perusahaan', 'left');\n $this->db->where('id_jenis_sumur', $jns);\n $this->db->where('id_kota', $wil);\n return $this->db->get();\n } \n }", "title": "" }, { "docid": "2107a9cf7b3413ee250153078a34cd5e", "score": "0.5956442", "text": "public function jml_permohonan_selesaiKasubag()\n {\n $this->db->select('id_permohonan_ptsp, COUNT(id_permohonan_ptsp) as permohonan_selesaiKasubag');\n $this->db->from('permohonan_ptsp');\n $this->db->where(\"(id_kasubag != 'null')\");\n $this->db->where(\"(status = 'Selesai')\");\n $this->db->where('status_delete', 0);\n\n $hasil = $this->db->get();\n return $hasil;\n }", "title": "" }, { "docid": "0f7ecbe150a781501570a4a6ff7428f3", "score": "0.5955704", "text": "public function jml_permohonan_validasi_kemenag()\n {\n $this->db->select('id_permohonan_ptsp, COUNT(id_permohonan_ptsp) as permohonan_validasi_kemenag');\n $this->db->from('permohonan_ptsp');\n $this->db->where('id_pemohon', $this->session->userdata('id_pemohon'));\n $this->db->where(\"(status = 'Validasi Kemenag'\n OR status = 'Proses BO'\n OR status = 'Proses Tim Teknis'\n OR status = 'Proses Kasi'\n OR status = 'Proses Kasubag')\", null, false);\n $this->db->where('status_delete', 0);\n\n $hasil = $this->db->get();\n return $hasil;\n }", "title": "" }, { "docid": "c7ceae6c3919c5df22e4a650bcf9c638", "score": "0.59447896", "text": "public function get_total_iuran_wajib_by_pencarian($cari){\n $cari = str_replace('-',' ',$cari);\n $query = $this->db->query(\"SELECT *\n FROM iuran_wajib WHERE iuran_wajib.id_anggota= ANY(\n SELECT id_anggota FROM anggota where nama like '%$cari%')\");\n print_r($query->result_array());\n $total = $this->db->query(\"SELECT SUM(jumlah_iuran_wajib) AS total_iuran_wajib\n FROM iuran_wajib WHERE iuran_wajib.id_anggota= ANY(\n SELECT id_anggota FROM anggota where nama like '%$cari%' \n AND status='aktif')\")->row()->total_iuran_wajib;\n //$total = $this->db->query(\"SELECT SUM(jumlah_iuran_wajib) as total_iuran_wajib \n //FROM iuran_wajib \")->row()->total_iuran_wajib;\n echo $total;\n //exit();\n //exit();\n if(empty($total))\n return 0;\n return $total;\n \n }", "title": "" }, { "docid": "6c07a89282ebad4cab96504e0f026da3", "score": "0.59070045", "text": "function totalpot($id_Spm)\r\n {\r\n $sql= mysql_query(\"SELECT SUM(NilaiPotongan) AS total FROM potonganspm\r\n WHERE id_Spm = '$id_Spm'\");\r\n $r = mysql_fetch_array($sql);\r\n return $r[total];\r\n }", "title": "" }, { "docid": "de65d579667cc69b24dc3d82bec31543", "score": "0.58983016", "text": "public function sum_cari_guru($keySearch)\n\t{\n\t\t$this->db->select('guru.namaDepan,guru.namaBelakang,guru.id as guruID,guru.alamat,guru.noKontak,guru.biografi,pengguna.id as penggunaID,pengguna.namaPengguna,pengguna.regTime,pengguna.eMail');\n\t\t$this->db->join('tb_pengguna pengguna','guru.penggunaID = pengguna.id');\n\t\t$this->db->like('guru.namaDepan',$keySearch);\n\t\t$this->db->or_like('guru.namaBelakang',$keySearch);\n\t\t$this->db->or_like('pengguna.namaPengguna',$keySearch);\n\t\t$this->db->where('pengguna.status', 1);\n\t\t$this->db->where('guru.status', 1);\n\t\treturn $this->db->get('tb_guru guru')->num_rows();\n\t}", "title": "" }, { "docid": "b99d69dcc9471d0bbab0d0d2a5c9816f", "score": "0.5892082", "text": "function kritik_saran()\n\t\t{\n\t\t\t$table = 'kritik_saran';\n\t\t\t$column = array('kritik_saran_id','kritik_saran_nama','kritik_saran_judul','kritik_saran_tanggal');\n\t\t\t$order = array('kritik_saran_id' => 'asc');\n\t\t\t\n\t\t\t$this->db->from($table);\n\t\t\t$i = 0;\n\t\t\tforeach ($column as $item) \n\t\t\t{\n\t\t\t\tif(isset($_POST['search']['value'])){\n\t\t\t\t\t($i===0) ? $this->db->like($item, $_POST['search']['value']) : $this->db->or_like($item, $_POST['search']['value']);\n\t\t\t\t}\n\t\t\t\t$column[$i] = $item;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\tif(isset($_POST['order']))\n\t\t\t{\n\t\t\t\t$this->db->order_by($column[$_POST['order']['0']['column']], $_POST['order']['0']['dir']);\n\t\t\t} \n\t\t\telse if(isset($order))\n\t\t\t{\n\t\t\t\t$order = $order;\n\t\t\t\t$this->db->order_by(key($order), $order[key($order)]);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "d6236ab106e6b6ac42f0d0bbd4bd09e3", "score": "0.58804506", "text": "function cekSpp($tingkat, $tahun){\n $this->db->select('*')\n ->from('spp')\n ->where('tingkat',$tingkat)\n ->where('tahun',$tahun);\n return $this->db->get()->row();\n }", "title": "" }, { "docid": "3e4fa3f570f0be2a636e35e0dbe89f0c", "score": "0.58613074", "text": "function get_listsiswavs($kelas,$jurusan){\n if (NULL !==$kelas AND NULL !==$jurusan ){\n $this->db->where(array('kelas'=>$kelas,'jurusan'=>$jurusan));\n }\n $q=$this->db->get('data_siswa');\n return $q;\n }", "title": "" }, { "docid": "c69e4b4d0f8fbbd1046aed6d1d966300", "score": "0.58559453", "text": "public function list_permohonan_validasi_kemenag()\n {\n $this->db->select('permohonan_ptsp.*, layanan_ptsp.nama_layanan');\n $this->db->from('permohonan_ptsp');\n $this->db->join('layanan_ptsp', 'permohonan_ptsp.id_layanan = layanan_ptsp.id_layanan', 'INNER');\n $this->db->where('permohonan_ptsp.id_pemohon', $this->session->userdata('id_pemohon'));\n $this->db->where('permohonan_ptsp.status_delete', 0);\n $this->db->where(\"(permohonan_ptsp.status = 'Validasi Kemenag'\n OR permohonan_ptsp.status = 'Proses BO'\n OR permohonan_ptsp.status = 'Proses Tim Teknis'\n OR permohonan_ptsp.status = 'Proses Kasi'\n OR permohonan_ptsp.status = 'Proses Kasubag')\", null, false);\n $this->db->order_by('permohonan_ptsp.id_permohonan_ptsp', 'desc');\n\n $hasil = $this->db->get();\n return $hasil;\n }", "title": "" }, { "docid": "51e94ff4c583241083735742e36f1012", "score": "0.5852171", "text": "public static function angkaKontakSampaiKemarin(){\n\t\t// ===================================================================\n\t\t//\n\t\t// kita hitung dulu jumlah pasien yang punya nomor asuransi bpjs\n\t\t// yang termsuk pengantar yang sudah di masukkan pcare_submit\n\t\t// yang termsuk sms_kontaks yang sudah di sms yang dimasukkan di pcare_submit\n\t\t// yang termsuk pasien bpjs yang mengunakan Pembayaran non bpjs\n\t\t// yang termsuk pasien bpjs yang mengunakan Pembayaran bpjs\n\n\t\t// Untuk menghitung berapa pasien yang sudah masuk angka kontak kita, \n\t\t// ===================================================================\n\n\t\t$tahunBulan = date('Y-m');\n\t\t$hari_ini = date('Y-m-d 00:00:00');\n\n\t\t$query = \"SELECT DISTINCT count(*) as jumlah FROM pasiens \";\n\t\t// kita hitung dulu jumlah pasien yang punya nomor asuransi bpjs\n\t\t$query .= \"WHERE nomor_asuransi_bpjs is not null \";\n\t\t// yang termsuk pengantar yang sudah di masukkan pcare_submit\n\t\t$query .= \"AND (id in( Select pengantar_id from pengantar_pasiens where created_at between '{$tahunBulan}-01' and '{$hari_ini}' and pcare_submit = 1 )\";\n\t\t// yang termsuk sms_kontaks yang sudah di sms yang dimasukkan di pcare_submit\n\t\t$query .= \"OR id in( Select pasien_id from sms_kontaks where created_at between '{$tahunBulan}-01' and '{$hari_ini}' and pcare_submit = 1 )\";\n\t\t// yang termsuk pasien bpjs yang mengunakan Pembayaran non bpjs\n\t\t$query .= \"OR id in( Select px.pasien_id from kunjungan_sakits as ks join periksas as px on px.id = ks.periksa_id where ks.created_at between '{$tahunBulan}-01' and '{$hari_ini}' and ks.pcare_submit = 1 ) \";\n\t\t// yang termsuk pasien bpjs yang mengunakan Pembayaran bpjs\n\t\t$query .= \"OR id in( Select pasien_id from periksas as prx join asuransis as asu on asu.id = prx.asuransi_id where prx.tipe_asuransi_id = 5 and prx.created_at between '{$tahunBulan}-01' and '{$hari_ini}' )) \";\n\t\t// Sehingga kita bisa mendapat angka kontak saat ini\n\t\t$query .= \"and tenant_id = \" . session()->get('tenant_id') . \" \";\n\t\treturn DB::select($query)[0]->jumlah;\n\t}", "title": "" }, { "docid": "dff0a98bd5d22ccff81761d23eece49d", "score": "0.5841979", "text": "function cost_chart_filter_tanggal($device, $tanggal){\n $query = $this->db->query(\"SELECT dev_bill_hour as pm,\n dev_loc as loc,\n concat(updated_hour,':','00') as jam, \n sum(bill_r_hour) as cost_r, \n sum(bill_s_hour) as cost_s, \n sum(bill_t_hour) as cost_t\n FROM billing_hour\n JOIN devices ON dev_bill_hour = dev\n WHERE dev_bill_hour = '$device' AND DATE(updated_date_hour) = '$tanggal'\n GROUP BY updated_hour\");\n // COLLATE utf8mb4_unicode_ci \n if($query->num_rows() > 0){\n foreach($query->result() as $data){\n $hasil[] = $data;\n }\n return $hasil;\n }\n }", "title": "" }, { "docid": "a1fc72084ecb84a007f3ea8125f61226", "score": "0.58407015", "text": "public function laporanpendapatanpertahun($tahun)\n {\n // bulan\n // UNION SELECT '02' AS\n // bulan\n // UNION SELECT '03' AS\n // bulan\n // UNION SELECT '04' AS\n // bulan\n // UNION SELECT '05' AS\n // bulan\n // UNION SELECT '06' AS\n // bulan\n // UNION SELECT '07'AS\n // bulan\n // UNION SELECT '08'AS\n // bulan\n // UNION SELECT '09' AS\n // bulan\n // UNION SELECT '10' AS\n // bulan\n // UNION SELECT '11' AS\n // bulan\n // UNION SELECT '12' AS\n // bulan\n // ) AS m LEFT JOIN (SELECT * FROM transaksi WHERE YEAR(tanggal)=$tahun )as p ON MONTHNAME(p.tanggal) = MONTHNAME(STR_TO_DATE((m.bulan), '%m'))\n // LEFT JOIN (select *,sum(sub_total) as sub_totals from transaksi_service group by id_transaksi) as s ON p.id_transaksi = s.id_transaksi \n // LEFT JOIN (select *,sum(sub_total) as sub_totals from transaksi_penjualan group by id_transaksi)as pe ON p.id_transaksi = pe.id_transaksi\n \n // GROUP BY YEAR(p.tanggal),m.bulan\n // ORDER by m.bulan\");\n $users = DB::select(\"SELECT if(MONTHNAME(STR_TO_DATE((A.bulan), '%m'))is null, 0,MONTHNAME(STR_TO_DATE((A.bulan), '%m'))) as bulan,\n if(jasa_service is null, 0,jasa_service) as service,if(spareparts is null, 0,spareparts) as penjualan,if(total is null,0, total) as total\n FROM (SELECT 1 AS bulan\n UNION SELECT 2 AS bulan\n UNION SELECT 3 AS bulan\n UNION SELECT 4 AS bulan\n UNION SELECT 5 AS bulan\n UNION SELECT 6 AS bulan\n UNION SELECT 7 AS bulan\n UNION SELECT 8 AS bulan\n UNION SELECT 9 AS bulan\n UNION SELECT 10 AS bulan\n UNION SELECT 11 AS bulan\n UNION SELECT 12 AS bulan\n ) AS A\n LEFT JOIN (SELECT bulan, MIN(jasa_service) AS jasa_service, MIN(spareparts) AS spareparts, if(MIN(jasa_service) is null,0,(MIN(jasa_service)))+if(MIN(spareparts)is null,0,MIN(spareparts)) AS total\n FROM (SELECT MONTH(p.tanggal) AS bulan, SUM(dp.sub_total) AS jasa_service, null AS spareparts\n FROM transaksi p\n JOIN transaksi_service dp ON (dp.id_transaksi = p.id_transaksi)\n WHERE YEAR(p.tanggal) = $tahun\n AND p.status_transaksi = 'Lunas'\n GROUP BY bulan\n UNION\n SELECT MONTH(p.tanggal) AS bulan, null AS jasa_service, SUM(dpjs.sub_total) AS spareparts\n FROM transaksi p\n JOIN transaksi_penjualan dpjs ON (dpjs.id_transaksi = p.id_transaksi)\n WHERE YEAR(p.tanggal) = $tahun \n AND p.status_transaksi = 'Lunas'\n GROUP BY bulan\n ) AS T\n GROUP BY bulan\n ) AS B ON B.bulan = A.bulan\n ORDER BY A.bulan\");\n return ($users);\n }", "title": "" }, { "docid": "3d01ef14ac342a57b4e26a212b84d54d", "score": "0.5836056", "text": "function dataunitkerja()\n\t\t{\n\t\t\t$table = 'vwunit_kerja';\n\t\t\t$column = array('unit_kerja_id ','unit_kerja_nama','satuan_organisasi_nama');\n\t\t\t$order = array('unit_kerja_id' => 'asc');\n\t\t\t\n\t\t\t$this->db->from($table);\n\t\t\t$i = 0;\n\t\t\tforeach ($column as $item) \n\t\t\t{\n\t\t\t\tif(isset($_POST['search']['value'])){\n\t\t\t\t\t($i===0) ? $this->db->like($item, $_POST['search']['value']) : $this->db->or_like($item, $_POST['search']['value']);\n\t\t\t\t}\n\t\t\t\t$column[$i] = $item;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\t\n\t\t\tif(isset($_POST['order']))\n\t\t\t{\n\t\t\t\t$this->db->order_by($column[$_POST['order']['0']['column']], $_POST['order']['0']['dir']);\n\t\t\t} \n\t\t\telse if(isset($order))\n\t\t\t{\n\t\t\t\t$order = $order;\n\t\t\t\t$this->db->order_by(key($order), $order[key($order)]);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "554c62dc32a0a61803dd98921742e2e5", "score": "0.5835131", "text": "public function siswaIzinPerBulan()\n\t{\n\n\t\t$namaguru = $this->session->userdata('jeneng');\n\t\t$bulan = date('m');\n\t\t$tahun = date('Y');\n\n\t\treturn $this->db->select('tb_post.id_user')\n\t\t\t\t\t\t->where('MONTH(tanggal)', $bulan)\n\t\t\t\t\t\t->where('YEAR(tanggal)', $tahun)\n\t\t\t\t\t\t->where('ket_abs', \"Izin\")\n\t\t\t\t\t\t->from('tb_post')\n\t\t\t\t\t\t->join('tb_user_siswa', 'tb_post.id_user = tb_user_siswa.id_user', 'left')\n\t\t\t\t\t\t->count_all_results();\n\t}", "title": "" }, { "docid": "49ef34284cc8a4c65c75ee2895ddc43a", "score": "0.5831455", "text": "public function simpanumbiaya($file_name)\r\n {\r\n $no = $this->input->post('noeksternal');\r\n $waktu = $this->input->post('waktu');\r\n\r\n $bpu = $this->db->query(\"SELECT SUM(jumlah) as total from bpu where no = '$no' and waktu = '$waktu'\")->row_array();\r\n $term = $this->db->get_where('bpu',['waktu'=> $waktu, 'no'=>$no])->num_rows();\r\n\r\n $total = $this->input->post('total');\r\n $bpu = $total + $bpu['total'];\r\n $sisa = $this->input->post('sisa');\r\n $totalPengajuan = $this->input->post('totalpengajuan');\r\n\r\n $pengajuan = $this->db->get_where('pengajuan', ['waktu'=>$waktu])->row_array();\r\n\r\n if($bpu<$totalPengajuan){\r\n $data = [\r\n 'no' => $no,\r\n 'jumlah' => $total,\r\n 'tglcair' => $this->input->post('tanggal'),\r\n 'namabank' => $this->input->post('bank'),\r\n 'norek' => $this->input->post('norek'),\r\n 'namapenerima' => $this->input->post('nama'),\r\n // 'pengaju' => $this->session->userdata('ses_level'), //SALAH\r\n // 'divisi' => $this->session->userdata('ses_divisi'), //SALAH\r\n 'pengaju' => $pengajuan['pengaju'],\r\n 'divisi' => $pengajuan['divisi'],\r\n 'waktu' => $waktu,\r\n 'status' => 'Belum Di Bayar',\r\n 'persetujuan' => 'Belum Disetujui',\r\n 'jumlahbayar' => 0,\r\n 'term' => $term + 1,\r\n 'statusbpu' => $this->input->post('statusbpu'),\r\n 'fileupload' => $file_name,\r\n ];\r\n\r\n $this->db->insert('bpu', $data);\r\n return 1;\r\n } else {\r\n return 0;\r\n }\r\n }", "title": "" }, { "docid": "8ba64140f668d1fbd6b23cf7cf77cfc4", "score": "0.5822652", "text": "public function get_list_data_permohonan_selesaiKasubag()\n {\n $this->db->select('permohonan_ptsp.*, layanan_ptsp.nama_layanan, pemohon.nama');\n $this->db->from('permohonan_ptsp');\n $this->db->join('layanan_ptsp', 'permohonan_ptsp.id_layanan = layanan_ptsp.id_layanan', 'INNER');\n $this->db->join('pemohon', 'permohonan_ptsp.id_pemohon = pemohon.id_pemohon', 'INNER');\n $this->db->where(\"(permohonan_ptsp.id_kasubag != 'null')\");\n $this->db->where(\"(permohonan_ptsp.status = 'Selesai')\");\n $this->db->order_by('permohonan_ptsp.id_permohonan_ptsp', 'desc');\n\n return $this->db->get();\n }", "title": "" }, { "docid": "ff2c748707b36251078b3701f74932db", "score": "0.5818066", "text": "function nilai_peringkat_siswa(){\n\t\t$p=$this->db->query(\"SELECT PILIHAN_AKTIF,PT_AKTIF FROM CONFIG WHERE ID_CONFIG='1'\")->row();\n\t\t$data['pilihan']=$pilihan=$p->PILIHAN_AKTIF;\n\t\t$ptn=$p->PT_AKTIF;\n\t\tif($_POST == null){\n\t\t\t$data['siswa']=$this->db->query(\"SELECT SISWA.NOMOR_PENDAFTARAN,NAMA_SISWA,NILAI FROM(\n\t\t\t\t\t\t\t\t\tSELECT RANKING_SISWA.NOMOR_PENDAFTARAN,\n\t\t\t\t\t\t\t\t\t ((AVG((JUMLAH_SISWA_SEKOLAH-RANKING_SEKOLAH)/JUMLAH_SISWA_SEKOLAH*100))+\n\t\t\t\t\t\t\t\t\t (AVG((JUMLAH_SISWA_SEKOLAH-RANKING_SEKOLAH_UN)/JUMLAH_SISWA_SEKOLAH*100))+\n\t\t\t\t\t\t\t\t\t (AVG((JUMLAH_SISWA_JURUSAN-RANKING_JURUSAN)/JUMLAH_SISWA_JURUSAN*100))+\n\t\t\t\t\t\t\t\t\t (AVG((JUMLAH_SISWA_JURUSAN-RANKING_JURUSAN_UN)/JUMLAH_SISWA_JURUSAN*100)))/4 NILAI\n\t\t\t\t\t\t\t\t\t FROM RANKING_SISWA\n\t\t\t\t\t\t\t\t\tWHERE RANKING_SISWA.RANKING_SEKOLAH > 0\n\t\t\t\t\t\t\t\t\tGROUP BY NOMOR_PENDAFTARAN) RS\n\t\t\t\t\t\t\t\t\tRIGHT JOIN SISWA ON SISWA.NOMOR_PENDAFTARAN = RS.NOMOR_PENDAFTARAN\n\t\t\t\t\t\t\t\t\tLEFT JOIN (\n\t\t\t\t\t\t\t\t\tSELECT DISTINCT NOMOR_PENDAFTARAN,URUTAN_PTN FROM PILIHAN\n\t\t\t\t\t\t\t\t\t) PILIHAN\n\t\t\t\t\t\t\t\t\tON PILIHAN.NOMOR_PENDAFTARAN=SISWA.NOMOR_PENDAFTARAN\n\t\t\t\t\t\t\t\t\tWHERE URUTAN_PTN='\".$ptn.\"'\n\t\t\t\t\t\t\t\t\tORDER BY NOMOR_PENDAFTARAN ASC\" )->result_array();\n\t\t\t$this->load->view('admin/header',$data);\t\t\t\t\t\n\t\t\t$this->load->view('admin/menu');\t\t\t\t\n\t\t\t$this->load->view('yudisium/penilaian/nilai_peringkat_siswa');\n\t\t\t$this->load->view('admin/footer');\n\t\t}else{\n\t\t\t$rs=$this->db->query(\"UPDATE NILAI_YUDISIUM AA SET AA.NILAI_RANKING=(\n\t\t\t\t\t\t\tSELECT NILAI FROM (\n\t\t\t\t\t\t\tSELECT SISWA.NOMOR_PENDAFTARAN,NAMA_SISWA,NILAI FROM(\n\t\t\t\t\t\t\t\t\tSELECT RANKING_SISWA.NOMOR_PENDAFTARAN,\n\t\t\t\t\t\t\t\t\t ((AVG((JUMLAH_SISWA_SEKOLAH-RANKING_SEKOLAH)/JUMLAH_SISWA_SEKOLAH*100))+\n\t\t\t\t\t\t\t\t\t (AVG((JUMLAH_SISWA_SEKOLAH-RANKING_SEKOLAH_UN)/JUMLAH_SISWA_SEKOLAH*100))+\n\t\t\t\t\t\t\t\t\t (AVG((JUMLAH_SISWA_JURUSAN-RANKING_JURUSAN)/JUMLAH_SISWA_JURUSAN*100))+\n\t\t\t\t\t\t\t\t\t (AVG((JUMLAH_SISWA_JURUSAN-RANKING_JURUSAN_UN)/JUMLAH_SISWA_JURUSAN*100)))/4 NILAI\n\t\t\t\t\t\t\t\t\t FROM RANKING_SISWA\n\t\t\t\t\t\t\t\t\tWHERE RANKING_SISWA.RANKING_SEKOLAH > 0\n\t\t\t\t\t\t\t\t\tGROUP BY NOMOR_PENDAFTARAN) RS\n\t\t\t\t\t\t\t\t\tRIGHT JOIN SISWA ON SISWA.NOMOR_PENDAFTARAN = RS.NOMOR_PENDAFTARAN\n\t\t\t\t\t\t\t\t\tLEFT JOIN (\n\t\t\t\t\t\t\t\t\tSELECT DISTINCT NOMOR_PENDAFTARAN,URUTAN_PTN FROM PILIHAN\n\t\t\t\t\t\t\t\t\t) PILIHAN\n\t\t\t\t\t\t\t\t\tON PILIHAN.NOMOR_PENDAFTARAN=SISWA.NOMOR_PENDAFTARAN\n\t\t\t\t\t\t\t\t\tWHERE URUTAN_PTN='\".$ptn.\"'\n\t\t\t\t\t\t\t\t\tORDER BY NOMOR_PENDAFTARAN ASC\n\t\t\t\t\t\t\t ) BB\n\t\t\t\t\t\t\t WHERE AA.NOMOR_PENDAFTARAN=BB.NOMOR_PENDAFTARAN\n\t\t\t\t\t\t\t )\");\n\t\t\tif($rs){\t\t\t\t \n\t\t\t\t$this->session->set_flashdata('message',array(\"error\",\"Data nilai peringkat siswa berhasil disimpan.\"));\n\t\t\t\tredirect('yudisium/penilaian/nilai_peringkat_siswa');\n\t\t\t}\n\t\t}\t\n\t}", "title": "" }, { "docid": "8b9a2d36cb86161c62556c9e0cfa6ed1", "score": "0.58169544", "text": "public function get_adk_konversi($filter, $kppn) {\t\t\r\n Session::get('id_user');\t\t\t\t\r\n $sql = \"SELECT SPAN_PMRT.INVOICE_NUM, NETT_AMOUNT INVOICE_AMOUNT, INVOICE_DATE, SUBSTR(PMRT_FILE_NAME,3,29) PMRT_FILE_NAME, STATUS_UPLOAD, ZIP_FILE_NAME,\r\n\t\t\t\tSUBSTR (ZIP_FILE_NAME,8,8) UPLOAD_DATE, KD_SATKER, SPAN_PMRT.DURASI, KDKPPN, URAIAN, DELETE_FLAG\r\n\t\t\t\tFROM \"\r\n . $this->_table . \" , \"\r\n\t\t\t\t. $this->_table1 . \" , \r\n\t\t\t\t(SELECT INVOICE_NUM ,\r\n\t\t\t\t\t MAX(SUBSTR(PMRT_FILE_NAME,16,11))DURASI\r\n\t\t\t\t\tFROM SPAN_PMRT\r\n\t\t\t\t\tWHERE PMRT_FILE_NAME IS NOT NULL\r\n\t\t\t\t\tAND STATUS_UPLOAD IS NULL\t\r\n\t\t\t\t\tAND TO_CHAR(UPLOAD_DATE,'YYYY') = '2015'\t\t\t\t\t\r\n\t\t\t\t\tAND NETT_AMOUNT NOT IN (1,2,3,4,5)\r\n\t\t\t\t\t \".$kppn.\" \r\n\t\t\t\t\tGROUP BY INVOICE_NUM\r\n\t\t\t\t) C\r\n\t\t\t\tWHERE 1=1\r\n\t\t\t\tAND SPAN_PMRT.JENDOK = T_JENDOK.KDJENDOK\r\n\t\t\t\tAND PMRT_FILE_NAME IS NOT NULL\r\n\t\t\t\tAND STATUS_UPLOAD IS NULL\r\n\t\t\t\tAND NETT_AMOUNT NOT IN (1,2,3,4,5)\r\n\t\t\t\tAND SUBSTR(SPAN_PMRT.PMRT_FILE_NAME,16,11)=C.DURASI\r\n\t\t\t\tAND SPAN_PMRT.INVOICE_NUM=C.INVOICE_NUM\r\n\t\t\t\tAND TO_CHAR(UPLOAD_DATE,'YYYY') = TO_CHAR(SYSDATE,'YYYY')\r\n\t\t\t\tAND DELETE_FLAG = 0\r\n\t\t\t\t\"\r\n\r\n ;\r\n\r\n $no = 0;\r\n foreach ($filter as $filter) {\r\n $sql .= \" AND \" . $filter;\r\n }\r\n\t\t $sql .= \" ORDER BY KDKPPN, SUBSTR (ZIP_FILE_NAME,8,8) ASC\";\r\n //var_dump ($sql);\r\n $result = $this->db->select($sql);\r\n\t\t//var_dump ($result);\r\n $data = array();\r\n foreach ($result as $val) {\r\n $d_data = new $this($this->registry);\r\n $d_data->set_invoice_num($val['INVOICE_NUM']);\r\n $d_data->set_invoice_amount($val['INVOICE_AMOUNT']);\r\n\t\t\t$d_data->set_invoice_date ($val['INVOICE_DATE']);\r\n $d_data->set_conversion_date(date(\"d-M-Y\", strtotime($val['UPLOAD_DATE'])));\r\n $d_data->set_file_name($val['PMRT_FILE_NAME']); \r\n $d_data->set_file_name_zip($val['ZIP_FILE_NAME']);\r\n $d_data->set_satker($val['KD_SATKER']);\r\n $d_data->set_durasi($val['DURASI']);\r\n\t\t\t$d_data->set_jendok($val['URAIAN']);\r\n\t\t\t$d_data->set_kppn($val['KDKPPN']);\r\n $d_data->set_jml_invoice($val['JML_INVOICE']);\r\n $d_data->set_jml_pmrt($val['JML_PMRT']);\r\n $d_data->set_jml_nilai_inv($val['JML_NILAI_INV']);\r\n $d_data->set_delete_flag($val['DELETE_FLAG']);\r\n $data[] = $d_data;\r\n }\r\n return $data;\r\n }", "title": "" }, { "docid": "4a9f3aec0d3efdef66f561576729dd27", "score": "0.58130217", "text": "public function RekapPerUnitKerjaPerBulan($unit_kerja, $month, $year){\n $str_where = \"kdkab = '$unit_kerja'\";\n\n if($unit_kerja==111) $str_where = \"kdesl='2' || kdesl='3'\";\n\n $sql = \"SELECT u.id, u.name, u.nip_baru, u.kdorg,\n ckp_log_bulanan.target_kuantitas, \n ckp_log_bulanan.realisasi_kuantitas, \n ckp_log_bulanan.kualitas, \n ckp_log_bulanan.kecepatan, \n ckp_log_bulanan.ketepatan, \n ckp_log_bulanan.ketuntasan, \n ckp_log_bulanan.penilaian_pimpinan\n \n FROM `users` u \n LEFT JOIN ckp_log_bulanan ON ckp_log_bulanan.user_id=u.email \n AND ckp_log_bulanan.month=$month \n AND ckp_log_bulanan.year=$year \n \n WHERE $str_where\n ORDER by kdorg\";\n \n $result = DB::select(DB::raw($sql));\n return $result;\n }", "title": "" }, { "docid": "6b83706406e7e351328d2401de487b05", "score": "0.58111614", "text": "function get_peminjam_belum() {\n\t\t$this->db->select('*');\n\t\t$this->db->from('v_hitung_pinjaman');\n\t\t$this->db->where('lunas','Belum');\n\n\t\tif(isset($_REQUEST['tgl_dari']) && isset($_REQUEST['tgl_samp'])) {\n\t\t\t$tgl_dari = $_REQUEST['tgl_dari'];\n\t\t\t$tgl_samp = $_REQUEST['tgl_samp'];\n\t\t} else {\n\t\t\t$tgl_dari = date('Y') . '-01-01';\n\t\t\t$tgl_samp = date('Y') . '-12-31';\n\t\t}\n\t\t$this->db->where('DATE(tgl_pinjam) >= ', ''.$tgl_dari.'');\n\t\t$this->db->where('DATE(tgl_pinjam) <= ', ''.$tgl_samp.'');\n\n\t\t$query = $this->db->get();\n\t\treturn $query->num_rows();\n\t}", "title": "" }, { "docid": "2e01edf0e6c4c6a772d27cea58ef36d1", "score": "0.58092064", "text": "public function benefitSalary()\n {\n $query = $this->db->query(\"SELECT SUM(besar_gaji) AS jumlah FROM mdh_pegawai\")->result();\n return $query;\n }", "title": "" }, { "docid": "2d4a18e7f5734b88a4aa2b3ae1d23802", "score": "0.5800864", "text": "function get_peminjam_aktif() {\n\t\t$this->db->select('*');\n\t\t$this->db->from('v_hitung_pinjaman');\n\t\t\n\t\tif(isset($_REQUEST['tgl_dari']) && isset($_REQUEST['tgl_samp'])) {\n\t\t\t$tgl_dari = $_REQUEST['tgl_dari'];\n\t\t\t$tgl_samp = $_REQUEST['tgl_samp'];\n\t\t} else {\n\t\t\t$tgl_dari = date('Y') . '-01-01';\n\t\t\t$tgl_samp = date('Y') . '-12-31';\n\t\t}\n\t\t$this->db->where('DATE(tgl_pinjam) >= ', ''.$tgl_dari.'');\n\t\t$this->db->where('DATE(tgl_pinjam) <= ', ''.$tgl_samp.'');\n\n\t\t$query = $this->db->get();\n\t\treturn $query->num_rows();\n\t}", "title": "" }, { "docid": "d4eef276f2fee85e3a034f1c5271f25e", "score": "0.58005846", "text": "function kwh_chart_filter_tanggal($device, $tanggal){\n $query = $this->db->query(\"SELECT dev_bill_hour as pm,\n dev_loc as loc,\n concat(updated_hour,':','00') as jam, \n sum(kwh_r) as kwh_r, \n sum(kwh_s) as kwh_s, \n sum(kwh_t) as kwh_t\n FROM billing_hour\n JOIN devices ON dev_bill_hour = dev\n WHERE dev_bill_hour = '$device' AND DATE(updated_date_hour) = '$tanggal'\n GROUP BY updated_hour\");\n //COLLATE utf8mb4_unicode_ci\n if($query->num_rows() > 0){\n foreach($query->result() as $data){\n $hasil[] = $data;\n }\n return $hasil;\n }\n }", "title": "" }, { "docid": "d7d8712ab8de4f7ee64d6186a9b2cc80", "score": "0.57983613", "text": "function labarugi_search($buku_periode, $buku_tglawal, $buku_tglakhir, $buku_bulan, $buku_tahun, $buku_akun, $start,$end){\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//AKUN LEVEL 1\r\n\t\t\t$sql = \"SELECT\t\r\n\t\t\t\t\t\tA.akun_id, A.akun_saldo, A.akun_kode, A.akun_jenis, A.akun_nama, A.akun_level,\r\n\t\t\t\t\t\tB.akun_id as akun_parent_id, B.akun_nama as akun_parent, B.akun_kode as akun_parent_kode\r\n\t\t\t\t\tFROM \takun A, akun B\r\n\t\t\t\t\tWHERE \tA.akun_level=2 \r\n\t\t\t\t\t\t\tAND A.\takun_parent_kode=B.akun_kode\r\n\t\t\t\t\t\t\tAND A.akun_jenis='R/L'\r\n\t\t\t\t\t\t\tAND B.akun_level=1\r\n\t\t\t\t\tORDER by A.akun_parent_kode ASC\";\r\n\t\t\t\t\t\r\n\t\t\t$master=$this->db->query($sql);\r\n\t\t\t$nbrows=$master->num_rows();\r\n\r\n\t\t\t$saldo=0;\r\n\t\t\t$i=0;\r\n\t\t\t$labarugi_tot = 0;\r\n\t\t\t$labarugi_tot_periode = 0;\r\n\t\t\t\r\n\t\t\tforeach($master->result() as $row){\r\n\t\t\t\t\r\n\t\t\t\t//s/d bulan ini\r\n\t\t\t\t$sql = \"SELECT \r\n\t\t\t\t\t\t\tA.akun_kode, sum(B.buku_debet) as debet, sum(B.buku_kredit) as kredit\r\n\t\t\t\t\t\tFROM buku_besar B, akun A\r\n\t\t\t\t\t\tWHERE \r\n\t\t\t\t\t\t\tB.buku_akun = A.akun_id AND\r\n\t\t\t\t\t\t\treplace(A.akun_kode,'.','') like '\".str_replace(\".\",\"\",$row->akun_kode).\"%' AND\r\n\t\t\t\t\t\t\tB.buku_tanggal >= (select setup_periode_awal from akun_setup limit 1) and\r\n\t\t\t\t\t\t\tB.buku_tanggal <= (select setup_periode_akhir from akun_setup limit 1) \";\r\n\t\t\t\t\t\t\t/*AND substring(replace(A.akun_kode,'.',''), 3) like '\".substr(str_replace(\".\",\"\",$row->akun_kode), 2).\"%' \";*/\r\n\t\t\t\t\t\t//substring(x, 3) (mysql) & substr(x, 2) (php) --> karena 2 digit awal tidak dipakai (menunjukkan kode divisi)\r\n\t\t\t\tif($buku_periode==\"bulan\"){\r\n\t\t\t\t\t$sql.=\"\tAND date_format(buku_tanggal,'%Y-%m')<='\".$buku_tahun.\"-\".$buku_bulan.\"'\";\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//print_r($sql);\r\n\t\t\t\t\r\n\t\t\t\t//$sql.=\"GROUP BY A.akun_kode\";\r\n\t\t\t\t//$sql.=\"\tORDER BY A.akun_kode ASC\";\r\n\t\t\t\t\r\n\t\t\t\t//GET SALDO BEFORE\r\n\t\t\t\t$data[$i][\"labarugi_saldo\"]=0;\r\n\t\t\t\t\r\n\t\t\t\t$sqlsaldo = \"SELECT\r\n\t\t\t\t\t\t\t\t\tA.akun_kode,sum(A.akun_debet) as debet,sum(A.akun_kredit) as kredit, A.akun_saldo\r\n\t\t\t\t\t\t\t\tFROM vu_akun A\r\n\t\t\t\t\t\t\t\tWHERE \r\n\t\t\t\t\t\t\t\t\treplace(A.akun_kode,'.','') like '\".str_replace(\".\",\"\",$row->akun_kode).\"%' \";\r\n\t\t\t\t\t\t\t\t\t/*substring(replace(A.akun_kode,'.',''), 3) like '\".substr(str_replace(\".\",\"\",$row->akun_kode), 2).\"%' \";*/\r\n\t\t\t\t\t\t\t\t\t/*replace(A.akun_kode,'.','') like '\".str_replace(\".\",\"\",$row->akun_kode).\"%'\";*/\r\n\t\t\t\t//$sqlsaldo.=\" GROUP BY A.akun_kode \";\r\n\t\t\t\t$sqlsaldo.=\"\tORDER BY A.akun_kode ASC \";\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t$rssaldo=$this->db->query($sqlsaldo);\r\n\t\t\t\tif($rssaldo->num_rows()){\r\n\t\t\t\t\t$rowsaldo=$rssaldo->row();\r\n\t\t\t\t\tif($rowsaldo->akun_saldo=='Debet'){\r\n\t\t\t\t\t\t$data[$i][\"labarugi_saldo\"]= ($rowsaldo->debet-$rowsaldo->kredit);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t$data[$i][\"labarugi_saldo\"]= ($rowsaldo->kredit-$rowsaldo->debet);\r\n\t\t\t\t\t}\r\n\t\t\t\t//print_r($sqlsaldo);\r\n\t\t\t\t}\r\n\t\t\t\t$labarugi_tot += ($rowsaldo->kredit - $rowsaldo->debet);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//----->\r\n\t\t\t\t\t\r\n\t\t\t\t$isi=$this->db->query($sql);\r\n\t\t\t\tif($isi->num_rows()){\r\n\t\t\t\t\t$rowisi=$isi->row();\r\n\t\t\t\t\r\n/*\t\t\t\t\tprint_r($sql);\r\n\t\t\t\t\tprint_r(', akun_kode: '); print_r($rowisi->akun_kode);\r\n\t\t\t\t\tprint_r(', debet: '); print_r($rowisi->debet);\r\n\t\t\t\t\tprint_r(', kredit: '); print_r($rowisi->kredit);\t\t\t\t\t\r\n*/\t\t\t\t\r\n\t\t\t\t\t$data[$i][\"labarugi_akun\"]=$row->akun_id;\r\n\t\t\t\t\t$data[$i][\"labarugi_jenis\"]=$row->akun_parent;\r\n\t\t\t\t\t$data[$i][\"labarugi_jenis_id\"]=$row->akun_parent_id;\r\n\t\t\t\t\t$data[$i][\"labarugi_akun_kode\"]=$row->akun_kode;\r\n\t\t\t\t\t$data[$i][\"labarugi_akun_nama\"]=$row->akun_nama;\r\n\t\r\n\t\t\t\t\tif($row->akun_saldo=='Debet'){\r\n\t\t\t\t\t\t$data[$i][\"labarugi_saldo\"]+= ($rowisi->debet-$rowisi->kredit);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t$data[$i][\"labarugi_saldo\"]+= ($rowisi->kredit-$rowisi->debet);\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$data[$i][\"labarugi_akun\"]=$row->akun_id;\r\n\t\t\t\t\t$data[$i][\"labarugi_jenis\"]=$row->akun_parent;\r\n\t\t\t\t\t$data[$i][\"labarugi_jenis_id\"]=$row->akun_parent_id;\r\n\t\t\t\t\t$data[$i][\"labarugi_akun_kode\"]=$row->akun_kode;\r\n\t\t\t\t\t$data[$i][\"labarugi_akun_nama\"]=$row->akun_nama;\r\n\t\t\t\t\t$data[$i][\"labarugi_saldo\"]=0;\r\n\t\t\t\t}\r\n\t\t\t\t$labarugi_tot += ($rowisi->kredit - $rowisi->debet);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t//bulan ini\r\n\t\t\t\t$sql = \"SELECT \r\n\t\t\t\t\t\t\tA.akun_kode, sum(B.buku_debet) as debet, sum(B.buku_kredit) as kredit\r\n\t\t\t\t\t\tFROM buku_besar B, akun A\r\n\t\t\t\t\t\tWHERE \r\n\t\t\t\t\t\t\tB.buku_akun = A.akun_id AND\r\n\t\t\t\t\t\t\treplace(A.akun_kode,'.','') like '\".str_replace(\".\",\"\",$row->akun_kode).\"%' AND\r\n\t\t\t\t\t\t\tB.buku_tanggal >= (select setup_periode_awal from akun_setup limit 1) AND\r\n\t\t\t\t\t\t\tB.buku_tanggal <= (select setup_periode_akhir from akun_setup limit 1) \";\r\n\t\t\t\t\t\t\t/*AND substring(replace(A.akun_kode,'.',''), 3) like '\".substr(str_replace(\".\",\"\",$row->akun_kode), 2).\"%' \";*/\r\n\t\t\t\t\t\t//substring(x, 3) (mysql) & substr(x, 2) (php) --> karena 2 digit awal tidak dipakai (menunjukkan kode divisi)\r\n\t\t\t\tif($buku_periode==\"bulan\"){\r\n\t\t\t\t\t$sql.=\"\tAND date_format(buku_tanggal,'%Y-%m')='\".$buku_tahun.\"-\".$buku_bulan.\"'\";\r\n\t\t\t\t}\r\n\t\t\t\t//$sql.=\"GROUP BY A.akun_kode\";\r\n\t\t\t\t//$sql.=\"\tORDER BY A.akun_kode ASC\";\r\n\t\t\t\t\r\n\t\t\t\t//print_r($sql);\r\n\t\t\t\t\t\t\r\n\t\t\t\t$isi=$this->db->query($sql);\r\n\t\t\t\tif($isi->num_rows()){\r\n\t\t\t\t\t$rowisi=$isi->row();\r\n\t\t\t\t\tif($row->akun_saldo=='Debet')\r\n\t\t\t\t\t\t$data[$i][\"labarugi_saldo_periode\"]= ($rowisi->debet-$rowisi->kredit);\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\t$data[$i][\"labarugi_saldo_periode\"]= ($rowisi->kredit-$rowisi->debet);\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$data[$i][\"labarugi_saldo_periode\"]=0;\r\n\t\t\t\t}\r\n\t\t\t\t$labarugi_tot_periode += ($rowisi->kredit - $rowisi->debet);\r\n\t\t\t\t\r\n\t\t\t\t$i++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\t\t$data[$i][\"labarugi_akun\"]\t\t\t= '';\r\n\t\t\t\t\t$data[$i][\"labarugi_jenis\"]\t\t\t= '';\r\n\t\t\t\t\t$data[$i][\"labarugi_jenis_id\"]\t\t= '';\r\n\t\t\t\t\t$data[$i][\"labarugi_akun_kode\"]\t\t= '';\r\n\t\t\t\t\t$data[$i][\"labarugi_akun_nama\"]\t\t= \"<b>TOTAL LABA / RUGI :</b>\";\r\n\t\t\t\t\t$data[$i][\"labarugi_saldo_periode\"]\t= $labarugi_tot_periode;\r\n\t\t\t\t\t$data[$i][\"labarugi_saldo\"]\t\t\t= $labarugi_tot;\r\n\t\t\t\t\t\r\n\t\t\tif($nbrows>0){\r\n\t\t\t\t$jsonresult = json_encode($data);\r\n\t\t\t\treturn '({\"total\":\"'.$nbrows.'\",\"results\":'.$jsonresult.'})';\r\n\t\t\t} else {\r\n\t\t\t\treturn '({\"total\":\"0\", \"results\":\"\"})';\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "2cfc56648969375bb549f77800df99bf", "score": "0.57964337", "text": "function cekPMK($nip)\n\t{\n\t\t$sql=\"SELECT IF(ISNULL(old_masa_kerja_tahun),FALSE,TRUE ) AND IF(ISNULL(old_masa_kerja_bulan),FALSE,TRUE) AND \n IF(ISNULL(old_gaji_pokok),FALSE,TRUE ) AND IF(ISNULL(old_tmt_gaji),FALSE,TRUE) AND\n IF(ISNULL(nomor_persetujuan ),FALSE,TRUE ) AND IF(ISNULL(tanggal_persetujuan),FALSE,TRUE) AND\n IF(ISNULL(baru_masa_kerja_tahun ),FALSE,TRUE) AND IF(ISNULL(baru_masa_kerja_bulan),FALSE,TRUE) AND \t\t\t IF(ISNULL(baru_gaji_pokok ),FALSE,TRUE) AND IF(ISNULL(baru_tmt_gaji),FALSE,TRUE) AND\n IF(ISNULL(mulai_honor ),FALSE,TRUE) AND IF(ISNULL(sampai_honor),FALSE,TRUE) AND\n IF(ISNULL(tahun_honor),FALSE,TRUE) AND IF(ISNULL(bulan_honor),FALSE,TRUE) AND \n IF(ISNULL(mulai_pegawai),FALSE,TRUE) AND IF(ISNULL(sampai_pegawai),FALSE,TRUE) AND\n IF(ISNULL(tahun_pegawai),FALSE,TRUE) AND IF(ISNULL(bulan_pegawai),FALSE,TRUE) AND\n IF(ISNULL(salinan_sah ),FALSE,TRUE) AND IF(ISNULL(sk_pangkat),FALSE,TRUE) AND\n IF(ISNULL(tingkat1),FALSE,TRUE) AND IF(ISNULL(nomor_ijazah1) ,FALSE,TRUE) AND \n IF(ISNULL(tanggal_ijazah1 ),FALSE,TRUE) AND IF(ISNULL(tingkat2) ,FALSE,TRUE) AND\n IF(ISNULL(nomor_ijazah2),FALSE,TRUE) AND IF(ISNULL(tanggal_ijazah2) ,FALSE,TRUE) AND\n IF(ISNULL(tingkat3 ),FALSE,TRUE) AND IF(ISNULL(nomor_ijazah3) ,FALSE,TRUE) AND\n IF(ISNULL(tanggal_ijazah3),FALSE,TRUE) AND IF(ISNULL(lokasi_ttd) ,FALSE,TRUE) AND\n IF(ISNULL(tanggal_ttd),FALSE,TRUE) AND IF(ISNULL(jabatan_ttd) ,FALSE,TRUE) AND\n IF(ISNULL(nama_ttd),FALSE,TRUE) AND IF(ISNULL(pangkat_ttd) ,FALSE,TRUE) AND \n IF(ISNULL(nip_ttd ),FALSE,TRUE) AS result FROM usul_pmk where nip='$nip'\";\t\n\n\t\t$query = $this->db->query($sql);\n\t\t\n\t\tif($query->num_rows() > 0)\n\t\t{\t\n\t $row = $query->row();\n\t\t\t\t\t\n\t\t if(!empty($row->result))\n\t\t\t{\n\t\t\t\t$r['response'] = TRUE;\n\t\t\t\t$r['nip'] = $nip;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$r['response'] = FALSE;\n\t\t\t\t$r['nip'] = $nip;\n\t\t\t}\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$r['response'] = FALSE;\n\t\t\t$r['nip'] = $nip;\n\t\t\t\n\t\t}\n\t\t\n\t\treturn $r;\n\t}", "title": "" }, { "docid": "5cb07e56f3d6436f4fcd777a1e19320f", "score": "0.5796065", "text": "function get_data_peserta($matkul)\n\t{\n\t\tif ($matkul == '') {\n\t\t\t$matkul=0;\n\t\t}\n\t\t$this->db->select('am.nrp, m.namamhs as nama');\n\t\t$this->db->from('ambil_matakuliah am');\n\t\t$this->db->where('am.idjadwal in (SELECT j.idjadwal FROM jadwal j WHERE (j.idmk = '.$matkul.'))');\n\t\t$this->db->join('mahasiswa m','m.nrp = am.nrp');\n\n\t\t$this->db->join('jadwal j','j.idjadwal = am.idjadwal');\n\t\t$this->db->join('matakuliah mk','mk.idmk = j.idmk');\n\t\t//$this->db->join('ruang r','r.idruang = j.idruang');\n\n\t\treturn $this->db->get()->result();\n\t}", "title": "" }, { "docid": "d232fb76e368a08d90031111d1e4ac2d", "score": "0.57951623", "text": "function get_daftar_spp($kode_unit_subunit,$tahun){\n // . \"FROM trx_nomor_lsnk AS tt1 \"\n // . \"JOIN trx_lsnk AS t1 ON t1.id_trx_nomor_lsnk = tt1.id_trx_nomor_lsnk \"\n // . \"JOIN trx_spp_lsnk_data AS t2 ON t2.nomor_trx_spp = tt1.id_trx_nomor_lsnk \"\n // . \"WHERE tt1.kode_unit_subunit = '{$kode_unit_subunit}' \"\n // . \"AND jenis = 'SPP' \"\n // . \"AND tt1.tahun = '{$tahun}' \"\n // . \"AND t1.tgl_proses IN ( \"\n // . \"SELECT MAX(t2.tgl_proses) FROM trx_lsnk AS t2 \"\n // . \"WHERE t2.id_trx_nomor_lsnk = t1.id_trx_nomor_lsnk ) \" \n // . \"ORDER BY tt1.id_trx_nomor_lsnk \" ;\n\n $query = \"SELECT tt1.str_nomor_trx AS str_nomor_trx_spp,t3.str_nomor_trx AS str_nomor_trx_spm,t1.tgl_proses,t2.untuk_bayar,t2.jumlah_bayar, t1.posisi FROM trx_nomor_tup AS tt1 JOIN trx_tup AS t1 ON t1.id_trx_nomor_tup = tt1.id_trx_nomor_tup JOIN trx_spp_tup_data AS t2 ON t2.nomor_trx_spp = tt1.id_trx_nomor_tup LEFT JOIN trx_spm_tup_data AS t3 ON t3.nomor_trx_spm = t1.id_trx_nomor_tup_spm WHERE tt1.kode_unit_subunit = '{$kode_unit_subunit}' AND jenis = 'SPP' AND tt1.tahun = '{$tahun}' AND t1.aktif = '1' GROUP BY tt1.id_trx_nomor_tup ORDER BY tt1.id_trx_nomor_tup DESC\" ;\n \n // echo $query; die;\n\n $q = $this->db->query($query);\n\n $result = $q->result();\n \n// var_dump($result);die;\n\n return $result ;\n }", "title": "" }, { "docid": "aa06de7ea64717d6929d68adcf31b06e", "score": "0.5790266", "text": "function dataunitbagian()\n\t\t{\n\t\t\t$table = 'vwbagian';\n\t\t\t$column = array('bagian_id ','bagian_nama','unit_kerja_nama','satuan_organisasi_nama');\n\t\t\t$order = array('bagian_id' => 'asc');\n\t\t\t\n\t\t\t$this->db->from($table);\n\t\t\t$i = 0;\n\t\t\tforeach ($column as $item) \n\t\t\t{\n\t\t\t\tif(isset($_POST['search']['value'])){\n\t\t\t\t\t($i===0) ? $this->db->like($item, $_POST['search']['value']) : $this->db->or_like($item, $_POST['search']['value']);\n\t\t\t\t}\n\t\t\t\t$column[$i] = $item;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\t\n\t\t\tif(isset($_POST['order']))\n\t\t\t{\n\t\t\t\t$this->db->order_by($column[$_POST['order']['0']['column']], $_POST['order']['0']['dir']);\n\t\t\t} \n\t\t\telse if(isset($order))\n\t\t\t{\n\t\t\t\t$order = $order;\n\t\t\t\t$this->db->order_by(key($order), $order[key($order)]);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "9ea52d059a6f5327ffd6467e3afc132e", "score": "0.57858527", "text": "public function getTotSumur($wil){\n if($wil == ''){\n $this->db->select('no_sumur');\n $this->db->from('t_sumur');\n $this->db->join('t_perusahaan', 't_perusahaan.id_perusahaan = t_sumur.id_perusahaan', 'left');\n //$this->db->where('id_kota', $wil);\n return $this->db->get('');\n } else {\n $this->db->select('no_sumur');\n $this->db->from('t_sumur');\n $this->db->join('t_perusahaan', 't_perusahaan.id_perusahaan = t_sumur.id_perusahaan', 'left');\n $this->db->where('id_kota', $wil);\n return $this->db->get('');\n }\n }", "title": "" }, { "docid": "24022555f9daef492a7b63d37036b8c3", "score": "0.5785276", "text": "public function getRekapStatusMHS ($kjur,$periode_awal,$periode_akhir,$k_status) {\n $str = \"SELECT ta,idsmt,idkelas,jk,COUNT(nim) AS jumlah FROM rekap_status_mahasiswa WHERE (ta >= $periode_awal AND ta <= $periode_akhir) AND k_status='$k_status' AND kjur=$kjur GROUP BY ta,idsmt,idkelas,jk\";\n $this->db->setFieldTable(array('ta','idsmt','idkelas','jk','jumlah'));\t\t\t\n $r = $this->db->getRecord($str); \n \n $result=array();\n if (isset($r[1])) {\n $temp_data1 =array();\n while (list($k,$v)=each ($r)) { \n $index=$v['ta'].$v['idsmt'].$v['idkelas'];\n $data=array('index'=>$index,'ta'=>$v['ta'],'idsmt'=>$v['idsmt'],'idkelas'=>$v['idkelas'],'jumlah_pria'=>0,'jumlah_wanita'=>0,'jumlah'=>0);\n $temp_data1[$index]=$data;\n } \n $i=1;\n while (list($m,$n)=each ($temp_data1)) { \n reset($r);\n $temp_data2=array();\n while (list($a,$b)=each ($r)) { \n $index=$b['ta'].$b['idsmt'].$b['idkelas'];\n if ($b['jk']=='L') {\n $temp_data2[$index]['p']=$b['jumlah'];\n }else{\n $temp_data2[$index]['w']=$b['jumlah'];\n } \n } \n $n['no']=$i;\n $n['jumlah_pria']=$temp_data2[$m]['p'] == ''?0:$temp_data2[$m]['p'];\n $n['jumlah_wanita']=$temp_data2[$m]['w'] == ''?0:$temp_data2[$m]['w'];\n $n['jumlah']=$temp_data2[$m]['p']+$temp_data2[$m]['w'];\n $result[$m]=$n;\n $i+=1;\n }\n } \n return $result; \n }", "title": "" }, { "docid": "4aa2d7a427a21d98f2ac1442e3e3d415", "score": "0.57810146", "text": "function datas($org, $tahun, $bulan, $hari) {\n if (date('Ym') != $tahun . '' . $bulan) {\n $hari = date('t', strtotime($tahun . \"-\" . $bulan));\n } else {\n $hari = str_pad(($hari - 1), 2, '0', STR_PAD_LEFT);\n }\n if ($org == 7000) {\n $kd_per = 110;\n } elseif ($org == 3000) {\n $kd_per = 102;\n } elseif ($org == 4000) {\n $kd_per = 112;\n }\n $sql = \"SELECT\n TB1.PROV,\n TB8.NM_PROV,\n NVL (TB1.TARGET, 0) TARGET,\n NVL (TB2. REAL, 0) REAL,\n NVL (TB3.TARGET_REALH, 0) TARGET_REALH,\n NVL (TB4.HARIAN_MAX, 0) HARIAN_MAX,\n TB5.NAMA_KABIRO,\n NVL (TB6.RKAP_MS, 0) RKAP_MS,\n NVL (TB8.DEMAND_HARIAN, 0) DEMAND_HARIAN,\n CASE TB7.DEMAND_HARIAN\n WHEN 0 THEN\n 0\n ELSE\n NVL (\n (\n (TB2. REAL / TB7.DEMAND_HARIAN) * 100\n ),\n 0\n )\n END AS MARKETSHARE\n FROM\n (\n SELECT\n A .prov,\n SUM (A .quantum) AS target\n FROM\n sap_t_rencana_sales_type A\n WHERE\n co = '$org'\n AND thn = '$tahun'\n AND bln = '$bulan'\n AND A .prov != '0001'\n AND A .prov != '1092'\n GROUP BY\n A .prov\n ) TB1\n LEFT JOIN (\n SELECT\n ORG,\n PROPINSI_TO,\n SUM (QTY) REAL\n FROM\n ZREPORT_SCM_REAL_SALES\n WHERE\n ORG = '$org'\n AND TAHUN = '$tahun'\n AND BULAN = '$bulan'\n AND HARI <= '$hari'\n AND PROPINSI_TO NOT IN ('1092', '0001')\n GROUP BY\n ORG,\n PROPINSI_TO\n ) TB2 ON TB1.PROV = TB2.PROPINSI_TO\n LEFT JOIN (\n SELECT\n prov,\n SUM (target_realh) AS target_realh\n FROM\n (\n SELECT\n *\n FROM\n (\n SELECT\n A .prov,\n c.budat,\n SUM (\n A .quantum * (c.porsi / D .total_porsi)\n ) AS target_realh\n FROM\n sap_t_rencana_sales_type A\n LEFT JOIN zreport_m_provinsi b ON A .prov = b.kd_prov\n LEFT JOIN zreport_porsi_sales_region c ON c.region = 5\n AND c.vkorg = A .co\n AND c.budat LIKE '$tahun$bulan%'\n AND c.tipe = A .tipe\n LEFT JOIN (\n SELECT\n region,\n tipe,\n SUM (porsi) AS total_porsi\n FROM\n zreport_porsi_sales_region\n WHERE\n budat LIKE '$tahun$bulan%'\n AND vkorg = '$org'\n GROUP BY\n region,\n tipe\n ) D ON c.region = D .region\n AND D .tipe = A .tipe\n WHERE\n co = '$org'\n AND thn = '$tahun'\n AND bln = '$bulan'\n GROUP BY\n co,\n thn,\n bln,\n A .prov,\n c.budat\n )\n WHERE\n budat <= '$tahun$bulan$hari'\n )\n GROUP BY\n prov\n ) TB3 ON TB1.PROV = TB3.PROV\n LEFT JOIN (\n SELECT\n ORG,\n PROPINSI_TO,\n MAX (QTY) HARIAN_MAX\n FROM\n ZREPORT_SCM_REAL_SALES\n WHERE\n ORG = '$org'\n AND TAHUN = '$tahun'\n AND BULAN = '$bulan'\n AND HARI <= '$hari'\n AND PROPINSI_TO NOT IN ('1092', '0001')\n GROUP BY\n ORG,\n PROPINSI_TO\n ) TB4 ON TB1.PROV = TB4.PROPINSI_TO\n LEFT JOIN (\n SELECT\n tb5.id_prov PROV,\n tb6.nama_kabiro\n FROM\n ZREPORT_SCM_KABIRO_SALES tb5\n LEFT JOIN ZREPORT_SCM_M_KABIRO tb6 ON tb5.id_kabiro = tb6.id_kabiro\n WHERE\n TB5.ORG = '$org'\n ) TB5 ON TB1.PROV = TB5.PROV\n LEFT JOIN (\n SELECT\n PROPINSI,\n QTY RKAP_MS\n FROM\n ZREPORT_MS_RKAPMS\n WHERE\n KODE_PERUSAHAAN = '$kd_per'\n AND THN = '$tahun'\n AND STATUS = '0'\n ) TB6 ON TB1.PROV = TB6.PROPINSI\n LEFT JOIN (\n SELECT\n TB1.KD_PROV,\n (\n tb1.qty * tb2.porsi / tb3.porsi_total\n ) DEMAND_HARIAN\n FROM\n (\n SELECT\n KD_PROV,\n SUM (qty) qty\n FROM\n ZREPORT_SCM_DEMAND_PROVINSI\n WHERE\n tahun = '$tahun'\n AND bulan = '$bulan'\n GROUP BY\n KD_PROV\n ) tb1\n LEFT JOIN (\n SELECT\n vkorg org,\n SUM (porsi) porsi\n FROM\n zreport_porsi_sales_region c\n WHERE\n c.region = 5\n AND c.vkorg = '$org'\n AND c.budat LIKE '$tahun$bulan%'\n AND c.budat <= '$tahun$bulan$hari'\n GROUP BY\n VKORG\n ) tb2 ON TB2.org = '$org'\n LEFT JOIN (\n SELECT\n vkorg org,\n SUM (porsi) porsi_total\n FROM\n zreport_porsi_sales_region c\n WHERE\n c.region = 5\n AND c.vkorg = '$org'\n AND c.budat LIKE '$tahun$bulan%'\n GROUP BY\n VKORG\n ) tb3 ON TB2.org = tb3.org\n ) TB7 ON TB1.PROV = TB7.KD_PROV\n LEFT JOIN ZREPORT_M_PROVINSI TB8 ON TB1.prov = TB8.KD_PROV\n LEFT JOIN(\nSELECT\n tbm1.KD_PROV,\n (\n tbm1.qty * tbm2.porsi / tbm3.porsi_total\n ) DEMAND_HARIAN\nFROM\n (\n SELECT\n KD_PROV,\n SUM (qty) qty\n FROM\n ZREPORT_SCM_DEMAND_PROVINSI\n WHERE\n tahun = '$tahun'\n AND bulan = '$bulan'\n GROUP BY\n KD_PROV\n ) tbm1\nLEFT JOIN (\n SELECT\n vkorg org,\n SUM (porsi) porsi\n FROM\n zreport_porsi_sales_region c\n WHERE\n c.region = 5\n AND c.vkorg = '$org'\n AND c.budat LIKE '$tahun$bulan%'\n AND c.budat <= '$tahun$bulan$hari'\n GROUP BY\n VKORG\n) tbm2 ON tbm2.org = '$org'\nLEFT JOIN (\n SELECT\n vkorg org,\n SUM (porsi) porsi_total\n FROM\n zreport_porsi_sales_region c\n WHERE\n c.region = 5\n AND c.vkorg = '$org'\n AND c.budat LIKE '$tahun$bulan%'\n GROUP BY\n VKORG\n) tbm3 ON tbm2.org = tbm3.org)TB8 ON TB1.PROV = TB8.KD_PROV\nORDER BY\n TB1.PROV\";\n $data = $this->db->query($sql);\n return $data->result_array();\n }", "title": "" }, { "docid": "d9d05233c325d880a32255d7a993984a", "score": "0.5770154", "text": "public function begitulah1(){\n\t//\treturn $hsl->result();\n\t\n\t//$this->db->select('stok.lokasi,count(stok.lokasi) as total');\n\t//$this->db->join('lokasi','lokasi.id_lokasi\t= stok.lokasi');\n\t//$this->db->group_by('lokasi');\n\t//$query=$this->db->get('stok');\n\t//if($query->num_rows()>0){\n\t\t//return $query->result();\n\t//}\n\t//}\n\t$this->db->select('kondisi.kondisi_barang,stok.lokasi,SUM(stok.stok) as total1');\n\t$this->db->join('kondisi','kondisi.id_kondisi\t= stok.kondisi');\n\t$this->db->group_by('kondisi');\n\t$query=$this->db->get('stok');\n\tif($query->num_rows()>0){\n\t\treturn $query->result();\n\t}\n\t}", "title": "" }, { "docid": "38e584d1123b28025de7016785d97df9", "score": "0.5769407", "text": "public function sum_total_beli()\n {\n $data = $this->model_beli_barang->sum_total_beli()->row_array();\n $row = $this->model_beli_barang->sum_total_beli()->num_rows();\n $total_harga = $data['total_harga'];\n if ($row>0)\n {\n echo $total_harga;\n }\n else\n {\n echo'0';\n }\n }", "title": "" }, { "docid": "68c342c6d003015fc8954f5ef2d72ec0", "score": "0.57606685", "text": "function cariByTanggal($tgl_awal,$tgl_akhir){\n\n\t\t\t$this->db->select('*');\n\n \t\t\t$this->db->from('stock_akhir_benang');\n\n\t\t \t$this->db->join('benang_tb','benang_tb.kd_jenis\t\t=\tstock_akhir_benang.kd_jenis');\n\n\t\t \t$this->db->join('vendor_tb','vendor_tb.kd_vendor\t=\tstock_akhir_benang.kd_vendor');\n\n\t\t \t$this->db->join('gudang_tb','gudang_tb.kd_gudang\t=\tstock_akhir_benang.kd_gudang');\n\n\t\t \t$this->db->where('tanggal >=',$tgl_awal);\n\n\t\t\t$this->db->where('tanggal <=',$tgl_akhir);\n\n \t\t\t$query = $this->db->get();\n\n \t\t\treturn $query;\n\n\t}", "title": "" }, { "docid": "1f281040c745d9137ebc472ef547065f", "score": "0.5746424", "text": "function ambil_total($id_sjm)\n\t{\n\t\t$this->db->where('id_sjm', $id_sjm);\n\t\t$ambil = $this->db->get('total_sjm');\n\t\t$data = $ambil->row_array();\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "da697a3ec7029872db8db069c7eb43e6", "score": "0.57454354", "text": "public function semak($item = 30, $ms = 1, $respon, $kp, $borang) \n {\n // setkan pembolehubah untuk $this->tanya\n $medan = 'newss,nossm,concat_ws(\"<br>\",nama,operator) as nama,nota,batchAwal,msic2008,kp,borang,'\n\t\t\t\t . 'concat_ws(\" \",alamat1,alamat2,poskod,bandar,negeri) as alamat' . \"\\r\";\n\t\t\t$carian[] = array('fix'=>'x=','atau'=>'WHERE','medan'=>'respon','apa'=>$respon);\n\t\t\t$carian[] = array('fix'=>'x=','atau'=>'AND','medan'=>'kp','apa'=>$kp);\n\t\t\t$carian[] = array('fix'=>'%like%','atau'=>'AND','medan'=>'borang','apa'=>$borang);\n\t\t\t$carian[] = array('fix'=>'xin','atau'=>'AND','medan'=>'batchAwal','apa'=>\"('amin007','mdt-amin007')\");\n\n\t\t# setkan pembolehubah untuk $this->tanya sql2\n\t\t\t//$paparTable = \"kawalan/alamat/$item/$ms/$cariBatch/$daerah\";\n\t\t\t$paparTable = \"$cariBatch-$daerah\";\n\t\t\t$jadual = $this->jadualKawal[0];\n\t\t\t$jadualMedan2 = '`dp_baru`, count(*)as jum';\n\t\t\t$groupBy2 = 'dp_baru';\n\t\t\t$orderBy2 = 'dp_baru';\n\t\t\t$cari2[] = array('fix'=>'like','atau'=>'WHERE','medan'=>'batchAwal','apa'=>$cariBatch);\n\t\t\t//$cari2[] = array('fix'=>'like','atau'=>'AND','medan'=>'dp_baru','apa'=>$daerah);\n\t\t\t//$cari2[] = array('fix'=>'khas','atau'=>'AND','medan'=>'daerah','apa'=>'dp_baru');\n # mula cari jadual khas\n\t\t\t$bilSemua = $this->tanya->kiraKes($jadual, $jadualMedan2, $cari2);\n # tentukan bilangan mukasurat & bilangan jumlah rekod\n\t\t\t //echo \"\\$bilSemua:$bilSemua, \\$item:$item, \\$ms:$ms<br>';\n $jum2 = pencamSqlLimit($bilSemua, $item, $ms, $orderBy2, $groupBy2);\n $this->papar->bilSemua[$paparTable] = $bilSemua;\n # sql guna limit\n $this->papar->cariApa[$paparTable] = $this->tanya->\n\t\t\t\tcariAlamat($jadual, $jadualMedan2, $cari2, $jum2);\n \n # semak pembolehubah $this->papar->cariApa\n\t\t//echo '<pre>$this->papar->cariApa:', print_r($this->papar->cariApa, 1) . '</pre><br>';\n \n # Set pemboleubah utama\n $this->papar->pegawai = senarai_kakitangan();\n $this->papar->carian = 'alamat';\n # pergi papar kandungan\n $this->papar->baca('kawalan/index', 0);\n }", "title": "" }, { "docid": "3410f99a527c4d744d9034fabaf18afb", "score": "0.57424307", "text": "function downloadDataPrice($kd_prov, $kd_kota, $tahun, $bulan) {\n $kota = '';\n if ($kd_kota != 0) {\n $kota = \"AND TB3.KD_KOTA = '$kd_kota'\";\n }\n $prov = '';\n if ($kd_prov != 0) {\n $prov = \"AND TB2.KD_PROV = '$kd_prov'\";\n }\n $andTahun = '';\n if ($tahun != 0) {\n $andTahun = \"AND TB1.TAHUN = '$tahun'\";\n }\n $andBulan = '';\n if ($bulan != 0) {\n $andBulan = \"AND TB1.BULAN = '$bulan'\";\n }\n $data = $this->db->query(\"SELECT\n TB2.NM_PROV,\n TB3.NM_KOTA,\n TB4.PRODUK,\n TB1.KD_PERUSAHAAN,\n TB1.TAHUN,\n TB1.BULAN,\n TB1.HARI,\n TB1.HARGA_JUAL,\n TB1.HARGA_TEBUS,\n TB1.TIPE\n FROM\n SCM_MI_PRICE_SURVEY TB1\n LEFT JOIN ZREPORT_M_PROVINSI TB2 ON TB1.KD_PROV = TB2.KD_PROV\n LEFT JOIN ZREPORT_M_KOTA TB3 ON TB1.KD_KOTA = TB3.KD_KOTA\n LEFT JOIN ZREPORT_MS_PERUSAHAAN TB4 ON TB1.KD_PERUSAHAAN = TB4.KODE_PERUSAHAAN\n WHERE\n TB1.KD_PROV IS NOT null\n $andBulan\n $andTahun\n $prov\n $kota\n ORDER BY\n TB1.KD_PERUSAHAAN,\n TB1.TIPE\");\n// echo $this->db->last_query();\n return $data->result_array();\n }", "title": "" }, { "docid": "68df46c331a69b651bcfa602efb23d40", "score": "0.57418776", "text": "public function countGridLookupUsulanSkpd(){\n $this->setConnection('dbsystem');\n $db = $this->getConnection();\n\n $db->select(\"\n u.id_musrenbang AS id,\n u.kode_musrenbang AS kode_musrenbang,\n u.kegiatan AS kegiatan,\n u.penerimaan_lain AS penerimaan_lain,\n u.rsud AS rsud,\n u.kapitasi AS kapitasi,\n u.bangub AS bangub,\n u.sektoral_apbd AS sektoral_apbd,\n u.dak AS dak,\n u.dbhcht AS dbhcht,\n u.did AS did,\n u.tp AS tp,\n u.dekonsentrasi AS dekonsentrasi,\n u.sektoral_apbn AS sektoral_apbn\", FALSE);\n $db->from('trs_musrenbang u');\n $db->where('u.kode_jenisusulan','JU004');\n $db->order_by('u.kode_musrenbang');\n $query = $db->get();\n return $query;\n }", "title": "" }, { "docid": "35ccaa6109b7b3e7d973a1d68bff2d99", "score": "0.57367295", "text": "public function begitulah(){\n\t//\treturn $hsl->result();\n\t\n\t//$this->db->select('stok.lokasi,count(stok.lokasi) as total');\n\t//$this->db->join('lokasi','lokasi.id_lokasi\t= stok.lokasi');\n\t//$this->db->group_by('lokasi');\n\t//$query=$this->db->get('stok');\n\t//if($query->num_rows()>0){\n\t\t//return $query->result();\n\t//}\n\t//}\n\t$this->db->select('lokasi.lokasi_barang,stok.lokasi,SUM(stok.stok) as total');\n\t$this->db->join('lokasi','lokasi.id_lokasi\t= stok.lokasi');\n\t$this->db->group_by('lokasi');\n\t$query=$this->db->get('stok');\n\tif($query->num_rows()>0){\n\t\treturn $query->result();\n\t}\n\t}", "title": "" }, { "docid": "e3e540f6a796912960b4f340d1862696", "score": "0.57249564", "text": "function countKomponenValue($komponenupahbenefitcmp,$idpelamar)\n {\n\n $k = explode(',', $komponenupahbenefitcmp);\n $totalKomponen = 0;\n foreach ($k as $key => $value) {\n $kupah = $this->db->get_where('komponenupah',array('idkomponenupah'=>$value,'display'=>null));\n if($kupah->num_rows()>0)\n {\n $rkupah = $kupah->row();\n if($rkupah->jeniskomponen=='Upah Tetap')\n {\n $qnilaiUpah = $this->db->get_where('upahkaryawan',array('idkomponenupah'=>$value,'idpelamar'=>$idpelamar,'display'=>null));\n // echo $this->db->last_query();\n if($qnilaiUpah->num_rows()>0)\n {\n $rqnilaiUpah = $qnilaiUpah->row();\n $totalKomponen += $rqnilaiUpah->nilai;\n \n } \n } else {\n //upah tidak tetap\n $qUTT = $this->db->get_where('dasarkomponenupah',array('idkomponenupah'=>$value,'display'=>null));\n if($qUTT->num_rows()>0)\n {\n $rqUTT = $qUTT->row();\n $qupahTT = $this->db->get_where('upahkaryawan',array('idkomponenupah'=>$rqUTT->iddasarkomponenupah,'idpelamar'=>$idpelamar,'display'=>null));\n if($qupahTT->num_rows()>0)\n {\n $rqupahTT = $qupahTT->row();\n $totalKomponen += $rqupahTT->nilai;\n }\n }\n\n }\n }\n// if($idpelamar==187)\n// {\n// echo $this->db->last_query().' ';\n// exit;\n// }\n }\n return $totalKomponen;\n }", "title": "" }, { "docid": "536a04219c3ea3ee1315ae977ba1a0d6", "score": "0.57152057", "text": "public function tampilPasienSedangDilayani(){\n $tanggalSekarang = date('Y-m-d');\n $sedangDilayani = $this->db->query(\"SELECT p.id as id_pasien,p.no_kk,p.nama_suami,p.alamat_istri,p.tgl_lahir,p.jk_pasien,a.id,a.no_antrian,a.status_antrian,a.tgl_antrian,d.nama_dokter,p.nik, p.nama_pasien, j.nama_pelayanan \n FROM antrians AS a JOIN dokters AS d ON a.id_dokter = d.id \n JOIN pasiens AS p ON a.id_pasien = p.id \n JOIN jenis_pelayanans AS j ON a.id_jenis_pelayanan = j.id \n where a.status_antrian ='Sedang Dilayani' && SUBSTRING(a.tgl_antrian,1,10)='$tanggalSekarang' \n order by a.no_antrian ASC \");\n //codingan dibawah digunakan untuk menampilkan semua data yang berstatus Sedang Dilayani\n //codingan yang belum di kasih filter by tanggal sekarang\n // $sedangDilayani = $this->db->query(\"SELECT p.id as id_pasien,p.no_kk,p.nama_suami,p.alamat_istri,p.tgl_lahir,p.jk_pasien,a.id,a.no_antrian,a.status_antrian,a.tgl_antrian,d.nama_dokter,p.nik, p.nama_pasien, j.nama_pelayanan \n // FROM antrians AS a JOIN dokters AS d ON a.id_dokter = d.id \n // JOIN pasiens AS p ON a.id_pasien = p.id \n // JOIN jenis_pelayanans AS j ON a.id_jenis_pelayanan = j.id \n // where a.status_antrian ='Sedang Dilayani' \n // order by a.no_antrian ASC \");\n return $sedangDilayani;\n }", "title": "" }, { "docid": "8c0179ea182b3da15f9488d4f2daa15e", "score": "0.5709", "text": "function GET_Where($nisn)\n\t\t{\n\t\t\t//perintah get where data\n\t\t\t$this->query=mysqli_query($this->con,\"select siswa.*, kelas.nama_kelas, spp.nominal from siswa join kelas on siswa.id_kelas = kelas.id_kelas join spp on siswa.id_spp = spp.id_spp where nisn='$nisn'\");\n\t\t\twhile($this->data=mysqli_fetch_array($this->query))\n\t\t\t{\n\t\t\t\t$this->result[]=$this->data;\n\t\t\t}\n\t\t\treturn $this->result;\n\t\t}", "title": "" }, { "docid": "4de1367a5d0a7f84a9c45d2d5af57598", "score": "0.57069063", "text": "function traeSalidas($id_insumo,$id_planta)\n\t{\n\t\t$insumo = InsumoHistorial::select(DB::raw('SUM(inshis_cantidad) as cantidad'))->where('inshis_ins_id',$id_insumo)->where('inshis_detorprod_id','<>',null)->where('inshis_planta_id',$id_planta)->first();\n\t\t//dd($insumo);\n\t\tif ($insumo->cantidad) {\n\t\t\treturn $insumo->cantidad;\n\t\t}else{\n\t\t\treturn 0.00;\n\t\t}\n\t}", "title": "" }, { "docid": "ed81efe918b5a7210872731bcb0ad31d", "score": "0.5706297", "text": "function hitungsim($query) {\r\n//(tbindex atau tbvektor), n\r\n$resn = mysql_query(\"SELECT Count(*) as n FROM tbvektor\");\r\n$rown = mysql_fetch_array($resn);\r\n$n = $rown['n'];\r\n//terapkan preprocessing terhadap $query\r\n$aquery = explode(\" \", $query);\r\n//hitung panjang vektor query\r\n$panjangQuery = 0;\r\n$aBobotQuery = array();\r\nfor ($i=0; $i<count($aquery); $i++) {\r\n//hitung bobot untuk term ke-i pada query, log(n/N);\r\n//hitung jumlah dokumen yang mengandung term tersebut\r\n$resNTerm = mysql_query(\"SELECT Count(*) as N FROM tbindex\r\nWHERE Term = '$aquery[$i]'\");\r\n$rowNTerm = mysql_fetch_array($resNTerm);\r\n$NTerm = $rowNTerm['N'];\r\n$idf = log($n/$NTerm);\r\n//simpan di array\r\n$aBobotQuery[] = $idf;\r\n$panjangQuery = $panjangQuery + $idf * $idf;\r\n}\r\n$panjangQuery = sqrt($panjangQuery);\r\n$jumlahmirip = 0;\r\n\r\n$resDocId = mysql_query(\"SELECT * FROM tbvektor ORDER BY DocId\");\r\nwhile ($rowDocId = mysql_fetch_array($resDocId)) {\r\n$dotproduct = 0;\r\n$docId = $rowDocId['DocId'];\r\n$panjangDocId = $rowDocId['Panjang'];\r\n$resTerm = mysql_query(\"SELECT * FROM tbindex WHERE DocId = $docId\");\r\nwhile ($rowTerm = mysql_fetch_array($resTerm)) {\r\nfor ($i=0; $i<count($aquery); $i++) {\r\n//jika term sama\r\nif ($rowTerm['Term'] == $aquery[$i]) {\r\n$dotproduct = $dotproduct +\r\n$rowTerm['Bobot'] * $aBobotQuery[$i];\r\n} //end if\r\n} //end for $i\r\n}\r\nif ($dotproduct > 0) {\r\n$sim = $dotproduct / ($panjangQuery * $panjangDocId);\r\n//simpan kemiripan > 0 ke dalam tbcache\r\n$resInsertCache = mysql_query(\"INSERT INTO tbcache (Query, DocId, Value) VALUES ('$query', $docId, $sim)\");\r\n$jumlahmirip++;\r\n}\r\n}\r\nif ($jumlahmirip == 0) {\r\n$resInsertCache = mysql_query(\"INSERT INTO tbcache (Query, DocId, Value) VALUES ('$query', 0, 0)\");\r\n}\r\n}", "title": "" }, { "docid": "13feef128bb8a069f1954dd8ed6f9542", "score": "0.5700745", "text": "function GetAvgTransPrice($item_id,$key, $WID) {\r\n\r\n\r\n$strAddQuery .= (!empty($key['Condition']))?(\" and t.TranCondition='\".$key['Condition'].\"' \"):(\"\");\r\n$strAddQuery .= (!empty($key['key']))?(\" and t.TransactionSku='\".$key['key'].\"' \"):(\"\");\r\n$strAddQuery .= (!empty($key['Sku']))?(\" and (t.TransactionSku='\".$key['Sku'].\"' OR t.TransactionItemID='\" . $item_id . \"') \"):(\"\");\r\n$strAddQuery .= (!empty($WID)) ? (\" and t.WID ='\" . $WID . \"'\") : (\" and WID = 1 \"); //updated by chetan on 30Mar2017//\r\n//$strAddQuery .= (!empty($item_id)) ? (\" and t.TransactionItemID='\" . $item_id . \"'\") : (\"\");\t\t\r\n\t\t\t\r\n $LMT = (!empty($key['LMT']))?(\" limit 0,1 \"):(\"\");\r\n $descAsc = (!empty($key['Ordr']))?(\" \".$key['Ordr'].\" \"):(\"\");\r\n\r\n $Sql = \"select t.ConvertAmt+(t.freight_cost/t.TransactionQty) as price,t.TransactionSku,t.TransactionItemID,i.CategoryID,c.valuationType from inv_item_transaction t left outer join inv_items i on i.Sku = t.TransactionSku left outer join inv_categories c on c.CategoryID =i.CategoryID where 1 and (t.TransactionType ='Adjustment' or t.TransactionType='PO Receipt' ) \" . $strAddQuery . \" order by t.TransactionID \".$descAsc.\" \".$LMT.\"\"; \r\n #if($_GET['this']==1){ echo $Sql; }\r\n return $this->query($Sql, 1);\r\n }", "title": "" }, { "docid": "cbfdb5cc6b267bb3fab46bc4ae4c6199", "score": "0.5689662", "text": "function rumus_edit_hari($id, $bulan, $tahun){\n $CI = get_instance();\n $CI->load->model('Karyawan_model');\n $data = $CI->Karyawan_model->semuaData($id, $bulan, $tahun);\n\n if($data){\n $tot_pe = $data->point_edit;\n $tot_jam = $data->jam_kerja;\n $tot_hari = $data->hari_kerja;\n\n // kalkulasi\n if($tot_pe == 0 || $tot_jam == 0 || $tot_hari == 0){\n return $edit_hari = 0;\n }else{\n return $edit_hari = $tot_pe / ($tot_jam / $tot_hari);\n }\n }else{\n $edit_hari = 0;\n }\n\n return $edit_hari;\n}", "title": "" }, { "docid": "a6ad92546f8d78af90fd3451ef531786", "score": "0.56868565", "text": "public function getDataBebanKerja($id_guru)\n\t{\n\t\t$query = $this->db->query(\"SELECT SUM(sisa_jam) as beban FROM `tugas_guru` where id_guru ='$id_guru'\")->row()->beban;\n\t\treturn ($query) ? $query : 0;\n\t}", "title": "" }, { "docid": "ff9c79a3fa5aca79817ae248ab1221fb", "score": "0.5675248", "text": "function stock_produit($donne1){\n global $bd;\n $req=$bd->query(\"SELECT sum(Quant) as stk FROM stock where Code_Art=$donne1 and Date_Exp > CURRENT_DATE \");\n $row=$req->fetch();\n if (isset($row['stk'])) \n return $row['stk'];\n\telse\n\t\treturn 0;\n\n}", "title": "" }, { "docid": "38ea366a269837e72218ff7dad06ce92", "score": "0.5672661", "text": "function find_expired_pinjaman_mikro()\n\t{\n\n\t\t$data = $this->Cronjob_model->find_mikro_expired();\n\n\t\t//_d($data);exit();\n\t\t\n\t\t$nowdate = date('Y-m-d');\n\t\t$totaldata = count($data);\n\n\t\tif ( $totaldata > 0) {\n\t\t\t echo $totaldata.' Found transaction.';\n\n\t\t\tforeach ($data as $key ) {\n\n\t\t\t\t$iduser_peminjam = $key['User_id'];\n\t\t\t\t$idmember_peminjam = $key['pinjam_member_id'];\n\t\t\t\t$total_kredit = $key['jml_kredit'];\n\t\t\t\t$total_pinjaman_disetujui = $key['Jml_permohonan_pinjaman_disetujui'];\n\n\t\t\t\tif (!empty($total_kredit)) \n\t\t\t\t{\n\t\t\t\t\t// cek apakah pembiayaan mencapai 80% atau lebih\n\t\t\t\t\t$kredit_percentage = ($total_kredit/$total_pinjaman_disetujui) * 100;\n\n\t\t\t\t\t/*echo '<br>'.$kredit_percentage .'<br>';\n\t\t\t\t\texit();*/\n\n\t\t\t\t\tif ($kredit_percentage >= 80)\n\t\t\t\t\t{\n\t\t\t\t\t\techo ' ---------------- sudah mencapai 80% ----------------';\n\n\t\t\t\t\t\t// Approve pinjaman dan pendana\n\t\t\t\t\t\t$approved = $this->Cronjob_model->approve_pinjaman($key['Master_loan_id']);\n\t\t\t\t\t\tif ($approved) {\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t$this->Cronjob_model->approve_pendanaan($key['Master_loan_id']);\n\n\t\t\t\t\t\t\tif ($total_kredit >= $total_pinjaman_disetujui) {\n\t\t\t\t\t\t\t\t$saldo_masuk_kepeminjam = $total_pinjaman_disetujui;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$saldo_masuk_kepeminjam = $total_kredit;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$check_wallet = $this->Wallet_model->get_wallet_user($iduser_peminjam);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// saldo masuk ke peminjam\n\t\t\t\t\t\t\tif (count($check_wallet) > 1 && isset($check_wallet['User_id'])) {\n\t\t\t\t\t\t\t\t// update master\n\t\t\t\t\t\t\t\t$this->Wallet_model->update_master_wallet_saldo($iduser_peminjam, $saldo_masuk_kepeminjam);\n\n\t\t\t\t\t\t\t\t$master_wallet_id = $check_wallet['Id'];\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t// insert master\n\t\t\t\t\t\t\t\t$inwallet['Date_create'] = $nowdate;\n\t\t\t\t\t\t\t\t$inwallet['User_id'] = $iduser_peminjam;\n\t\t\t\t\t\t\t\t$inwallet['Amount'] = $saldo_masuk_kepeminjam;\n\t\t\t\t\t\t\t\t$inwallet['wallet_member_id'] = $idmember_peminjam;\n\n\t\t\t\t\t\t\t\t$master_wallet_id = $this->Wallet_model->insert_master_wallet($inwallet);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// detail wallet\n\t\t\t\t\t\t\t$detail_wal['Id'] = $master_wallet_id;\n\t\t\t\t\t\t\t$detail_wal['Date_transaction'] = $nowdate;\n\t\t\t\t\t\t\t$detail_wal['Amount'] = $saldo_masuk_kepeminjam;\n\t\t\t\t\t\t\t$detail_wal['Notes'] = 'Pemberian dana pinjaman No.' . $key['Master_loan_id'];\n\t\t\t\t\t\t\t$detail_wal['tipe_dana'] = 1;\n\t\t\t\t\t\t\t$detail_wal['User_id'] = $check_wallet['User_id'];\n\t\t\t\t\t\t\t$detail_wal['kode_transaksi'] = $key['Master_loan_id'];\n\t\t\t\t\t\t\t$detail_wal['balance'] = $check_wallet['Amount'] + $detail_wal['Amount'];\n\n\t\t\t\t\t\t\t$this->Wallet_model->insert_detail_wallet($detail_wal);\n\n\t\t\t\t\t\t\t// ---------- Create Tgl Jatuh Tempo -----------\n\t\t\t\t\t\t\tfor ($i=1; $i <= $key['ltp_lama_angsuran']; $i++) \n\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\t$tgl_jatuh_tempo = date('Y-m-d', strtotime(\"+\".$i.\" week\"));\n\n\t\t\t\t\t\t\t\t$intempo['kode_transaksi'] = $key['Master_loan_id'];\n\t\t\t\t\t\t\t\t$intempo['tgl_jatuh_tempo'] = $tgl_jatuh_tempo;\n\t\t\t\t\t\t\t\t$intempo['no_angsuran'] = $i;\n\t\t\t\t\t\t\t\t$this->Cronjob_model->insert_table_tempo($intempo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// ---------- End Create Tgl Jatuh Tempo -----------\n\n\t\t\t\t\t\t\t$this->send_mail_peminjam($key, $total_pinjaman_disetujui);\n\n\t\t\t\t\t\t\t// looping pendanaan utk kirim email ke pendana\n\t\t\t\t\t\t\t$investdata = $this->Cronjob_model->get_pendana_bytransaksi($key['Master_loan_id']);\n\t\t\t\t\t\t\tforeach ($investdata as $inv) {\n\t\t\t\t\t\t\t\t$this->send_mail_pendana($inv);\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\t echo ' -------------- belum 80% maka menjadi expired ----------------';\n\n\t\t\t\t\t\t$investdata = $this->Cronjob_model->get_pendana_bytransaksi($key['Master_loan_id']);\n\n\t\t\t\t\t\t//_d($investdata);exit();\n\n\t\t\t\t\t\tif (count($investdata) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//echo 'ada';\n\t\t\t\t\t\t\tforeach ($investdata as $inv) {\n\n\t\t\t\t\t\t\t\t$check_wallet = $this->Wallet_model->get_wallet_user($inv['User_id']);\n\n\t\t\t\t\t\t\t\t// kembalikan saldo pendana\n\t\t\t\t\t\t\t\t$this->Cronjob_model->kembalikan_saldo($inv['User_id'], $inv['Jml_penawaran_pemberian_pinjaman_disetujui']);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// detail wallet\n\t\t\t\t\t\t\t\t$detail_w['Id'] = $check_wallet['Id'];\n\t\t\t\t\t\t\t\t$detail_w['Date_transaction'] = $nowdate;\n\t\t\t\t\t\t\t\t$detail_w['Amount'] = $inv['Jml_penawaran_pemberian_pinjaman_disetujui'];\n\t\t\t\t\t\t\t\t$detail_w['Notes'] = 'Pengembalian Saldo Pendana dari transaksi Pinjaman No. ' . $inv['Master_loan_id'];\n\t\t\t\t\t\t\t\t$detail_w['tipe_dana'] = 1;\n\t\t\t\t\t\t\t\t$detail_w['User_id'] = $check_wallet['User_id'];\n\t\t\t\t\t\t\t\t$detail_w['kode_transaksi'] = $key['Master_loan_id'];\n\t\t\t\t\t\t\t\t$detail_w['balance'] = $check_wallet['Amount'] + $detail_w['Amount'];\n\t\t\t\t\t\t\t\t$this->Wallet_model->insert_detail_wallet($detail_w);\n\n\t\t\t\t\t\t\t\t// set status pendanaan mjd expired\n\t\t\t\t\t\t\t\t$this->Cronjob_model->set_pendanaan_expired($inv['Id']);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// set status pinjaman expired\n\t\t\t\t\t\t$this->Cronjob_model->set_pinjaman_expired($key['Master_loan_id']);\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\techo 'kredit kosong (tidak ada pendana)';\n\n\t\t\t\t\t// set status pinjaman expired\n\t\t\t\t\t$this->Cronjob_model->set_pinjaman_expired($key['Master_loan_id']);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t}else{\n\t\t\techo 'Transaction not found.';\n\t\t}\n\t}", "title": "" }, { "docid": "214cc8efc35568c8a2ee1d7eed454258", "score": "0.5665531", "text": "function tep_check_reserved_sede($parametri=null) {\n \n $sql = tep_db_query(\"SELECT sum(ot.value) AS totale, op.sede_scuola as sede\n FROM orders_total ot, orders_products op\n WHERE \".$parametri.\"\nGROUP BY op.sede_scuola\nORDER BY totale, op.sede_scuola ASC\n LIMIT 1\");\n\n $result = tep_db_fetch_array($sql);\n\n return $result['sede'];\n \n }", "title": "" }, { "docid": "6d841521196cdbaa0c798851f9e8968f", "score": "0.5654159", "text": "function datapertanyaan()\n\t\t{\n\t\t\t$table = 'pertanyaan';\n\t\t\t$column = array('pertanyaan_id','pertanyaan_isi','pertanyaan_status');\n\t\t\t$order = array('pertanyaan_id' => 'asc');\n\t\t\t\n\t\t\t$this->db->from($table);\n\t\t\t$i = 0;\n\t\t\tforeach ($column as $item) \n\t\t\t{\n\t\t\t\tif(isset($_POST['search']['value'])){\n\t\t\t\t\t($i===0) ? $this->db->like($item, $_POST['search']['value']) : $this->db->or_like($item, $_POST['search']['value']);\n\t\t\t\t}\n\t\t\t\t$column[$i] = $item;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\t\n\t\t\tif(isset($_POST['order']))\n\t\t\t{\n\t\t\t\t$this->db->order_by($column[$_POST['order']['0']['column']], $_POST['order']['0']['dir']);\n\t\t\t} \n\t\t\telse if(isset($order))\n\t\t\t{\n\t\t\t\t$order = $order;\n\t\t\t\t$this->db->order_by(key($order), $order[key($order)]);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "98453d1dc3415556e853c18c37f2a299", "score": "0.5652379", "text": "public function loadDataKartuStokMasuk(){\r\r\n\t\t$select = '*';\r\r\n\t\t//LIMIT\r\r\n\t\t$limit = array(\r\r\n\t\t\t'start' => $this->input->get('start'),\r\r\n\t\t\t'finish' => $this->input->get('length')\r\r\n\t\t);\r\r\n\t\t$where['data'][] = array(\r\r\n\t\t\t'column' => 'cabang_id',\r\r\n\t\t\t'param'\t => $this->input->get('id_cabang')\r\r\n\t\t);\r\r\n\t\t$where['data'][] = array(\r\r\n\t\t\t'column' => 'gudang_id',\r\r\n\t\t\t'param'\t => $this->input->get('id_gudang')\r\r\n\t\t);\r\r\n\t\t$where['data'][] = array(\r\r\n\t\t\t'column' => 'kartu_stok_masuk >',\r\r\n\t\t\t'param'\t => 0\r\r\n\t\t);\r\r\n\t\t$where['data'][] = array(\r\r\n\t\t\t'column' => 'kartu_stok_tanggal <=',\r\r\n\t\t\t'param'\t => date (\"Y/m/d H:i:s\",strtotime($this->input->get('to_tanggal')))\r\r\n\t\t);\r\r\n\t\t$where['data'][] = array(\r\r\n\t\t\t'column' => 'kartu_stok_tanggal >=',\r\r\n\t\t\t'param'\t => date (\"Y/m/d H:i:s\",strtotime($this->input->get('from_tanggal')))\r\r\n\t\t);\r\r\n\t\t//WHERE LIKE\r\r\n\t\t$where_like['data'][] = array(\r\r\n\t\t\t'column' => 'kartu_stok_tanggal, kartu_stok_referensi, kartu_stok_masuk',\r\r\n\t\t\t'param'\t => $this->input->get('search[value]')\r\r\n\t\t);\r\r\n\t\t//ORDER\r\r\n\t\t$index_order = $this->input->get('order[0][column]');\r\r\n\t\t$order['data'][] = array(\r\r\n\t\t\t'column' => $this->input->get('columns['.$index_order.'][name]'),\r\r\n\t\t\t'type'\t => $this->input->get('order[0][dir]')\r\r\n\t\t);\r\r\n\r\r\n\t\t$query_total = $this->mod->select($select, 'v_kartu_stok');\r\r\n\t\t$query_filter = $this->mod->select($select, 'v_kartu_stok', NULL, $where, NULL, $where_like, $order);\r\r\n\t\t$query = $this->mod->select($select, 'v_kartu_stok', NULL, $where, NULL, $where_like, $order, $limit);\r\r\n\r\r\n\t\t$response['data'] = array();\r\r\n\t\tif ($query<>false) {\r\r\n\t\t\t$no = $limit['start']+1;\r\r\n\t\t\tforeach ($query->result() as $val) {\r\r\n\t\t\t\t$departmen = '';\r\r\n\t\t\t\tif($val->kartu_stok_referensi != '')\r\r\n\t\t\t\t{\r\r\n\t\t\t\t\tif(strpos($val->kartu_stok_referensi, 'BKB') !== false)\r\r\n\t\t\t\t\t{\r\r\n\t\t\t\t\t\t$selectDepartmen = 'departemen_nama';\r\r\n\t\t\t\t\t\t$whereDepartmen['data'][] = array(\r\r\n\t\t\t\t\t\t\t'column' => 'keluar_barang_nomor',\r\r\n\t\t\t\t\t\t\t'param' =>\t $val->kartu_stok_referensi\r\r\n\t\t\t\t\t\t);\r\r\n\t\t\t\t\t\t$queryDepartmen = $this->mod->select($selectDepartmen, 'v_bkb', NULL, $whereDepartmen, NULL, NULL, NULL);\r\r\n\t\t\t\t\t\tif($queryDepartmen)\r\r\n\t\t\t\t\t\t{\r\r\n\t\t\t\t\t\t\t$departmen = $queryDepartmen->row_array();\r\r\n\t\t\t\t\t\t}\r\r\n\t\t\t\t\t}\r\r\n\t\t\t\t}\r\r\n\t\t\t\t$response['data'][] = array(\r\r\n\t\t\t\t\t$no,\r\r\n\t\t\t\t\tdate(\"d/m/Y\", strtotime($val->kartu_stok_tanggal)),\r\r\n\t\t\t\t\t$val->kartu_stok_referensi,\r\r\n\t\t\t\t\t$departmen['departemen_nama'],\r\r\n\t\t\t\t\t$val->barang_kode,\r\r\n\t\t\t\t\t$val->barang_nama,\r\r\n\t\t\t\t\t$val->kartu_stok_masuk,\r\r\n\t\t\t\t\t$val->satuan_nama,\r\r\n\t\t\t\t\t$val->kartu_stok_keterangan,\r\r\n\t\t\t\t);\r\r\n\t\t\t\t$no++;\r\r\n\t\t\t}\r\r\n\t\t}\r\r\n\r\r\n\t\t$response['recordsTotal'] = 0;\r\r\n\t\tif ($query_total<>false) {\r\r\n\t\t\t$response['recordsTotal'] = $query_total->num_rows();\r\r\n\t\t}\r\r\n\t\t$response['recordsFiltered'] = 0;\r\r\n\t\tif ($query_filter<>false) {\r\r\n\t\t\t$response['recordsFiltered'] = $query_filter->num_rows();\r\r\n\t\t}\r\r\n\r\r\n\t\techo json_encode($response);\r\r\n\t}", "title": "" }, { "docid": "aa18ae47559eefe8506a3368594582cb", "score": "0.5649171", "text": "function datajabatanpengesah()\n\t\t{\n\t\t\t$session_data = $this->session->userdata('setneg_in');\n\t\t\t$groupid = $session_data['groupid'];\n\t\t\t$userid = $session_data['userid'];\n\t\t\t\n\t\t\t$where = ($groupid == 10 ? 'where user_id='.$userid.'' : '');\n\t\t\t$table = '(select * from ttd_pengesah '.$where.') as ttd_pengesah';\n\t\t\t$column = array('ttd_pengesah_id','ttd_pengesah_jabatan','ttd_pengesah_nama','ttd_pengesah_gambar','ttd_pengesah_status');\n\t\t\t$order = array('ttd_pengesah_id' => 'asc');\n\t\t\t\n\t\t\t$this->db->from($table);\n\t\t\t$i = 0;\n\t\t\tforeach ($column as $item) \n\t\t\t{\n\t\t\t\tif(isset($_POST['search']['value'])){\n\t\t\t\t\t($i===0) ? $this->db->like($item, $_POST['search']['value']) : $this->db->or_like($item, $_POST['search']['value']);\n\t\t\t\t}\n\t\t\t\t$column[$i] = $item;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\t\n\t\t\tif(isset($_POST['order']))\n\t\t\t{\n\t\t\t\t$this->db->order_by($column[$_POST['order']['0']['column']], $_POST['order']['0']['dir']);\n\t\t\t} \n\t\t\telse if(isset($order))\n\t\t\t{\n\t\t\t\t$order = $order;\n\t\t\t\t$this->db->order_by(key($order), $order[key($order)]);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "4afd31b62bf432c978b9de530ac84869", "score": "0.5641896", "text": "function get_progress_wilayah($tingkatan, $prov = TRUE, $kab = NULL, $kec = NULL, $desa = NULL){\n if ($tingkatan == 1){\n $values = get_from_pcl();\n }\n if ($tingkatan == 2){\n $values = get_from_pml();\n }\n if ($tingkatan == 3){\n $values = get_from_editor();\n }\n $t = name_array($values);\n if ($prov == TRUE){\n if (!is_null($kab)){\n if (!is_null($kec)){\n if (!is_null($desa)){\n $progres_desa = array();\n $filter_desa = get_filter_wilayah($tingkatan,$kab,$kec,$desa);\n if (!is_null($filter_desa)){\n $t = transposeData($filter_desa);\n //get nama desa\n $a = array_unique($t[7]);\n sort($a);\n $i = 0;\n for($i==0;$i<count($a);$i++){\n $progres_desa[$i] = get_filter_wilayah($tingkatan,$kab,$kec,$desa,$a[$i]);\n $progres_desa[$i] = count($progres_desa[$i]);\n }\n $gabung = array($a,$progres_desa);\n }else{\n $gabung = array(null,null);\n }\n }else{\n $progres_kec = array();\n $filter_kec = get_filter_wilayah($tingkatan,$kab,$kec);\n if (!is_null($filter_kec)){\n $t = transposeData($filter_kec);\n //get nama desa\n $a = array_unique($t[6]);\n sort($a);\n $i = 0;\n for($i==0;$i<count($a);$i++){\n $progres_kec[$i] = get_filter_wilayah($tingkatan,$kab,$kec,$a[$i]);\n $progres_kec[$i] = count($progres_kec[$i]);\n }\n $gabung = array($a,$progres_kec);\n }else{\n $gabung = array(null,null);\n }\n }\n }else{\n $progres_kab = array();\n $filter_kab = get_filter_wilayah($tingkatan,$kab);\n $t = transposeData($filter_kab);\n //get nama kecamatan\n $a = array_unique($t[5]);\n sort($a);\n $i = 0;\n for($i==0;$i<count($a);$i++){\n $progres_kab[$i] = get_filter_wilayah($tingkatan,$kab,$a[$i]);\n $progres_kab[$i] = count($progres_kab[$i]);\n }\n $gabung = array($a,$progres_kab);\n }\n }else{\n $progres_prov = array();\n $a = array_unique($t['Kabupaten']);\n sort($a);\n $i = 0;\n for($i==0;$i<count($a);$i++){\n $progres_prov[$i] = get_filter_wilayah($tingkatan,$a[$i]);\n $progres_prov[$i] = count($progres_prov[$i]);\n }\n $gabung = array($a,$progres_prov);\n }\n }\n return $gabung;\n }", "title": "" }, { "docid": "71a27b87820bc217e0cf91e2d3e2bd62", "score": "0.5635879", "text": "function cek_ketersediaan($table,$where){\t\t\r\n\t\treturn $this->db->get_where($table,$where);\r\n\t}", "title": "" }, { "docid": "b5707c514f7f3bc85b8226d50d1201f2", "score": "0.5630892", "text": "public function getTotSumurByEndSipa($wil){\n if($wil == ''){\n $this->db->select('no_sumur');\n $this->db->from('t_sumur');\n $this->db->join('t_perusahaan', 't_perusahaan.id_perusahaan = t_sumur.id_perusahaan', 'left');\n $this->db->where('DATEDIFF(t_sumur.tgl_ahir_sipa, CURRENT_DATE()) <= 90');\n\t\t $this->db->where('DATEDIFF(t_sumur.tgl_ahir_sipa, CURRENT_DATE()) >= 0');\n return $this->db->get('');\n } else {\n $this->db->select('no_sumur');\n $this->db->from('t_sumur');\n $this->db->join('t_perusahaan', 't_perusahaan.id_perusahaan = t_sumur.id_perusahaan', 'left');\n $this->db->where('DATEDIFF(t_sumur.tgl_ahir_sipa, CURRENT_DATE()) <= 90');\n\t\t $this->db->where('DATEDIFF(t_sumur.tgl_ahir_sipa, CURRENT_DATE()) >= 0');\n $this->db->where('id_kota', $wil);\n return $this->db->get('');\n }\n }", "title": "" }, { "docid": "22dc926b983aee83be4c75bbd3e27e49", "score": "0.56296235", "text": "public function getrecordCountBuyerSearch() {\n\t\tif(!empty($_POST['formdata'])){\n\t\t\tparse_str($_POST['formdata'], $searcharray);\n\t\t}\n\t\t$where =\" where role=2 and \".$this->profile.\".amount!=''\";\n\t\t\n\t\tif(!empty($searcharray['field_1_bu'])){\n\t\t\t $field_1 = implode(\"','\",$searcharray['field_1_bu']);\n\t\t\t $where .= \" AND \".$this->profile.\".field_1 in('\".$field_1.\"')\";\n\t\t}\n\t\tif(!empty($searcharray['interested_in_bu'])){\n\t\t\t $interested_in = implode(\"','\",$searcharray['interested_in_bu']);\n\t\t\t $where .= \" AND \".$this->profile.\".interested_in in('\".$interested_in.\"')\";\n\t\t}\n\t\tif(!empty($searcharray['field_9'])){\n\t\t\t$field_9 = implode(\"','\",$searcharray['field_9']);\n\t\t\t $where .= \" AND \".$this->company_sector.\".cname IN ('\".$field_9.\"')\";\n\t\t}\n\t\tif(!empty($searcharray['field_2_bu'])){\n\t\t\t\t$field_2 = implode(\"','\",$searcharray['field_2_bu']);\n\t\t\t $where .= \" AND \".$this->industries_preference.\".ipname IN ('\".$field_2.\"')\";\n\t\t\t\n\t\t\t}\n\t\tif(!empty($searcharray['field_5_bu'])){\n\t\t\t\t $where .= \" AND \".$this->profile.\".field_5 like'\".$searcharray['field_5_bu'].\"%'\";;\n\t\t}\n\t\tif(!empty($searcharray['invest-1-bu']) \n\t\t\t\t&& !empty($searcharray['invest-2-bu'])\n\t\t\t\t&& !empty($searcharray['invest-3-bu'])\n\t\t\t\t&& !empty($searcharray['invest-4-bu'])\n\t\t\t){\n\t\t\t\tif($searcharray['invest-2-bu']=='K' && $searcharray['invest-4-bu']=='K'){\n\t\t\t\t\t$from = $searcharray['invest-1-bu']*1000;\n\t\t\t\t\t$to = $searcharray['invest-3-bu']*1000;\n\t\t\t\t}\n\t\t\t\tif($searcharray['invest-2-bu']=='K' && $searcharray['invest-4-bu']=='M'){\n\t\t\t\t\t$from = $searcharray['invest-1-bu']*1000;\n\t\t\t\t\t$to = $searcharray['invest-3-bu']*1000000;\n\t\t\t\t}\n\t\t\t\tif($searcharray['invest-2-bu']=='K' && $searcharray['invest-4-bu']=='B'){\n\t\t\t\t\t$from = $searcharray['invest-1-bu']*1000;\n\t\t\t\t\t$to = $searcharray['invest-3-bu']*1000000000;\n\t\t\t\t}\n\t\t\t\tif($searcharray['invest-2-bu']=='K' && $searcharray['invest-4-bu']=='T'){\n\t\t\t\t\t$from = $searcharray['invest-1-bu']*1000;\n\t\t\t\t\t$to = $searcharray['invest-3-bu']*1000000000000;\n\t\t\t\t}\n\t\t\t\tif($searcharray['invest-2-bu']=='M' && $searcharray['invest-4-bu']=='M'){\n\t\t\t\t\t$from = $searcharray['invest-1-bu']*1000000;\n\t\t\t\t\t$to = $searcharray['invest-3-bu']*1000000;\n\t\t\t\t}\n\t\t\t\tif($searcharray['invest-2-bu']=='M' && $searcharray['invest-4-bu']=='B'){\n\t\t\t\t\t$from = $searcharray['invest-1-bu']*1000000;\n\t\t\t\t\t$to = $searcharray['invest-3-bu']*1000000000;\n\t\t\t\t}\n\t\t\t\tif($searcharray['invest-2-bu']=='M' && $searcharray['invest-4-bu']=='T'){\n\t\t\t\t\t$from = $searcharray['invest-1-bu']*1000000;\n\t\t\t\t\t$to = $searcharray['invest-3-bu']*1000000000000;\n\t\t\t\t}\n\t\t\t\tif($searcharray['invest-2-bu']=='B' && $searcharray['invest-4-bu']=='B'){\n\t\t\t\t\t$from = $searcharray['invest-1-bu']*1000000000;\n\t\t\t\t\t$to = $searcharray['invest-3-bu']*1000000000;\n\t\t\t\t}\n\t\t\t\tif($searcharray['invest-2-bu']=='B' && $searcharray['invest-4-bu']=='T'){\n\t\t\t\t\t$from = $searcharray['invest-1-bu']*1000000000;\n\t\t\t\t\t$to = $searcharray['invest-3-bu']*1000000000000;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$where .= \" AND \".$this->profile.\".field_4 >=\".$from.\" AND \".$this->profile.\".investmentto <=\".$to;\n\t\t }\n\t\t\n\t\tif(!empty($searcharray['sortby'])){\n\t\t\t\tif($searcharray['sortby']==1){\n\t\t\t\t\t$sortby =\" ORDER BY CAST(\".$this->profile.\".field_4 AS DECIMAL(20,2)) ASC\";\n\t\t\t\t}\n\t\t\t\telse if($searcharray['sortby']==2){\n\t\t\t\t\t$sortby =\" ORDER BY CAST(\".$this->profile.\".field_4 AS DECIMAL(20,2)) DESC\";\n\t\t\t\t}else{\n\t\t\t\t\t$sortby =\" ORDER BY \".$this->profile.\".user_id DESC\";\n\t\t\t\t}\n\t\t\t\t$Sql =\"select \".$this->users.\".*,\".$this->profile.\".* from \".$this->profile.\"\n\t\t\t\tleft join \".$this->users.\" on \".$this->users.\".id=\".$this->profile.\".user_id\".$where.\" group by \".$this->profile.\".user_id\".$sortby;\n\t\t\t}else{\n\t\t\t\t$Sql =\"select \".$this->users.\".*,\".$this->profile.\".* from \".$this->profile.\"\n\t\t\t\tleft join \".$this->users.\" on \".$this->users.\".id=\".$this->profile.\".user_id\n\t\t\t\tleft join \".$this->company_sector.\" on \".$this->profile.\".user_id=\".$this->company_sector.\".user_id\n\t\t\t\tleft join \".$this->industries_preference.\" on \".$this->profile.\".user_id=\".$this->industries_preference.\".user_id\"\n\t\t\t\t.$where.\" group by \".$this->profile.\".user_id\";\n\t\t\t }\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t$query = $this->db->query($Sql);\n\t\t$allcount = $query->num_rows();\n\t\treturn $allcount;\n\t\t}", "title": "" }, { "docid": "bbbfdc4b7b8d1cc482468a04c2372a05", "score": "0.56251675", "text": "function cekTransaksiteknisi($kode)\n {\n return $this->db->query(\"SELECT a.*, b.id_petugas, b.full_name, c.biaya, c.tanggal_selesai, c.garansi,\n CASE \n WHEN a.status = 'N' THEN 'Masih dalam perbaikan'\n ELSE 'Perbaikan sudah selesai' \n END AS status_transaksi \n FROM transaksiteknisi a, petugas b, selesaiservice c \n WHERE a.id_petugas = b.id_petugas AND a.id_transaksi = '$kode'\n GROUP BY a.id_transaksi\"); \n }", "title": "" }, { "docid": "4399c282d96823b10abe97b108b5e0c7", "score": "0.5624368", "text": "public function getListKelompokTaniTotal($kode_kec)\n {\n $db = Database::connect();\n $query = $db->query(\"select deskripsi as nama_kec from tbldaerah where id_daerah='$kode_kec'\");\n $row = $query->getRow();\n \n $query2 = $db->query(\"SELECT count(id_poktan) as jum FROM tb_poktan where kode_kec ='$kode_kec'\");\n $row2 = $query2->getRow();\n \n $query3 = $db->query(\"select id_poktan,id_gap,kode_desa,kode_kec,nama_poktan,ketua_poktan,alamat,jum_anggota,b.nm_desa\n from tb_poktan a\n left join tbldesa b on a.kode_desa=b.id_desa \n where kode_kec='$kode_kec' and simluh_jenis_kelompok !='P2L'\n ORDER BY kode_desa, nama_poktan\");\n\n $results = $query3->getResultArray();\n\n // $query4 = $db->query(\"SELECT count(distinct no_ktp) as jumangg FROM tb_poktan_anggota where id_poktan ='id_poktan'\");\n //$row3 = $query4->getRow();\n\n //$query5 = $db->query(\"SELECT count(distinct nik) as jup from tb_rdkk_upload where kode_poktan='id_poktan'\");\n // $row4 = $query5->getRow();\n\n $data = [\n 'jum' => $row2->jum,\n 'nama_kec' => $row->nama_kec,\n 'table_data' => $results,\n // 'jumangg' => $row3->jumangg,\n // 'jup' => $row4->jup\n ];\n\n return $data;\n }", "title": "" }, { "docid": "8c40e44c4a67ded57abae122e00779a1", "score": "0.5623713", "text": "function cek_kota($prov) {\n $lihat = $this->db->query(\"SELECT\n ZREPORT_M_KOTA.KD_KOTA,\n ZREPORT_M_KOTA.NM_KOTA,\n ZREPORT_M_PROVINSI.NM_PROV,\n ZREPORT_M_PROVINSI.KD_PROV,\n ZREPORT_M_KOTA.KD_PROP\n FROM\n ZREPORT_M_KOTA,\n ZREPORT_M_PROVINSI\n WHERE\n ZREPORT_M_KOTA.KD_PROP = ZREPORT_M_PROVINSI.KD_PROV\n AND ZREPORT_M_PROVINSI.KD_PROV != '0001'\n AND ZREPORT_M_PROVINSI.KD_PROV != '1092'\n AND ZREPORT_M_PROVINSI.KD_PROV='\" . $prov . \"'\");\n return $lihat->result_array();\n }", "title": "" }, { "docid": "439feac9599d3102db0228e0e75d7ed5", "score": "0.56184477", "text": "function belum_punya_kelas()\n{\n\treturn $this->db->query(\"SELECT id_siswa,nis,nama_siswa,kelamin,status FROM data_siswa WHERE nis NOT IN (SELECT nis FROM tbl_ruangan) ORDER BY nama_siswa ASC\");\n}", "title": "" }, { "docid": "2b2b41b7c2bbc9004a435a3477318f62", "score": "0.56183827", "text": "function bulan_pesan($eoq) {\n $incremental=12/$eoq;\n // array penampung bulan pesanan\n $arr_bulan_pesan=array();\n $arr_bulan=array();\n\n //perulangan yg mengisi bulan pesan\n for ($i=$incremental; $i <=12; $i+=$incremental) {\n $arr_bulan_pesan[]=round($i);\n }\n\n //mengembalikan nilai bulan pesan.\n return $arr_bulan_pesan;\n // return $data;\n}", "title": "" }, { "docid": "50e824d20d2919a05d4b37b7b2a639ce", "score": "0.5617753", "text": "function searchingdiary ($iduser,$pesan){\n\tglobal $database;\n\t$hasil = \"maaf ya yang selama ini aku cari belum ketemu\";\n\t$datas = $database('catatan',[\n\t\t'no',\n\t\t'id',\n\t\t'waktu',\n\t\t'pesan',\n\t\t], [ \n\t\t\t'pesan[~]' => $pesan,\n\t\t]);\n\tif($jml > 0){\n\t\t$hasil = \" $jml catatan diary selalu kusimpan dihati \\n\";\n\t\t$n = 0;\n\t\tforeach ($datas as $data ) {\n\t\t\t# code...\n\t\t\t$n++;\n\t\t\t$hasil .= \"\\n$n. \".substr($data['pesan'],0,10). \"... \\n '$data[waktu]'\\n\";\n\t\t\t$hasil .= \"\\n /view\\_$data[no]\\n\";\n\t\t}\n\t}\n\treturn $hasil;\n}", "title": "" }, { "docid": "b164c7e3afa50cf5f2649ec818c16627", "score": "0.5616077", "text": "public function search($jns_saksi)\n {\n $query=\"select*from was.Was9_inspeksi where jenis_saksi='\".$jns_saksi.\"' and no_register='\".$no_register.\"' and id_tingkat='\".$_SESSION['kode_tk'].\"' \n and id_kejati='\".$_SESSION['kode_kejati'].\"' and id_kejari='\".$_SESSION['kode_kejari'].\"' \n and id_cabjari='\".$_SESSION['kode_cabjari'].\"'\";\n // print_r($query);\n // exit();\n $keyWord = htmlspecialchars($_GET['cari'], ENT_QUOTES);\n if($_GET['cari']!=''){\n // $query .=\" where upper(nama) like'%\".strtoupper($keyWord).\"%'\";\n // $query .=\" or upper(jabatan) like'%\".strtoupper($keyWord).\"%'\";\n // $query .=\" or upper(instansi) like'%\".strtoupper($keyWord).\"%'\";\n }\n\n\n $jml = Yii::$app->db->createCommand(\" select count(*) from (\".$query.\")a \")->queryScalar(); \n $dataProvider = new SqlDataProvider([\n 'sql' => $query,\n 'totalCount' => (int)$jml,\n 'pagination' => [\n 'pageSize' => 10,\n ]\n ]);\n $this->load($params);\n if (!$this->validate()) {\n\n return $dataProvider;\n }\n return $dataProvider;\n }", "title": "" }, { "docid": "039337b021aee0cd43b988bea7aaa430", "score": "0.561393", "text": "function get_sum()\n\t{\n\t\t$this->db->query('select sum(jumlah) from pemasukan1');\n\t}", "title": "" }, { "docid": "c2a9bfcc243b671686819e8a3f5b288e", "score": "0.5606531", "text": "public function getall()\n\t{\n// JOIN `tb_kelurahan` ON\n// `tb_kelurahan`.`kode_lurah`=`tb_sekolah`.`kode_lurah_sekolah`\n// ;\")->result_array();\n\nreturn $this->db->query(\"SELECT *,\n\t\t\t\t\tSUM(`tb_siswasekolah`.`siswa`) AS jml_siswa_lk,\n\t\t\t\t\tSUM(`tb_siswasekolah`.`siswi`) AS jml_siswa_pr, \n\t\t\t\t\t`tb_kelurahan`.`nama_lurah`\n\t\t\t\t\tFROM `tb_siswasekolah`\n\t\t\t\t\tJOIN `tb_sekolah` ON tb_siswasekolah.`sekolah_kode`=`tb_sekolah`.`kode_sekolah` \n\t\t\t\t\tJOIN `tb_kelurahan` ON tb_sekolah.`kode_lurah_sekolah`=`tb_kelurahan`.`kode_lurah` \n\t\t\t\t\tGROUP BY kode_sekolah;\")->result_array();\n\t\t\n\t}", "title": "" }, { "docid": "c7e24b112b634c7f4c24fd99efd0ad31", "score": "0.5604545", "text": "function jumlah_powerdall(){\n\t\t// return $this->db->query($query)->result();\n\t\tdate_default_timezone_set(\"Asia/Makassar\");\n\t\t$kondisi=date(\"m\");\n\t\t$query = \"SELECT SUM(power) as powerm FROM power_s2d WHERE m=$kondisi\";\n\t\treturn $this->db->query($query)->result();\n\t}", "title": "" }, { "docid": "e3a7118290b671f3d7c8f238d939a574", "score": "0.5600461", "text": "function tampil_jenis()\n\t{\n\t\t$ambil = $this->koneksi->query(\"SELECT * FROM jenis\");\n\t\t//2.pecah ke array dan diperulangkan\n\t\twhile($pecah = $ambil->fetch_assoc())\n\t\t{\n\t\t\t//3.gabungan array ke semuadata (array multidemensi)\n\t\t\t$semuadata[] = $pecah;\n\t\t}\n\t\t//4.outputkan semua sebagai hasil akhir\n\t\treturn $semuadata;\n\t}", "title": "" }, { "docid": "69325e3ff564bbddc84d375eccfef7e1", "score": "0.5597727", "text": "protected function kembalikanStok($qty,$modObatAlkesPasien){\n $ruanganid = Yii::app()->user->getState('ruangan_id'); //Retur harus berdasarkan tempat penjualan\n $modStokObat = StokobatalkesT::model()->findAllByAttributes(array('obatalkes_id'=>$modObatAlkesPasien->obatalkes_id, 'ruangan_id'=>$ruanganid), array('order'=>'tglstok_in ASC'));\n// $sql = \"SELECT stokobatalkes_id,qtystok_in,qtystok_out,qtystok_current FROM stokobatalkes_t WHERE obatalkes_id = $idobatAlkes AND ruangan_id = $ruanganid ORDER BY tglstok_in ASC\";\n// $stoks = Yii::app()->db->createCommand($sql)->queryAll();\n $selesai = false;\n foreach ($modStokObat as $i => $stokObat) {\n if(($qty <= $stokObat->qtystok_out) && ($qty > 0)) {\n $stokObat->qtystok_out = $stokObat->qtystok_out - $qty;\n $stokObat->qtystok_in = $stokObat->qtystok_in + $qty;\n $qty = 0;\n } else if(($qty > $stokObat->qtystok_out) && ($qty > 0)){\n $selisih = $qty - $stokObat->qtystok_out;\n $stokObat->qtystok_in = $stokObat->qtystok_in + $stokObat->qtystok_out;\n $stokObat->qtystok_out = 0;\n $qty = $selisih;\n } else{\n break;\n }\n $stokObat->qtystok_current = $stokObat->qtystok_in - $stokObat->qtystok_out;\n $stokObat->save(); //update data perubahan\n }\n }", "title": "" }, { "docid": "b331f50aee4a50c316c11c3703ef9591", "score": "0.5592169", "text": "function spefisik($dataid_pindah_penduduk)\n\t{\n\n\t\t# codenya sql sepert select*from penduduk where nik = $datanik dimna $datanik adalah yg sudah dipilih. jadi cuma 1 row.\n\t\t$query = $this->db->query(\"SELECT*FROM pindah_penduduk left join penduduk on pindah_penduduk.nik = penduduk.nik where id_pindah_penduduk = $dataid_pindah_penduduk\");\n\n\t\t// itu adalah perintah sql join 2 table, yaitupenduduk dan beda nama, karena data yanglenkap ada ditable pendudukjadiharus dijoin, \n\t\treturn $query->row();\n\t\t\n\t}", "title": "" }, { "docid": "8cdf5c5bca832b04feb3f142c8ebdc41", "score": "0.5591348", "text": "function pertanyaanSaya()\n\t{\n\t\t$header['title'] = 'Pendidik - Pertanyaan Saya';\n\t\t$this->menu['active'] = 'pertanyaanSaya';\n\t\t$this->menu['breadcrumb'] = 'Pertanyaan Saya';\n\t\t$record['pertanyaan'] = $this->model->rawQuery(\"\n\t\t\tSELECT \n\t\t\tpermasalahan.id,\n\t\t\tpermasalahan.teks,\n\t\t\tpermasalahan.tanggal,\n\t\t\tpermasalahan.jumlah_komen,\n\t\t\tpermasalahan.jumlah_dilihat,\n\t\t\tpermasalahan.status,\n\t\t\tpermasalahan.beku,\n\t\t\tkategori.nama AS kategori,\n\t\t\tpengguna.nama AS siapa\n\t\t\tFROM permasalahan\n\t\t\tINNER JOIN kategori ON kategori.id = permasalahan.kategori\n\t\t\tINNER JOIN pengguna ON pengguna.id = permasalahan.siapa\n\t\t\tWHERE permasalahan.siapa ='\".$this->session->userdata('loginSession')['id'].\"'\n\t\t\tORDER BY permasalahan.tanggal DESC\n\t\t\t\")->result();\n\t\t$this->load->view('statis/header',$header);\n\t\t$this->load->view('tenagapendidik/menu',$this->menu);\n\t\t$this->load->view('tenagapendidik/pertanyaan-saya',$record);\n\t\t$this->load->view('statis/footer');\n\t}", "title": "" }, { "docid": "c467f89b84febda9d97a7f228094785b", "score": "0.5588209", "text": "function laporanFilter(){\n\n\t$tglAwal = $this->input->post('tglawal');\n\n\t$tglAkhir = $this->input->post('tglakhir');\n\n\t$key = array(\n\n\t\t'tgl >='=> $tglAwal,\n\n\t\t'tgl <='=> $tglAkhir\n\n\t);\n\n\t$this->session->set_flashdata('tglAwal',$tglAwal);\n\n $this->session->set_flashdata('tglAkhir',$tglAkhir);\n\n\t$data['result'] = $this->MPenerimaan_grey->getByRangeTgl($key);\n\n\t$this->load->view('Lap-transaksi/VLapPenerimaangrey',$data);\t\n\n\n}", "title": "" }, { "docid": "a8cd2188bb4cebd9be41648de892effc", "score": "0.5579554", "text": "function getDataLaporan($id_spp, $id_kelas){\n return $this->db->query('SELECT siswa.nisn, siswa.nis, siswa.nama, spp.jumlah_angsuran AS jumlah_tagihan, spp.nominal_angsuran*siswa_spp.angsuran AS jumlah_angsuran, spp.jumlah_angsuran-(spp.nominal_angsuran*siswa_spp.angsuran) AS jumlah_tanggungan\n FROM siswa_spp\n INNER JOIN siswa ON siswa_spp.id_siswa=siswa.id_siswa\n INNER JOIN spp ON siswa_spp.id_spp=spp.id_spp\n WHERE siswa.id_kelas = '.$id_kelas.' AND siswa_spp.id_spp = '.$id_spp)->result_array();\n }", "title": "" }, { "docid": "7c152ebb9da85292a87288002a134f84", "score": "0.5577435", "text": "public static function generateWhere($kolom,$value,$jenis,$sambungan=\"\",$lpad=\"\"){\n\t $hasil = '';\n\t $sambungan = $sambungan == '' ? 'AND' : $sambungan;\n\t $temphasil = ' '.$sambungan.' '.$lpad.$kolom;\n\t if($jenis == '='){\n\t $value = is_int($value) ? $value : '\"'.$value.'\"';\n\t $hasil = $temphasil.' = '.$value.' ';\n }\n\t if($jenis == 'like'){\n\t $hasil = $temphasil.' LIKE \"%'.$value.'%\" ';\n }\n return $hasil;\n }", "title": "" }, { "docid": "5159fa4b0c62abbb7d9cc30dd85883a2", "score": "0.5576482", "text": "function hitungtotaltiket($tanggal =\"\", $tanggal2=\"\",$limit=\"\"){\n $sql = \"\n SELECT r.type, r.kategori_id, kategori_nama, count(1) as total from data_record r inner join data_kategori k on k.kategori_id = r.kategori_id where (r.type = 'Problem' OR r.type = 'Request') AND DATE(tgl_input) BETWEEN '$tanggal' AND '$tanggal2' group by kategori_id order by total DESC\n \";\n $sql2 = \"limit $limit\";\n\n if($limit != \"all\"){\n $sql .=$sql2;\n }\n $result = $this->db->query($sql);\n return $result->result();\n }", "title": "" }, { "docid": "de8c9fc905966068676265aedc84cf4c", "score": "0.55751026", "text": "function obliczSQ($populacja,$key)\n\t{\n\t\t$this->tablica_SQ[$key] = round(($populacja/$this->SD_c),2,PHP_ROUND_HALF_UP);\n\t\t\n\t}", "title": "" }, { "docid": "2201945be37cf50efdf498a0011f9d5e", "score": "0.55739856", "text": "function get_sum_prod_slit($yearmonth,$periode){\n\t\t\n\t\tif ($periode == 'ym'){\n\t\t\t/*\n\t\t\t * JIka periode adalah Tahun dan tanggal\n\t\t\t */\n\t\t\t$this->db->where_in('DATE_FORMAT(date_add,\"%Y-%m\")',$yearmonth);\n\t\t\t$this->db->group_by('DATE_FORMAT(date_add,\"%Y-%m\")');\n\t\t}else{\n\t\t\t/*\n\t\t\t * jika periode 1 tahun\n\t\t\t * digunakan untuk grafik Pie mentotalkan keseluruhan\n\t\t\t */\n\t\t\t\n\t\t\t$this->db->where_in('DATE_FORMAT(date_add,\"%Y\")',date('Y'));\n\t\t\t$this->db->group_by('DATE_FORMAT(date_add,\"%Y\")');\n\t\t}\n\t\t$this->db->select('SUM(qty_produksi) as qty_produksi,DATE_FORMAT(date_add,\"%Y-%m\") as yearmonth');\n\t\t$this->db->where('deleted',1);\n\t\t$this->db->from('tb_produksi');\t\t\n\t\t$sql = $this->db->get();\t\t\n\t\t//echo '<pre>';print_r($sql->result());die;\n\t\tif ($sql->num_rows() > 0){\n\t\t\tforeach ($sql->result() as $row){\n\t\t\t\t$qty_produksi = $row->qty_produksi;\n\t\t\t\t$qty_sliting = $this->get_qty_sliting($row->yearmonth);\n\t\t\t\t$slitting = $qty_sliting / $qty_produksi * 100;\n\t\t\t\t$produksi = ($qty_produksi - $qty_sliting) / $qty_produksi * 100;\t\n\t\t\t\t$data['yearmonth'][] = $row->yearmonth;\t\t\t\t\n\t\t\t\t$data['slitting'][] = number_format($slitting,2,'.',',');\n\t\t\t\t$data['produksi'][] = number_format($produksi,2,'.',',');\n\t\t\t\t$data['rata'][] = number_format($slitting / 2,2,'.',',');\n\t\t\t}\t\t\t\t\n\t\t\t\n\t\t}else{\n\t\t\t$data['yearmonth'][] = date('Y-m');\n\t\t\t$data['slitting'][] = 0;\n\t\t\t$data['produksi'][] = 0;\n\t\t\t$data['rata'][] = 0;\n\t\t}\n\t\t\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "516ae9c1ca2206d3bc3f1ca2d676d5e9", "score": "0.5570589", "text": "function getDataPenilaian($bulan, $tahun, $pegawai_id, $kriteria_id)\r\n{\r\n global $db;\r\n $textQ = '\r\n SELECT penilaian.*, penilaian.id as penilaian_id\r\n FROM penilaian\r\n JOIN kriteria ON kriteria.id = penilaian.kriteria_id\r\n WHERE pegawai_id = :pegawai_id AND kriteria_id = :kriteria_id\r\n AND tahun = :tahun AND bulan = :bulan';\r\n $query = $db->prepare($textQ);\r\n $query->bindValue(':kriteria_id', $kriteria_id, PDO::PARAM_STR);\r\n $query->bindValue(':pegawai_id', $pegawai_id, PDO::PARAM_STR);\r\n $query->bindValue(':tahun', $tahun, PDO::PARAM_STR);\r\n $query->bindValue(':bulan', $bulan, PDO::PARAM_STR);\r\n $query->execute();\r\n return $query->fetch(PDO::FETCH_OBJ);\r\n}", "title": "" } ]
5114d24427bcf2da445c23904ade4278
Formats a string containing the fullyqualified path to represent a metric_descriptor resource.
[ { "docid": "af3337cc7fe055e9c0315b81dc2555d9", "score": "0.5054786", "text": "public static function metricDescriptorName($project, $metricDescriptor)\n {\n return self::getMetricDescriptorNameTemplate()->render([\n 'project' => $project,\n 'metric_descriptor' => $metricDescriptor,\n ]);\n }", "title": "" } ]
[ { "docid": "d8258fed0b527d62fa5cc0d585736d25", "score": "0.50828975", "text": "public static function format($pathData): string;", "title": "" }, { "docid": "864019006227a5a64be3a31967778e60", "score": "0.502981", "text": "public static function pathFormatter()\n {\n }", "title": "" }, { "docid": "9352dcd5974fc7f5ab4c338af611e9bc", "score": "0.48685965", "text": "public static function projectMetricDescriptorName($project, $metricDescriptor)\n {\n return self::getProjectMetricDescriptorNameTemplate()->render([\n 'project' => $project,\n 'metric_descriptor' => $metricDescriptor,\n ]);\n }", "title": "" }, { "docid": "3e1967b3eb47019e1daa4df65bd19027", "score": "0.47103387", "text": "public static function folderMetricDescriptorName($folder, $metricDescriptor)\n {\n return self::getFolderMetricDescriptorNameTemplate()->render([\n 'folder' => $folder,\n 'metric_descriptor' => $metricDescriptor,\n ]);\n }", "title": "" }, { "docid": "89fdbeb7937f30b8a016419d880590d7", "score": "0.46946448", "text": "public function formatUri($path) {\n return $path;\n }", "title": "" }, { "docid": "1c72709e22633981c76c6a2b3483a068", "score": "0.4679749", "text": "public static function formatPath($path) {\n\t\tif (substr($path, -1) !== '/') {\n\t\t\t$path .= '/';\n\t\t}\n\t\treturn $path;\n\t}", "title": "" }, { "docid": "3f78ca637103d0bc94de0ad0a5c71b70", "score": "0.46086615", "text": "public function getPathString();", "title": "" }, { "docid": "44eff56868cb45953af8d72c92e028b9", "score": "0.45186508", "text": "public static function formatPath($path) {\n\t\t\t$path = preg_replace (\"/^\\.\\//\", \"\", $path);\n\t\t\t$path = preg_replace (\"/\\/{2,}/\", \"/\", $path);\n\t\t\tif (!preg_match(\"/\\/$/\", $path)) {\n\t\t\t\t$path .= \"/\";\n\t\t\t}\n\t\t\t$path = preg_replace (\"/^\\//\", \"\", $path);\n\t\t\treturn $path;\n\t\t}", "title": "" }, { "docid": "0c5f65d32e0a2df628c7c2d12a1bd937", "score": "0.44574824", "text": "public function getFullPathAttribute()\n {\n if ($this->intitule == \" \") {\n $fullpath = $this->division->fullpath;\n } else {\n $fullpath = $this->division->fullpath . \" / \" . $this->intitule;\n }\n\n return \"{$fullpath}\";\n }", "title": "" }, { "docid": "0777bb2bb480a6eaeed4030ae396ff59", "score": "0.4415406", "text": "public function testConstraintDescriptionReturnsStringWhenCreateQualifiedIdentifier(): void\n {\n $nnSpecConst = ConceptConstraintDoubleBuilder::createNestedNameSpecifierConstraint($this)\n ->buildConstraintDescription('foo NestedNameSpecifier')\n ->getDouble();\n $idConst = ConceptConstraintDoubleBuilder::createIdentifierConstraint($this)\n ->buildConstraintDescription('bar Identifier')\n ->getDouble();\n \n $sut = DeclarationSpecifierConstraint::createQualifiedIdentifier(\n $nnSpecConst, \n $idConst\n );\n self::assertSame(\n \"Declaration specifier\\n\".\n \" Simple type specifier qualified identifier\\n\".\n \" foo NestedNameSpecifier\\n\".\n \" bar Identifier\", \n $sut->constraintDescription()\n );\n }", "title": "" }, { "docid": "669fbc336976295c8f1d3ecd5a509f03", "score": "0.4415383", "text": "function path_to_human($string = '') {\n $string = CAST_TO_STRING( $string );\n $string = preg_replace( '/[\\t\\s\\_\\-\\.\\=\\?\\+]/', ' ', $string );\n $string = preg_replace( '/\\s{2,}/', ' ', $string );\n $string = ucwords( strtolower( $string ) );\n return $string;\n}", "title": "" }, { "docid": "38909a9d01c36a936fc7701158622072", "score": "0.441132", "text": "public static function toNamespacedPath($path = null);", "title": "" }, { "docid": "6e982e3176fc0b8e52df262c81edd0b5", "score": "0.43732792", "text": "public function makePath(ResourceInterface $resource): string;", "title": "" }, { "docid": "bd472c9613954b4b539af217c06d8a3a", "score": "0.43507144", "text": "public static function pathf($url) {\r\n return str_replace('\\\\', '/', trim(strval($url)));\r\n }", "title": "" }, { "docid": "32349db973c2a1db3e7522aace0f5011", "score": "0.42943117", "text": "public static function getStorageDescriptorPath()\n {\n return preg_replace('/.php$/', '.json', __FILE__);\n }", "title": "" }, { "docid": "32349db973c2a1db3e7522aace0f5011", "score": "0.42943117", "text": "public static function getStorageDescriptorPath()\n {\n return preg_replace('/.php$/', '.json', __FILE__);\n }", "title": "" }, { "docid": "32349db973c2a1db3e7522aace0f5011", "score": "0.42943117", "text": "public static function getStorageDescriptorPath()\n {\n return preg_replace('/.php$/', '.json', __FILE__);\n }", "title": "" }, { "docid": "f57236b88d6b2e40ec4a939e1233f832", "score": "0.42834395", "text": "private static function prettyPath($path, $line=false) {\n\t\t$path = str_replace('\\\\', '/', $path);\n\t\t$shortPath = str_replace(APP_ROOT_DIR, '', $path);\n\t\t$file = basename($path);\n\t\treturn str_replace($file, \"<b>{$file}</b>\", $shortPath).($line? \":{$line}\": '');\n\t}", "title": "" }, { "docid": "2096576956171953f772a619c8f68323", "score": "0.42754868", "text": "public static function format($path, $slashes = false, $capitals = false)\n {\n if ($capitals === false) {\n $path = strtolower($path);\n }\n $path = str_replace(array('\\\\', '_'), array('/', '-'), $path);\n $path = preg_replace('/[^0-9a-z.\\-\\/]/i', '-', $path); // alphanumeric . - /\n $path = preg_replace('/[.\\-\\/](?=[.\\-\\/])/', '', $path); // no doubled up punctuation\n $path = trim($path, '.-/'); // no trailing (or preceding) dots, dashes, and slashes\n if (is_int($slashes) && $slashes > 0) {\n $path = explode('/', $path);\n $parts = implode('/', array_slice($path, 0, $slashes));\n if (count($path) > $slashes) {\n $parts .= '-'.implode('-', array_slice($path, $slashes));\n }\n $path = $parts;\n } elseif ($slashes === false) {\n $path = str_replace('/', '-', $path);\n }\n\n return $path;\n }", "title": "" }, { "docid": "81c8c432ddec5687540e500ec3f263a5", "score": "0.42741686", "text": "protected static function prefix($metric)\n {\n $prefix = config('datadog-helper.prefix');\n\n if (!$prefix) {\n return $metric;\n }\n\n return \"{$prefix}.{$metric}\";\n }", "title": "" }, { "docid": "7a778aca7d170d0eb880978791f9164b", "score": "0.42514974", "text": "protected function parseDescriptor($descriptor, &$type, &$id)\n {\n $delim = strpos($descriptor, ':');\n if (!$delim) {\n throw new \\InvalidArgumentException(\n sprintf(\n 'Incorrect descriptor: %s. Expected \"ExtensionKey:Class\".',\n $descriptor\n )\n );\n }\n\n $id = strtolower(substr($descriptor, 0, $delim));\n $type = ltrim(substr($descriptor, $delim + 1), ' ');\n }", "title": "" }, { "docid": "7844d884992cbd53df86295e3ea8fc8d", "score": "0.42229995", "text": "public static function convertPath(?string $path) : string\n {\n if (Strings::startsWith($path, '@')) {\n return Strings::ltrim($path, '@', 1);\n }\n $path_converter = static::config('path');\n return is_callable($path_converter) ? call_user_func($path_converter, $path ?? '') : ($path ?? $path_converter) ;\n }", "title": "" }, { "docid": "46ad5249e826301778a1a0c21489a838", "score": "0.42182517", "text": "protected function parsePath(string $path): string {\n return str_replace(['\\\\', '/', '.'], ['\\\\<wbr>', '/<wbr>', '.<wbr>'], $path);\n }", "title": "" }, { "docid": "f33d616f6ac69a2589baec91ad404b7c", "score": "0.4178441", "text": "public function registerPathParser($pattern, Callable $formatter)\n {\n $this->path_parsers[ $pattern ] = $formatter;\n }", "title": "" }, { "docid": "beac8d1c55d81e6997b3151012b584c2", "score": "0.41598547", "text": "protected function filename()\n {\n return 'metrics_' . time();\n }", "title": "" }, { "docid": "0372e006ec24657f083274757b53a74d", "score": "0.41431075", "text": "private function completePath(string $resource): string\n {\n if (substr($resource, 0, strlen((string) $this->rootpath)) == $this->rootpath) {\n return $resource;\n }\n\n return $this->rootpath\n . DIRECTORY_SEPARATOR . 'src'\n . DIRECTORY_SEPARATOR . 'main'\n . DIRECTORY_SEPARATOR . 'resources'\n . DIRECTORY_SEPARATOR . $resource;\n }", "title": "" }, { "docid": "8cbc6c77dc2311d8f16dd57b2ec276c3", "score": "0.4141866", "text": "public function toString()\n {\n return $this->path->toString();\n }", "title": "" }, { "docid": "0f970c14b9ccd8d96d4ad5706546c7d0", "score": "0.41268784", "text": "public function makePath(ResourceInterface $resource): string\n {\n $classname = get_class($resource);\n\n $prefix = config('jsonapi.repository.resource.namespace');\n\n // If no prefix is available, or it cannot be stripped from the resource's namespace,\n // the namespace should just default to the top-level type.\n if ( ! $prefix || ! Str::startsWith($classname, $prefix)) {\n return $resource->type();\n }\n\n $classname = ltrim(substr($classname, strlen($prefix)), '\\\\');\n\n // Dasherize path elements\n $segments = explode('\\\\', $classname);\n $segments = array_map(\n function ($segment) {\n return Str::snake($segment, '-');\n },\n $segments\n );\n\n // The final segment should not be trusted, but replaced with the resource type,\n // to avoid creating paths that don't match up with defined resource types.\n array_pop($segments);\n\n $segments[] = $resource->type();\n\n return implode('/', $segments);\n }", "title": "" }, { "docid": "61ff71e002967669aa63b7c57af849ca", "score": "0.4109785", "text": "protected function formatCacheInspectionLabel($label)\n {\n $labelPadLength = 40;\n $labelPadChar = '.';\n $labelPadRepeat = $labelPadLength - strlen($label);\n\n return \" {$label} \"\n . str_repeat($labelPadChar, $labelPadRepeat);\n }", "title": "" }, { "docid": "823a2e52a20349749661552b628985ce", "score": "0.40714112", "text": "public function toRouteDefinition()\n {\n $routes = [];\n\n foreach ($this->paths as $path) {\n $routes[] = sprintf(\n $this->getTemplate(), 'Resource: '.$this->name.'@'.$path->method,\n $this->implodeArray($this->getMiddleware($path)),\n var_export($path->path, true), $this->implodeArray($path->where),\n var_export($path->domain, true), var_export($this->name, true),\n var_export($this->reflection->name, true), $this->implodeArray([$path->method]),\n $this->implodeArray($this->getNames($path))\n );\n }\n\n return implode(PHP_EOL.PHP_EOL, $routes);\n }", "title": "" }, { "docid": "e9f7a07224933936cbe806aa9a47b379", "score": "0.4069632", "text": "public static function monitoredResourceDescriptorName($project, $monitoredResourceDescriptor)\n {\n return self::getMonitoredResourceDescriptorNameTemplate()->render([\n 'project' => $project,\n 'monitored_resource_descriptor' => $monitoredResourceDescriptor,\n ]);\n }", "title": "" }, { "docid": "85a86fb220ad6648516439e0629ad9d9", "score": "0.4064039", "text": "public function describeMatch($format)\n {\n return sprintf($format, 'pattern', $this->_pattern);\n }", "title": "" }, { "docid": "de6f40967d7136c44c3878594842d119", "score": "0.40623617", "text": "public function getFQPath($path);", "title": "" }, { "docid": "f52576e9bbae4054e188220aa2b4d684", "score": "0.40572765", "text": "protected function getPath($resource)\n {\n return sprintf('%s/%s', $this->path, $resource);\n }", "title": "" }, { "docid": "fe1c7a9a5baba97649efad4f813f74c6", "score": "0.40522593", "text": "function human_to_path($string = '') {\n $string = CAST_TO_STRING( $string );\n $string = preg_replace( '/[\\s\\}\\{\\]\\[\\|\\,\\?\\<\\>]/', '-', $string );\n $string = preg_replace( '/\\[\\-\\_\\.]{2,}/', '$1', $string );\n $string = preg_replace( '{(.)\\1+}', '$1', $string );\n $string = strtolower( transliterate($string) );\n return $string;\n}", "title": "" }, { "docid": "e22007e7f9172a2deb641af67a85a36d", "score": "0.40306896", "text": "function csv_format_reporter_id( $p_reporter_id ) {\n\treturn csv_escape_string( user_get_name( $p_reporter_id ) );\n}", "title": "" }, { "docid": "e0d9247f2b154f138a6e600aaa1e6122", "score": "0.4011368", "text": "function _resource_path($path = '') {\n\t\treturn _base_path('resources') . ($path ? DIRECTORY_SEPARATOR . $path : $path);\n\t}", "title": "" }, { "docid": "fe4628c1fc0a45dbdbb77a540f1b2070", "score": "0.4008357", "text": "public function __toString()\r\n {\r\n return $this->path;\r\n }", "title": "" }, { "docid": "12763d3202b01198201f1a481cf776a5", "score": "0.4007329", "text": "public static function decodedPath()\n {\n }", "title": "" }, { "docid": "b8c641eef82ad8a0d295e4def4e37b25", "score": "0.400662", "text": "protected function standardizePath($path) {\n\t\treturn preg_replace('/\\\\\\\\+/', '/', $path);\n\t}", "title": "" }, { "docid": "b947bdd6b4825d272fff6a06cb92cd36", "score": "0.40036747", "text": "public function pattern($path)\n {\n return str_replace('/', '\\/', \n preg_replace('/;/', '',\n preg_replace('/:(\\w+)/', '(\\w+)', $path)));\n }", "title": "" }, { "docid": "74caa936e7bc0d790d2e50d7ee824bf7", "score": "0.4002958", "text": "public static function getPropertyPathObjectNotation($path, $key, $value)\n {\n $objectValue = str_replace('][', '.', $value);\n $objectValue = str_replace(array('[', ']'), '', $objectValue);\n\n return str_replace(array('[', ']'), '', $path).'['.$key.'].'.$objectValue;\n }", "title": "" }, { "docid": "c1c9683aa1949105e30a7c23a9377b9c", "score": "0.399833", "text": "public function testFailureReasonReturnsStringWhenCreateQualifiedIdentifierAndNestedNameSpecifierIsInvalid(): void\n {\n $nnSpec = $this->createNestedNameSpecifierDoubleFactory()->createDummy();\n $id = $this->createIdentifierDoubleFactory()->createDummy();\n $declSpec = $this->createDeclarationSpecifierDoubleFactory()\n ->createQualifiedIdentifierSimpleTypeSpecifier($nnSpec, $id);\n \n $nnSpecConst = ConceptConstraintDoubleBuilder::createNestedNameSpecifierConstraint($this)\n ->buildMatches($nnSpec, FALSE)\n ->buildFailureReason($nnSpec, 'foo reason')\n ->getDouble();\n $idConst = ConceptConstraintDoubleBuilder::createIdentifierConstraint($this)\n ->getDouble();\n \n $sut = DeclarationSpecifierConstraint::createQualifiedIdentifier(\n $nnSpecConst, \n $idConst\n );\n self::assertSame(\n \"Declaration specifier\\n\".\n \" foo reason\", \n $sut->failureReason($declSpec)\n );\n }", "title": "" }, { "docid": "839f3a2c9d9657bdc8b4b6e6e2087f6c", "score": "0.39918396", "text": "public function __toString()\n {\n return $this->path;\n }", "title": "" }, { "docid": "bf807305f52c7ed449e91d6b1f12d659", "score": "0.39836937", "text": "public function getFullPathAttribute()\n {\n $config = sprintf('filesystems.%s.root', $this->getDisk());\n\n $default = storage_path('app');\n\n $basePath = config($config, $default);\n\n return $basePath.DIRECTORY_SEPARATOR.$this->file_path;\n }", "title": "" }, { "docid": "ba81e90895b40a709a8fbdc63dad3e41", "score": "0.3974694", "text": "public function updateResourcePath(string $resourcePath, string $baseName, string $paramName): string\n {\n return str_replace(\n \"{\" . $baseName . \"}\",\n $this->apiClient->getSerializer()->toPathValue($paramName),\n $resourcePath\n );\n }", "title": "" }, { "docid": "67486fd29a5f4133f6b9a66e341099e5", "score": "0.39743805", "text": "private function getPathInput(): String\n {\n return trim($this->argument('path'));\n }", "title": "" }, { "docid": "8247fb1082db2d7055b545a5ac51336f", "score": "0.39734972", "text": "protected function _standardizePath($path)\n {\n return preg_replace('/\\\\\\\\+/', '/', $path);\n }", "title": "" }, { "docid": "83aba2e4eeecb5e6a706d6526634097f", "score": "0.3968082", "text": "public function format($root, $path)\n {\n $path = '/' . trim($path, '/');\n if ($this->formatHostUsing) {\n $root = call_user_func($this->formatHostUsing, $root);\n }\n if ($this->formatPathUsing) {\n $path = call_user_func($this->formatPathUsing, $path);\n }\n return trim($root . $path, '/');\n }", "title": "" }, { "docid": "6de990b7315f54979b56f963c78f055b", "score": "0.3964559", "text": "public static function getComputedString($pattern_path,$params = array()) {\n \n foreach ($params as $key => $value) {\n $pattern_path = str_replace(\"{\".$key.\"}\", $value, $pattern_path);\n }\n \n return $pattern_path;\n \n }", "title": "" }, { "docid": "c3af1948270e47fead606585cf3e6197", "score": "0.39636767", "text": "protected static function getLabel( $label ) {\n\t\t$capacity = disk_total_space('.');\n\t\t$freeCapacity = disk_free_space('.');\n\t\t$usedCapacity = $capacity - $freeCapacity;\n\t\t$percentage = round( $usedCapacity / $capacity, 2 ) *100;\n\t\t$label = str_replace( '{usage}', \\rsCore\\Core::functions()->readableFileSize( $usedCapacity ), $label );\n\t\t$label = str_replace( '{capacity}', \\rsCore\\Core::functions()->readableFileSize( $capacity ), $label );\n\t\t$label = str_replace( '{free}', \\rsCore\\Core::functions()->readableFileSize( $freeCapacity ), $label );\n\t\t$label = str_replace( '{percentage}', $percentage, $label );\n\t\treturn $label;\n\t}", "title": "" }, { "docid": "d4c8dcab3d82f9a690ae48448a9e5bdf", "score": "0.3960877", "text": "protected function apc_tag_for_path($path) {\n\t\t/* Fix path with realpath before hashing. Fixes double slashes and relative paths */\n\t\t$tag = 'op5_config_' . md5(realpath($path));\n\t\treturn $tag;\n\t}", "title": "" }, { "docid": "b3ddc4948c324bc7c302c61baf321d17", "score": "0.39532423", "text": "public static function beautify_url_path( string $path ) : string {\r\n\t\treturn implode('/', array_filter(explode('/', $path)));\r\n\t}", "title": "" }, { "docid": "e59579d078f9e28534fe0376a832848d", "score": "0.3946621", "text": "public function parseStringForPath(?string $str=\"\"):string {\n\n if($str != \"\" && $str!=null) {\n $patterns = array();\n $patterns[0] = '/%{resource_path}%/';\n $patterns[1] = '/%{css_path}%/';\n $patterns[2] = '/%{js_path}%/';\n $patterns[3] = '/%{image_path}%/';\n\n $replacements = array();\n $replacements[0] = \"/\".$this->getResourcePath();\n $replacements[1] = $this->getCssPath();\n $replacements[2] = $this->getJsPath();\n $replacements[3] = $this->getImagePath();\n\n\n return preg_replace($patterns, $replacements, $str);\n }\n return \"\";\n }", "title": "" }, { "docid": "c3d03ff46d147f6b9c9f56e6c48d84da", "score": "0.39458743", "text": "public function getDesignationCompleteAttribute()\n {\n return \"{$this->full_path}\";\n }", "title": "" }, { "docid": "e85296a1d2711c555404c5c4ae9330f8", "score": "0.3942915", "text": "public function makeName(string $path, Action $action): string\n {\n return (string) (new Str($path))\n ->prepend('innmind_rest_server.')\n ->append('.')\n ->append((string) $action);\n }", "title": "" }, { "docid": "618ce5b5f2008e9321e730fd5cae9960", "score": "0.39355767", "text": "function regPath($path) {\r\n\treturn str_replace(\r\n\tarray(\r\n '/',\r\n '-',\r\n\t),\r\n\tarray(\r\n '\\/',\r\n '\\-',\r\n\t),\r\n\t$path\r\n\t);\r\n}", "title": "" }, { "docid": "af25f111cdc38efbca7995db11bae0d5", "score": "0.39331472", "text": "public static function organizationMetricDescriptorName($organization, $metricDescriptor)\n {\n return self::getOrganizationMetricDescriptorNameTemplate()->render([\n 'organization' => $organization,\n 'metric_descriptor' => $metricDescriptor,\n ]);\n }", "title": "" }, { "docid": "ef75502e8aa990f0fb0b3af7a0f21959", "score": "0.39327836", "text": "public static function formatPathUsing(Closure $callback)\n {\n }", "title": "" }, { "docid": "f3012cbd7381c4c027faeba84c6b3591", "score": "0.39294726", "text": "protected function guessPath()\n {\n $class = new ReflectionClass($this->object);\n\n $pattern = \"data/\";\n $pattern.= $class->getShortName();\n $pattern.= \"-\";\n $pattern.= md5($class->getName());\n if( $this->config->getName() )\n {\n $pattern.= \"/\";\n $pattern.= $this->config->getName();\n }\n return $pattern;\n }", "title": "" }, { "docid": "1a536b5fe19f13bc77c2639f416ca40d", "score": "0.39211145", "text": "public function fixDs(string $sPath): string;", "title": "" }, { "docid": "2d2cc63e1c80809dfd1149756c90291c", "score": "0.39194316", "text": "public function toString()\n {\n $clazz = get_class($this);\n $path = $this->file_path;\n\n return \"[$clazz $path]\";\n }", "title": "" }, { "docid": "410217ca4f6607d55101da42fcbf10f9", "score": "0.39167842", "text": "protected function decorateMetricName($key, $group) {\n if (!empty($group)) {\n $decorated_key = 'group.' . $this->sanitizeMetricName($group) . \".\" . $key;\n }\n else {\n $decorated_key = 'no_group.' . $key;\n }\n return $decorated_key;\n }", "title": "" }, { "docid": "15031d3c06c2ba5b28781fc4285bdbf4", "score": "0.39085937", "text": "public function __toString()\n\t{\n\t\t$path = $this->compact($this->paths);\n\n\t\tif ($this->prefix)\n\t\t{\n\t\t\t$path = rtrim($this->prefix, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . trim($path, DIRECTORY_SEPARATOR);\n\t\t}\n\n\t\t$path = $this->removeDots($path);\n\n\t\treturn $path;\n\t}", "title": "" }, { "docid": "e006e96f5de0499f1d5af4e63e7eb394", "score": "0.39064994", "text": "public function __toString()\n\t{\n\t\treturn $this->path;\n\t}", "title": "" }, { "docid": "66e8089656689a6968909c10077a9da1", "score": "0.39039534", "text": "public function __toString()\n {\n return $this->data['path'];\n }", "title": "" }, { "docid": "ac69188cfc4adb45f56b1527a31d58bb", "score": "0.3891904", "text": "public function getNameAsPath()\n {\n return strtolower(str_replace(' ', '_', $this->name));\n }", "title": "" }, { "docid": "187e68b76fdef12e4bba2ea1b98edb6b", "score": "0.38910797", "text": "protected function parsePattern(string $pattern): string\n {\n $this->route->useRestConvention() and $pattern .= static::SPECIFIC_RESOURCE_PATH;\n\n return $pattern;\n }", "title": "" }, { "docid": "3bf2661cf3c02354b6336128e194af33", "score": "0.3885301", "text": "function prepareIssueCard(string $issue, string $path = ''): string\n{\n $padding = str_repeat(\"\\n\", 2);\n $delimiter = '+' . str_repeat(\"-\", 8) . '+' . str_repeat('-', 88) . \"\\n\";\n $delimiter = shColor($delimiter, 'grey');\n\n $err = $padding . $delimiter;\n if ($path !== '') {\n $issue = shColor($issue, 'white');\n $path = shColor(bendSeparatorsRight($path), 'blue');\n\n $err .= shColor('| PATH : ', 'grey') . \"$path\\n\" . $delimiter;\n }\n $err .= shColor('| ISSUE : ', 'grey') . shColor(\"$issue\\n\", 'white') . $delimiter . str_repeat($padding, 2);\n\n return $err;\n}", "title": "" }, { "docid": "bd89646e91991e15587d840f4c5ce6bd", "score": "0.38833544", "text": "private static function addPathAttributes(string $svg): string\n {\n return str_replace('<path ', '<path fill=\"currentColor\" ', $svg);\n }", "title": "" }, { "docid": "a4f8c6ec32e5a0c0e985a233c1940754", "score": "0.38827565", "text": "public function path()\n {\n $pattern = $this->config->getPath() ?: $this->guessPath();\n $transform = new StringTransformer($pattern,$this->object);\n $transform->setThrowExceptions(true);\n\n $path = $transform();\n $base = $this->manager->getBasePath();\n return \"{$base}/{$path}\";\n }", "title": "" }, { "docid": "72f903e531f75063a7f9589908a7e2a4", "score": "0.38731351", "text": "public static function folderMonitoredResourceDescriptorName($folder, $monitoredResourceDescriptor)\n {\n return self::getFolderMonitoredResourceDescriptorNameTemplate()->render([\n 'folder' => $folder,\n 'monitored_resource_descriptor' => $monitoredResourceDescriptor,\n ]);\n }", "title": "" }, { "docid": "0a541ade1ff855be333c7395941bdb99", "score": "0.38709968", "text": "public function getRoutePathRedecorationPattern(): string;", "title": "" }, { "docid": "98545f0e5b119030f8fd69e8cfe03ca3", "score": "0.38670656", "text": "public function uriKey()\n {\n return 'server-disk-usage';\n }", "title": "" }, { "docid": "2dfb94dba7509b50c05e37c028db7a8a", "score": "0.38606587", "text": "public function getResourcePath($resource)\n {\n return $this->resourcePrefix . $resource;\n }", "title": "" }, { "docid": "b4a85297d724b39b45464af2fa28173f", "score": "0.38418487", "text": "private static function formatPath($path, $options=array())\n {\n $path = StringTools::removeQueryString($path);\n $path = StringTools::standardizeSlashes($path);\n if ($path == '') {\n $path = 'home';\n }\n return $path;\n }", "title": "" }, { "docid": "166700f87180af772b5b6028e0f4cba8", "score": "0.38416636", "text": "public function __invoke(string $path = '/'): string\n {\n return $this->escape($this->stripLeadingSlashes($path));\n }", "title": "" }, { "docid": "06c14540231cb0a381a5830b00eed780", "score": "0.38406157", "text": "abstract public function layoutPath(?string $namespacedPath=null) : string;", "title": "" }, { "docid": "fd4f7ea987069ca469b270c2c4c65b9d", "score": "0.3839431", "text": "public function testFailureReasonReturnsStringWhenCreateQualifiedIdentifierAndIdentifierIsInvalid(): void\n {\n $nnSpec = $this->createNestedNameSpecifierDoubleFactory()->createDummy();\n $id = $this->createIdentifierDoubleFactory()->createDummy();\n $declSpec = $this->createDeclarationSpecifierDoubleFactory()\n ->createQualifiedIdentifierSimpleTypeSpecifier($nnSpec, $id);\n \n $nnSpecConst = ConceptConstraintDoubleBuilder::createNestedNameSpecifierConstraint($this)\n ->buildMatches($nnSpec, TRUE)\n ->getDouble();\n $idConst = ConceptConstraintDoubleBuilder::createIdentifierConstraint($this)\n ->buildMatches($id, FALSE)\n ->buildFailureReason($id, 'bar reason')\n ->getDouble();\n \n $sut = DeclarationSpecifierConstraint::createQualifiedIdentifier(\n $nnSpecConst, \n $idConst\n );\n self::assertSame(\n \"Declaration specifier\\n\".\n \" bar reason\", \n $sut->failureReason($declSpec)\n );\n }", "title": "" }, { "docid": "6bbc72794883a7cab07ac76af3b2eb1a", "score": "0.3836678", "text": "function descriptor_def()\n {\n // @todo: replace this with proper descriptor fields.\n return \"[name]\";\n }", "title": "" }, { "docid": "3f1e7479097e8301f335093acfb1fcad", "score": "0.38220814", "text": "public function toFileDescriptor(): FileDescriptor {\n\t\treturn new FileDescriptor($this->getPathname());\n\t}", "title": "" }, { "docid": "7c55c5a5c9879c382568d8996f1186de", "score": "0.38218558", "text": "public function resolve(string $path): string;", "title": "" }, { "docid": "41f52c5ce4ece0c541e4687dfbf57d7a", "score": "0.38189033", "text": "protected static function format($uri)\n\t{\n\t\treturn (($uri = trim($uri, '/')) !== '') ? $uri : '/';\n\t}", "title": "" }, { "docid": "6618fff95592fd17f8fe50443f0b8d47", "score": "0.38180676", "text": "function format_reference($ref) {\n\treturn str_replace(' ', '-', $ref);\n}", "title": "" }, { "docid": "2edbc4134931aa035bb3fb9bc1b9414f", "score": "0.3816916", "text": "public static function utilizationReportName(string $project, string $location, string $source, string $utilizationReport): string\n {\n return self::getPathTemplate('utilizationReport')->render([\n 'project' => $project,\n 'location' => $location,\n 'source' => $source,\n 'utilization_report' => $utilizationReport,\n ]);\n }", "title": "" }, { "docid": "44c057f660025ee3dfab04cdfd121f14", "score": "0.38106123", "text": "public static function projectMonitoredResourceDescriptorName($project, $monitoredResourceDescriptor)\n {\n return self::getProjectMonitoredResourceDescriptorNameTemplate()->render([\n 'project' => $project,\n 'monitored_resource_descriptor' => $monitoredResourceDescriptor,\n ]);\n }", "title": "" }, { "docid": "81d7b808a1ddd898b0db41a175f237e5", "score": "0.38069144", "text": "public function formatRoute($route) : string\n {\n return preg_replace(self::ROUTE_PATTERN, '*', $route);\n }", "title": "" }, { "docid": "8b76a2c5e27bac819c0ce606f06bab42", "score": "0.38053018", "text": "public function getPathname();", "title": "" }, { "docid": "9ca74aa9721b3f4f65153939ec4c2b78", "score": "0.38035628", "text": "public static function format($root, $path)\n {\n }", "title": "" }, { "docid": "25a000755b7102d1023a7a7219a7d121", "score": "0.37987936", "text": "public function format(string $value): string;", "title": "" }, { "docid": "fb2d437478cbdbbd2a188ec92ace337d", "score": "0.37970212", "text": "public function createPath($section,$group,$name)\n\t{\n\t\t$path = $section . '/' . $group . '/' . $name;\n\t\t$fieldConfig = $this->getSections()->descend($section.'/groups/'.$group.'/fields/'.$name);\n\n\t\t/**\n\t\t * Look for custom defined field path\n\t\t*/\n\t\tif (is_object($fieldConfig)) {\n\t\t\t$configPath = (string)$fieldConfig->config_path;\n\t\t\tif (!empty($configPath) && strrpos($configPath, '/') > 0) {\n\t\t\t\t$path = $configPath;\n\t\t\t}\n\t\t}\n\t\treturn $path;\n\t}", "title": "" }, { "docid": "df93cab62227b4a624dfd024d8708662", "score": "0.37967622", "text": "private function createActionPath(string $route): string\n {\n $adminBaseLink = $this->context->link->getAdminBaseLink();\n $baseUrlParts = parse_url($adminBaseLink);\n $routePath = ControllerService::generateUri($route);\n\n return str_replace($baseUrlParts['path'], '/', $routePath);\n }", "title": "" }, { "docid": "ad1d55cf7a68a15c376c46270b197d59", "score": "0.3793601", "text": "static function get_report_filename($shortname) {\n global $CFG;\n\n //path to the report instance folder\n $base_path = $CFG->dirroot .'/blocks/php_report/instances/';\n\n //name of php file containing report definition\n $class_filename = $shortname . '_report.class.php';\n\n //full file path\n $full_path = $base_path . $shortname . '/' . $class_filename;\n\n return $full_path;\n }", "title": "" }, { "docid": "9d7567c93a2e88607b3a34b91c8a7836", "score": "0.3792688", "text": "public static function format($unprefixed_symbol) {\n return str_replace(static::NAMESPACE_SEPARATOR, static::PATH_SEPARATOR, $unprefixed_symbol) . '.php';\n }", "title": "" }, { "docid": "a1ed2bc822f3fe85a84b03610ecf2717", "score": "0.37866053", "text": "public function testFailureReasonReturnsStringWhenCreateQualifiedIdentifierAndIdentifierIsValid(): void\n {\n $nnSpec = $this->createNestedNameSpecifierDoubleFactory()->createDummy();\n $id = $this->createIdentifierDoubleFactory()->createDummy();\n $declSpec = $this->createDeclarationSpecifierDoubleFactory()\n ->createQualifiedIdentifierSimpleTypeSpecifier($nnSpec, $id);\n \n $nnSpecConst = ConceptConstraintDoubleBuilder::createNestedNameSpecifierConstraint($this)\n ->buildMatches($nnSpec, TRUE)\n ->getDouble();\n $idConst = ConceptConstraintDoubleBuilder::createIdentifierConstraint($this)\n ->buildMatches($id, TRUE)\n ->buildFailureReason($id, 'bar reason')\n ->getDouble();\n \n $sut = DeclarationSpecifierConstraint::createQualifiedIdentifier(\n $nnSpecConst, \n $idConst\n );\n self::assertSame(\n 'Declaration specifier: Unknown reason.', \n $sut->failureReason($declSpec)\n );\n }", "title": "" }, { "docid": "495e6d666bd138510da83ce9c3eac035", "score": "0.37842214", "text": "public function testFailureReasonReturnsStringWhenCreateQualifiedIdentifierAndNotSimpleTypeSpecifierQualifiedIdentifier(\n DeclarationSpecifier $declSpec\n ): void\n {\n $nnSpecConst = ConceptConstraintDoubleBuilder::createNestedNameSpecifierConstraint($this)\n ->getDouble();\n $idConst = ConceptConstraintDoubleBuilder::createIdentifierConstraint($this)\n ->getDouble();\n \n $sut = DeclarationSpecifierConstraint::createQualifiedIdentifier(\n $nnSpecConst, \n $idConst\n );\n self::assertSame(\n 'Declaration specifier: It should be simple type specifier qualified identifier.', \n $sut->failureReason($declSpec)\n );\n }", "title": "" }, { "docid": "cf5026f7931d95a9bf927f26bff103cc", "score": "0.37826064", "text": "public function parsePath($path);", "title": "" }, { "docid": "1a5471ece1d8f3fca51fc682613a8bd5", "score": "0.3782169", "text": "public function testAdditionalFailureDescriptionReturnsConstraintDescriptionAndFailureReasonWhenCreateQualifiedIdentifier(): void\n {\n $nnSpecConst = ConceptConstraintDoubleBuilder::createNestedNameSpecifierConstraint($this)\n ->buildConstraintDescription('foo description')\n ->getDouble();\n $idConst = ConceptConstraintDoubleBuilder::createIdentifierConstraint($this)\n ->buildConstraintDescription('bar description')\n ->getDouble();\n \n $sut = DeclarationSpecifierConstraint::createQualifiedIdentifier(\n $nnSpecConst, \n $idConst\n );\n \n $pattern = \\sprintf(\n \"`^\\n\".\n \"Declaration specifier\\n\".\n \" Simple type specifier qualified identifier\\n\".\n \" foo description\\n\".\n \" bar description\\n\".\n \"\\n\".\n \"Declaration specifier: .+ is not an instance of %s\\\\.$`\", \n \\str_replace('\\\\', '\\\\\\\\', DeclarationSpecifier::class)\n );\n self::assertRegExp($pattern, $sut->additionalFailureDescription(NULL));\n }", "title": "" }, { "docid": "61e86dd4113d85d6d8a3052830a101b6", "score": "0.37806153", "text": "protected function mutatePaths(string $message): string\n {\n $base = App::path('path.base').'/';\n\n return str_replace($base, '', $message);\n }", "title": "" }, { "docid": "47b8d0b91e40f28f60bc276417e841b1", "score": "0.37795392", "text": "public static function customMetricName(string $property, string $customMetric): string\n {\n return self::getPathTemplate('customMetric')->render([\n 'property' => $property,\n 'custom_metric' => $customMetric,\n ]);\n }", "title": "" } ]
004866f1be58213c71fc0973ff8efc46
/The following function has been modified in order to better integrate the Report Lists with the core Sugar functions Normally you would see this type of code in a editview.php or detailview.php file. However, the nature of of the report lists is different than most listview scenarios.
[ { "docid": "e5e6ae14c2322cad1c239909dbdf79c5", "score": "0.72648436", "text": "function get_list_view_data(){\n $temp_array = $this->get_list_view_array();\n\t\tglobal $timedate;\n\t\tglobal $app_strings;\n\t\tglobal $mod_strings;\n\t\tglobal $app_list_strings;\n\n\t\tglobal $current_user;\n global $current_language;\n\n $mod_strings = return_module_language($current_language, 'Reports');\n\t\t//set the following four buttons.\n\n\t\tif(isset($this->schedule_id) && $this->active == 1){\n\t\t\t$is_scheduled = $timedate->to_display_date_time($this->next_run);\n\t\t} else {\n\t\t\t$is_scheduled = $mod_strings['LBL_NONE'];\n\t\t}\n\n\t\t$view = sprintf(\"%s %s\", SugarThemeRegistry::current()->getImage('view_inline','border=\"0\" align=\"absmiddle\"',null,null,'.gif',$mod_strings['LBL_VIEW']), $mod_strings['LBL_VIEW']);\n\n\t//logic for showing delete, publish, and unpublish buttons\n\t\t\t$delete_img = SugarThemeRegistry::current()->getImage('delete_inline','border=\"0\" align=\"absmiddle\"',null,null,'.gif',$mod_strings['LBL_DELETE']);\n\t\t\t$delete_line = \"<a href=\\\"index.php?module=Reports&action=index&delete_report_id=\".$this->id.\"\\\" class=\\\"listViewTdToolsS1\\\"> $delete_img \". $mod_strings['LBL_DELETE'].\"</a>\";\n\n\t\t\t$unpublish_img = SugarThemeRegistry::current()->getImage('unpublish_inline','border=\"0\" align=\"absmiddle\"',null,null,'.gif',$mod_strings['LBL_UN_PUBLISH']);\n\t\t\t$publish_img = SugarThemeRegistry::current()->getImage('publish_inline','border=\"0\" align=\"absmiddle\"',null,null,'.gif',$mod_strings['LBL_PUBLISH']);\n\t\t\t$unpublish_line = \"<a title='{$mod_strings['LBL_UN_PUBLISH']}' href=\\\"index.php?module=Reports&action=index&publish=no&publish_report_id=$this->id\\\" class=\\\"listViewTdToolsS1\\\">$unpublish_img</a>\";\n\t\t\t$publish_line = \"<a title='{$mod_strings['LBL_PUBLISH']}' href=\\\"index.php?module=Reports&action=index&publish=yes&publish_report_id=$this->id\\\" class=\\\"listViewTdToolsS1\\\">$publish_img</a>\";\n\n\t\tif ( is_admin($current_user) ){\n\t\t\t$delete = $delete_line;\n\t\t\t$unpublish = $unpublish_line;\n\t\t\t$publish_my_reports = $publish_line;\n\t\t} else {\n\t\t\t$delete = \"<!--not_in_theme!--><img src=\\\"\".getJSPath(\"include/images/blank.gif\").\"\\\" width=\\\"1\\\" height=\\\"1\\\" alt=\\\"\\\">\";\n\t\t\t$unpublish = \"<!--not_in_theme!--><img src=\\\"\".getJSPath(\"include/images/blank.gif\").\"\\\" width=\\\"1\\\" height=\\\"1\\\" alt=\\\"\\\">\";\n\t\t\t$publish_my_reports = \"<!--not_in_theme!--><img src=\\\"\".getJSPath(\"include/images/blank.gif\").\"\\\" width=\\\"1\\\" height=\\\"1\\\" alt=\\\"\\\">\";\n\t\t}\n\n\t\t$delete_my_reports = $delete_line;\n\n\n $temp_array['MODULE'] = (!empty($this->module) ? $app_list_strings['moduleList'][$this->module] : '');\n $temp_array['REPORT_TYPE_TRANS'] = (!empty($this->report_type) ? $app_list_strings['dom_report_types'][$this->report_type] : '');\n $temp_array['IS_SCHEDULED'] = $is_scheduled;\n\t\t$temp_array['IS_SCHEDULED_IMG'] = \"\";\n\t\t$temp_array['VIEW'] = $view;\n\t\t$temp_array['DELETE'] = $delete;\n\t\t$temp_array['DELETE_MY_REPORTS'] = $delete_my_reports;\n\t\t$temp_array['UNPUBLISH_REPORT'] = $unpublish;\n\t\t$temp_array['PUBLISH_MY_REPORTS'] = $publish_my_reports;\n\t\t$temp_array['LAST_RUN_DATE'] = $timedate->to_display_date_time($this->last_run_date);\n\n return $temp_array;\n\t}", "title": "" } ]
[ { "docid": "1566ee1d8d32a310612c876d985a210a", "score": "0.72539186", "text": "private function processReportList()\n {\n global $g_comp_database_system;\n\n $l_allowed_reports = isys_auth_report::instance()\n ->get_allowed_reports();\n\n $l_dao = new isys_report_dao($g_comp_database_system);\n $l_report_category = (isset($_GET['report_category'])) ? $_GET['report_category'] : null;\n\n if ($l_report_category !== null && !$l_dao->check_report_category($l_report_category))\n {\n $l_report_category = null;\n } // if\n\n $l_reports = $l_dao->get_reports(null, $l_allowed_reports, $l_report_category);\n\n $l_header = [\n \"isys_report__id\" => \"ID\",\n \"isys_report__title\" => \"LC__UNIVERSAL__TITLE\",\n \"category_title\" => \"LC_UNIVERSAL__CATEGORY\",\n \"with_qb\" => \"LC__REPORT__LIST__VIA_QUERY_BUILDER_CREATED\",\n \"isys_report__description\" => \"LC__UNIVERSAL__DESCRIPTION\"\n ];\n\n if (isset($_GET['call']) || isset($_GET['ajax']))\n {\n $l_gets = $_GET;\n unset($l_gets['call']);\n unset($l_gets['ajax']);\n }\n else\n {\n $l_gets = $_GET;\n } // if\n\n $l_rowLink = isys_glob_build_url(http_build_query($l_gets) . \"&\" . C__GET__REPORT_REPORT_ID . \"=[{isys_report__id}]\");\n\n $l_list = (new isys_component_list(null, $l_reports, null, null))->config($l_header, $l_rowLink, \"[{isys_report__id}]\")\n ->set_row_modifier($l_dao, 'modify_row');\n\n if ($l_list->createTempTable())\n {\n isys_application::instance()->template->assign(\"objectTableList\", $l_list->getTempTableHtml());\n } // if\n\n isys_application::instance()->template->assign(\"content_title\", _L(\"LC__REPORT__MAINNAV__STANDARD_QUERIES\"));\n\n $l_new_overlay = [\n [\n \"title\" => _L('LC__REPORT__MAINNAV__QUERY_BUILDER'),\n \"icon\" => \"icons/silk/brick_add.png\",\n \"href\" => \"javascript:;\",\n \"onclick\" => \"document.isys_form.navMode.value='\" . C__NAVMODE__NEW . \"'; document.isys_form.submit();\",\n ],\n [\n \"title\" => _L(\"LC__REPORT__LIST__SQL_EDITOR\"),\n \"icon\" => \"icons/silk/application_form_add.png\",\n \"href\" => \"javascript:;\",\n \"onclick\" => \"$('querybuilder').value=0;document.isys_form.navMode.value='\" . C__NAVMODE__NEW . \"'; document.isys_form.submit();\",\n ]\n ];\n\n $l_edit_overlay = [\n [\n \"title\" => _L('LC__REPORT__MAINNAV__QUERY_BUILDER'),\n \"icon\" => \"icons/silk/brick_edit.png\",\n \"href\" => \"javascript:;\",\n \"navmode\" => C__NAVMODE__EDIT,\n \"onclick\" => \"$('querybuilder').value=1;document.isys_form.sort.value='';document.isys_form.navMode.value='\" . C__NAVMODE__EDIT . \"'; form_submit();\"\n ],\n [\n \"title\" => _L(\"LC__REPORT__LIST__SQL_EDITOR\"),\n \"icon\" => \"icons/silk/application_form_edit.png\",\n \"href\" => \"javascript:;\",\n \"navmode\" => C__NAVMODE__EDIT,\n \"onclick\" => \"$('querybuilder').value=0;document.isys_form.sort.value='';document.isys_form.navMode.value='\" . C__NAVMODE__EDIT . \"'; form_submit();\"\n ]\n ];\n\n $l_rights_create = isys_auth_report::instance()\n ->is_allowed_to(isys_auth::EXECUTE, 'EDITOR');\n $l_rights_report_category = isys_auth_report::instance()\n ->is_allowed_to(isys_auth::SUPERVISOR, 'REPORT_CATEGORY');\n\n $l_navbar = isys_component_template_navbar::getInstance()\n ->set_save_mode('ajax')\n ->set_ajax_return('ajaxReturnNote')\n ->set_overlay($l_new_overlay, C__NAVBAR_BUTTON__NEW)\n ->set_overlay($l_edit_overlay, 'edit')\n ->set_active($l_rights_create, C__NAVBAR_BUTTON__NEW)\n ->set_visible($l_rights_create, C__NAVBAR_BUTTON__NEW);\n\n if ($l_allowed_reports)\n {\n $l_navbar->append_button(\n _L('LC__AUTH__RIGHT_EDIT'),\n 'edit',\n [\n \"icon\" => \"icons/silk/page_edit.png\",\n \"navmode\" => C__NAVMODE__EDIT,\n \"add_onclick_prepend\" => \"$('querybuilder').value='';\",\n \"accesskey\" => \"e\"\n ]\n );\n } // if\n\n if ($l_rights_report_category)\n {\n $l_navbar->append_button(\n _L('LC_UNIVERSAL__CATEGORIES'),\n 'report_category',\n [\n \"icon\" => \"icons/silk/application_form_add.png\",\n \"navmode\" => C__NAVMODE__DUPLICATE,\n \"js_onclick\" => \" onclick=\\\"get_popup('report', null, '480', '270', {'func':'show_category'});\\\"\"\n ]\n );\n } // if\n\n if ($l_allowed_reports)\n {\n $l_navbar->append_button(\n _L('LC__NAVIGATION__NAVBAR__DUPLICATE'),\n 'duplicate_report',\n [\n \"icon\" => \"icons/silk/page_copy.png\",\n \"navmode\" => C__NAVMODE__DUPLICATE,\n \"js_onclick\" => \" onclick=\\\"get_popup('report', null, '480', '260', {'func':'show_duplicate'});\\\"\"\n ]\n )\n ->append_button(\n _L('LC__NAVIGATION__NAVBAR__PURGE'),\n 'purge',\n [\n \"navmode\" => C__NAVMODE__PURGE,\n \"icon\" => \"icons/silk/page_delete.png\",\n \"accesskey\" => \"d\",\n 'js_onclick' => \"if (confirm('\" . _L('LC__REPORT__CONFIRM_PURGE') . \"')) {\\$('navMode').setValue(6); form_submit(null, null, null, null, null, get_listSelection4Submit());}\"\n ]\n );\n } // if\n\n isys_application::instance()->template\n ->assign(\"querybuilder\", 1)\n ->smarty_tom_add_rule(\"tom.content.navbar.cRecStatus.p_bInvisible=1\")\n ->include_template('contentbottomcontent', $this->get_tpl_dir() . 'report_list.tpl');\n }", "title": "" }, { "docid": "80b85b3923d1ff1a4581480a376797ff", "score": "0.6780993", "text": "function dataentry_report_list() {\n\t$type = params('type');\n\treturn render(\"/dataentry/export/dataentry.$type.list.html.php\");\n}", "title": "" }, { "docid": "88b5373056e01ee60934c183862a1fb0", "score": "0.6754297", "text": "function admin_report()\r\n {\r\n $conditions = array();\r\n \r\n if(!empty($this->data))\r\n { \r\n \r\n $this->data['ViewSaleReport'] = $this->data['Sale'];\r\n \r\n if(!empty($this->data['ViewSaleReport']['created_from']))\r\n { \r\n $arrangement[0] = $this->data['ViewSaleReport']['created_from'];\r\n }\r\n \r\n if(!empty($this->data['ViewSaleReport']['created_till']))\r\n { \r\n $arrangement[1] = $this->data['ViewSaleReport']['created_till'];\r\n } \r\n\r\n if(!empty($arrangement[0]) && !empty($arrangement[1]))\r\n {\r\n sort($arrangement);\r\n }\r\n \r\n if(isset($arrangement[0]))\r\n {\r\n $conditions[] = array('DATE_FORMAT(target_month,\"%Y%m%d\") >=' => date(\"Ymd\",strtotime($arrangement[0])));\r\n }\r\n \r\n if(isset($arrangement[1]))\r\n {\r\n $conditions[] = array('DATE_FORMAT(target_month,\"%Y%m%d\") <=' => date(\"Ymd\",strtotime($arrangement[1])));\r\n }\r\n \r\n if(!empty($this->data['ViewSaleReport']['member_name']))\r\n { \r\n $conditions[] = array('LOWER(child_name) LIKE '=> '%'.strtolower($this->data['ViewSaleReport']['member_name']).'%');\r\n }\r\n \r\n if(!empty($this->data['ViewSaleReport']['member_id']))\r\n { \r\n if(strtolower(gettype(@$bunch_of_member_ids)) == 'null')\r\n {\r\n $bunch_of_member_ids = @(array)$bunch_of_member_ids;\r\n } \r\n array_push($bunch_of_member_ids,$this->data['ViewSaleReport']['member_id']); \r\n }\r\n \r\n if(isset($bunch_of_member_ids) && sizeof($bunch_of_member_ids) > 0)\r\n {\r\n array_push($conditions,array('member_id'=>$bunch_of_member_ids));\r\n }\r\n\r\n //Set the long list results viewing for user\r\n if(isset($conditions[0]))//only when theres results display then only list everything else limit them\r\n {\r\n $this->paginate['limit'] = 999999;\r\n }\r\n }\r\n \r\n $this->paginate['order'] = array('default_period_start DESC');\r\n $sales = $this->paginate('ViewSaleReport',$conditions);\r\n \r\n $this->set('sales',$sales);\r\n $this->set('countSales',$this->ViewSaleReport->find('count',array('conditions'=>$conditions)));\r\n \r\n }", "title": "" }, { "docid": "d3cb0c67092dc08bbd2d7b15040ea51f", "score": "0.65005106", "text": "function lists()\n\t{\n $urldata = $this->uri->uri_to_assoc(3, array('m', 'i'));\n # Pick all assigned data\n $data = assign_to_data($urldata);\n $current_financial_year = currentyear.'-'.endyear;\n\n \n\t\t //manage_items_v\n \t\t$data['list'] = $this->item->get_items($data);\n\n\n\t\t #fetch_ifb_procurement_entries\n $data['page_title'] = \"Manage items\"; \n $data['current_menu'] = 'view_items';\n $data['view_to_load'] = 'items/manage_items_v';\n $data['view_data']['form_title'] = $data['page_title'];\n \t\n\n $this->load->view('dashboard_v', $data);\n\n\t}", "title": "" }, { "docid": "91ddaec6a04d05f501fb82f8f50a3e01", "score": "0.6478464", "text": "public function display_report_list()\n\t{\n\t\t\n\t\tif ($this->checkLogin('A') == '')\n\t\t{\n\t\t\tredirect('admin');\n\t\t}\n\t\telse \n\t\t{\n\t\t\t$this->data['heading'] = 'Reports';\n\t\t\t$search_type = '';\n\t\t \n\t\t\t$name_filter = $_GET['experience_name_filter_val'];\n $rep_code = ltrim($this->session->userdata('fc_session_admin_rep_code'), '0');\n if ($rep_code != '') {\n $condition = 'where u.rep_code=\"' . $rep_code . '\" group by cit.name order by p.created desc';\n } else {\n $condition = 'group by cit.name order by p.created desc';\n }\n /*-----------------------*/\n $this->load->library('pagination');\n $limit_per_page = 10;\n \t// if($name_filter == ''){\n \t// $Total_properties = $this->db->select('id')->where('product_title LIKE \"%'.$name_filter.'%\"')->get(PRODUCT)->num_rows();\n\n\t // }\n\t //else{\n \t $Total_properties = 0;\n\t \t //$Total_properties = $this->db->select('id')->get(PRODUCT)->num_rows(); \n\t // }\n\t $start_index = ($this->uri->segment(4)) ? $this->uri->segment(4) : 0;\n\t $config['base_url'] = base_url() . 'admin/reports/display_reports_list';\n\t $config['total_rows'] = $Total_properties;\n\t $config['per_page'] = $limit_per_page;\n\t $config['uri_segment'] = 4;\n\t $config['num_tag_open'] = '<li>';\n\t $config['num_tag_close'] = '</li>';\n\t $config['cur_tag_open'] = '<li class=\"active\"><a>';\n\t $config['cur_tag_close'] = '</a></li>';\n\t $config['first_link'] = '<< ';\n\t $config['first_tag_open'] = '<li>';\n\t $config['first_tag_close'] = '</li>';\n\t $config['last_link'] = ' >>';\n\t $config['last_tag_open'] = '<li>';\n\t $config['last_tag_close'] = '</li>';\n\t $config['next_tag_open'] = '<li>';\n\t $config['next_tag_close'] = '</li>';\n\t $config['prev_tag_open'] = '<li>';\n\t $config['prev_tag_close'] = '</li>';\n\t $this->pagination->initialize($config);\n\t $this->data[\"links\"] = $this->pagination->create_links();\n\t /*-----------------------*/\n\t $this->data['checkin'] = $_GET['checkin'];\n\t $this->data['checkout'] = $_GET['checkout'];\n\t if($search_type != ''){\n\t $this->data['productList'] = $this->report_model->get_allthe_details($_GET['status'], $_GET['city'], $_GET['checkin'], $_GET['checkout'], $_GET['id'], $rep_code, $limit_per_page, $start_index);\n\n\t }\n\t else{\n\t \t$this->data['productList'] = $this->report_model->get_all_details(USERS,array('firstname' => 'fffffff'));\n \n\t \t$this->data['experienceList'] = $this->report_model->get_all_details(USERS,array('firstname' => 'fffffff'));\n\t \t$this->data['usersList'] = $this->report_model->get_all_details(USERS,array('firstname' => 'fffffff'));\n\t \t$this->data['hostList'] = $this->report_model->get_all_details(USERS,array('firstname' => 'fffffff'));\n\n\t }\n\t // echo \"<pre>\";\n\t // print_r($this->data['productList']->result());exit();\n\t $this->data['userdetails'] = $this->report_model->get_particular_details('id,firstname,lastname', USERS, array(), array(array('field' => 'user_name', 'type' => 'asc')));\n\t $this->data['options'] = $this->product_model->get_search_options($condition);\n\t\t\t\t$this->load->view('admin/reports/display_reports_list', $this->data);\n\t\t}\n\t}", "title": "" }, { "docid": "b680e4c82e811966c010ae6410039492", "score": "0.6292715", "text": "function get_all_report_menu() {\n $total_reports = allReportList(); // Get all reports\n $report_list = getReportListByProductLine(); // Get all reports related to the Product line\n // build menu\n $report_menu;\n foreach ($total_reports as $key => $val) {\n $class = array();\n if (in_array($val, $report_list)) {\n if (arg(3) == $key) {\n $class = array('attributes' => array('style' => 'color:#000000'));\n }\n $report_menu .= l($val, \"covidien/reports/filter/$key\", $class) . \"<br />\";\n }\n }\n// $report_menu .= l('Device Country Change Report', \"covidien/reports/filter/15\") . \"<br />\";\n return $report_menu;\n}", "title": "" }, { "docid": "670a8f08ffb89b86900d0a8a13905209", "score": "0.6232382", "text": "function listViewNormal() {\r\n\r\n\r\n $this->conf['pidList']\t= intval($this->piVars['startingPoint']);\r\n $this->conf['recursive']= intval($this->piVars['recursion']);\r\n $this->pi_loadLL(); // Loading the LOCAL_LANG values\r\n\r\n if (!isset($this->piVars['pointer'])) {\r\n $this->piVars['pointer']=0;\r\n }\r\n if (!isset($this->piVars['mode'])) {\r\n $this->piVars['mode']=1;\r\n }\r\n\r\n // Initializing the query parameters:\r\n // Number of results to show in a listing.\r\n $this->internal['results_at_a_time'] = $this->conf['pageBrowser.']['limit'];\r\n $this->internal['maxPages'] = $this->conf['pageBrowser.']['maxPages'];\r\n $this->internal['descFlag']= $this->conf['pageBrowser.']['order'];\r\n $this->internal['orderByList']='datetime';\r\n $this->internal['orderBy'] = 'datetime';\r\n $this->internal['pagefloat'] = $this->conf['pageBrowser.']['pagefloat'];\r\n $this->internal['showFirstLast']=$this->conf['pageBrowser.']['showFirstLast'];\r\n $this->internal['showRange']=$this->conf['pageBrowser.']['showRange'];\r\n $this->internal['dontLinkActivePage'] = $this->conf['pageBrowser.']['dontLinkActivePage'];\r\n\r\n\r\n // gregory goidin - rvvn\r\n // We set the total records in the pageBrowser, we need the global count without the limit parameter of the sqlquery\r\n $totalResults = $this->globalResCount;\r\n $this->internal['res_count'] = $totalResults;\r\n\r\n\r\n\r\n // gregory goidin - rvvn\r\n // cause bug in page browser so just comment the line\r\n\r\n // Make listing query, pass query to SQL database:\r\n $res = $this->globalRes;\r\n $this->internal['currentTable'] = 'tt_news';\r\n\r\n // Put the whole list together:\r\n\r\n $fullTable = ''; // Clear var;\r\n $marker = array();\r\n $wrapped = array();\r\n $templateMarker = '###NEWSCALENDAR_LISTVIEW###';\r\n $template = $this->cObj->getSubpart( $this->listViewTemplate, $templateMarker );\r\n $marker['###HEADER###'] = $this->listHeader;\r\n\r\n\r\n // Add a page browser\r\n $this->browserLanguage();\r\n\r\n\r\n // gregory goidin - rvvn\r\n // if the pageBrowser.show is not active, hide the pageBrowser\r\n if ( intval( $this->conf['pageBrowser.']['show'] ) == 0 && $totalResults > 0 ) {\r\n $marker['###BODY###']=$this->makelistNormal( $res );\r\n\r\n }\r\n else if ( $totalResults > 0 ) {\r\n $marker['###BODY###']=\r\n // Adds the whole list table\r\n $this->makelistNormal($res).\r\n // Add template engine for rendering list view\r\n\r\n // gregory goidin - rvvn\r\n // just add the pointer parameter\r\n ( $totalResults>$this->conf['pageBrowser.']['limit'] ?\r\n $this->pi_list_browseresults( $this->conf['pageBrowser.']['showResultCount'], $this->conf['pageBrowser.']['tableParams'], $this->wrapArr, $this->conf['pageBrowser.']['pointer'] ) :\r\n null);\r\n\r\n }else {\r\n $marker['###BODY###']=$this->pi_getLL(\"noResults\");\r\n }\r\n\r\n $fullTable.=$this->cObj->substituteMarkerArray($template,$marker);\r\n\r\n // Returns the content from the plugin.\r\n return $fullTable;\r\n\r\n }", "title": "" }, { "docid": "30340a9f1d0c92be44b6b8403a9aa0d1", "score": "0.6193292", "text": "function getFields($list)\n{\n\t$inv = array('ID'=>'i.id_invoice', 'Client'=>'u.name', 'Date'=>'i.date', 'Due Date'=>'', 'Payment Method'=>'i.payment_method', 'Type'=>'i.id_invoice_parent', 'Amount'=>'i.amount', 'Status'=>'i.status');\n\t//$customers = array('ID'=>'u.id_users', 'Email'=>'u.email', 'Name'=>'u.name', 'Managed Type'=>'u.is_managed', 'Status'=>'u.is_active', 'VAT Apply'=>'u.vat_applied', 'Language'=>'lang.screen_name', \"User Services\"=>\"\", 'Details'=>'');\n\t$customers = array('ID'=>'u.id_users', 'Email'=>'u.email', 'Name'=>'u.name', 'Date'=>'u.date', 'User Type'=>'u.is_managed', 'Status'=>'u.is_active', 'VAT Apply'=>'u.vat_applied', 'Verified'=>'u.manual_verified', 'Blocked(UnAuth)'=>'u.is_blocked', 'Details'=>'');\n\t$team = array('ID'=>'t.id_users_sec', 'Email'=>'t.email', 'Name'=>'t.name', 'Create By'=>'', 'Date'=>'t.added_on', 'Status'=>'t.status');\n\t$fund_hist = array(\"ID\"=>\"fund.id_transaction\", \"Discription\"=>\"fund.service_id\", \"Date\"=>\"fund.fund_date\", \"Ammount\"=>\"fund.amount\");\t\n\t$inv_hist = array(\"ID\"=>\"inv.id_invoice\", \"Date\"=>\"inv.creation_date\", \"Invoice Type\"=>\"inv.invoice_type\", \"Payment Status\"=>\"inv.payment_status\", \"Ammount (User)\"=>\"inv.grand_total_user\", \"Ammount (CW)\"=>\"inv.grand_total_cw\");\n\t$servicesArr = array(\"ID\"=>\"ser.service_id\", \"Config Name\"=>\"conf.admin_friendly_name\", \"Activate On\"=>\"ser.activated_on\", \"Provider\"=>\"pro.provider\", \"Status\"=>\"ser.service_status\", \"Funds\"=>\"u.currency\", \"Hours\"=>\"\", \"Action\"=>\"\");\n\t$servicesView = array(\"ID\"=>\"ser.service_id\", \"Config Name\"=>\"conf.admin_friendly_name\", \"User Name\"=>\"u.name\", \"Viewed On\"=>\"ser.created_on\", \"Provider\"=>\"pro.provider\", \"Platform\"=>\"plat.platform\");\n\t$client_cancel_req = array(\"ID\"=>\"req.id_c_requests\", \"Service ID\"=>\"req.service_id\", \"User Name\"=>\"u.name\", \"Reason\"=>\"req.reason\", \"Status\"=>\"req.status\", \"Remove Credential\"=>\"req.credential\", \"Date\"=>\"req.date\");\n\t$servicesLog = array(\"ID\"=>\"id\", \"Service ID\"=>\"service_id\", \"Activity Code\"=>\"activity\", \"Description\"=>\"note\", \"Date and Time\"=>\"date_time\", \"Type\"=>\"status\");\n\t$tick = array('ID'=>\"t.ticket_id\", 'Client'=>\"u.name\", 'Date'=>\"t.date\", 'Categoy'=>\"cat.cat_name\", 'Subject'=>\"t.ticket_subject\", 'Status'=>\"st.type_name\", 'Urgency'=>\"t.ticket_urgency\");\n\t$tick_dept = array(\"ID\"=>\"dept.section_id\", \"Department\"=>\"dept.sec_name\", \"E-Mail\"=>\"dept.email\", \"Language\"=>\"lang.screen_name\", \"Status\"=>\"dept.is_active\", \"Priority\"=>\"dept.sec_priority\", \"Details\"=>\"\");\n\t$tick_cat = array(\"ID\"=>\"cat.category_id\", \"Title\"=>\"cat.cat_name\", \"Description\"=>\"cat.cat_desc\", \"Department\"=>\"sec.sec_name\", \"Status\"=>\"cat.is_active\", \"Details\"=>\"\");\n\t$client_fund_hist = array(\"ID\"=>\"pre.id_transaction\", \"Description\"=>\"pre.id_invoice\", \"Prepaid Amount\"=>\"pre.type\", \"Date\"=>\"pre.date\", \"Amount\"=>\"pre.amount\");\n\t$client_com_hist = array(\"ID\"=>\"com.id_affiliates_balance\", \"Description\"=>\"com.id_invoice\", \"Prepaid Amount\"=>\"\", \"Date\"=>\"com.date\", \"Amount\"=>\"com.amount\");\n\t$affiliates = array(\"ID\"=>\"a.id\", \"User Name\"=>\"u.name\", \"Payout Percentage\"=>\"plan.percentage\", \"Limit\"=>\"plan.payout_limit\", \"Date\"=>\"a.date\", \"Status\"=>\"a.status\");\n\t$payout_req = array(\"ID\"=>\"req.id\", \"User Name\"=>\"u.name\", \"User E-mail\"=>\"u.email\", \"Amount\"=>\"req.amount\", \"Payment Method\"=>\"req.method\", \"Details\"=>\"\");\n\t$activity = array(\"ID\"=>\"act.activity_id\", \"User Name\"=>\"ad.username\", \"Description\"=>\"act.activity\", \"Date\"=>\"act.act_date\"\t);\n\t$servers = array(\"ID\"=>\"s.id\", \"Server Name\"=>\"s.name\", \"Location\"=>\"cnt.printable_name\", \"Discription\"=>\"s.features\", \"Display\"=>\"s.display\", \"Status\"=>\"s.status\", \"Details\"=>\"\");\n\t$bane_list = array(\"ID\"=>\"id_ban_list\", \"E-mail\"=>\"item\");\n\t$notifications = array(\"ID\"=>\"nt.id\", \"Event\"=>\"nt.event\", \"Subject\"=>\"nt.subject\", \"E-mail Message\"=>\"nt.message\", \"Language\"=>\"lang.screen_name\", \"Details\"=>\"\");\n\t$tex_report = array(\"ID\"=>\"fund.id_transaction\", \"Service ID\"=>\"fund.service_id\", \"User Name\"=>\"u.name\", \"Amount\"=>\"\", \"Tax\"=>\"\", \"Currency\"=>\"fund.currency\", \"Date and Time\"=>\"fund.fund_date\");\n\t$pro_cats = array(\"ID\"=>\"cat_id\", \"Title\"=>\"cat_name\", \"Description\"=>\"description\", \"Status\"=>\"status\", \"Details\"=>\"\");\n\t$pro_cat_trans = array(\"ID\"=>\"trans_id\", \"Category\"=>\"cat_name\", \"Description\"=>\"cat_desc\", \"Language\"=>\"language\", \"Details\"=>\"\");\n\t$plan_all = array(\"ID\"=>\"c.id_config\", \"Admin Friendly Name\"=>\"c.admin_friendly_name\", \"Amazon Configuration\"=>\"\", \"Elastic Host Configuration\"=>\"\", \"Action\"=>\"\");\n\t$pro_cur_all = array(\"ID\"=>\"c.id\", \"Currency\"=>\"c.currency_code\", \"Price\"=>\"c.price\", \"Setup Fee\"=>\"c.setup\", \"Details\"=>\"\");\n\t$plan_trans_all = array(\"ID\"=>\"id\", \"User Friendly Name\"=>\"user_friendly_name\", \"Language\"=>\"language\", \"Details\"=>\"\");\n\t\n\t$pro_servers_all = array(\"Server Title\"=>\"s.name\", \"Server Code\"=>\"conf.server_code\", \"IP-Address\"=>\"conf.ip\", \"Status\"=>\"conf.status\", \"Flag\"=>\"conf.flag\");\n\t$apps = array(\"ID\"=>\"a.id_application\", \"Keyword\"=>\"a.keyword\", \"language\"=>\"lang.screen_name\", \"Actions\"=>\"\");\n\t$chars = array(\"ID\"=>\"a.id_characteristics\", \"Keyword\"=>\"a.keyword\", \"language\"=>\"lang.screen_name\", \"Actions\"=>\"\");\n\t$alert_message = array(\"ID\"=>\"alert.id\", \"Event\"=>\"alert.event\", \"Message\"=>\"alert.message\", \"Language\"=>\"lang.screen_name\", \"Details\"=>\"\");\n\t$service_search = array(\"ID\"=>\"search_id\", \"Admin Friendly Name\"=>\"admin_friendly_name\", \"Windows Configuration\"=>\"\", \"Linux Configuration\"=>\"\", \"Status\"=>\"status\", \"Action\"=>\"\");\n\t\n\t$service_search_category = array(\"ID\"=>\"search_category_id\", \"Admin Friendly Name\"=>\"admin_friendly_name\", \"Status\"=>\"status\", \"Action\"=>\"\");\t\n\t$service_search_category_trans = array(\"ID\"=>\"id\", \"Title\"=>\"title\", \"Language\"=>\"language\", \"Details\"=>\"\");\n\t$service_search_category_framework = array(\"ID\"=>\"data.id\", \"Framework Title\"=>\"\", \"Category Title\"=>\"\");\n\t$service_search_framework = array(\"ID\"=>\"search_framework_id\", \"Admin Friendly Name\"=>\"admin_friendly_name\", \"Basic Plan\"=>\"search_basic\", \"Professional Plan\"=>\"search_profesional\", \"Enterprise Plan\"=>\"search_enterprise\", \"Status\"=>\"status\", \"Details\"=>\"\");\n\t$service_search_framework_trans = array(\"ID\"=>\"id\", \"Title\"=>\"title\", \"Language\"=>\"language\", \"Details\"=>\"\");\n\t$service_search_trans_all = array(\"ID\"=>\"id\", \"Title\"=>\"title\", \"Language\"=>\"language\", \"Details\"=>\"\");\n\t\n\t$cron_log = array(\"ID\"=>\"id\", \"Type\"=>\"cron_type\", \"Executed On\"=>\"run_on\", \"Invoice IDs\"=>\"id_invoices\");\n\t$email_log = array(\"ID\"=>\"l.id\", \"Name\"=>\"u.name\", \"Email\"=>\"u.email\", \"Subject\"=>'l.subject', \"Date\"=>\"l.sent_on\", \"Details\"=>\"\");\n\t$adyen_log = array(\"ID\"=>\"ad.id\", \"Name\"=>\"u.name\", \"Email\"=>\"u.email\", \"IP\"=>'ad.ip', \"Action\"=>\"ad.action\", \"Result\"=>\"ad.result\", \"Date\"=>\"logged_on\");\n\t$sc_log = array(\"ID\"=>\"api.id_status\", \"Name\"=>\"api.name\", \"Email\"=>\"u.email\", \"IP\"=>'api.user_ip', \"Date\"=>\"api.access_on\", \"Details\"=>\"\");\n\t$login_log = array(\"ID\"=>\"id_history\", \"Name\"=>\"\", \"Email\"=>\"\", \"IP\"=>'user_ip', \"Access Type\"=>\"type\", \"User Type\"=>\"user_type\", \"Date\"=>\"history_date\");\n\t$comm_hist = array(\"ID\"=>\"comm.id_aff_comm\", \"Date\"=>\"comm.date\", \"Type\"=>\"comm.type\", \"Status\"=>\"comm.status\", \"Ammount\"=>\"comm.amount_affiliate\");\n\t$affiliates = array('ID'=>'u.id_users', 'Email'=>'u.email', 'Name'=>'u.name', 'Total Visits'=>'', 'Total Signups'=>'', \"Details\"=>\"\");\n\t$verify_cus = array('ID'=>'u.id_users', 'Email'=>'u.email', 'Name'=>'u.name', 'User Type'=>'u.type', 'Authorization Date'=>'u.auth_date');\n\t\n\t$invoice_summary = array(\"ID\"=>\"id_summary\", \"Date\"=>\"date\", \"SC Amount\"=>\"total_sc_amount\", \"Managed Service Amount\"=>\"total_cw_amount\", \"VAT/Markup\"=>\"total_tax_amount\", \"Company User Amount\"=>\"total_company_amount\", \"Action\"=>\"\");\n\n\t$sortList = array(\n\t'alert_message'=>$alert_message, \n\t'servicesLog'=>$servicesLog, \n\t'invoices'=>$inv, \n\t'fund_hist'=>$fund_hist, \n\t'inv_hist'=>$inv_hist,\n\t'customers'=>$customers, \n\t'team'=>$team,\n\t'tickets'=>$tick, \n\t\"services\"=>$servicesArr, \n\t\"servicesView\"=>$servicesView, \n\t\"ticket_sec\"=>$tick_dept, \n\t\"ticket_cat\"=>$tick_cat, \n\t\"client_cancel_req\"=>$client_cancel_req, \n\t\"client_fund_hist\"=>$client_fund_hist, \n\t\"client_com_hist\"=>$client_com_hist, \n\t\"affiliates\"=>$affiliates, \n\t\"payout_req\"=>$payout_req, \n\t\"activity\"=>$activity, \n\t\"servers\"=>$servers, \n\t\"bane_list\"=>$bane_list, \n\t\"notifications\"=>$notifications, \n\t\"tex_report\"=>$tex_report, \n\t\"pro_cats\"=>$pro_cats, \n\t\"plan_all\"=>$plan_all, \n\t\"plan_trans_all\"=>$plan_trans_all, \n\t\"pro_servers_all\"=>$pro_servers_all, \n\t\"pro_cat_trans\"=>$pro_cat_trans, \n\t\"pro_cur_all\"=>$pro_cur_all, \n\t'apps'=>$apps, \n\t'chars'=>$chars, \n\t'service_search'=>$service_search,\n\t'service_search_trans_all'=>$service_search_trans_all,\n\t'service_search_category'=>$service_search_category,\n\t'service_search_category_trans'=>$service_search_category_trans,\n\t'service_search_category_framework'=>$service_search_category_framework,\n\t'service_search_framework'=>$service_search_framework,\n\t'service_search_framework_trans'=>$service_search_framework_trans,\n\t'cron_log'=>$cron_log,\n\t'email_log'=>$email_log,\n\t'adyen_log'=>$adyen_log,\n\t'sc_log'=>$sc_log,\n\t'login_log'=>$login_log,\n\t'comm_hist'=>$comm_hist,\n\t'affiliates'=>$affiliates,\n\t'verify_cus'=>$verify_cus,\n\t'invoice_summary'=>$invoice_summary\n\t);\n\treturn $sortList[$list];\n}", "title": "" }, { "docid": "00c1009f7c09a74357340686010033e7", "score": "0.6186411", "text": "function dataentry_export_list() {\n\t$type = params('type');\n\t\n\tswitch($type) {\n\t\tcase \"staff\":\n\t\t\t$print_url = \"http://\" . $_SERVER['SERVER_NAME'] . url_for('/admin/report/list/staff'); \n\t\t\t$pdf_path = WTK::exportPDF($print_url);\n\t\t\treturn render_file($pdf_path);\n\t\t\tbreak;\n\t\tcase \"programme\":\n\t\t\t$print_url = \"http://\" . $_SERVER['SERVER_NAME'] . url_for('/admin/report/list/programme'); \n\t\t\t$pdf_path = WTK::exportPDF($print_url);\n\t\t\treturn render_file($pdf_path);\n\t\t\tbreak;\n\t\tcase \"student\":\n\t\t\t$print_url = \"http://\" . $_SERVER['SERVER_NAME'] . url_for('/admin/report/list/student'); \n\t\t\t$pdf_path = WTK::exportPDF($print_url);\n\t\t\treturn render_file($pdf_path);\n\t\t\tbreak;\n\t\tcase \"section\":\n\t\t\t$print_url = \"http://\" . $_SERVER['SERVER_NAME'] . url_for('/admin/report/list/section'); \n\t\t\t$pdf_path = WTK::exportPDF($print_url);\n\t\t\treturn render_file($pdf_path);\n\t\t\tbreak;\n\t\tcase \"course\":\n\t\t\t$print_url = \"http://\" . $_SERVER['SERVER_NAME'] . url_for('/admin/report/list/course'); \n\t\t\t$pdf_path = WTK::exportPDF($print_url);\n\t\t\treturn render_file($pdf_path);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t}\n}", "title": "" }, { "docid": "92d823384578702d619870e32947e72a", "score": "0.6177363", "text": "function listView() {\r\n\r\n $this->conf['pidList']\t\t= intval($this->piVars['startingPoint']);\r\n $this->conf['recursive']\t= intval($this->piVars['recursion']);\r\n $this->pi_loadLL();\t// Loading the LOCAL_LANG values\r\n\r\n if ( ! isset($this->piVars['pointer'] ) ) {\r\n $this->piVars['pointer']=0;\r\n }\r\n if ( ! isset($this->piVars['mode'] ) ) {\r\n $this->piVars['mode']=1;\r\n }\r\n\r\n // Put the whole list together:\r\n $fullTable\t\t\t= '';\t// Clear var;\r\n $templateMarker = '###NEWSCALENDAR_LISTVIEW###';\r\n $template\t\t\t= $this->cObj->getSubpart($this->listViewTemplate, $templateMarker);\r\n $marker['###HEADER###'] = $this->listHeader;\r\n\r\n $totalResults = $this->resultListCount;\r\n\r\n if ( $totalResults > 0 ) {\r\n $marker['###BODY###']=\r\n // Adds the whole list table\r\n $this->makelist();\r\n } else {\r\n $marker['###BODY###']=$this->pi_getLL(\"noResults\");\r\n }\r\n\r\n $fullTable .= $this->cObj->substituteMarkerArray( $template, $marker );\r\n\r\n // Returns the content from the plugin.\r\n return $fullTable;\r\n }", "title": "" }, { "docid": "4a83b626f8d28c82bbd87a6c13ff2a1f", "score": "0.61691374", "text": "function _FormList()\n {\n global $CNK;\n $aDstImg = array( \"i_email.gif\", \"i_db.gif\" );\n $aDstAlt = array( \"L_alt_frm_to_email\", \"L_alt_frm_to_database\" );\n\n $mRid = $CNK->__oDisplay->LoadTpl('idx_all_forms');\n $mRidWrp = $CNK->__oDisplay->LoadTpl('idx_forms_wrp');\n $mRidRow = $CNK->__oDisplay->LoadTpl('idx_forms_row');\n $mRidDst = $CNK->__oDisplay->LoadTpl('idx_all_forms_dest');\n\n $aTpl = $CNK->__aWords;\n $aTplWrp = $CNK->__aWords;\n $aTplDst = array();\n $aTplDst['img_path'] = $this->__aModVars[\"my_mod_imgs\"];\n\n $aTpl['img_path'] = $this->__aModVars[\"my_mod_imgs\"];\n\n $aTplRow = $CNK->__aWords;\n $aTplRow['img_path'] = $this->__aModVars[\"my_mod_imgs\"];\n\n $mQid = $CNK->__oDb->ExecQuery( \"SELECT frm_id, frm_name, frm_type, frm_dest FROM pf_forms\" );\n\n if ( $CNK->__oDb->NumRows($mQid)<1 )\n {\n $mRidNoItems = $CNK->__oDisplay->LoadTpl('idx_forms_noitems');\n $aTplNoItems = $CNK->__aWords;\n $aTpl['T_idx_forms_wrp'] = $CNK->__oDisplay->EvalTpl( $aTplNoItems, '', $mRidNoItems );\n }\n else\n {\n $aTplWrp['T_idx_rows_all_forms'] = '';\n // Forms loop\n while ( $aRes = $CNK->__oDb->Fetch($mQid) )\n {\n $mQid1 = $CNK->__oDb->ExecQuery( \"SELECT pg_id FROM pf_pages WHERE pg_frm_id='{$aRes['frm_id']}'\" );\n\n $aPages = array();\n while ( $aRes1 = $CNK->__oDb->Fetch($mQid1) ) $aPages[] = $aRes1['pg_id'];\n\n $sPages = \"'\" . implode( \"','\", $aPages ) . \"'\";\n $mQid2 = $CNK->__oDb->ExecQuery( \"SELECT fld_id FROM pf_fields WHERE fld_pg_id IN ({$sPages})\" );\n\n $aTplRow['fields_count'] = $CNK->__oDb->NumRows($mQid2);\n $aTplRow['pages_count'] = count($aPages);\n $aTplRow['form_name'] = $aRes['frm_name'];\n\n if ( $aRes['frm_dest'] <= 1 )\n {\n $aTplDst['inf_img'] = $aDstImg[$aRes['frm_dest']];\n $aTplDst['img_alt'] = $CNK->__aWords[$aDstAlt[$aRes['frm_dest']]];\n $aTplRow['form_action'] = $CNK->__oDisplay->EvalTpl( $aTplDst, '', $mRidDst );\n }\n else if ( $aRes['frm_dest'] == 2 )\n {\n $aTplDst['inf_img'] = $aDstImg[0];\n $aTplDst['img_alt'] = $CNK->__aWords[$aDstAlt[0]];;\n $aTplRow['form_action'] = $CNK->__oDisplay->EvalTpl( $aTplDst, '', $mRidDst );\n $aTplDst['inf_img'] = $aDstImg[1];\n $aTplDst['img_alt'] = $CNK->__aWords[$aDstAlt[1]];\n $aTplRow['form_action'] .= $CNK->__oDisplay->EvalTpl( $aTplDst, '', $mRidDst );\n }\n\n $aTplRow['form_id'] = $aRes['frm_id'];\n $aTplRow['preview_url'] = \"index.php?fid={$aRes['frm_id']}&demo=1\";\n $aTplRow['get_code_url'] = \"admin.php?act=idx&code=08&fid={$aRes['frm_id']}\";\n\n $aTplWrp['T_idx_rows_all_forms'] .=\n $CNK->__oDisplay->EvalTpl( $aTplRow, '', $mRidRow );\n } // Forms loop (END)\n\n $aTpl['T_idx_forms_wrp'] = $CNK->__oDisplay->EvalTpl( $aTplWrp, '', $mRidWrp );\n }\n // Form List table rows (END)\n $aTpl['L_idx_forms_doc'] = $this->_LoadNote('form_list');\n\n $sAllForms = $CNK->__oDisplay->EvalTpl( $aTpl, '', $mRid );\n\n $this->__aTplData['L_page_title'] = $CNK->__aWords['L_page_frm_list'];\n $this->__aTplData['T_idx_wrapper_content'] = $sAllForms;\n }", "title": "" }, { "docid": "a7fd972a0398b36c4389a1e1ade0d4bb", "score": "0.61576635", "text": "function listView($addWhere='')\t{\r\n\t\tglobal $TCA;\r\n\t\t$this->internal['currentTable'] = $this->table;\r\n\r\n\t\tif ($this->template == '') {\r\n\t\t\t$this->template = $this->cObj->fileResource($this->conf['templateList']);\r\n\t\t}\r\n\r\n\t\tif ($this->listT == '') {\r\n\t\t\t$this->listT = $this->cObj->getSubpart($this->template,'###list###');\r\n\t\t}\r\n\t\t$this->rowsT = $this->cObj->getSubpart($this->listT,'###rows###');\r\n\t\t$this->rowT[0] = $this->cObj->getSubpart($this->rowsT,'###row0###');\r\n\t\t$this->rowT[1] = $this->cObj->getSubpart($this->rowsT,'###row1###');\r\n\t\t$this->cellT[0] = $this->cObj->getSubpart($this->rowT[0],'###cell###');\r\n\t\t$this->cellT[1] = $this->cObj->getSubpart($this->rowT[1],'###cell###');\r\n\r\n\t\t$this->fields = t3lib_div::trimExplode(',', $this->getTSFFvar('fieldsList'));\r\n\t\t$this->personSingleUid = $this->conf['personSingleUid'];\r\n\r\n\t\t$lConf = $this->conf['listView.'];\t// Local settings for the listView function\r\n\r\n\t\t// decide whether single view or list view has to be displayed\r\n\t\tif($this->piVars['showUid'] != ''){\r\n\t\t\t$this->detailview = 1;\r\n\t\t\treturn $this->singleView($content,$conf);\r\n\t\t} else {\r\n\t\t\t// get uid of page where single view is diplayed\r\n \t\t$this->singleUid = $this->getTSFFvar('detailPageUid');\r\n \t\tif($this->singleUid == ''){\r\n \t\t\t$this->singleUid = $GLOBALS['TSFE']->id;\r\n \t\t}\r\n\t\t\t$pUid = $_GET['tx_'.$this->persExtKey.'_pi1']['showUid'];\r\n\r\n \t\t\tif($pUid != 0){\r\n \t\t\t\treturn $this->makePersonelList($pUid);\r\n \t\t\t} else {\r\n\r\n\t \t\t\t// get mode to display. 0 for current, 1 for terminated and 2 for all\r\n\t \t\t\t$mode = $this->pi_getFFvalue($this->cObj->data['pi_flexform'],'modeSelection');\r\n\r\n\t \t\t\t// Make Where Statement\r\n\t \t\t\t$WHERE = '';\r\n\r\n\t\t\t\tif($mode == 1 || $mode == \"pm_finished\"){\r\n\t \t\t\t\t$WHERE .= 'AND finished = 1 ';\r\n\t \t\t\t} else if ($mode == 0 || $mode == \"pm_running\"){\r\n\t \t\t\t$WHERE .= 'AND finished = 0 ';\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$WHERE .= $addWhere;\r\n\r\n\t \t\tif (!isset($this->piVars['pointer']))\t$this->piVars['pointer']=0;\r\n\r\n\t \t\t\t// Initializing the query parameters:\r\n\t\t\t\tif ($this->piVars['sort'] == \"\"){\r\n\t\t\t\t\t$this->piVars['sort'] = \"projecttitle\";\r\n\t\t\t\t}\r\n\r\n\t \t\tlist($this->internal['orderBy'],$this->internal['descFlag']) = explode(':',$this->piVars['sort']);\r\n\r\n\t\t\t\t$this->internal['results_at_a_time']=t3lib_div::intInRange($lConf['results_at_a_time'],0,1000,5);\t\t// Number of results to show in a listing.\r\n\t \t\t$this->internal['maxPages']=t3lib_div::intInRange($lConf['maxPages'],0,1000,2);\t\t// The maximum number of \"pages\" in the browse-box: \"Page 1\", \"Page 2\", etc.\r\n\t \t\t$this->internal['searchFieldList']='projecttitle,projectmanagement,personsinvolved,externalprojectmanagement,externalpersonsinvolved';\r\n\t \t\t$this->internal['orderByList']='projecttitle, projectmanagement, personsinvolved';\r\n\r\n\t\t\t\t//ugly workaround for searching ids in blob:\r\n\t\t\t\t$Wuids = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid',$this->personTable,'1 '.$this->cObj->enableFields($this->personTable).$this->cObj->searchWhere($GLOBALS['TYPO3_DB']->escapeStrForLike($this->piVars['sword'],$this->personTable),$this->lastNameField.','.$this->firstNameField,$this->personTable));\r\n\t\t\t\t$pm_or = '';\r\n\t\t\t\t$pi_or = '';\r\n\t\t\t\tforeach ($Wuids as $w){\r\n\t\t\t\t\t$pm_or .= ' OR (FIND_IN_SET('.$w[uid].',projectmanagement) > 0) ';\r\n\t\t\t\t\t$pi_or .= ' OR (FIND_IN_SET('.$w[uid].',personsinvolved) > 0) ';\r\n\t\t\t\t}\r\n\r\n\t \t\t// Make Where Statement\r\n\t \t\t$WHERE .= 'AND (1 '.$this->cObj->searchWhere($GLOBALS['TYPO3_DB']->escapeStrForLike($this->piVars['sword'],$this->personTable),$this->internal['searchFieldList'],$this->table).chr(10);\r\n\t\t\t\t$WHERE .= $pm_or . $pi_or;\r\n\t\t\t\t$WHERE .= ')';\r\n\r\n\t\t\t\tif ($this->projectCategory != '') $WHERE .= ' AND FIND_IN_SET('.$this->projectCategory.', category) > 0';\r\n\t \t\t\t$backupSearchWord = $this->piVars['sword'];\r\n\t \t\t\t$this->piVars['sword'] = '';\r\n\r\n\t \t\t// get number of results\r\n\t\t\t\t$res = $this->pi_exec_query($this->table,1,$WHERE);\r\n\r\n\t \t\tlist($this->internal['res_count']) = $GLOBALS['TYPO3_DB']->sql_fetch_row($res);\r\n\t\t\t\t$desc = $this->internal['descFlag']?' DESC':'';\t\t\t\t\r\n\t \t\t// Make listing query, pass query to SQL database:\r\n\t \t\t\r\n\t\t\t\t$tmp = $this->internal['descFlag'];\r\n\t\t\t\t$this->internal['descFlag'] = 0;\r\n\t\t\t\t$res = $this->getListResultSet($this->table, $WHERE, 'lastname'.$desc.','.$this->personTable.'.firstname');\r\n\t\t\t\t$this->internal['descFlag'] = $tmp;\r\n\t \t\t$this->piVars['sword'] = $backupSearchWord;\r\n\r\n\t \t\t// Put the whole list together:\r\n\t \t\t$fullTable='';\t// Clear var;\r\n\r\n\t \t\t// Adds the search box:\r\n\t \t\t$fullTable.=$this->pi_list_searchBox();\r\n\r\n\t \t\t// Adds the result browser:\r\n\t\t\t\t$mArr['###pageBrowser###'] = $this->pi_list_browseresults(1,'',$this->conf['listView.'],'pointer',false);\r\n\t\t\t\t \r\n\t \t\t// Adds the listsview\r\n\t \t\t$fullTable .= $this->pi_list_makelist($res);\r\n\r\n\t\t\t\t// Returns the content from the plugin.\r\n\t \t\treturn $this->cObj->substituteMarkerArray($fullTable,$mArr);\r\n \t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "21723d5ee5f408eb28759a8137718aad", "score": "0.61320925", "text": "function smarty_function_sugar_teamset_list($params, &$smarty)\n{\n if (!isset($params['row']) && !isset($params['col'])) {\n\t\t$smarty->trigger_error(\"sugar_phone: missing parameters, cannot continue\");\n\t\treturn '';\n }\n\n $sfh = new SugarFieldHandler();\n\n return($sfh->displaySmarty($params['row'], $params['vardef'], 'ListView', array('col'=>$params['col'])));\n}", "title": "" }, { "docid": "861d330ea26674996925b6a363d75d60", "score": "0.6128761", "text": "function getblock_fieldlistview($block_array,$block)\n{\n\n\tif($block_array[0] == \"#MODULE INACTIVE#\"){\n\t\t$list.='<div class=\"row\"><div class=\"form-group col-sm-12\">'.$block.' Module Inactive </div></div>';\n\t\treturn $list;\n\t}\n\tif($block_array == ''){\n\t\t$list.='<div class =\"row\"><div class=\"form-group col-sm-12\">'.$block.'Not available </div></div>';\n\t\treturn $list;\n\t}\n\t$header_arr =$block_array[0][$block]['head'][0];\t\n\t$nooffields= is_array($header_arr) ? count($header_arr):0;\n\t$data_arr=$block_array[1][$block]['data'];\n\t$noofdata= is_array($data_arr) ? count($data_arr):0;\n\n\t\n\n\tif($nooffields!='')\n\t{\n\t\t$list .= '<div class=\"row\"><div class=\"form-group col-sm-12\">';\n\t\t$list .='<div class=\"box-body table-responsive no-padding\"><table class=\"table table-hover\"><tbody><tr>';\n\t\tfor($i=0;$i<$nooffields;$i++)\n\t\t\t$list .= \"<th>\". $header_arr[$i]['fielddata'].\"</th>\";\n\t\t$list .='</tr>';\n\t}\t\n\tif($noofdata != '')\n\t{\n\t\tfor($j=0;$j<$noofdata;$j++)\n\t\t{\n\t\t\tif($j==0 || $j%2==0)\n\t\t\t\t$list .='<tr>';\n\t\t\telse\n\t\t\t\t$list .='<tr>';\n\n\t\t\tfor($i=0;$i<$nooffields;$i++)\n\t\t\t{\n\t\t\t\t$data =$data_arr[$j][$i]['fielddata'];\n\t\t\t\tif($data == '')\n\t\t\t\t\t$data ='&nbsp;';\n\t\t\t\t$list .= \"<td>\".$data.\"</td>\";\n\t\t\t}\n\t\t\t$list .='</tr>';\n\t\t}\n\t\t\n $list .= '<tr><td colspan =\"'.$nooffields.'\">&nbsp;</td></tr>';\n $list .= '</table></div></div></div>';\n}\n\nreturn $list;\n}", "title": "" }, { "docid": "1ea7f4bfcf153a82a75bd6209c455972", "score": "0.61129594", "text": "private function showlist() {\n\t\tGLOBAL $db, $MYSQL_PREFIX, $TDTRAC_SITE;\n\t\t$sql = \"SELECT showid, showname FROM `{$MYSQL_PREFIX}shows` WHERE closed = 0 ORDER BY created DESC\";\n\t\t\n\t\t$list = new tdlist(array('id' => 'budget-showlist', 'actions' => true, 'icon' => 'plus', 'inset' => true));\n\t\t$list->addAction('badd');\n\t\t$list->setFormat(\"<a href='{$TDTRAC_SITE}budget/view/type:show/id:%d/'><h3>%s</h3>\"\n\t\t\t\t.\"<p><strong>Budget Expense:</strong> $%s\"\n\t\t\t\t.\"<br /><strong>Labor Expense:</strong> $%s\"\n\t\t\t\t.\"</p><span class='ui-li-count'>$%s</span></a>\");\n\t\t\t\t\n\t\t$list->addDivide('Show Reports');\n\t\t$result = mysql_query($sql, $db);\n\t\twhile ( $row = mysql_fetch_array($result) ) {\n\t\t\t$bud = get_single(\"SELECT SUM(price+tax) num FROM `{$MYSQL_PREFIX}budget` WHERE showid = {$row['showid']}\");\n\t\t\t$lab = get_single(\"SELECT SUM(h.worked*u.payrate) num FROM `{$MYSQL_PREFIX}hours` h, `{$MYSQL_PREFIX}users` u WHERE h.userid = u.userid AND showid = {$row['showid']}\");\n\t\t\t$list->addRow(array(\n\t\t\t\t\t$row['showid'],\n\t\t\t\t\t$row['showname'],\n\t\t\t\t\tnumber_format($bud,2),\n\t\t\t\t\tnumber_format($lab,2),\n\t\t\t\t\tnumber_format($bud + $lab, 2)\n\t\t\t\t), $row);\n\t\t}\n\t\t$list->addDivide('Other Reports');\n\t\t$allp = '$' . number_format(get_single(\"SELECT SUM(price+tax) AS num FROM {$MYSQL_PREFIX}budget WHERE pending = 1\"),2);\n\t\t$allr = '$' . number_format(get_single(\"SELECT SUM(price+tax) AS num FROM {$MYSQL_PREFIX}budget WHERE needrepay = 1 AND gotrepay = 0\"),2);\n\t\t$your = '$' . number_format(get_single(\"SELECT SUM(price+tax) AS num FROM {$MYSQL_PREFIX}budget WHERE needrepay = 1 AND gotrepay = 0 AND payto = {$this->user->id}\"),2);\n\t\t$rrpt = get_single(\"SELECT COUNT(imgid) as num FROM `{$MYSQL_PREFIX}rcpts` WHERE handled = 0\");\n\t\t$list->addRaw(\"<li data-theme='a'><a href='{$TDTRAC_SITE}budget/rcpt/'><h3>All Pending Reciepts</h3><span class='ui-li-count'>{$rrpt}</span></a></li>\");\n\t\t$list->addRaw(\"<li data-theme='a'><a href='{$TDTRAC_SITE}budget/view/type:reimb/id:0/'><h3>All Pending Reimbursment</h3><span class='ui-li-count'>{$allr}</span></a></li>\");\n\t\t$list->addRaw(\"<li data-theme='a'><a href='{$TDTRAC_SITE}budget/view/type:pending/id:0/'><h3>All Pending Payment</h3><span class='ui-li-count'>{$allp}</span></a></li>\");\n\t\t$list->addRaw(\"<li data-theme='a'><a href='{$TDTRAC_SITE}budget/view/type:reimb/id:{$this->user->id}/'><h3>Your Reimbursments</h3><span class='ui-li-count'>{$your}</span></a></li>\");\n\t\treturn $list->output();\n\t}", "title": "" }, { "docid": "c003e4f5d9a14731b10f033a9119fdbc", "score": "0.6108683", "text": "function DataReports() {\n\t\t$this->strContextMenuLabel = \"Data Reports\";\n\t\t$this->strLabel = \"Data Reports\";\n\t\treturn self::NEW_FRAMEWORK . \"reflex.php/DataReport/ListAll/\";\n\t}", "title": "" }, { "docid": "6a68cd0c9c79cc90576898be8bf56b03", "score": "0.60704607", "text": "function displayList() {\n\n\t\tif (!$this->config['nolangfilter']) {\n\t\t\t$language_filter = ' AND (sys_language_uid = ' .$this->sys_language_uid.' OR sys_language_uid = -1) ';\n\t\t}\n\n\t\t$temp_where='pid IN ('. $this->config['pid_list'] . ')'. $language_filter . $this->cObj->enableFields($this->strEntryTable);\n\t\tif ($this->for_tt_news){\n\t\t\t$temp_where=' uid_tt_news='.intval($this->tt_news['tx_ttnews[tt_news]']).' AND '.$temp_where;\n\t\t}\n\t\t$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', $this->strEntryTable, $temp_where);\n\n\t\t$count = $GLOBALS['TYPO3_DB']->sql_num_rows($res);\n\n\t\t$templateName = 'TEMPLATE_'.$this->code;\n\n\t\t// Teaser specific wrapping\n\t\tif ($this->code == 'TEASER') {\n\t\t\t$markerArray['###TEASER_HEADLINE###'] = $this->pi_getLL('teaser_headline');\n\n\t\t\tif ($this->config['guestbook'] > 0) {\n\t\t\t\t$markerArray['###TEASER_MORE###'] = $this->pi_getLL('teaser_more');\n\n\n\t\t\t\t$wrappedSubpartArray = array();\n\t\t\t\t$wrappedSubpartArray['###LINK_ITEM###'] = explode('|', $this->pi_linkTP_keepPIvars('|', array(), 0,'',$this->config['guestbook']));\n\t\t\t} else {\n\t\t\t\t$markerArray['###TEASER_MORE###'] = '';\n\t\t\t\t$wrappedSubpartArray = array();\n\t\t\t}\n\n\t\t} else {\n\t\t\t$markerArray['###TEASER_HEADLINE###'] = '';\n\t\t\t$markerArray['###TEASER_MORE###'] = '';\n\t\t}\n\n\t\t$list = $this->cObj->getSubpart($this->templateCode, '###'.$templateName.'###');\n\n\t\tif ($this->config['limit'] > 0 && $count > $this->config['limit'] && $this->code == 'LIST') {\n\t\t\t// configure pagebrowser\n\t\t\t$this->internal['res_count'] = $count;\n\n\t\t\t$this->internal['maxPages'] = $this->conf['pageBrowser.']['maxPages'] > 0 ? $this->conf['pageBrowser.']['maxPages'] : 10;\n\n\t\t\t$this->internal['results_at_a_time'] = $this->config['limit'];\n\n\t\t\tif (!$this->conf['pageBrowser.']['showPBrowserText']) {\n\t\t\t\t$this->LOCAL_LANG[$this->LLkey]['pi_list_browseresults_page'] = '';\n\t\t\t}\n\n\t\t\t$markerArray['###BROWSE_LINKS###'] = $this->pi_list_browseresults($this->conf['pageBrowser.']['showResultCount'],$this->conf['pageBrowser.']['tableParams']);\n\n\t\t\t$markerArray = $this->getPageBrowser($markerArray);\n\n\t\t} else {\n\n\t\t\t$this->internal['res_count'] = $count;\n\n\t\t\t$this->internal['maxPages'] = $this->conf['pageBrowser.']['maxPages'] > 0 ? $this->conf['pageBrowser.']['maxPages'] : 10;\n\n\t\t\t$markerArray = $this->getPageBrowser($markerArray);\n\n\t\t\t$markerArray['###BROWSE_LINKS###'] = '';\n\t\t\t$markerArray['###LINK_PREV###'] = '';\n\t\t\t$markerArray['###PAGES###'] = '';\n\t\t\t$markerArray['###LINK_NEXT###'] = '';\n\t\t}\n\n\t\tif ($count > 0) {\n\n\t\t\tif (!empty($this->config['sortingField']) && !empty($this->config['sortingDirection'])) {\n\t\t\t\t$orderBy = $this->config['sortingField'].' '.$this->config['sortingDirection'];\n\t\t\t}\n\n\t\t\tif ($this->piVars['pointer'] > 0) {\n\t\t\t\t$limit_start = $this->piVars['pointer']*$this->config['limit'];\n\t\t\t} else {\n\t\t\t\t$limit_start = 0;\n\t\t\t}\n\n\t\t\t$temp_where='pid IN ('. $this->config['pid_list'] . ')'.$language_filter . $this->cObj->enableFields($this->strEntryTable);\n\t\t\tif ($this->for_tt_news){\n\t\t\t\t$temp_where=' uid_tt_news='.intval($this->tt_news['tx_ttnews[tt_news]']).' AND '.$temp_where;\n\t\t\t}\n\n\t\t\t$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\n\t\t\t\t'*',\n\t\t\t\t$this->strEntryTable,\n\t\t\t\t$temp_where,\n\t\t\t\t'',\n\t\t\t\t$orderBy,\n\t\t\t\t$limit_start.','.$this->config['limit']\n\t\t\t);\n\n\t\t\t$entry = $GLOBALS['TSFE']->cObj->getSubpart($list, '###ENTRY###');\n\t\t\t$subpartArray['###CONTENT###'] = $this->getListContent($res, $entry);\n\n\t\t\t// Adds hook for processing of extra item markers\n\t\t\tif (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ve_guestbook']['extraItemMarkerHook'])) {\n\t\t\t\tforeach($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ve_guestbook']['extraItemMarkerHook'] as $_classRef) {\n\t\t\t\t\t$_procObj = & t3lib_div::getUserObj($_classRef);\n\t\t\t\t\t$markerArray = $_procObj->extraItemMarkerProcessor($markerArray, $row, $this->config, $this);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $this->cObj->substituteMarkerArrayCached($list, $markerArray, $subpartArray, $wrappedSubpartArray);\n\t\t}\n\t\telse {\n\t\t\t$no_entries = $this->cObj->getSubpart($this->templateCode, '###TEMPLATE_NO_ENTRIES###');\n\n\t\t\t$markerArray['###NO_ENTRIES_HEADLINE###'] = $this->pi_getLL('no_entries_headline');\n\t\t\t$markerArray['###NO_ENTRIES_TEXT###'] = $this->pi_getLL('no_entries_text');\n\n\t\t\t$no_entries = $this->cObj->substituteMarkerArrayCached($no_entries, $markerArray, array(), array());\n\n\t\t\treturn $no_entries;\n\t\t}\n\t}", "title": "" }, { "docid": "cf40d66d7f77923c52d3ef931416d3cf", "score": "0.6035252", "text": "public function actionGetTableFieldLists()\n {\n\t\t$post_data = Yii::$app->request->post();\n\t\t$table_name = $post_data['selected_table'];\n\t\t\n\t\t$table_org_name = ReportsTables::findOne($table_name)->table_name;\n\t\t$primary_table = $post_data['primary_table_name'];\n\t\t$primary_table_name = ReportsTables::findOne($primary_table)->table_name;\n\t\t$field_relationship_id = ReportsFieldsRelationships::find()->select(['tbl_reports_fields_relationships.id','tbl_reports_fields_relationships.rela_base_field'])\n\t\t->where(['rela_base_table'=>$primary_table_name, 'rela_table' => $table_org_name])\n\t\t->orWhere(['rela_table'=>$primary_table_name, 'rela_base_table' => $table_org_name])\n\t\t->one()->id;\n\t\t\n\t\t$fieldexist = array();\n\t\tif(isset($post_data['field_lists'][$table_name]) && !empty($post_data['field_lists'][$table_name])){\n\t\t\t$fieldexist = $post_data['field_lists'][$table_name];\n\t\t}\n\t\t$where = \"tableslist.id='{$table_name}'\";\n\t\tif(!empty($fieldexist))\n\t\t\t$where .= \" AND tablefields.id NOT IN (\".implode(\",\",$fieldexist).\")\";\n\t\t\t\n $current_table = (new ReportsReportType)->getTablesFromReports(\"tableslist.id, tableslist.table_name, tableslist.table_display_name, tablefields.id as field_id, tablefields.field_name, tablefields.field_display_name\",$where,\"\",\"GROUP BY tableslist.id, tableslist.table_name, tableslist.table_display_name, tablefields.id, tablefields.field_name, tablefields.field_display_name\"); \n\t\t $fieldstypeList = ReportsFieldType::find()->select(['id', 'field_type'])->orderBy('id')->all(); \n $fieldtypeselectList = ArrayHelper::map($fieldstypeList,'field_type','id'); \n \n\t\t return $this->renderAjax('get-table-field-lists', [\n\t\t\t 'table_name' => $table_name,\n \t\t 'current_table'=>$current_table,\n 'fieldtypeselectList'=>$fieldtypeselectList,\n 'post_data'=>$post_data,\n 'primary_table' => $primary_table,\n 'field_relationship_id' => $field_relationship_id\n ]);\n\t }", "title": "" }, { "docid": "3e689b0458805cb871eac1b3a32fae70", "score": "0.6026983", "text": "public function supplementrecordlistAction()\n {\n //Left menu (Hien thi danh sach HS cho bo sung)\n $this->view->currentModulCodeForLeft = 'SUPPLEMENT';\n //Hien thi left menu\n $this->_response->insert('left', $this->view->renderLayout('left.phtml', './application/views/scripts/'));\n\n //Tieu de man hinh danh sach\n $this->view->titleBody = \"DANH SÁCH HỒ SƠ CHỜ CÔNG DÂN BỔ SUNG\";\n // Class thiet lap cac cau hinh cua he thong\n $objconfig = new Extra_Init();\n //Class xu ly cac phuong thuc dung chung cua he thong\n $objrecordfun = new Extra_Ecs();\n //Class xu ly cac phuong thuc lien quan den xml\n $objxml = new Extra_Xml();\n //Lay mang hang so dung chung\n $this->view->arrConst = $objconfig->_setProjectPublicConst();\n //Class xu ly du lieu cua module\n $objReceiveonnet = new record_modReceiveonnet();\n //mang luu thong tin danh sach thu tuc hanh chinh cua can bo dang nhap hien thoi\n $arrRecordType = $_SESSION['arr_all_record_type'];\n //var_dump($arrRecordType); exit;\n //Lay id cua loai ho so hien tai\n $sRecordTypeId = $this->_request->getParam('recordType');//ham getparam(id bien/ten bien)\n if ($sRecordTypeId == \"\")\n $sRecordTypeId = $arrRecordType[0]['PK_RECORDTYPE'];//var_dump($arrRecordType);exit;\n //Lay id cua nguoi dang nhap hien thoi\n $iCurrentStaffId = $_SESSION['staff_id'];\n //$sReceiveDate = '';\n $sStatusList = 'CHO_BO_SUNG';\n //$sDetailStatusCompare = '';\n //$sRole = '';\n //$sOrderClause = '';\n //lay ma don vi su dung cua nguoi dang nhap hien thoi\n $sOwnerCode = $_SESSION['OWNER_CODE'];\n $sfullTextSearch = '';\n $pUrl = $_SERVER['REQUEST_URI'];\n //lay gia tri cua chuoi gia tri tim kiem\n $sfullTextSearch = trim($this->_request->getParam('txtfullTextSearch', ''));\n //lay gia tri cua trang hien thoi\n $iPage = $this->_request->getParam('hdn_current_page', 0);\n if ($iPage <= 1) {\n $iPage = 1;\n }\n //lay so ban ghi tren mot trang\n $iNumberRecordPerPage = $this->_request->getParam('cbo_nuber_record_page', 0);\n if ($iNumberRecordPerPage == 0)\n $iNumberRecordPerPage = 15;\n //var_dump($arrRecordType);\n //echo $sRecordTypeId . '<br>'.\n $arrinfoRecordType = $objrecordfun->getinforRecordType($sRecordTypeId, $arrRecordType);\n $arrinfoNetRecordType = $objrecordfun->getinforNetRecordType($sRecordTypeId, $arrRecordType);\n //var_dump($arrinfoNetRecordType);exit;\n $sRecordTypeCode = $arrinfoRecordType['C_CODE'];\n $srecordType = $arrinfoRecordType['C_NAME'];\n $sRecordStatus = $arrinfoRecordType['C_STATUS'];\n $this->view->srecordType = $srecordType;\n $this->view->sRecordTypeCode = $sRecordTypeCode;\n $this->view->sRecordTypeId = $sRecordTypeId;\n $this->view->sRecordStatus = $sRecordStatus;\n\n //lay duong dan file xml mo ta hien thi man hinh danh sach\n if ($sRecordTypeId == '')\n $sRecordTypeCode = '00';\n\n $sxmlFileName = $objconfig->_setXmlFileUrlPath(1) . 'record/' . $sRecordTypeCode . '/danh_sach_hs_cho_cong_dan_bo_sung.xml';\n if (!file_exists($sxmlFileName)) {\n $sxmlFileName = $objconfig->_setXmlFileUrlPath(1) . 'record/other/danh_sach_hs_cho_cong_dan_bo_sung.xml';\n }\n // echo $sxmlFileName;exit;\n //Day gia tri tim kiem ra view\n\n $sfullTextSearch = trim($this->_request->getParam('txtfullTextSearch', ''));\n //$sRecordStatus = $this->_request->getParam('sRecordStatus');\n //$sStatusList = 'CHO_BO_SUNG';\n $arrInputfilter = array('fullTextSearch' => $sfullTextSearch, 'pUrl' => '../supplementrecordlist/', 'RecordTypeId' => $sRecordTypeId);\n\n //Hien thi tieu chi tim kiem gom: loai ho so va chuoi ky tu tim kiem\n $this->view->filter_form = $objrecordfun->genEcsFilterFrom($iCurrentStaffId, 'TIEP_NHAN', $arrRecordType, $arrInputfilter);\n\n // Goi ham search de hien thi ra Complete Textbox\n $sRecordTypeID = $arrinfoRecordType['FK_RECORDTYPE'];\n $sDetailStatusCompare = \" And A.C_DETAIL_STATUS = 10\";\n $arrRecord = $objReceiveonnet->eCSNetReceiveRecordGetAll($sRecordTypeId, $sOwnerCode, $sfullTextSearch, $sStatusList, $iPage, $iNumberRecordPerPage);\n //$this->view->arrRecord = $arrRecord;\n //var_dump($iNumberRecordPerPage);exit;\n //echo $sxmlFileName;exit;\n $this->view->genlist = $objxml->_xmlGenerateList($sxmlFileName, 'col', $arrRecord, \"C_XML_DATA\", \"PK_NET_RECORD\", $sfullTextSearch, false, false, '../viewrecord/');\n $iNumberRecord = $arrRecord[0]['C_TOTAL_RECORD'];\n $this->view->iNumberRecord = $iNumberRecord;\n $sdocpertotal = \"Danh sách này không có hồ sơ nào\";\n //Hien thi thong tin man hinh danh sach nay co bao nhieu ban ghi va hien thi Radio \"Chon tat ca\"; \"Bo chon tat ca\"\n $this->view->SelectDeselectAll = Extra_Util::_selectDeselectAll(sizeof($arrRecord), $iNumberRecord);\n if (count($arrRecord) > 0) {\n $this->view->sdocpertotal = \"Danh sách có: \" . sizeof($arrRecord) . '' . $iNumberRecord . \" hồ sơ\";\n //Sinh xau HTML mo ta so trang (Trang 1; Trang 2;...)\n $this->view->generateStringNumberPage = Extra_Util::_generateStringNumberPage($iNumberRecord, $iPage, $iNumberRecordPerPage, $pUrl);\n //Sinh chuoi HTML mo ta tong so trang (Trang 1; Trang 2;...) va quy dinh so record/page\n $this->view->generateHtmlSelectBoxPage = Extra_Util::_generateChangeRecordNumberPage($iNumberRecordPerPage, $this->view->getStatusLeftMenu);\n\n }\n }", "title": "" }, { "docid": "179d46846fc2b51fab531ccff1bb1bef", "score": "0.60211945", "text": "function ShowFilterList() {\n\n\t// Initialize\n\t$sFilterList = \"\";\n\n\t// Field hatchdate\n\t$sExtWrk = \"\";\n\t$sWrk = \"\";\n\tif (is_array($GLOBALS[\"sel_hatchdate\"]))\n\t\t$sWrk = ewrpt_JoinArray($GLOBALS[\"sel_hatchdate\"], \", \", EW_REPORT_DATATYPE_DATE);\n\tif ($sExtWrk <> \"\" || $sWrk <> \"\")\n\t\t$sFilterList .= \"Hatchdate<br />\";\n\tif ($sExtWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sExtWrk<br />\";\n\tif ($sWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sWrk<br />\";\n\n\t// Field settingno\n\t$sExtWrk = \"\";\n\t$sWrk = \"\";\n\tif (is_array($GLOBALS[\"sel_settingno\"]))\n\t\t$sWrk = ewrpt_JoinArray($GLOBALS[\"sel_settingno\"], \", \", EW_REPORT_DATATYPE_STRING);\n\tif ($sExtWrk <> \"\" || $sWrk <> \"\")\n\t\t$sFilterList .= \"Settingno<br />\";\n\tif ($sExtWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sExtWrk<br />\";\n\tif ($sWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sWrk<br />\";\n\t\t\n\t// Field hatchery\n\t$sExtWrk = \"\";\n\t$sWrk = \"\";\n\tif (is_array($GLOBALS[\"sel_hatchery\"]))\n\t\t$sWrk = ewrpt_JoinArray($GLOBALS[\"sel_hatchery\"], \", \", EW_REPORT_DATATYPE_STRING);\n\tif ($sExtWrk <> \"\" || $sWrk <> \"\")\n\t\t$sFilterList .= \"Hatchery<br />\";\n\tif ($sExtWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sExtWrk<br />\";\n\tif ($sWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sWrk<br />\";\t\n\n\t// Field unit\n\t$sExtWrk = \"\";\n\t$sWrk = \"\";\n\tif (is_array($GLOBALS[\"sel_unit\"]))\n\t\t$sWrk = ewrpt_JoinArray($GLOBALS[\"sel_unit\"], \", \", EW_REPORT_DATATYPE_STRING);\n\tif ($sExtWrk <> \"\" || $sWrk <> \"\")\n\t\t$sFilterList .= \"Unit<br />\";\n\tif ($sExtWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sExtWrk<br />\";\n\tif ($sWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sWrk<br />\";\n\n\t// Field shed\n\t$sExtWrk = \"\";\n\t$sWrk = \"\";\n\tif (is_array($GLOBALS[\"sel_shed\"]))\n\t\t$sWrk = ewrpt_JoinArray($GLOBALS[\"sel_shed\"], \", \", EW_REPORT_DATATYPE_STRING);\n\tif ($sExtWrk <> \"\" || $sWrk <> \"\")\n\t\t$sFilterList .= \"Shed<br />\";\n\tif ($sExtWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sExtWrk<br />\";\n\tif ($sWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sWrk<br />\";\n\n\t// Field flock\n\t$sExtWrk = \"\";\n\t$sWrk = \"\";\n\tif (is_array($GLOBALS[\"sel_flock\"]))\n\t\t$sWrk = ewrpt_JoinArray($GLOBALS[\"sel_flock\"], \", \", EW_REPORT_DATATYPE_STRING);\n\tif ($sExtWrk <> \"\" || $sWrk <> \"\")\n\t\t$sFilterList .= \"Flock<br />\";\n\tif ($sExtWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sExtWrk<br />\";\n\tif ($sWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sWrk<br />\";\n\n\t// Show Filters\n\tif ($sFilterList <> \"\")\n\t\techo \"CURRENT FILTERS:<br />$sFilterList\";\n}", "title": "" }, { "docid": "d44bcabc06b2f8a7047a3761cd2d6019", "score": "0.60163224", "text": "function ShowFilterList() {\n\n\n\n\t// Initialize\n\n\t$sFilterList = \"\";\n\n\n\n\t// Field vendor\n\n\n\t$sExtWrk = \"\";\n\n\t$sWrk = \"\";\n\n\tif (is_array($GLOBALS[\"sel_vendor\"]))\n\n\t\t$sWrk = ewrpt_JoinArray($GLOBALS[\"sel_vendor\"], \", \", EW_REPORT_DATATYPE_STRING);\n\n\tif ($sExtWrk <> \"\" || $sWrk <> \"\")\n\n\t\t$sFilterList .= \"Vendor<br />\";\n\n\tif ($sExtWrk <> \"\")\n\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sExtWrk<br />\";\n\n\tif ($sWrk <> \"\")\n\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sWrk<br />\";\n\n\n\n\t// Field date\n\n\t$sExtWrk = \"\";\n\n\t$sWrk = \"\";\n\n\tif (is_array($GLOBALS[\"sel_date\"]))\n\n\t\t$sWrk = ewrpt_JoinArray($GLOBALS[\"sel_date\"], \", \", EW_REPORT_DATATYPE_DATE);\n\n\tif ($sExtWrk <> \"\" || $sWrk <> \"\")\n\n\t\t$sFilterList .= \"Date<br />\";\n\n\tif ($sExtWrk <> \"\")\n\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sExtWrk<br />\";\n\n\tif ($sWrk <> \"\")\n\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sWrk<br />\";\n\n\n\n\t// Field so\n\n\t$sExtWrk = \"\";\n\n\t$sWrk = \"\";\n\n\tif (is_array($GLOBALS[\"sel_so\"]))\n\n\t\t$sWrk = ewrpt_JoinArray($GLOBALS[\"sel_so\"], \", \", EW_REPORT_DATATYPE_STRING);\n\n\tif ($sExtWrk <> \"\" || $sWrk <> \"\")\n\n\t\t$sFilterList .= \"So<br />\";\n\n\tif ($sExtWrk <> \"\")\n\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sExtWrk<br />\";\n\n\tif ($sWrk <> \"\")\n\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sWrk<br />\";\n\n\n\n\t// Show Filters\n\n\tif ($sFilterList <> \"\")\n\n\t\techo \"CURRENT FILTERS:<br />$sFilterList\";\n\n}", "title": "" }, { "docid": "28f39bd9d070fd95231644eedc8b5617", "score": "0.60160816", "text": "function getblockurl_fieldlistview($block_array,$block)\n{\n\t$header_arr =$block_array[0][$block]['head'][0][0];\t\n\t$nooffields=count($header_arr);\n\t$data_arr=$block_array[1][$block]['data'];\n\t$noofdata=count($data_arr);\n\tif($nooffields!='')\n\t{\n\t\t$list .='<tr class=\"detailedViewHeader\" align=\"center\">';\n\t\tfor($i=0;$i<$nooffields;$i++)\n\t\t\t$list .= \"<td>\".getTranslatedString($header_arr[$i]['fielddata']).\"</td>\";\n\t\t$list .='</tr>';\n\t}\t\n\tif($noofdata != '')\n\t{\n\t\tfor($j=0;$j<$noofdata;$j++)\n\t\t{\n\t\t\tfor($j1=0;$j1<count($data_arr[$j]);$j1++)\n\t\t\t{\n\t\t\t\tif($j1== '0'||$j1%2==0)\n\t\t\t\t\t$list .='<tr class=\"dvtLabel\">';\n\t\t\t\telse\n\t\t\t\t\t$list .='<tr class=\"dvtInfo\">';\n\n\t\t\t\tfor($i=0;$i<$nooffields;$i++)\n\t\t\t\t{\n\t\t\t\t\t$data = $data_arr[$j][$j1][$i]['fielddata'];\n\t\t\t\t\tif($data =='')\n\t\t\t\t\t\t$data ='&nbsp;';\n\t\t\t\t\tif($i == '0' || $i== '1')\n\t\t\t\t\t{\tif($j1 == '0')\n\t\t\t\t\t\t$list .= '<td rowspan=\"'.count($data_arr[$j]).'\" >'.$data.\"</td>\";\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\t$list .= \"<td>\".$data.\"</td>\";\n\t\t\t\t}\n\t\t\t\t$list .='</tr>';\n\t\t\t}\n\t\t}\n\t}\t\n $list .= '<tr><td colspan =\"'.$nooffields.'\">&nbsp;</td></tr>';\n\nreturn $list;\n}", "title": "" }, { "docid": "0cee79972efdac69155a80eea8c10ae9", "score": "0.60000753", "text": "function ShowFilterList() {\n\n\t// Initialize\n\t$sFilterList = \"\";\n\n\t// Field po\n\t$sExtWrk = \"\";\n\t$sWrk = \"\";\n\tif (is_array($GLOBALS[\"sel_po\"]))\n\t\t$sWrk = ewrpt_JoinArray($GLOBALS[\"sel_po\"], \", \", EW_REPORT_DATATYPE_STRING);\n\tif ($sExtWrk <> \"\" || $sWrk <> \"\")\n\t\t$sFilterList .= \"Po<br />\";\n\tif ($sExtWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sExtWrk<br />\";\n\tif ($sWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sWrk<br />\";\n\n\t// Field vendor\n\t$sExtWrk = \"\";\n\t$sWrk = \"\";\n\tif (is_array($GLOBALS[\"sel_vendor\"]))\n\t\t$sWrk = ewrpt_JoinArray($GLOBALS[\"sel_vendor\"], \", \", EW_REPORT_DATATYPE_STRING);\n\tif ($sExtWrk <> \"\" || $sWrk <> \"\")\n\t\t$sFilterList .= \"Vendor<br />\";\n\tif ($sExtWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sExtWrk<br />\";\n\tif ($sWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sWrk<br />\";\n\n\t// Field date\n\t$sExtWrk = \"\";\n\t$sWrk = \"\";\n\tif (is_array($GLOBALS[\"sel_date\"]))\n\t\t$sWrk = ewrpt_JoinArray($GLOBALS[\"sel_date\"], \", \", EW_REPORT_DATATYPE_DATE);\n\tif ($sExtWrk <> \"\" || $sWrk <> \"\")\n\t\t$sFilterList .= \"Date<br />\";\n\tif ($sExtWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sExtWrk<br />\";\n\tif ($sWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sWrk<br />\";\n\n\t// Field code\n\t$sExtWrk = \"\";\n\t$sWrk = \"\";\n\tif (is_array($GLOBALS[\"sel_code\"]))\n\t\t$sWrk = ewrpt_JoinArray($GLOBALS[\"sel_code\"], \", \", EW_REPORT_DATATYPE_STRING);\n\tif ($sExtWrk <> \"\" || $sWrk <> \"\")\n\t\t$sFilterList .= \"Code<br />\";\n\tif ($sExtWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sExtWrk<br />\";\n\tif ($sWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sWrk<br />\";\n\n\t// Field description\n\t$sExtWrk = \"\";\n\t$sWrk = \"\";\n\tif (is_array($GLOBALS[\"sel_description\"]))\n\t\t$sWrk = ewrpt_JoinArray($GLOBALS[\"sel_description\"], \", \", EW_REPORT_DATATYPE_STRING);\n\tif ($sExtWrk <> \"\" || $sWrk <> \"\")\n\t\t$sFilterList .= \"Description<br />\";\n\tif ($sExtWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sExtWrk<br />\";\n\tif ($sWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sWrk<br />\";\n\n\t// Field deliverydate\n\t$sExtWrk = \"\";\n\t$sWrk = \"\";\n\tif (is_array($GLOBALS[\"sel_deliverydate\"]))\n\t\t$sWrk = ewrpt_JoinArray($GLOBALS[\"sel_deliverydate\"], \", \", EW_REPORT_DATATYPE_DATE);\n\tif ($sExtWrk <> \"\" || $sWrk <> \"\")\n\t\t$sFilterList .= \"Deliverydate<br />\";\n\tif ($sExtWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sExtWrk<br />\";\n\tif ($sWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sWrk<br />\";\n\n\t// Field deliverylocation\n\t$sExtWrk = \"\";\n\t$sWrk = \"\";\n\tif (is_array($GLOBALS[\"sel_deliverylocation\"]))\n\t\t$sWrk = ewrpt_JoinArray($GLOBALS[\"sel_deliverylocation\"], \", \", EW_REPORT_DATATYPE_STRING);\n\tif ($sExtWrk <> \"\" || $sWrk <> \"\")\n\t\t$sFilterList .= \"Deliverylocation<br />\";\n\tif ($sExtWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sExtWrk<br />\";\n\tif ($sWrk <> \"\")\n\t\t$sFilterList .= \"&nbsp;&nbsp;$sWrk<br />\";\n\n\t// Show Filters\n\tif ($sFilterList <> \"\")\n\t\techo \"CURRENT FILTERS:<br />$sFilterList\";\n}", "title": "" }, { "docid": "59a742c16100ed3f09916a6843ec9285", "score": "0.599849", "text": "function DisplayReport()\n{\n global $DB, $sdlanguage;\n\n $reportid = Is_Valid_Number(GetVar('reportid', 0, 'whole_number'),0,1,9999999);\n if(!$reportid)\n {\n RedirectPage(SELF_REPORTS_PHP, AdminPhrase('reports_no_reports_found'));\n return;\n }\n\n $DB->result_type = MYSQL_ASSOC;\n if(!$report = $DB->query_first(\n 'SELECT ur.*, p.name pluginname,'.\n ' r.title reason_title, r.description reason_descr'.\n ' FROM '.TABLE_PREFIX.'users_reports ur'.\n ' LEFT JOIN '.TABLE_PREFIX.'report_reasons r ON r.reasonid = ur.reasonid'.\n ' LEFT JOIN '.TABLE_PREFIX.'plugins p ON p.pluginid = ur.pluginid'.\n ' WHERE ur.reportid = %d',$reportid))\n {\n RedirectPage(SELF_REPORTS_PHP, AdminPhrase('reports_no_reports_found'));\n return;\n }\n\n $item_content = '';\n $item_title = SD_Reports::TranslateObjectID($report['pluginid'],\n $report['objectid1'], $report['objectid2'],\n $item_content);\n $reported_user = SDUserCache::CacheUser($report['reported_userid'],'',false,false,true);\n\n echo '\n <form method=\"post\" id=\"editrep\" action=\"'.SELF_REPORTS_PHP.'\" class=\"form-horizontal\">\n '.PrintSecureToken();\n echo '\n <input type=\"hidden\" name=\"reportid\" value=\"'.$reportid.'\" />\n <input type=\"hidden\" name=\"pluginid\" value=\"'.$report['pluginid'].'\" />\n <input type=\"hidden\" name=\"objectid1\" value=\"'.$report['objectid1'].'\" />\n <input type=\"hidden\" name=\"objectid2\" value=\"'.$report['objectid2'].'\" />\n ';\n \n echo '<h3 class=\"header blue lighter\">' . AdminPhrase('reports_edit_report') . '</h3>';\n \n echo'\n <div class=\"form-group\">\n \t<label class=\"control-label col-sm-2\">'. AdminPhrase('reports_plugin') . '</label>\n\t<div class=\"col-sm-6\">\n\t<p class=\"form-control-static\">\n\t\t'.$report['pluginname'].'\n\t</p>\n\t</div>\n</div>\n \n \n <div class=\"form-group\">\n \t<label class=\"control-label col-sm-2\">' . AdminPhrase('reports_reported_item') . '</label>\n <div class=\"col-sm-6\">\n\t<p class=\"form-control-static\">\n\t\t'.\n\t\tSD_Reports::DisplayReportLink($report['categoryid'], $report['pluginid'],\n $report['objectid1'], $report['objectid2']).'\n\t\t '.strip_tags($item_title).'\n\t</p>\n\t</div>\n</div>\n ';\n\n\n echo '\n \n <div class=\"form-group\">\n \t<label class=\"control-label col-sm-2\">'.$sdlanguage['common_status'].'</label>\n <div class=\"col-sm-6\">\n\t<p class=\"form-control-static\">\n <span class=\"bigger ';\n $status = SD_Reports::GetReportedItemStatus($reportid, $msg);\n if(!$status && !empty($msg))\n {\n echo 'red\">'.$msg;\n }\n else\n {\n if($status)\n echo 'green\">'.$sdlanguage['approved'];\n else\n echo 'red\">'.$sdlanguage['unapproved'];\n }\n echo '</span>\n </p>\n </div>\n </div>\n <div class=\"form-group\">\n \t<label class=\"control-label col-sm-2\">' . AdminPhrase('reported_user') . '</label>\n <div class=\"col-sm-6\">\n\t\t<p class=\"form-control-static\">';\n if(!empty($reported_user['username']))\n {\n echo $reported_user['username'].' ('.\n $reported_user['usergroup_details']['name'].')';\n }\n else\n {\n echo '---';\n }\n echo '</p></div>\n </div>\n <div class=\"form-group\">\n \t<label class=\"control-label col-sm-2\">' . AdminPhrase('reported_by') . '</label>\n <div class=\"col-sm-6\">\n\t\t<input type=\"text\" class=\"form-control\" disabled value=\"'.$report['username'].'\" />\n\t\t<span class=\"helper-text\">'.AdminPhrase('reports_date').' <strong>'. DisplayDate($report['datereported']).'</strong> | '.AdminPhrase('reports_ipaddress').' <strong>'. $report['ipaddress'].'</strong></span>\n </div>\n </div>';\n\n if(!empty($report['user_msg']))\n {\n echo '\n <div class=\"form-group\">\n \t<label class=\"control-label col-sm-2\">' . AdminPhrase('reports_user_message') . '</label>\n <div class=\"col-sm-6\">\n\t\t<textarea class=\"form-control\" disabled>'.$report['user_msg'].'</textarea>\n\t</div>\n</div>';\n }\n\n echo '\n <div class=\"form-group\">\n \t<label class=\"control-label col-sm-2\">' . AdminPhrase('reports_reason') . '</label>\n <div class=\"col-sm-6\"><p class=\"form-control-static\"><strong>'.$report['reason_title'].'</strong><br />\n <i>'.$report['reason_descr'].'</i></p>\n\t</div>\n</div>\n <div class=\"form-group\">\n \t<label class=\"control-label col-sm-2\">' . AdminPhrase('reported_content') . '</label>\n <div class=\"col-sm-6\">\n '.nl2br(htmlspecialchars($item_content)).'\n </div>\n </div>\n\n <div class=\"form-group\">\n <label class=\"control-label col-sm-2\"></label>\n\t <div class=\"col-sm-6\">\n\t <input type=\"checkbox\" class=\"ace\" id=\"deletereport\" name=\"deletereport\" value=\"1\" /><span class=\"lbl\"> '.\n AdminPhrase('reports_delete_this').'</span><br /><br />\n\t\n\t<input type=\"checkbox\" class=\"ace\" id=\"is_closed\" name=\"is_closed\" value=\"1\" '.(empty($report['is_closed'])?'':'checked=\"checked\"').' /><span class=\"lbl\"> '.\n AdminPhrase('reports_close_this_report') . '</span>';\n if(!$status)\n {\n echo '<br /><input type=\"checkbox\" id=\"do_approve\" name=\"do_approve\" value=\"1\" /><span class=\"lbl\"> '.\n AdminPhrase('report_change_status') . '</span>';\n }\n\n echo '\n </div></div>';\n\n PrintSubmit('updatereport', AdminPhrase('reports_update_report'),'editrep','fa-check');\n\n echo '\n </form>';\n\n}", "title": "" }, { "docid": "dad91a05d86b0fa70bd406a834f7e2eb", "score": "0.59859395", "text": "function ListView(){\n\n\n\tif(!$this->initialized){\n\t\tglobal $sugar_config;\n\t\t$this->records_per_page = $sugar_config['list_max_entries_per_page'] + 0;\n\t\t$this->initialized = true;\n\t\tglobal $theme, $app_strings, $image_path, $currentModule;\n\t\t$this->local_theme = $theme;\n\t\t$this->local_app_strings = &$app_strings;\n\t\t$this->local_image_path = $image_path;\n\t\t$this->local_current_module = $currentModule;\n\n\t\tif(empty($this->local_image_path)){\n\t\t\t$this->local_image_path = 'themes/'.$theme.'/images';\n\t\t}\n\t\t$this->log = LoggerManager::getLogger('listView_'.$this->local_current_module);\n\n\t}\n}", "title": "" }, { "docid": "de262ae5becc3d2b7d7151f87d183749", "score": "0.5944722", "text": "function template_aeva_admin_reports()\n{\n\tglobal $galurl, $context, $txt;\n\n\techo '\n\t\t<div class=\"pagesection\">', empty($context['button_list']) ? '' : template_button_strip($context['button_list']), '\n\t\t\t<nav>', $txt['pages'], ': ', $context['aeva_page_index'], '</nav>\n\t\t</div>\n\t\t<table class=\"w100 cp8 cs1\">\n\t\t\t<tr class=\"titlebg\">\n\t\t\t\t<td style=\"width: 2%\">&nbsp;</td>\n\t\t\t\t<td>', $txt['media_admin_reported_item'], '</td>\n\t\t\t\t<td>', $txt['media_admin_reported_by'], '</td>\n\t\t\t\t<td>', $txt['media_admin_reported_on'], '</td>\n\t\t\t\t<td>', $txt['media_admin_moderation'], '</td>\n\t\t\t</tr>', !empty($context['aeva_reports']) ? '\n\t\t\t<tr class=\"windowbg2\">\n\t\t\t\t<td colspan=\"5\"><a href=\"#\" onclick=\"return admin_toggle_all();\">' . $txt['media_toggle_all'] . '</a></td>\n\t\t\t</tr>' : '';\n\n\tforeach ($context['aeva_reports'] as $report)\n\t{\n\t\techo '\n\t\t\t<tr class=\"windowbg2\">\n\t\t\t\t<td><a href=\"#\" onclick=\"return admin_toggle(', $report['id_report'], ');\"><div class=\"foldable fold\" id=\"toggle_img_', $report['id_report'], '\"></div></a></td>\n\t\t\t\t<td><a href=\"', $galurl, 'sa=item;in=', $context['aeva_report_type'] == 'comment' ? $report['id2'] . '#com' . $report['id'] : $report['id'], '\">', $report['title'], '</a></td>\n\t\t\t\t<td>', aeva_profile($report['reported_by']['id'], $report['reported_by']['name']), '</td>\n\t\t\t\t<td>', $report['reported_on'], '</td>\n\t\t\t\t<td><a href=\"<URL>?action=media;area=moderate;sa=reports;do=delete;items;in=', $report['id_report'], ';', $context['session_query'], '\">', $txt['media_admin_del_report'], '</a>\n\t\t\t\t<br><a href=\"<URL>?action=media;area=moderate;sa=reports;items;do=deleteitem;in=', $report['id_report'], ';', $context['session_query'], '\" onclick=\"return ask(we_confirm, e);\">', $txt['media_admin_del_report_item'], '</a></td>\n\t\t\t</tr>\n\t\t\t<tr class=\"windowbg\" id=\"tr_expand_', $report['id_report'], '\" class=\"hide\">\n\t\t\t\t<td colspan=\"5\">\n\t\t\t\t\t', $txt['media_posted_by'], ': ', aeva_profile($report['posted_by']['id'], $report['posted_by']['name']), '<br>\n\t\t\t\t\t', $txt['media_posted_on'], ': ', $report['posted_on'], '<br>\n\t\t\t\t\t', $txt['media_admin_report_reason'], ': ', $report['reason'], '\n\t\t\t\t</td>\n\t\t\t</tr>';\n\t}\n\n\techo '\n\t\t</table>';\n}", "title": "" }, { "docid": "9507b735ee153d8b28ef2ea481ea337e", "score": "0.59366053", "text": "public function renderList()\n {\n $content = '';\n\n // Low on Inventory\n $lowOnInventory = $this->module->getAllPartsLowOnInventory();\n $fieldList = [\n 'name' => [\n 'title' => 'Name',\n ],\n 'description' => [\n 'title' => 'Description',\n ],\n 'supplier' => [\n 'title' => 'Supplier'\n ],\n 'qty_available' => [\n 'title' => 'Qty.',\n 'align' => 'center',\n 'class' => 'fixed-width-xs',\n 'color' => 'red',\n ],\n 'qty_on_order' => [\n 'title' => 'On Order',\n 'align' => 'center',\n 'class' => 'fixed-width-xs',\n ],\n 'supplier_link' => [\n 'title' => 'View Supplier Page',\n 'align' => 'center',\n 'class' => 'fixed-width-xs',\n 'search' => false,\n 'callback' => 'renderLinkOnHelperList'\n ]\n ];\n\n $helper = new HelperList();\n $helper->no_link = true;\n $helper->shopLinkType = '';\n $helper->simple_header = true;\n $helper->actions = [\"edit\"];\n $helper->show_toolbar = false;\n $helper->module = $this;\n $helper->listTotal = count($lowOnInventory);\n $helper->identifier = 'id';\n $helper->position_identifier = 'id';\n $helper->title = \"Low Inventory\";\n $helper->orderBy = 'qty_available';\n $helper->orderWay = 'ASC';\n $helper->table = $this->table;\n $helper->force_show_bulk_actions = true;\n $helper->bulk_actions = [\n 'createPO' => [\n 'confirm' => 'Are you sure you want to add these parts to a new Purchase Order?',\n 'text' => 'Create Purchase Order'\n ]\n ];\n $helper->token = Tools::getAdminTokenLite('AdminComponentInventoryInventory');\n $helper->currentIndex = AdminController::$currentIndex.'&configure=parts';\n\n $content .= $helper->generateList($lowOnInventory, $fieldList);\n\n // All parts\n $allParts = $this->module->getAllParts();\n $fieldList = [\n 'name' => [\n 'title' => 'Name',\n ],\n 'description' => [\n 'title' => 'Description',\n ],\n 'supplier' => [\n 'title' => 'Supplier'\n ],\n 'qty_available' => [\n 'title' => 'Qty.',\n 'align' => 'center',\n 'class' => 'fixed-width-xs',\n 'color' => 'red',\n ],\n 'qty_on_order' => [\n 'title' => 'On Order',\n 'align' => 'center',\n 'class' => 'fixed-width-xs',\n ],\n 'supplier_link' => [\n 'title' => 'View Supplier Page',\n 'align' => 'center',\n 'class' => 'fixed-width-xs',\n 'search' => false,\n 'callback' => 'renderLinkOnHelperList'\n ],\n 'datasheet_link' => [\n 'title' => 'Datasheet',\n 'align' => 'center',\n 'class' => 'fixed-width-xs',\n 'search' => false,\n 'callback' => 'renderDatasheetLinkOnHelperList'\n ],\n ];\n\n $helper = new HelperList();\n $helper->no_link = true;\n $helper->shopLinkType = '';\n $helper->simple_header = true;\n $helper->actions = [\"edit\"];\n $helper->show_toolbar = false;\n $helper->module = $this;\n $helper->listTotal = count($lowOnInventory);\n $helper->identifier = 'id';\n $helper->position_identifier = 'id';\n $helper->title = \"Entire Inventory\";\n $helper->orderBy = 'qty_available';\n $helper->orderWay = 'ASC';\n $helper->table = $this->table;\n $helper->token = Tools::getAdminTokenLite('AdminComponentInventoryInventory');\n $helper->currentIndex = AdminController::$currentIndex.'&configure=parts';\n\n $content .= $helper->generateList($allParts, $fieldList);\n\n return $content;\n }", "title": "" }, { "docid": "5c6a07bf553ede0d389ca9c7c79a9d46", "score": "0.59354347", "text": "public function renderList()\n\t{\n\t $fields_list = array(\n\t 'id' => array(\n\t 'title' => $this->l('ID'),\n\t 'search' => false,\n\t 'type' => 'bool',\n\t 'active' => 'id',\n\t ),\n\t 'shop_name' => array(\n\t 'title' => $this->l('Shop'),\n\t 'search' => false,\n\t ),\n\t 'gender' => array(\n\t 'title' => $this->l('Gender'),\n\t 'search' => false,\n\t ),\n\t 'lastname' => array(\n\t 'title' => $this->l('Lastname'),\n\t 'search' => true,\n\t ),\n\t 'firstname' => array(\n\t 'title' => $this->l('Firstname'),\n\t 'search' => true,\n\t ),\n\t 'email' => array(\n\t 'title' => $this->l('Email'),\n\t 'search' => false,\n\t ),\n\t 'phone_mobile' => array(\n\t 'title' => $this->l('Mobile'),\n\t 'search' => true,\n\t ),\n\t 'subscribed' => array(\n\t 'title' => $this->l('Subscribed'),\n\t 'search' => false,\n\t ),\n\t 'newsletter_date_add' => array(\n\t 'title' => $this->l('Subscribed on'),\n\t 'type' => 'date',\n\t 'search' => false,\n\t )\n\t );\n\n\t if (!Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE'))\n\t unset($fields_list['shop_name']);\n\n\n\t $helper_list = New HelperList();\n\t $helper_list->module = $this;\n\t $helper_list->title = $this->l('Registered Customers');\n\t $helper_list->shopLinkType = '';\n\t $helper_list->no_link = true;\n\t $helper_list->show_toolbar = true;\n\t $helper_list->simple_header = true; // set false\n\t $helper_list->identifier = 'id';\n\t $helper_list->table = 'customers';\n\t $helper_list->currentIndex = $this->context->link->getAdminLink('AdminModules', false).'&configure='.$this->name;\n\t $helper_list->token = Tools::getAdminTokenLite('AdminModules');\n\t $helper_list->actions = array('viewCustomer');\n\t /* $helper_list->toolbar_btn['export'] = array(\n\t 'href' => $helper_list->currentIndex.'&exportSubscribers&token='.$helper_list->token,\n\t 'desc' => $this->l('Export')\n\t );*/\n\t /* Before 1.6.0.7 displayEnableLink() could not be overridden in Module class\n\t we declare another row action instead\n\t if (version_compare(_PS_VERSION_, '1.6.0.7', '<'))\n\t {\n\t unset($fields_list['subscribed']);\n\t $helper_list->actions = array_merge($helper_list->actions, array('unsubscribe'));\n\t }*/\n\t // This is needed for displayEnableLink to avoid code duplication\n\t $this->_helperlist = $helper_list;\n\t /* Retrieve list data */\n\t $customers = $this->getCustomers();\n\t $helper_list->listTotal = count($customers);\n\t /* Paginate the result */\n\t $page = ($page = Tools::getValue('submitFilter'.$helper_list->table)) ? $page : 1;\n\t $pagination = ($pagination = Tools::getValue($helper_list->table.'_pagination')) ? $pagination : 50;\n\t $subscribers = $this->paginateSubscribers($customers, $page, $pagination);\n\t return $helper_list->generateList($customers, $fields_list);\n\t}", "title": "" }, { "docid": "3b9834b24db3300b3cabc650375176ce", "score": "0.59296846", "text": "function BeforeShowList(&$xt, &$templatefile, &$pageObject)\n{\n\n\t\t//global $conn;\nglobal $dal,$locale_info;\n//********** Custom code ************\n//------------------------------------------------------------\t\n//Search By Month\nif(GetDatabaseType()==4)\n\t$str=\"SELECT Count(\".AddFieldWrappers(\"FromDate\").\") AS \" . AddFieldWrappers(\"Count\") . \", date_part('month', \".AddFieldWrappers(\"FromDate\").\") AS \".AddFieldWrappers(\"MonthNumber\").\", date_part('year',\".AddFieldWrappers(\"FromDate\").\") as \".AddFieldWrappers(\"YearNumber\").\" FROM \".AddTableWrappers(\"evevents\").\" GROUP BY date_part('month',\".AddFieldWrappers(\"FromDate\").\"), date_part('year',\".AddFieldWrappers(\"FromDate\").\") ORDER BY date_part('month',\".AddFieldWrappers(\"FromDate\").\"), date_part('year',\".AddFieldWrappers(\"FromDate\").\")\";\nelseif(GetDatabaseType()==1)\n\t$str=\"SELECT Count(\".AddFieldWrappers(\"FromDate\").\") AS \" . AddFieldWrappers(\"Count\") . \", to_char(\".AddFieldWrappers(\"FromDate\").\",'MM') AS \".AddFieldWrappers(\"MonthNumber\").\", to_char(\".AddFieldWrappers(\"FromDate\").\",'YYYY') as \".AddFieldWrappers(\"YearNumber\").\" FROM \".AddTableWrappers(\"evevents\").\" GROUP BY to_char(\".AddFieldWrappers(\"FromDate\").\",'MM'), to_char(\".AddFieldWrappers(\"FromDate\").\",'YYYY') ORDER BY to_char(\".AddFieldWrappers(\"FromDate\").\",'MM'), to_char(\".AddFieldWrappers(\"FromDate\").\",'YYYY')\";\nelse\n\t$str=\"SELECT Count(\".AddFieldWrappers(\"FromDate\").\") AS \" . AddFieldWrappers(\"Count\") . \", Month(\".AddFieldWrappers(\"FromDate\").\") AS \".AddFieldWrappers(\"MonthNumber\").\", Year(\".AddFieldWrappers(\"FromDate\").\") as \".AddFieldWrappers(\"YearNumber\").\" FROM \".AddTableWrappers(\"evevents\").\" GROUP BY Month(\".AddFieldWrappers(\"FromDate\").\"), Year(\".AddFieldWrappers(\"FromDate\").\") ORDER BY Month(\".AddFieldWrappers(\"FromDate\").\"), Year(\".AddFieldWrappers(\"FromDate\").\"), Month(\".AddFieldWrappers(\"FromDate\").\") & ' ' & Year(\".AddFieldWrappers(\"FromDate\").\")\";\n\n$message.= \"<br><Font face=Tahoma size=2><b>Search By Month</b></Font><br>\";\n$data = CustomQuery($str);\nwhile($rs=db_fetch_array($data))\n{\n $MonthNumber2=$rs[\"MonthNumber\"]+1;\n\t$YearNumber2=$rs[\"YearNumber\"];\n\tif ($MonthNumber2>12)\n\t{\n\t\t\t$MonthNumber2=1;\n\t\t\t$YearNumber2=$YearNumber2+1;\n\t}\n\t$date1=$rs[\"YearNumber\"].\"-\".$rs[\"MonthNumber\"].\"-1\" ;\n\t$date2=$YearNumber2 . \"-\" . $MonthNumber2 . \"-1\";\n $message=$message . \"&nbsp;&nbsp;&nbsp;<a href='evevents_list.php?a=integrated&ctlSearchFor=&simpleSrchFieldsComboOpt=&simpleSrchTypeComboNot=&simpleSrchTypeComboOpt=&criteria=and&type1=date13&value11=\" . $date2 . \"&field1=FromDate&option1=More+than&not1=on&type2=date13&value21=\" . $date1 . \"&field2=FromDate&option2=More+than&not2='>\";\n\t$message=$message . $locale_info[\"LOCALE_SMONTHNAME\" . $rs[\"MonthNumber\"]] . \" \" . $rs[\"YearNumber\"]. \" (\" . $rs[\"Count\"].\")</a><br>\";\n}\n\n$xt->assign(\"ListLoad\",$message);\n;\t\t\n}", "title": "" }, { "docid": "2f1e23c862d12c8a3a1c1ed164475821", "score": "0.59278065", "text": "function get_list_view_data(){\n\n $temp_array = $this->get_list_view_array();\n\n $temp_array['ACCOUNT_NAME'] = $this->account_name;\n if (empty($temp_array['PROBABILITY'])) $temp_array['PROBABILITY']=0;\n if (empty($temp_array['WEIGHTED_VALUE'])) $temp_array['WEIGHTED_VALUE']=0;\n if (empty($temp_array['REVENUE'])) $temp_array['REVENUE']=0;\n\n //convert amount from base current to user's preferred currency\n $temp_array['WEIGHTED_VALUE']=$this->currency->convertFromDollar( $temp_array['WEIGHTED_VALUE'],0);\n $temp_array['REVENUE']=$this->currency->convertFromDollar( $temp_array['REVENUE'],0);\n\n if (empty($temp_array['WORKSHEET_ID'])) {\n $temp_array['WK_LIKELY_CASE']=$temp_array['WEIGHTED_VALUE'];\n $temp_array['WK_WORST_CASE']=$temp_array['WEIGHTED_VALUE'];\n $temp_array['WK_BEST_CASE']=$temp_array['WEIGHTED_VALUE'];\n } else {\n $temp_array['WK_LIKELY_CASE']=$this->currency->convertFromDollar($this->likely_case);\n $temp_array['WK_WORST_CASE']=$this->currency->convertFromDollar($this->worst_case);\n $temp_array['WK_BEST_CASE']=$this->currency->convertFromDollar($this->best_case);\n }\n\n //format numbers and add currency symbols.\n $temp_array['WEIGHTED_VALUE']=$this->currency->symbol. format_number($temp_array['WEIGHTED_VALUE'],0,0);\n $temp_array['REVENUE']=$this->currency->symbol. format_number($temp_array['REVENUE'],0,0);\n\n return $temp_array;\n }", "title": "" }, { "docid": "2827b62999b87963e1590cc2ef81437b", "score": "0.59261507", "text": "public function main()\n {\n // Prompt the expired time to devlog\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'begin' );\n\n // RETURN there isn't any list configured\n $prompt = $this->check_view();\n if ( $prompt )\n {\n // Prompt the expired time to devlog\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'end' );\n return $prompt;\n }\n // RETURN there isn't any list configured\n // Overwrite general_stdWrap, set globals $lDisplayList and $lDisplay\n $this->init();\n\n // Get HTML content\n $this->content = $this->pObj->str_template_raw;\n//var_dump( __METHOD__, __LINE__, $this->content );\n//die( ':(' );\n // Replace static html marker and subparts by typoscript marker and subparts\n // #43627, 1212105, dwildt, 5+\n $arr_return = $this->content_replaceStaticHtml();\n//var_dump( __METHOD__, __LINE__, $arr_return );\n//die( ':(' );\n if ( $arr_return[ 'error' ][ 'status' ] )\n {\n return $arr_return;\n }\n\n // Set SQL query parts in general and statements for rows\n $arr_return = $this->pObj->objSqlInit->init();\n if ( $arr_return[ 'error' ][ 'status' ] )\n {\n // Prompt the expired time to devlog\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'end' );\n $content = $arr_return[ 'error' ][ 'header' ] . $arr_return[ 'error' ][ 'prompt' ];\n return $content;\n }\n // Set SQL query parts in general and statements for rows\n //////////////////////////////////////////////////////////////////////\n //\n // csv export versus list view\n // #29370, 110831, dwildt+\n // Get template for csv\n // #i0150, 150408, dwildt, 1-/+\n //switch ( $this->pObj->objExport->str_typeNum )\n switch ( TRUE )\n {\n // #i0150, 150408, dwildt, 1-/+\n //case( 'csv' ) :\n case( $this->pObj->objExport->str_typeNum == 'csv' ) :\n // CASE csv\n // Take the CSV template\n $this->content_setCSV();\n break;\n // #i0150, 150408, dwildt, 3+\n case( strpos( $this->content, '<?xml' ) !== false ):\n $this->content_setXML();\n break;\n default:\n // CASE no csv\n // Take the default template (the list view) and replace some subparts\n $arr_return = $this->content_setDefault();\n if ( $arr_return[ 'error' ][ 'status' ] )\n {\n // Prompt the expired time to devlog\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'end' );\n $content = $arr_return[ 'error' ][ 'header' ] . $arr_return[ 'error' ][ 'prompt' ];\n return $content;\n }\n break;\n }\n $content = $this->content;\n//var_dump( __METHOD__, __LINE__, $content );\n//die( ':(' );\n // Get template for csv\n // csv export versus list view\n // #29370, 110831, dwildt+\n // Building SQL query and get the SQL result\n $arr_return = $this->rows_sql();\n if ( $arr_return[ 'error' ][ 'status' ] )\n {\n // Prompt the expired time to devlog\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'end' );\n $content = $arr_return[ 'error' ][ 'header' ] . $arr_return[ 'error' ][ 'prompt' ];\n return $content;\n }\n\n if ( isset( $arr_return[ 'data' ][ 'res' ] ) )\n {\n $res = $arr_return[ 'data' ][ 'res' ];\n $idsForRecordBrowser = null;\n }\n else\n {\n $res = $arr_return[ 'limited' ][ 'data' ][ 'res' ];\n $idsForRecordBrowser = $arr_return[ 'unlimited' ][ 'data' ][ 'idsOfHitsWoCurrTranslation' ];\n }\n // #38612, 120703, dwildt+\n // Building SQL query and get the SQL result\n // Set rows\n//var_dump( __METHOD__, __LINE__, $res, $arr_return );\n $this->rows_fromSqlRes( $res );\n $rows = $this->pObj->rows;\n//var_dump( __METHOD__, __LINE__, $rows);\n // DRS\n if ( $this->pObj->b_drs_devTodo )\n {\n $prompt = 'Synonyms aren\\'t supported any longer! Refer it to the release notes.';\n t3lib_div::devlog( '[ERROR/TODO] ' . $prompt, $this->pObj->extKey, 3 );\n }\n // DRS\n // Consolidate localisation\n\n $rows = $this->rows_consolidateLL( $rows );\n // #59669, dwildt, 1+\n $this->pObj->rowsLocalised = $rows;\n // Consolidate children\n // #i0047, 140624, dwildt, :TODO:\n// var_dump( __METHOD__, __LINE__, $rows[ 0 ] );\n $rows = $this->rows_consolidateChildren( $rows );\n $this->pObj->rows = $rows;\n // #i0047, 140624, dwildt, :TODO:\n// var_dump( __METHOD__, __LINE__, $rows[ 0 ] );\n// die();\n // Implement the hook rows_filter_values\n $this->hook_afterConsolidatetRows();\n $rows = $this->pObj->rows;\n // Order the rows\n // #i0048, 140627, dwildt, 5-\n// if ( !$this->zz_orderByValueIsLocalised() )\n// {\n// $this->pObj->objMultisort->main();\n// $rows = $this->pObj->rows;\n// }\n // #i0048, 140627, dwildt, 4+: Order in every case\n // Prompt to DRS\n $this->zz_orderByValueIsLocalised();\n//$this->pObj->objLocalise->consolidate_rowsDebug( $rows );\n $this->pObj->objMultisort->main();\n $rows = $this->pObj->rows;\n//$this->pObj->objLocalise->consolidate_rowsDebug( $rows );\n // Ordering the children rows\n $rows = $this->pObj->objMultisort->multisort_mm_children( $rows );\n $this->pObj->rows = $rows;\n\n // DRS - :TODO:\n if ( $this->pObj->b_drs_devTodo )\n {\n $prompt = 'Hierarchical order isn\\'t supported any longer! Refer it to the release notes.';\n t3lib_div::devlog( '[ERROR/TODO] ' . $prompt, $this->pObj->extKey, 3 );\n }\n // DRS - :TODO:\n // Delete fields, which were added whily runtime\n $arr_return = $this->pObj->objSqlFun_3x->rows_with_cleaned_up_fields( $rows );\n $rows = $arr_return[ 'data' ][ 'rows' ];\n unset( $arr_return );\n\n // #52486, 131005, dwildt, 1+\n $rows = $this->rows_consolidateRadialsearch( $rows );\n\n $this->pObj->rows = $rows;\n\n//$this->pObj->dev_var_dump( $rows );\n // DRS - display first row\n $this->zz_drsFirstRow();\n\n // Set the global $arrLinkToSingle\n $this->zz_setGlobalArrLinkToSingle();\n\n\n\n /////////////////////////////////////////////////////////////////\n //\n // Extension pi5: +Browser Calendar\n // Will executed in case, that the Browser is extended with the Browser Calendar user Interface\n $arr_result = $this->pObj->objCal->cal( $rows, $content );\n $bool_success = $arr_result[ 'success' ];\n if ( $bool_success )\n {\n $rows = $arr_result[ 'rows' ];\n $content = $arr_result[ 'template' ];\n $this->pObj->objTemplate->ignore_empty_rows_rule = true;\n if ( $this->pObj->b_drs_cal || $this->pObj->b_drs_templating )\n {\n t3lib_div::devLog( '[INFO/TEMPLATING/CAL/UI]: +Browser Calendar User Interface is loaded.', $this->pObj->extKey, 0 );\n }\n if ( $this->pObj->b_drs_warn )\n {\n t3lib_div::devLog( '[WARN/TEMPLATING/CAL/UI]: +Browser Calendar set ignore_empty_rows_rule to true!', $this->pObj->extKey, 2 );\n }\n // #38612, 120703, dwildt+\n if ( $this->pObj->conf[ 'navigation.' ][ 'record_browser' ] == 1 )\n {\n if ( $this->pObj->b_drs_warn )\n {\n $prompt = 'Record browser isn\\'t supported from version 4.1.2';\n t3lib_div::devlog( '[WARN/CAL+RECORDBROWSER] ' . $prompt, $this->pObj->extKey, 3 );\n $prompt = 'Rows must converted. PHP snippet must coded by the TYPO3-Browser-Team!';\n t3lib_div::devlog( '[WARN/CAL+RECORDBROWSER] ' . $prompt, $this->pObj->extKey, 2 );\n }\n }\n // #38612, 120703, dwildt+\n }\n $this->pObj->rows = $rows;\n // Prompt the expired time to devlog\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'after $this->pObj->objCal->cal( )' );\n // Extension pi5: +Browser Calendar\n /////////////////////////////////////\n //\n // record browser\n // #38612, 120703, dwildt, 1-\n// $arr_result = $this->pObj->objNaviRecordBrowser->recordbrowser_set_session_data_3x( $rows );\n // #38612, 120703, dwildt, 1+\n $arr_result = $this->pObj->objNaviRecordBrowser->recordbrowser_set_session_data( $rows, $idsForRecordBrowser );\n if ( $arr_result[ 'error' ][ 'status' ] )\n {\n $prompt = $arr_result[ 'error' ][ 'header' ] . $arr_result[ 'error' ][ 'prompt' ];\n return $this->pObj->pi_wrapInBaseClass( $prompt );\n }\n // record browser\n // #42124, dwildt, 2-\n //$content = $this->pObj->objTemplate->tmplListview( $content, $rows );\n //$this->content = $content;\n // #42124, dwildt, 10+\n//$this->pObj->dev_var_dump( $this->pObj->conf['flexform.']['viewList.']['display_listview'] );\n//die( __METHOD__ . ' - ' . __LINE__ );\n//var_dump( __METHOD__, __LINE__, $content );\n//$strDebugTrail = t3lib_utility_Debug::debugTrail();\n//$arrDebugTrail = explode( '//', $strDebugTrail );\n//var_dump( __METHOD__, __LINE__, $arrDebugTrail );\n switch ( true )\n {\n case( strpos( $content, '###LISTBODYITEM###' ) === false ):\n // Don't render the rows of the listview\n if ( $this->pObj->b_drs_templating )\n {\n $prompt = 'Template doesn\\'t contain the marker ###LISTBODYITEM###. List data won\\'t be processed!';\n t3lib_div::devlog( '[INFO/TEMPLATING] ' . $prompt, $this->pObj->extKey, 0 );\n }\n break;\n case( empty( $this->pObj->conf[ 'flexform.' ][ 'viewList.' ][ 'display_listview' ] ) ):\n // Don't render the rows of the listview\n if ( $this->pObj->b_drs_templating )\n {\n $prompt = 'flexform.viewList.display_listview is 0. List data won\\'t be processed.';\n t3lib_div::devlog( '[INFO/TEMPLATING] ' . $prompt, $this->pObj->extKey, 0 );\n }\n break;\n default:\n//var_dump( __METHOD__, __LINE__, $rows);\n//die( ':(' );\n $content = $this->pObj->objTemplate->tmplListview( $content, $rows );\n break;\n }\n // #42124, dwildt, +\n $this->content = $content;\n//var_dump( __METHOD__, __LINE__, $this->content );\n // Prompt the expired time to devlog\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'end' );\n\n // RETURN content\n return $this->content;\n }", "title": "" }, { "docid": "0ffbffcaa0328678808579b6e2b61a57", "score": "0.59123087", "text": "public function display_companylist(){ \n if ($this->checkLogin('A') == ''){\n redirect(ADMIN_ENC_URL);\n }else {\n if ($this->lang->line('company_list') != '')\n\t\t\t\t$heading = stripslashes($this->lang->line('company_list'));\n\t\t\telse $heading = 'Companies List';\n\t\t\t$this->data['heading']=$heading;\n \n $filterArr = array();\n if (isset($_GET['type']) && $_GET['type'] != '' && isset($_GET['value']) && $_GET['value'] != '' || isset($_GET['locations_id']) && $_GET['locations_id'] != '') { \n if (isset($_GET['type']) && $_GET['type'] != '') {\n $this->data['type'] = $_GET['type'];\n }\n \n if (isset($_GET['value']) && $_GET['value'] != '') {\n $this->data['value'] = $_GET['value'];\n $filter_val = $this->data['value'];\n }\n \n $this->data['filter'] = 'filter';\n if(isset($_GET['type']) && $_GET['type'] == 'mobile_number') { \n $filterArr = array('phonenumber' => $filter_val,'dail_code' => $_GET['country']);\n }else if($_GET['type'] == 'location') { \n $locations_id = $_GET['locations_id'];\n $filterArr = array(\"locality.city\" => trim($locations_id));\n }else if(isset($_GET['type'])){ \n $filterArr = array($this->data['type'] => $filter_val);\n } \n } \n \n $this->data['companylist'] = $companylist = $this->company_model->get_all_details(COMPANY, '', '', '', '', $filterArr); \n if(isset($_GET['export']) && ($_GET['export'] == 'excel') && $companylist->num_rows() > 0){ \n $this->load->helper('export_helper');\n export_companys_list($companylist->result(),$this->data);\n } \n $this->data['locationsList'] = $this->driver_model->get_selected_fields(LOCATIONS, array('status' => 'Active'),array('city','city_name','_id'),array('city_name' => 'ASC'));\n $this->load->view(ADMIN_ENC_URL.'/company/display_companydetails',$this->data);\n }\n }", "title": "" }, { "docid": "7d5b289608e798aa8a11c7649f947039", "score": "0.58860666", "text": "function BeforeShowList(&$xt, &$templatefile, &$pageObject)\n{\n\n\t\t\nglobal $calendarSettings;\t\t\t\t\t\n\t\t\t\t\t\nif ( !isClanedarTableUserDefined() ) \t\t\t\t\t\n\t$xt->assign(\"my_addlink_attrs\",\"href=\\\"caldaily_add.php?wind=calendar\\\"\");\nelse\n\t$xt->assign(\"my_addlink_attrs\",\"href=\\\"\".GetTableURL($calendarSettings[\"calendarTable\"]).\"_add.php?wind=calendar\\\"\");\n\t\ncalendar_hideGridColumn($xt);\n;\t\t\n}", "title": "" }, { "docid": "47c0f6471b124ef5254477be3ac28241", "score": "0.5868506", "text": "function listitems(){\n $urldata = $this->uri->uri_to_assoc(3, array('m', 'i'));\n # Pick all assigned data\n $data = assign_to_data($urldata);\n //check permission\n check_user_access($this, 'manage_items', 'redirect');\n\n\n $current_financial_year = currentyear.'-'.endyear;\n\n \n //manage_items_v\n $data['list'] = $this->item->get_items($data);\n\n \n\n\n #fetch_ifb_procurement_entries\n $data['page_title'] = \"Manage Items\"; \n $data['current_menu'] = 'manage_items';\n $data['view_to_load'] = 'items/manage_items_v';\n $data['view_data']['form_title'] = $data['page_title'];\n \n\n $this->load->view('dashboard_v', $data);\n\n\n }", "title": "" }, { "docid": "5fd072599d60583ec5d844ba47ee6177", "score": "0.58603406", "text": "function __pulldownLists()\n {\n\n //profiling\n $this->data['controller_profiling'][] = __function__;\n\n //[all_groups_id]\n $data = $this->groups_model->allGroups('groups_name', 'ASC');\n \n $this->data['lists']['all_groups_id'] = create_pulldown_list($data, 'groups', 'id');\n }", "title": "" }, { "docid": "b64ef15104626cef6d918bf894c25e9d", "score": "0.5858548", "text": "function onGetLists(&$lists,$pageMenuItem,$view)\n\t{\n\t\t//why style the id here?\n\t\t//$lists->display->id = 'style=\"color: green;font-style: oblique;font-size: large;\"';\n\n\t\t// TODO add button new category and new section\n\t\t/*\n\t\t$addtop = '<tr style=\"color: blue;font-style: oblique;\">';\n\t\t$addtop .= '<td colspan=\"2\">';\n\t\t$addtop .= 'display from pagetypes/content_category_blog/content_category_blog.php lists->add->top';\n\t\t$addtop .= '<br />';\n\t\t$addtop .= 'the green color in id from pagetypes/content_category_blog/content_category_blog.php lists->display-id ';\n\t\t$addtop .= '<br />';\n\t\t$addtop .= 'we can add something here also script-code';\n\t\t$addtop .= '</td>';\n\t\t$addtop .= '</tr>';\n\n\t\t$addtop .= '<tr>';\n\t\t$addtop .= '<td>';\n\t\t$addtop .= 'ore buttons:';\n\t\t$addtop .= '</td>';\n\t\t$addtop .= '<td>';\n\n\t\t$addtop .= '</td>';\n\t\t$addtop .= '</tr>';\n\n\t\t$button = PagesAndItemsHelper::getButtonMaker();\n\t\t$button->imagePath = $this->controller->dirIcons;\n\t\t$button->buttonType = 'input';\n\t\t//$button->name = 'anButton';\n\t\t//$button->id = null; //generated by the ButtonMaker if need and empty\n\t\t$button->text = 'oh an modal input button'; // without we have an image button\n\t\t$button->alt = 'alt an modal button';\n\t\t$button->altTitle = 'an modal button';\n\t\t$button->onclick = 'alert(\\'for future\\')';\n\t\t$button->imageName = 'icon-16-emoticon_smile.png';\n\t\t$button->rel = 'handler: \\'iframe\\', size: {x: 600, y: 450}'; //with double-quote we can not use {} only with single-quote\n\t\t$button->href = 'index.php?option=com_pagesanditems&view=menuitemtypeselect&tmpl=component&sub_task=new&pageType=&menutype=customcontent&pageId=192';\n\t\t$button->modal = true;\n\t\t//$button->paddingLeft = '16';\n\t\t$button->joomlaToolTip = 1;\n\t\t$html .= $button->makeButton();\n\t\t*/\n\n\n\t\t//if new, show option for creating new category\n\t\tif(!isset($pageMenuItem->params['id'])){\n\n\t\t\t//new category blog page\n\n\t\t\t/*\n\t\t\t$addtop = '<tr>';\n\t\t\t$addtop .= '<td>';\n\t\t\t$addtop .= JText::_('COM_PAGESANDITEMS_CREATE_NEW_CATEGORY');\n\t\t\t$addtop .= '</td>';\n\t\t\t$addtop .= '<td>';\n\t\t\t$addtop .= '<input type=\"checkbox\" value=\"1\" name=\"create_new_category\" />';\n\t\t\t$addtop .= '</tr>';\n\t\t\t*/\n\n\t\t\t/*\n\t\t\t//did this on PHP level so tooltips get rendered correctly\n\t\t\t$addtop = '<tr style=\"display: none;\">';\n\t\t\t$addtop .= '<td>';\n\t\t\t$addtop .= '<script>'.\"\\n\";\n\t\t\t$addtop .= \"function display_new_category_option(){\\n\";\n\t\t\t$addtop .= \"category_label = $('jform_request_id-lbl');\\n\";\n\t\t\t$addtop .= \"category_label.setProperty('for','create_new_category_0');\\n\";\n\t\t\t$addtop .= \"parent = $(category_label).getParent(['li']);\\n\";\n\t\t\t$addtop .= \"inner_html = $(parent).innerHTML;\\n\";\n\t\t\t//split string\n\t\t\t$addtop .= \"posSelect = inner_html.indexOf(\\\"<select\\\");\\n\";\n\t\t\t$addtop .= \"cat_label = inner_html.substr(0, posSelect);\\n\";\n\t\t\t$addtop .= \"cat_select = inner_html.substr(posSelect, inner_html.length);\\n\";\n\t\t\t$addtop .= \"cat_label = cat_label.replace('*', '');\\n\";\n\n\t\t\t$addtop .= \"html = '<table>';\\n\";\n\t\t\t$addtop .= \"html += '<tr>';\\n\";\n\t\t\t\t$addtop .= \"html += '<td>';\\n\";\n\t\t\t\t$addtop .= \"html += '<input type=\\\"radio\\\" name=\\\"create_new_category\\\" value=\\\"0\\\" id=\\\"create_new_category_0\\\" />';\\n\";\n\t\t\t\t$addtop .= \"html += '</td>';\\n\";\n\t\t\t\t$addtop .= \"html += '<td>';\\n\";\n\t\t\t\t$addtop .= \"html += cat_label;\\n\";\n\t\t\t\t$addtop .= \"html += '</td>';\\n\";\n\t\t\t\t$addtop .= \"html += '<td>';\\n\";\n\t\t\t\t$addtop .= \"html += cat_select;\\n\";\n\t\t\t\t$addtop .= \"html += '</td>';\\n\";\n\t\t\t$addtop .= \"html += '</tr>';\\n\";\n\t\t\t$addtop .= \"html += '<tr>';\\n\";\n\t\t\t\t$addtop .= \"html += '<td>';\\n\";\n\t\t\t\t$addtop .= \"html += '<input type=\\\"radio\\\" name=\\\"create_new_category\\\" value=\\\"1\\\" id=\\\"create_new_category_1\\\" checked=\\\"checked\\\" />';\\n\";\n\t\t\t\t$addtop .= \"html += '</td>';\\n\";\n\t\t\t\t$addtop .= \"html += '<td>';\\n\";\n\t\t\t\t$addtop .= \"html += '<label class=\\\"hasTip\\\" for=\\\"create_new_category_1\\\" />';\\n\";\n\t\t\t\t$addtop .= \"html += '\".addslashes(JText::_('COM_PAGESANDITEMS_CREATE_NEW_CATEGORY')).\"';\\n\";\n\t\t\t\t$addtop .= \"html += '</label>';\\n\";\n\t\t\t\t$addtop .= \"html += '</td>';\\n\";\n\t\t\t\t$addtop .= \"html += '<td>';\\n\";\n\t\t\t\t$addtop .= \"html += '\".addslashes(JText::_('COM_PAGESANDITEMS_CREATE_NEW_CATEGORY_TIP')).\"';\\n\";\n\t\t\t\t$addtop .= \"html += '</td>';\\n\";\n\t\t\t\t$addtop .= \"html += '</tr>';\\n\";\n\t\t\t$addtop .= \"html += '</table>';\\n\";\n\n\t\t\t$addtop .= \"$(parent).innerHTML = html;\\n\";\n\t\t\t$addtop .= \"\\n\";\n\t\t\t$addtop .= \"}\\n\";\n\t\t\t$addtop .= \"if(window.addEventListener)window.addEventListener(\\\"load\\\",display_new_category_option,false);\\n\";\n\t\t\t$addtop .= \"else if(window.attachEvent)window.attachEvent(\\\"onload\\\",display_new_category_option);\\n\";\n\n\t\t\t$addtop .= '</script>'.\"\\n\";\n\t\t\t$addtop .= '</td>';\n\t\t\t$addtop .= '</tr>';\n\t\t\t$lists->add->top = $addtop;\n\t\t\t*/\n\n\t\t}\n\n\n\t\t/*\n\t\t$addbottom = '<tr>';\n\t\t$addbottom .= '<td>';\n\t\t$addbottom .= 'display from pagetypes/content_category_blog/content_category_blog.php lists->add->bottom';\n\t\t$addbottom .= '<td>';\n\t\t$addbottom .= '</tr>';\n\t\t//$lists->add->bottom =$addbottom;\n\t\t*/\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3c373c447f4dff75c9961c47a67e5ae4", "score": "0.58572865", "text": "function __pulldownLists()\n {\n\n //profiling\n $this->data['controller_profiling'][] = __function__;\n\n //[all_projects]\n $data = $this->projects_model->allProjects('projects_title', 'ASC');\n $this->data['debug'][] = $this->projects_model->debug_data;\n $this->data['lists']['all_projects'] = create_pulldown_list($data, 'projects', 'id');\n\n //[all_team_members]\n $data = $this->teamprofile_model->allTeamMembers('team_profile_full_name', 'ASC');\n $this->data['debug'][] = $this->teamprofile_model->debug_data;\n $this->data['lists']['all_team_members'] = create_pulldown_list($data, 'team_members', 'id');\n\n }", "title": "" }, { "docid": "59feb7919cefdd2c23e92928d461c836", "score": "0.58432215", "text": "function getLists()\n {\n $hitsCmp[] = JHTML::_('select.option', '0', '=');\n $hitsCmp[] = JHTML::_('select.option', '1', '>');\n $hitsCmp[] = JHTML::_('select.option', '2', '<');\n $lists['hitsCmp'] = JHTML::_('select.genericlist', $hitsCmp, 'filterHitsCmp', \"class=\\\"inputbox\\\" onchange=\\\"document.adminForm.submit();\\\" size=\\\"1\\\"\" , 'value', 'text', $this->filterHitsCmp);\n $lists['hitsVal'] = \"<input type=\\\"text\\\" name=\\\"filterHitsVal\\\" value=\\\"{$this->filterHitsVal}\\\" size=\\\"5\\\" maxlength=\\\"10\\\" onchange=\\\"document.adminForm.submit();\\\" />\";\n\n // Make the input box for Itemid filter\n $lists['itemid'] = \"<input type=\\\"text\\\" name=\\\"filterItemid\\\" value=\\\"{$this->filterItemid}\\\" size=\\\"5\\\" maxlength=\\\"10\\\" onchange=\\\"document.adminForm.submit();\\\" />\";\n\n // make the select list for the filter\n $viewmode[] = JHTML::_('select.option', '3', JText::_('Show All Redirects'));\n $viewmode[] = JHTML::_('select.option', '2', JText::_('Show Custom Redirects'));\n $viewmode[] = JHTML::_('select.option', '0', JText::_('Show SEF Urls'));\n $viewmode[] = JHTML::_('select.option', '4', JText::_('Show Links to Homepage'));\n $viewmode[] = JHTML::_('select.option', '1', JText::_('Show 404 Log'));\n $viewmode[] = JHTML::_('select.option', '5', JText::_('Show Duplicities'));\n $lists['viewmode'] = JHTML::_('select.genericlist', $viewmode, 'viewmode', \"class=\\\"inputbox\\\" onchange=\\\"document.adminForm.submit();\\\" size=\\\"1\\\"\" , 'value', 'text', $this->viewmode);\n\n // make the select list for the filter\n $orderby[] = JHTML::_('select.option', '0', JText::_('SEF Url').' '.JText::_('(asc)'));\n $orderby[] = JHTML::_('select.option', '1', JText::_('SEF Url').' '.JText::_('(desc)'));\n if ($this->viewmode != 1) {\n $orderby[] = JHTML::_('select.option', '2', JText::_('Real Url').' '.JText::_('(asc)'));\n $orderby[] = JHTML::_('select.option', '3', JText::_('Real Url').' '.JText::_('(desc)'));\n }\n $orderby[] = JHTML::_('select.option', '4', JText::_('Hits').' '.JText::_('(asc)'));\n $orderby[] = JHTML::_('select.option', '5', JText::_('Hits').' '.JText::_('(desc)'));\n $lists['sortby'] = JHTML::_('select.genericlist', $orderby, 'sortby', \"class=\\\"inputbox\\\" onchange=\\\"document.adminForm.submit();\\\" size=\\\"1\\\"\" , 'value', 'text', $this->sortby);\n\n // make the select list for the component filter\n $comList[] = JHTML::_('select.option', '', JText::_('(All)'));\n //$comList[] = JHTML::_('select.option', 'com_content', 'Content');\n $this->_db->setQuery(\"SELECT `name`,`option` FROM `#__components` WHERE `parent` = '0' ORDER BY `name`\");\n $rows = $this->_db->loadObjectList();\n if ($this->_db->getErrorNum()) {\n echo $this->_db->stderr();\n return false;\n }\n foreach(array_keys($rows) as $i) {\n $row = &$rows[$i];\n $comList[] = JHTML::_('select.option', $row->option, $row->name );\n }\n $lists['comList'] = JHTML::_( 'select.genericlist', $comList, 'comFilter', \"class=\\\"inputbox\\\" onchange=\\\"document.adminForm.submit();\\\" size=\\\"1\\\"\", 'value', 'text', $this->filterComponent);\n\n // make the filter text boxes\n $lists['filterSEF'] = \"<input class=\\\"hasTip\\\" type=\\\"text\\\" name=\\\"filterSEF\\\" value=\\\"{$this->filterSEF}\\\" size=\\\"40\\\" maxlength=\\\"255\\\" onchange=\\\"document.adminForm.submit();\\\" title=\\\"\".JText::_('TT_FILTER_SEF').\"\\\" />\";\n $lists['filterReal'] = \"<input class=\\\"hasTip\\\" type=\\\"text\\\" name=\\\"filterReal\\\" value=\\\"{$this->filterReal}\\\" size=\\\"40\\\" maxlength=\\\"255\\\" onchange=\\\"document.adminForm.submit();\\\" title=\\\"\".JText::_('TT_FILTER_REAL').\"\\\" />\";\n \n // Load the active languages\n if( SEFTools::JoomFishInstalled() ) {\n $db =& JFactory::getDBO();\n $query = \"SELECT `name`, `shortcode` FROM `#__languages` WHERE `active` = '1' ORDER BY `name`\";\n $db->setQuery($query);\n $langs = $db->loadObjectList();\n \n $langList = array();\n $langList[] = JHTML::_('select.option', '', JText::_('(All)'));\n foreach($langs as $lang) {\n $langList[] = JHTML::_('select.option', $lang->shortcode, $lang->name);\n }\n \n // Make the language filter\n $lists['filterLang'] = JHTML::_('select.genericlist', $langList, 'filterLang', 'class=\"inputbox\" onchange=\"document.adminForm.submit();\" size=\"1\"', 'value', 'text', $this->filterLang);\n }\n\n return $lists;\n }", "title": "" }, { "docid": "18123ae47fa107220dc6502deffa5386", "score": "0.5840061", "text": "function reports_list_map()\n\t{\n\t\t// Reports\n\t\t//$incidents = Incident_Model::get_incidents(reports::$params);\n $max_e = 20;\n\t\t$incidents = reports::fetch_incidents(true, $max_e);\n $this->incidentsToJson($incidents);\n }", "title": "" }, { "docid": "bb29e909daa337790f68a8f3a394376c", "score": "0.5828783", "text": "function makelist() {\r\n\r\n $templateMarker\t= '###NEWSCALENDAR_LISTVIEW_ITEM_HEADER###';\r\n $template\t= $this->cObj->getSubpart($this->listViewTemplate, $templateMarker);\r\n\r\n $out = '<div'.$this->pi_classParam('listrow').'>';\r\n reset( $this->resultList );\r\n $checkDate = 0;\r\n while ( list( $key, $val) = each( $this->resultList ) ) {\r\n\r\n $recordDate = date('Y-m-d',$val['datetime']);\r\n\r\n $this->internal['currentRow'] = $val;\r\n $theListItem = $this->makeListItemNormal( 'listinterval' );\r\n\r\n if ($recordDate != $checkDate && $theListItem && $theListItem != '') {\r\n\r\n $dayHeader = $this->convertSpecialCharacters(strftime($this->conf['listView.']['strftime.']['header'],$val['datetime']));\r\n $marker['###HEADER###'] = '<div class=\"'.$this->extKey.'_dayHeader\">'.$dayHeader.'</div>';\r\n $out .= $this->cObj->substituteMarkerArray($template,$marker);\r\n\r\n }\r\n\r\n $out\t\t.= $theListItem;\r\n $checkDate\t= date('Y-m-d',$val['datetime']);\r\n\r\n }\r\n $out .= '</div>';\r\n return $out;\r\n }", "title": "" }, { "docid": "bc9566e3cf34052106162fe93fc039e3", "score": "0.58045393", "text": "public function indexAction() {\n\n\t\tif(isset($_POST) && !empty($_POST['list_lsettings']) ) { \n\t\t\t$_POST['list_lsettings'] = trim($_POST['list_lsettings']); \n\t\t}\n\t\t\n\t $db = Zend_Db_Table_Abstract::getDefaultAdapter();\n\t\tif (isset($_POST['list_locationfield']) && $_POST['list_locationfield'] == '0') {\n\t\t\t$db->query(\"UPDATE `engine4_core_menuitems` SET `enabled` = '0' WHERE `engine4_core_menuitems`.`name` = 'list_main_location' LIMIT 1 ;\");\n\t\t} else {\n\t\t\t$db->query(\"UPDATE `engine4_core_menuitems` SET `enabled` = '1' WHERE `engine4_core_menuitems`.`name` = 'list_main_location' LIMIT 1 ;\");\n\t\t}\n\t\t\n $list_global_form_content = array('list_location', 'list_report', 'list_share', 'list_socialshare', 'list_rating', 'list_printer', 'list_tellafriend', 'list_captcha_post', 'list_proximitysearch', 'list_checkcomment_widgets', 'list_sponsored_image', 'list_sponsored_color', 'list_feature_image', 'list_featured_color', 'list_page', 'list_proximity_search_kilometer', 'list_title_turncation', 'list_requried_description', 'list_status_show', 'list_title_turncationsponsored', 'submit', \"list_browseorder\", \"list_network\", \"list_default_show\", \"list_map_sponsored\", \"list_map_city\", \"list_map_zoom\",\"list_manifestUrlS\",\"list_manifestUrlP\",\"list_code_share\", \"list_locationfield\",\"list_expirydate_enabled\", \"list_tinymceditor\", \"list_categorywithslug\", \"list_description_allow\");\n\n $oldLocation = Engine_Api::_()->getApi('settings', 'core')->getSetting('list.map.city', \"World\");\n\t\t$this->view->isModsSupport = Engine_Api::_()->list()->isModulesSupport();\n include_once APPLICATION_PATH . '/application/modules/List/controllers/license/license1.php';\n $newLocation = Engine_Api::_()->getApi('settings', 'core')->getSetting('list.map.city', \"World\");\n\n\t\tif($oldLocation != $newLocation) {\n\t\t\t$this->setDefaultMapCenterPoint($oldLocation, $newLocation);\n\t\t}\n }", "title": "" }, { "docid": "2750685ee3bdf9a6cadc179d8541c90b", "score": "0.5792833", "text": "function creporte_mml_list() {\n\t\tglobal $conn;\n\n\t\t// Initialize table object\n\t\t$GLOBALS[\"reporte_mml\"] = new creporte_mml();\n\n\t\t// Initialize other table object\n\t\t$GLOBALS['usuario'] = new cusuario();\n\n\t\t// Intialize page id (for backward compatibility)\n\t\tif (!defined(\"EW_PAGE_ID\"))\n\t\t\tdefine(\"EW_PAGE_ID\", 'list', TRUE);\n\n\t\t// Initialize table name (for backward compatibility)\n\t\tif (!defined(\"EW_TABLE_NAME\"))\n\t\t\tdefine(\"EW_TABLE_NAME\", 'reporte_mml', TRUE);\n\n\t\t// Open connection to the database\n\t\t$conn = ew_Connect();\n\n\t\t// Initialize list options\n\t\t$this->ListOptions = new cListOptions();\n\t}", "title": "" }, { "docid": "65c090a3071d8add64da0c3caf57a695", "score": "0.5763921", "text": "function manage_list($parameters){\r\n\t\tif ($this->module_debug){\r\n\t\t\t$this->call_command(\"UTILS_DEBUG_ENTRY\",array($this->module_name,\"manage_layout_list\",__LINE__,print_r($parameters,true)));\r\n\t\t}\r\n\t\t$sql = \"Select * from micromenu_list where micromenu_client = $this->client_identifier order by micromenu_identifier\";\r\n\t\tif ($this->module_debug){\r\n\t\t\t$this->call_command(\"UTILS_DEBUG_ENTRY\",array($this->module_name,\"SQL Statement\",__LINE__,\"[$sql]\"));\r\n\t\t}\r\n\t\t$result = $this->call_command(\"DB_QUERY\",array($sql));\r\n\t\t$variables = Array();\r\n\t\t$variables[\"FILTER\"]\t\t\t= $this->filter($parameters);\r\n\t\t$variables[\"NUMBER_OF_ROWS\"]\t= 0;\r\n\t\t$variables[\"START\"]\t\t\t\t= 0;\r\n\t\t$variables[\"FINISH\"]\t\t\t= 0;\r\n\t\t$variables[\"CURRENT_PAGE\"]\t\t= 0;\r\n\t\t$variables[\"NUMBER_OF_PAGES\"]\t= 0;\r\n\t\t$variables[\"HEADER\"]\t\t\t= \"MicroMenu Management\";\r\n\t\t$variables[\"PAGE_BUTTONS\"] = Array(\r\n\t\t\tArray(\"ADD\", $this->module_command.\"ADD\", ADD_NEW)\r\n\t\t);\r\n\t\tif ($this->call_command(\"DB_NUM_ROWS\",Array($result))==0){\r\n\t\t\tif ($this->module_debug){\r\n\t\t\t\t$this->call_command(\"UTILS_DEBUG_ENTRY\",array($this->module_name,\"SQL Statement\",__LINE__,\"[Records not returned]\"));\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tif ($this->module_debug){\r\n\t\t\t\t$this->call_command(\"UTILS_DEBUG_ENTRY\",array($this->module_name,\"SQL Statement\",__LINE__,\"[Records returned]\"));\r\n\t\t\t}\r\n\t\t\t$page = $this->check_parameters($parameters,\"page\",\"1\");\r\n\t\t\t$number_of_records = $this->call_command(\"DB_NUM_ROWS\",array($result));\r\n\t\t\t$goto = ((--$page)*$this->page_size);\r\n\t\t\tif (($goto!=0)&&($number_of_records>$goto)){\r\n\t\t\t\t$pointer = $this->call_command(\"DB_SEEK\",array($result,$goto));\r\n\t\t\t}\r\n\t\t\tif ($goto+$this->page_size>$number_of_records){\r\n\t\t\t\t$finish = $number_of_records;\r\n\t\t\t}else{\r\n\t\t\t\t$finish = $goto+$this->page_size;\r\n\t\t\t}\r\n\t\t\t$goto++;\r\n\t\t\t$page++;\r\n\t\t\t\r\n\t\t\t$num_pages=floor($number_of_records / $this->page_size);\r\n\t\t\t$remainder = $number_of_records % $this->page_size;\r\n\t\t\tif ($remainder>0){\r\n\t\t\t\t$num_pages++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$counter=0;\r\n\t\t\t$variables[\"PAGE_COMMAND\"] \t\t= $this->module_command.\"LIST\";\r\n\t\t\t$variables[\"NUMBER_OF_ROWS\"]\t= $number_of_records;\r\n\t\t\t$variables[\"START\"]\t\t\t\t= $goto;\r\n\t\t\t$variables[\"FINISH\"]\t\t\t= $finish;\r\n\t\t\t$variables[\"CURRENT_PAGE\"]\t\t= $page;\r\n\t\t\t$variables[\"NUMBER_OF_PAGES\"]\t= $num_pages;\r\n\t\t\t\r\n\t\t\t$start_page=intval($page/$this->page_size);\r\n\t\t\t$remainder = $page % $this->page_size;\r\n\t\t\tif ($remainder>0){\r\n\t\t\t\t$start_page++;\r\n\t\t\t}\r\n\t\t\t$variables[\"START_PAGE\"]\t\t= $start_page;\r\n\t\t\tif (($start_page+$this->page_size)>$num_pages)\r\n\t\t\t\t$end_page=$num_pages;\r\n\t\t\telse\r\n\t\t\t\t$end_page=$this->page_size;\r\n\t\t\t$variables[\"END_PAGE\"]\t\t\t= $end_page;\r\n\t\t\t$variables[\"RESULT_ENTRIES\"] =Array();\r\n\t\t\t$counter=0;\r\n\t\t\twhile (($r = $this->call_command(\"DB_FETCH_ARRAY\",array($result))) && ($counter<$this->page_size)){\r\n\t\t\t\t$counter++;\r\n\t\t\t\t$i = count($variables[\"RESULT_ENTRIES\"]);\r\n\t\t\t\t$variables[\"RESULT_ENTRIES\"][$i]=Array(\r\n\t\t\t\t\t\"identifier\"\t\t=> $r[\"micromenu_identifier\"],\r\n\t\t\t\t\t\"ENTRY_BUTTONS\" \t=> Array(),\r\n\t\t\t\t\t\"attributes\"\t\t=> Array(\r\n\t\t\t\t\t\tArray(LOCALE_LABEL, $r[\"micromenu_label\"], \"TITLE\", \"NO\")\r\n\t\t\t\t\t)\r\n\t\t\t\t);\r\n\t\t\t\t$variables[\"RESULT_ENTRIES\"][$i][\"ENTRY_BUTTONS\"][count($variables[\"RESULT_ENTRIES\"][$i][\"ENTRY_BUTTONS\"])]\t=\tArray(\"EDIT\", $this->module_command.\"EDIT\"\t\t\t, EDIT_EXISTING);\r\n\t\t\t\t$variables[\"RESULT_ENTRIES\"][$i][\"ENTRY_BUTTONS\"][count($variables[\"RESULT_ENTRIES\"][$i][\"ENTRY_BUTTONS\"])]\t=\tArray(\"REMOVE\", $this->module_command.\"REMOVE_CONFIRM\"\t, REMOVE_EXISTING);\r\n\t\t\t}\r\n\t\t}\r\n\t\t$out = $this->generate_list($variables);\r\n\t\treturn $out;\r\n\t}", "title": "" }, { "docid": "caea55bde5e8415edbe1eecfc427e5e6", "score": "0.57636565", "text": "public function indexAction() {\n\n //INCREASE THE MEMORY ALLOCATION SIZE AND INFINITE SET TIME OUT\n ini_set('memory_limit', '2048M');\n set_time_limit(0);\n\n //GET LISTINGTYPE ID AND COUNT\n $this->view->listingTypeCount = Engine_Api::_()->getDbTable('listingtypes', 'sitereview')->getListingTypeCount();\n $this->view->listingtype_id = $listingtype_id = $this->_getParam('listingtype_id', 1);\n Engine_Api::_()->sitereview()->setListingTypeInRegistry($listingtype_id);\n $this->view->listingtypeArray = $listingtypeArray = Zend_Registry::get('listingtypeArray' . $listingtype_id);\n\n $coreModuleTable = Engine_Api::_()->getDbtable('modules', 'core');\n $this->view->sitereviewlistingtypeInsalled = $coreModuleTable->hasModule('sitereviewlistingtype');\n $this->view->sitereviewlistingtypeEnabled = $coreModuleTable->isModuleEnabled('sitereviewlistingtype');\n $this->view->listEnabled = $listEnabled = $coreModuleTable->isModuleEnabled('list');\n if ($listEnabled) {\n $this->view->listVersion = $coreModuleTable->select()->from($coreModuleTable->info('name'), 'version')->where('name = ?', 'list')->query()->fetchColumn();\n }\n $this->view->recipeEnabled = $recipeEnabled = $coreModuleTable->isModuleEnabled('recipe');\n $this->view->blogEnabled = $blogEnabled = $coreModuleTable->isModuleEnabled('blog');\n $this->view->classifiedEnabled = $classifiedEnabled = $coreModuleTable->isModuleEnabled('classified');\n\n //GET NAVIGATION\n $this->view->navigation = Engine_Api::_()->getApi('menus', 'core')\n ->getNavigation('sitereview_admin_main', array(), 'sitereview_admin_main_import');\n\n //GET SITEREVIEW TABLES\n $reviewCategoryTable = Engine_Api::_()->getDbtable('categories', 'sitereview');\n $reviewCategoryTableName = $reviewCategoryTable->info('name');\n\n $reviewTable = Engine_Api::_()->getDbtable('listings', 'sitereview');\n\n $otherinfoTable = Engine_Api::_()->getDbTable('otherinfo', 'sitereview');\n\n $reviewFieldValueTable = Engine_Api::_()->fields()->getTable('sitereview_listing', 'values');\n $reviewFieldValueTableName = $reviewFieldValueTable->info('name');\n\n $reviewMetaTable = Engine_Api::_()->fields()->getTable('sitereview_listing', 'meta');\n $reviewMetaTableName = $reviewMetaTable->info('name');\n\n $reviewTopicTable = Engine_Api::_()->getDbtable('topics', 'sitereview');\n $reviewPostTable = Engine_Api::_()->getDbtable('posts', 'sitereview');\n\n $reviewTopicWatchesTable = Engine_Api::_()->getDbtable('topicWatches', 'sitereview');\n $reviewTopicWatchesTableName = $reviewTopicWatchesTable->info('name');\n\n $reviewPhotoTable = Engine_Api::_()->getDbTable('photos', 'sitereview');\n $reviewPhotoTableName = $reviewPhotoTable->info('name');\n\n $albumTable = Engine_Api::_()->getDbtable('albums', 'sitereview');\n\n $reviewReviewTable = Engine_Api::_()->getDbtable('reviews', 'sitereview');\n $reviewRatingTable = Engine_Api::_()->getDbtable('ratings', 'sitereview');\n\n $reviewVideoTable = Engine_Api::_()->getDbtable('videos', 'sitereview');\n $reviewVideoTableName = $reviewVideoTable->info('name');\n\n $clasfVideoTable = Engine_Api::_()->getDbtable('clasfvideos', 'sitereview');\n $clasfVideoTableName = $clasfVideoTable->info('name');\n\n $reviewVideoRating = Engine_Api::_()->getDbTable('videoratings', 'sitereview');\n $reviewVideoRatingName = $reviewVideoRating->info('name');\n\n //GET CORE TABLES\n $likeTable = Engine_Api::_()->getDbtable('likes', 'core');\n $likeTableName = $likeTable->info('name');\n\n $commentTable = Engine_Api::_()->getDbtable('comments', 'core');\n $commentTableName = $commentTable->info('name');\n\n $storageTable = Engine_Api::_()->getDbtable('files', 'storage');\n\n $activityTable = Engine_Api::_()->getDbtable('actions', 'activity');\n\n //START CODE FOR CREATING THE ListingToReviewImport.log FILE\n if (!file_exists(APPLICATION_PATH . '/temporary/log/ListingToReviewImport.log')) {\n $log = new Zend_Log();\n try {\n $log->addWriter(new Zend_Log_Writer_Stream(APPLICATION_PATH . '/temporary/log/ListingToReviewImport.log'));\n } catch (Exception $e) {\n //CHECK DIRECTORY\n if (!@is_dir(APPLICATION_PATH . '/temporary/log') && @mkdir(APPLICATION_PATH . '/temporary/log', 0777, true)) {\n $log->addWriter(new Zend_Log_Writer_Stream(APPLICATION_PATH . '/temporary/log/ListingToReviewImport.log'));\n } else {\n //Silence ...\n if (APPLICATION_ENV !== 'production') {\n $log->log($e->__toString(), Zend_Log::CRIT);\n } else {\n //MAKE SURE LOGGING DOESN'T CAUSE EXCEPTIONS\n $log->addWriter(new Zend_Log_Writer_Null());\n }\n }\n }\n }\n\n //GIVE WRITE PERMISSION IF FILE EXIST\n if (file_exists(APPLICATION_PATH . '/temporary/log/ListingToReviewImport.log')) {\n @chmod(APPLICATION_PATH . '/temporary/log/ListingToReviewImport.log', 0777);\n }\n //END CODE FOR CREATING THE ListingToReviewImport.log FILE\n //START IMPORTING WORK IF LIST AND SITEREVIEW IS INSTALLED AND ACTIVATE\n if ($listEnabled) {\n\n //GET LIST TABLES\n $listingTable = Engine_Api::_()->getDbTable('listings', 'list');\n $listingTableName = $listingTable->info('name');\n\n $listCategoryTable = Engine_Api::_()->getDbtable('categories', 'list');\n $listCategoryTableName = $listCategoryTable->info('name');\n\n $writeTable = Engine_Api::_()->getDbtable('writes', 'list');\n\n $listLocationTable = Engine_Api::_()->getDbtable('locations', 'list');\n\n $reviewLocationTable = Engine_Api::_()->getDbtable('locations', 'sitereview');\n\n $metaTable = Engine_Api::_()->fields()->getTable('list_listing', 'meta');\n $selectMetaData = $metaTable->select()->where('type = ?', 'currency');\n $metaData = $metaTable->fetchRow($selectMetaData);\n\n $listFieldValueTable = Engine_Api::_()->fields()->getTable('list_listing', 'values');\n $listFieldValueTableName = $listFieldValueTable->info('name');\n\n $topicTable = Engine_Api::_()->getDbtable('topics', 'list');\n $topicTableName = $topicTable->info('name');\n\n $postTable = Engine_Api::_()->getDbtable('posts', 'list');\n $postTableName = $postTable->info('name');\n\n $topicWatchesTable = Engine_Api::_()->getDbtable('topicWatches', 'list');\n\n $listPhotoTable = Engine_Api::_()->getDbtable('photos', 'list');\n\n $listreviewTable = Engine_Api::_()->getDbtable('reviews', 'list');\n $listreviewTableName = $listreviewTable->info('name');\n\n if (Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('video')) {\n\n $listVideoRating = Engine_Api::_()->getDbTable('ratings', 'video');\n $listVideoRatingName = $listVideoRating->info('name');\n\n $listVideoTable = Engine_Api::_()->getDbtable('clasfvideos', 'list');\n $listVideoTableName = $listVideoTable->info('name');\n }\n\n //ADD NEW COLUMN IN LISTING TABLE\n $db = Engine_Db_Table::getDefaultAdapter();\n $is_review_import = $db->query(\"SHOW COLUMNS FROM engine4_list_listings LIKE 'is_review_import'\")->fetch();\n if (empty($is_review_import)) {\n $db->query(\"ALTER TABLE `engine4_list_listings` ADD `is_review_import` TINYINT( 2 ) NOT NULL DEFAULT '0'\");\n }\n\n //START IF IMPORTING IS BREAKED BY SOME REASON\n $selectListings = $listingTable->select()\n ->from($listingTableName, 'listing_id')\n ->where('is_review_import != ?', 1)\n ->where('category_id != ?', 0)\n ->order('listing_id ASC');\n $listingDatas = $listingTable->fetchAll($selectListings);\n\n $this->view->first_listing_id = $first_listing_id = 0;\n $this->view->last_listing_id = $last_listing_id = 0;\n\n if (!empty($listingDatas)) {\n\n $flag_first_listing_id = 1;\n\n foreach ($listingDatas as $listingData) {\n\n if ($flag_first_listing_id == 1) {\n $this->view->first_listing_id = $first_listing_id = $listingData->listing_id;\n }\n $flag_first_listing_id++;\n\n $this->view->last_listing_id = $last_listing_id = $listingData->listing_id;\n }\n\n if (isset($_GET['assigned_previous_id'])) {\n $this->view->assigned_previous_id = $assigned_previous_id = $_GET['assigned_previous_id'];\n } else {\n $this->view->assigned_previous_id = $assigned_previous_id = $first_listing_id;\n }\n }\n\n //START IMPORTING IF REQUESTED\n if (isset($_GET['start_import']) && $_GET['start_import'] == 1 && $_GET['module'] == 'list') {\n\n //ACTIVITY FEED IMPORT\n $activity_list = $this->_getParam('activity_list');\n\n $imported_listing_id = $db->query(\"SHOW COLUMNS FROM engine4_sitereview_listings LIKE 'imported_listing_id'\")->fetch();\n\n //DO NOT RUN THIS CODE IN RECALL\n if (!isset($_GET['recall']) && empty($imported_listing_id)) {\n\n $db = Engine_Db_Table::getDefaultAdapter();\n $db->beginTransaction();\n\n try {\n\n //ADD MAPPING COLUMN IN SITEREVIEW TABLE\n $imported_listing_id = $db->query(\"SHOW COLUMNS FROM engine4_sitereview_listings LIKE 'imported_listing_id'\")->fetch();\n if (empty($imported_listing_id)) {\n $db->query(\"ALTER TABLE `engine4_sitereview_listings` ADD `imported_listing_id` INT( 11 ) NOT NULL DEFAULT '0'\");\n }\n\n //ADD MAPPING COLUMN IN SITEREVIEW TABLE\n $list_profile_type = $db->query(\"SHOW COLUMNS FROM engine4_sitereview_categories LIKE 'list_profile_type'\")->fetch();\n if (empty($list_profile_type)) {\n $db->query(\"ALTER TABLE `engine4_sitereview_categories` ADD `list_profile_type` INT( 11 ) NOT NULL DEFAULT '0'\");\n }\n\n //ADD MAPPING COLUMN IN SITEREVIEW TABLE\n $list_field_id = $db->query(\"SHOW COLUMNS FROM engine4_sitereview_listing_fields_meta LIKE 'list_field_id'\")->fetch();\n if (empty($list_field_id)) {\n $db->query(\"ALTER TABLE `engine4_sitereview_listing_fields_meta` ADD `list_field_id` INT( 11 ) NOT NULL DEFAULT '0'\");\n }\n\n //START FETCH CATEGORY WORK\n $selectReviewCategory = $reviewCategoryTable->select()\n ->from($reviewCategoryTableName, 'category_name')\n ->where('category_name != ?', '')\n ->where('listingtype_id = ?', $listingtype_id)\n ->where('cat_dependency = ?', 0);\n $reviewCategoryDatas = $reviewCategoryTable->fetchAll($selectReviewCategory);\n if (!empty($reviewCategoryDatas)) {\n $reviewCategoryDatas = $reviewCategoryDatas->toArray();\n }\n\n $reviewCategoryInArrayData = array();\n foreach ($reviewCategoryDatas as $reviewCategoryData) {\n $reviewCategoryInArrayData[] = $reviewCategoryData['category_name'];\n }\n\n $selectListCategory = $listCategoryTable->select()\n ->from($listCategoryTableName)\n ->where('category_name != ?', '')\n ->where('cat_dependency = ?', 0);\n $listCategoryDatas = $listCategoryTable->fetchAll($selectListCategory);\n if (!empty($listCategoryDatas)) {\n $listCategoryDatas = $listCategoryDatas->toArray();\n foreach ($listCategoryDatas as $listCategoryData) {\n\n //RENAME THE CATEGORY IN SITEREVIEW TABLE IF ALREADY EXIST\n if (in_array($listCategoryData['category_name'], $reviewCategoryInArrayData)) {\n $reviewCategoryTable->update(array('category_name' => $listCategoryData['category_name'] . \"_old\"), array('category_name = ?' => $listCategoryData['category_name'], 'listingtype_id = ?' => $listingtype_id));\n }\n\n if (!in_array($listCategoryData['category_name'], $reviewCategoryInArrayData)) {\n $newCategory = $reviewCategoryTable->createRow();\n $newCategory->listingtype_id = $listingtype_id;\n $newCategory->category_name = $listCategoryData['category_name'];\n $newCategory->cat_dependency = 0;\n $newCategory->list_profile_type = Engine_Api::_()->getDbTable('profilemaps', 'list')->getProfileType($listCategoryData['category_id']);\n $newCategory->cat_order = 9999;\n $newCategory->save();\n\n $newCategory->afterCreate();\n\n $selectListSubCategory = $listCategoryTable->select()\n ->from($listCategoryTableName)\n ->where('category_name != ?', '')\n ->where('cat_dependency = ?', $listCategoryData['category_id']);\n $listSubCategoryDatas = $listCategoryTable->fetchAll($selectListSubCategory);\n foreach ($listSubCategoryDatas as $listSubCategoryData) {\n $newSubCategory = $reviewCategoryTable->createRow();\n $newSubCategory->listingtype_id = $listingtype_id;\n $newSubCategory->category_name = $listSubCategoryData->category_name;\n $newSubCategory->cat_dependency = $newCategory->category_id;\n $newSubCategory->cat_order = 9999;\n $subcategory_id = $newSubCategory->save();\n $newSubCategory->afterCreate();\n\n $selectListSubSubCategory = $listCategoryTable->select()\n ->from($listCategoryTableName)\n ->where('category_name != ?', '')\n ->where('cat_dependency = ?', $listSubCategoryData['category_id'])\n ->where('subcat_dependency = ?', $listSubCategoryData['category_id']);\n $listSubSubCategoryDatas = $listCategoryTable->fetchAll($selectListSubSubCategory);\n foreach ($listSubSubCategoryDatas as $listSubSubCategoryData) {\n $newSubSubCategory = $reviewCategoryTable->createRow();\n $newSubSubCategory->listingtype_id = $listingtype_id;\n $newSubSubCategory->category_name = $listSubSubCategoryData->category_name;\n $newSubSubCategory->cat_dependency = $subcategory_id;\n $newSubSubCategory->subcat_dependency = $subcategory_id;\n $newSubSubCategory->cat_order = 9999;\n $newSubSubCategory->save();\n $newSubSubCategory->afterCreate();\n }\n }\n }\n }\n }\n\n //CUSTOM FIELDS WORK\n $options = array();\n $topStructure = Engine_Api::_()->fields()->getFieldStructureTop('list_listing');\n if (count($topStructure) == 1 && $topStructure[0]->getChild()->type == 'profile_type') {\n $profileTypeField = $topStructure[0]->getChild();\n $options = $profileTypeField->getOptions();\n if (count($options) > 0) {\n $options = $profileTypeField->getElementParams('list_listing');\n $optionsNew = $options['options']['multiOptions'];\n }\n }\n\n $reviewoptions = array();\n $reviewtopStructure = Engine_Api::_()->fields()->getFieldStructureTop('sitereview_listing');\n if (count($reviewtopStructure) == 1 && $reviewtopStructure[0]->getChild()->type == 'profile_type') {\n $reviewprofileTypeField = $reviewtopStructure[0]->getChild();\n $reviewoptions = $reviewprofileTypeField->getOptions();\n if (count($reviewoptions) > 0) {\n $reviewoptions = $reviewprofileTypeField->getElementParams('sitereview_listing');\n $reviewoptionsNew = $reviewoptions['options']['multiOptions'];\n }\n }\n\n foreach ($optionsNew as $key => $value) {\n\n if (empty($key) || empty($value)) {\n continue;\n }\n\n //COPY PROFILE TYPE\n $field = Engine_Api::_()->fields()->getField(1, 'sitereview_listing');\n $option = Engine_Api::_()->fields()->createOption('sitereview_listing', $field, array(\n 'label' => \"Listings - \" . $value,\n ));\n $option_id = $option->option_id;\n\n //UPDATE THE PROFILE TYPE VALUE IN TABLE\n $reviewCategoryTable->update(array('profile_type' => $option_id), array('list_profile_type = ?' => $key));\n\n $field_map_array = $db->select()\n ->from('engine4_list_listing_fields_maps')\n ->where('option_id = ?', $key)\n ->query()\n ->fetchAll();\n $field_map_array_count = count($field_map_array);\n\n if ($field_map_array_count < 1)\n continue;\n\n $child_id_array = array();\n for ($c = 0; $c < $field_map_array_count; $c++) {\n $child_id_array[] = $field_map_array[$c]['child_id'];\n }\n unset($c);\n\n $field_meta_array = $db->select()\n ->from('engine4_list_listing_fields_meta')\n ->where('field_id IN (' . implode(', ', $child_id_array) . ')')\n ->where('type != ?', 'profile_type')\n ->query()\n ->fetchAll();\n\n // Copy each row\n for ($c = 0; $c < Count($field_meta_array); $c++) {\n\n $formValues = array(\n 'option_id' => $option_id,\n 'type' => $field_meta_array[$c]['type'],\n 'label' => $field_meta_array[$c]['label'],\n 'description' => $field_meta_array[$c]['description'],\n 'alias' => $field_meta_array[$c]['alias'],\n 'required' => $field_meta_array[$c]['required'],\n 'display' => $field_meta_array[$c]['display'],\n 'publish' => 0,\n 'search' => 0, //$field_meta_array[$c]['search'],\n //'show' => $field_meta_array[$c]['show'],\n 'order' => $field_meta_array[$c]['order'],\n 'config' => $field_meta_array[$c]['config'],\n 'validators' => $field_meta_array[$c]['validators'],\n 'filters' => $field_meta_array[$c]['filters'],\n 'style' => $field_meta_array[$c]['style'],\n 'error' => $field_meta_array[$c]['error'],\n );\n\n $field = Engine_Api::_()->fields()->createField('sitereview_listing', $formValues);\n\n $db->update('engine4_sitereview_listing_fields_meta', array('config' => $field_meta_array[$c]['config'], 'list_field_id' => $field_meta_array[$c]['field_id']), array('field_id = ?' => $field->field_id));\n\n if ($field_meta_array[$c]['type'] == 'select' || $field_meta_array[$c]['type'] == 'radio' || $field_meta_array[$c]['type'] == 'multiselect' || $field_meta_array[$c]['type'] == 'multi_checkbox') {\n $field_options_array = $db->select()\n ->from('engine4_list_listing_fields_options')\n ->where('field_id = ?', $field_meta_array[$c]['field_id'])\n ->query()\n ->fetchAll();\n $field_options_order = 0;\n foreach ($field_options_array as $field_options) {\n $field_options_order++;\n $field = Engine_Api::_()->fields()->getField($field->field_id, 'sitereview_listing');\n $option = Engine_Api::_()->fields()->createOption('sitereview_listing', $field, array(\n 'label' => $field_options['label'],\n 'order' => $field_options_order,\n ));\n\n $morefield_map_array = $db->select()\n ->from('engine4_list_listing_fields_maps')\n ->where('option_id = ?', $field_options['option_id'])\n ->where('field_id = ?', $field_options['field_id'])\n ->query()\n ->fetchAll();\n $morefield_map_array_count = count($morefield_map_array);\n\n if ($morefield_map_array_count < 1)\n continue;\n\n $morechild_id_array = array();\n for ($morec = 0; $morec < $morefield_map_array_count; $morec++) {\n $morechild_id_array[] = $morefield_map_array[$morec]['child_id'];\n }\n unset($morec);\n\n $morefield_meta_array = $db->select()\n ->from('engine4_list_listing_fields_meta')\n ->where('field_id IN (' . implode(', ', $morechild_id_array) . ')')\n ->where('type != ?', 'profile_type')\n ->query()\n ->fetchAll();\n\n // Copy each row\n for ($morec = 0; $morec < Count($morefield_meta_array); $morec++) {\n\n $moreformValues = array(\n 'option_id' => $option->option_id,\n 'type' => $morefield_meta_array[$morec]['type'],\n 'label' => $morefield_meta_array[$morec]['label'],\n 'description' => $morefield_meta_array[$morec]['description'],\n 'alias' => $morefield_meta_array[$morec]['alias'],\n 'required' => $morefield_meta_array[$morec]['required'],\n 'display' => $morefield_meta_array[$morec]['display'],\n 'publish' => 0,\n 'search' => 0, //$morefield_meta_array[$morec]['search'],\n //'show' => $morefield_meta_array[$morec]['show'],\n 'order' => $morefield_meta_array[$morec]['order'],\n 'config' => $morefield_meta_array[$morec]['config'],\n 'validators' => $morefield_meta_array[$morec]['validators'],\n 'filters' => $morefield_meta_array[$morec]['filters'],\n 'style' => $morefield_meta_array[$morec]['style'],\n 'error' => $morefield_meta_array[$morec]['error'],\n );\n\n $morefield = Engine_Api::_()->fields()->createField('sitereview_listing', $moreformValues);\n\n $db->update('engine4_sitereview_listing_fields_meta', array('config' => $morefield_meta_array[$morec]['config'], 'list_field_id' => $morefield_meta_array[$morec]['field_id']), array('field_id = ?' => $morefield->field_id));\n\n if ($morefield_meta_array[$morec]['type'] == 'select' || $morefield_meta_array[$morec]['type'] == 'radio' || $morefield_meta_array[$morec]['type'] == 'multiselect' || $morefield_meta_array[$morec]['type'] == 'multi_checkbox') {\n $morefield_options_array = $db->select()\n ->from('engine4_list_listing_fields_options')\n ->where('field_id = ?', $morefield_meta_array[$morec]['field_id'])\n ->query()\n ->fetchAll();\n $morefield_options_order = 0;\n foreach ($morefield_options_array as $morefield_options) {\n $morefield_options_order++;\n $morefield = Engine_Api::_()->fields()->getField($morefield->field_id, 'sitereview_listing');\n $moreoption = Engine_Api::_()->fields()->createOption('sitereview_listing', $morefield, array(\n 'label' => $morefield_options['label'],\n 'order' => $morefield_options_order,\n ));\n }\n }\n }\n }\n }\n }\n }\n\n $db->commit();\n } catch (Exception $e) {\n $db->rollBack();\n\n //DELETE MAPPING COLUMN IN SITEREVIEW TABLE\n $imported_listing_id = $db->query(\"SHOW COLUMNS FROM engine4_sitereview_listings LIKE 'imported_listing_id'\")->fetch();\n if (!empty($imported_listing_id)) {\n $db->query(\"ALTER TABLE `engine4_sitereview_listings` DROP `imported_listing_id`\");\n }\n\n throw $e;\n }\n }\n //DO NOT RUN THE UPPER CODE IN RECALL\n //START IMPORTING CODE\n $selectListings = $listingTable->select()\n ->where('listing_id >= ?', $assigned_previous_id)\n ->from($listingTableName, 'listing_id')\n ->where('is_review_import != ?', 1)\n ->where('category_id != ?', 0)\n ->order('listing_id ASC');\n $listingDatas = $listingTable->fetchAll($selectListings);\n\n $next_import_count = 0;\n\n foreach ($listingDatas as $listingData) {\n $listing_id = $listingData->listing_id;\n\n $db = Engine_Db_Table::getDefaultAdapter();\n $db->beginTransaction();\n try {\n\n if (!empty($listing_id)) {\n\n $listing = Engine_Api::_()->getItem('list_listing', $listing_id);\n\n $sitereview = $reviewTable->createRow();\n $sitereview->title = $listing->title;\n\n if ($listingtypeArray->body_allow)\n $sitereview->body = $listing->body;\n\n $sitereview->owner_id = $listing->owner_id;\n $sitereview->listingtype_id = $listingtype_id;\n\n //START FETCH LIST CATEGORY AND SUB-CATEGORY\n if (!empty($listing->category_id)) {\n $listCategory = $listCategoryTable->fetchRow(array('category_id = ?' => $listing->category_id, 'cat_dependency = ?' => 0));\n if (!empty($listCategory)) {\n $listCategoryName = $listCategory->category_name;\n\n if (!empty($listCategoryName)) {\n $reviewCategory = $reviewCategoryTable->fetchRow(array('category_name = ?' => $listCategoryName, 'cat_dependency = ?' => 0, 'listingtype_id =?' => $listingtype_id));\n if (!empty($reviewCategory)) {\n $reviewCategoryId = $sitereview->category_id = $reviewCategory->category_id;\n\n $listSubCategory = $listCategoryTable->fetchRow(array('category_id = ?' => $listing->subcategory_id, 'cat_dependency = ?' => $listing->category_id));\n if (!empty($listSubCategory)) {\n $listSubCategoryName = $listSubCategory->category_name;\n\n $reviewSubCategory = $reviewCategoryTable->fetchRow(array('category_name = ?' => $listSubCategoryName, 'cat_dependency = ?' => $reviewCategoryId, 'listingtype_id =?' => $listingtype_id));\n if (!empty($reviewSubCategory)) {\n $sitereview->subcategory_id = $reviewSubCategory->category_id;\n }\n }\n }\n }\n }\n } else {\n continue;\n }\n //END FETCH LIST CATEGORY AND SUB-CATEGORY\n\n $sitereview->profile_type = 0;\n\n $sitereview->photo_id = 0;\n\n //START FETCH PRICE\n if (!empty($metaData)) {\n $field_id = $metaData->field_id;\n\n $valueTable = Engine_Api::_()->fields()->getTable('list_listing', 'values');\n $selectValueData = $valueTable->select()->where('item_id = ?', $listing_id)->where('field_id = ?', $field_id);\n $valueData = $valueTable->fetchRow($selectValueData);\n if (!empty($valueData) && ($listingtypeArray->price)) {\n $sitereview->price = $valueData->value;\n }\n }\n //END FETCH PRICE\n //START GET DATA FROM LISTING\n $sitereview->creation_date = $listing->creation_date;\n $sitereview->modified_date = $listing->modified_date;\n $sitereview->approved = $listing->approved;\n $sitereview->featured = $listing->featured;\n $sitereview->sponsored = $listing->sponsored;\n\n $sitereview->view_count = 1;\n if ($listing->view_count > 0) {\n $sitereview->view_count = $listing->view_count;\n }\n\n $sitereview->comment_count = $listing->comment_count;\n $sitereview->like_count = $listing->like_count;\n $sitereview->review_count = $listing->review_count;\n $sitereview->closed = $listing->closed;\n $sitereview->draft = !$listing->draft;\n\n if (!empty($listing->approved_date)) {\n $sitereview->approved_date = $listing->approved_date;\n }\n\n if (!empty($listing->end_date)) {\n $sitereview->end_date = $listing->end_date;\n }\n\n $sitereview->rating_avg = round($listing->rating, 4);\n $sitereview->rating_users = round($listing->rating, 4);\n $sitereview->imported_listing_id = $listing->listing_id;\n $sitereview->save();\n\n $sitereview->creation_date = $listing->creation_date;\n $sitereview->save();\n\n //FATCH REVIEW CATEGORIES\n $categoryIdsArray = array();\n $categoryIdsArray[] = $sitereview->category_id;\n $categoryIdsArray[] = $sitereview->subcategory_id;\n $categoryIdsArray[] = $sitereview->subsubcategory_id;\n $sitereview->profile_type = $reviewCategoryTable->getProfileType($categoryIdsArray, 0, 'profile_type');\n $sitereview->search = $listing->search;\n $sitereview->save();\n\n //START FETCH CUSTOM FIELD VALUES\n if (!empty($sitereview->profile_type)) {\n $reviewFieldValueTable->insert(array('item_id' => $sitereview->listing_id, 'field_id' => 1, 'index' => 0, 'value' => $sitereview->profile_type));\n $fieldValueSelect = $reviewMetaTable->select()\n ->setIntegrityCheck(false)\n ->from($reviewMetaTableName, array('field_id', 'type'))\n ->joinInner($listFieldValueTableName, \"$listFieldValueTableName.field_id = $reviewMetaTableName.list_field_id\", array('value', 'index', 'field_id as list_field_id'))\n ->where(\"$listFieldValueTableName.item_id = ?\", $listing_id);\n $fieldValues = $reviewMetaTable->fetchAll($fieldValueSelect);\n foreach ($fieldValues as $fieldValue) {\n if ($fieldValue->type != 'multi_checkbox' && $fieldValue->type != 'multiselect' && $fieldValue->type != 'radio' && $fieldValue->type != 'select') {\n $reviewFieldValueTable->insert(array('item_id' => $sitereview->listing_id, 'field_id' => $fieldValue->field_id, 'index' => $fieldValue->index, 'value' => $fieldValue->value));\n } else {\n\n $listingFieldValues = $db->select()\n ->from('engine4_list_listing_fields_options')\n ->where('field_id = ?', $fieldValue->list_field_id)\n ->query()\n ->fetchAll(Zend_Db::FETCH_COLUMN);\n\n $sitereviewFieldValues = $db->select()\n ->from('engine4_sitereview_listing_fields_options')\n ->where('field_id = ?', $fieldValue->field_id)\n ->query()\n ->fetchAll(Zend_Db::FETCH_COLUMN);\n\n $mergeFieldValues = array_combine($sitereviewFieldValues, $listingFieldValues);\n $value = array_search($fieldValue->value, $mergeFieldValues);\n if (!empty($value)) {\n $reviewFieldValueTable->insert(array('item_id' => $sitereview->listing_id, 'field_id' => $fieldValue->field_id, 'index' => $fieldValue->index, 'value' => $value));\n }\n }\n }\n }\n //END FETCH CUSTOM FIELD VALUES \n\n $listing->is_review_import = 1;\n $listing->save();\n $next_import_count++;\n //END GET DATA FROM LISTING\n //GENERATE ACITIVITY FEED\n if ($sitereview->draft == 0 && $activity_list && $sitereview->search) {\n $action = $activityTable->addActivity($sitereview->getOwner(), $sitereview, 'sitereview_new_listtype_' . $listingtype_id);\n $action->date = $sitereview->creation_date;\n $action->save();\n\n if ($action != null) {\n $activityTable->attachActivity($action, $sitereview);\n }\n }\n\n $row = $otherinfoTable->getOtherinfo($sitereview->getIdentity());\n\n if (empty($row)) {\n $about = \"\";\n $overview = \"\";\n\n //START FETCH engine4_list_writes DATA\n $writeData = $writeTable->fetchRow(array('listing_id = ?' => $listing_id));\n if (!empty($writeData)) {\n $about = $writeData->text;\n }\n //END FETCH engine4_list_writes DATAS\n\n if ($listing->overview && $listingtypeArray->overview) {\n $overview = $listing->overview;\n }\n\n Engine_Api::_()->getDbTable('otherinfo', 'sitereview')->insert(array(\n 'listing_id' => $sitereview->getIdentity(),\n 'overview' => $overview,\n 'about' => $about\n ));\n }\n\n $locationData = $listLocationTable->fetchRow(array('listing_id = ?' => $listing_id));\n if (!empty($locationData) && $listingtypeArray->location) {\n $sitereview->location = $locationData->location;\n $sitereview->save();\n\n $reviewLocation = $reviewLocationTable->createRow();\n $reviewLocation->listing_id = $sitereview->listing_id;\n $reviewLocation->location = $sitereview->location;\n $reviewLocation->latitude = $locationData->latitude;\n $reviewLocation->longitude = $locationData->longitude;\n $reviewLocation->formatted_address = $locationData->formatted_address;\n $reviewLocation->country = $locationData->country;\n $reviewLocation->state = $locationData->state;\n $reviewLocation->zipcode = $locationData->zipcode;\n $reviewLocation->city = $locationData->city;\n $reviewLocation->address = $locationData->address;\n $reviewLocation->zoom = $locationData->zoom;\n $reviewLocation->save();\n }\n\n //START FETCH TAG\n $listTags = $listing->tags()->getTagMaps();\n $tagString = '';\n\n foreach ($listTags as $tagmap) {\n\n if ($tagString != '')\n $tagString .= ', ';\n $tagString .= $tagmap->getTag()->getTitle();\n\n $tags = array_filter(array_map(\"trim\", preg_split('/[,]+/', $tagString)));\n $sitereview->tags()->setTagMaps(Engine_Api::_()->getItem('user', $listing->owner_id), $tags);\n }\n //END FETCH TAG\n //START FETCH LIKES\n $selectLike = $likeTable->select()\n ->from($likeTableName, 'like_id')\n ->where('resource_type = ?', 'list_listing')\n ->where('resource_id = ?', $listing_id);\n $selectLikeDatas = $likeTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $like = Engine_Api::_()->getItem('core_like', $selectLikeData->like_id);\n\n $newLikeEntry = $likeTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_listing';\n $newLikeEntry->resource_id = $sitereview->listing_id;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $like->poster_id;\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH LIKES\n //START FETCH COMMENTS\n $selectLike = $commentTable->select()\n ->from($commentTableName, 'comment_id')\n ->where('resource_type = ?', 'list_listing')\n ->where('resource_id = ?', $listing_id);\n $selectLikeDatas = $commentTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $comment = Engine_Api::_()->getItem('core_comment', $selectLikeData->comment_id);\n\n $newLikeEntry = $commentTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_listing';\n $newLikeEntry->resource_id = $sitereview->listing_id;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $comment->poster_id;\n $newLikeEntry->body = $comment->body;\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->like_count = $comment->like_count;\n $newLikeEntry->save();\n\n $newLikeEntry->like_count = $comment->like_count;\n $newLikeEntry->save();\n }\n //END FETCH COMMENTS\n //START FETCH PRIVACY\n $auth = Engine_Api::_()->authorization()->context;\n $roles = array('owner', 'owner_member', 'owner_member_member', 'owner_network', 'registered', 'everyone');\n\n foreach ($roles as $role) {\n if ($auth->isAllowed($listing, $role, 'view')) {\n $values['auth_view'] = $role;\n }\n }\n\n foreach ($roles as $role) {\n if ($auth->isAllowed($listing, $role, 'photo')) {\n $values['auth_photo'] = $role;\n }\n }\n\n foreach ($roles as $role) {\n if ($auth->isAllowed($listing, $role, 'video')) {\n $values['auth_video'] = $role;\n }\n }\n\n $viewMax = array_search($values['auth_view'], $roles);\n $photoMax = array_search($values['auth_photo'], $roles);\n $videoMax = array_search($values['auth_video'], $roles);\n\n foreach ($roles as $i => $role) {\n $auth->setAllowed($sitereview, $role, 'view', ($i <= $viewMax));\n $auth->setAllowed($sitereview, $role, \"view_listtype_$listingtype_id\", ($i <= $viewMax));\n $auth->setAllowed($sitereview, $role, \"photo_listtype_$listingtype_id\", ($i <= $photoMax));\n $auth->setAllowed($sitereview, $role, \"video_listtype_$listingtype_id\", ($i <= $videoMax));\n }\n\n $roles = array('owner', 'owner_member', 'owner_member_member', 'owner_network', 'registered');\n foreach ($roles as $role) {\n if ($auth->isAllowed($listing, $role, 'comment')) {\n $values['auth_comment'] = $role;\n }\n }\n $commentMax = array_search($values['auth_comment'], $roles);\n foreach ($roles as $i => $role) {\n $auth->setAllowed($sitereview, $role, 'comment', ($i <= $commentMax));\n $auth->setAllowed($sitereview, $role, \"comment_listtype_$listingtype_id\", ($i <= $commentMax));\n }\n //END FETCH PRIVACY\n\n $topicSelect = $topicTable->select()\n ->from($topicTableName)\n ->where('listing_id = ?', $listing_id);\n $topicSelectDatas = $topicTable->fetchAll($topicSelect);\n if (!empty($topicSelectDatas)) {\n $topicSelectDatass = $topicSelectDatas->toArray();\n\n foreach ($topicSelectDatass as $topicSelectData) {\n $reviewTopic = $reviewTopicTable->createRow();\n $reviewTopic->listing_id = $sitereview->listing_id;\n $reviewTopic->user_id = $topicSelectData['user_id'];\n $reviewTopic->title = $topicSelectData['title'];\n $reviewTopic->creation_date = $topicSelectData['creation_date'];\n $reviewTopic->modified_date = $topicSelectData['modified_date'];\n $reviewTopic->sticky = $topicSelectData['sticky'];\n $reviewTopic->closed = $topicSelectData['closed'];\n $reviewTopic->view_count = $topicSelectData['view_count'];\n $reviewTopic->lastpost_id = $topicSelectData['lastpost_id'];\n $reviewTopic->lastposter_id = $topicSelectData['lastposter_id'];\n $reviewTopic->save();\n\n $reviewTopic->creation_date = $topicSelectData['creation_date'];\n $reviewTopic->save();\n\n //GENERATE ACTIVITY FEED\n if ($activity_list) {\n $action = $activityTable->addActivity($reviewTopic->getOwner(), $reviewTopic, 'sitereview_topic_create_listtype_' . $listingtype_id);\n $action->date = $reviewTopic->creation_date;\n $action->save();\n if ($action) {\n $action->attach($reviewTopic);\n }\n }\n\n //START FETCH TOPIC POST'S\n $postSelect = $postTable->select()\n ->from($postTableName)\n ->where('topic_id = ?', $topicSelectData['topic_id'])\n ->where('listing_id = ?', $listing_id);\n $postSelectDatas = $postTable->fetchAll($postSelect);\n if (!empty($postSelectDatas)) {\n $postSelectDatass = $postSelectDatas->toArray();\n\n foreach ($postSelectDatass as $postSelectData) {\n $reviewPost = $reviewPostTable->createRow();\n $reviewPost->topic_id = $reviewTopic->topic_id;\n $reviewPost->listing_id = $sitereview->listing_id;\n $reviewPost->user_id = $postSelectData['user_id'];\n $reviewPost->body = $postSelectData['body'];\n $reviewPost->creation_date = $postSelectData['creation_date'];\n $reviewPost->modified_date = $postSelectData['modified_date'];\n $reviewPost->save();\n\n $reviewPost->creation_date = $postSelectData['creation_date'];\n $reviewPost->save();\n }\n }\n //END FETCH TOPIC POST'S\n\n $reviewTopic->post_count = $topicSelectData['post_count'];\n $reviewTopic->save();\n\n //START FETCH TOPIC WATCH\n $topicWatchData = $topicWatchesTable->fetchAll(array('resource_id = ?' => $listing_id));\n foreach ($topicWatchData as $watchData) {\n if (!empty($watchData)) {\n $topicwatchSelect = $reviewTopicWatchesTable->select()\n ->from($reviewTopicWatchesTableName)\n ->where('resource_id = ?', $reviewTopic->listing_id)\n ->where('topic_id = ?', $reviewTopic->topic_id)\n ->where('user_id = ?', $watchData->user_id);\n $topicwatchSelectDatas = $reviewTopicWatchesTable->fetchRow($topicwatchSelect);\n\n if (empty($topicwatchSelectDatas)) {\n $reviewTopicWatchesTable->insert(array(\n 'resource_id' => $reviewTopic->listing_id,\n 'topic_id' => $reviewTopic->topic_id,\n 'user_id' => $watchData->user_id,\n 'watch' => $watchData->watch\n ));\n }\n }\n }\n //END FETCH TOPIC WATCH\n }\n }\n\n //START FETCH PHOTO DATA\n $selectListPhoto = $listPhotoTable->select()\n ->from($listPhotoTable->info('name'))\n ->where('listing_id = ?', $listing_id);\n $listPhotoDatas = $listPhotoTable->fetchAll($selectListPhoto);\n\n $sitereview = Engine_Api::_()->getItem('sitereview_listing', $sitereview->listing_id);\n\n if (!empty($listPhotoDatas)) {\n\n $listPhotoDatas = $listPhotoDatas->toArray();\n\n if (empty($listing->photo_id)) {\n foreach ($listPhotoDatas as $listPhotoData) {\n $listing->photo_id = $listPhotoData['photo_id'];\n break;\n }\n }\n\n if (!empty($listing->photo_id)) {\n $listPhotoData = $listPhotoTable->fetchRow(array('file_id = ?' => $listing->photo_id));\n if (!empty($listPhotoData)) {\n $storageData = $storageTable->fetchRow(array('file_id = ?' => $listPhotoData->file_id));\n\n if (!empty($storageData) && !empty($storageData->storage_path)) {\n\n $sitereview->setPhoto($storageData->storage_path);\n\n $album_id = $albumTable->update(array('photo_id' => $sitereview->photo_id), array('listing_id = ?' => $sitereview->listing_id));\n\n $reviewProfilePhoto = Engine_Api::_()->getDbTable('photos', 'sitereview')->fetchRow(array('file_id = ?' => $sitereview->photo_id));\n if (!empty($reviewProfilePhoto)) {\n $reviewProfilePhotoId = $reviewProfilePhoto->photo_id;\n } else {\n $reviewProfilePhotoId = $sitereview->photo_id;\n }\n\n //START FETCH LIKES\n $selectLike = $likeTable->select()\n ->from($likeTableName, 'like_id')\n ->where('resource_type = ?', 'list_photo')\n ->where('resource_id = ?', $listing->photo_id);\n $selectLikeDatas = $likeTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $like = Engine_Api::_()->getItem('core_like', $selectLikeData->like_id);\n $newLikeEntry = $likeTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_photo';\n $newLikeEntry->resource_id = $reviewProfilePhotoId;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $like->poster_id;\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH LIKES\n //START FETCH COMMENTS\n $selectLike = $commentTable->select()\n ->from($commentTableName, 'comment_id')\n ->where('resource_type = ?', 'list_photo')\n ->where('resource_id = ?', $listing->photo_id);\n $selectLikeDatas = $commentTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $comment = Engine_Api::_()->getItem('core_comment', $selectLikeData->comment_id);\n\n $newLikeEntry = $commentTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_photo';\n $newLikeEntry->resource_id = $reviewProfilePhotoId;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $comment->poster_id;\n $newLikeEntry->body = $comment->body;\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->like_count = $comment->like_count;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH COMMENTS\n //START FETCH TAGGER DETAIL\n $tagmapsTable = Engine_Api::_()->getDbtable('TagMaps', 'core');\n $tagmapsTableName = $tagmapsTable->info('name');\n $selectTagmaps = $tagmapsTable->select()\n ->from($tagmapsTableName, 'tagmap_id')\n ->where('resource_type = ?', 'list_photo')\n ->where('resource_id = ?', $listing->photo_id);\n $selectTagmapsDatas = $tagmapsTable->fetchAll($selectTagmaps);\n foreach ($selectTagmapsDatas as $selectTagmapsData) {\n $tagMap = Engine_Api::_()->getItem('core_tag_map', $selectTagmapsData->tagmap_id);\n\n $newTagmapEntry = $tagmapsTable->createRow();\n $newTagmapEntry->resource_type = 'sitereview_photo';\n $newTagmapEntry->resource_id = $reviewProfilePhotoId;\n $newTagmapEntry->tagger_type = 'user';\n $newTagmapEntry->tagger_id = $tagMap->tagger_id;\n $newTagmapEntry->tag_type = 'user';\n $newTagmapEntry->tag_id = $tagMap->tag_id;\n $newTagmapEntry->creation_date = $tagMap->creation_date;\n $newTagmapEntry->extra = $tagMap->extra;\n $newTagmapEntry->save();\n\n $newTagmapEntry->creation_date = $tagMap->creation_date;\n $newTagmapEntry->save();\n }\n //END FETCH TAGGER DETAIL\n }\n }\n\n $fetchDefaultAlbum = $albumTable->fetchRow(array('listing_id = ?' => $sitereview->listing_id));\n if (!empty($fetchDefaultAlbum)) {\n\n $selectListPhoto = $listPhotoTable->select()\n ->from($listPhotoTable->info('name'))\n ->where('listing_id = ?', $listing_id);\n $listPhotoDatas = $listPhotoTable->fetchAll($selectListPhoto);\n\n $order = 999;\n foreach ($listPhotoDatas as $listPhotoData) {\n\n if ($listPhotoData['file_id'] != $listing->photo_id) {\n $params = array(\n 'collection_id' => $fetchDefaultAlbum->album_id,\n 'album_id' => $fetchDefaultAlbum->album_id,\n 'listing_id' => $sitereview->listing_id,\n 'user_id' => $listPhotoData['user_id'],\n 'order' => $order,\n );\n\n $storageData = $storageTable->fetchRow(array('file_id = ?' => $listPhotoData['file_id']));\n if (!empty($storageData) && !empty($storageData->storage_path)) {\n $file = array();\n $file['tmp_name'] = $storageData->storage_path;\n $path_array = explode('/', $file['tmp_name']);\n $file['name'] = end($path_array);\n\n $reviewPhoto = Engine_Api::_()->sitereview()->createPhoto($params, $file);\n if (!empty($reviewPhoto)) {\n\n $order++;\n\n //START FETCH LIKES\n $selectLike = $likeTable->select()\n ->from($likeTableName, 'like_id')\n ->where('resource_type = ?', 'list_photo')\n ->where('resource_id = ?', $listPhotoData['photo_id']);\n $selectLikeDatas = $likeTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $like = Engine_Api::_()->getItem('core_like', $selectLikeData->like_id);\n\n $newLikeEntry = $likeTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_photo';\n $newLikeEntry->resource_id = $reviewPhoto->photo_id;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $like->poster_id;\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH LIKES\n //START FETCH COMMENTS\n $selectLike = $commentTable->select()\n ->from($commentTableName, 'comment_id')\n ->where('resource_type = ?', 'list_photo')\n ->where('resource_id = ?', $listPhotoData['photo_id']);\n $selectLikeDatas = $commentTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $comment = Engine_Api::_()->getItem('core_comment', $selectLikeData->comment_id);\n\n $newLikeEntry = $commentTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_photo';\n $newLikeEntry->resource_id = $reviewPhoto->photo_id;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $comment->poster_id;\n $newLikeEntry->body = $comment->body;\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->like_count = $comment->like_count;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH COMMENTS\n //START FETCH TAGGER DETAIL\n $selectTagmaps = $tagmapsTable->select()\n ->from($tagmapsTableName, 'tagmap_id')\n ->where('resource_type = ?', 'list_photo')\n ->where('resource_id = ?', $listPhotoData['photo_id']);\n $selectTagmapsDatas = $tagmapsTable->fetchAll($selectTagmaps);\n foreach ($selectTagmapsDatas as $selectTagmapsData) {\n $tagMap = Engine_Api::_()->getItem('core_tag_map', $selectTagmapsData->tagmap_id);\n\n $newTagmapEntry = $tagmapsTable->createRow();\n $newTagmapEntry->resource_type = 'sitereview_photo';\n $newTagmapEntry->resource_id = $reviewPhoto->photo_id;\n $newTagmapEntry->tagger_type = 'user';\n $newTagmapEntry->tagger_id = $tagMap->tagger_id;\n $newTagmapEntry->tag_type = 'user';\n $newTagmapEntry->tag_id = $tagMap->tag_id;\n $newTagmapEntry->creation_date = $tagMap->creation_date;\n $newTagmapEntry->extra = $tagMap->extra;\n $newTagmapEntry->save();\n\n $newTagmapEntry->creation_date = $tagMap->creation_date;\n $newTagmapEntry->save();\n }\n //END FETCH TAGGER DETAIL\n }\n }\n }\n }\n }\n }\n\n //GENERATE ACTIVITY FEED\n if ($activity_list) {\n\n $select = $reviewPhotoTable->select()->from($reviewPhotoTableName)->where('user_id = ?', $sitereview->owner_id)->where('listing_id = ?', $sitereview->listing_id);\n $reviewPhotos = $reviewPhotoTable->fetchAll($select);\n $count = count($reviewPhotos);\n if ($count > 1) {\n $action = $activityTable->addActivity($sitereview->getOwner(), $sitereview, 'sitereview_photo_upload_listtype_' . $listingtype_id, null, array('count' => $count, 'title' => $sitereview->title));\n $count = 0;\n\n foreach ($reviewPhotos as $reviewPhoto) {\n\n if ($action instanceof Activity_Model_Action && $count < 8) {\n $activityTable->attachActivity($action, $reviewPhoto, Activity_Model_Action::ATTACH_MULTI);\n }\n $count++;\n }\n $action->date = $reviewPhoto->creation_date;\n $action->save();\n }\n }\n }\n //END FETCH PHOTO DATA\n //START FETCH REVIEW DATA\n if ($listingtypeArray->reviews == 2 || $listingtypeArray->reviews == 3) {\n $listreviewTableSelect = $listreviewTable->select()\n ->from($listreviewTableName, array('MAX(review_id) as review_id', 'owner_id', 'title', 'creation_date', 'modified_date', 'body'))\n ->where('listing_id = ?', $listing_id)\n //\t->where('owner_id != ?', $listing->owner_id)\n ->group('owner_id')\n ->order('review_id ASC');\n $listreviewSelectDatas = $listreviewTable->fetchAll($listreviewTableSelect);\n if (!empty($listreviewSelectDatas)) {\n $listreviewSelectDatas = $listreviewSelectDatas->toArray();\n foreach ($listreviewSelectDatas as $listreviewSelectData) {\n $review = Engine_Api::_()->getItem('list_reviews', $listreviewSelectData['review_id']);\n if (!$listingtypeArray->allow_owner_review && $review->owner_id == $listing->owner_id) {\n continue;\n }\n $reviewReview = $reviewReviewTable->createRow();\n $reviewReview->resource_id = $sitereview->listing_id;\n $reviewReview->resource_type = $sitereview->getType();\n $reviewReview->owner_id = $review->owner_id;\n $reviewReview->title = $review->title;\n $reviewReview->body = $review->body;\n $reviewReview->view_count = 1;\n if (Engine_Api::_()->getApi('settings', 'core')->getSetting('sitereview.recommend', 1)) {\n $reviewReview->recommend = 1;\n } else {\n $reviewReview->recommend = 0;\n }\n $reviewReview->creation_date = $review->creation_date;\n $reviewReview->modified_date = $review->modified_date;\n $reviewReview->type = 'user';\n $reviewReview->save();\n\n $reviewReview->creation_date = $review->creation_date;\n $reviewReview->save();\n\n //GENERATE ACTIVITY FEED\n if ($activity_list) {\n $action = $activityTable->addActivity($reviewReview->getOwner(), $sitereview, 'sitereview_review_add_listtype_' . $listingtype_id);\n $action->date = $reviewReview->creation_date;\n $action->save();\n\n if ($action != null) {\n $activityTable->attachActivity($action, $reviewReview);\n }\n }\n\n //FATCH REVIEW CATEGORIES\n $categoryIdsArray = array();\n $categoryIdsArray[] = $sitereview->category_id;\n $categoryIdsArray[] = $sitereview->subcategory_id;\n $categoryIdsArray[] = $sitereview->subsubcategory_id;\n $reviewReview->profile_type_review = $reviewCategoryTable->getProfileType($categoryIdsArray, 0, 'profile_type_review');\n $reviewReview->save();\n\n $reviewRating = $reviewRatingTable->createRow();\n $reviewRating->review_id = $reviewReview->review_id;\n $reviewRating->category_id = $sitereview->category_id;\n $reviewRating->resource_id = $sitereview->listing_id;\n $reviewRating->resource_type = $sitereview->getType();\n $reviewRating->user_id = $review->owner_id;\n $reviewRating->type = 'user';\n $reviewRating->ratingparam_id = 0;\n $reviewRating->rating = round($listing->rating, 4);\n $reviewRating->save();\n }\n }\n }\n //END FETCH REVIEW DATA\n //START FETCH VIDEO DATA\n if (Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('video')) {\n\n $selectListVideos = $listVideoTable->select()\n ->from($listVideoTableName, 'video_id')\n ->where('listing_id = ?', $listing_id)\n ->group('video_id');\n $listVideoDatas = $listVideoTable->fetchAll($selectListVideos);\n foreach ($listVideoDatas as $listVideoData) {\n $listVideo = Engine_Api::_()->getItem('video', $listVideoData->video_id);\n if (!empty($listVideo)) {\n $db = $reviewVideoTable->getAdapter();\n $db->beginTransaction();\n\n try {\n $reviewVideo = $reviewVideoTable->createRow();\n $reviewVideo->listing_id = $sitereview->listing_id;\n $reviewVideo->title = $listVideo->title;\n $reviewVideo->description = $listVideo->description;\n $reviewVideo->search = $listVideo->search;\n $reviewVideo->owner_id = $listVideo->owner_id;\n $reviewVideo->creation_date = $listVideo->creation_date;\n $reviewVideo->modified_date = $listVideo->modified_date;\n\n $reviewVideo->view_count = 1;\n if ($listVideo->view_count > 0) {\n $reviewVideo->view_count = $listVideo->view_count;\n }\n\n $reviewVideo->comment_count = $listVideo->comment_count;\n $reviewVideo->type = $listVideo->type;\n $reviewVideo->code = $listVideo->code;\n $reviewVideo->rating = $listVideo->rating;\n $reviewVideo->status = $listVideo->status;\n $reviewVideo->file_id = 0;\n $reviewVideo->duration = $listVideo->duration;\n $reviewVideo->save();\n\n $reviewVideo->creation_date = $listVideo->creation_date;\n $reviewVideo->save();\n\n //GENERATE ACTIVITY FEED\n if ($activity_list && $reviewVideo->search) {\n //START VIDEO UPLOAD ACTIVITY FEED\n\n $action = $activityTable->addActivity($reviewVideo->getOwner(), $sitereview, 'sitereview_video_new_listtype_' . $listingtype_id);\n $action->date = $reviewVideo->creation_date;\n $action->save();\n if ($action != null) {\n $activityTable->attachActivity($action, $reviewVideo);\n }\n\n foreach ($activityTable->getActionsByObject($reviewVideo) as $action) {\n $activityTable->resetActivityBindings($action);\n }\n }\n\n $db->commit();\n } catch (Exception $e) {\n $db->rollBack();\n throw $e;\n }\n\n //START VIDEO THUMB WORK\n if (!empty($reviewVideo->code) && !empty($reviewVideo->type) && !empty($listVideo->photo_id)) {\n $storageData = $storageTable->fetchRow(array('file_id = ?' => $listVideo->photo_id));\n if (!empty($storageData) && !empty($storageData->storage_path)) {\n $thumbnail = $storageData->storage_path;\n\n $ext = ltrim(strrchr($thumbnail, '.'), '.');\n $thumbnail_parsed = @parse_url($thumbnail);\n\n if (@GetImageSize($thumbnail)) {\n $valid_thumb = true;\n } else {\n $valid_thumb = false;\n }\n\n if ($valid_thumb && $thumbnail && $ext && $thumbnail_parsed && in_array($ext, array('jpg', 'jpeg', 'gif', 'png'))) {\n $tmp_file = APPLICATION_PATH . '/temporary/link_' . md5($thumbnail) . '.' . $ext;\n $thumb_file = APPLICATION_PATH . '/temporary/link_thumb_' . md5($thumbnail) . '.' . $ext;\n $src_fh = fopen($thumbnail, 'r');\n $tmp_fh = fopen($tmp_file, 'w');\n stream_copy_to_stream($src_fh, $tmp_fh, 1024 * 1024 * 2);\n $image = Engine_Image::factory();\n $image->open($tmp_file)\n ->resize(120, 240)\n ->write($thumb_file)\n ->destroy();\n\n try {\n $thumbFileRow = Engine_Api::_()->storage()->create($thumb_file, array(\n 'parent_type' => 'sitereview_video',\n 'parent_id' => $reviewVideo->video_id\n ));\n\n //REMOVE TEMP FILE\n @unlink($thumb_file);\n @unlink($tmp_file);\n } catch (Exception $e) {\n \n }\n\n $reviewVideo->photo_id = $thumbFileRow->file_id;\n $reviewVideo->save();\n }\n }\n }\n //END VIDEO THUMB WORK\n //START FETCH TAG\n $videoTags = $listVideo->tags()->getTagMaps();\n $tagString = '';\n\n foreach ($videoTags as $tagmap) {\n\n if ($tagString != '')\n $tagString .= ', ';\n $tagString .= $tagmap->getTag()->getTitle();\n\n $owner = Engine_Api::_()->getItem('user', $listVideo->owner_id);\n $tags = preg_split('/[,]+/', $tagString);\n $tags = array_filter(array_map(\"trim\", $tags));\n $reviewVideo->tags()->setTagMaps($owner, $tags);\n }\n //END FETCH TAG\n //START FETCH LIKES\n $selectLike = $likeTable->select()\n ->from($likeTableName, 'like_id')\n ->where('resource_type = ?', 'video')\n ->where('resource_id = ?', $listVideoData->video_id);\n $selectLikeDatas = $likeTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $like = Engine_Api::_()->getItem('core_like', $selectLikeData->like_id);\n\n $newLikeEntry = $likeTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_video';\n $newLikeEntry->resource_id = $reviewVideo->video_id;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $like->poster_id;\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH LIKES\n //START FETCH COMMENTS\n $selectLike = $commentTable->select()\n ->from($commentTableName, 'comment_id')\n ->where('resource_type = ?', 'video')\n ->where('resource_id = ?', $listVideoData->video_id);\n $selectLikeDatas = $commentTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $comment = Engine_Api::_()->getItem('core_comment', $selectLikeData->comment_id);\n\n $newLikeEntry = $commentTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_video';\n $newLikeEntry->resource_id = $reviewVideo->video_id;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $comment->poster_id;\n $newLikeEntry->body = $comment->body;\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->like_count = $comment->like_count;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH COMMENTS\n //START UPDATE TOTAL LIKES IN REVIEW-VIDEO TABLE\n $selectLikeCount = $likeTable->select()\n ->from($likeTableName, array('COUNT(*) AS like_count'))\n ->where('resource_type = ?', 'sitereview_video')\n ->where('resource_id = ?', $reviewVideo->video_id);\n $selectLikeCounts = $likeTable->fetchAll($selectLikeCount);\n if (!empty($selectLikeCounts)) {\n $selectLikeCounts = $selectLikeCounts->toArray();\n $reviewVideo->like_count = $selectLikeCounts[0]['like_count'];\n $reviewVideo->save();\n }\n //END UPDATE TOTAL LIKES IN REVIEW-VIDEO TABLE\n\n if (Engine_Api::_()->getApi('settings', 'core')->getSetting('sitereview.show.video', 1)) {\n\n $selectClasfVideo = $clasfVideoTable->select()\n ->from($clasfVideoTableName, array('video_id'))\n ->where('video_id =?', $reviewVideo->video_id);\n $resultsClasfVideo = $clasfVideoTable->fetchRow($selectClasfVideo);\n\n if (empty($resultsClasfVideo)) {\n $reviewVideo->is_import = 1;\n $reviewVideo->save();\n $clasfVideoTableCreateRow = $clasfVideoTable->createRow();\n $clasfVideoTableCreateRow->listing_id = $reviewVideo->listing_id;\n $clasfVideoTableCreateRow->video_id = $reviewVideo->video_id;\n $clasfVideoTableCreateRow->created = $reviewVideo->creation_date;\n $clasfVideoTableCreateRow->is_import = $reviewVideo->is_import;\n $clasfVideoTableCreateRow->save();\n }\n }\n\n //START FETCH RATTING DATA\n $selectVideoRating = $listVideoRating->select()\n ->from($listVideoRatingName)\n ->where('video_id = ?', $listVideoData->video_id);\n\n $listVideoRatingDatas = $listVideoRating->fetchAll($selectVideoRating);\n if (!empty($listVideoRatingDatas)) {\n $listVideoRatingDatas = $listVideoRatingDatas->toArray();\n }\n\n foreach ($listVideoRatingDatas as $listVideoRatingData) {\n\n $reviewVideoRating->insert(array(\n 'videorating_id' => $reviewVideo->video_id,\n 'user_id' => $listVideoRatingData['user_id'],\n 'rating' => $listVideoRatingData['rating']\n ));\n }\n //END FETCH RATTING DATA\n }\n }\n }\n //END FETCH VIDEO DATA\n }\n\n //CREATE LOG ENTRY IN LOG FILE\n if (file_exists(APPLICATION_PATH . '/temporary/log/ListingToReviewImport.log')) {\n $myFile = APPLICATION_PATH . '/temporary/log/ListingToReviewImport.log';\n $error = Zend_Registry::get('Zend_Translate')->_(\"can't open file\");\n $fh = fopen($myFile, 'a') or die($error);\n $current_time = date('D, d M Y H:i:s T');\n $review_title = $sitereview->title;\n $stringData = $this->view->translate('Listing with ID ') . $listing_id . $this->view->translate(' is successfully imported into a Review Listing with ID ') . $sitereview->listing_id . $this->view->translate(' at ') . $current_time . $this->view->translate(\". Title of that Review Listing is '\") . $review_title . \"'.\\n\\n\";\n fwrite($fh, $stringData);\n fclose($fh);\n }\n\n $db->commit();\n\n $this->view->assigned_previous_id = $listing_id;\n } catch (Exception $e) {\n $db->rollback();\n throw($e);\n }\n\n if ($next_import_count >= 100) {\n $this->_redirect(\"admin/sitereview/importlisting/index?start_import=1&listingtype_id=$listingtype_id&module=list&recall=1&activity_list=$activity_list\");\n }\n\n //exit();\n }\n }\n }\n\n //START CODE FOR CREATING THE ClassifiedToReviewImport.log FILE\n if (!file_exists(APPLICATION_PATH . '/temporary/log/ClassifiedToReviewImport.log')) {\n $log = new Zend_Log();\n try {\n $log->addWriter(new Zend_Log_Writer_Stream(APPLICATION_PATH . '/temporary/log/ClassifiedToReviewImport.log'));\n } catch (Exception $e) {\n //CHECK DIRECTORY\n if (!@is_dir(APPLICATION_PATH . '/temporary/log') && @mkdir(APPLICATION_PATH . '/temporary/log', 0777, true)) {\n $log->addWriter(new Zend_Log_Writer_Stream(APPLICATION_PATH . '/temporary/log/ClassifiedToReviewImport.log'));\n } else {\n //Silence ...\n if (APPLICATION_ENV !== 'production') {\n $log->log($e->__toString(), Zend_Log::CRIT);\n } else {\n //MAKE SURE LOGGING DOESN'T CAUSE EXCEPTIONS\n $log->addWriter(new Zend_Log_Writer_Null());\n }\n }\n }\n }\n\n //GIVE WRITE PERMISSION IF FILE EXIST\n if (file_exists(APPLICATION_PATH . '/temporary/log/ClassifiedToReviewImport.log')) {\n @chmod(APPLICATION_PATH . '/temporary/log/ClassifiedToReviewImport.log', 0777);\n }\n //END CODE FOR CREATING THE ClassifiedToReviewImport.log FILE\n //START IMPORTING WORK IF CLASSIFIED AND SITEREVIEW IS INSTALLED AND ACTIVATE\n if ($classifiedEnabled) {\n\n //GET CLASSIFIED TABLES\n $metaTable = Engine_Api::_()->fields()->getTable('classified', 'meta');\n $selectMetaDataPrice = $metaTable->select()->where('type = ?', 'currency');\n $metaDataPrice = $metaTable->fetchRow($selectMetaDataPrice);\n\n $selectMetaDataLocation = $metaTable->select()->where('type = ?', 'location');\n $metaDataLocation = $metaTable->fetchRow($selectMetaDataLocation);\n\n $classifiedPhotoTable = Engine_Api::_()->getDbtable('photos', 'classified');\n\n $classifiedTable = Engine_Api::_()->getDbTable('classifieds', 'classified');\n $classifiedTableName = $classifiedTable->info('name');\n\n $classifiedCategoryTable = Engine_Api::_()->getDbtable('categories', 'classified');\n $classifiedCategoryTableName = $classifiedCategoryTable->info('name');\n\n $classifiedFieldValueTable = Engine_Api::_()->fields()->getTable('classified', 'values');\n $classifiedFieldValueTableName = $classifiedFieldValueTable->info('name');\n\n //ADD NEW COLUMN IN Classified TABLE\n $db = Engine_Db_Table::getDefaultAdapter();\n $is_review_import = $db->query(\"SHOW COLUMNS FROM engine4_classified_classifieds LIKE 'is_review_import'\")->fetch();\n if (empty($is_review_import)) {\n $run_query = $db->query(\"ALTER TABLE `engine4_classified_classifieds` ADD `is_review_import` TINYINT( 2 ) NOT NULL DEFAULT '0'\");\n }\n\n //START IF IMPORTING IS BREAKED BY SOME REASON\n $selectClassifieds = $classifiedTable->select()\n ->from($classifiedTableName, 'classified_id')\n ->where('is_review_import != ?', 1)\n ->where('category_id != ?', 0)\n ->order('classified_id ASC');\n $classifiedDatas = $classifiedTable->fetchAll($selectClassifieds);\n\n $this->view->first_classified_id = $first_classified_id = 0;\n $this->view->last_classified_id = $last_classified_id = 0;\n\n if (!empty($classifiedDatas)) {\n\n $flag_first_classified_id = 1;\n\n foreach ($classifiedDatas as $classifiedData) {\n\n if ($flag_first_classified_id == 1) {\n $this->view->first_classified_id = $first_classified_id = $classifiedData->classified_id;\n }\n $flag_first_classified_id++;\n\n $this->view->last_classified_id = $last_classified_id = $classifiedData->classified_id;\n }\n\n if (isset($_GET['assigned_previous_id'])) {\n $this->view->classified_assigned_previous_id = $classified_assigned_previous_id = $_GET['assigned_previous_id'];\n } else {\n $this->view->classified_assigned_previous_id = $classified_assigned_previous_id = $first_classified_id;\n }\n }\n\n //START IMPORTING IF REQUESTED\n if (isset($_GET['start_import']) && $_GET['start_import'] == 1 && $_GET['module'] == 'classified') {\n\n //ACTIVITY FEED IMPORT\n $activity_classified = $this->_getParam('activity_classified');\n\n $imported_classified_id = $db->query(\"SHOW COLUMNS FROM engine4_sitereview_listings LIKE 'imported_classified_id'\")->fetch();\n\n //DO NOT RUN THIS CODE IN RECALL\n if (!isset($_GET['recall']) && empty($imported_classified_id)) {\n\n $db = Engine_Db_Table::getDefaultAdapter();\n $db->beginTransaction();\n\n try {\n\n //ADD MAPPING COLUMN IN SITEREVIEW TABLE\n $imported_listing_id = $db->query(\"SHOW COLUMNS FROM engine4_sitereview_listings LIKE 'imported_classified_id'\")->fetch();\n if (empty($imported_listing_id)) {\n $db->query(\"ALTER TABLE `engine4_sitereview_listings` ADD `imported_classified_id` INT( 11 ) NOT NULL DEFAULT '0'\");\n }\n\n //ADD MAPPING COLUMN IN SITEREVIEW TABLE\n $list_field_id = $db->query(\"SHOW COLUMNS FROM engine4_sitereview_listing_fields_meta LIKE 'classified_field_id'\")->fetch();\n if (empty($list_field_id)) {\n $db->query(\"ALTER TABLE `engine4_sitereview_listing_fields_meta` ADD `classified_field_id` INT( 11 ) NOT NULL DEFAULT '0'\");\n }\n\n //CREATE PROFILE TYPE\n $field = Engine_Api::_()->fields()->getField(1, 'sitereview_listing');\n $option = Engine_Api::_()->fields()->createOption('sitereview_listing', $field, array(\n 'label' => 'Classified - Default Type',\n ));\n $classified_profile_type = $option_id = $option->option_id;\n\n $field_map_array = $db->select()\n ->from('engine4_classified_fields_maps')\n ->where('option_id = ?', 0)\n ->where('field_id = ?', 0)\n ->query()\n ->fetchAll();\n $field_map_array_count = count($field_map_array);\n\n if ($field_map_array_count > 0){\n\n $child_id_array = array();\n for ($c = 0; $c < $field_map_array_count; $c++) {\n $child_id_array[] = $field_map_array[$c]['child_id'];\n }\n unset($c);\n\n $field_meta_array = $db->select()\n ->from('engine4_classified_fields_meta')\n ->where('field_id IN (' . implode(', ', $child_id_array) . ')')\n ->where('type != ?', 'profile_type')\n ->query()\n ->fetchAll();\n\n // Copy each row\n for ($c = 0; $c < Count($field_meta_array); $c++) {\n\n $formValues = array(\n 'option_id' => $option_id,\n 'type' => $field_meta_array[$c]['type'],\n 'label' => $field_meta_array[$c]['label'],\n 'description' => $field_meta_array[$c]['description'],\n 'alias' => $field_meta_array[$c]['alias'],\n 'required' => $field_meta_array[$c]['required'],\n 'display' => $field_meta_array[$c]['display'],\n 'publish' => 0,\n 'search' => 0, //$field_meta_array[$c]['search'],\n //'show' => $field_meta_array[$c]['show'],\n 'order' => $field_meta_array[$c]['order'],\n 'config' => $field_meta_array[$c]['config'],\n 'validators' => $field_meta_array[$c]['validators'],\n 'filters' => $field_meta_array[$c]['filters'],\n 'style' => $field_meta_array[$c]['style'],\n 'error' => $field_meta_array[$c]['error'],\n );\n\n $field = Engine_Api::_()->fields()->createField('sitereview_listing', $formValues);\n\n $db->update('engine4_sitereview_listing_fields_meta', array('config' => $field_meta_array[$c]['config'], 'classified_field_id' => $field_meta_array[$c]['field_id']), array('field_id = ?' => $field->field_id));\n\n if ($field_meta_array[$c]['type'] == 'select' || $field_meta_array[$c]['type'] == 'radio' || $field_meta_array[$c]['type'] == 'multiselect' || $field_meta_array[$c]['type'] == 'multi_checkbox') {\n $field_options_array = $db->select()\n ->from('engine4_classified_fields_options')\n ->where('field_id = ?', $field_meta_array[$c]['field_id'])\n ->query()\n ->fetchAll();\n $field_options_order = 0;\n foreach ($field_options_array as $field_options) {\n $field_options_order++;\n $field = Engine_Api::_()->fields()->getField($field->field_id, 'sitereview_listing');\n $option = Engine_Api::_()->fields()->createOption('sitereview_listing', $field, array(\n 'label' => $field_options['label'],\n 'order' => $field_options_order,\n ));\n\n $morefield_map_array = $db->select()\n ->from('engine4_classified_fields_maps')\n ->where('option_id = ?', $field_options['option_id'])\n ->where('field_id = ?', $field_options['field_id'])\n ->query()\n ->fetchAll();\n $morefield_map_array_count = count($morefield_map_array);\n\n if ($morefield_map_array_count < 1)\n continue;\n\n $morechild_id_array = array();\n for ($morec = 0; $morec < $morefield_map_array_count; $morec++) {\n $morechild_id_array[] = $morefield_map_array[$morec]['child_id'];\n }\n unset($morec);\n\n $morefield_meta_array = $db->select()\n ->from('engine4_classified_fields_meta')\n ->where('field_id IN (' . implode(', ', $morechild_id_array) . ')')\n ->where('type != ?', 'profile_type')\n ->query()\n ->fetchAll();\n\n // Copy each row\n for ($morec = 0; $morec < Count($morefield_meta_array); $morec++) {\n\n $moreformValues = array(\n 'option_id' => $option->option_id,\n 'type' => $morefield_meta_array[$morec]['type'],\n 'label' => $morefield_meta_array[$morec]['label'],\n 'description' => $morefield_meta_array[$morec]['description'],\n 'alias' => $morefield_meta_array[$morec]['alias'],\n 'required' => $morefield_meta_array[$morec]['required'],\n 'display' => $morefield_meta_array[$morec]['display'],\n 'publish' => 0,\n 'search' => 0, //$morefield_meta_array[$morec]['search'],\n //'show' => $morefield_meta_array[$morec]['show'],\n 'order' => $morefield_meta_array[$morec]['order'],\n 'config' => $morefield_meta_array[$morec]['config'],\n 'validators' => $morefield_meta_array[$morec]['validators'],\n 'filters' => $morefield_meta_array[$morec]['filters'],\n 'style' => $morefield_meta_array[$morec]['style'],\n 'error' => $morefield_meta_array[$morec]['error'],\n );\n\n $morefield = Engine_Api::_()->fields()->createField('sitereview_listing', $moreformValues);\n\n $db->update('engine4_sitereview_listing_fields_meta', array('config' => $morefield_meta_array[$morec]['config'], 'classified_field_id' => $morefield_meta_array[$morec]['field_id']), array('field_id = ?' => $morefield->field_id));\n\n if ($morefield_meta_array[$morec]['type'] == 'select' || $morefield_meta_array[$morec]['type'] == 'radio' || $morefield_meta_array[$morec]['type'] == 'multiselect' || $morefield_meta_array[$morec]['type'] == 'multi_checkbox') {\n $morefield_options_array = $db->select()\n ->from('engine4_classified_fields_options')\n ->where('field_id = ?', $morefield_meta_array[$morec]['field_id'])\n ->query()\n ->fetchAll();\n $morefield_options_order = 0;\n foreach ($morefield_options_array as $morefield_options) {\n $morefield_options_order++;\n $morefield = Engine_Api::_()->fields()->getField($morefield->field_id, 'sitereview_listing');\n $moreoption = Engine_Api::_()->fields()->createOption('sitereview_listing', $morefield, array(\n 'label' => $morefield_options['label'],\n 'order' => $morefield_options_order,\n ));\n }\n }\n }\n }\n }\n }\n\n //START FETCH CATEGORY WORK\n $selectReviewCategory = $reviewCategoryTable->select()\n ->from($reviewCategoryTableName, 'category_name')\n ->where('category_name != ?', '')\n ->where('listingtype_id = ?', $listingtype_id)\n ->where('cat_dependency = ?', 0);\n $reviewCategoryDatas = $reviewCategoryTable->fetchAll($selectReviewCategory);\n if (!empty($reviewCategoryDatas)) {\n $reviewCategoryDatas = $reviewCategoryDatas->toArray();\n }\n\n $reviewCategoryInArrayData = array();\n foreach ($reviewCategoryDatas as $reviewCategoryData) {\n $reviewCategoryInArrayData[] = $reviewCategoryData['category_name'];\n }\n\n $selectClassifiedCategory = $classifiedCategoryTable->select()\n ->from($classifiedCategoryTableName);\n $classifiedCategoryDatas = $classifiedCategoryTable->fetchAll($selectClassifiedCategory);\n if (!empty($classifiedCategoryDatas)) {\n $classifiedCategoryDatas = $classifiedCategoryDatas->toArray();\n foreach ($classifiedCategoryDatas as $classifiedCategoryData) {\n\n //RENAME THE CATEGORY IN SITEREVIEW TABLE IF ALREADY EXIST\n if (in_array($classifiedCategoryData['category_name'], $reviewCategoryInArrayData)) {\n $reviewCategoryTable->update(array('category_name' => $classifiedCategoryData['category_name'] . \"_old\"), array('category_name = ?' => $classifiedCategoryData['category_name'], 'listingtype_id = ?' => $listingtype_id));\n }\n\n if (!in_array($classifiedCategoryData['category_name'], $reviewCategoryInArrayData)) {\n $newCategory = $reviewCategoryTable->createRow();\n $newCategory->listingtype_id = $listingtype_id;\n $newCategory->category_name = $classifiedCategoryData['category_name'];\n $newCategory->cat_dependency = 0;\n $newCategory->profile_type = $classified_profile_type;\n $newCategory->cat_order = 9999;\n $newCategory->save();\n $newCategory->afterCreate();\n }\n }\n }\n }\n\n $db->commit();\n } catch (Exception $e) {\n $db->rollBack();\n\n //DELETE MAPPING COLUMN IN SITEREVIEW TABLE\n $imported_listing_id = $db->query(\"SHOW COLUMNS FROM engine4_sitereview_listings LIKE 'imported_classified_id'\")->fetch();\n if (!empty($imported_listing_id)) {\n $db->query(\"ALTER TABLE `engine4_sitereview_listings` DROP `imported_classified_id`\");\n }\n\n throw $e;\n }\n }\n\n //START CLASSIFIED IMPORT WORK\n $selectClassifieds = $classifiedTable->select()\n ->where('classified_id >= ?', $classified_assigned_previous_id)\n ->from($classifiedTableName, 'classified_id')\n ->where('is_review_import != ?', 1)\n ->where('category_id != ?', 0)\n ->order('classified_id ASC');\n $classifiedDatas = $classifiedTable->fetchAll($selectClassifieds);\n\n $next_import_count = 0;\n\n foreach ($classifiedDatas as $classifiedData) {\n $classified_id = $classifiedData->classified_id;\n\n if (!empty($classified_id)) {\n\n $classified = Engine_Api::_()->getItem('classified', $classified_id);\n\n $sitereview = $reviewTable->createRow();\n $sitereview->title = $classified->title;\n\n if ($listingtypeArray->body_allow)\n $sitereview->body = strip_tags($classified->body);\n\n $sitereview->owner_id = $classified->owner_id;\n $sitereview->listingtype_id = $listingtype_id;\n\n //START FETCH CLASSIFIED CATEGORY AND SUB-CATEGORY\n if (!empty($classified->category_id)) {\n $classifiedCategory = $classifiedCategoryTable->fetchRow(array('category_id = ?' => $classified->category_id));\n if (!empty($classifiedCategory)) {\n $classifiedCategoryName = $classifiedCategory->category_name;\n\n if (!empty($classifiedCategoryName)) {\n $reviewCategory = $reviewCategoryTable->fetchRow(array('category_name = ?' => $classifiedCategoryName, 'cat_dependency = ?' => 0, 'listingtype_id =?' => $listingtype_id));\n if (!empty($reviewCategory)) {\n $sitereview->category_id = $reviewCategory->category_id;\n }\n }\n }\n } else {\n continue;\n }\n //END FETCH CLASSIFIED CATEGORY AND SUB-CATEGORY\n\n $sitereview->profile_type = 0;\n\n $sitereview->photo_id = 0;\n\n //START FETCH PRICE\n if (!empty($metaDataPrice)) {\n $field_id = $metaDataPrice->field_id;\n\n $valueTable = Engine_Api::_()->fields()->getTable('classified', 'values');\n $selectValueData = $valueTable->select()->where('item_id = ?', $classified_id)->where('field_id = ?', $field_id);\n $valueData = $valueTable->fetchRow($selectValueData);\n if (!empty($valueData) && ($listingtypeArray->price)) {\n $sitereview->price = $valueData->value;\n }\n }\n //END FETCH PRICE \n //START GET DATA FROM CLASSIFIED\n $sitereview->creation_date = $classified->creation_date;\n $sitereview->modified_date = $classified->modified_date;\n $sitereview->approved_date = $sitereview->creation_date;\n $sitereview->view_count = $classified->view_count;\n $sitereview->comment_count = $classified->comment_count;\n $sitereview->closed = $classified->closed;\n $sitereview->approved = 1;\n\n $sitereview->save();\n\n $sitereview->creation_date = $classified->creation_date;\n $sitereview->save();\n\n //FATCH REVIEW CATEGORIES\n $categoryIdsArray = array();\n $categoryIdsArray[] = $sitereview->category_id;\n $categoryIdsArray[] = $sitereview->subcategory_id;\n $categoryIdsArray[] = $sitereview->subsubcategory_id;\n $sitereview->profile_type = $reviewCategoryTable->getProfileType($categoryIdsArray, 0, 'profile_type');\n $sitereview->search = $classified->search;\n\n Engine_Api::_()->getDbTable('otherinfo', 'sitereview')->insert(array(\n 'listing_id' => $sitereview->getIdentity(),\n 'overview' => !empty($listingtypeArray->overview) ? $classified->body : NULL,\n ));\n\n $sitereview->save();\n\n //START FETCH CUSTOM FIELD VALUES\n if (!empty($sitereview->profile_type)) {\n $reviewFieldValueTable->insert(array('item_id' => $sitereview->listing_id, 'field_id' => 1, 'index' => 0, 'value' => $sitereview->profile_type));\n $fieldValueSelect = $reviewMetaTable->select()\n ->setIntegrityCheck(false)\n ->from($reviewMetaTableName, array('field_id', 'type'))\n ->joinInner($classifiedFieldValueTableName, \"$classifiedFieldValueTableName.field_id = $reviewMetaTableName.classified_field_id\", array('value', 'index', 'field_id as classified_field_id'))\n ->where(\"$classifiedFieldValueTableName.item_id = ?\", $classified_id);\n $fieldValues = $reviewMetaTable->fetchAll($fieldValueSelect);\n foreach ($fieldValues as $fieldValue) {\n if ($fieldValue->type != 'multi_checkbox' && $fieldValue->type != 'multiselect' && $fieldValue->type != 'radio' && $fieldValue->type != 'select') {\n $reviewFieldValueTable->insert(array('item_id' => $sitereview->listing_id, 'field_id' => $fieldValue->field_id, 'index' => $fieldValue->index, 'value' => $fieldValue->value));\n } else {\n\n $classifiedFieldValues = $db->select()\n ->from('engine4_classified_fields_options')\n ->where('field_id = ?', $fieldValue->classified_field_id)\n ->query()\n ->fetchAll(Zend_Db::FETCH_COLUMN);\n\n $sitereviewFieldValues = $db->select()\n ->from('engine4_sitereview_listing_fields_options')\n ->where('field_id = ?', $fieldValue->field_id)\n ->query()\n ->fetchAll(Zend_Db::FETCH_COLUMN);\n\n $mergeFieldValues = array_combine($sitereviewFieldValues, $classifiedFieldValues);\n $value = array_search($fieldValue->value, $mergeFieldValues);\n if (!empty($value)) {\n $reviewFieldValueTable->insert(array('item_id' => $sitereview->listing_id, 'field_id' => $fieldValue->field_id, 'index' => $fieldValue->index, 'value' => $value));\n }\n }\n }\n }\n //END FETCH CUSTOM FIELD VALUES \n\n $classified->is_review_import = 1;\n $classified->save();\n\n $next_import_count++;\n //END GET DATA FROM CLASSIFIED\n //GENERATE ACTIVITY FEED\n if ($sitereview->draft == 0 && $activity_classified && $sitereview->search) {\n $action = $activityTable->addActivity($sitereview->getOwner(), $sitereview, 'sitereview_new_listtype_' . $listingtype_id);\n $action->date = $sitereview->creation_date;\n $action->save();\n\n if ($action != null) {\n $activityTable->attachActivity($action, $sitereview);\n }\n }\n\n $row = $otherinfoTable->getOtherinfo($sitereview->getIdentity());\n\n //START FETCH LOCATION\n if (!empty($metaDataLocation) && $listingtypeArray->location) {\n $field_id = $metaDataLocation->field_id;\n\n $valueTable = Engine_Api::_()->fields()->getTable('classified', 'values');\n $selectValueData = $valueTable->select()->where('item_id = ?', $classified_id)->where('field_id = ?', $field_id);\n $valueData = $valueTable->fetchRow($selectValueData);\n if (!empty($valueData)) {\n $sitereview->location = $valueData->value;\n $sitereview->save();\n $sitereview->setLocation();\n }\n }\n\n //START FETCH TAG\n $classifiedTags = $classified->tags()->getTagMaps();\n $tagString = '';\n\n foreach ($classifiedTags as $tagmap) {\n\n if ($tagString != '')\n $tagString .= ', ';\n $tagString .= $tagmap->getTag()->getTitle();\n\n $tags = array_filter(array_map(\"trim\", preg_split('/[,]+/', $tagString)));\n $sitereview->tags()->setTagMaps(Engine_Api::_()->getItem('user', $classified->owner_id), $tags);\n }\n //END FETCH TAG\n //START FETCH LIKES\n $selectLike = $likeTable->select()\n ->from($likeTableName, 'like_id')\n ->where('resource_type = ?', 'classified')\n ->where('resource_id = ?', $classified_id);\n $selectLikeDatas = $likeTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $like = Engine_Api::_()->getItem('core_like', $selectLikeData->like_id);\n\n $newLikeEntry = $likeTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_listing';\n $newLikeEntry->resource_id = $sitereview->listing_id;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $like->poster_id;\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH LIKES\n //START FETCH COMMENTS\n $selectLike = $commentTable->select()\n ->from($commentTableName, 'comment_id')\n ->where('resource_type = ?', 'classified')\n ->where('resource_id = ?', $classified_id);\n $selectLikeDatas = $commentTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $comment = Engine_Api::_()->getItem('core_comment', $selectLikeData->comment_id);\n\n $newLikeEntry = $commentTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_listing';\n $newLikeEntry->resource_id = $sitereview->listing_id;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $comment->poster_id;\n $newLikeEntry->body = $comment->body;\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->like_count = $comment->like_count;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH COMMENTS\n //START FETCH PRIVACY\n $auth = Engine_Api::_()->authorization()->context;\n $roles = array('owner', 'owner_member', 'owner_member_member', 'owner_network', 'registered', 'everyone');\n\n foreach ($roles as $role) {\n if ($auth->isAllowed($classified, $role, 'view')) {\n $values['auth_view'] = $role;\n }\n }\n\n foreach ($roles as $role) {\n if ($auth->isAllowed($classified, $role, 'photo')) {\n $values['auth_photo'] = $role;\n }\n }\n\n $viewMax = array_search($values['auth_view'], $roles);\n\n foreach ($roles as $i => $role) {\n $auth->setAllowed($sitereview, $role, 'view', ($i <= $viewMax));\n $auth->setAllowed($sitereview, $role, \"view_listtype_$listingtype_id\", ($i <= $viewMax));\n }\n\n $roles = array('owner', 'owner_member', 'owner_member_member', 'owner_network', 'registered');\n foreach ($roles as $role) {\n if ($auth->isAllowed($classified, $role, 'comment')) {\n $values['auth_comment'] = $role;\n }\n }\n $commentMax = array_search($values['auth_comment'], $roles);\n $photoMax = array_search('registered', $roles);\n $videoMax = array_search('registered', $roles);\n foreach ($roles as $i => $role) {\n $auth->setAllowed($sitereview, $role, 'comment', ($i <= $commentMax));\n $auth->setAllowed($sitereview, $role, \"comment_listtype_$listingtype_id\", ($i <= $commentMax));\n $auth->setAllowed($sitereview, $role, \"photo_listtype_$listingtype_id\", ($i <= $photoMax));\n $auth->setAllowed($sitereview, $role, \"video_listtype_$listingtype_id\", ($i <= $videoMax));\n }\n //END FETCH PRIVACY\n //START FETCH PHOTO DATA\n $selectClassifiedPhoto = $classifiedPhotoTable->select()\n ->from($classifiedPhotoTable->info('name'))\n ->where('classified_id = ?', $classified_id);\n $classifiedPhotoDatas = $classifiedPhotoTable->fetchAll($selectClassifiedPhoto);\n\n $sitereview = Engine_Api::_()->getItem('sitereview_listing', $sitereview->listing_id);\n\n if (!empty($classifiedPhotoDatas)) {\n\n $classifiedPhotoDatas = $classifiedPhotoDatas->toArray();\n\n if (empty($classified->photo_id)) {\n foreach ($classifiedPhotoDatas as $classifiedPhotoData) {\n $classified->photo_id = $classifiedPhotoData['photo_id'];\n break;\n }\n }\n\n if (!empty($classified->photo_id)) {\n $classifiedPhotoData = $classifiedPhotoTable->fetchRow(array('file_id = ?' => $classified->photo_id));\n if (!empty($classifiedPhotoData)) {\n $storageData = $storageTable->fetchRow(array('file_id = ?' => $classifiedPhotoData->file_id));\n\n if (!empty($storageData) && !empty($storageData->storage_path)) {\n\n $sitereview->setPhoto($storageData->storage_path);\n\n $album_id = $albumTable->update(array('photo_id' => $sitereview->photo_id), array('listing_id = ?' => $sitereview->listing_id));\n\n $reviewProfilePhoto = Engine_Api::_()->getDbTable('photos', 'sitereview')->fetchRow(array('file_id = ?' => $sitereview->photo_id));\n if (!empty($reviewProfilePhoto)) {\n $reviewProfilePhotoId = $reviewProfilePhoto->photo_id;\n } else {\n $reviewProfilePhotoId = $sitereview->photo_id;\n }\n\n //START FETCH LIKES\n $selectLike = $likeTable->select()\n ->from($likeTableName, 'like_id')\n ->where('resource_type = ?', 'classified_photo')\n ->where('resource_id = ?', $classified->photo_id);\n $selectLikeDatas = $likeTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $like = Engine_Api::_()->getItem('core_like', $selectLikeData->like_id);\n $newLikeEntry = $likeTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_photo';\n $newLikeEntry->resource_id = $reviewProfilePhotoId;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $like->poster_id;\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH LIKES\n //START FETCH COMMENTS\n $selectLike = $commentTable->select()\n ->from($commentTableName, 'comment_id')\n ->where('resource_type = ?', 'classified_photo')\n ->where('resource_id = ?', $classified->photo_id);\n $selectLikeDatas = $commentTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $comment = Engine_Api::_()->getItem('core_comment', $selectLikeData->comment_id);\n\n $newLikeEntry = $commentTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_photo';\n $newLikeEntry->resource_id = $reviewProfilePhotoId;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $comment->poster_id;\n $newLikeEntry->body = $comment->body;\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->like_count = $comment->like_count;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH COMMENTS\n //START FETCH TAGGER DETAIL\n $tagmapsTable = Engine_Api::_()->getDbtable('TagMaps', 'core');\n $tagmapsTableName = $tagmapsTable->info('name');\n $selectTagmaps = $tagmapsTable->select()\n ->from($tagmapsTableName, 'tagmap_id')\n ->where('resource_type = ?', 'classified_photo')\n ->where('resource_id = ?', $classified->photo_id);\n $selectTagmapsDatas = $tagmapsTable->fetchAll($selectTagmaps);\n foreach ($selectTagmapsDatas as $selectTagmapsData) {\n $tagMap = Engine_Api::_()->getItem('core_tag_map', $selectTagmapsData->tagmap_id);\n\n $newTagmapEntry = $tagmapsTable->createRow();\n $newTagmapEntry->resource_type = 'sitereview_photo';\n $newTagmapEntry->resource_id = $reviewProfilePhotoId;\n $newTagmapEntry->tagger_type = 'user';\n $newTagmapEntry->tagger_id = $tagMap->tagger_id;\n $newTagmapEntry->tag_type = 'user';\n $newTagmapEntry->tag_id = $tagMap->tag_id;\n $newTagmapEntry->creation_date = $tagMap->creation_date;\n $newTagmapEntry->extra = $tagMap->extra;\n $newTagmapEntry->save();\n\n $newTagmapEntry->creation_date = $tagMap->creation_date;\n $newTagmapEntry->save();\n }\n //END FETCH TAGGER DETAIL\n }\n }\n\n $fetchDefaultAlbum = $albumTable->fetchRow(array('listing_id = ?' => $sitereview->listing_id));\n if (!empty($fetchDefaultAlbum)) {\n\n $selectClassifiedPhoto = $classifiedPhotoTable->select()\n ->from($classifiedPhotoTable->info('name'))\n ->where('classified_id = ?', $classified_id);\n $classifiedPhotoDatas = $classifiedPhotoTable->fetchAll($selectClassifiedPhoto);\n\n $order = 999;\n foreach ($classifiedPhotoDatas as $classifiedPhotoData) {\n\n if ($classifiedPhotoData['file_id'] != $classified->photo_id) {\n $params = array(\n 'collection_id' => $fetchDefaultAlbum->album_id,\n 'album_id' => $fetchDefaultAlbum->album_id,\n 'listing_id' => $sitereview->listing_id,\n 'user_id' => $classifiedPhotoData['user_id'],\n 'order' => $order,\n );\n\n $storageData = $storageTable->fetchRow(array('file_id = ?' => $classifiedPhotoData['file_id']));\n if (!empty($storageData) && !empty($storageData->storage_path)) {\n $file = array();\n $file['tmp_name'] = $storageData->storage_path;\n $path_array = explode('/', $file['tmp_name']);\n $file['name'] = end($path_array);\n\n\n $reviewPhoto = Engine_Api::_()->sitereview()->createPhoto($params, $file);\n if (!empty($reviewPhoto)) {\n\n $order++;\n\n //START FETCH LIKES\n $selectLike = $likeTable->select()\n ->from($likeTableName, 'like_id')\n ->where('resource_type = ?', 'classified_photo')\n ->where('resource_id = ?', $classifiedPhotoData['photo_id']);\n $selectLikeDatas = $likeTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $like = Engine_Api::_()->getItem('core_like', $selectLikeData->like_id);\n\n $newLikeEntry = $likeTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_photo';\n $newLikeEntry->resource_id = $reviewPhoto->photo_id;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $like->poster_id;\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH LIKES\n //START FETCH COMMENTS\n $selectLike = $commentTable->select()\n ->from($commentTableName, 'comment_id')\n ->where('resource_type = ?', 'classified_photo')\n ->where('resource_id = ?', $classifiedPhotoData['photo_id']);\n $selectLikeDatas = $commentTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $comment = Engine_Api::_()->getItem('core_comment', $selectLikeData->comment_id);\n\n $newLikeEntry = $commentTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_photo';\n $newLikeEntry->resource_id = $reviewPhoto->photo_id;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $comment->poster_id;\n $newLikeEntry->body = $comment->body;\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->like_count = $comment->like_count;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH COMMENTS\n //START FETCH TAGGER DETAIL\n $selectTagmaps = $tagmapsTable->select()\n ->from($tagmapsTableName, 'tagmap_id')\n ->where('resource_type = ?', 'classified_photo')\n ->where('resource_id = ?', $classifiedPhotoData['photo_id']);\n $selectTagmapsDatas = $tagmapsTable->fetchAll($selectTagmaps);\n foreach ($selectTagmapsDatas as $selectTagmapsData) {\n $tagMap = Engine_Api::_()->getItem('core_tag_map', $selectTagmapsData->tagmap_id);\n\n $newTagmapEntry = $tagmapsTable->createRow();\n $newTagmapEntry->resource_type = 'sitereview_photo';\n $newTagmapEntry->resource_id = $reviewPhoto->photo_id;\n $newTagmapEntry->tagger_type = 'user';\n $newTagmapEntry->tagger_id = $tagMap->tagger_id;\n $newTagmapEntry->tag_type = 'user';\n $newTagmapEntry->tag_id = $tagMap->tag_id;\n $newTagmapEntry->creation_date = $tagMap->creation_date;\n $newTagmapEntry->extra = $tagMap->extra;\n $newTagmapEntry->save();\n\n $newTagmapEntry->creation_date = $tagMap->creation_date;\n $newTagmapEntry->save();\n }\n //END FETCH TAGGER DETAIL\n }\n }\n }\n }\n }\n }\n }\n //END FETCH PHOTO DATA\n }\n\n $this->view->classified_assigned_previous_id = $classified_id;\n\n //CREATE LOG ENTRY IN LOG FILE\n if (file_exists(APPLICATION_PATH . '/temporary/log/ListingToReviewImport.log')) {\n $myFile = APPLICATION_PATH . '/temporary/log/ListingToReviewImport.log';\n $error = Zend_Registry::get('Zend_Translate')->_(\"can't open file\");\n $fh = fopen($myFile, 'a') or die($error);\n $current_time = date('D, d M Y H:i:s T');\n $review_title = $sitereview->title;\n $stringData = $this->view->translate('Classified with ID ') . $classified_id . $this->view->translate(' is successfully imported into a Review Listing with ID ') . $sitereview->listing_id . $this->view->translate(' at ') . $current_time . $this->view->translate(\". Title of that Review Listing is '\") . $review_title . \"'.\\n\\n\";\n fwrite($fh, $stringData);\n fclose($fh);\n }\n\n if ($next_import_count >= 100) {\n $this->_redirect(\"admin/sitereview/importlisting/index?start_import=1&listingtype_id=$listingtype_id&module=list&recall=1&activity_classified=$activity_classified\");\n }\n }\n }\n }\n\n //START CODE FOR CREATING THE ListingToReviewImport.log FILE\n if (!file_exists(APPLICATION_PATH . '/temporary/log/RecipeToReviewImport.log')) {\n $log = new Zend_Log();\n try {\n $log->addWriter(new Zend_Log_Writer_Stream(APPLICATION_PATH . '/temporary/log/RecipeToReviewImport.log'));\n } catch (Exception $e) {\n //CHECK DIRECTORY\n if (!@is_dir(APPLICATION_PATH . '/temporary/log') && @mkdir(APPLICATION_PATH . '/temporary/log', 0777, true)) {\n $log->addWriter(new Zend_Log_Writer_Stream(APPLICATION_PATH . '/temporary/log/RecipeToReviewImport.log'));\n } else {\n //Silence ...\n if (APPLICATION_ENV !== 'production') {\n $log->log($e->__toString(), Zend_Log::CRIT);\n } else {\n //MAKE SURE LOGGING DOESN'T CAUSE EXCEPTIONS\n $log->addWriter(new Zend_Log_Writer_Null());\n }\n }\n }\n }\n\n //GIVE WRITE PERMISSION IF FILE EXIST\n if (file_exists(APPLICATION_PATH . '/temporary/log/RecipeToReviewImport.log')) {\n @chmod(APPLICATION_PATH . '/temporary/log/RecipeToReviewImport.log', 0777);\n }\n //END CODE FOR CREATING THE ListingToReviewImport.log FILE\n //START IMPORTING WORK IF LIST AND SITEREVIEW IS INSTALLED AND ACTIVATE\n if ($recipeEnabled) {\n\n //GET RECIPE TABLES\n $recipeTable = Engine_Api::_()->getDbTable('recipes', 'recipe');\n $recipeTableName = $recipeTable->info('name');\n\n $recipeCategoryTable = Engine_Api::_()->getDbtable('categories', 'recipe');\n $recipeCategoryTableName = $recipeCategoryTable->info('name');\n\n $writeTable = Engine_Api::_()->getDbtable('writes', 'recipe');\n\n $recipeLocationTable = Engine_Api::_()->getDbtable('locations', 'recipe');\n\n $metaTable = Engine_Api::_()->fields()->getTable('recipe', 'meta');\n $selectMetaData = $metaTable->select()->where('type = ?', 'currency');\n $metaData = $metaTable->fetchRow($selectMetaData);\n\n $topicTable = Engine_Api::_()->getDbtable('topics', 'recipe');\n $topicTableName = $topicTable->info('name');\n\n $postTable = Engine_Api::_()->getDbtable('posts', 'recipe');\n $postTableName = $postTable->info('name');\n\n $topicWatchesTable = Engine_Api::_()->getDbtable('topicWatches', 'recipe');\n\n $recipePhotoTable = Engine_Api::_()->getDbtable('photos', 'recipe');\n\n $recipereviewTable = Engine_Api::_()->getDbtable('reviews', 'recipe');\n $recipereviewTableName = $recipereviewTable->info('name');\n\n $recipeFieldValueTable = Engine_Api::_()->fields()->getTable('recipe', 'values');\n $recipeFieldValueTableName = $recipeFieldValueTable->info('name');\n\n if (Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('video')) {\n\n $recipeVideoRating = Engine_Api::_()->getDbTable('ratings', 'video');\n $recipeVideoRatingName = $recipeVideoRating->info('name');\n\n $recipeVideoTable = Engine_Api::_()->getDbtable('clasfvideos', 'recipe');\n $recipeVideoTableName = $recipeVideoTable->info('name');\n }\n\n //ADD NEW COLUMN IN LISTING TABLE\n $db = Engine_Db_Table::getDefaultAdapter();\n $is_review_import = $db->query(\"SHOW COLUMNS FROM engine4_recipe_recipes LIKE 'is_review_import'\")->fetch();\n if (empty($is_review_import)) {\n $run_query = $db->query(\"ALTER TABLE `engine4_recipe_recipes` ADD `is_review_import` TINYINT( 2 ) NOT NULL DEFAULT '0'\");\n }\n\n //START IF IMPORTING IS BREAKED BY SOME REASON\n $selectRecipes = $recipeTable->select()\n ->from($recipeTableName, 'recipe_id')\n ->where('is_review_import != ?', 1)\n ->where('category_id != ?', 0)\n ->order('recipe_id ASC');\n $recipeDatas = $recipeTable->fetchAll($selectRecipes);\n\n $this->view->first_recipe_id = $first_recipe_id = 0;\n $this->view->last_recipe_id = $last_recipe_id = 0;\n\n if (!empty($recipeDatas)) {\n\n $flag_first_recipe_id = 1;\n\n foreach ($recipeDatas as $recipeData) {\n\n if ($flag_first_recipe_id == 1) {\n $this->view->first_recipe_id = $first_recipe_id = $recipeData->recipe_id;\n }\n $flag_first_recipe_id++;\n\n $this->view->last_recipe_id = $last_recipe_id = $recipeData->recipe_id;\n }\n\n if (isset($_GET['recipe_assigned_previous_id'])) {\n $this->view->recipe_assigned_previous_id = $recipe_assigned_previous_id = $_GET['recipe_assigned_previous_id'];\n } else {\n $this->view->recipe_assigned_previous_id = $recipe_assigned_previous_id = $first_recipe_id;\n }\n }\n\n //START IMPORTING IF REQUESTED\n if (isset($_GET['start_import']) && $_GET['start_import'] == 1 && $_GET['module'] == 'recipe') {\n\n //ACTIVITY FEED IMPORT\n $activity_recipe = $this->_getParam('activity_recipe');\n\n $imported_recipe_id = $db->query(\"SHOW COLUMNS FROM engine4_sitereview_listings LIKE 'imported_recipe_id'\")->fetch();\n\n //DO NOT RUN THIS CODE IN RECALL\n if (!isset($_GET['recall']) && empty($imported_recipe_id)) {\n\n $db = Engine_Db_Table::getDefaultAdapter();\n $db->beginTransaction();\n\n try {\n\n //ADD MAPPING COLUMN IN SITEREVIEW TABLE\n $imported_recipe_id = $db->query(\"SHOW COLUMNS FROM engine4_sitereview_listings LIKE 'imported_recipe_id'\")->fetch();\n if (empty($imported_recipe_id)) {\n $db->query(\"ALTER TABLE `engine4_sitereview_listings` ADD `imported_recipe_id` INT( 11 ) NOT NULL DEFAULT '0'\");\n }\n\n //ADD MAPPING COLUMN IN SITEREVIEW TABLE\n $recipe_field_id = $db->query(\"SHOW COLUMNS FROM engine4_sitereview_listing_fields_meta LIKE 'recipe_field_id'\")->fetch();\n if (empty($recipe_field_id)) {\n $db->query(\"ALTER TABLE `engine4_sitereview_listing_fields_meta` ADD `recipe_field_id` INT( 11 ) NOT NULL DEFAULT '0'\");\n }\n\n\n //CREATE PROFILE TYPE\n $field = Engine_Api::_()->fields()->getField(1, 'sitereview_listing');\n $option = Engine_Api::_()->fields()->createOption('sitereview_listing', $field, array(\n 'label' => 'Recipe - Default Type',\n ));\n $recipe_profile_type = $option_id = $option->option_id;\n\n //START: CREATE START MONTH AND END MONTH CUSTOM FIELDS\n $startEndMonths = array('Season Starting Month' => 'Please select the starting month for the season of this recipe.', 'Season Ending Month' => 'Please select the ending month for the season of this recipe.');\n\n foreach ($startEndMonths as $key => $startEndMonth) {\n $formValuesMonth = array(\n 'option_id' => $recipe_profile_type,\n 'type' => 'select',\n 'label' => $key,\n 'description' => $startEndMonth,\n 'display' => 1,\n );\n\n $fieldMonth = Engine_Api::_()->fields()->createField('sitereview_listing', $formValuesMonth);\n $months = array(\"1\" => \"January\", \"2\" => \"February\", \"3\" => \"March\", \"4\" => \"April\", \"5\" => \"May\", \"6\" => \"June\", \"7\" => \"July\", \"8\" => \"August\", \"9\" => \"September\", \"10\" => \"October\", \"11\" => \"November\", \"12\" => \"December\");\n\n foreach ($months as $key => $month) {\n\n $option = Engine_Api::_()->fields()->createOption('sitereview_listing', $fieldMonth, array(\n 'label' => $month,\n 'order' => $key,\n ));\n }\n }\n //END: CREATE START MONTH AND END MONTH CUSTOM FIELDS\n\n $field_map_array = $db->select()\n ->from('engine4_recipe_fields_maps')\n ->where('option_id = ?', 0)\n ->where('field_id = ?', 0)\n ->query()\n ->fetchAll();\n $field_map_array_count = count($field_map_array);\n\n if ($field_map_array_count > 0) {\n\n $child_id_array = array();\n for ($c = 0; $c < $field_map_array_count; $c++) {\n $child_id_array[] = $field_map_array[$c]['child_id'];\n }\n unset($c);\n\n $field_meta_array = $db->select()\n ->from('engine4_recipe_fields_meta')\n ->where('field_id IN (' . implode(', ', $child_id_array) . ')')\n ->where('type != ?', 'profile_type')\n ->query()\n ->fetchAll();\n\n // Copy each row\n for ($c = 0; $c < Count($field_meta_array); $c++) {\n\n $formValues = array(\n 'option_id' => $option_id,\n 'type' => $field_meta_array[$c]['type'],\n 'label' => $field_meta_array[$c]['label'],\n 'description' => $field_meta_array[$c]['description'],\n 'alias' => $field_meta_array[$c]['alias'],\n 'required' => $field_meta_array[$c]['required'],\n 'display' => $field_meta_array[$c]['display'],\n 'publish' => 0,\n 'search' => 0, //$field_meta_array[$c]['search'],\n //'show' => $field_meta_array[$c]['show'],\n 'order' => $field_meta_array[$c]['order'],\n 'config' => $field_meta_array[$c]['config'],\n 'validators' => $field_meta_array[$c]['validators'],\n 'filters' => $field_meta_array[$c]['filters'],\n 'style' => $field_meta_array[$c]['style'],\n 'error' => $field_meta_array[$c]['error'],\n );\n\n $field = Engine_Api::_()->fields()->createField('sitereview_listing', $formValues);\n\n $db->update('engine4_sitereview_listing_fields_meta', array('config' => $field_meta_array[$c]['config'], 'recipe_field_id' => $field_meta_array[$c]['field_id']), array('field_id = ?' => $field->field_id));\n\n if ($field_meta_array[$c]['type'] == 'select' || $field_meta_array[$c]['type'] == 'radio' || $field_meta_array[$c]['type'] == 'multiselect' || $field_meta_array[$c]['type'] == 'multi_checkbox') {\n $field_options_array = $db->select()\n ->from('engine4_recipe_fields_options')\n ->where('field_id = ?', $field_meta_array[$c]['field_id'])\n ->query()\n ->fetchAll();\n $field_options_order = 0;\n foreach ($field_options_array as $field_options) {\n $field_options_order++;\n $field = Engine_Api::_()->fields()->getField($field->field_id, 'sitereview_listing');\n $option = Engine_Api::_()->fields()->createOption('sitereview_listing', $field, array(\n 'label' => $field_options['label'],\n 'order' => $field_options_order,\n ));\n\n $morefield_map_array = $db->select()\n ->from('engine4_recipe_fields_maps')\n ->where('option_id = ?', $field_options['option_id'])\n ->where('field_id = ?', $field_options['field_id'])\n ->query()\n ->fetchAll();\n $morefield_map_array_count = count($morefield_map_array);\n\n if ($morefield_map_array_count < 1)\n continue;\n\n $morechild_id_array = array();\n for ($morec = 0; $morec < $morefield_map_array_count; $morec++) {\n $morechild_id_array[] = $morefield_map_array[$morec]['child_id'];\n }\n unset($morec);\n\n $morefield_meta_array = $db->select()\n ->from('engine4_recipe_fields_meta')\n ->where('field_id IN (' . implode(', ', $morechild_id_array) . ')')\n ->where('type != ?', 'profile_type')\n ->query()\n ->fetchAll();\n\n // Copy each row\n for ($morec = 0; $morec < Count($morefield_meta_array); $morec++) {\n\n $moreformValues = array(\n 'option_id' => $option->option_id,\n 'type' => $morefield_meta_array[$morec]['type'],\n 'label' => $morefield_meta_array[$morec]['label'],\n 'description' => $morefield_meta_array[$morec]['description'],\n 'alias' => $morefield_meta_array[$morec]['alias'],\n 'required' => $morefield_meta_array[$morec]['required'],\n 'display' => $morefield_meta_array[$morec]['display'],\n 'publish' => 0,\n 'search' => 0, //$morefield_meta_array[$morec]['search'],\n //'show' => $morefield_meta_array[$morec]['show'],\n 'order' => $morefield_meta_array[$morec]['order'],\n 'config' => $morefield_meta_array[$morec]['config'],\n 'validators' => $morefield_meta_array[$morec]['validators'],\n 'filters' => $morefield_meta_array[$morec]['filters'],\n 'style' => $morefield_meta_array[$morec]['style'],\n 'error' => $morefield_meta_array[$morec]['error'],\n );\n\n $morefield = Engine_Api::_()->fields()->createField('sitereview_listing', $moreformValues);\n\n $db->update('engine4_sitereview_listing_fields_meta', array('config' => $morefield_meta_array[$morec]['config'], 'recipe_field_id' => $morefield_meta_array[$morec]['field_id']), array('field_id = ?' => $morefield->field_id));\n\n if ($morefield_meta_array[$morec]['type'] == 'select' || $morefield_meta_array[$morec]['type'] == 'radio' || $morefield_meta_array[$morec]['type'] == 'multiselect' || $morefield_meta_array[$morec]['type'] == 'multi_checkbox') {\n $morefield_options_array = $db->select()\n ->from('engine4_recipe_fields_options')\n ->where('field_id = ?', $morefield_meta_array[$morec]['field_id'])\n ->query()\n ->fetchAll();\n $morefield_options_order = 0;\n foreach ($morefield_options_array as $morefield_options) {\n $morefield_options_order++;\n $morefield = Engine_Api::_()->fields()->getField($morefield->field_id, 'sitereview_listing');\n $moreoption = Engine_Api::_()->fields()->createOption('sitereview_listing', $morefield, array(\n 'label' => $morefield_options['label'],\n 'order' => $morefield_options_order,\n ));\n }\n }\n }\n }\n }\n }\n\n //START FETCH CATEGORY WORK\n $selectReviewCategory = $reviewCategoryTable->select()\n ->from($reviewCategoryTableName, 'category_name')\n ->where('category_name != ?', '')\n ->where('listingtype_id = ?', $listingtype_id)\n ->where('cat_dependency = ?', 0);\n $reviewCategoryDatas = $reviewCategoryTable->fetchAll($selectReviewCategory);\n if (!empty($reviewCategoryDatas)) {\n $reviewCategoryDatas = $reviewCategoryDatas->toArray();\n }\n\n $reviewCategoryInArrayData = array();\n foreach ($reviewCategoryDatas as $reviewCategoryData) {\n $reviewCategoryInArrayData[] = $reviewCategoryData['category_name'];\n }\n\n $selectRecipeCategory = $recipeCategoryTable->select()\n ->from($recipeCategoryTableName)\n ->where('category_name != ?', '')\n ->where('cat_dependency = ?', 0);\n $recipeCategoryDatas = $recipeCategoryTable->fetchAll($selectRecipeCategory);\n if (!empty($recipeCategoryDatas)) {\n $recipeCategoryDatas = $recipeCategoryDatas->toArray();\n foreach ($recipeCategoryDatas as $recipeCategoryData) {\n\n //RENAME THE CATEGORY IN SITEREVIEW TABLE IF ALREADY EXIST\n if (in_array($recipeCategoryData['category_name'], $reviewCategoryInArrayData)) {\n $reviewCategoryTable->update(array('category_name' => $recipeCategoryData['category_name'] . \"_old\"), array('category_name = ?' => $recipeCategoryData['category_name'], 'listingtype_id = ?' => $listingtype_id));\n }\n\n if (!in_array($recipeCategoryData['category_name'], $reviewCategoryInArrayData)) {\n $newCategory = $reviewCategoryTable->createRow();\n $newCategory->listingtype_id = $listingtype_id;\n $newCategory->category_name = $recipeCategoryData['category_name'];\n $newCategory->cat_dependency = 0;\n $newCategory->cat_order = 9999;\n $newCategory->profile_type = $recipe_profile_type;\n $newCategory->save();\n\n $newCategory->afterCreate();\n\n $selectRecipeSubCategory = $recipeCategoryTable->select()\n ->from($recipeCategoryTableName)\n ->where('category_name != ?', '')\n ->where('cat_dependency = ?', $recipeCategoryData['category_id']);\n $recipeSubCategoryDatas = $recipeCategoryTable->fetchAll($selectRecipeSubCategory);\n foreach ($recipeSubCategoryDatas as $recipeSubCategoryData) {\n $newSubCategory = $reviewCategoryTable->createRow();\n $newSubCategory->listingtype_id = $listingtype_id;\n $newSubCategory->category_name = $recipeSubCategoryData->category_name;\n $newSubCategory->cat_dependency = $newCategory->category_id;\n $newSubCategory->cat_order = 9999;\n $subcategory_id = $newSubCategory->save();\n $newSubCategory->afterCreate();\n }\n }\n }\n }\n }\n\n $db->commit();\n } catch (Exception $e) {\n $db->rollBack();\n\n //DELETE MAPPING COLUMN IN SITEREVIEW TABLE\n $imported_listing_id = $db->query(\"SHOW COLUMNS FROM engine4_sitereview_listings LIKE 'imported_recipe_id'\")->fetch();\n if (!empty($imported_listing_id)) {\n $db->query(\"ALTER TABLE `engine4_sitereview_listings` DROP `imported_recipe_id`\");\n }\n\n throw $e;\n }\n }\n //DO NOT RUN THE UPPER CODE IN RECALL \n //START RECIPE IMPORTING WORK\n $selectRecipes = $recipeTable->select()\n ->where('recipe_id >= ?', $recipe_assigned_previous_id)\n ->from($recipeTableName, 'recipe_id')\n ->where('is_review_import != ?', 1)\n ->where('category_id != ?', 0)\n ->order('recipe_id ASC');\n $recipeDatas = $recipeTable->fetchAll($selectRecipes);\n\n $next_import_count = 0;\n\n foreach ($recipeDatas as $recipeData) {\n $recipe_id = $recipeData->recipe_id;\n\n if (!empty($recipe_id)) {\n\n $recipe = Engine_Api::_()->getItem('recipe', $recipe_id);\n\n $sitereview = $reviewTable->createRow();\n $sitereview->title = $recipe->title;\n\n if ($listingtypeArray->body_allow)\n $sitereview->body = $recipe->body;\n\n $sitereview->owner_id = $recipe->owner_id;\n $sitereview->listingtype_id = $listingtype_id;\n\n //START FETCH LIST CATEGORY AND SUB-CATEGORY\n if (!empty($recipe->category_id)) {\n $recipeCategory = $recipeCategoryTable->fetchRow(array('category_id = ?' => $recipe->category_id, 'cat_dependency = ?' => 0));\n if (!empty($recipeCategory)) {\n $recipeCategoryName = $recipeCategory->category_name;\n\n if (!empty($recipeCategoryName)) {\n $reviewCategory = $reviewCategoryTable->fetchRow(array('category_name = ?' => $recipeCategoryName, 'cat_dependency = ?' => 0, 'listingtype_id =?' => $listingtype_id));\n if (!empty($reviewCategory)) {\n $reviewCategoryId = $sitereview->category_id = $reviewCategory->category_id;\n\n $recipeSubCategory = $recipeCategoryTable->fetchRow(array('category_id = ?' => $recipe->subcategory_id, 'cat_dependency = ?' => $recipe->category_id));\n if (!empty($recipeSubCategory)) {\n $recipeSubCategoryName = $recipeSubCategory->category_name;\n\n $reviewSubCategory = $reviewCategoryTable->fetchRow(array('category_name = ?' => $recipeSubCategoryName, 'cat_dependency = ?' => $reviewCategoryId, 'listingtype_id =?' => $listingtype_id));\n if (!empty($reviewSubCategory)) {\n $sitereview->subcategory_id = $reviewSubCategory->category_id;\n }\n }\n }\n }\n }\n } else {\n continue;\n }\n //END FETCH LIST CATEGORY AND SUB-CATEGORY\n\n $sitereview->profile_type = 0;\n\n $sitereview->photo_id = 0;\n\n //START FETCH PRICE\n if (!empty($metaData)) {\n $field_id = $metaData->field_id;\n\n $valueTable = Engine_Api::_()->fields()->getTable('recipe', 'values');\n $selectValueData = $valueTable->select()->where('item_id = ?', $recipe_id)->where('field_id = ?', $field_id);\n $valueData = $valueTable->fetchRow($selectValueData);\n if (!empty($valueData) && ($listingtypeArray->price)) {\n $sitereview->price = $valueData->value;\n }\n }\n //END FETCH PRICE\n //START GET DATA FROM LISTING\n $sitereview->creation_date = $recipe->creation_date;\n $sitereview->modified_date = $recipe->modified_date;\n $sitereview->approved = $recipe->approved;\n $sitereview->featured = $recipe->featured;\n $sitereview->sponsored = $recipe->sponsored;\n\n $sitereview->view_count = 1;\n if ($recipe->view_count > 0) {\n $sitereview->view_count = $recipe->view_count;\n }\n\n $sitereview->comment_count = $recipe->comment_count;\n $sitereview->like_count = $recipe->like_count;\n $sitereview->review_count = $recipe->rate_count;\n $sitereview->closed = $recipe->closed;\n $sitereview->draft = !$recipe->draft;\n\n if (!empty($recipe->aprrove_date)) {\n $sitereview->approved_date = $recipe->aprrove_date;\n }\n\n $sitereview->rating_avg = round($recipe->rating, 4);\n $sitereview->rating_users = round($recipe->rating, 4);\n $sitereview->save();\n\n $sitereview->creation_date = $recipe->creation_date;\n $sitereview->save();\n\n //FATCH REVIEW CATEGORIES\n $categoryIdsArray = array();\n $categoryIdsArray[] = $sitereview->category_id;\n $categoryIdsArray[] = $sitereview->subcategory_id;\n $categoryIdsArray[] = $sitereview->subsubcategory_id;\n $sitereview->profile_type = $reviewCategoryTable->getProfileType($categoryIdsArray, 0, 'profile_type');\n $sitereview->search = $recipe->search;\n $sitereview->save();\n\n //START FETCH CUSTOM FIELD VALUES\n if (!empty($sitereview->profile_type)) {\n $reviewFieldValueTable->insert(array('item_id' => $sitereview->listing_id, 'field_id' => 1, 'index' => 0, 'value' => $sitereview->profile_type));\n $fieldValueSelect = $reviewMetaTable->select()\n ->setIntegrityCheck(false)\n ->from($reviewMetaTableName, array('field_id', 'type'))\n ->joinInner($recipeFieldValueTableName, \"$recipeFieldValueTableName.field_id = $reviewMetaTableName.recipe_field_id\", array('value', 'index', 'field_id as recipe_field_id'))\n ->where(\"$recipeFieldValueTableName.item_id = ?\", $recipe_id);\n $fieldValues = $reviewMetaTable->fetchAll($fieldValueSelect);\n foreach ($fieldValues as $fieldValue) {\n if ($fieldValue->type != 'multi_checkbox' && $fieldValue->type != 'multiselect' && $fieldValue->type != 'radio' && $fieldValue->type != 'select') {\n $reviewFieldValueTable->insert(array('item_id' => $sitereview->listing_id, 'field_id' => $fieldValue->field_id, 'index' => $fieldValue->index, 'value' => $fieldValue->value));\n } else {\n\n $recipeFieldValues = $db->select()\n ->from('engine4_recipe_fields_options')\n ->where('field_id = ?', $fieldValue->recipe_field_id)\n ->query()\n ->fetchAll(Zend_Db::FETCH_COLUMN);\n\n $sitereviewFieldValues = $db->select()\n ->from('engine4_sitereview_listing_fields_options')\n ->where('field_id = ?', $fieldValue->field_id)\n ->query()\n ->fetchAll(Zend_Db::FETCH_COLUMN);\n\n $mergeFieldValues = array_combine($sitereviewFieldValues, $recipeFieldValues);\n $value = array_search($fieldValue->value, $mergeFieldValues);\n if (!empty($value)) {\n $reviewFieldValueTable->insert(array('item_id' => $sitereview->listing_id, 'field_id' => $fieldValue->field_id, 'index' => $fieldValue->index, 'value' => $value));\n }\n }\n }\n\n //FETCH THE VALUE OF START AND END MONTH\n $months = array(\"01\" => \"January\", \"02\" => \"February\", \"03\" => \"March\", \"04\" => \"April\", \"05\" => \"May\", \"06\" => \"June\", \"07\" => \"July\", \"08\" => \"August\", \"09\" => \"September\", \"10\" => \"October\", \"11\" => \"November\", \"12\" => \"December\");\n if ($recipe->start_month) {\n $startMonthFieldId = $db->select()\n ->from('engine4_sitereview_listing_fields_meta', 'field_id')\n ->where('type = ?', 'select')\n ->where('label = ?', 'Season Starting Month')\n ->order('field_id ASC')\n ->query()\n ->fetchColumn();\n $startMonth = $months[\"$recipe->start_month\"];\n if ($startMonth && $startMonthFieldId) {\n $startMonthOptionId = $db->select()\n ->from('engine4_sitereview_listing_fields_options', 'option_id')\n ->where('field_id = ?', $startMonthFieldId)\n ->where('label = ?', $startMonth)\n ->query()\n ->fetchColumn();\n if ($startMonthOptionId) {\n $reviewFieldValueTable->insert(array('item_id' => $sitereview->listing_id, 'field_id' => $startMonthFieldId, 'value' => $startMonthOptionId));\n }\n }\n }\n\n if ($recipe->end_month) {\n $endMonthFieldId = $db->select()\n ->from('engine4_sitereview_listing_fields_meta', 'field_id')\n ->where('type = ?', 'select')\n ->where('label = ?', 'Season Ending Month')\n ->order('field_id ASC')\n ->query()\n ->fetchColumn();\n $endMonth = $months[\"$recipe->end_month\"];\n if ($endMonth && $endMonthFieldId) {\n $endMonthOptionId = $db->select()\n ->from('engine4_sitereview_listing_fields_options', 'option_id')\n ->where('field_id = ?', $endMonthFieldId)\n ->where('label = ?', $endMonth)\n ->query()\n ->fetchColumn();\n if ($endMonthOptionId) {\n $reviewFieldValueTable->insert(array('item_id' => $sitereview->listing_id, 'field_id' => $endMonthFieldId, 'value' => $endMonthOptionId));\n }\n }\n }\n }\n //END FETCH CUSTOM FIELD VALUES \n\n $recipe->is_review_import = 1;\n $recipe->save();\n $next_import_count++;\n //END GET DATA FROM LISTING\n //GENERATE ACITIVITY FEED\n if ($sitereview->draft == 0 && $activity_recipe && $sitereview->search) {\n $action = $activityTable->addActivity($sitereview->getOwner(), $sitereview, 'sitereview_new_listtype_' . $listingtype_id);\n $action->date = $sitereview->creation_date;\n $action->save();\n if ($action != null) {\n $activityTable->attachActivity($action, $sitereview);\n }\n }\n\n $row = $otherinfoTable->getOtherinfo($sitereview->getIdentity());\n\n if (empty($row)) {\n $about = \"\";\n $overview = \"\";\n\n //START FETCH engine4_list_writes DATA\n $writeData = $writeTable->fetchRow(array('recipe_id = ?' => $recipe_id));\n if (!empty($writeData)) {\n $about = $writeData->text;\n }\n //END FETCH engine4_list_writes DATAS\n\n if ($recipe->overview && $listingtypeArray->overview) {\n $overview = $recipe->overview;\n }\n\n Engine_Api::_()->getDbTable('otherinfo', 'sitereview')->insert(array(\n 'listing_id' => $sitereview->getIdentity(),\n 'overview' => $overview,\n 'about' => $about\n ));\n }\n\n $locationData = $recipeLocationTable->fetchRow(array('recipe_id = ?' => $recipe_id));\n if (!empty($locationData) && $listingtypeArray->location) {\n $sitereview->location = $locationData->location;\n $sitereview->save();\n\n $reviewLocation = $reviewLocationTable->createRow();\n $reviewLocation->listing_id = $sitereview->listing_id;\n $reviewLocation->location = $sitereview->location;\n $reviewLocation->latitude = $locationData->latitude;\n $reviewLocation->longitude = $locationData->longitude;\n $reviewLocation->formatted_address = $locationData->formatted_address;\n $reviewLocation->country = $locationData->country;\n $reviewLocation->state = $locationData->state;\n $reviewLocation->zipcode = $locationData->zipcode;\n $reviewLocation->city = $locationData->city;\n $reviewLocation->address = $locationData->address;\n $reviewLocation->zoom = $locationData->zoom;\n $reviewLocation->save();\n }\n\n //START FETCH TAG\n $recipeTags = $recipe->tags()->getTagMaps();\n $tagString = '';\n\n foreach ($recipeTags as $tagmap) {\n\n if ($tagString != '')\n $tagString .= ', ';\n $tagString .= $tagmap->getTag()->getTitle();\n\n $tags = array_filter(array_map(\"trim\", preg_split('/[,]+/', $tagString)));\n $sitereview->tags()->setTagMaps(Engine_Api::_()->getItem('user', $recipe->owner_id), $tags);\n }\n //END FETCH TAG\n //START FETCH LIKES\n $selectLike = $likeTable->select()\n ->from($likeTableName, 'like_id')\n ->where('resource_type = ?', 'recipe')\n ->where('resource_id = ?', $recipe_id);\n $selectLikeDatas = $likeTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $like = Engine_Api::_()->getItem('core_like', $selectLikeData->like_id);\n\n $newLikeEntry = $likeTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_listing';\n $newLikeEntry->resource_id = $sitereview->listing_id;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $like->poster_id;\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH LIKES\n //START FETCH COMMENTS\n $selectLike = $commentTable->select()\n ->from($commentTableName, 'comment_id')\n ->where('resource_type = ?', 'recipe')\n ->where('resource_id = ?', $recipe_id);\n $selectLikeDatas = $commentTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $comment = Engine_Api::_()->getItem('core_comment', $selectLikeData->comment_id);\n\n $newLikeEntry = $commentTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_listing';\n $newLikeEntry->resource_id = $sitereview->listing_id;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $comment->poster_id;\n $newLikeEntry->body = $comment->body;\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->like_count = $comment->like_count;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH COMMENTS\n //START FETCH PRIVACY\n $auth = Engine_Api::_()->authorization()->context;\n $roles = array('owner', 'owner_member', 'owner_member_member', 'owner_network', 'registered', 'everyone');\n\n foreach ($roles as $role) {\n if ($auth->isAllowed($recipe, $role, 'view')) {\n $values['auth_view'] = $role;\n }\n }\n\n foreach ($roles as $role) {\n if ($auth->isAllowed($recipe, $role, 'photo')) {\n $values['auth_photo'] = $role;\n }\n }\n\n foreach ($roles as $role) {\n if ($auth->isAllowed($recipe, $role, 'video')) {\n $values['auth_video'] = $role;\n }\n }\n\n $viewMax = array_search($values['auth_view'], $roles);\n $photoMax = array_search($values['auth_photo'], $roles);\n $videoMax = array_search($values['auth_video'], $roles);\n\n foreach ($roles as $i => $role) {\n $auth->setAllowed($sitereview, $role, 'view', ($i <= $viewMax));\n $auth->setAllowed($sitereview, $role, \"view_listtype_$listingtype_id\", ($i <= $viewMax));\n $auth->setAllowed($sitereview, $role, \"photo_listtype_$listingtype_id\", ($i <= $photoMax));\n $auth->setAllowed($sitereview, $role, \"video_listtype_$listingtype_id\", ($i <= $videoMax));\n }\n\n $roles = array('owner', 'owner_member', 'owner_member_member', 'owner_network', 'registered');\n foreach ($roles as $role) {\n if ($auth->isAllowed($recipe, $role, 'comment')) {\n $values['auth_comment'] = $role;\n }\n }\n $commentMax = array_search($values['auth_comment'], $roles);\n foreach ($roles as $i => $role) {\n $auth->setAllowed($sitereview, $role, 'comment', ($i <= $commentMax));\n $auth->setAllowed($sitereview, $role, \"comment_listtype_$listingtype_id\", ($i <= $commentMax));\n }\n //END FETCH PRIVACY\n\n $topicSelect = $topicTable->select()\n ->from($topicTableName)\n ->where('recipe_id = ?', $recipe_id);\n $topicSelectDatas = $topicTable->fetchAll($topicSelect);\n if (!empty($topicSelectDatas)) {\n $topicSelectDatass = $topicSelectDatas->toArray();\n\n foreach ($topicSelectDatass as $topicSelectData) {\n $reviewTopic = $reviewTopicTable->createRow();\n $reviewTopic->listing_id = $sitereview->listing_id;\n $reviewTopic->user_id = $topicSelectData['user_id'];\n $reviewTopic->title = $topicSelectData['title'];\n $reviewTopic->creation_date = $topicSelectData['creation_date'];\n $reviewTopic->modified_date = $topicSelectData['modified_date'];\n $reviewTopic->sticky = $topicSelectData['sticky'];\n $reviewTopic->closed = $topicSelectData['closed'];\n $reviewTopic->view_count = $topicSelectData['view_count'];\n $reviewTopic->lastpost_id = $topicSelectData['lastpost_id'];\n $reviewTopic->lastposter_id = $topicSelectData['lastposter_id'];\n $reviewTopic->save();\n\n $reviewTopic->creation_date = $topicSelectData['creation_date'];\n $reviewTopic->save();\n\n //GENERATE ACTIVITY FEED\n if ($activity_recipe) {\n $action = $activityTable->addActivity($reviewTopic->getOwner(), $reviewTopic, 'sitereview_topic_create_listtype_' . $listingtype_id);\n $action->date = $reviewTopic->creation_date;\n $action->save();\n if ($action) {\n $action->attach($reviewTopic);\n }\n }\n\n //START FETCH TOPIC POST'S\n $postSelect = $postTable->select()\n ->from($postTableName)\n ->where('topic_id = ?', $topicSelectData['topic_id'])\n ->where('recipe_id = ?', $recipe_id);\n $postSelectDatas = $postTable->fetchAll($postSelect);\n if (!empty($postSelectDatas)) {\n $postSelectDatass = $postSelectDatas->toArray();\n\n foreach ($postSelectDatass as $postSelectData) {\n $reviewPost = $reviewPostTable->createRow();\n $reviewPost->topic_id = $reviewTopic->topic_id;\n $reviewPost->listing_id = $sitereview->listing_id;\n $reviewPost->user_id = $postSelectData['user_id'];\n $reviewPost->body = $postSelectData['body'];\n $reviewPost->creation_date = $postSelectData['creation_date'];\n $reviewPost->modified_date = $postSelectData['modified_date'];\n $reviewPost->save();\n\n $reviewPost->creation_date = $postSelectData['creation_date'];\n $reviewPost->save();\n }\n }\n //END FETCH TOPIC POST'S\n\n $reviewTopic->post_count = $topicSelectData['post_count'];\n $reviewTopic->save();\n\n //START FETCH TOPIC WATCH\n $topicWatchData = $topicWatchesTable->fetchAll(array('resource_id = ?' => $recipe_id));\n foreach ($topicWatchData as $watchData) {\n if (!empty($watchData)) {\n $topicwatchSelect = $reviewTopicWatchesTable->select()\n ->from($reviewTopicWatchesTableName)\n ->where('resource_id = ?', $reviewTopic->listing_id)\n ->where('topic_id = ?', $reviewTopic->topic_id)\n ->where('user_id = ?', $watchData->user_id);\n $topicwatchSelectDatas = $reviewTopicWatchesTable->fetchRow($topicwatchSelect);\n\n if (empty($topicwatchSelectDatas)) {\n $reviewTopicWatchesTable->insert(array(\n 'resource_id' => $reviewTopic->listing_id,\n 'topic_id' => $reviewTopic->topic_id,\n 'user_id' => $watchData->user_id,\n 'watch' => $watchData->watch\n ));\n }\n }\n }\n //END FETCH TOPIC WATCH\n }\n }\n\n //START FETCH PHOTO DATA\n $selectRecipePhoto = $recipePhotoTable->select()\n ->from($recipePhotoTable->info('name'))\n ->where('recipe_id = ?', $recipe_id);\n $recipePhotoDatas = $recipePhotoTable->fetchAll($selectRecipePhoto);\n\n $sitereview = Engine_Api::_()->getItem('sitereview_listing', $sitereview->listing_id);\n\n if (!empty($recipePhotoDatas)) {\n\n $recipePhotoDatas = $recipePhotoDatas->toArray();\n\n if (empty($recipe->photo_id)) {\n foreach ($recipePhotoDatas as $recipePhotoData) {\n $recipe->photo_id = $recipePhotoData['photo_id'];\n break;\n }\n }\n\n if (!empty($recipe->photo_id)) {\n $recipePhotoData = $recipePhotoTable->fetchRow(array('file_id = ?' => $recipe->photo_id));\n if (!empty($recipePhotoData)) {\n $storageData = $storageTable->fetchRow(array('file_id = ?' => $recipePhotoData->file_id));\n\n if (!empty($storageData) && !empty($storageData->storage_path)) {\n\n $sitereview->setPhoto($storageData->storage_path);\n\n $album_id = $albumTable->update(array('photo_id' => $sitereview->photo_id), array('listing_id = ?' => $sitereview->listing_id));\n\n $reviewProfilePhoto = Engine_Api::_()->getDbTable('photos', 'sitereview')->fetchRow(array('file_id = ?' => $sitereview->photo_id));\n if (!empty($reviewProfilePhoto)) {\n $reviewProfilePhotoId = $reviewProfilePhoto->photo_id;\n } else {\n $reviewProfilePhotoId = $sitereview->photo_id;\n }\n\n //START FETCH LIKES\n $selectLike = $likeTable->select()\n ->from($likeTableName, 'like_id')\n ->where('resource_type = ?', 'recipe_photo')\n ->where('resource_id = ?', $recipe->photo_id);\n $selectLikeDatas = $likeTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $like = Engine_Api::_()->getItem('core_like', $selectLikeData->like_id);\n $newLikeEntry = $likeTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_photo';\n $newLikeEntry->resource_id = $reviewProfilePhotoId;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $like->poster_id;\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH LIKES\n //START FETCH COMMENTS\n $selectLike = $commentTable->select()\n ->from($commentTableName, 'comment_id')\n ->where('resource_type = ?', 'recipe_photo')\n ->where('resource_id = ?', $recipe->photo_id);\n $selectLikeDatas = $commentTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $comment = Engine_Api::_()->getItem('core_comment', $selectLikeData->comment_id);\n\n $newLikeEntry = $commentTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_photo';\n $newLikeEntry->resource_id = $reviewProfilePhotoId;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $comment->poster_id;\n $newLikeEntry->body = $comment->body;\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->like_count = $comment->like_count;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH COMMENTS\n //START FETCH TAGGER DETAIL\n $tagmapsTable = Engine_Api::_()->getDbtable('TagMaps', 'core');\n $tagmapsTableName = $tagmapsTable->info('name');\n $selectTagmaps = $tagmapsTable->select()\n ->from($tagmapsTableName, 'tagmap_id')\n ->where('resource_type = ?', 'recipe_photo')\n ->where('resource_id = ?', $recipe->photo_id);\n $selectTagmapsDatas = $tagmapsTable->fetchAll($selectTagmaps);\n foreach ($selectTagmapsDatas as $selectTagmapsData) {\n $tagMap = Engine_Api::_()->getItem('core_tag_map', $selectTagmapsData->tagmap_id);\n\n $newTagmapEntry = $tagmapsTable->createRow();\n $newTagmapEntry->resource_type = 'sitereview_photo';\n $newTagmapEntry->resource_id = $reviewProfilePhotoId;\n $newTagmapEntry->tagger_type = 'user';\n $newTagmapEntry->tagger_id = $tagMap->tagger_id;\n $newTagmapEntry->tag_type = 'user';\n $newTagmapEntry->tag_id = $tagMap->tag_id;\n $newTagmapEntry->creation_date = $tagMap->creation_date;\n $newTagmapEntry->extra = $tagMap->extra;\n $newTagmapEntry->save();\n\n $newTagmapEntry->creation_date = $tagMap->creation_date;\n $newTagmapEntry->save();\n }\n //END FETCH TAGGER DETAIL\n }\n }\n\n $fetchDefaultAlbum = $albumTable->fetchRow(array('listing_id = ?' => $sitereview->listing_id));\n if (!empty($fetchDefaultAlbum)) {\n\n $selectRecipePhoto = $recipePhotoTable->select()\n ->from($recipePhotoTable->info('name'))\n ->where('recipe_id = ?', $recipe_id);\n $recipePhotoDatas = $recipePhotoTable->fetchAll($selectRecipePhoto);\n\n $order = 999;\n foreach ($recipePhotoDatas as $recipePhotoData) {\n\n if ($recipePhotoData['file_id'] != $recipe->photo_id) {\n $params = array(\n 'collection_id' => $fetchDefaultAlbum->album_id,\n 'album_id' => $fetchDefaultAlbum->album_id,\n 'listing_id' => $sitereview->listing_id,\n 'user_id' => $recipePhotoData['user_id'],\n 'order' => $order,\n );\n\n $storageData = $storageTable->fetchRow(array('file_id = ?' => $recipePhotoData['file_id']));\n if (!empty($storageData) && !empty($storageData->storage_path)) {\n $file = array();\n $file['tmp_name'] = $storageData->storage_path;\n $path_array = explode('/', $file['tmp_name']);\n $file['name'] = end($path_array);\n\n $reviewPhoto = Engine_Api::_()->sitereview()->createPhoto($params, $file);\n if (!empty($reviewPhoto)) {\n\n $order++;\n\n //START FETCH LIKES\n $selectLike = $likeTable->select()\n ->from($likeTableName, 'like_id')\n ->where('resource_type = ?', 'recipe_photo')\n ->where('resource_id = ?', $recipePhotoData['photo_id']);\n $selectLikeDatas = $likeTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $like = Engine_Api::_()->getItem('core_like', $selectLikeData->like_id);\n\n $newLikeEntry = $likeTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_photo';\n $newLikeEntry->resource_id = $reviewPhoto->photo_id;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $like->poster_id;\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH LIKES\n //START FETCH COMMENTS\n $selectLike = $commentTable->select()\n ->from($commentTableName, 'comment_id')\n ->where('resource_type = ?', 'recipe_photo')\n ->where('resource_id = ?', $recipePhotoData['photo_id']);\n $selectLikeDatas = $commentTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $comment = Engine_Api::_()->getItem('core_comment', $selectLikeData->comment_id);\n\n $newLikeEntry = $commentTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_photo';\n $newLikeEntry->resource_id = $reviewPhoto->photo_id;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $comment->poster_id;\n $newLikeEntry->body = $comment->body;\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->like_count = $comment->like_count;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH COMMENTS\n //START FETCH TAGGER DETAIL\n $selectTagmaps = $tagmapsTable->select()\n ->from($tagmapsTableName, 'tagmap_id')\n ->where('resource_type = ?', 'recipe_photo')\n ->where('resource_id = ?', $recipePhotoData['photo_id']);\n $selectTagmapsDatas = $tagmapsTable->fetchAll($selectTagmaps);\n foreach ($selectTagmapsDatas as $selectTagmapsData) {\n $tagMap = Engine_Api::_()->getItem('core_tag_map', $selectTagmapsData->tagmap_id);\n\n $newTagmapEntry = $tagmapsTable->createRow();\n $newTagmapEntry->resource_type = 'sitereview_photo';\n $newTagmapEntry->resource_id = $reviewPhoto->photo_id;\n $newTagmapEntry->tagger_type = 'user';\n $newTagmapEntry->tagger_id = $tagMap->tagger_id;\n $newTagmapEntry->tag_type = 'user';\n $newTagmapEntry->tag_id = $tagMap->tag_id;\n $newTagmapEntry->creation_date = $tagMap->creation_date;\n $newTagmapEntry->extra = $tagMap->extra;\n $newTagmapEntry->save();\n\n $newTagmapEntry->creation_date = $tagMap->creation_date;\n $newTagmapEntry->save();\n }\n //END FETCH TAGGER DETAIL\n }\n }\n }\n }\n }\n }\n\n //GENERATE ACTIVITY FEED\n if ($activity_recipe) {\n\n $select = $reviewPhotoTable->select()->from($reviewPhotoTableName)->where('user_id = ?', $sitereview->owner_id)->where('listing_id = ?', $sitereview->listing_id);\n $reviewPhotos = $reviewPhotoTable->fetchAll($select);\n $count = count($reviewPhotos);\n if ($count > 1) {\n $action = $activityTable->addActivity($sitereview->getOwner(), $sitereview, 'sitereview_photo_upload_listtype_' . $listingtype_id, null, array('count' => $count, 'title' => $sitereview->title));\n $count = 0;\n foreach ($reviewPhotos as $reviewPhoto) {\n\n if ($action instanceof Activity_Model_Action && $count < 8) {\n $activityTable->attachActivity($action, $reviewPhoto, Activity_Model_Action::ATTACH_MULTI);\n }\n $count++;\n }\n $action->date = $reviewPhoto->creation_date;\n $action->save();\n }\n }\n }\n //END FETCH PHOTO DATA\n //START FETCH REVIEW DATA\n if ($listingtypeArray->reviews == 2 || $listingtypeArray->reviews == 3) {\n $recipereviewTableSelect = $recipereviewTable->select()\n ->from($recipereviewTableName, array('MAX(review_id) as review_id', 'owner_id', 'title', 'creation_date', 'modified_date', 'body'))\n ->where('recipe_id = ?', $recipe_id)\n ->group('owner_id')\n ->order('review_id ASC');\n $recipereviewSelectDatas = $recipereviewTable->fetchAll($recipereviewTableSelect);\n if (!empty($recipereviewSelectDatas)) {\n $recipereviewSelectDatas = $recipereviewSelectDatas->toArray();\n foreach ($recipereviewSelectDatas as $recipereviewSelectData) {\n $review = Engine_Api::_()->getItem('recipe_reviews', $recipereviewSelectData['review_id']);\n if (!$listingtypeArray->allow_owner_review && $review->owner_id == $recipe->owner_id) {\n continue;\n }\n $reviewReview = $reviewReviewTable->createRow();\n $reviewReview->resource_id = $sitereview->listing_id;\n $reviewReview->resource_type = $sitereview->getType();\n $reviewReview->owner_id = $review->owner_id;\n $reviewReview->title = $review->title;\n $reviewReview->body = $review->body;\n $reviewReview->view_count = 1;\n if (Engine_Api::_()->getApi('settings', 'core')->getSetting('sitereview.recommend', 1)) {\n $reviewReview->recommend = 1;\n } else {\n $reviewReview->recommend = 0;\n }\n $reviewReview->creation_date = $review->creation_date;\n $reviewReview->modified_date = $review->modified_date;\n $reviewReview->type = 'user';\n $reviewReview->save();\n\n $reviewReview->creation_date = $review->creation_date;\n $reviewReview->save();\n\n //GENERATE ACTIVITY FEED\n if ($activity_recipe) {\n $action = $activityTable->addActivity($reviewReview->getOwner(), $sitereview, 'sitereview_review_add_listtype_' . $listingtype_id);\n $action->date = $reviewReview->creation_date;\n $action->save();\n if ($action != null) {\n $activityTable->attachActivity($action, $reviewReview);\n }\n }\n\n //FATCH REVIEW CATEGORIES\n $categoryIdsArray = array();\n $categoryIdsArray[] = $sitereview->category_id;\n $categoryIdsArray[] = $sitereview->subcategory_id;\n $categoryIdsArray[] = $sitereview->subsubcategory_id;\n $reviewReview->profile_type_review = $reviewCategoryTable->getProfileType($categoryIdsArray, 0, 'profile_type_review');\n $reviewReview->save();\n\n $reviewRating = $reviewRatingTable->createRow();\n $reviewRating->review_id = $reviewReview->review_id;\n $reviewRating->category_id = $sitereview->category_id;\n $reviewRating->resource_id = $sitereview->listing_id;\n $reviewRating->resource_type = $sitereview->getType();\n $reviewRating->user_id = $review->owner_id;\n $reviewRating->type = 'user';\n $reviewRating->ratingparam_id = 0;\n $reviewRating->rating = round($recipe->rating, 4);\n $reviewRating->save();\n }\n }\n }\n //END FETCH REVIEW DATA\n //START FETCH VIDEO DATA\n if (Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('video')) {\n\n $selectRecipeVideos = $recipeVideoTable->select()\n ->from($recipeVideoTableName, 'video_id')\n ->where('recipe_id = ?', $recipe_id)\n ->group('video_id');\n $recipeVideoDatas = $recipeVideoTable->fetchAll($selectRecipeVideos);\n foreach ($recipeVideoDatas as $recipeVideoData) {\n $recipeVideo = Engine_Api::_()->getItem('video', $recipeVideoData->video_id);\n if (!empty($recipeVideo)) {\n $db = $reviewVideoTable->getAdapter();\n $db->beginTransaction();\n\n try {\n $reviewVideo = $reviewVideoTable->createRow();\n $reviewVideo->listing_id = $sitereview->listing_id;\n $reviewVideo->title = $recipeVideo->title;\n $reviewVideo->description = $recipeVideo->description;\n $reviewVideo->search = $recipeVideo->search;\n $reviewVideo->owner_id = $recipeVideo->owner_id;\n $reviewVideo->creation_date = $recipeVideo->creation_date;\n $reviewVideo->modified_date = $recipeVideo->modified_date;\n\n $reviewVideo->view_count = 1;\n if ($recipeVideo->view_count > 0) {\n $reviewVideo->view_count = $recipeVideo->view_count;\n }\n\n $reviewVideo->comment_count = $recipeVideo->comment_count;\n $reviewVideo->type = $recipeVideo->type;\n $reviewVideo->code = $recipeVideo->code;\n $reviewVideo->rating = $recipeVideo->rating;\n $reviewVideo->status = $recipeVideo->status;\n $reviewVideo->file_id = 0;\n $reviewVideo->duration = $recipeVideo->duration;\n $reviewVideo->save();\n\n $reviewVideo->creation_date = $recipeVideo->creation_date;\n $reviewVideo->save();\n\n //GENERATE ACTIVITY FEED\n if ($activity_recipe && $reviewVideo->search) {\n //START VIDEO UPLOAD ACTIVITY FEED\n\n $action = $activityTable->addActivity($reviewVideo->getOwner(), $sitereview, 'sitereview_video_new_listtype_' . $listingtype_id);\n $action->date = $reviewVideo->creation_date;\n $action->save();\n if ($action != null) {\n $activityTable->attachActivity($action, $reviewVideo);\n }\n\n foreach ($activityTable->getActionsByObject($reviewVideo) as $action) {\n $activityTable->resetActivityBindings($action);\n }\n }\n\n $db->commit();\n } catch (Exception $e) {\n $db->rollBack();\n throw $e;\n }\n\n //START VIDEO THUMB WORK\n if (!empty($reviewVideo->code) && !empty($reviewVideo->type) && !empty($recipeVideo->photo_id)) {\n $storageData = $storageTable->fetchRow(array('file_id = ?' => $recipeVideo->photo_id));\n if (!empty($storageData) && !empty($storageData->storage_path)) {\n $thumbnail = $storageData->storage_path;\n\n $ext = ltrim(strrchr($thumbnail, '.'), '.');\n $thumbnail_parsed = @parse_url($thumbnail);\n\n if (@GetImageSize($thumbnail)) {\n $valid_thumb = true;\n } else {\n $valid_thumb = false;\n }\n\n if ($valid_thumb && $thumbnail && $ext && $thumbnail_parsed && in_array($ext, array('jpg', 'jpeg', 'gif', 'png'))) {\n $tmp_file = APPLICATION_PATH . '/temporary/link_' . md5($thumbnail) . '.' . $ext;\n $thumb_file = APPLICATION_PATH . '/temporary/link_thumb_' . md5($thumbnail) . '.' . $ext;\n $src_fh = fopen($thumbnail, 'r');\n $tmp_fh = fopen($tmp_file, 'w');\n stream_copy_to_stream($src_fh, $tmp_fh, 1024 * 1024 * 2);\n $image = Engine_Image::factory();\n $image->open($tmp_file)\n ->resize(120, 240)\n ->write($thumb_file)\n ->destroy();\n\n try {\n $thumbFileRow = Engine_Api::_()->storage()->create($thumb_file, array(\n 'parent_type' => 'sitereview_video',\n 'parent_id' => $reviewVideo->video_id\n ));\n\n //REMOVE TEMP FILE\n @unlink($thumb_file);\n @unlink($tmp_file);\n } catch (Exception $e) {\n \n }\n\n $reviewVideo->photo_id = $thumbFileRow->file_id;\n $reviewVideo->save();\n }\n }\n }\n //END VIDEO THUMB WORK\n //START FETCH TAG\n $videoTags = $recipeVideo->tags()->getTagMaps();\n $tagString = '';\n\n foreach ($videoTags as $tagmap) {\n\n if ($tagString != '')\n $tagString .= ', ';\n $tagString .= $tagmap->getTag()->getTitle();\n\n $owner = Engine_Api::_()->getItem('user', $recipeVideo->owner_id);\n $tags = preg_split('/[,]+/', $tagString);\n $tags = array_filter(array_map(\"trim\", $tags));\n $reviewVideo->tags()->setTagMaps($owner, $tags);\n }\n //END FETCH TAG\n //START FETCH LIKES\n $selectLike = $likeTable->select()\n ->from($likeTableName, 'like_id')\n ->where('resource_type = ?', 'video')\n ->where('resource_id = ?', $recipeVideoData->video_id);\n $selectLikeDatas = $likeTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $like = Engine_Api::_()->getItem('core_like', $selectLikeData->like_id);\n\n $newLikeEntry = $likeTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_video';\n $newLikeEntry->resource_id = $reviewVideo->video_id;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $like->poster_id;\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH LIKES\n //START FETCH COMMENTS\n $selectLike = $commentTable->select()\n ->from($commentTableName, 'comment_id')\n ->where('resource_type = ?', 'video')\n ->where('resource_id = ?', $recipeVideoData->video_id);\n $selectLikeDatas = $commentTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $comment = Engine_Api::_()->getItem('core_comment', $selectLikeData->comment_id);\n\n $newLikeEntry = $commentTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_video';\n $newLikeEntry->resource_id = $reviewVideo->video_id;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $comment->poster_id;\n $newLikeEntry->body = $comment->body;\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->like_count = $comment->like_count;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH COMMENTS\n //START UPDATE TOTAL LIKES IN REVIEW-VIDEO TABLE\n $selectLikeCount = $likeTable->select()\n ->from($likeTableName, array('COUNT(*) AS like_count'))\n ->where('resource_type = ?', 'sitereview_video')\n ->where('resource_id = ?', $reviewVideo->video_id);\n $selectLikeCounts = $likeTable->fetchAll($selectLikeCount);\n if (!empty($selectLikeCounts)) {\n $selectLikeCounts = $selectLikeCounts->toArray();\n $reviewVideo->like_count = $selectLikeCounts[0]['like_count'];\n $reviewVideo->save();\n }\n //END UPDATE TOTAL LIKES IN REVIEW-VIDEO TABLE\n\n if (Engine_Api::_()->getApi('settings', 'core')->getSetting('sitereview.show.video', 1)) {\n\n $selectClasfVideo = $clasfVideoTable->select()\n ->from($clasfVideoTableName, array('video_id'))\n ->where('video_id =?', $reviewVideo->video_id);\n $resultsClasfVideo = $clasfVideoTable->fetchRow($selectClasfVideo);\n\n if (empty($resultsClasfVideo)) {\n $reviewVideo->is_import = 1;\n $reviewVideo->save();\n $clasfVideoTableCreateRow = $clasfVideoTable->createRow();\n $clasfVideoTableCreateRow->listing_id = $reviewVideo->listing_id;\n $clasfVideoTableCreateRow->video_id = $reviewVideo->video_id;\n $clasfVideoTableCreateRow->created = $reviewVideo->creation_date;\n $clasfVideoTableCreateRow->is_import = $reviewVideo->is_import;\n $clasfVideoTableCreateRow->save();\n }\n }\n\n //START FETCH RATTING DATA\n $selectVideoRating = $recipeVideoRating->select()\n ->from($recipeVideoRatingName)\n ->where('video_id = ?', $recipeVideoData->video_id);\n\n $recipeVideoRatingDatas = $recipeVideoRating->fetchAll($selectVideoRating);\n if (!empty($recipeVideoRatingDatas)) {\n $recipeVideoRatingDatas = $recipeVideoRatingDatas->toArray();\n }\n\n foreach ($recipeVideoRatingDatas as $recipeVideoRatingData) {\n\n $reviewVideoRating->insert(array(\n 'videorating_id' => $reviewVideo->video_id,\n 'user_id' => $recipeVideoRatingData['user_id'],\n 'rating' => $recipeVideoRatingData['rating']\n ));\n }\n //END FETCH RATTING DATA\n }\n }\n }\n //END FETCH VIDEO DATA\n }\n\n $this->view->recipe_assigned_previous_id = $recipe_id;\n\n //CREATE LOG ENTRY IN LOG FILE\n if (file_exists(APPLICATION_PATH . '/temporary/log/RecipeToReviewImport.log')) {\n $myFile = APPLICATION_PATH . '/temporary/log/RecipeToReviewImport.log';\n $error = Zend_Registry::get('Zend_Translate')->_(\"can't open file\");\n $fh = fopen($myFile, 'a') or die($error);\n $current_time = date('D, d M Y H:i:s T');\n $review_title = $sitereview->title;\n $stringData = $this->view->translate('Recipe with ID ') . $recipe_id . $this->view->translate(' is successfully imported into a Review Listing with ID ') . $sitereview->listing_id . $this->view->translate(' at ') . $current_time . $this->view->translate(\". Title of that Review Listing is '\") . $review_title . \"'.\\n\\n\";\n fwrite($fh, $stringData);\n fclose($fh);\n }\n\n if ($next_import_count >= 100) {\n $this->_redirect(\"admin/sitereview/importlisting/index?start_import=1&listingtype_id=$listingtype_id&module=recipe&activity_recipe=$activity_recipe\");\n }\n }\n }\n }\n\n\n //START CODE FOR CREATING THE BlogToReviewImport.log FILE\n if (!file_exists(APPLICATION_PATH . '/temporary/log/BlogToReviewImport.log')) {\n $log = new Zend_Log();\n try {\n $log->addWriter(new Zend_Log_Writer_Stream(APPLICATION_PATH . '/temporary/log/BlogToReviewImport.log'));\n } catch (Exception $e) {\n //CHECK DIRECTORY\n if (!@is_dir(APPLICATION_PATH . '/temporary/log') && @mkdir(APPLICATION_PATH . '/temporary/log', 0777, true)) {\n $log->addWriter(new Zend_Log_Writer_Stream(APPLICATION_PATH . '/temporary/log/BlogToReviewImport.log'));\n } else {\n //Silence ...\n if (APPLICATION_ENV !== 'production') {\n $log->log($e->__toString(), Zend_Log::CRIT);\n } else {\n //MAKE SURE LOGGING DOESN'T CAUSE EXCEPTIONS\n $log->addWriter(new Zend_Log_Writer_Null());\n }\n }\n }\n }\n\n //GIVE WRITE PERMISSION IF FILE EXIST\n if (file_exists(APPLICATION_PATH . '/temporary/log/BlogToReviewImport.log')) {\n @chmod(APPLICATION_PATH . '/temporary/log/BlogToReviewImport.log', 0777);\n }\n //END CODE FOR CREATING THE BlogToReviewImport.log FILE\n //START IMPORTING WORK IF BLOG AND SITEREVIEW IS INSTALLED AND ACTIVATE\n if ($blogEnabled) {\n\n //GET BLOG TABLES \n $blogTable = Engine_Api::_()->getDbTable('blogs', 'blog');\n $blogTableName = $blogTable->info('name');\n\n $blogCategoryTable = Engine_Api::_()->getDbtable('categories', 'blog');\n $blogCategoryTableName = $blogCategoryTable->info('name');\n\n $blogSubscriptionTable = Engine_Api::_()->getDbtable('subscriptions', 'blog');\n $blogSubscriptionTableName = $blogSubscriptionTable->info('name');\n\n //GET SITEREVIEW TABLES\n $reviewSubscriptionTable = Engine_Api::_()->getDbtable('subscriptions', 'sitereview');\n $reviewSubscriptionTableName = $reviewSubscriptionTable->info('name');\n\n //GET STYLE TABLES\n $stylesTable = Engine_Api::_()->getDbtable('styles', 'core');\n $stylesTableName = $stylesTable->info('name');\n\n //ADD NEW COLUMN IN LISTING TABLE\n $db = Engine_Db_Table::getDefaultAdapter();\n $is_review_import = $db->query(\"SHOW COLUMNS FROM engine4_blog_blogs LIKE 'is_review_import'\")->fetch();\n if (empty($is_review_import)) {\n $run_query = $db->query(\"ALTER TABLE `engine4_blog_blogs` ADD is_review_import TINYINT( 2 ) NOT NULL DEFAULT '0'\");\n }\n\n //START IF IMPORTING IS BREAKED BY SOME REASON\n $selectBlogs = $blogTable->select()\n ->from($blogTableName, 'blog_id')\n ->where('is_review_import != ?', 1)\n //->where('category_id != ?', 0)\n ->order('blog_id ASC');\n $blogDatas = $blogTable->fetchAll($selectBlogs);\n\n $this->view->first_blog_id = $first_blog_id = 0;\n $this->view->last_blog_id = $last_blog_id = 0;\n\n if (!empty($blogDatas)) {\n\n $flag_first_blog_id = 1;\n\n foreach ($blogDatas as $blogData) {\n\n if ($flag_first_blog_id == 1) {\n $this->view->first_blog_id = $first_blog_id = $blogData->blog_id;\n }\n $flag_first_blog_id++;\n\n $this->view->last_blog_id = $last_blog_id = $blogData->blog_id;\n }\n\n if (isset($_GET['blog_assigned_previous_id'])) {\n $this->view->blog_assigned_previous_id = $blog_assigned_previous_id = $_GET['blog_assigned_previous_id'];\n } else {\n $this->view->blog_assigned_previous_id = $blog_assigned_previous_id = $first_blog_id;\n }\n }\n\n //START IMPORTING IF REQUESTED\n if (isset($_GET['start_import']) && $_GET['start_import'] == 1 && $_GET['module'] == 'blog') {\n\n //ACTIVITY FEED IMPORT\n $activity_blog = $this->_getParam('activity_blog');\n\n //START FETCH CATEGORY WORK\n $selectReviewCategory = $reviewCategoryTable->select()\n ->from($reviewCategoryTableName, 'category_name')\n ->where('category_name != ?', '')\n ->where('listingtype_id = ?', $listingtype_id)\n ->where('cat_dependency = ?', 0);\n $reviewCategoryDatas = $reviewCategoryTable->fetchAll($selectReviewCategory);\n if (!empty($reviewCategoryDatas)) {\n $reviewCategoryDatas = $reviewCategoryDatas->toArray();\n }\n\n $reviewCategoryInArrayData = array();\n foreach ($reviewCategoryDatas as $reviewCategoryData) {\n $reviewCategoryInArrayData[] = $reviewCategoryData['category_name'];\n }\n\n $selectBlogCategory = $blogCategoryTable->select()\n ->where('category_name != ?', '')\n ->from($blogCategoryTableName);\n $blogCategoryDatas = $blogCategoryTable->fetchAll($selectBlogCategory);\n if (!empty($blogCategoryDatas)) {\n $blogCategoryDatas = $blogCategoryDatas->toArray();\n foreach ($blogCategoryDatas as $blogCategoryData) {\n if (!in_array($blogCategoryData['category_name'], $reviewCategoryInArrayData)) {\n $newCategory = $reviewCategoryTable->createRow();\n $newCategory->listingtype_id = $listingtype_id;\n $newCategory->category_name = $blogCategoryData['category_name'];\n $newCategory->cat_dependency = 0;\n $newCategory->cat_order = 9999;\n $newCategory->save();\n $newCategory->afterCreate();\n }\n }\n }\n\n //START BLOG IMPORTING\n $selectBlogs = $blogTable->select()\n ->where('blog_id >= ?', $blog_assigned_previous_id)\n ->from($blogTableName, 'blog_id')\n ->where('is_review_import != ?', 1)\n ->where('category_id != ?', 0)\n ->order('blog_id ASC');\n $blogDatas = $blogTable->fetchAll($selectBlogs);\n\n $next_import_count = 0;\n\n foreach ($blogDatas as $blogData) {\n $blog_id = $blogData->blog_id;\n\n if (!empty($blog_id)) {\n\n $blog = Engine_Api::_()->getItem('blog', $blog_id);\n\n $sitereview = $reviewTable->createRow();\n $sitereview->title = $blog->title;\n\n $sitereview->owner_id = $blog->owner_id;\n $sitereview->listingtype_id = $listingtype_id;\n\n //START FETCH LIST CATEGORY AND SUB-CATEGORY\n if (!empty($blog->category_id)) {\n $blogCategory = $blogCategoryTable->fetchRow(array('category_id = ?' => $blog->category_id));\n if (!empty($blogCategory)) {\n $blogCategoryName = $blogCategory->category_name;\n\n if (!empty($blogCategoryName)) {\n $reviewCategory = $reviewCategoryTable->fetchRow(array('category_name = ?' => $blogCategoryName, 'cat_dependency = ?' => 0, 'listingtype_id =?' => $listingtype_id));\n if (!empty($reviewCategory)) {\n $reviewCategoryId = $sitereview->category_id = $reviewCategory->category_id;\n }\n }\n }\n } else {\n continue;\n }\n //END FETCH LIST CATEGORY AND SUB-CATEGORY\n //START GET DATA FROM LISTING\n $sitereview->creation_date = $blog->creation_date;\n $sitereview->modified_date = $blog->modified_date;\n $sitereview->approved = 1;\n $sitereview->featured = 0;\n $sitereview->sponsored = 0;\n\n $sitereview->view_count = 1;\n if ($blog->view_count > 0) {\n $sitereview->view_count = $blog->view_count;\n }\n\n $sitereview->comment_count = $blog->comment_count;\n $sitereview->save();\n\n $sitereview->creation_date = $blog->creation_date;\n $sitereview->save();\n\n //FATCH REVIEW CATEGORIES\n $categoryIdsArray = array();\n $categoryIdsArray[] = $sitereview->category_id;\n $categoryIdsArray[] = $sitereview->subcategory_id;\n $categoryIdsArray[] = $sitereview->subsubcategory_id;\n $sitereview->profile_type = $reviewCategoryTable->getProfileType($categoryIdsArray, 0, 'profile_type');\n $sitereview->search = $blog->search;\n $sitereview->draft = $blog->draft;\n $sitereview->save();\n\n $blog->is_review_import = 1;\n $blog->save();\n $next_import_count++;\n //END GET DATA FROM LISTING\n\n $overview = '';\n $row = $otherinfoTable->getOtherinfo($sitereview->getIdentity());\n\n if ($listingtypeArray->overview)\n $overview = $blog->body;\n\n if (empty($row)) {\n Engine_Api::_()->getDbTable('otherinfo', 'sitereview')->insert(array(\n 'listing_id' => $sitereview->getIdentity(),\n 'overview' => $overview\n ));\n }\n\n //GENERATE ACITIVITY FEED\n if ($sitereview->draft == 0 && $activity_blog && $sitereview->search) {\n $action = $activityTable->addActivity($sitereview->getOwner(), $sitereview, 'sitereview_new_listtype_' . $listingtype_id);\n $action->date = $sitereview->creation_date;\n $action->save();\n if ($action != null) {\n $activityTable->attachActivity($action, $sitereview);\n }\n }\n\n //START FETCH TAG\n $blogTags = $blog->tags()->getTagMaps();\n $tagString = '';\n\n foreach ($blogTags as $tagmap) {\n\n if ($tagString != '')\n $tagString .= ', ';\n $tagString .= $tagmap->getTag()->getTitle();\n\n $tags = array_filter(array_map(\"trim\", preg_split('/[,]+/', $tagString)));\n $sitereview->tags()->setTagMaps(Engine_Api::_()->getItem('user', $blog->owner_id), $tags);\n }\n //END FETCH TAG\n //START FETCH LIKES\n $selectSubscribedBlog = $blogSubscriptionTable->select()\n ->from($blogSubscriptionTableName, array('*'));\n $selectSubscribedBlogDatas = $blogSubscriptionTable->fetchAll($selectSubscribedBlog);\n\n foreach ($selectSubscribedBlogDatas as $value) {\n $checkReviewSubscribed = $reviewSubscriptionTable->checkSubscription(Engine_Api::_()->getItem('user', $value->user_id), Engine_Api::_()->getItem('user', $value->subscriber_user_id), $listingtype_id);\n if (!$checkReviewSubscribed) {\n if ($listingtypeArray->subscription) {\n // Create\n $reviewSubscriptionTable->insert(array(\n 'user_id' => $value->user_id,\n 'subscriber_user_id' => $value->subscriber_user_id,\n 'listingtype_id' => $listingtype_id\n ));\n }\n }\n }\n\n //START FETCH LIKES\n $selectLike = $likeTable->select()\n ->from($likeTableName, 'like_id')\n ->where('resource_type = ?', 'blog')\n ->where('resource_id = ?', $blog_id);\n $selectLikeDatas = $likeTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $like = Engine_Api::_()->getItem('core_like', $selectLikeData->like_id);\n\n $newLikeEntry = $likeTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_listing';\n $newLikeEntry->resource_id = $sitereview->listing_id;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $like->poster_id;\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $like->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH LIKES\n //START FETCH COMMENTS\n $selectLike = $commentTable->select()\n ->from($commentTableName, 'comment_id')\n ->where('resource_type = ?', 'blog')\n ->where('resource_id = ?', $blog_id);\n $selectLikeDatas = $commentTable->fetchAll($selectLike);\n foreach ($selectLikeDatas as $selectLikeData) {\n $comment = Engine_Api::_()->getItem('core_comment', $selectLikeData->comment_id);\n\n $newLikeEntry = $commentTable->createRow();\n $newLikeEntry->resource_type = 'sitereview_listing';\n $newLikeEntry->resource_id = $sitereview->listing_id;\n $newLikeEntry->poster_type = 'user';\n $newLikeEntry->poster_id = $comment->poster_id;\n $newLikeEntry->body = $comment->body;\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->like_count = $comment->like_count;\n $newLikeEntry->save();\n\n $newLikeEntry->creation_date = $comment->creation_date;\n $newLikeEntry->save();\n }\n //END FETCH COMMENTS\n //START STYLES\n $selectStyles = $stylesTable->select()\n ->from($stylesTableName, 'style')\n ->where('type = ?', 'user_blog')\n ->where('id = ?', $blog->owner_id);\n $selectStyleDatas = $stylesTable->fetchRow($selectStyles);\n if (!empty($selectStyleDatas)) {\n\n $selectReviewStyles = $stylesTable->select()\n ->from($stylesTableName, 'style')\n ->where('type = ?', 'sitereview_listing')\n ->where('id = ?', $sitereview->listing_id);\n $selectReviewStyleDatas = $stylesTable->fetchRow($selectReviewStyles);\n if (empty($selectReviewStyleDatas)) {\n //CREATE\n $stylesTable->insert(array(\n 'type' => 'sitereview_listing',\n 'id' => $sitereview->listing_id,\n 'style' => $selectStyleDatas->style\n ));\n }\n }\n //END STYLES\n //START UPDATE TOTAL LIKES IN REVIEW TABLE\n $selectLikeCount = $likeTable->select()\n ->from($likeTableName, array('COUNT(*) AS like_count'))\n ->where('resource_type = ?', 'blog')\n ->where('resource_id = ?', $blog->blog_id);\n $selectLikeCounts = $likeTable->fetchAll($selectLikeCount);\n if (!empty($selectLikeCounts)) {\n $selectLikeCounts = $selectLikeCounts->toArray();\n $sitereview->like_count = $selectLikeCounts[0]['like_count'];\n $sitereview->save();\n }\n //END UPDATE TOTAL LIKES IN REVIEW TABLE\n //START FETCH PRIVACY\n $auth = Engine_Api::_()->authorization()->context;\n $roles = array('owner', 'owner_member', 'owner_member_member', 'owner_network', 'registered', 'everyone');\n\n foreach ($roles as $role) {\n if ($auth->isAllowed($blog, $role, 'view')) {\n $values['auth_view'] = $role;\n }\n }\n\n $viewMax = array_search($values['auth_view'], $roles);\n\n foreach ($roles as $i => $role) {\n $auth->setAllowed($sitereview, $role, 'view', ($i <= $viewMax));\n $auth->setAllowed($sitereview, $role, \"view_listtype_$listingtype_id\", ($i <= $viewMax));\n }\n\n $roles = array('owner', 'owner_member', 'owner_member_member', 'owner_network', 'registered');\n foreach ($roles as $role) {\n if ($auth->isAllowed($blog, $role, 'comment')) {\n $values['auth_comment'] = $role;\n }\n }\n $commentMax = array_search($values['auth_comment'], $roles);\n foreach ($roles as $i => $role) {\n $auth->setAllowed($sitereview, $role, 'comment', ($i <= $commentMax));\n $auth->setAllowed($sitereview, $role, \"comment_listtype_$listingtype_id\", ($i <= $commentMax));\n }\n\n $roles = array('owner', 'owner_member', 'owner_member_member', 'owner_network', 'registered');\n foreach ($roles as $role) {\n $values['auth_photo'] = $role;\n }\n $photoMax = array_search($values['auth_photo'], $roles);\n\n foreach ($roles as $role) {\n $values['auth_video'] = $role;\n }\n $videoMax = array_search($values['auth_video'], $roles);\n\n foreach ($roles as $i => $role) {\n $auth->setAllowed($sitereview, $role, \"photo_listtype_$listingtype_id\", ($i <= $photoMax));\n $auth->setAllowed($sitereview, $role, \"video_listtype_$listingtype_id\", ($i <= $videoMax));\n }\n //END FETCH PRIVACY\n }\n\n $this->view->blog_assigned_previous_id = $blog_id;\n\n //CREATE LOG ENTRY IN LOG FILE\n if (file_exists(APPLICATION_PATH . '/temporary/log/BlogToReviewImport.log')) {\n $myFile = APPLICATION_PATH . '/temporary/log/BlogToReviewImport.log';\n $error = Zend_Registry::get('Zend_Translate')->_(\"can't open file\");\n $fh = fopen($myFile, 'a') or /* die */($error);\n $current_time = date('D, d M Y H:i:s T');\n $review_title = $sitereview->title;\n $stringData = $this->view->translate('Blog with ID ') . $blog_id . $this->view->translate(' is successfully imported into a Review Listing with ID ') . $sitereview->listing_id . $this->view->translate(' at ') . $current_time . $this->view->translate(\". Title of that Listing is '\") . $review_title . \"'.\\n\\n\";\n fwrite($fh, $stringData);\n fclose($fh);\n }\n\n if ($next_import_count >= 100) {\n $this->_redirect(\"admin/sitereview/importlisting/index?start_import=1&listingtype_id=$listingtype_id&module=blog&activity_blog=$activity_blog\");\n }\n }\n }\n }\n }", "title": "" }, { "docid": "8323470ff4ae14ff532a5a07939b2412", "score": "0.57628524", "text": "public function admin_manage_reports(){\n\t Controller::loadModel('Report');\n\t\t$cond = array();\n\t $this->paginate = array(\n\t \t 'conditions'=>$cond,\n\t \t 'limit'=>PAGINATION, \n\t \t 'order'=>array('Report.id'=>'DESC'),\n\t \t 'contain'=>array(\n 'Station'=>array('fields'=>array('id','name'))\n\t \t )\n\t \t );\n\n\t\t$this->set('agencyListing', $this->paginate('Report'));\n\t}", "title": "" }, { "docid": "8d375cd44c18d275528fe8d4cdebf7a9", "score": "0.5760697", "text": "function RenderListRow() {\r\n\t\tglobal $conn, $Security;\r\n\r\n\t\t// Call Row Rendering event\r\n\t\t$this->Row_Rendering();\r\n\r\n // Common render codes\r\n\t\t// numero\r\n\t\t// radicado\r\n\t\t// clase_documento\r\n\t\t// identificacion\r\n\t\t// nombre_rem\r\n\t\t// apellidos_rem\r\n\t\t// telefono\r\n\t\t// direccion\r\n\t\t// correo_electronico\r\n\t\t// pais\r\n\t\t// departamento\r\n\t\t// cuidad\r\n\t\t// asunto\r\n\t\t// descripcion\r\n\t\t// adjuntar\r\n\t\t// destino\r\n\t\t// Sección\r\n\t\t// subseccion\r\n\t\t// Fecha De Ingreso\r\n\t\t// hora\r\n\t\t// Fecha Documento\r\n\t\t// Tiempo Documento\r\n\t\t// numero\r\n\r\n\t\t$this->numero->ViewValue = $this->numero->CurrentValue;\r\n\t\t$this->numero->ViewCustomAttributes = \"\";\r\n\r\n\t\t// radicado\r\n\t\t$this->radicado->ViewValue = $this->radicado->CurrentValue;\r\n\t\t$this->radicado->ViewCustomAttributes = \"\";\r\n\r\n\t\t// clase_documento\r\n\t\tif (strval($this->clase_documento->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`nombre`\" . ew_SearchString(\"=\", $this->clase_documento->CurrentValue, EW_DATATYPE_STRING);\r\n\t\t$sSqlWrk = \"SELECT `nombre`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `clasedocumento`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t}\r\n\r\n\t\t// Call Lookup selecting\r\n\t\t$this->Lookup_Selecting($this->clase_documento, $sWhereWrk);\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$this->clase_documento->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->clase_documento->ViewValue = $this->clase_documento->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->clase_documento->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->clase_documento->ViewCustomAttributes = \"\";\r\n\r\n\t\t// identificacion\r\n\t\t$this->identificacion->ViewValue = $this->identificacion->CurrentValue;\r\n\t\t$this->identificacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// nombre_rem\r\n\t\t$this->nombre_rem->ViewValue = $this->nombre_rem->CurrentValue;\r\n\t\t$this->nombre_rem->ViewCustomAttributes = \"\";\r\n\r\n\t\t// apellidos_rem\r\n\t\t$this->apellidos_rem->ViewValue = $this->apellidos_rem->CurrentValue;\r\n\t\t$this->apellidos_rem->ViewCustomAttributes = \"\";\r\n\r\n\t\t// telefono\r\n\t\t$this->telefono->ViewValue = $this->telefono->CurrentValue;\r\n\t\t$this->telefono->ViewCustomAttributes = \"\";\r\n\r\n\t\t// direccion\r\n\t\t$this->direccion->ViewValue = $this->direccion->CurrentValue;\r\n\t\t$this->direccion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// correo_electronico\r\n\t\t$this->correo_electronico->ViewValue = $this->correo_electronico->CurrentValue;\r\n\t\t$this->correo_electronico->ViewCustomAttributes = \"\";\r\n\r\n\t\t// pais\r\n\t\tif (strval($this->pais->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Code`\" . ew_SearchString(\"=\", $this->pais->CurrentValue, EW_DATATYPE_STRING);\r\n\t\t$sSqlWrk = \"SELECT `Code`, `Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `country`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t}\r\n\r\n\t\t// Call Lookup selecting\r\n\t\t$this->Lookup_Selecting($this->pais, $sWhereWrk);\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t$sSqlWrk .= \" ORDER BY `Name`\";\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$this->pais->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->pais->ViewValue = $this->pais->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->pais->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->pais->ViewCustomAttributes = \"\";\r\n\r\n\t\t// departamento\r\n\t\tif (strval($this->departamento->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Name`\" . ew_SearchString(\"=\", $this->departamento->CurrentValue, EW_DATATYPE_STRING);\r\n\t\t$sSqlWrk = \"SELECT `Name`, `Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `province`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t}\r\n\r\n\t\t// Call Lookup selecting\r\n\t\t$this->Lookup_Selecting($this->departamento, $sWhereWrk);\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t$sSqlWrk .= \" ORDER BY `Name`\";\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$this->departamento->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->departamento->ViewValue = $this->departamento->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->departamento->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->departamento->ViewCustomAttributes = \"\";\r\n\r\n\t\t// cuidad\r\n\t\tif (strval($this->cuidad->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Name`\" . ew_SearchString(\"=\", $this->cuidad->CurrentValue, EW_DATATYPE_STRING);\r\n\t\t$sSqlWrk = \"SELECT `Name`, `Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `city`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t}\r\n\r\n\t\t// Call Lookup selecting\r\n\t\t$this->Lookup_Selecting($this->cuidad, $sWhereWrk);\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t$sSqlWrk .= \" ORDER BY `Name`\";\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$this->cuidad->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->cuidad->ViewValue = $this->cuidad->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->cuidad->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->cuidad->ViewCustomAttributes = \"\";\r\n\r\n\t\t// asunto\r\n\t\t$this->asunto->ViewValue = $this->asunto->CurrentValue;\r\n\t\t$this->asunto->ViewCustomAttributes = \"\";\r\n\r\n\t\t// descripcion\r\n\t\t$this->descripcion->ViewValue = $this->descripcion->CurrentValue;\r\n\t\t$this->descripcion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// adjuntar\r\n\t\tif (!ew_Empty($this->adjuntar->Upload->DbValue)) {\r\n\t\t\t$this->adjuntar->ViewValue = $this->adjuntar->Upload->DbValue;\r\n\t\t} else {\r\n\t\t\t$this->adjuntar->ViewValue = \"\";\r\n\t\t}\r\n\t\t$this->adjuntar->ViewCustomAttributes = \"\";\r\n\r\n\t\t// destino\r\n\t\tif (strval($this->destino->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`nombre_sede`\" . ew_SearchString(\"=\", $this->destino->CurrentValue, EW_DATATYPE_STRING);\r\n\t\t$sSqlWrk = \"SELECT `nombre_sede`, `nombre_sede` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `sede`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t}\r\n\r\n\t\t// Call Lookup selecting\r\n\t\t$this->Lookup_Selecting($this->destino, $sWhereWrk);\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t$sSqlWrk .= \" ORDER BY `nombre_sede`\";\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$this->destino->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->destino->ViewValue = $this->destino->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->destino->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->destino->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Sección\r\n\t\tif (strval($this->SecciF3n->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`codigo_seccion`\" . ew_SearchString(\"=\", $this->SecciF3n->CurrentValue, EW_DATATYPE_STRING);\r\n\t\t$sSqlWrk = \"SELECT `codigo_seccion`, `nombre_seccion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `seccion`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t}\r\n\r\n\t\t// Call Lookup selecting\r\n\t\t$this->Lookup_Selecting($this->SecciF3n, $sWhereWrk);\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t$sSqlWrk .= \" ORDER BY `nombre_seccion`\";\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$this->SecciF3n->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->SecciF3n->ViewValue = $this->SecciF3n->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->SecciF3n->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->SecciF3n->ViewCustomAttributes = \"\";\r\n\r\n\t\t// subseccion\r\n\t\tif (strval($this->subseccion->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`codigo_subseccion`\" . ew_SearchString(\"=\", $this->subseccion->CurrentValue, EW_DATATYPE_STRING);\r\n\t\t$sSqlWrk = \"SELECT `codigo_subseccion`, `nombre_subseccion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `subseccion`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t}\r\n\r\n\t\t// Call Lookup selecting\r\n\t\t$this->Lookup_Selecting($this->subseccion, $sWhereWrk);\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t$sSqlWrk .= \" ORDER BY `nombre_subseccion`\";\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$this->subseccion->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->subseccion->ViewValue = $this->subseccion->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->subseccion->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->subseccion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Fecha De Ingreso\r\n\t\t$this->Fecha_De_Ingreso->ViewValue = $this->Fecha_De_Ingreso->CurrentValue;\r\n\t\t$this->Fecha_De_Ingreso->ViewValue = ew_FormatDateTime($this->Fecha_De_Ingreso->ViewValue, 5);\r\n\t\t$this->Fecha_De_Ingreso->ViewCustomAttributes = \"\";\r\n\r\n\t\t// hora\r\n\t\t$this->hora->ViewValue = $this->hora->CurrentValue;\r\n\t\t$this->hora->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Fecha Documento\r\n\t\t$this->Fecha_Documento->ViewValue = $this->Fecha_Documento->CurrentValue;\r\n\t\t$this->Fecha_Documento->ViewValue = ew_FormatDateTime($this->Fecha_Documento->ViewValue, 5);\r\n\t\t$this->Fecha_Documento->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Tiempo Documento\r\n\t\t$this->Tiempo_Documento->ViewValue = $this->Tiempo_Documento->CurrentValue;\r\n\t\t$this->Tiempo_Documento->ViewCustomAttributes = \"\";\r\n\r\n\t\t// numero\r\n\t\t$this->numero->LinkCustomAttributes = \"\";\r\n\t\t$this->numero->HrefValue = \"\";\r\n\t\t$this->numero->TooltipValue = \"\";\r\n\r\n\t\t// radicado\r\n\t\t$this->radicado->LinkCustomAttributes = \"\";\r\n\t\t$this->radicado->HrefValue = \"\";\r\n\t\t$this->radicado->TooltipValue = \"\";\r\n\r\n\t\t// clase_documento\r\n\t\t$this->clase_documento->LinkCustomAttributes = \"\";\r\n\t\t$this->clase_documento->HrefValue = \"\";\r\n\t\t$this->clase_documento->TooltipValue = \"\";\r\n\r\n\t\t// identificacion\r\n\t\t$this->identificacion->LinkCustomAttributes = \"\";\r\n\t\t$this->identificacion->HrefValue = \"\";\r\n\t\t$this->identificacion->TooltipValue = \"\";\r\n\r\n\t\t// nombre_rem\r\n\t\t$this->nombre_rem->LinkCustomAttributes = \"\";\r\n\t\t$this->nombre_rem->HrefValue = \"\";\r\n\t\t$this->nombre_rem->TooltipValue = \"\";\r\n\r\n\t\t// apellidos_rem\r\n\t\t$this->apellidos_rem->LinkCustomAttributes = \"\";\r\n\t\t$this->apellidos_rem->HrefValue = \"\";\r\n\t\t$this->apellidos_rem->TooltipValue = \"\";\r\n\r\n\t\t// telefono\r\n\t\t$this->telefono->LinkCustomAttributes = \"\";\r\n\t\t$this->telefono->HrefValue = \"\";\r\n\t\t$this->telefono->TooltipValue = \"\";\r\n\r\n\t\t// direccion\r\n\t\t$this->direccion->LinkCustomAttributes = \"\";\r\n\t\t$this->direccion->HrefValue = \"\";\r\n\t\t$this->direccion->TooltipValue = \"\";\r\n\r\n\t\t// correo_electronico\r\n\t\t$this->correo_electronico->LinkCustomAttributes = \"\";\r\n\t\t$this->correo_electronico->HrefValue = \"\";\r\n\t\t$this->correo_electronico->TooltipValue = \"\";\r\n\r\n\t\t// pais\r\n\t\t$this->pais->LinkCustomAttributes = \"\";\r\n\t\t$this->pais->HrefValue = \"\";\r\n\t\t$this->pais->TooltipValue = \"\";\r\n\r\n\t\t// departamento\r\n\t\t$this->departamento->LinkCustomAttributes = \"\";\r\n\t\t$this->departamento->HrefValue = \"\";\r\n\t\t$this->departamento->TooltipValue = \"\";\r\n\r\n\t\t// cuidad\r\n\t\t$this->cuidad->LinkCustomAttributes = \"\";\r\n\t\t$this->cuidad->HrefValue = \"\";\r\n\t\t$this->cuidad->TooltipValue = \"\";\r\n\r\n\t\t// asunto\r\n\t\t$this->asunto->LinkCustomAttributes = \"\";\r\n\t\t$this->asunto->HrefValue = \"\";\r\n\t\t$this->asunto->TooltipValue = \"\";\r\n\r\n\t\t// descripcion\r\n\t\t$this->descripcion->LinkCustomAttributes = \"\";\r\n\t\t$this->descripcion->HrefValue = \"\";\r\n\t\t$this->descripcion->TooltipValue = \"\";\r\n\r\n\t\t// adjuntar\r\n\t\t$this->adjuntar->LinkCustomAttributes = \"\";\r\n\t\t$this->adjuntar->HrefValue = \"\";\r\n\t\t$this->adjuntar->HrefValue2 = $this->adjuntar->UploadPath . $this->adjuntar->Upload->DbValue;\r\n\t\t$this->adjuntar->TooltipValue = \"\";\r\n\r\n\t\t// destino\r\n\t\t$this->destino->LinkCustomAttributes = \"\";\r\n\t\t$this->destino->HrefValue = \"\";\r\n\t\t$this->destino->TooltipValue = \"\";\r\n\r\n\t\t// Sección\r\n\t\t$this->SecciF3n->LinkCustomAttributes = \"\";\r\n\t\t$this->SecciF3n->HrefValue = \"\";\r\n\t\t$this->SecciF3n->TooltipValue = \"\";\r\n\r\n\t\t// subseccion\r\n\t\t$this->subseccion->LinkCustomAttributes = \"\";\r\n\t\t$this->subseccion->HrefValue = \"\";\r\n\t\t$this->subseccion->TooltipValue = \"\";\r\n\r\n\t\t// Fecha De Ingreso\r\n\t\t$this->Fecha_De_Ingreso->LinkCustomAttributes = \"\";\r\n\t\t$this->Fecha_De_Ingreso->HrefValue = \"\";\r\n\t\t$this->Fecha_De_Ingreso->TooltipValue = \"\";\r\n\r\n\t\t// hora\r\n\t\t$this->hora->LinkCustomAttributes = \"\";\r\n\t\t$this->hora->HrefValue = \"\";\r\n\t\t$this->hora->TooltipValue = \"\";\r\n\r\n\t\t// Fecha Documento\r\n\t\t$this->Fecha_Documento->LinkCustomAttributes = \"\";\r\n\t\t$this->Fecha_Documento->HrefValue = \"\";\r\n\t\t$this->Fecha_Documento->TooltipValue = \"\";\r\n\r\n\t\t// Tiempo Documento\r\n\t\t$this->Tiempo_Documento->LinkCustomAttributes = \"\";\r\n\t\t$this->Tiempo_Documento->HrefValue = \"\";\r\n\t\t$this->Tiempo_Documento->TooltipValue = \"\";\r\n\r\n\t\t// Call Row Rendered event\r\n\t\t$this->Row_Rendered();\r\n\t}", "title": "" }, { "docid": "7c0424baf41839e30945d7752d918f94", "score": "0.575648", "text": "function theme_cronreports_admin_reports($cronreports_reports){\n\n $header = array(\n array('data' => 'Status'),\n array('data' => 'Name'),\n array('data' => 'Watchdog types'),\n array('data' => 'Time offset'),\n array('data' => 'Email to'),\n array('data' => 'Edit'),\n array('data' => 'Send'),\n );\n $rows = array();\n foreach($cronreports_reports as $name => $report){\n $rows[] = array(\n 'data' => array(\n array('data' => ($report['enabled']) ? 'on' : 'off'),\n array('data' => $report['name']),\n array('data' => $report['watchdog_types']),\n array('data' => $report['time_offset']),\n array('data' => $report['email_to']),\n array('data' => '<a href=\"/admin/build/cron/reports/edit/'.$report['name'].'?'.drupal_get_destination().'\">edit</a>'),\n array('data' => '<a href=\"/admin/build/cron/reports/send/'.$report['name'].'?'.drupal_get_destination().'\">send</a>'),\n )\n );\n }\n \n return theme('table', $header, $rows);\n}", "title": "" }, { "docid": "d21df82ac20898a38dc1a729c6e57cfd", "score": "0.57482415", "text": "function getACLAllowedModules()\n{\n require_once('modules/Reports/config.php');\n\n global $modListHeader;\n\n $report_modules = getAllowedReportModules($modListHeader);\n\n foreach($report_modules as $module=>$class_name) {\n $seed = BeanFactory::newBean($module);\n\n if(empty($seed) || !$seed->ACLAccess('DetailView')) {\n unset($report_modules[$module]);\n }\n }\n\n return $report_modules;\n }", "title": "" }, { "docid": "2bea11e639eaa18d7e45b725d5f4c7cd", "score": "0.5733343", "text": "function getAvailableFields ()\n {\n $this->availableFields = array ( ) ;\n if ($this->subPanelParentModule != null)\n {\n $lowerFieldList = array_change_key_case ( $this->listViewDefs ) ;\n foreach ( $this->originalListViewDefs as $key => $def )\n {\n $key = strtolower ( $key ) ;\n if (! isset ( $lowerFieldList [ $key ] ))\n {\n $this->availableFields [ $key ] = $def ;\n }\n }\n $GLOBALS [ 'log' ]->debug ( 'parser.modifylistview.php->getAvailableFields(): field_defs=' . print_r ( $this->availableFields, true ) ) ;\n foreach ( $this->subPanelParentModule->field_defs as $key => $fieldDefinition )\n {\n $fieldName = strtolower ( $key ) ;\n if (! isset ( $lowerFieldList [ $fieldName ] )) // bug 16728 - check this first, so that other conditions (e.g., studio == visible) can't override and add duplicate entries\n {\n if ((empty ( $fieldDefinition [ 'source' ] ) || $fieldDefinition [ 'source' ] == 'db' || $fieldDefinition [ 'source' ] == 'custom_fields') && $fieldDefinition [ 'type' ] != 'id' && strcmp ( $fieldName, 'deleted' ) != 0 || (isset ( $def [ 'name' ] ) && strpos ( $def [ 'name' ], \"_name\" ) != false) || ! empty ( $def [ 'custom_type' ] ) && (empty ( $fieldDefinition [ 'dbType' ] ) || $fieldDefinition [ 'dbType' ] != 'id') && (empty ( $fieldDefinition [ 'dbtype' ] ) || $fieldDefinition [ 'dbtype' ] != 'id') || (! empty ( $fieldDefinition [ 'studio' ] ) && $fieldDefinition [ 'studio' ] == 'visible'))\n {\n $label = (isset ( $fieldDefinition [ 'vname' ] )) ? $fieldDefinition [ 'vname' ] : (isset ( $fieldDefinition [ 'label' ] ) ? $fieldDefinition [ 'label' ] : $fieldDefinition [ 'name' ]) ;\n $this->availableFields [ $fieldName ] = array ( 'width' => '10' , 'label' => $label ) ;\n }\n }\n }\n }\n\n return $this->availableFields ;\n }", "title": "" }, { "docid": "ea969f70d75e220e89a8749797b0c58e", "score": "0.572552", "text": "public function getListOfAllReportsFromAllLocations()//$param)\r\n\t{\t\t\t\r\n//\t\tdate_default_timezone_set('Asia/Hong_Kong');\r\n//\t\t$addedDateTimeStamp = (new DateTime())->format('Y-m-d H:i:s'); //date('Y-m-d H:i:s');\t\t\r\n\r\n/*\t\t\r\n\t\t$this->db->select('report_answer, report_item_id');\r\n\t\t$this->db->where('report_type_id BETWEEN 3 AND 4'); //3 = \"MOSC HQ\"\r\n\t\t$this->db->order_by('added_datetime_stamp', 'DESC');\r\n\t\t$query = $this->db->get('report');\r\n\t\treturn $query->result_array();\t\t\r\n*/\r\n\r\n\t\t$this->db->select('t1.report_answer, t1.report_item_id, t2.member_last_name, t2.member_first_name');\r\n\t\t$this->db->from('report as t1');\r\n\t\t$this->db->join('member as t2', 't1.member_id = t2.member_id', 'LEFT');\r\n\t\t$this->db->where('t1.report_type_id BETWEEN 3 AND 4'); //3 = \"MOSC HQ\"\r\n\t\t$this->db->order_by('t1.added_datetime_stamp', 'DESC');\r\n//\t\t$this->db->order_by('t1.added_datetime_stamp', 'DESC');\r\n//\t\t$this->db->order_by('t1.report_item_id', 'ASC');\t\t\r\n//\t\t$this->db->order_by('t1.added_datetime_stamp DESC, t1.report_item_id ASC');\r\n\t\t// Produces: ORDER BY `title` DESC, `name` ASC\r\n\r\n\t\t$query = $this->db->get();\r\n\t\t\r\n\t\treturn $query->result_array();\r\n\t}", "title": "" }, { "docid": "91e58be0461fd1fdb3326f3d20bfe3aa", "score": "0.57237786", "text": "function BillingReport () {\n\n\t// This module is implemented over CMS class (as many other)\n\t$this->CMS('report','report',array(),0);\n\n\t// Check if we have report files\n\t$this->reports = array();\n\tif (!$report_files = glob(SYS.'/share/reports-old/*.inc.php')) {\n\t\treturn false;\n\t};\n\n\t// Read reports descriptions\n\tforeach ($report_files as $filename) {\n\t\tif($rc = fopen($filename,'r')){\n\t\t\t$line = fgets($rc);\n\t\t\t// Read descriptions (looks like \"//REPORT 123 Some report description\" in first line)\n\t\t\tif(preg_match('/\\/\\/\\s*REPORT\\s+(\\d+)\\s+(.+)/',$line,$rm)){\n\t\t\t\t$this->reports[$rm[1]]['title'] = $rm[2];\n\t\t\t\t$this->reports[$rm[1]]['file'] = $filename;\n\t\t\t};\n\t\t\tfclose($rc);\n\t\t};\n\t};\n\n\t// Manage available actions\n\t$this->tasks = array(\n\t\t'init' => 'return $this->init();', // show report form\n\t\t'report' => 'return $this->make_report();' // generate report\n\t\t);\n\n\t// Manage available views (HTML or CSV)\n\t$this->views = array(\n\t\t'h' => 'HTML',\n\t\t'x' => 'CSV (Excel)'\n\t\t);\n\n\t// Initialize report parameters from HTTP request \n\n\t// Set current date as 'since' parameter\n\t$this->since = date(\"Y-m-d\");\n\t$this->till = $this->since;\n\tif(is_array($_REQUEST['since'])) {\n\t\t$this->since = $_REQUEST['since']['y'].'-'.$_REQUEST['since']['m'].'-'.$_REQUEST['since']['d'];\n\t};\n\tif(is_array($_REQUEST['till'])) {\n\t\t$this->till = $_REQUEST['till']['y'].'-'.$_REQUEST['till']['m'].'-'.$_REQUEST['till']['d'];\n\t};\n\n\t// Set view - default is HTML\n\tif(!$this->view=trim($_REQUEST['view'])) {\n\t\t$this->view = 'h';\n\t};\n\n\t// Select report identifier - default is none\n\t$this->report=$_REQUEST['mode']+0;\n\n}", "title": "" }, { "docid": "69bfd83720aac39a93d7808caa2c8a76", "score": "0.5714064", "text": "function output_table_datalist(&$oRS, $arrXmlCols, $xmlReport,$strOrderByColumn = \"\", $strOrderByDir = \"ASC\")\r\n{\r\n\t$strHeader = create_table_header($arrXmlCols,$xmlReport,$strOrderByColumn, $strOrderByDir);\r\n\t$strDataRows = create_table_datalist($oRS, $arrXmlCols, $xmlReport);\r\n\t$strFooter = create_table_footer($oRS);\r\n\r\n\t$arrCrit=$xmlReport->criteria;\r\n\t$idLink = $arrCrit['table_pass'];\r\n\tif($idLink==null)\r\n\t{\r\n\t\t$idLink = 0;\r\n\t}\r\n\t\r\n\t//F008866 have a flag so we know to not clear left as mozilla will display under menu\r\n//\tif($arrCrit['wssm']==true)\r\n//\t{\r\n\t\t$style = \"width: 98%; background: #FFFFFF; overflow-x:scroll;overflow-y:hidden;\";\r\n//\t}else\r\n//\t{\r\n//\t\t$style = \"clear:left;width: 98%; background: #FFFFDD; overflow-x:scroll;overflow-y:hidden;\";\r\n//\t}\r\n\t\r\n\t$strHTML = \"\";\r\n\t$strHTML .= \"<div id='table\".$idLink.\"' orderbydir='\".$strOrderByDir.\"' formid='\". $idLink .\"' style=\\\"\".$style.\" \\\">\";\r\n\t$strHTML .= \"<table id='table\".$idLink.\"' orderbydir='\".$strOrderByDir.\"' class='dataTable' width='100%' border=0 formid='\". $idLink .\"' >\";\r\n\t$strHTML .= \"\t<thead>\";\r\n\t$strHTML .=\t\t\t$strHeader;\r\n\t$strHTML .= \"\t</thead>\";\r\n\t$strHTML .= \"\t<tbody>\";\r\n\t$strHTML .= \t\t$strDataRows;\r\n\t$strHTML .= \"\t</tbody>\";\r\n\t$strHTML .= \"\t<tfoot>\";\r\n\t$strHTML .=\t\t\t$strFooter;\r\n\t$strHTML .= \"\t</tfoot>\";\r\n\t$strHTML .= \"</table>\";\r\n\t$strHTML .= \"\t</div>\";\r\n\r\n\treturn $strHTML;\r\n}", "title": "" }, { "docid": "f94f4c97edd2e67bd6c5541c4ef0b31b", "score": "0.5712869", "text": "protected function action_listview() {\n $this->bean = new Customgpop_PreOpportunity(); \n\t\tparent::action_listview();\n }", "title": "" }, { "docid": "9b85416479cbfa13a93599b2257a6b30", "score": "0.5707162", "text": "public function docReceivedListReport($arrParam,$sChecked){\r\n\t\t//Tao doi tuong trong trong thu vien dung chung\r\n\t\t$objLib = new Sys_Library();\r\n\t\t//\r\n\t\t$sHtmlRes = '<table class=\"list_table2\" width=\"98%\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" style=\"BORDER-TOP: #BACAD7 1px solid;\">\r\n\t\t\t\t\t<col width=\"5%\"><col width=\"95%\">'\t\t;\r\n\t\t\t\r\n\t\tfor ($i=0;$i<sizeof($arrParam);$i++) {\r\n\t\t\t$v_report_code = $arrParam[$i]['C_CODE'];\r\n\t\t\t$v_report_name =Sys_Publib_Library::_replaceBadChar($arrParam[$i]['C_NAME']);\r\n\t\t\t//Style\r\n\t\t\tif ($v_current_style_name == 'odd_row'){\r\n\t\t\t\t$v_current_style_name = 'round_row';\r\n\t\t\t}else{\r\n\t\t\t\t$v_current_style_name = 'odd_row';\r\n\t\t\t}\t\t\t\t\r\n\t\t\t//\t\t\t\t\t\t\r\n\t\t\t$v_report_checked = '';\r\n\t\t\tif ($sChecked!='' && $sChecked == $v_report_code)\r\n\t\t\t$v_report_checked = 'checked';\r\n\t\t\t// In danh sach\r\n\t\t\t$sHtmlRes = $sHtmlRes.'<tr class=\"'. $v_current_style_name.'\">'.\r\n\t\t\t\t\t\t\t\t'<td align=\"center\"><input type=\"radio\" message=\"Phai xac dinh LOAI BAO CAO!\" name=\"opt_reporttype_id\" id=\"'. $v_report_code .'\" readonly=\"true\" value=\"'. $v_report_code.'\"' . $v_report_checked.' onClick=\"btn_rad_onclick(this,document.getElementById(\\'hdn_Report_id\\'));document.forms[0].submit();\"></td>\r\n\t\t\t\t\t\t\t\t<td colspan=\"10\" style=\"padding-left:5px;\"><label style=\"cursor:pointer;\" for =\"'.$v_report_code.'\">' .$v_report_name. '</label></td></tr>'; \r\n\t\t\t\r\n\t\t}\t\r\n\t\t\r\n\t\t$sHtmlRes = $sHtmlRes.'</table>'\t;\t\t\t\t\r\n\t\treturn $sHtmlRes;\r\n\t\t//var_dump($sHtmlRes);\r\n\t}", "title": "" }, { "docid": "080f41a050de5a1eb3e81751e1a61c63", "score": "0.57017535", "text": "public function officialrecordlistAction()\n {\n //Left menu (Hien thi danh sach HS da tiep nhan so bo)\n $this->view->currentModulCodeForLeft = 'OFFICIAL';\n //Hien thi left menu\n $this->_response->insert('left', $this->view->renderLayout('left.phtml', './application/views/scripts/'));\n\n //Tieu de man hinh danh sach\n $this->view->titleBody = \"DANH SÁCH HỒ SƠ ĐÃ TIẾP NHẬN SƠ BỘ\";\n // Class thiet lap cac cau hinh cua he thong\n $objconfig = new Extra_Init();\n //Class xu ly cac phuong thuc dung chung cua he thong\n $objrecordfun = new Extra_Ecs();\n //Class xu ly cac phuong thuc lien quan den xml\n $objxml = new Extra_Xml();\n //Lay mang hang so dung chung\n $this->view->arrConst = $objconfig->_setProjectPublicConst();\n //Class xu ly du lieu cua module\n $objReceiveonnet = new record_modReceiveonnet();\n $arrRecordType = $_SESSION['arr_all_record_type'];\n //Lay id cua loai ho so hien tai\n $sRecordTypeId = $this->_request->getParam('recordType');//controller lay gia tri bien $sRecordTypeId tu view qua bien recordType ? bien recordType lay gia tri tu dau?\n if ($sRecordTypeId == \"\")\n $sRecordTypeId = $arrRecordType[0]['PK_RECORDTYPE'];\n //Lay id can bo dang nhap hien thoi\n $iCurrentStaffId = $_SESSION['staff_id'];\n $sStatusList = 'TIEP_NHAN_SO_BO';\n //lay ma don vi su dung cua nguoi dang nhap hien thoi\n $sOwnerCode = $_SESSION['OWNER_CODE'];\n $sfullTextSearch = '';\n //lay duong dan action:/g4t-mcdt-lethuy/record/receiveonnet/officialrecordlist/\n $pUrl = $_SERVER['REQUEST_URI'];\n //lay gia tri cua chuoi gia tri tim kiem\n $sfullTextSearch = trim($this->_request->getParam('txtfullTextSearch', ''));\n //lay gia tri cua trang hien thoi\n $iPage = $this->_request->getParam('hdn_current_page', 0);\n if ($iPage <= 1) {\n $iPage = 1;\n }\n //lay so ban ghi tren mot trang\n $iNumberRecordPerPage = $this->_request->getParam('cbo_nuber_record_page', 0);\n if ($iNumberRecordPerPage == 0)\n $iNumberRecordPerPage = 15;\n //$arrinfoRecordType mang luu thong tin cua bang T_eCS_RecordType\n $arrinfoRecordType = $objrecordfun->getinforRecordType($sRecordTypeId, $arrRecordType);\n $sRecordTypeCode = $arrinfoRecordType['C_CODE'];// ma cua loai ho so\n $srecordType = $arrinfoRecordType['C_NAME']; //loai ho so\n //$sRecordTypeId = $arrinfoRecordType['PK_RECORDTYPE'];\n $this->view->srecordType = $srecordType;\n $this->view->sRecordTypeCode = $sRecordTypeCode;\n //lay duong dan file xml mo ta hien thi man hinh danh sach\n if ($sRecordTypeId == '')\n $sRecordTypeCode = '00';\n $sxmlFileName = $objconfig->_setXmlFileUrlPath(1) . 'record/' . $sRecordTypeCode . '/danh_sach_hs_tiep_nhan_chinh_thuc_qua_mang.xml';\n if (!file_exists($sxmlFileName)) {\n $sxmlFileName = $objconfig->_setXmlFileUrlPath(1) . 'record/other/danh_sach_hs_tiep_nhan_chinh_thuc_qua_mang.xml';\n }\n //echo $sxmlFileName;exit;\n //Day gia tri tim kiem ra view\n $sfullTextSearch = trim($this->_request->getParam('txtfullTextSearch', ''));\n $arrInputfilter = array('fullTextSearch' => $sfullTextSearch, 'pUrl' => '../officialrecordlist/', 'RecordTypeId' => $sRecordTypeId);\n //Hien thi tieu chi tim kiem gom: loai ho so va chuoi ky tu tim kiem\n $this->view->filter_form = $objrecordfun->genEcsFilterFrom($iCurrentStaffId, 'TIEP_NHAN', $arrRecordType, $arrInputfilter);\n // Goi ham search de hien thi ra Complete Textbox\n $sRecordTypeID = $arrinfoRecordType['FK_RECORDTYPE'];\n $sDetailStatusCompare = \" And A.C_DETAIL_STATUS = 10\";\n $arrRecord = $objReceiveonnet->eCSNetOfficialRecordGetAll($sRecordTypeId, $sOwnerCode, $sfullTextSearch, $sStatusList, $iPage, $iNumberRecordPerPage);\n $this->view->genlist = $objxml->_xmlGenerateList($sxmlFileName, 'col', $arrRecord, \"C_XML_DATA\", \"PK_NET_RECORD\", $sfullTextSearch, false, false, '../viewrecord/');\n $iNumberRecord = $arrRecord[0]['C_TOTAL_RECORD'];\n //khai bao bien iNumberRecord de dung trong view\n $this->view->iNumberRecord = $iNumberRecord;\n if (count($arrRecord) > 0) {\n $this->view->sdocpertotal = \"Danh sách có: \" . sizeof($arrRecord) . '' . $iNumberRecord . \" hồ sơ\";\n $this->view->generateStringNumberPage = Extra_Util::_generateStringNumberPage($iNumberRecord, $iPage, $iNumberRecordPerPage, $pUrl);\n $this->view->generateHtmlSelectBoxPage = Extra_Util::_generateChangeRecordNumberPage($iNumberRecordPerPage, $this->view->getStatusLeftMenu);\n }\n }", "title": "" }, { "docid": "95ed5ff79597327ffeee04fd7c704eac", "score": "0.56863725", "text": "function getListingsAction() {\n\n $page_id = $this->_getParam('page_id', 0);\n\n $pageTable = Engine_Api::_()->getDbTable('pages', 'core');\n $page_name = $pageTable->select()\n ->from($pageTable->info('name'), 'name')\n ->where('page_id = ?', $page_id)\n ->query()\n ->fetchColumn();\n\n $page_name_array = explode('_listtype_', $page_name);\n $listingtype_id = $page_name_array[1];\n\n //GET LISTING TABLE\n $sitereviewTable = Engine_Api::_()->getDbtable('listings', 'sitereview');\n $sitereviewTableName = $sitereviewTable->info('name');\n\n //MAKE QUERY\n $select = $sitereviewTable->select()\n ->where('title LIKE ? ', '%' . $this->_getParam('text') . '%')\n ->where($sitereviewTableName . '.closed = ?', '0')\n ->where($sitereviewTableName . '.approved = ?', '1')\n ->where($sitereviewTableName . '.draft = ?', '0')\n ->where($sitereviewTableName . '.search = ?', '1')\n ->order('title ASC')\n ->limit($this->_getParam('limit', 40));\n\n if (!empty($listingtype_id) && is_numeric($listingtype_id)) {\n $select->where($sitereviewTableName . '.listingtype_id = ?', $listingtype_id);\n }\n\n //FETCH RESULTS\n $usersitereviews = $sitereviewTable->fetchAll($select);\n $data = array();\n $mode = $this->_getParam('struct');\n\n if ($mode == 'text') {\n foreach ($usersitereviews as $usersitereview) {\n $content_photo = $this->view->itemPhoto($usersitereview, 'thumb.icon');\n $data[] = array(\n 'id' => $usersitereview->listing_id,\n 'label' => $usersitereview->title,\n 'photo' => $content_photo\n );\n }\n } else {\n foreach ($usersitereviews as $usersitereview) {\n $content_photo = $this->view->itemPhoto($usersitereview, 'thumb.icon');\n $data[] = array(\n 'id' => $usersitereview->listing_id,\n 'label' => $usersitereview->title,\n 'photo' => $content_photo\n );\n }\n }\n return $this->_helper->json($data);\n }", "title": "" }, { "docid": "d72238fca38d54c7c561e129b87b52cc", "score": "0.56811213", "text": "public function statisticAction() {\n\n\t\t//GET NAVIGATION\n $this->view->navigation = Engine_Api::_()->getApi('menus', 'core')\n ->getNavigation('list_admin_main', array(), 'list_admin_main_statistic');\n\n //GET LISTING TABLE\n $listingTable = Engine_Api::_()->getDbtable('listings', 'list');\n $listingTableName = $listingTable->info('name');\n\n\t\t//GET THE TOTAL LISTINGS\n $select = $listingTable->select()->from($listingTableName, 'count(*) AS totallisting');\n $this->view->totalList = $select->query()->fetchColumn();\n\n\t\t//GET THE TOTAL PUBLISH LISTINGS\n $select = $listingTable->select()->from($listingTableName, 'count(*) AS totalpublish')->where('draft = ?', 1);\n $this->view->totalPublish = $select->query()->fetchColumn();\n\n\t\t//GET THE TOTAL DRAFT LISTINGS\n $select = $listingTable->select()->from($listingTableName, 'count(*) AS totaldrafted')->where('draft = ?', 0);\n $this->view->totalDrafted = $select->query()->fetchColumn();\n\n\t\t//GET THE TOTAL CLOSED LISTINGS\n $select = $listingTable->select()->from($listingTableName, 'count(*) AS totalclosed')->where('closed = ?', 1);\n $this->view->totalClosed = $select->query()->fetchColumn();\n\n\t\t//GET THE TOTAL OPEN LISTINGS\n $select = $listingTable->select()->from($listingTableName, 'count(*) AS totalopen')->where('closed = ?', 0);\n $this->view->totalOpen = $select->query()->fetchColumn();\n\n\t\t//GET THE TOTAL APPROVE LISTINGS\n $select = $listingTable->select()->from($listingTableName, 'count(*) AS totalapproved')->where('approved = ?', 1);\n $this->view->totalapproved = $select->query()->fetchColumn();\n\n\t\t//GET THE TOTAL DIS-APPROVE LISTINGS\n $select = $listingTable->select()->from($listingTableName, 'count(*) AS totaldisapproved')->where('approved = ?', 0);\n $this->view->totaldisapproved = $select->query()->fetchColumn();\n\n\t\t//GET THE TOTAL FEATURED LISTINGS\n $select = $listingTable->select()->from($listingTableName, 'count(*) AS totalfeatured')->where('featured = ?', 1);\n $this->view->totalfeatured = $select->query()->fetchColumn();\n\n\t\t//GET THE TOTAL SPONSERED LISTINGS\n $select = $listingTable->select()->from($listingTableName, 'count(*) AS totalsponsored')->where('sponsored = ?', 1);\n $this->view->totalsponsored = $select->query()->fetchColumn();\n\n\t\t//GET THE TOTAL REVIEWS\n $reviewtable = Engine_Api::_()->getDbtable('reviews', 'list');\n $review_tablename = $reviewtable->info('name');\n $reviewselect = $reviewtable->select()->from($review_tablename, 'count(*) AS totalreview');\n $this->view->totalreview = $reviewselect->query()->fetchColumn();\n\n\t\t//GET THE TOTAL DISCUSSIONES\n $discussiontable = Engine_Api::_()->getDbtable('topics', 'list');\n $discussion_tablename = $discussiontable->info('name');\n $discussionselect = $discussiontable->select()->from($discussion_tablename, 'count(*) AS totaldiscussion');\n $this->view->totaldiscussion = $discussionselect->query()->fetchColumn();\n\n\t\t//GET THE TOTAL POSTS\n $discussionposttable = Engine_Api::_()->getDbtable('posts', 'list');\n $discussionpost_tablename = $discussionposttable->info('name');\n $discussionpostselect = $discussionposttable->select()->from($discussionpost_tablename, 'count(*) AS totalpost');\n $this->view->totaldiscussionpost = $discussionpostselect->query()->fetchColumn();\n\n include_once APPLICATION_PATH . '/application/modules/List/controllers/license/license2.php';\n\n\t\t//GET THE TOTAL PHOTOS\n $phototable = Engine_Api::_()->getDbtable('photos', 'list');\n $photo_tablename = $phototable->info('name');\n $photoselect = $phototable->select()->from($photo_tablename, 'count(*) AS totalphoto');\n $totalphotolistings = $phototable->fetchRow($photoselect)->toarray();\n $this->view->totalphotopost = $totalphotolistings['totalphoto'];\n\n\t\t//GET THE TOTAL VIDEOS\n $videotable = Engine_Api::_()->getDbtable('clasfvideos', 'list');\n $video_tablename = $videotable->info('name');\n $videoselect = $videotable->select()->from($video_tablename, 'count(*) AS totalvideo');\n $this->view->totalvideopost = $videoselect->query()->fetchColumn();\n\n\t\t//GET THE TOTAL COMMENTS COUNT\n $commentselect = $listingTable->select()->from($listingTableName, 'sum(comment_count) AS totalcomments');\n $this->view->totalcommentpost = $commentselect->query()->fetchColumn();\n }", "title": "" }, { "docid": "ebc88e3eaf641ac1c5a9ebd0b9724f60", "score": "0.5677328", "text": "function getCorrectListView() {\r\n\r\n\t\tswitch($this->getTSFFvar('modeSelection')) {\r\n\t\t\tcase 'category':\r\n\t\t\t\treturn $this->listByCategory();\r\n\t\t\tbreak;\r\n\t\t\tcase 'categoryMenu':\r\n\t\t\t\treturn $this->getCategoryMenu();\r\n\t\t\tbreak;\r\n\t\t\tcase 'listOfDetail':\r\n\t\t\t\treturn $this->listOfDetailView();\r\n\t\t\tbreak;\r\n\t\t\tcase 'alphabeticalList':\r\n\t\t\t\treturn $this->listByAlphabet();\r\n\t\t\tbreak;\r\n\t\t\tcase 'pm_running':\r\n\t\t\t\t$this->categoryField = \"projectmanagement\";\r\n\t\t\t\t//$this->categoryField = (FIND_IN_SET('.$w[uid].',projectmanagement) > 0)\r\n\t\t\t\t$this->categoryTable = $this->personTable;\r\n\t\t\t\treturn $this->listByCategory();\r\n\r\n\t\t\tbreak;\r\n\t\t\tcase 'pm_finished':\r\n\t\t\t\t$this->categoryField = \"projectmanagement\";\r\n\t\t\t\t$this->categoryTable = $this->personTable;\r\n\t\t\t\treturn $this->listByCategory();\r\n\r\n\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\treturn $this->listView();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e6dba892e66ee61b78f9f8a110ddd32f", "score": "0.567403", "text": "public function details($list_id);", "title": "" }, { "docid": "d504512c854988c168e431d5edfdd062", "score": "0.5666605", "text": "public function indexAction() {\n\n //DONT RENDER IF SUBJECT IS NOT SET\n if (!Engine_Api::_()->core()->hasSubject('sitereview_listing')) {\n return $this->setNoRender();\n }\n\n //GET SUBJECT\n $this->view->sitereview = $sitereview = Engine_Api::_()->core()->getSubject('sitereview_listing');\n Engine_Api::_()->sitereview()->setListingTypeInRegistry($sitereview->listingtype_id);\n $this->view->listingType = $listingType = Zend_Registry::get('listingtypeArray' . $sitereview->listingtype_id);\n $viewer = Engine_Api::_()->user()->getViewer();\n\n $this->view->can_edit = Engine_Api::_()->authorization()->getPermission($viewer->level_id, 'sitereview_listing', \"contact_listtype_$sitereview->listingtype_id\"); //Engine_Api::_()\n\n if (empty($sitereview->phone) && empty($sitereview->email) && empty($sitereview->website) && !$this->view->can_edit) {\n return $this->setNoRender();\n }\n\n //GET SETTINGS\n $pre_field = array(\"0\" => \"1\", \"1\" => \"2\", \"2\" => \"3\");\n $contacts = $this->_getParam('contacts', $pre_field);\n\n if (empty($contacts)) {\n $this->setNoRender();\n } else {\n //INITIALIZATION\n $this->view->show_phone = $this->view->show_email = $this->view->show_website = 0;\n if (in_array(1, $contacts)) {\n $this->view->show_phone = 1;\n }\n if (in_array(2, $contacts)) {\n $this->view->show_email = 1;\n }\n if (in_array(3, $contacts)) {\n $this->view->show_website = 1;\n }\n }\n $user = Engine_Api::_()->user()->getUser($sitereview->owner_id);\n $view_options = (array) Engine_Api::_()->authorization()->getAdapter('levels')->getAllowed('sitereview_listing', $user, \"contact_detail_listtype_$sitereview->listingtype_id\");\n $availableLabels = array('phone' => 'Phone', 'website' => 'Website', 'email' => 'Email');\n $this->view->options_create = array_intersect_key($availableLabels, array_flip($view_options));\n }", "title": "" }, { "docid": "047771f9051adc16797560ce9de7ad92", "score": "0.56457657", "text": "function listViewProcess()\n\t{\n\t\t$this->params['custom_from'] = ' JOIN vedic_candidates_vedic_profiles_1_c on vedic_candidates_vedic_profiles_1_c .vedic_candidates_vedic_profiles_1vedic_candidates_ida = \tvedic_candidates.id \n\t\t\tJOIN vedic_profiles ON vedic_profiles.id = vedic_candidates_vedic_profiles_1_c.vedic_candidates_vedic_profiles_1vedic_profiles_idb\n\t\t\tJOIN vedic_profiles_cstm ON vedic_profiles.id = vedic_profiles_cstm.id_c';\n\t\t$where = $this->where;\n\t\tif($where=='') {\n\t\t\t$this->params['custom_where'] = ' AND vedic_candidates_vedic_profiles_1_c.deleted=0 AND vedic_profiles_cstm.stage_c=\"Billing\" AND vedic_profiles_cstm.status_c IN( \"Active\" ,\"Active/Project2\")';\n\t\t}\n\t\telse {\n\t\t\t$this->params['custom_where'] = ' AND vedic_candidates_vedic_profiles_1_c.deleted=0 AND vedic_profiles_cstm.stage_c=\"Billing\" AND vedic_profiles_cstm.status_c IN( \"Active\" ,\"Active/Project2\") AND '.$where.'';\n\t\t}\n\t\tparent::listViewProcess();\n\t\t/* To remove default action on clear search button and redirect to custom Finance view */\n\t\techo $js = <<<EOT\n\t\t\t<script>\t\t \n\t\t\t\t$(\".glyphicon-remove\").removeAttr(\"onclick\").attr(\"href\", \"index.php?action=finance&module=vedic_Candidates&searchFormTab=basic_search&query=true&clear_query=true\");\n\t\t </script>\nEOT;\n\t}", "title": "" }, { "docid": "1d8eb8483bcf82158ee31339d2046539", "score": "0.5644508", "text": "function EPL_getFieldDefinitionsWTSCUSTOMER(){\n $fielddefinitions = array();\n $optionsUPD = array(\n 'query_format'=>'classic',\n );\n $fielddefinitions['UPD'] = array('field'=>'UPD', 'label'=>'Dernière mise à jour','ftype'=>'XTimestampDef', 'fcount'=>0,'forder'=>0,'compulsory'=>0,'queryable'=>0,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionsUPD);\n $optionsOWN = array(\n 'checkbox_limit'=>'30',\n 'autocomplete_limit'=>'200',\n 'generate_link'=>'1',\n 'checkbox_cols'=>'3',\n 'query_format'=>'classic',\n );\n $fielddefinitions['OWN'] = array('field'=>'OWN', 'label'=>'Propriétaire','ftype'=>'XLinkDef', 'fcount'=>0,'forder'=>1,'compulsory'=>0,'queryable'=>1,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'USERS', 'options'=>$optionsOWN);\n $optionslnkuser = array(\n 'checkbox_limit'=>'30',\n 'autocomplete_limit'=>'200',\n 'generate_link'=>'1',\n 'checkbox_cols'=>'3',\n 'query_format'=>'classic',\n );\n $fielddefinitions['lnkuser'] = array('field'=>'lnkuser', 'label'=>'User associé','ftype'=>'XLinkDef', 'fcount'=>0,'forder'=>5,'compulsory'=>1,'queryable'=>0,'browsable'=>1,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'USERS', 'options'=>$optionslnkuser);\n $optionsemail = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['email'] = array('field'=>'email', 'label'=>'E-Mail','ftype'=>'XShortTextDef', 'fcount'=>32,'forder'=>10,'compulsory'=>1,'queryable'=>1,'browsable'=>1,'translatable'=>0,'multivalued'=>0,'published'=>1,'target'=>'%', 'options'=>$optionsemail);\n $optionscivilite = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['civilite'] = array('field'=>'civilite', 'label'=>'Civilité','ftype'=>'XShortTextDef', 'fcount'=>3,'forder'=>15,'compulsory'=>0,'queryable'=>1,'browsable'=>1,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionscivilite);\n $optionsnom = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['nom'] = array('field'=>'nom', 'label'=>'Nom','ftype'=>'XShortTextDef', 'fcount'=>32,'forder'=>20,'compulsory'=>1,'queryable'=>1,'browsable'=>1,'translatable'=>0,'multivalued'=>0,'published'=>1,'target'=>'%', 'options'=>$optionsnom);\n $optionsprenom = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['prenom'] = array('field'=>'prenom', 'label'=>'Prénom','ftype'=>'XShortTextDef', 'fcount'=>32,'forder'=>21,'compulsory'=>0,'queryable'=>1,'browsable'=>1,'translatable'=>0,'multivalued'=>0,'published'=>1,'target'=>'%', 'options'=>$optionsprenom);\n $optionstelephone = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['telephone'] = array('field'=>'telephone', 'label'=>'Téléphone','ftype'=>'XShortTextDef', 'fcount'=>12,'forder'=>23,'compulsory'=>0,'queryable'=>1,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionstelephone);\n $optionsmobile = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['mobile'] = array('field'=>'mobile', 'label'=>'Mobile','ftype'=>'XShortTextDef', 'fcount'=>12,'forder'=>24,'compulsory'=>0,'queryable'=>1,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionsmobile);\n $optionsadresse1 = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['adresse1'] = array('field'=>'adresse1', 'label'=>'Adresse 1','ftype'=>'XShortTextDef', 'fcount'=>32,'forder'=>25,'compulsory'=>1,'queryable'=>1,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionsadresse1);\n $optionsadresse2 = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['adresse2'] = array('field'=>'adresse2', 'label'=>'Adresse 2','ftype'=>'XShortTextDef', 'fcount'=>32,'forder'=>26,'compulsory'=>0,'queryable'=>1,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionsadresse2);\n $optionscodepostal = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['codepostal'] = array('field'=>'codepostal', 'label'=>'Code postal','ftype'=>'XShortTextDef', 'fcount'=>10,'forder'=>27,'compulsory'=>1,'queryable'=>1,'browsable'=>1,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionscodepostal);\n $optionsville = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['ville'] = array('field'=>'ville', 'label'=>'Ville','ftype'=>'XShortTextDef', 'fcount'=>32,'forder'=>28,'compulsory'=>1,'queryable'=>1,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionsville);\n $optionspays = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['pays'] = array('field'=>'pays', 'label'=>'Pays','ftype'=>'XShortTextDef', 'fcount'=>32,'forder'=>29,'compulsory'=>1,'queryable'=>1,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionspays);\n $optionsadresse3 = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['adresse3'] = array('field'=>'adresse3', 'label'=>'Adresse 3','ftype'=>'XShortTextDef', 'fcount'=>32,'forder'=>30,'compulsory'=>0,'queryable'=>1,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionsadresse3);\n $optionslivcivilite = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['livcivilite'] = array('field'=>'livcivilite', 'label'=>'Civilité','ftype'=>'XShortTextDef', 'fcount'=>3,'forder'=>39,'compulsory'=>0,'queryable'=>0,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionslivcivilite);\n $optionslivnom = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['livnom'] = array('field'=>'livnom', 'label'=>'Nom','ftype'=>'XShortTextDef', 'fcount'=>32,'forder'=>40,'compulsory'=>0,'queryable'=>0,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionslivnom);\n $optionslivprenom = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['livprenom'] = array('field'=>'livprenom', 'label'=>'Prénom','ftype'=>'XShortTextDef', 'fcount'=>32,'forder'=>41,'compulsory'=>0,'queryable'=>0,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionslivprenom);\n $optionslivadresse1 = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['livadresse1'] = array('field'=>'livadresse1', 'label'=>'Adresse 1','ftype'=>'XShortTextDef', 'fcount'=>32,'forder'=>43,'compulsory'=>0,'queryable'=>0,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionslivadresse1);\n $optionslivadresse2 = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['livadresse2'] = array('field'=>'livadresse2', 'label'=>'Adresse 2','ftype'=>'XShortTextDef', 'fcount'=>32,'forder'=>44,'compulsory'=>0,'queryable'=>0,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionslivadresse2);\n $optionslivadresse3 = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['livadresse3'] = array('field'=>'livadresse3', 'label'=>'Adresse 3','ftype'=>'XShortTextDef', 'fcount'=>32,'forder'=>45,'compulsory'=>0,'queryable'=>0,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionslivadresse3);\n $optionslivcodepostal = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['livcodepostal'] = array('field'=>'livcodepostal', 'label'=>'Code postal','ftype'=>'XShortTextDef', 'fcount'=>10,'forder'=>46,'compulsory'=>0,'queryable'=>0,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionslivcodepostal);\n $optionslivville = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['livville'] = array('field'=>'livville', 'label'=>'Ville','ftype'=>'XShortTextDef', 'fcount'=>32,'forder'=>47,'compulsory'=>0,'queryable'=>0,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionslivville);\n $optionslivpays = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['livpays'] = array('field'=>'livpays', 'label'=>'Pays','ftype'=>'XShortTextDef', 'fcount'=>32,'forder'=>48,'compulsory'=>0,'queryable'=>0,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionslivpays);\n $optionsnewsletter = array(\n 'query_format'=>'classic',\n );\n $fielddefinitions['newsletter'] = array('field'=>'newsletter', 'label'=>'Inscription newletter','ftype'=>'XBoolDef', 'fcount'=>0,'forder'=>49,'compulsory'=>0,'queryable'=>1,'browsable'=>1,'translatable'=>0,'multivalued'=>0,'published'=>1,'target'=>'%', 'options'=>$optionsnewsletter);\n return $fielddefinitions;\n}", "title": "" }, { "docid": "f72da34a0cf6bf9e9670639652d16882", "score": "0.56379706", "text": "function _list(){\n\t\timport( 'Dataface/ResultList.php');\n\t\t$list =& new Dataface_ResultList( $this->_tablename, $this->_db, /*$columns=*/array(), $this->_query);\n\t\treturn $list->toHtml();\n\t\n\t}", "title": "" }, { "docid": "31626303566e2ce89dcd57f5d6f47b57", "score": "0.5633921", "text": "function elementList()\r\n\t{\r\n\t\tglobal $currencyIconList;\r\n\t\t$listItemOutput = '';\r\n\r\n\t\t/*\tStart the table definition\t*/\r\n\t\t$tableId = wpklikandpay_payment_form::getDbTable() . '_list';\r\n\t\t$tableSummary = __('Existing payment forms listing', 'wpklikandpay');\r\n\t\t$tableTitles = array();\r\n\t\t$tableTitles[] = __('Nom du formulaire', 'wpklikandpay');\r\n\t\t$tableClasses = array();\r\n\t\t$tableClasses[] = 'wpklikandpay_' . wpklikandpay_payment_form::getCurrentPageCode() . '_name_column';\r\n\r\n\t\t$line = 0;\r\n\t\t$elementList = wpklikandpay_payment_form::getElement();\r\n\t\tif(count($elementList) > 0)\r\n\t\t{\r\n\t\t\tforeach($elementList as $element)\r\n\t\t\t{\r\n\t\t\t\t$tableRowsId[$line] = wpklikandpay_payment_form::getDbTable() . '_' . $element->id;\r\n\r\n\t\t\t\t$elementLabel = $element->payment_form_name;\r\n\t\t\t\t$subRowActions = '';\r\n\t\t\t\tif(current_user_can('wpklikandpay_edit_forms'))\r\n\t\t\t\t{\r\n\t\t\t\t\t$editAction = admin_url('admin.php?page=' . wpklikandpay_payment_form::getEditionSlug() . '&amp;action=edit&amp;id=' . $element->id);\r\n\t\t\t\t\t$subRowActions .= '\r\n\t\t<a href=\"' . $editAction . '\" >' . __('Modifier', 'wpklikandpay') . '</a>';\r\n\t\t\t\t\t$elementLabel = '<a href=\"' . $editAction . '\" >' . $element->payment_form_name . '</a>';\r\n\t\t\t\t}\r\n\t\t\t\telseif(current_user_can('wpklikandpay_view_forms_details'))\r\n\t\t\t\t{\r\n\t\t\t\t\t$editAction = admin_url('admin.php?page=' . wpklikandpay_payment_form::getEditionSlug() . '&amp;action=edit&amp;id=' . $element->id);\r\n\t\t\t\t\t$subRowActions .= '\r\n\t\t<a href=\"' . $editAction . '\" >' . __('Voir', 'wpklikandpay') . '</a>';\r\n\t\t\t\t\t$elementLabel = '<a href=\"' . $editAction . '\" >' . $element->payment_form_name . '</a>';\r\n\t\t\t\t}\r\n\t\t\t\tif(current_user_can('wpklikandpay_delete_forms'))\r\n\t\t\t\t{\r\n\t\t\t\t\tif($subRowActions != '')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$subRowActions .= '&nbsp;|&nbsp;';\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$subRowActions .= '\r\n\t\t<a href=\"' . admin_url('admin.php?page=' . wpklikandpay_payment_form::getEditionSlug() . '&amp;action=delete&amp;id=' . $element->id). '\" >' . __('Supprimer', 'wpklikandpay') . '</a>';\r\n\t\t\t\t}\r\n\t\t\t\t$rowActions = '\r\n\t<div id=\"rowAction' . $element->id . '\" class=\"wpklikandpayRowAction\" >' . $subRowActions . '\r\n\t</div>';\r\n\r\n\t\t\t\t$elementAmount = $element->initial_amount / 100;\r\n\t\t\t\tunset($tableRowValue);\r\n\t\t\t\t$tableRowValue[] = array('class' => wpklikandpay_payment_form::getCurrentPageCode() . '_label_cell', 'value' => $elementLabel . $rowActions);\r\n\t\t\t\t$tableRows[] = $tableRowValue;\r\n\r\n\t\t\t\t$line++;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$subRowActions = '';\r\n\t\t\tif(current_user_can('wpklikandpay_add_forms'))\r\n\t\t\t{\r\n\t\t\t\t$subRowActions .= '\r\n\t<a href=\"' . admin_url('admin.php?page=' . wpklikandpay_payment_form::getEditionSlug() . '&amp;action=add') . '\" >' . __('Ajouter', 'wpklikandpay') . '</a>';\r\n\t\t\t}\r\n\t\t\t$rowActions = '\r\n\t<div id=\"rowAction' . $element->id . '\" class=\"wpklikandpayRowAction\" >' . $subRowActions . '\r\n\t</div>';\r\n\t\t\t$tableRowsId[] = wpklikandpay_payment_form::getDbTable() . '_noResult';\r\n\t\t\tunset($tableRowValue);\r\n\t\t\t$tableRowValue[] = array('class' => wpklikandpay_payment_form::getCurrentPageCode() . '_name_cell', 'value' => __('Aucun formulaire n\\'a encore &eacute;t&eacute; cr&eacute;&eacute;', 'wpklikandpay') . $rowActions);\r\n\t\t\t$tableRows[] = $tableRowValue;\r\n\t\t}\r\n\t\t$listItemOutput = wpklikandpay_display::getTable($tableId, $tableTitles, $tableRows, $tableClasses, $tableRowsId, $tableSummary, true);\r\n\r\n\t\treturn $listItemOutput . '\r\n<br/><br/>' .sprintf(__('Ajouter : %s dans les pages que vous allez cr&eacute;er pour les retour du client lorsqu\\'il a termin&eacute; le paiement sur le site de klikandpay.', 'wpklikandpay'), '<span class=\" bold\" >[wp-klikandpay_payment_return title=\"KlikAndPay return page\" ]</span>');\r\n\t}", "title": "" }, { "docid": "371daa7e8ab385fbf79ad9150108a4d8", "score": "0.5633488", "text": "function elementList()\r\n\t{\r\n\t\tglobal $currencyIconList;\r\n\t\t$listItemOutput = '';\r\n\r\n\t\t/*\tStart the table definition\t*/\r\n\t\t$tableId = wpklikandpay_offers::getDbTable() . '_list';\r\n\t\t$tableSummary = __('Existing payment forms listing', 'wpklikandpay');\r\n\t\t$tableTitles = array();\r\n\t\t$tableTitles[] = __('Libell&eacute; de l\\'offre', 'wpklikandpay');\r\n\t\t$tableTitles[] = __('Type d\\'offre', 'wpklikandpay');\r\n\t\t$tableTitles[] = __('Montant', 'wpklikandpay');\r\n\t\t$tableTitles[] = __('R&eacute;f&eacute;rence', 'wpklikandpay');\r\n\t\t$tableTitles[] = __('Abonnement', 'wpklikandpay');\r\n\t\t$tableClasses = array();\r\n\t\t$tableClasses[] = 'wpklikandpay_' . wpklikandpay_offers::getCurrentPageCode() . '_name_column';\r\n\t\t$tableClasses[] = 'wpklikandpay_' . wpklikandpay_offers::getCurrentPageCode() . '_payment_type_column';\r\n\t\t$tableClasses[] = 'wpklikandpay_' . wpklikandpay_offers::getCurrentPageCode() . '_payment_amount_column';\r\n\t\t$tableClasses[] = 'wpklikandpay_' . wpklikandpay_offers::getCurrentPageCode() . '_payment_ref_column';\r\n\t\t$tableClasses[] = 'wpklikandpay_' . wpklikandpay_offers::getCurrentPageCode() . '_payment_recurrent_column';\r\n\r\n\t\t$line = 0;\r\n\t\t$elementList = wpklikandpay_offers::getElement();\r\n\t\tif(count($elementList) > 0)\r\n\t\t{\r\n\t\t\tforeach($elementList as $element)\r\n\t\t\t{\r\n\t\t\t\t$tableRowsId[$line] = wpklikandpay_offers::getDbTable() . '_' . $element->id;\r\n\r\n\t\t\t\t$elementLabel = $element->payment_name;\r\n\t\t\t\t$subRowActions = '';\r\n\t\t\t\tif(current_user_can('wpklikandpay_edit_offers'))\r\n\t\t\t\t{\r\n\t\t\t\t\t$editAction = admin_url('admin.php?page=' . wpklikandpay_offers::getEditionSlug() . '&amp;action=edit&amp;id=' . $element->id);\r\n\t\t\t\t\t$subRowActions .= '\r\n\t\t<a href=\"' . $editAction . '\" >' . __('Modifier', 'wpklikandpay') . '</a>';\r\n\t\t\t\t\t$elementLabel = '<a href=\"' . $editAction . '\" >' . $element->payment_name . '</a>';\r\n\t\t\t\t}\r\n\t\t\t\telseif(current_user_can('wpklikandpay_view_offers_details'))\r\n\t\t\t\t{\r\n\t\t\t\t\t$editAction = admin_url('admin.php?page=' . wpklikandpay_offers::getEditionSlug() . '&amp;action=edit&amp;id=' . $element->id);\r\n\t\t\t\t\t$subRowActions .= '\r\n\t\t<a href=\"' . $editAction . '\" >' . __('Voir', 'wpklikandpay') . '</a>';\r\n\t\t\t\t\t$elementLabel = '<a href=\"' . $editAction . '\" >' . $element->payment_name . '</a>';\r\n\t\t\t\t}\r\n\t\t\t\tif(current_user_can('wpklikandpay_delete_offers'))\r\n\t\t\t\t{\r\n\t\t\t\t\tif($subRowActions != '')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$subRowActions .= '&nbsp;|&nbsp;';\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$subRowActions .= '\r\n\t\t<a href=\"' . admin_url('admin.php?page=' . wpklikandpay_offers::getEditionSlug() . '&amp;action=delete&amp;id=' . $element->id). '\" >' . __('Supprimer', 'wpklikandpay') . '</a>';\r\n\t\t\t\t}\r\n\t\t\t\t$rowActions = '\r\n\t<div id=\"rowAction' . $element->id . '\" class=\"wpklikandpayRowAction\" >' . $subRowActions . '\r\n\t</div>';\r\n\r\n\t\t\t\t/*\tDisplay the amount in the goos shape\t*/\r\n\t\t\t\t$elementAmount = ($element->payment_amount / 100);\r\n\r\n\t\t\t\t/*\tCheck if the payement is single or multiple in order to show the parameters\t*/\r\n\t\t\t\t$recurrentParams = '-';\r\n\t\t\t\tif($element->payment_type == 'subscription_payment')\r\n\t\t\t\t{\r\n\t\t\t\t\t$recurrentParams = $element->payment_subscription_reference;\r\n\t\t\t\t}\r\n\t\t\t\tif($element->payment_type == 'multiple_payment')\r\n\t\t\t\t{\r\n\t\t\t\t\t$recurrent_payment_amount = $element->payment_recurrent_amount;\r\n\t\t\t\t\tif($recurrent_payment_amount == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$recurrent_payment_amount = $element->payment_amount;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$recurrentParams = sprintf(__('%d pr&eacute;l&egrave;vements de %s %s'), $element->payment_recurrent_number, ($recurrent_payment_amount / 100), $currencyIconList[$element->payment_currency]);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tunset($tableRowValue);\r\n\t\t\t\t$tableRowValue[] = array('class' => wpklikandpay_offers::getCurrentPageCode() . '_name_cell', 'value' => $elementLabel . $rowActions);\r\n\t\t\t\t$tableRowValue[] = array('class' => wpklikandpay_offers::getCurrentPageCode() . '_payment_type_cell', 'value' => __($element->payment_type, 'wpklikandpay'));\r\n\t\t\t\t$tableRowValue[] = array('class' => wpklikandpay_offers::getCurrentPageCode() . '_paymnet_amount_cell', 'value' => $elementAmount . '&nbsp;' . $currencyIconList[$element->payment_currency]);\r\n\t\t\t\t$tableRowValue[] = array('class' => wpklikandpay_offers::getCurrentPageCode() . '_paymnet_reference_cell', 'value' => $element->payment_reference_prefix);\r\n\t\t\t\t$tableRowValue[] = array('class' => wpklikandpay_offers::getCurrentPageCode() . '_paymnet_recurrent_cell', 'value' => $recurrentParams);\r\n\t\t\t\t$tableRows[] = $tableRowValue;\r\n\r\n\t\t\t\t$line++;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$subRowActions = '';\r\n\t\t\tif(current_user_can('wpklikandpay_add_offers'))\r\n\t\t\t{\r\n\t\t\t\t$subRowActions .= '\r\n\t<a href=\"' . admin_url('admin.php?page=' . wpklikandpay_offers::getEditionSlug() . '&amp;action=add') . '\" >' . __('Ajouter', 'wpklikandpay') . '</a>';\r\n\t\t\t}\r\n\t\t\t$rowActions = '\r\n\t<div id=\"rowAction' . $element->id . '\" class=\"wpklikandpayRowAction\" >' . $subRowActions . '\r\n\t</div>';\r\n\t\t\t$tableRowsId[] = wpklikandpay_offers::getDbTable() . '_noResult';\r\n\t\t\tunset($tableRowValue);\r\n\t\t\t$tableRowValue[] = array('class' => wpklikandpay_offers::getCurrentPageCode() . '_name_cell', 'value' => __('Aucune offre n\\'a encore &eacute;t&eacute; cr&eacute;&eacute;', 'wpklikandpay') . $rowActions);\r\n\t\t\t$tableRows[] = $tableRowValue;\r\n\t\t}\r\n\t\t$listItemOutput = wpklikandpay_display::getTable($tableId, $tableTitles, $tableRows, $tableClasses, $tableRowsId, $tableSummary, true);\r\n\r\n\t\treturn $listItemOutput;\r\n\t}", "title": "" }, { "docid": "45474593dc00fe625a10fe8625b59d35", "score": "0.56293625", "text": "function field_listing(){\n\t\t$this->field_id();\n\t\t$this->field_type();\n\t\t$this->field_title();\n\t\t$this->field_stats();\n\t\t$this->field_imgFull();\n\t\t// $this->field_imgIcon();\n\t\t$this->field_imgNormal();\n\t\t\n\t\t\n\t\t$company = $this->entry;\n\t\t\n\t\t$this->data['sLocation'] = $this->entry->location;\n\t\t$this->data['fLatitude'] = $this->entry->latitude;\n\t\t$this->data['fLongitude'] = $this->entry->longitude;\n\t\t\n\t\t$this->data['aIndustry'] = array();\n\t\t\n\t\t$industries = $company->getIndustries();\n\t\tforeach($industries as $item){\n\t\t\t$this->data['aIndustry'][] = array(\n\t\t\t\t'id'=>$item->getIdentity(),\n\t\t\t\t'type'=>$item->getType(),\n\t\t\t\t'title'=>$item->getTitle(),\n\t\t\t);\n\t\t}\n\t\t\n\t\t$this->data['sStatus'] = $company->status;\n\t\t\n\t\t$this->data['iTotalDraftJobs'] = $this->countJobsWithStatus('draft');\n\t\t$this->data['iTotalPendingJobs'] = $this->countJobsWithStatus('pending');\n\t\t$this->data['iTotalPublishedJobs'] = $this->countJobsWithStatus('published');\n\t\t$this->data['iTotalEndedJobs'] = $this->countJobsWithStatus('ended');\n\t\t$this->data['iTotalExpiredJobs'] = $this->countJobsWithStatus('expired');\n\t\t$this->data['iTotalDeniedJobs'] = $this->countJobsWithStatus('denied');\n\t\t$this->data['bCanClose'] = ($company->isClosable() && $company->status == 'published')?1:0;\n\t\t$this->data['bCanPublish'] = ($company->isClosable() && $company->status == 'closed')?1:0;\n\t\t$this->data['bCanEdit'] = $company->isEditable();\n\t\t$this->data['bCanDelete'] = $company->isDeletable();\n\t\t$this->data['bCanView'] = $company->isViewable();\n\t\t$this->data['bCanComment'] = $company->isCommentable();\n\t\t$this->data['sDescription'] = $company->description;\n\t\t$this->data['sWebsite'] = $company->website;\n\t\t$this->data['sSize'] = $company->getSize();\n\t\t$this->data['sSizeFrom'] = $company->from_employee;\n\t\t$this->data['sSizeTo'] = $company->to_employee;\n\t\t\n\t\t$this->field_user();\n\t}", "title": "" }, { "docid": "27147ad1fb6c2345cdfa4cbfc490755d", "score": "0.562771", "text": "function searchable_form_lists()\n {\n //check if logged in\n $this->_is_logged_in();\n\n $this->data['title'] = \"List searchable form\";\n\n //check permission\n //$this->has_allowed_perm($this->router->fetch_method());\n\n $config = array(\n 'base_url' => $this->config->base_url(\"xform/searchable_form_lists\"),\n 'total_rows' => $this->Xform_model->count_searchable_form(),\n 'uri_segment' => 3,\n );\n\n $this->pagination->initialize($config);\n $page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0;\n\n $this->data['form_list'] = $this->Xform_model->get_searchable_form_list($this->pagination->per_page, $page);\n $this->data[\"links\"] = $this->pagination->create_links();\n\n foreach ($this->data['form_list'] as $k => $value) {\n $this->data['form_list'][$k]->xform = $this->Xform_model->get_form_by_id($value->xform_id);\n }\n\n //render view\n $this->load->view('header', $this->data);\n $this->load->view(\"searchable_form_list\");\n $this->load->view('footer');\n }", "title": "" }, { "docid": "71174f71334e63f2a7d5584479891ecb", "score": "0.5625422", "text": "function generatenexlistFieldHTML($did,$row) {\n\n global $_CONF,$_TABLES;\n\n $p = new Template($_CONF['path_layout'] . 'nexlist');\n $p->set_file (array (\n 'fields' => 'definition_fields.thtml',\n 'field_rec' => 'definition_field_record.thtml'));\n\n $p->set_var('definition_id',$did);\n $p->set_var('rowid',$row);\n\n $sql = \"SELECT * FROM {$_TABLES['nexlistfields']} WHERE lid='{$did}' ORDER BY id\";\n $FLD_query = DB_Query($sql);\n $numfields = DB_numrows($FLD_query);\n\n if ($numfields > 0) {\n $j=1;\n\n $p->set_var('show_fields','');\n while ( $FLD = DB_fetchArray($FLD_query,false) ) {\n $edit_link = \"&nbsp;[<a href=\\\"#\\\" onClick='editListField({$row},{$j});'>Edit</a>&nbsp;]\";\n $del_link = \"&nbsp;[<a href=\\\"#\\\" onClick='ajaxUpdateDefinition(\\\"deleteField\\\",{$row},{$j});'\\\">Delete</a>&nbsp;]\";\n $p->set_var('field_recid',$FLD['id']);\n $p->set_var('field_name',$FLD['fieldname']);\n $p->set_var('field_value',$FLD['value_by_function']);\n $p->set_var('field_width',$FLD['width']);\n $p->set_var('field_id',$j);\n $p->set_var('edit_link',$edit_link);\n $p->set_var('delete_link',$del_link);\n\n if ($FLD['predefined_function'] == 1) {\n $checked = 'CHECKED';\n $display_ftext = 'none';\n $display_fddown = '';\n $p->set_var('function_dropdown_options', nexlist_getCustomListFunctionOptions($FLD['value_by_function']));\n }\n else {\n $checked = '';\n $display_ftext = '';\n $display_fddown = 'none';\n $p->set_var('function_dropdown_options', nexlist_getCustomListFunctionOptions());\n }\n\n $p->set_var('checked', $checked);\n $p->set_var('display_ftext', $display_ftext);\n $p->set_var('display_fddown', $display_fddown);\n\n if ($j == 1) {\n $p->parse('definition_field_records','field_rec');\n } else {\n $p->parse('definition_field_records','field_rec',true);\n }\n\n $j++;\n }\n $p->parse('definition_fields','fields');\n\n } else {\n $p->set_var('show_fields','none');\n $p->set_var('definition_field_records','');\n }\n $p->parse ('output', 'fields');\n $html = $p->finish ($p->get_var('output'));\n $html = htmlentities($html);\n return $html;\n\n}", "title": "" }, { "docid": "bafb905f8ebe33726c0ec7307a7791a3", "score": "0.56204665", "text": "public function reportI()\n {\n $data['cur_date'] = $this->mdl_pmp->getCurDate();\n\n $data['cur_year'] = $data['cur_date']->SYSDATE_YYYY;\n \n //get year dd list\n $data['year_list'] = $this->dropdown($this->mdl_pmp->getYearList(), 'CM_YEAR', 'CM_YEAR', '--Please select--');\n \n //get month dd list\n $data['month_list'] = $this->dropdown($this->mdl_pmp->getMonthList(), 'CM_MM', 'CM_MONTH', '--Please select--');\n\n // DEPARTMENT LIST\n $data['dept_list'] = $this->dropdown($this->mdl_pmp->getDeptList(), 'DM_DEPT_CODE', 'DEPT_CODE_DESC', ' ---Please select--- ');\n\n // CATEGORY LIST\n $data['cat_list'] = $this->dropdown($this->mdl_pmp->getCrCategoryList(), 'CC_CODE', 'CC_CODE_DESC_CC_FROM_TO', ' ---Please select--- ');\n\n // ALLOCATION LIST\n $data['alloc_list'] = array(''=>'All', 'CONFERENCE'=>'CONFERENCE', 'DEPARTMENT'=>'DEPARTMENT');\n\n // STATUS LIST\n $data['sts_list'] = array(''=>'-', 'APPLY'=>'APPLY', 'INPROGRESS'=>'IN PROGRESS', 'APPROVE'=>'APPROVE', 'REJECT'=>'REJECT', 'CANCEL'=>'CANCEL');\n\n $this->render($data);\n }", "title": "" }, { "docid": "f208f089ff57be3ad7eb67ad110e2f4c", "score": "0.56194603", "text": "public function getListViewCount() {\n\t\t$db = PearDatabase::getInstance();\n\n\t\t$queryGenerator = $this->get('query_generator');\n\n\n\t\t$searchParams = $this->get('search_params');\n\t\tif(empty($searchParams)) {\n\t\t\t$searchParams = array();\n\t\t}\n\n\t\t// for Documents folders we should filter with folder id as well\n\t\t$folderKey = $this->get('folder_id');\n\t\t$folderValue = $this->get('folder_value');\n\t\tif(!empty($folderValue)) {\n\t\t\t$queryGenerator->addCondition($folderKey,$folderValue,'e');\n\t\t}\n\n\t\t$glue = \"\";\n\t\tif(count($queryGenerator->getWhereFields()) > 0 && (count($searchParams)) > 0) {\n\t\t\t$glue = QueryGenerator::$AND;\n\t\t}\n\t\t$queryGenerator->parseAdvFilterList($searchParams, $glue);\n\n\t\t$searchKey = $this->get('search_key');\n\t\t$searchValue = $this->get('search_value');\n\t\t$operator = $this->get('operator');\n\t\tif(!empty($searchKey)) {\n\t\t\t$queryGenerator->addUserSearchConditions(array('search_field' => $searchKey, 'search_text' => $searchValue, 'operator' => $operator));\n\t\t}\n\t\t$moduleName = $this->getModule()->get('name');\n\t\t$moduleModel = Vtiger_Module_Model::getInstance($moduleName);\n\n\t\t$listQuery = $this->getQuery();\n\t\t$sourceModule = $this->get('src_module');\n\t\tif(!empty($sourceModule)) {\n\t\t\t$moduleModel = $this->getModule();\n\t\t\tif(method_exists($moduleModel, 'getQueryByModuleField')) {\n\t\t\t\t$overrideQuery = $moduleModel->getQueryByModuleField($sourceModule, $this->get('src_field'), $this->get('src_record'), $listQuery);\n\t\t\t\tif(!empty($overrideQuery)) {\n\t\t\t\t\t$listQuery = $overrideQuery;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$position = stripos($listQuery, ' from ');\n\t\tif ($position) {\n\t\t\t$split = preg_split('/ from /i', $listQuery);\n\t\t\t$splitCount = count($split);\n\t\t\t// If records is related to two records then we'll get duplicates. Then count will be wrong\n\t\t\t$meta = $queryGenerator->getMeta($this->getModule()->getName());\n\t\t\t$columnIndex = $meta->getObectIndexColumn();\n\t\t\t$baseTable = $meta->getEntityBaseTable();\n\t\t\t$listQuery = \"SELECT count(distinct($baseTable.$columnIndex)) AS count \";\n\t\t\tfor ($i=1; $i<$splitCount; $i++) {\n\t\t\t\t$listQuery = $listQuery. ' FROM ' .$split[$i];\n\t\t\t}\n\t\t}\n\n\t\tif($this->getModule()->get('name') == 'Calendar'){\n\t\t\t$listQuery .= ' AND activitytype <> \"Emails\"';\n\t\t}\n\n\t\t$listResult = $db->pquery($listQuery, array());\n\t\treturn $db->query_result($listResult, 0, 'count');\n\t}", "title": "" }, { "docid": "049d09b9bafc8d9e5ef85f4dd2ef4015", "score": "0.56190413", "text": "function loadOldReport($id, $fid, $view_groupscope) {\n/*\tneed to create the following for passing back...\n\t$reportscope - ,1,31,45, list of group ids\n\t$_POST['oldcols'] - 234,56,781 list of ele_ids for visible columns (handles for a framework, but an old report will never be for a framework)\n\t$_POST['asearch'] - flat array of search elements, separator: --> /,%^&2 <--, possible elements:\n\t\t[field]ele_id[/field], ==, !=, <, >, <=, >=, LIKE, NOT, NOT LIKE, AND, OR, ( and )\n\t$_POST['calc_cols'] - 234/56/781 - list of ele_ids, or can include uid, proxyid, mod_date, creation_date\n\t$_POST['calc_calcs'] - sum,avg,min,max,count,per/...next column \n\t$_POST['calc_blanks'] - all,noblanks,onlyblanks/...next column\n\t$_POST['calc_grouping'] - none,uid,proxyid,mod_date,creation_date,orlistofele_ids/...next column\n\t$_POST['sort'] - ele_id for form, handle for framework\n\t$_POST['order'] - SORT_ASC, SORT_DESC\n*/\n\tglobal $xoopsDB;\n\t$s = \"&*=%4#\";\n\t// get all data from DB\n\t$data = q(\"SELECT report_ispublished, report_scope, report_fields, report_search_typeArray, report_search_textArray, report_andorArray, report_calc_typeArray, report_sort_orderArray, report_ascdscArray, report_globalandor FROM \" . $xoopsDB->prefix(\"formulize_reports\") . \" WHERE report_id=$id AND report_id_form=$fid\");\n\n\t// reportscope\n\t$scope = explode($s, $data[0]['report_scope']);\n\tif($scope[0] == \"\") { \n\t\tif($view_groupscope) {\n\t\t\t$found_scope = \"group\";\n\t\t} else {\n\t\t\t$found_scope = \"mine\";\n\t\t}\n\t} else {\n\t\tforeach($scope as $thisscope) {\n\t\t\tif(substr($thisscope, 0, 1) == \"g\") {\n\t\t\t\t$found_scope .= \",\" . substr($thisscope, 1);\n\t\t\t} else { // the case of only userscopes, need to set the scope to the groups that the user is a member of\n\t\t\t\t$user_scope[] = $thisscope; // save and include as an advanced search property looking for the user id\n\t\t\t\tif(!$membership_handler) { $membership_handler =& xoops_gethandler('membership'); }\n\t\t\t\tunset($uidGroups);\n\t\t\t\tunset($groupString);\n\t\t\t\t$uidGroups = $membership_handler->getGroupsByUser($thisscope);\n\t\t\t\t$uidGroups = array_unique($uidGroups);\n\t\t\t\t// remove registered users from the $uidGroups -- registered users is equivalent to \"all groups\" since everyone is a member of it\n\t\t\t\tforeach($uidGroups as $key=>$thisgroup) {\n\t\t\t\t\tif($thisgroup == 2) { unset($uidGroups[$key]); }\n\t\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t\t$groupString = implode(\",\", $uidGroups);\t\t\t\t\n\t\t\t\t$found_scope .= \",\" . $groupString;\n\t\t\t}\n\t\t}\n\t\t$found_scope .= \",\";\n\t}\n\n\t$to_return[0] = $found_scope;\n\n\t// oldcols\n\t$tempcols = explode($s, $data[0]['report_fields']);\n// This conversion now performed as part of DB query\n//\tforeach($tempcols as $col) {\n//\t\t$cols[] = str_replace(\"`\", \"'\", $col);\n//\t}\n\t$ids = convertHeadersToIds($cols, $fid);\n\t$to_return[1] = implode(\",\", $ids);\n\n\t// asearch - complicated!\n\t$s2 = \"/,%^&2\";\n\t$gao = $data[0]['report_globalandor'];\n\tif($gao == \"and\") { $gao = \"AND\"; }\n\tif($gao == \"or\") { $gao = \"OR\"; }\n\t$terms = explode($s, $data[0]['report_search_textArray']);\n\t$tempops = explode($s, $data[0]['report_search_typeArray']);\n\tforeach($tempops as $thisop) {\n\t\tswitch($thisop) {\n\t\t\tcase \"equals\":\n\t\t\t\t$ops[] = \"==\";\n\t\t\t\tbreak;\n\t\t\tcase \"not\":\n\t\t\t\t$ops[] = \"!=\";\n\t\t\t\tbreak;\n\t\t\tcase \"like\":\n\t\t\t\t$ops[] = \"LIKE\";\n\t\t\t\tbreak;\n\t\t\tcase \"notlike\":\n\t\t\t\t$ops[] = \"NOT LIKE\";\n\t\t\t\tbreak;\n\t\t\tcase \"greaterthan\":\n\t\t\t\t$ops[] = \">\";\n\t\t\t\tbreak;\n\t\t\tcase \"greaterthanequal\":\n\t\t\t\t$ops[] = \">=\";\n\t\t\t\tbreak;\n\t\t\tcase \"lessthan\":\n\t\t\t\t$ops[] = \"<\";\n\t\t\t\tbreak;\n\t\t\tcase \"lessthanequal\":\n\t\t\t\t$ops[] = \"<=\";\n\t\t\t\tbreak;\n\t\t}\n\t}\n\t$laos = explode($s, $data[0]['report_andorArray']);\n\t$start = 1;\n\n\t// for each found column, we should create:\n\t// ($field $op $term1 $localandor $field $op $term2....)\n\n\tfor($i=0;$i<count($ids);$i++) {\n\t\tif($terms[$i]) {\n\t\t\tif(!$start) {\n\t\t\t\t$asearch .= $s2 . $gao . $s2;\n\t\t\t}\n\t\t\t$start = 0; \n\t\t\t$asearch .= \"(\";\n\t\t\tunset($allterms);\n\t\t\t$allterms = explode(\",\", $terms[$i]);\n\t\t\t$start2 = 1;\n\t\t\tforeach($allterms as $thisterm) {\n\t\t\t\tif(!$start2) {\n\t\t\t\t\tif($laos[$i] == \"and\") { $lao = \"AND\"; }\n\t\t\t\t\tif($laos[$i] == \"or\") { $lao = \"OR\"; }\n\t\t\t\t\t$asearch .= $s2 . $lao;\n\t\t\t\t}\n\t\t\t\t$start2 = 0;\n\t\t\t\t$asearch .= $s2 . \"[field]\" . $ids[$i] . \"[/field]\";\n\t\t\t\t$asearch .= $s2 . $ops[$i];\n\t\t\t\t$termtouse = str_replace(\"[,]\", \",\", $thisterm);\n\t\t\t\t$asearch .= $s2 . $termtouse;\n\t\t\t}\n\t\t\t$asearch .= $s2 . \")\";\n\t\t}\n\t}\n\t// add in any user_scope found...\n\tif(count($user_scope)>0) {\n\t\tif($asearch) { \n\t\t\t$asearch .= $s2 . \"AND\" . $s2 . \"(\" . $s2; \n\t\t\t$needtoclose = 1;\n\t\t}\n\t\t$start = 1;\n\t\tforeach($user_scope as $user) {\n\t\t\tif(!$start) {\n\t\t\t\t$asearch .= $s2 . \"OR\" . $s2;\n\t\t\t}\n\t\t\t$start = 0;\n\t\t\t$name = convertUids($user, \"uid\");\n\t\t\t$asearch .= \"[field]uid[/field]\" . $s2 . \"==\" . $s2 . $name; \n\t\t}\n\t\tif($needtoclose) { $asearch .= $s2 . \")\"; }\n\t}\n\n\t$to_return[2] = $asearch;\n\t\t\n\t// calcs - special separator, and then the standard separator within each column (since multiple calcs can be requested)\n\t$oldcalcs = explode(\"!@+*+6-\", $data[0]['report_calc_typeArray']);\n\tunset($cols);\n\tfor($i=0;$i<count($ids);$i++) {\n\t\tif($oldcalcs[$i]) {\n\t\t\t$cols[] = $ids[$i];\n\t\t\tunset($localcalcs);\n\t\t\t$thesecalcs = explode($s, $oldcalcs[$i]);\n\t\t\tforeach($thesecalcs as $acalc) {\n\t\t\t\tif(strstr($acalc, \"selected\")) {\n\t\t\t\t\tif(strstr($acalc, \"sum\")) {\n\t\t\t\t\t\t$localcalcs[] = \"sum\";\n\t\t\t\t\t}\n\t\t\t\t\tif(strstr($acalc, \"average\")) {\n\t\t\t\t\t\t$localcalcs[] = \"avg\";\n\t\t\t\t\t}\n\t\t\t\t\tif(strstr($acalc, \"min\")) {\n\t\t\t\t\t\t$localcalcs[] = \"min\";\n\t\t\t\t\t}\n\t\t\t\t\tif(strstr($acalc, \"max\")) {\n\t\t\t\t\t\t$localcalcs[] = \"max\";\n\t\t\t\t\t}\n\t\t\t\t\tif(strstr($acalc, \"count\")) {\n\t\t\t\t\t\t$localcalcs[] = \"count\";\n\t\t\t\t\t}\n\t\t\t\t\tif(strstr($acalc, \"percent\")) {\n\t\t\t\t\t\t$localcalcs[] = \"per\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$foundcalcs = implode(\",\", $localcalcs);\n\t\t\t$calcs[] = $foundcalcs;\n\t\t\tunset($theseblanks);\n\t\t\tunset($thesegrouping);\n\t\t\tfor($x=0;$x<count($localcalcs);$x++) {\n\t\t\t\t$theseblanks[] = \"all\";\n\t\t\t\t$thesegrouping[] = \"none\";\n\t\t\t}\n\t\t\t$tempblanks = implode(\",\", $theseblanks);\n\t\t\t$blanks[] = $tempblanks;\n\t\t\t$tempgrouping = implode(\",\", $thesegrouping);\n\t\t\t$grouping[] = $tempgrouping;\t\t\n\t\t}\n\t}\n\t$to_return[3] = implode(\"/\", $cols);\n\t$to_return[4] = implode(\"/\", $calcs);\n\t$to_return[5] = implode(\"/\", $blanks);\n\t$to_return[6] = implode(\"/\", $grouping);\n\n\t// sort and order\n\t$sorts = explode($s, $data[0]['report_sort_orderArray']);\n\t$orders = explode($s, $data[0]['report_ascdscArray']);\n\tfor($i=0;$i<count($ids);$i++) {\n\t\tif($sorts[$i] == 1) {\n\t\t\t$to_return[7] = $ids[$i];\n\t\t\tif($orders[$i] == \"ASC\") { \n\t\t\t\t$to_return[8] = \"SORT_ASC\"; \n\t\t\t} else {\n\t\t\t\t$to_return[8] = \"SORT_DESC\";\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(!$to_return[7]) { $to_return[7] = \"\"; }\n\tif(!$to_return[8]) { $to_return[8] = \"\"; }\n\n\t// hide list, hide calcs\n\t// if ispub includes a 3 then hide list, show calcs\n\tif(strstr($data[0]['report_ispublished'], \"3\")) {\n\t\t$to_return[9] = 1;\n\t\t$to_return[10] = 0;\n\t} elseif($to_return[3]) {\n\t\t$to_return[9] = 1;\n\t\t$to_return[10] = 0;\n\t} else {\n\t\t$to_return[9] = 0;\n\t\t$to_return[10] = 1;\n\t}\n\n\t// lock controls\n\t// if ispub includes a 2 or a 3, then lock controls\n\tif(strstr($data[0]['report_ispublished'], \"3\") OR strstr($data[0]['report_ispublished'], \"2\")) {\n\t\t$to_return[11] = 1;\n\t} else {\n\t\t$to_return[11] = 0;\n\t}\n\n\treturn $to_return;\n\n}", "title": "" }, { "docid": "82535f25cca5e2277edfa4342d642fec", "score": "0.56141967", "text": "public function show_list($order_name='',$order_by='desc',$start=NULL,$limit=NULL)\r\n {\r\n try\r\n {\r\n $this->data['heading']=\"Newsletter\";////Package Name[@package] Panel Heading\r\n\r\n ///////////generating search query///////\r\n\t\t\t\r\n ////////Getting Posted or session values for search///\r\n $s_search=(isset($_POST[\"h_search\"])?$this->input->post(\"h_search\"):$this->session->userdata(\"h_search\"));\r\n $s_milestones_title=($this->input->post(\"h_search\")?$this->input->post(\"txt_subject\"):$this->session->userdata(\"txt_subject\")); \r\n $dt_created_on=($this->input->post(\"h_search\")?$this->input->post(\"txt_created_on\"):$this->session->userdata(\"txt_created_on\"));\r\n ////////end Getting Posted or session values for search///\r\n \r\n \r\n $s_where=\"WHERE i_del_status != 2 \";\r\n if($s_search==\"advanced\")\r\n {\r\n $s_where.=\" AND n.s_subject LIKE '%\".get_formatted_string($s_milestones_title).\"%' \";\r\n if(trim($dt_created_on)!=\"\")\r\n {\r\n $dt_start=date(\"Y-m-d\",strtotime(trim($dt_created_on.\" \"))) ; \r\n $s_where.=\" And FROM_UNIXTIME( n.dt_entry_date , '%Y-%m-%d' ) ='\".$dt_start.\"' \";\r\n unset($dt_start);\r\n }\r\n \r\n /////Storing search values into session///\r\n $this->session->set_userdata(\"txt_subject\",$s_milestones_title);\r\n $this->session->set_userdata(\"txt_created_on\",$dt_created_on);\r\n $this->session->set_userdata(\"h_search\",$s_search);\r\n \r\n $this->data[\"h_search\"]=$s_search;\r\n $this->data[\"txt_subject\"]=$s_milestones_title; \r\n $this->data[\"txt_created_on\"]=$dt_created_on; \r\n /////end Storing search values into session/// \r\n \r\n }\r\n else////List all records, **not done\r\n {\r\n $s_where=\"WHERE i_del_status != 2 \";\r\n /////Releasing search values from session///\r\n $this->session->unset_userdata(\"txt_subject\");\r\n $this->session->unset_userdata(\"txt_created_on\");\r\n $this->session->unset_userdata(\"h_search\");\r\n \r\n $this->data[\"h_search\"]=$s_search;\r\n $this->data[\"txt_subject\"]=\"\"; \r\n $this->data[\"txt_created_on\"]=\"\"; \r\n /////end Storing search values into session/// \r\n \r\n }\r\n unset($s_search,$s_user_type,$dt_created_on);\r\n ///Setting Limits, If searched then start from 0////\r\n $i_uri_seg =6;\r\n if($this->input->post(\"h_search\"))\r\n {\r\n $start=0;\r\n }\r\n else\r\n {\r\n $start=$this->uri->segment($i_uri_seg);\r\n }\r\n ///////////end generating search query/////// \r\n \r\n $arr_sort = array(0=>'s_subject',1=>'dt_entry_date',2=>'i_status'); \r\n\t\t\t$s_order_name = !empty($order_name)?in_array(decrypt($order_name),$arr_sort)?decrypt($order_name):$arr_sort[1]:$arr_sort[1];\r\n \r\n \r\n $limit\t= $this->i_admin_page_limit;\r\n\t\t\t$info\t= $this->mod_rect->fetch_multi_sorted_list($s_where,$s_order_name,$order_by,intval($start),$limit);\r\n\r\n /////////Creating List view for displaying/////////\r\n $table_view=array(); \r\n\t\t\t$order_name = empty($order_name)?encrypt($arr_sort[1]):$order_name; \r\n\t\t\t \r\n //////Table Headers, with width,alignment///////\r\n $table_view[\"caption\"]=\"Newsletter\";\r\n $table_view[\"total_rows\"]=count($info);\r\n\t\t\t$table_view[\"total_db_records\"]=$this->mod_rect->gettotal_info($s_where);\r\n\t\t\t$table_view[\"order_name\"]=$order_name;\r\n\t\t\t$table_view[\"order_by\"] =$order_by;\r\n $table_view[\"src_action\"]= $this->pathtoclass.$this->router->fetch_method(); \r\n \r\n $table_view[\"headers\"][0][\"width\"]\t=\"40%\";\r\n $table_view[\"headers\"][0][\"align\"]\t=\"left\";\r\n\t\t\t$table_view[\"headers\"][0][\"sort\"]\t= array('field_name'=>encrypt($arr_sort[0]));\r\n $table_view[\"headers\"][0][\"val\"]\t=\"Newsletter Title\";\r\n\t\t\t$table_view[\"headers\"][1][\"sort\"]\t= array('field_name'=>encrypt($arr_sort[1]));\r\n $table_view[\"headers\"][1][\"val\"]\t=\"Created On\"; \r\n\t\t\t\r\n //////end Table Headers, with width,alignment///////\r\n\t\t\t\r\n /////////Table Data/////////\r\n for($i=0; $i<$table_view[\"total_rows\"]; $i++)\r\n {\r\n $i_col=0;\r\n $table_view[\"tablerows\"][$i][$i_col++]\t= encrypt($info[$i][\"id\"]);////Index 0 must be the encrypted PK \r\n $table_view[\"tablerows\"][$i][$i_col++]\t=$info[$i][\"s_subject\"];\r\n $table_view[\"tablerows\"][$i][$i_col++]\t=$info[$i][\"dt_created_on\"];\r\n\r\n } \r\n /////////end Table Data/////////\r\n unset($i,$i_col,$start,$limit); \r\n \r\n \r\n\t\t\t$this->data[\"table_view\"]=$this->admin_showin_order_table($table_view);\r\n /////////Creating List view for displaying/////////\r\n $this->data[\"search_action\"]=$this->pathtoclass.$this->router->fetch_method();///used for search form action\r\n //echo $this->data[\"search_action\"];\r\n \r\n $this->render(); \r\n unset($table_view,$info);\r\n \r\n }\r\n catch(Exception $err_obj)\r\n {\r\n \tshow_error($err_obj->getMessage());\r\n } \r\n }", "title": "" }, { "docid": "4902d1019f6cdb6d6c4e809da99afe9b", "score": "0.56116015", "text": "private function tableShow($list){\r\n\r\n$html = '<table class=\"mwms_data_list contentmod_data_list\">\r\n\t<caption id=\"campaign_browser\"><div id=\"browser_filter\">'.$this->setFilterForm().'</div></caption>\r\n\t<thead>\r\n\t\t<tr>\r\n\t\t\t<th style=\"width:80px;\">'.$this->lng['adv_campaign_id'].' ('.$this->result_count.') '.$this->setOrder('campaign_order','id_campaign', 'campaign_order_direction', $this->lng['adv_campaign_id'],'campaign.browser.inner.php', true).'</th>\r\n\t\t\t<th>'.$this->lng['adv_campaign_title'].' '.$this->setOrder('campaign_order','title', 'campaign_order_direction', $this->lng['adv_campaign_title'],'campaign.browser.inner.php', true).'</th>\r\n\t\t\t<th style=\"width:140px;\">'.$this->lng['adv_campaign_date_ins'].' '.$this->setOrder('campaign_order','date_ins', 'campaign_order_direction', $this->lng['adv_campaign_date_ins'],'campaign.browser.inner.php', true).'</th>\r\n\t\t\t<th style=\"width:140px;\">'.$this->lng['adv_campaign_date_upd'].' '.$this->setOrder('campaign_order','date_upd', 'campaign_order_direction', $this->lng['adv_campaign_date_upd'],'campaign.browser.inner.php', true).'</th>\r\n\t\t\t<th class=\"toolbar\">\r\n\t\t\t\t<button class=\"adv_campaign_new button\" title=\"'.$this->lng['adv_campaign_new'].'\">'.$this->lng['adv_campaign_new'].'</button>\r\n\t\t\t</th>\r\n\t\t</tr>\r\n\t</thead><tbody>\r\n\t';\r\n\r\n\tforeach($list as $d){\r\n\t\t\r\n\t\t$strI = null;\r\n\t\t$strU = null;\r\n\t\t\r\n\t\tif($d['id_ins'] > 0 || $d['id_upd'] > 0){\r\n\t\t\t$uD = new UserBrowser;\r\n\t\t\t$useriData = $uD->getUserData($d['id_ins']);\r\n\t\t\t$useruData = $uD->getUserData($d['id_upd']);\r\n\t\t\t$iusername = count($useriData)>0 ? '<br />'.$useriData['username']: null;\r\n\t\t\t$uusername = count($useruData)>0 ? '<br />'.$useruData['username']: null;\r\n\t\t\t$strI = $d['id_ins'] > 0 ? $iusername: $strI;\r\n\t\t\t$strU = $d['id_upd'] > 0 ? $uusername: $strU;\r\n\t\t}\r\n\t\t\r\n\t\t$dateI = null;\r\n\t\t$dateU = null;\r\n\t\t\r\n\t\tif($d['date_ins'] > 0 || $d['id_upd'] > 0){\r\n\t\t\t$dateI = $d['date_ins'] > 0 ? date(Lng::get('system/date_time_format_precise'), $d['date_ins']): $dateI;\r\n\t\t\t$dateU = $d['date_upd'] > 0 ? date(Lng::get('system/date_time_format_precise'), $d['date_upd']): $dateU;\r\n\t\t}\r\n\t\t\r\n\t\t$html .= '<tr id=\"content_cast_'.$d['id_campaign'].'\" class=\"content_cast\" title=\"'.$d['title'].'\">\r\n\t\t\t<td>'.$d['id_campaign'].' <input type=\"hidden\" name=\"id_campaign\" value=\"'.$d['id_campaign'].'\" /></td>\r\n\t\t\t<td>'.$d['title'].'</td>\r\n\t\t\t<td>'.$dateI.$strI.'</td>\r\n\t\t\t<td>'.$dateU.$strU.'</td>\r\n\t\t\t<td class=\"toolbar\"></td>\r\n\t\t</tr>';\r\n\t\r\n\t}\r\n\r\n\treturn $html.'</tbody></table>';\r\n}", "title": "" }, { "docid": "23a29639dfba11cb0bc9b2e6bc84dfad", "score": "0.560883", "text": "function display()\r\n {\r\n global $mainframe;\r\n $db =& JFactory::getDBO();\r\n $context\t\t\t\t\t= 'com_fabrik.element.list.';\r\n $filter_order\t\t\t= $mainframe->getUserStateFromRequest( $context.'filter_order',\t\t'filter_order',\t'ordering',\t'cmd' );\r\n $filter_order_Dir\t= $mainframe->getUserStateFromRequest( $context.'filter_order_Dir',\t'filter_order_Dir',\t'',\t\t\t'word' );\r\n $limit\t\t\t\t\t\t= $mainframe->getUserStateFromRequest( $context.'limit', 'limit', $mainframe->getCfg('list_limit'), 'int' );\r\n $limitstart \t\t\t= $mainframe->getUserStateFromRequest( $context.'limitstart', 'limitstart', 0, 'int' );\r\n $filter_elementTypeId\t= $mainframe->getUserStateFromRequest( $context.\"filter_elementTypeId\", 'filter_elementTypeId', '' );\r\n $filter_groupId \t\t= $mainframe->getUserStateFromRequest( $context.\"filter_groupId\", 'filter_groupId', 0, 'int' );\r\n $search \t\t\t\t\t\t= $mainframe->getUserStateFromRequest( $context.\"filter_elementName\", 'filter_elementName', '' );\r\n $filter_showInTable\t= $mainframe->getUserStateFromRequest( $context.\"filter_showInTable\", 'filter_showInTable', '' );\r\n $filter_published \t= $mainframe->getUserStateFromRequest( $context.\"filter_published\", 'filter_published', '' );\r\n\r\n $lists = array();\r\n $where = array();\r\n\r\n // table ordering\r\n $lists['order_Dir']\t= $filter_order_Dir;\r\n $lists['order']\t\t= $filter_order;\r\n\r\n\r\n // used by filter\r\n if ($filter_elementTypeId != '') {\r\n $where[] = \" e.plugin = '$filter_elementTypeId' \";\r\n }\r\n //used by filter\r\n if ($filter_groupId >= 1) {\r\n $where[] = \" e.group_id = '$filter_groupId' \";\r\n }\r\n // filter the element names\r\n if ($search != '') {\r\n $where[] = \" e.name LIKE '%$search%' OR e.label LIKE '%$search%'\";\r\n }\r\n // filter if its shown in table\r\n if ($filter_showInTable != '') {\r\n $where[] = \" e.show_in_table_summary = '$filter_showInTable'\";\r\n }\r\n\r\n // filter if its published\r\n if ($filter_published != '') {\r\n $where[] = \" e.state = '$filter_published'\";\r\n }\r\n $where\t\t= count( $where ) ? ' WHERE ' . implode( ' AND ', $where ) : '';\r\n $orderby\t= ' ORDER BY '. $filter_order .' '. $filter_order_Dir .', g.id, e.ordering';\r\n\r\n // get the total number of records\r\n $db->setQuery( \"SELECT COUNT(*) FROM #__fabrik_elements AS e \". $where );\r\n $total = $db->loadResult();\r\n echo $db->getErrorMsg();\r\n\r\n jimport('joomla.html.pagination');\r\n $pageNav \t\t\t= new JPagination( $total, $limitstart, $limit );\r\n\r\n $sql = \"SELECT *,u.name AS editor, e.id AS id, \" .\r\n\t\t\t\"\\n e.checked_out AS checked_out, #__fabrik_plugins.label AS pluginlabel,\t \" .\r\n\t\t\t\"\\n e.checked_out_time AS checked_out_time, \" .\r\n\t\t\t\"\\n e.state as state, g.name AS group_name, \" .\r\n\t\t\t\"\\n e.name AS name, e.label AS label \" .\r\n\t\t\t\"\\n FROM #__fabrik_elements AS e \" .\r\n\t\t\t\"\\n LEFT JOIN #__fabrik_groups AS g \" .\r\n\t\t\t\"\\n ON e.group_id = g.id \" .\r\n\t\t\t\"\\n LEFT JOIN #__fabrik_plugins \" .\r\n\t\t\t\"\\n ON e.plugin = #__fabrik_plugins.name \" .\r\n\t\t\t\"\\n LEFT JOIN #__users AS u ON e.checked_out = u.id \".\r\n\t\t\t\"\\n $where $orderby \";\r\n\r\n $db->setQuery( $sql, $pageNav->limitstart, $pageNav->limit );\r\n $rows \t\t\t\t= $db->loadObjectList( );\r\n\r\n //element types\r\n $pluginManager\t \t=& JModel::getInstance( 'Pluginmanager', 'FabrikModel' );\r\n $pluginManager->_group = 'element';\r\n $lists['elementId'] = $pluginManager->getElementTypeDd( $filter_elementTypeId, 'filter_elementTypeId', 'class=\"inputbox\" onchange=\"document.adminForm.submit( );\"', '- ' . JText::_( 'ELEMENT TYPE' ) . ' -' );\r\n\r\n //groups into a drop down list\r\n $groupModel \t\t\t= JModel::getInstance( 'Group', 'FabrikModel' );\r\n $lists['groupId'] \t= $groupModel->makeDropDown( $filter_groupId, '- ' . JText::_( 'GROUP' ) . ' -' );\r\n\r\n $yesNoList \t\t\t= FabrikHelperHTML::yesNoOptions( '', '- ' . JText::_( 'SHOW IN TABLE' ) . ' -');\r\n $lists['filter_showInTable'] = JHTML::_( 'select.genericlist', $yesNoList, 'filter_showInTable', 'class=\"inputbox\" onchange=\"document.adminForm.submit( );\"', 'value', 'text', $filter_showInTable );\r\n\r\n //filter on published list\r\n $yesNoList \t\t\t= FabrikHelperHTML::yesNoOptions( '', '- ' . JText::_( 'PUBLISHED' ) . ' -' );\r\n $lists['filter_published'] = JHTML::_( 'select.genericlist', $yesNoList, 'filter_published', 'class=\"inputbox\" onchange=\"document.adminForm.submit( );\"', 'value', 'text', $filter_published );\r\n $lists['search'] = $search;\r\n\r\n require_once( JPATH_COMPONENT.DS.'views'.DS.'element.php' );\r\n FabrikViewElement::show( $rows, $pageNav, $lists );\r\n }", "title": "" }, { "docid": "62d7b56704dce57a2166bbbd85e37d78", "score": "0.5593154", "text": "public function action_account_report()\n {\n $this->is_login();\n $find_url = explode( '/', $_SERVER['REQUEST_URI'] );\n $split = explode( '?', $find_url[2] );\n $list = $split[0];\n $user_createdby = $_SESSION['userid'];\n $usertype = $_SESSION['user_type'];\n if ( $usertype == 'C' ) {\n $this->request->redirect( \"company/login\" );\n }\n if ( $usertype == 'M' ) {\n $this->request->redirect( \"manager/login\" );\n }\n $manage_transaction = Model::factory( 'transaction' );\n $admin_model = Model::factory( 'admin' );\n $common_model = Model::factory( 'commonmodel' );\n $page_title = __( \"account_report\" );\n $list = 'all';\n $get_allcompany = $manage_transaction->get_allcompany_tranaction( $usertype );\n $startdate = date( 'Y-m-d 00:00:00', strtotime( '-7 days' ) );\n $enddate = date( 'Y-m-d 24:59:59' );\n $grpahdata = $manage_transaction->getaccountreportvalues( $list, 'All', $startdate, $enddate, '' );\n $gateway_details = $common_model->gateway_details();\n $all_transaction_list = $manage_transaction->accountreport_details( $list, 'All', $startdate, $enddate, '' );\n $total_amount = $manage_transaction->accountreport_details_payment( 'All', $startdate, $enddate, '' );\n //****pagination ends here***//\n //send data to view file \n $view = View::factory( 'admin/account_report' )->bind( 'Offset', $offset )->bind( 'action', $action )->bind( 'srch', $_REQUEST )->bind( 'pag_data', $pag_data )->bind( 'all_transaction_list', $all_transaction_list )->bind( 'payment_details', $payment_details )->bind( 'get_allcompany', $get_allcompany )->bind( 'payment_details', $payment_details )->bind( 'gateway_details', $gateway_details )->bind( 'package_details', $package_details )->bind( 'grpahdata', $grpahdata )->bind( 'id', $id )->bind( 'total_amount', $total_amount );\n $this->page_title = $page_title;\n $this->template->title = $page_title . \" | \" . SITENAME;\n $this->template->page_title = $page_title;\n $this->template->content = $view;\n }", "title": "" }, { "docid": "8b845ffbcda46c39d5a367bc5c7ebe2f", "score": "0.55872923", "text": "function display($tpl = null) {\n\n $this->user = & JFactory::getUser();\n $app = JFactory::getApplication();\n $this->model = & $this->getModel();\n $type = JRequest::getVar('type');\n $export = JRequest::getVar('export');\n $session = & JFactory::getSession();\n $start= JRequest::getVar('start');\n $end= JRequest::getVar('end');\n \n\n\n $this->reportRecords = $this->model->getReportRecords($type,$start,$end);\n $session->set('lastReport', $this->reportRecords);\n\n if ($type == '1') {\n\n parent::display('report2');\n } else {\n\n parent::display($tpl);\n }\n }", "title": "" }, { "docid": "0c7dbdfce7b5954c07ec5c47535c1f8a", "score": "0.5584591", "text": "function EPL_getFieldDefinitionsWTSFLASHSALES(){\n $fielddefinitions = array();\n $optionsUPD = array(\n 'query_format'=>'classic',\n );\n $fielddefinitions['UPD'] = array('field'=>'UPD', 'label'=>'Dernière mise à jour','ftype'=>'XTimestampDef', 'fcount'=>0,'forder'=>0,'compulsory'=>0,'queryable'=>0,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionsUPD);\n $optionsOWN = array(\n 'checkbox_limit'=>'30',\n 'autocomplete_limit'=>'200',\n 'generate_link'=>'1',\n 'checkbox_cols'=>'3',\n 'query_format'=>'classic',\n );\n $fielddefinitions['OWN'] = array('field'=>'OWN', 'label'=>'Propriétaire','ftype'=>'XLinkDef', 'fcount'=>0,'forder'=>1,'compulsory'=>0,'queryable'=>1,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'USERS', 'options'=>$optionsOWN);\n $optionsPUBLISH = array(\n 'query_format'=>'classic',\n );\n $fielddefinitions['PUBLISH'] = array('field'=>'PUBLISH', 'label'=>'Validé','ftype'=>'XBoolDef', 'fcount'=>0,'forder'=>2,'compulsory'=>0,'queryable'=>0,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionsPUBLISH);\n $optionscomments = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['comments'] = array('field'=>'comments', 'label'=>'Commentaire','ftype'=>'XShortTextDef', 'fcount'=>124,'forder'=>3,'compulsory'=>1,'queryable'=>1,'browsable'=>1,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionscomments);\n $optionsvalidfromdates = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['validfromdates'] = array('field'=>'validfromdates', 'label'=>'Dates des forfaits','ftype'=>'XShortTextDef', 'fcount'=>248,'forder'=>4,'compulsory'=>1,'queryable'=>1,'browsable'=>1,'translatable'=>0,'multivalued'=>0,'published'=>1,'target'=>'%', 'options'=>$optionsvalidfromdates);\n $optionsdebvente = array(\n 'DATE_SEPARATOR'=>'-',\n 'query_format'=>'classic',\n );\n $fielddefinitions['debvente'] = array('field'=>'debvente', 'label'=>'Date de début de mise en vente','ftype'=>'XDateDef', 'fcount'=>0,'forder'=>5,'compulsory'=>1,'queryable'=>1,'browsable'=>1,'translatable'=>0,'multivalued'=>0,'published'=>1,'target'=>'%', 'options'=>$optionsdebvente);\n $optionsfinvente = array(\n 'DATE_SEPARATOR'=>'-',\n 'query_format'=>'classic',\n );\n $fielddefinitions['finvente'] = array('field'=>'finvente', 'label'=>'Date de fin de la mise en vente','ftype'=>'XDateDef', 'fcount'=>0,'forder'=>6,'compulsory'=>1,'queryable'=>1,'browsable'=>1,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionsfinvente);\n $optionsnbstock = array(\n 'edit_format'=>'^([+-]*[0-9]+[.]{0,1}[0-9]{0,2})$',\n 'query_format'=>'classic',\n );\n $fielddefinitions['nbstock'] = array('field'=>'nbstock', 'label'=>'Stock disponible total','ftype'=>'XRealDef', 'fcount'=>20,'forder'=>7,'compulsory'=>0,'queryable'=>1,'browsable'=>1,'translatable'=>0,'multivalued'=>0,'published'=>1,'target'=>'', 'options'=>$optionsnbstock);\n $optionsnbreste = array(\n 'edit_format'=>'^([+-]*[0-9]+[.]{0,1}[0-9]{0,2})$',\n 'query_format'=>'classic',\n );\n $fielddefinitions['nbreste'] = array('field'=>'nbreste', 'label'=>'Nombre de forfaits disponibles restants','ftype'=>'XRealDef', 'fcount'=>20,'forder'=>8,'compulsory'=>1,'queryable'=>1,'browsable'=>1,'translatable'=>0,'multivalued'=>0,'published'=>1,'target'=>'', 'options'=>$optionsnbreste);\n return $fielddefinitions;\n}", "title": "" }, { "docid": "adbda81ac0d3b9950f41bee3acc4b4d2", "score": "0.55791783", "text": "function ncn_admin_ss_render_ep_list($claim_id, $room_name) {\n\t$data = array();\n\t$data = ncn_admin_get_ss_ep_list($claim_id, $room_name);\n\t\n\t$action_panel_types = ncn_admin_ss_get_action_panel_type();\n\tob_start();\n?>\n<table class=\"ss-list-table\">\n\t<thead>\n\t\t<th class=\"ss-ep-panel-type-td\"></th>\n\t\t<th class=\"ss-ep-data-td\"></th>\n\t\t<th class=\"ss-ep-operation\"></th>\n\t</thead>\n<tbody>\n<?php foreach ($data as $key=>$item): ?>\n\t<tr>\n\t\t<td class=\"ss-ep-panel-type-td\"><?php echo $action_panel_types[$item['ptype']].\": \" ?></td>\n\t\t<td class=\"ss-ep-data-td\"><?php print ncn_admin_render_ss_ep_format_data($item); ?></td>\n\t\t<td class=\"ss-ep-operation\">\n\t\t\t<a href=\"\" onclick=\"render_ss_ep_action_panel(<?php echo $claim_id.\", '$room_name'\".\", 'edit', $key\"; ?>); return false;\">Edit</a>\n\t\t\t<a href=\"\" onclick=\"on_click_ss_ep_delete(<?php echo $claim_id.\", '$room_name', $key\"; ?>); return false;\">Delete</a>\n\t\t</td>\n\t</tr>\n<?php endforeach; ?>\n</tbody>\n</table>\n<?php\n\t$output = ob_get_contents();\n\tob_end_clean();\n\t\n\treturn $output;\n}", "title": "" }, { "docid": "d79e186a5384854843f659a74bc778b7", "score": "0.5573748", "text": "function report()\n {\n $this->acl->otentikasi2($this->title);\n\n $data['title'] = $this->properti['name'].' | Administrator Report '.ucwords($this->modul['title']);\n $data['h2title'] = 'Report '.$this->modul['title'];\n\t$data['form_action'] = site_url($this->title.'/report_process');\n $data['link'] = array('link_back' => anchor('sales/','<span>back</span>', array('class' => 'back')));\n\n $data['currency'] = $this->currency->combo();\n \n $this->load->view('ledger_report_panel_2', $data);\n }", "title": "" }, { "docid": "05c79d6ba50a1f4255d48689311a01a4", "score": "0.5570684", "text": "function notListedGlobalSpreadsheetItems()\n {\n $assessmentsQuery=$this->markingscheme_model->getAssessments();\n \n \n foreach ($assessmentsQuery as $ass) \n {\n $data['assessmentTitle']=$ass->getAttribute('id');\n if ($this->assessment==$data['assessmentTitle'] && !$this->session->userdata('staffReport'))\n $data['highlightClass']=\"heading3\";\n else $data['highlightClass']='heading4';\n \n if ($ass->hasAttribute('excludeFromSpread'))\n {\n \n $data['mark']=$this->progress_model->getAssessmentMarksForStudent($this->studentId,$ass->getAttribute('id'));\n // Display a non linked assessment title when assessment selected otherwise display a link to an assessment.\n if ($this->assessment==$data['assessmentTitle'])\n $this->load->view('staff/progressSpreadsheet/notListedGlobalSpreadsheetItems',$data); // This displays a none include global spreadsheet as just text.\n else $this->load->view('staff/progressSpreadsheet/notListedGlobalSpreadsheetItemsLink',$data); // This displays a included global spreadsheet as a link. \n }\n }\n \n }", "title": "" }, { "docid": "619fc21f35bc314d744ba1cfacc927c4", "score": "0.55647576", "text": "function gem_view_consult()\r\n {\r\n $data['offline_mode']\t\t=\t$this->config->item('offline_mode');\r\n $data['debug_mode']\t\t =\t$this->config->item('debug_mode');\r\n\t\t$data['gem_module_id'] = $this->uri->segment(3);\r\n\t\t$data['gem_submod_id'] = $this->uri->segment(4);\r\n\t\t$data['gem_session_id'] = $this->uri->segment(5);\r\n\t\t$data['patient_id'] = $this->uri->segment(6);\r\n\t\t$data['title'] = \"GEM\";\r\n\t\t$data['patient_info'] = $this->memr_rdb->get_patient_demo($data['patient_id']);\r\n $data['now_id'] = time();\r\n $data['now_date'] = date(\"Y-m-d\",$data['now_id']);\r\n\t\t//$data['module_info'] = $this->memr_rdb->get_externalmod_list('episode',$data['gem_module_id']);\r\n\t\t$data['submodule_info'] = $this->mgem_rdb->get_submodules_list_simple($data['gem_module_id'], $data['gem_submod_id']);\r\n //$data['agegroup_info'] = $this->mgem_rdb->get_agebands_list($data['submodule_info'][0]['gem_ageset_id'],$data['gem_agegroup_id']);\r\n\t\t$data['form_content'] = $this->mgem_rdb->get_form_content_completed($data['gem_submod_id'],$data['gem_session_id']);\r\n $data['patcon_info'] = $this->memr_rdb->get_patcon_details($data['patient_id'],$data['form_content'][0]['summary_id']);\r\n $num_of_questions = count($data['form_content']);\r\n //echo \"num_of_questions =\".$num_of_questions;\r\n // Process cast types further if required\r\n for($i=0; $i < $num_of_questions; $i++){\r\n switch($data['form_content'][$i]['gem_quest_cast']){\r\n case \"E\":\r\n // There may be cases where doctor updates core EHR values after filling in GEM forms\r\n //echo \"EHR\";\r\n switch($data['form_content'][$i]['gem_quest_gemkey']){\r\n case \"patient_id\":\r\n $data['form_content'][$i]['gem_key_value'] = $data['patient_id'];\r\n break;\r\n case \"summary_id\":\r\n $data['form_content'][$i]['gem_key_value'] = $data['form_content'][0]['summary_id'];\r\n break;\r\n case \"location_id\":\r\n $data['form_content'][$i]['gem_key_value'] = \"\";\r\n break;\r\n case \"staff_id\":\r\n $data['form_content'][$i]['gem_key_value'] = \"\";\r\n break;\r\n } //endswitch($data['form_content'][$i]['gem_quest_gemkey'])\r\n $data['form_content'][$i]['multiples'] = $this->mgem_rdb->get_ehr_single($data['form_content'][$i]['gem_quest_looktable'],$data['form_content'][$i]['gem_quest_lookfield'],$data['form_content'][$i]['gem_quest_lookkey'],$data['form_content'][$i]['gem_key_value']);\r\n break;\r\n case \"L\":\r\n //echo \"Lookup\";\r\n $data['form_content'][$i]['multiples'] = $this->mgem_rdb->get_lookup_choices($data['form_content'][$i]['gem_quest_looktable'],$data['form_content'][$i]['gem_quest_lookfield']);\r\n //echo \"<pre>\";\r\n //print_r($data['form_content'][$i]['multiples']);\r\n //echo \"</pre>\";\r\n break;\r\n case \"M\":\r\n //echo \"Multiple choice\";\r\n $data['form_content'][$i]['multiples'] = $this->mgem_rdb->get_multiple_choices($data['form_content'][$i]['gem_question_id']);\r\n //echo \"<pre>\";\r\n //print_r($data['form_content'][$i]['multiples']);\r\n //echo \"</pre>\";\r\n break;\r\n }\r\n }\r\n /*\r\n if(count($_POST)) {\r\n // User has posted the form\r\n $data['total_questions'] \t\t = $this->input->post('total_questions');\r\n for($i=1; $i <= $data['total_questions']; $i++) {\r\n //echo $i;\r\n $data['a'][$i]['modqid'] = $this->input->post('a'.$i.'modqid');\r\n $data['a'][$i]['cast'] = $this->input->post('a'.$i.'cast');\r\n $data['a'][$i]['answer'] = $this->input->post('a'.$i.'answer');\r\n //echo \"<br />a\".$i.\"modqid = \".$data['a'.$i.'modqid'];\r\n //echo \"<br />a\".$i.\"cast = \".$data['a'.$i.'cast'];\r\n //echo \"<br />a\".$i.\"answer = \".$data['a'.$i.'answer'];\r\n }\r\n //echo \"data['a']\";\r\n //echo \"<pre>\";\r\n //print_r($data['a']);\r\n //echo \"</pre>\";\r\n } else {\r\n // First time form is displayed\r\n if ($data['form_purpose'] == \"new_consult\") {\r\n //echo \"New form\";\r\n $data['duration'] = \"\";\r\n } elseif ($data['form_purpose'] == \"edit_consult\") {\r\n //echo \"Edit form\";\r\n } //endif ($data['form_purpose'] == \"new_consult\")\r\n } //endif(count($_POST))\r\n */\r\n $data['init_location_id'] = $_SESSION['location_id'];\r\n $data['init_clinic_name'] = NULL;\r\n\r\n\t\t$this->load->vars($data);\r\n // Run validation\r\n\t\tif ($this->form_validation->run('edit_consult_gem') == FALSE){\r\n\t\t //$this->load->view('ehr_patient/emr_edit_patient_html');\t\t\t\r\n if ($_SESSION['thirra_mode'] == \"ehr_mobile\"){\r\n $new_header = \"ehr/header_xhtml-mobile10\";\r\n $new_banner = \"ehr/banner_ehr_ovrvw_wap\";\r\n $new_sidebar= \"ehr/sidebar_ehr_patients_ovrvw_wap\";\r\n $new_body = \"ehr/ehr_indv_gem_view_consult_html\";\r\n $new_footer = \"ehr/footer_emr_wap\";\r\n } else {\r\n //$new_header = \"ehr/header_xhtml1-strict\";\r\n $new_header = \"ehr/header_xhtml1-transitional\";\r\n $new_banner = \"ehr/banner_ehr_ovrvw_html\";\r\n $new_sidebar= \"ehr/sidebar_ehr_patients_ovrvw_html\";\r\n $new_body = \"ehr/ehr_indv_gem_view_consult_html\";\r\n $new_footer = \"ehr/footer_emr_html\";\r\n }\r\n $this->load->view($new_header);\t\t\t\r\n $this->load->view($new_banner);\t\t\t\r\n $this->load->view($new_sidebar);\t\t\t\r\n $this->load->view($new_body);\t\t\t\r\n $this->load->view($new_footer);\t\t\t\r\n } else {\r\n //echo \"\\nValidated successfully.\";\r\n //echo \"<pre>\";\r\n //print_r($data);\r\n //echo \"</pre>\";\r\n //echo \"<br />Insert record\";\r\n if($data['form_purpose'] == \"new_consult\") {\r\n // New submodule record\r\n $ins_gem_array = array();\r\n $ins_gem_array['staff_id'] = $_SESSION['staff_id'];\r\n $ins_gem_array['now_id'] = $data['now_id'];\r\n $ins_gem_array['gem_session_id'] = $data['now_id'];\r\n $ins_gem_array['patient_id'] = $data['patient_id'];\r\n $ins_gem_array['summary_id'] = $data['summary_id'];\r\n $ins_gem_array['gem_module_id'] = $data['submodule_info'][0]['gem_module_id'];\r\n $ins_gem_array['gem_submod_id'] = $data['gem_submod_id'];\r\n $ins_gem_array['gem_agegroup_id'] = $data['gem_agegroup_id'];\r\n $ins_gem_array['answers'] = $data['a'];\r\n if($data['offline_mode']){\r\n $ins_gem_array['synch_out'] = $data['now_id'];\r\n }\r\n\t $ins_gem_data = $this->mgem_wdb->insert_new_gem_consult($ins_gem_array,$data['offline_mode']);\r\n $this->session->set_flashdata('data_activity', 'Submodule completed.');\r\n } else {\r\n //} elseif($data['form_purpose'] == \"edit_consult\") {\r\n // Edit submodule record\r\n $upd_gem_array = array();\r\n $upd_gem_array['staff_id'] = $_SESSION['staff_id'];\r\n $upd_gem_array['now_id'] = $data['now_id'];\r\n $upd_gem_array['gem_session_id'] = $data['submodule_info'][0]['gem_session_id'];\r\n $upd_gem_array['gem_module_id'] = $data['submodule_info'][0]['gem_module_id'];\r\n $upd_gem_array['gem_submod_id'] = $data['gem_submod_id'];\r\n $upd_gem_array['gem_agegroup_id'] = $data['gem_agegroup_id'];\r\n $upd_gem_array['answers'] = $data['a'];\r\n if($data['offline_mode']){\r\n $upd_gem_array['synch_out'] = $data['now_id'];\r\n }\r\n\t $upd_gem_data = $this->mgem_wdb->update_gem_consult($upd_gem_array,$data['offline_mode']);\r\n $this->session->set_flashdata('data_activity', 'Submodule edited.');\r\n } //endif($data['diagnosis_id'] == \"new_patient\")\r\n $new_page = base_url().\"index.php/ehr_consult_gem/list_gem_submodules/\".$data['submodule_info'][0]['gem_module_id'].\"/\".$data['patient_id'].\"/\".$data['summary_id'];\r\n header(\"Status: 200\");\r\n header(\"Location: \".$new_page);\r\n\r\n } // endif ($this->form_validation->run('edit_diagnosis') == FALSE)\r\n\r\n\r\n }", "title": "" }, { "docid": "5e52e0fdd81c828232b7653ace85d3ca", "score": "0.55645585", "text": "public function execute_report_def_query($report_definition) {\n echo(\"execute_report_def_query<br>\");\n //$this->debug_exit(__FILE__,__LINE__,10);\n //var_dump($report_definition);\n $errors = array();\n $message = \"\";\n $what_we_are_doing = \"edit2_build_default_browse\";\n if ($report_definition){\n $working_arrays = $this->MyWorkingArray->working_arrays_initialize($report_definition,$what_we_are_doing,$this->bypassed_field_name,$this->model_table );\n\n //var_dump($report_definition[0]);\n if (is_null($report_definition[0]->browse_select_array) ){\n $errors['browse error1'] = 'must define browse-fields first (use key-edit button)';\n $message = $errors['browse error1'] .\"<br>\";\n }\n if (is_null($report_definition[0]->query_field_name_array) ){\n $errors['browse error2'] = 'must define query first (use key-edit button)';\n $message .= $errors['browse error2'];\n }\n if (count($errors)> 0){\n //exit('exit 2469');\n $field_name_array = array();\n $generated_snippets_array = array();\n //return View::to($this->node_name . \"/edit1\")\n $this->debug_exit(__FILE__,__LINE__,1); \n return redirect('admin/'.$this->node_name.'/edit1')\n ->with('snippet_table' , $this->snippet_table)\n ->with('model_table' , $this->model_table)\n ->with('node_name' , $this->node_name)\n ->with('generated_files_folder' , $this->generated_files_folder)\n ->with('field_name_array' , $field_name_array)\n ->with('snippet_table_key_field_name' , $this->snippet_table_key_field_name)\n ->with('message' , $message)\n ->withErrors($errors);\n }\n else {\n $arr = array();\n foreach($working_arrays['ppv_define_query']['field_name_array'] as $name=>$array_name){\n $arr[] = $working_arrays['ppv_define_query'][$array_name]; \n } \n $arr = $working_arrays['ppv_define_query']['field_name_array']['r_o'];\n var_dump($arr); $this->debug_exit(__FILE__,__LINE__,1); \n //$query_relational_operators_array = $this->build_query_relational_operators_array();\n \n }\n } // end of if report_definition\n\n\n }", "title": "" }, { "docid": "81625136a65afe83eca5d8d9bc6610a3", "score": "0.55552053", "text": "public function actionIndex()\n\t{\n\t\t// notice that no unset attributes because it will make error !! \n\t\t$model \t\t= new Rptipo('LIST_OF_IPO','R_IPO_LIST','');\n\t\t$url \t\t= NULL;\n\t\t$url_xls\t= '';\n\t\t$model->hiddenbuttonxls=0;\n\t\t$model->qty_flg='0';\n\t\tif(isset($_POST['Rptipo']))\n\t\t{\n\t\t\t$model->attributes = $_POST['Rptipo'];\n\t\t\t\n\t\t\tif($model->report_type == 1)\n\t\t\t{\n\t\t\t\t$model->rptname = 'List_of_IPO_Invoice.rptdesign';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$model->rptname = 'List_of_IPO.rptdesign';\n\t\t\t}\n\t\t\t\n\t\t\tif($model->brch_opt == 1)$model->brch_cd = '%';\n\t\t\tif($model->client_from == '')$model->client_from = '%';\n\t\t\tif($model->client_to == '')$model->client_to = '_';\n $model->qty_flg=$model->qty_flg?$model->qty_flg:'0';\n\t\t\tif($model->validate() && $model->executeReportGenSp() > 0 )\n\t\t\t{\n\t\t\t\t$url = $model->showReport();\n\t\t\t\t$url_xls = $url.'&__format=xls&__pageoverflow=0&__overwrite=false&#zoom=100';\n\t\t\t\t$url .= \"&__format=pdf&__pageoverflow=0&__overwrite=false&#zoom=100\";\n\t\t\t}\n\t\t\t\n\t\t\tif($model->client_from == '%')$model->client_from = '';\n\t\t\tif($model->client_to == '_')$model->client_to = '';\n\t\t\t$model->hiddenbuttonxls=1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$model->report_type = $model->brch_opt = 1;\n\t\t}\n\n\t\t$this->render('index',array(\n\t\t\t'model'=>$model,\n\t\t\t'url'=>$url,\n\t\t\t'url_xls'=> $url_xls,\n\t\t));\n\t}", "title": "" }, { "docid": "4ddc96c5c173d201735eda1062977373", "score": "0.55502725", "text": "function admin_export_report()\r\n {\r\n Configure::write('debug',0);\r\n \r\n $date = array();\r\n $conditions = array();\r\n \r\n if(!empty($_GET['start']))\r\n {\r\n $date[0] = htmlentities($_GET['start']); \r\n }\r\n \r\n if(!empty($_GET['end']))\r\n {\r\n $date[1] = htmlentities($_GET['end']); \r\n }\r\n \r\n if(isset($date[0],$date[1]))\r\n {\r\n sort($date);\r\n }\r\n \r\n if(isset($date[0]))\r\n {\r\n $conditions[] = array('DATE_FORMAT(target_month,\"%Y%m%d\") >=' => date('Ymd',strtotime($date[0])));\r\n }\r\n \r\n if(isset($date[1]))\r\n {\r\n $conditions[] = array('DATE_FORMAT(target_month,\"%Y%m%d\") <=' => date('Ymd',strtotime($date[1])));\r\n }\r\n \r\n if(!empty($_GET['salemembername']))\r\n { \r\n $conditions[] = array('LOWER(name) LIKE '=> '%'.strtolower($_GET['salemembername']).'%');\r\n }\r\n \r\n if(!empty($_GET['salememberid']))\r\n { \r\n array_push($conditions,array(' member_id LIKE ' => '%'.$_GET['salememberid'].'%')); \r\n }\r\n \r\n //if(!empty($conditions[0]))\r\n //{\r\n $order = array('default_period_start DESC');\r\n $separator = \",\";\r\n $content = \"Name,Bank Name,Bank Account Number,Insurance Paid,Paid On Date,Total Payment Made,Paid For Period From,Paid For Period End\\n\";\r\n $fields = array('child_name','bank_name','bank_account_num','insurance_paid','total_payment','target_month','default_period_start','default_period_until');\r\n $view_sale_reports = $this->ViewSaleReport->find('all',array('conditions'=>$conditions,'fields'=>$fields,'order'=>$order));\r\n \r\n foreach($view_sale_reports as $index => $per_member_report)\r\n { \r\n $content .= ife(!empty($per_member_report['ViewSaleReport']['child_name']),'\"'.ucwords(strtolower($per_member_report['ViewSaleReport']['child_name']).'\"'),'');\r\n $content .= \",\"; \r\n $content .= ife(!empty($per_member_report['ViewSaleReport']['bank_name']),'\"'.$per_member_report['ViewSaleReport']['bank_name'].'\"','');\r\n $content .= \",\";\r\n $content .= ife((strlen($per_member_report['ViewSaleReport']['bank_account_num'])>0),'\"'.$per_member_report['ViewSaleReport']['bank_account_num'].'\"','');\r\n $content .= \",\";\r\n $content .= ife($per_member_report['ViewSaleReport']['insurance_paid']>0,'\"'.$per_member_report['ViewSaleReport']['insurance_paid'].'\"','');\r\n $content .= \",\";\r\n $content .= ife(!empty($per_member_report['ViewSaleReport']['target_month']),'\"'.$per_member_report['ViewSaleReport']['target_month'].'\"','');\r\n $content .= \",\";\r\n $content .= ife(!empty($per_member_report['ViewSaleReport']['total_payment']),'\"'.$per_member_report['ViewSaleReport']['total_payment'].'\"','');\r\n $content .= \",\";\r\n $content .= ife(!empty($per_member_report['ViewSaleReport']['default_period_start']),'\"'.$per_member_report['ViewSaleReport']['default_period_start'].'\"','');\r\n $content .= \",\";\r\n $content .= ife(!empty($per_member_report['ViewSaleReport']['default_period_until']),'\"'.$per_member_report['ViewSaleReport']['default_period_until'].'\"','');\r\n $content .= \"\\n\";\r\n }\r\n \r\n header('Content-Type: text/html; charset=utf-8');\r\n header(\"Content-Type: text/csv\");\r\n header(\"Content-Disposition: attachment; filename=member_sales_report.csv\");\r\n header('Content-Length: '.strlen($content));\r\n echo $content;\r\n exit;\r\n //}\r\n }", "title": "" }, { "docid": "f0c57531bc1738a86a6bb417fb1ececf", "score": "0.55462104", "text": "function display_ad_specification_listing( $title_dev_ad_specification_listing_records, $page, $page_no )\n\t{\n\t\tif( $title_dev_ad_specification_listing_records != false )\n\t\t{\n\n\t\t\t$start = $page_no * RECORDS_PER_PAGE - RECORDS_PER_PAGE + 1;\n\t\t\tfor( $i = 0; $i < count( $title_dev_ad_specification_listing_records ); $i++ )\n\t\t\t{\n\t\t\t\t$specification_id = $title_dev_ad_specification_listing_records[$i]['specification_id'];\n\t\t\t\t$category_id = $title_dev_ad_specification_listing_records[$i]['category_id'];\n\t\t\t\t$parent_cate_title\t=\t$this-> getParentCategoryTitleById($category_id);\n\t\t\t\t$sub_cate_id = $title_dev_ad_specification_listing_records[$i]['sub_cate_id'];\n\t\t\t\t$child_cate_title\t=\t$this-> getChildCategoryTitleById($sub_cate_id);\n\t\t\t\t$specification_title = $title_dev_ad_specification_listing_records[$i]['specification_title'];\n\t\t\t\t$specification_sort_order = $title_dev_ad_specification_listing_records[$i]['specification_sort_order'];\n\t\t\t\t\n\t\t\t\tif(isset($_POST['sub_cate_id'])){\n\t\t\t\t\t$sub_cate_id\t=\t$_POST['sub_cate_id'];\n\t\t\t\t}else if(isset($_REQUEST['sub_cate_id']) == \"\"){\n\t\t\t\t\t$sub_cate_id\t=\t\"flag\";\t\n\t\t\t\t}else{\n\t\t\t\t\t$sub_cate_id\t=\t$_REQUEST['sub_cate_id'];\t\n\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t$specification_status = $title_dev_ad_specification_listing_records[$i]['specification_status'] == 1 ? \"<a href='\".$page.\"&amp;specification_id=\".$specification_id.\"&amp;action=change_status' title='In Active'><span class='active'><img src='images/active.png' alt='Active' border='0'></span></a>\" : \"<a class='inactive' href='\".$page.\"&amp;specification_id=\".$specification_id.\"&amp;action=change_status' title='Active'><span class='inactive'><img src='images/inactive.png' alt='Inactive' border='0'></span></a>\";\n\t\t\t\n\t\t\t$edit = \"<a class='misadvertisment' href='index.php?module_name=category_management&amp;file_name=add_ad_specification&amp;tab=category&amp;sub_cate_id=\".$sub_cate_id.\"&amp;specification_id=\".$specification_id.\"' title='Edit'><img src='images/edit.png' alt='Edit' border='0'></a>\";\n\t\t\t\t\n\t\t\t$delete = \"<a title='Delete' class='misadvertisment' href='javascript:void(0);' onclick='javascript: if( confirm(\\\"Are you sure to delete this Record?\\\") ) { window.location= \\\"\".$page.\"&amp;action=delete&amp;specification_id=\".$specification_id.\"\\\";}'><img src='images/delete.png' alt='Delete' border='0'></a>\";\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t$class = $i % 2 == 0 ? \"class='even_row'\" : \"class='odd_row'\";\n\t\t\t\t\n\t\t\t\t$title_dev_advertisment_listing .= '<tr '.$class.'>\n\t\t\t\t\t\t\t\t\t<td align=\"center\">'.$start.'</td>\n\t\t\t\t\t\t\t\t\t<td align=\"center\">'.$parent_cate_title.'</td>\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<td align=\"center\">'.$child_cate_title.'</td>\n\t\t\t\t\t\t\t\t\t<td align=\"center\">'.$specification_title.'</td>\n\t\t\t\t\t\t\t\t\t<td align=\"center\">'.$specification_status.'</td>\n\t\t\t\t\t\t\t\t\t<td align=\"center\">'.$edit.'</td>\n\t\t\t\t\t\t\t\t\t<td align=\"center\">'.$delete.'</td>\n\t\t\t\t\t\t\t\t</tr>';\n\t\t\t\t$start++;\n\t\t\t}\t//\tEnd of For Loooooooooop\n\t\t}\t//\tEnd of if( $title_dev_ad_specification_listing_records != false )\n\t\telse\n\t\t{\n\t\t\t$title_dev_advertisment_listing = '<tr>\n\t\t\t\t\t\t\t\t\t<td colspan=\"7\" class=\"bad-msg\" align=\"center\">No Specification Found.</td>\n\t\t\t\t\t\t\t\t</tr>';\n\t\t}\n\t\treturn $title_dev_advertisment_listing;\n\t}", "title": "" }, { "docid": "74e4b251a2a506b4ebdfc88b80cb35d3", "score": "0.554365", "text": "function list_lead()\n\t{\n\t\t$db_special = $this->mmod->select_special();\n\t\t$db = $this->mmod->select_lead();\n\t\t$total_item1 = $db_special ? $db_special->num_rows() : 0;\n\t\t$total_item2 = $db ? $db->num_rows() : 0;\n\t\t$data['fn'] = 'list_lead';\n\t\t$data['db'] = $db;\n\t\t$data['db_special'] = $db_special;\n\t\t$data['total_item1'] = $total_item1;\n\t\t$data['total_item2'] = $total_item2;\n\t\t$data['total_item'] = $total_item1 + $total_item2;\n\t\t//\n\t\t$data['message'] = $this->pre_message;\n\t\t$data['heading'] = \"Quản lý bản tin nổi bật\";\n\t\t$this->view_page = $this->view_dir.'list_lead';\n\t\t$this->load->vars($data);\n\t\t$this->load->view($this->view_container);\n\t}", "title": "" }, { "docid": "21b367b6cbafc66614c43d2862130bdf", "score": "0.5541884", "text": "function EPL_getFieldDefinitionsWTSGRID(){\n $fielddefinitions = array();\n $optionsUPD = array(\n 'query_format'=>'classic',\n );\n $fielddefinitions['UPD'] = array('field'=>'UPD', 'label'=>'Dernière mise à jour','ftype'=>'XTimestampDef', 'fcount'=>0,'forder'=>0,'compulsory'=>0,'queryable'=>0,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionsUPD);\n $optionsOWN = array(\n 'checkbox_limit'=>'30',\n 'autocomplete_limit'=>'200',\n 'generate_link'=>'1',\n 'checkbox_cols'=>'3',\n 'query_format'=>'classic',\n );\n $fielddefinitions['OWN'] = array('field'=>'OWN', 'label'=>'Propriétaire','ftype'=>'XLinkDef', 'fcount'=>0,'forder'=>1,'compulsory'=>0,'queryable'=>1,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'USERS', 'options'=>$optionsOWN);\n $optionsdescr = array(\n 'query_format'=>'classic',\n );\n $fielddefinitions['descr'] = array('field'=>'descr', 'label'=>'Description','ftype'=>'XTextDef', 'fcount'=>65,'forder'=>10,'compulsory'=>0,'queryable'=>0,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionsdescr);\n $optionsname = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['name'] = array('field'=>'name', 'label'=>'Description','ftype'=>'XShortTextDef', 'fcount'=>32,'forder'=>20,'compulsory'=>0,'queryable'=>0,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionsname);\n return $fielddefinitions;\n}", "title": "" }, { "docid": "078680cd8c11a4c49258fceaf472ea68", "score": "0.5537821", "text": "public function getListViewEntries($pagingModel) {\n\t\t$db = PearDatabase::getInstance();\n\n\t\t$moduleName = $this->getModule()->get('name');\n\t\t$moduleFocus = CRMEntity::getInstance($moduleName);\n\t\t$moduleModel = Vtiger_Module_Model::getInstance($moduleName);\n\n\t\t$queryGenerator = $this->get('query_generator');\n\t\t$listViewContoller = $this->get('listview_controller');\n\n\t\t $searchParams = $this->get('search_params');\n\t\tif(empty($searchParams)) {\n\t\t\t$searchParams = array();\n\t\t}\n\t\t$glue = \"\";\n\t\tif(count($queryGenerator->getWhereFields()) > 0 && (count($searchParams)) > 0) {\n\t\t\t$glue = QueryGenerator::$AND;\n\t\t}\n\t\t$queryGenerator->parseAdvFilterList($searchParams, $glue);\n\n\t\t$searchKey = $this->get('search_key');\n\t\t$searchValue = $this->get('search_value');\n\t\t$operator = $this->get('operator');\n\t\tif(!empty($searchKey)) {\n\t\t\t$queryGenerator->addUserSearchConditions(array('search_field' => $searchKey, 'search_text' => $searchValue, 'operator' => $operator));\n\t\t}\n\n\t\t$orderBy = $this->get('orderby');\n\t\t$sortOrder = $this->get('sortorder');\n\n\t\tif(!empty($orderBy)){\n\t\t\t$queryGenerator = $this->get('query_generator');\n\t\t\t$fieldModels = $queryGenerator->getModuleFields();\n\t\t\t$orderByFieldModel = $fieldModels[$orderBy];\n\t\t\tif($orderByFieldModel && ($orderByFieldModel->getFieldDataType() == Vtiger_Field_Model::REFERENCE_TYPE ||\n\t\t\t\t\t$orderByFieldModel->getFieldDataType() == Vtiger_Field_Model::OWNER_TYPE)){\n\t\t\t\t$queryGenerator->addWhereField($orderBy);\n\t\t\t}\n\t\t}\n\t\t$listQuery = $this->getQuery();\n\n\t\t$sourceModule = $this->get('src_module');\n\t\tif(!empty($sourceModule)) {\n\t\t\tif(method_exists($moduleModel, 'getQueryByModuleField')) {\n\t\t\t\t$overrideQuery = $moduleModel->getQueryByModuleField($sourceModule, $this->get('src_field'), $this->get('src_record'), $listQuery,$this->get('relationId'));\n\t\t\t\tif(!empty($overrideQuery)) {\n\t\t\t\t\t$listQuery = $overrideQuery;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$startIndex = $pagingModel->getStartIndex();\n\t\t$pageLimit = $pagingModel->getPageLimit();\n\n\t\tif(!empty($orderBy) && $orderByFieldModel) {\n\t\t\tif($orderBy == 'roleid' && $moduleName == 'Users'){\n\t\t\t\t$listQuery .= ' ORDER BY vtiger_role.rolename '.' '. $sortOrder; \n\t\t\t} else {\n\t\t\t\t$listQuery .= ' ORDER BY '.$queryGenerator->getOrderByColumn($orderBy).' '.$sortOrder;\n\t\t\t}\n\n\t\t\tif ($orderBy == 'first_name' && $moduleName == 'Users') {\n\t\t\t\t$listQuery .= ' , last_name '.' '. $sortOrder .' , email1 '. ' '. $sortOrder;\n\t\t\t} \n\t\t} else if(empty($orderBy) && empty($sortOrder) && $moduleName != \"Users\"){\n\t\t\t//List view will be displayed on recently created/modified records\n\t\t\t$listQuery .= ' ORDER BY vtiger_crmentity.modifiedtime DESC';\n\t\t}\n\n\t\t$viewid = ListViewSession::getCurrentView($moduleName);\n\t\tif(empty($viewid)) {\n\t\t\t$viewid = $pagingModel->get('viewid');\n\t\t}\n\t\t$_SESSION['lvs'][$moduleName][$viewid]['start'] = $pagingModel->get('page');\n\n\t\tListViewSession::setSessionQuery($moduleName, $listQuery, $viewid);\n\n\t\t$listQuery .= \" LIMIT $startIndex,\".($pageLimit+1);\n\n\t\t$listResult = $db->pquery($listQuery, array());\n\n\t\t$listViewRecordModels = array();\n\t\t$listViewEntries = $listViewContoller->getListViewRecords($moduleFocus,$moduleName, $listResult);\n\n\t\t$pagingModel->calculatePageRange($listViewEntries);\n\n\t\tif($db->num_rows($listResult) > $pageLimit){\n\t\t\tarray_pop($listViewEntries);\n\t\t\t$pagingModel->set('nextPageExists', true);\n\t\t}else{\n\t\t\t$pagingModel->set('nextPageExists', false);\n\t\t}\n\n\t\t$index = 0;\n\t\tforeach($listViewEntries as $recordId => $record) {\n\t\t\t$rawData = $db->query_result_rowdata($listResult, $index++);\n\t\t\t$record['id'] = $recordId;\n\t\t\t$listViewRecordModels[$recordId] = $moduleModel->getRecordFromArray($record, $rawData);\n\t\t}\n\t\treturn $listViewRecordModels;\n\t}", "title": "" }, { "docid": "e85607ed72653859b468edac60fb4b8a", "score": "0.5521384", "text": "public function list()\n {\n if (Auth::user()->ability('superadministrator', 'read-reports')){\n return view('report.list',[\n 'pageheader'=>'竞价部',\n 'pagedescription'=>'报表列表',\n 'reports'=>Report::orderBy('date_tag','desc')->take(100)->get(),\n 'offices'=>Aiden::getAllModelArray('offices'),\n 'sources'=>Aiden::getAllModelArray('sources'),\n 'platforms'=>Aiden::getAllModelArray('platforms'),\n 'areas'=>Aiden::getAllModelArray('areas'),\n 'diseases'=>Aiden::getAllModelArray('diseases'),\n 'enableUpdate'=>Auth::user()->ability('superadministrator', 'update-reports'),\n 'enableDelete'=>Auth::user()->ability('superadministrator', 'delete-reports'),\n ]);\n }\n return abort(403,config('yyxt.permission_deny'));\n }", "title": "" }, { "docid": "ad5deec9117a33afdd767119468450dc", "score": "0.5518115", "text": "public function supplier_list_report()\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from('supplier_information');\n\t\t$this->db->order_by('supplier_id','desc');\n\t\t$query = $this->db->get();\n\t\tif ($query->num_rows() > 0) {\n\t\t\treturn $query->result_array();\t\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "10cd63d272807434053458e5a73a0070", "score": "0.5514748", "text": "function list_laporan_cmListing()\r\n {\r\n if($this->isAdmin() == FALSE || $this->isATR() == FALSE || $this->isFLM() == FALSE || $this->isSLM() == FALSE )\r\n {\r\n $this->load->model('list_laporan_cm_model');\r\n \r\n \r\n $id_atmText = $this->input->post('id_atmText');\r\n $statusText = $this->input->post('statusText');\r\n $ket_statusText = $this->input->post('ket_statusText'); \r\n $data['id_atmText'] = $id_atmText;\r\n $data['statusText'] = $statusText;\r\n $data['ket_statusText'] = $ket_statusText;\r\n $this->load->library('pagination');\r\n \r\n $count = $this->list_laporan_cm_model->list_laporan_cmListingCount($id_atmText, $statusText, $ket_statusText);\r\n \r\n $returns = $this->paginationCompress ( \"list_laporan_cmListing/\", $count, 5 );\r\n \r\n $data['list_laporan_cmRecords'] = \r\n $this->list_laporan_cm_model->list_laporan_cmListing($id_atmText, $statusText, $ket_statusText, $returns[\"page\"], $returns[\"segment\"]);\r\n \r\n $this->global['pageTitle'] = 'Monitoring list_laporan_cm : list_laporan_cm Listing';\r\n \r\n $this->loadViews(\"list_laporan_cms\", $this->global, $data, NULL);\r\n }\r\n else\r\n {\r\n $this->loadThis();\r\n }\r\n}", "title": "" }, { "docid": "9cb54c4e2bb83bbed55a7337a684acf4", "score": "0.55107576", "text": "function wcmp_report_tabs( $reports ) {\r\n\t\tglobal $WCMp;\t\t\r\n\t\t$reports['wcmp_vendors'] = array(\r\n\t\t\t'title' => __( 'WCMp', 'dc-woocommerce-multi-vendor' ),\r\n\t\t\t'reports' => array(\r\n\t\t\t\t\"overview\" => array(\r\n\t\t\t\t\t'title' => __( 'Overview', 'dc-woocommerce-multi-vendor' ),\r\n\t\t\t\t\t'description' => '',\r\n\t\t\t\t\t'hide_title' => true,\r\n\t\t\t\t\t'callback' => array( __CLASS__, 'wcmp_get_report' )\r\n\t\t\t\t),\r\n\t\t\t\t\"vendor\" => array(\r\n\t\t\t\t\t'title' => __( 'Vendor', 'dc-woocommerce-multi-vendor' ),\r\n\t\t\t\t\t'description' => '',\r\n\t\t\t\t\t'hide_title' => true,\r\n\t\t\t\t\t'callback' => array( __CLASS__, 'wcmp_get_report' )\r\n\t\t\t\t),\r\n\t\t\t\t\"product\" => array(\r\n\t\t\t\t\t'title' => __( 'Product', 'dc-woocommerce-multi-vendor' ),\r\n\t\t\t\t\t'description' => '',\r\n\t\t\t\t\t'hide_title' => true,\r\n\t\t\t\t\t'callback' => array( __CLASS__, 'wcmp_get_report' )\r\n\t\t\t\t)\r\n\t\t\t)\r\n\t\t);\r\n\t\t\r\n\t\treturn $reports;\r\n\t}", "title": "" }, { "docid": "1ae6f97a378299c456add98d2001fe47", "score": "0.5500601", "text": "public function getListViewEntries($pagingModel) {\n\t\t$reportFolderModel = Reports_Folder_Model::getInstance();\n\t\t$reportFolderModel->set('folderid', $this->get('folderid'));\n\n\t\t$orderBy = $this->get('orderby');\n\t\tif (!empty($orderBy) && $orderBy === 'smownerid') {\n\t\t\t$fieldModel = Vtiger_Field_Model::getInstance('assigned_user_id', $moduleModel);\n\t\t\tif ($fieldModel->getFieldDataType() == 'owner') {\n\t\t\t\t$orderBy = 'COALESCE(CONCAT(vtiger_users.first_name,vtiger_users.last_name),vtiger_groups.groupname)';\n\t\t\t}\n\t\t}\n\t\tif(!empty($orderBy)) {\n\t\t\t$reportFolderModel->set('orderby', $orderBy);\n\t\t\t$reportFolderModel->set('sortby', $this->get('sortorder'));\n\t\t}\n\n\t\t$reportFolderModel->set('search_params', $this->get('search_params'));\n\t\t$reportRecordModels = $reportFolderModel->getReports($pagingModel);\n\t\t$nextPageExists = $pagingModel->get('nextPageExists');\n\t\t$pagingModel->calculatePageRange($reportRecordModels);\n\t\t$pagingModel->set('nextPageExists', $nextPageExists);\n\t\treturn $reportRecordModels;\n\t}", "title": "" }, { "docid": "bd9772d83f0fa3f1eef49ef592d515a3", "score": "0.549626", "text": "function getList(){\t$adjacents = 3;\r\n\t\r\n\t/* \r\n\t First get total number of rows in data table. \r\n\t If you have a WHERE clause in your query, make sure you mirror it here.\r\n\t*/\r\n\r\n\t$query = \"SELECT COUNT(*) as num FROM \".INV_ITEM_ISSUE_SUB_TBL.\" \";\r\n\t$total_pages = mysql_fetch_array(mysql_query($query));\r\n\t $total_pages = $total_pages[num]; //exit();\r\n\t\r\n\t/* Setup vars for query. */\r\n\t//$targetpage = \"?app=client_profile\"; \t//your file name (the name of this file)\r\n\t$limit = 30; \t\t\t\t\t\t\t\t//how many items to show per page\r\n\t$page = $_GET['page'];\r\n\tif($page) \r\n\t\t$start = ($page - 1) * $limit; \t\t\t//first item to display on this page\r\n\telse\r\n\t\t$start = 0;\t\t\t\t\t\t\t\t//if no page var is given, set start to 0\r\n\t\r\n\t/* Get data. */\r\n/*\t$sql = \"SELECT client_id FROM client_info LIMIT $start, $limit\";\r\n\t$result = mysql_query($sql);\r\n*/\t\r\n\t/* Setup page vars for display. */\r\n\tif ($page == 0) $page = 1;\t\t\t\t\t//if no page var is given, default to 1.\r\n\t$prev = $page - 1;\t\t\t\t\t\t\t//previous page is page - 1\r\n\t$next = $page + 1;\t\t\t\t\t\t\t//next page is page + 1\r\n\t$lastpage = ceil($total_pages/$limit);\t\t//lastpage is = total pages / items per page, rounded up.\r\n\t$lpm1 = $lastpage - 1;\t\t\t\t\t\t//last page minus 1\r\n\t\r\n\t/* \r\n\t\tNow we apply our rules and draw the pagination object. \r\n\t\tWe're actually saving the code to a variable in case we want to draw it more than once.\r\n\t*/\r\n\t$pagination = \"\";\r\n\tif($lastpage > 1)\r\n\t{\t\r\n\t\t$pagination .= \"<div class=\\\"pagination\\\">\";\r\n\t\t//previous button\r\n\t\tif ($page > 1) \r\n\t\t\t$pagination.= \"<a href=\\\"?app=inv_item_issue&page=$prev\\\">&laquo; previous</a>\";\r\n\t\telse\r\n\t\t\t$pagination.= \"<span class=\\\"disabled\\\">previous</span>\";\t\r\n\t\t\r\n\t\t//pages\t\r\n\t\tif ($lastpage < 7 + ($adjacents * 2))\t//not enough pages to bother breaking it up\r\n\t\t{\t\r\n\t\t\tfor ($counter = 1; $counter <= $lastpage; $counter++)\r\n\t\t\t{\r\n\t\t\t\tif ($counter == $page)\r\n\t\t\t\t\t$pagination.= \"<span class=\\\"current\\\">$counter</span>\";\r\n\t\t\t\telse\r\n\t\t\t\t\t$pagination.= \"<a href=\\\"?app=inv_item_issue&page=$counter\\\">$counter</a>\";\t\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\telseif($lastpage > 5 + ($adjacents * 2))\t//enough pages to hide some\r\n\t\t{\r\n\t\t\t//close to beginning; only hide later pages\r\n\t\t\tif($page < 1 + ($adjacents * 2))\t\t\r\n\t\t\t{\r\n\t\t\t\tfor ($counter = 1; $counter < 4 + ($adjacents * 2); $counter++)\r\n\t\t\t\t{\r\n\t\t\t\t\tif ($counter == $page)\r\n\t\t\t\t\t\t$pagination.= \"<span class=\\\"current\\\">$counter</span>\";\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\t$pagination.= \"<a href=\\\"?app=inv_item_issue&page=$counter\\\">$counter</a>\";\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t$pagination.= \"...\";\r\n\t\t\t\t$pagination.= \"<a href=\\\"?app=inv_item_issue&page=$lpm1\\\">$lpm1</a>\";\r\n\t\t\t\t$pagination.= \"<a href=\\\"?app=inv_item_issue&page=$lastpage\\\">$lastpage</a>\";\t\t\r\n\t\t\t}\r\n\t\t\t//in middle; hide some front and some back\r\n\t\t\telseif($lastpage - ($adjacents * 2) > $page && $page > ($adjacents * 2))\r\n\t\t\t{\r\n\t\t\t\t$pagination.= \"<a href=\\\"?app=inv_item_issue&page=1\\\">1</a>\";\r\n\t\t\t\t$pagination.= \"<a href=\\\"?app=inv_item_issue&page=2\\\">2</a>\";\r\n\t\t\t\t$pagination.= \"...\";\r\n\t\t\t\tfor ($counter = $page - $adjacents; $counter <= $page + $adjacents; $counter++)\r\n\t\t\t\t{\r\n\t\t\t\t\tif ($counter == $page)\r\n\t\t\t\t\t\t$pagination.= \"<span class=\\\"current\\\">$counter</span>\";\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\t$pagination.= \"<a href=\\\"?app=inv_item_issue&page=$counter\\\">$counter</a>\";\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t$pagination.= \"...\";\r\n\t\t\t\t$pagination.= \"<a href=\\\"?app=inv_item_issue&page=$lpm1\\\">$lpm1</a>\";\r\n\t\t\t\t$pagination.= \"<a href=\\\"?app=inv_item_issue&page=$lastpage\\\">$lastpage</a>\";\t\t\r\n\t\t\t}\r\n\t\t\t//close to end; only hide early pages\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$pagination.= \"<a href=\\\"?app=inv_item_issue&page=1\\\">1</a>\";\r\n\t\t\t\t$pagination.= \"<a href=\\\"?app=inv_item_issue&page=2\\\">2</a>\";\r\n\t\t\t\t$pagination.= \"...\";\r\n\t\t\t\tfor ($counter = $lastpage - (2 + ($adjacents * 2)); $counter <= $lastpage; $counter++)\r\n\t\t\t\t{\r\n\t\t\t\t\tif ($counter == $page)\r\n\t\t\t\t\t\t$pagination.= \"<span class=\\\"current\\\">$counter</span>\";\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\t$pagination.= \"<a href=\\\"?app=inv_item_issue&page=$counter\\\">$counter</a>\";\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//next button\r\n\t\tif ($page < $counter - 1){\r\n\t\t\t$pagination.= \"<a href=\\\"?app=inv_item_issue&page=$next\\\">next &raquo;</a>\";\r\n\t\t}else{\r\n\t\t\t$pagination.= \"<span class=\\\"disabled\\\">next</span>\";\r\n\t\t $pagination.= \"</div>\\n\";\t\r\n\t\t }\r\n\t\t \r\n\t\t $Rec= getRequest('page');\r\n\t\t if($page){ $res1 = $Rec*30-29-1; $res2 = $Rec*29;}else { $res3=0; $res3=29;}\r\n\t\r\n\t} \r\n\r\n\t$ItemIssue = $this->ItemIssueFetch($start, $limit);\r\n\t$ItemListCondense=$this->ItemDpdw4Condense(getRequest('ele_id'),getRequest('sls'),getRequest('uni_vel'), getRequest('ele_lbl_id'));\r\n\t$ItemListPowder = $this->ItemDpdw4Powder(getRequest('ele_id'),getRequest('sls'),getRequest('uni_val'),getRequest('grm_vel'),getRequest('ele_lbl_id')); \r\n\t$ItemListTea=$this->ItemDpdw4Tea(getRequest('ele_id'),getRequest('sls'),getRequest('uni_vel'), getRequest('grm_vel'), getRequest('ele_lbl_id'));\r\n\t$ItemListBev=$this->ItemDpdw4Bev(getRequest('ele_id'),getRequest('sls'),getRequest('uni_vel'), getRequest('ele_lbl_id'));\r\n\t$ItemListSnak=$this->ItemDpdw4Snak(getRequest('ele_id'),getRequest('sls'),getRequest('uni_vel'), getRequest('grm_vel'), getRequest('ele_lbl_id'));\r\n\t$ItemListCandy=$this->ItemDpdw4Candy(getRequest('ele_id'),getRequest('sls'),getRequest('uni_vel'), getRequest('ele_lbl_id'));\r\n\t$SalseManList=$this->SalesManDpDw(getRequest('ele_id'), getRequest('ele_lbl_id'));\r\n\trequire_once(CURRENT_APP_SKIN_FILE);\r\n }", "title": "" }, { "docid": "9b25491b4682c25ee61c7c62f861f0aa", "score": "0.5491185", "text": "public function indexAction(){\r\n \t\t\r\n \t\t/**\r\n \t\t * get form id\r\n \t\t */\r\n \t\t$form_id = $this->getAttribute('form_id');\r\n \t\t\r\n \t\t/**\r\n \t\t * get set id\r\n \t\t */\r\n \t\t$set_id = $this->getAttribute('set_id');\r\n \t\t\r\n \t\t/**\r\n\t\t * get list from data base and assign to view\r\n\t\t */\r\n \t\t$list = $this->db_model->getList();\r\n \t\t$this->viewAssign('list', $list); \t\t\r\n \t\t\r\n \t\t \t\t\r\n \t\t\t\r\n \t\t$this->setDisplay('list'); \t\t\r\n \t\t\r\n \t}", "title": "" }, { "docid": "de1f81c2c967246f21c1dc2b4d477b14", "score": "0.54894984", "text": "function DisplayReportReasons()\n{\n global $DB;\n\n $editlink = SELF_REPORTS_PHP.'?action=display_reason&amp;reasonid=';\n\n echo '<div class=\"align-right\">\n \t\t\t<form method=\"post\" action=\"'.SELF_REPORTS_PHP.'?reasonid=new\" id=\"addreason\">\n \t\t\t'.PrintSecureToken();\n \t\t\t\t\t\tPrintSubmit('display_reason', AdminPhrase('add_report_reason'),'addreason','fa-plus','','','btn-success');\n echo '\n </form>\n\t </div>\n\t <br />';\n\n \n StartTable(AdminPhrase('reports_reasons'), array('table', 'table-bordered', 'table-striped'));\n\n echo '\n\t<thead> \n <tr>\n <th>' . AdminPhrase('reports_reason_title') . '</th>\n <th>' . AdminPhrase('reports_reason_description') . '</th>\n <th>' . AdminPhrase('reports_plugin_name') . '</th>\n </tr>\n </thead>\n <tbody>';\n\n $reasonid = 0;\n $rowcount = 0;\n\n $getrows = $DB->query('SELECT p.pluginid, p.name pluginname, r.*'.\n ' FROM {report_reasons} r'.\n ' LEFT JOIN {report_reasons_plugins} rp ON rp.reasonid = r.reasonid'.\n ' LEFT JOIN {plugins} p ON p.pluginid = rp.pluginid'.\n ' ORDER BY r.title, p.name');\n\n while($row = $DB->fetch_array($getrows,null,MYSQL_ASSOC))\n {\n $rowcount++;\n echo '<tr>';\n if($reasonid != $row['reasonid'])\n {\n $reasonid = $row['reasonid'];\n echo '\n <td>\n <a href=\"'.$editlink.$reasonid.'\"><i class=\"ace-icon fa fa-edit blue bigger-120\"></i>&nbsp;'.\n $row['title'].'</a></td>\n <td width=\"50%\">'.strip_alltags($row['description']).'</td>';\n }\n else\n {\n echo '\n <td colspan=\"2\">&nbsp;</td>';\n }\n echo '<td>'.$row['pluginname'].'</td>\n </tr>';\n }\n echo '</table></div>';\n if(!$rowcount)\n {\n DisplayMessage(AdminPhrase('reports_no_reports_found'));\n }\n\n\n}", "title": "" }, { "docid": "98c5e6cbb9def84d9f3cef05b2012bdc", "score": "0.5482858", "text": "function FieldsList() {\n\t\tglobal $mainframe, $option;\n\t\t\n\t\t/* Get the template ID */\n\t\t$template_id = JRequest::getInt('template_id', 0);\n\t\t\n\t\tif ($template_id > 0) {\n\t\t\t/* Load template model */\n\t\t\t$template_model = $this->getModel('templates');\n\t\t\t\n\t\t\t/* Set the template ID */\n\t\t\t$template_model->setTemplateId($template_id);\n\t\t\t\n\t\t\t/* Get the current template */\n\t\t\t$template = $this->get('Template');\n\t\t\t\n\t\t\t/* Get the supported fields for the template */\n\t\t\t/* Get the fields for the template type */\n\t\t\t$availablefields = new CsvimprovedModelAvailablefields();\n\t\t\t$csvisupportedfields = $availablefields->GetAvailableFields($template->template_type);\n\t\t\t\n\t\t\t/* Get the total number of fields */\n\t\t\t$total = $template_model->GetNumberOfFields();\n\t\t\t\t\t\n\t\t\t/* Start pagination */\n\t\t\t$limit = $mainframe->getUserStateFromRequest( 'global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int' );\n\t\t\t$limitstart = $mainframe->getUserStateFromRequest( $option.'.limitstart', 'limitstart', 0, 'int' );\n\t\t\t\n\t\t\tif (JRequest::getBool('fromtemplatelist')) $limitstart = 0;\n\t\t\t\n\t\t\tjimport('joomla.html.pagination');\n\t\t\t$pagination = new JPagination( $total, $limitstart, $limit );\n\t\t\t\n\t\t\t/* Get the fields for the active template */\n\t\t\t/* See if we need to filter the result */\n\t\t\t$filter = JRequest::getVar('filterfield', false);\n\t\t\t$fields = $template_model->GetFields($template_id, $filter, $limitstart, $limit);\n\t\t\t\n\t\t\t/* Assign the data so it can be displayed */\n\t\t\t$this->assignRef('template_id', $template_id);\n\t\t\t$this->assignRef('template', $template);\n\t\t\t$this->assignRef('csvisupportedfields', $csvisupportedfields);\n\t\t\t$this->assignRef('pagination', $pagination);\n\t\t\t$this->assignRef('filter', $filter);\n\t\t\t$this->assignRef('fields', $fields);\n\t\t\t$this->assignRef('totalfields', $template_model->getNextFieldNumber());\n\t\t}\n\t\telse $mainframe->enqueueMessage(JText::_('No template found'));\n\t}", "title": "" }, { "docid": "b53c7c911a3f2050cc7463fe3f5d11a2", "score": "0.547918", "text": "protected function getList() {\r\n \r\n $data['title'] = $this->document->getTitle();\r\n $data['sidebar'] = $this->load->controller('kbmp_marketplace/header');\r\n $data['kbmp_footer'] = $this->load->view('kbmp_marketplace/footer', $data);\r\n $data['header'] = $this->load->controller('common/header');\r\n $data['footer'] = $this->load->controller('common/footer');\r\n $data['text_back_to_site'] = $this->language->get('text_back_to_site');\r\n $data['text_my_account1'] = $this->language->get('text_my_account1');\r\n $data['text_logout'] = $this->language->get('text_logout');\r\n $data['text_earning'] = $this->language->get('text_earning');\r\n $data['error_account_warning'] = $this->language->get('error_account_warning');\r\n $data['text_account_warning'] = $this->language->get('text_account_warning');\r\n \r\n $data['home_link'] = $this->url->link('common/home');\r\n $data['account_link'] = $this->url->link('account/account', '', true);\r\n $data['logout_link'] = $this->url->link('account/logout', '', true);\r\n \r\n $sellerId = $this->model_kbmp_marketplace_kbmp_marketplace->getSellerByCustomerId();\r\n $data['seller_details'] = $sellerId;\r\n \r\n if (isset($this->request->get['filter_from_date'])) {\r\n $filter_from_date = $this->request->get['filter_from_date'];\r\n } else {\r\n $filter_from_date = null;\r\n }\r\n \r\n if (isset($this->request->get['filter_to_date'])) {\r\n $filter_to_date = $this->request->get['filter_to_date'];\r\n } else {\r\n $filter_to_date = null;\r\n }\r\n \r\n if (isset($this->request->get['filter_report_format'])) {\r\n $filter_report_format = $this->request->get['filter_report_format'];\r\n } else {\r\n $filter_report_format = null;\r\n }\r\n \r\n if (isset($this->request->get['filter_from_date_2'])) {\r\n $filter_from_date_2 = $this->request->get['filter_from_date_2'];\r\n } else {\r\n $filter_from_date_2 = null;\r\n }\r\n \r\n if (isset($this->request->get['filter_to_date_2'])) {\r\n $filter_to_date_2 = $this->request->get['filter_to_date_2'];\r\n } else {\r\n $filter_to_date_2 = null;\r\n }\r\n \r\n if (isset($this->request->get['filter_status'])) {\r\n $filter_status = $this->request->get['filter_status'];\r\n } else {\r\n $filter_status = null;\r\n }\r\n \r\n if (isset($this->request->get['tab'])) {\r\n $tab = $this->request->get['tab'];\r\n } else {\r\n $tab = '';\r\n }\r\n \r\n if (isset($this->request->get['page'])) {\r\n $page = $this->request->get['page'];\r\n } else {\r\n $page = 1;\r\n }\r\n \r\n $url = '';\r\n\r\n if (isset($this->request->get['filter_from_date'])) {\r\n $url .= '&filter_from_date=' . urlencode(html_entity_decode($this->request->get['filter_from_date'], ENT_QUOTES, 'UTF-8'));\r\n }\r\n \r\n if (isset($this->request->get['filter_to_date'])) {\r\n $url .= '&filter_to_date=' . urlencode(html_entity_decode($this->request->get['filter_to_date'], ENT_QUOTES, 'UTF-8'));\r\n }\r\n \r\n if (isset($this->request->get['filter_report_format'])) {\r\n $url .= '&filter_report_format=' . urlencode(html_entity_decode($this->request->get['filter_report_format'], ENT_QUOTES, 'UTF-8'));\r\n }\r\n \r\n if (isset($this->request->get['filter_from_date_2'])) {\r\n $url .= '&filter_from_date_2=' . urlencode(html_entity_decode($this->request->get['filter_from_date_2'], ENT_QUOTES, 'UTF-8'));\r\n }\r\n \r\n if (isset($this->request->get['filter_to_date_2'])) {\r\n $url .= '&filter_to_date_2=' . urlencode(html_entity_decode($this->request->get['filter_to_date_2'], ENT_QUOTES, 'UTF-8'));\r\n }\r\n \r\n if (isset($this->request->get['filter_status'])) {\r\n $url .= '&filter_status=' . urlencode(html_entity_decode($this->request->get['filter_status'], ENT_QUOTES, 'UTF-8'));\r\n }\r\n \r\n $data['earning'] = array();\r\n $data['earning_order_wise'] = array();\r\n \r\n if (isset($this->request->get['tab'])) {\r\n $page_1 = 1;\r\n } else {\r\n $page_1 = $page;\r\n }\r\n \r\n //Get Seller ID\r\n $sellerId = $this->model_kbmp_marketplace_kbmp_marketplace->getSellerByCustomerId();\r\n\r\n $filter_data = array(\r\n 'seller_id' => $sellerId['seller_id'],\r\n 'filter_from_date' => trim($filter_from_date),\r\n 'filter_to_date' => trim($filter_to_date),\r\n 'filter_report_format' => trim($filter_report_format),\r\n 'tab' => trim($tab),\r\n 'start' => ($page_1 - 1) * $this->config->get('config_limit_admin'),\r\n 'limit' => $this->config->get('config_limit_admin')\r\n );\r\n \r\n $filter_data_2 = array(\r\n 'seller_id' => $sellerId['seller_id'],\r\n 'filter_from_date_2' => trim($filter_from_date_2),\r\n 'filter_to_date_2' => trim($filter_to_date_2),\r\n 'filter_status' => trim($filter_status),\r\n 'tab' => trim($tab),\r\n 'start' => ($page - 1) * $this->config->get('config_limit_admin'),\r\n 'limit' => $this->config->get('config_limit_admin')\r\n );\r\n \r\n $data['filter_data'] = $filter_data;\r\n $data['filter_data_2'] = $filter_data_2;\r\n\r\n $earning_total = $this->model_kbmp_marketplace_kbmp_marketplace->getTotalSellerEarningHistory($filter_data);\r\n\r\n $data['earning_total'] = (int)$earning_total;\r\n \r\n $results = $this->model_kbmp_marketplace_kbmp_marketplace->getSellerEarningHistory($filter_data);\r\n $results = $results->rows;\r\n foreach ($results as $result) {\r\n if (!empty($filter_report_format)) {\r\n switch ($filter_report_format) {\r\n case 1:\r\n $data['earning'][] = array(\r\n 'date' => date($this->language->get('date_format_short'), strtotime($result['date'])),\r\n 'total_order' => $result['total_order'],\r\n 'products_sold' => $result['products_sold'],\r\n 'order_total' => $this->currency->format($result['order_total'], $this->session->data['currency']),\r\n 'seller_earning' => $this->currency->format($result['seller_earning'], $this->session->data['currency']) \r\n );\r\n break;\r\n case 2:\r\n $dates = $this->datesofWeek($result['week'], $result['year']);\r\n $data['earning'][] = array(\r\n 'date' => $dates[0] .' - '. $dates[1],\r\n 'total_order' => $result['total_order'],\r\n 'products_sold' => $result['products_sold'],\r\n 'order_total' => $this->currency->format($result['order_total'], $this->session->data['currency']),\r\n 'seller_earning' => $this->currency->format($result['seller_earning'], $this->session->data['currency']) \r\n );\r\n break;\r\n case 3:\r\n $data['earning'][] = array(\r\n 'date' => date(\"M\", mktime(0, 0, 0, $result['month'], 10)) .'-'.$result['year'],\r\n 'total_order' => $result['total_order'],\r\n 'products_sold' => $result['products_sold'],\r\n 'order_total' => $this->currency->format($result['order_total'], $this->session->data['currency']),\r\n 'seller_earning' => $this->currency->format($result['seller_earning'], $this->session->data['currency']) \r\n );\r\n break;\r\n case 4:\r\n $data['earning'][] = array(\r\n 'date' => $result['year'],\r\n 'total_order' => $result['total_order'],\r\n 'products_sold' => $result['products_sold'],\r\n 'order_total' => $this->currency->format($result['order_total'], $this->session->data['currency']),\r\n 'seller_earning' => $this->currency->format($result['seller_earning'], $this->session->data['currency']) \r\n );\r\n break;\r\n }\r\n } else {\r\n $data['earning'][] = array(\r\n 'date' => date($this->language->get('date_format_short'), strtotime($result['date'])),\r\n 'total_order' => $result['total_order'],\r\n 'products_sold' => $result['products_sold'],\r\n 'order_total' => $this->currency->format($result['order_total'], $this->session->data['currency']),\r\n 'seller_earning' => $this->currency->format($result['seller_earning'], $this->session->data['currency']) \r\n );\r\n }\r\n \r\n }\r\n \r\n //Earning Order-Wise\r\n $earning_order_wise_total = $this->model_kbmp_marketplace_kbmp_marketplace->getTotalSellerEarningOrderWise($filter_data_2);\r\n\r\n $data['earning_order_wise_total'] = $earning_order_wise_total;\r\n \r\n $results = $this->model_kbmp_marketplace_kbmp_marketplace->getSellerEarningOrderWise($filter_data_2);\r\n\r\n foreach ($results as $result) {\r\n $data['earning_order_wise'][] = array(\r\n 'order_id' => $result['order_id'],\r\n 'date' => date($this->language->get('date_format_short'), strtotime($result['date_added'])),\r\n 'quantity' => $result['quantity'],\r\n 'status' => $result['order_status'],\r\n 'order_total' => $this->currency->format($result['order_total'], $this->session->data['currency']),\r\n 'seller_earning' => $this->currency->format($result['seller_earning'], $this->session->data['currency']) \r\n );\r\n }\r\n \r\n $data['heading_title'] = $this->language->get('heading_title');\r\n $data['text_my_account'] = $this->language->get('text_my_account');\r\n\r\n $data['breadcrumbs'] = array();\r\n\r\n $data['breadcrumbs'][] = array(\r\n 'text' => $this->language->get('text_home'),\r\n 'href' => $this->url->link('common/home')\r\n );\r\n\r\n $data['breadcrumbs'][] = array(\r\n 'text' => $this->language->get('text_account'),\r\n 'href' => $this->url->link('account/account', '', true)\r\n );\r\n $data['breadcrumbs'][] = array(\r\n 'text' => $this->language->get('text_current_title'),\r\n 'href' => $this->url->link('common/home')\r\n );\r\n \r\n $data['text_tab_history'] = $this->language->get('text_tab_history');\r\n $data['text_tab_order'] = $this->language->get('text_tab_order');\r\n $data['text_filter_search'] = $this->language->get('text_filter_search');\r\n $data['text_from_date'] = $this->language->get('text_from_date');\r\n $data['text_to_date'] = $this->language->get('text_to_date');\r\n $data['text_report_format'] = $this->language->get('text_report_format');\r\n $data['text_status'] = $this->language->get('text_status');\r\n $data['text_select'] = $this->language->get('text_select');\r\n $data['text_daily'] = $this->language->get('text_daily');\r\n $data['text_weekly'] = $this->language->get('text_weekly');\r\n $data['text_monthly'] = $this->language->get('text_monthly');\r\n $data['text_yearly'] = $this->language->get('text_yearly');\r\n $data['text_no_record'] = $this->language->get('text_no_record');\r\n \r\n $data['text_date_error'] = $this->language->get('text_date_error');\r\n \r\n $data['button_filter'] = $this->language->get('button_filter');\r\n $data['button_reset'] = $this->language->get('button_reset');\r\n \r\n //Column\r\n $data['column_interval'] = $this->language->get('column_interval');\r\n $data['column_orders'] = $this->language->get('column_orders');\r\n $data['column_product_sold'] = $this->language->get('column_product_sold');\r\n $data['column_order_total'] = $this->language->get('column_order_total');\r\n $data['column_your_earning'] = $this->language->get('column_your_earning');\r\n $data['column_order_id'] = $this->language->get('column_order_id');\r\n $data['column_order_date'] = $this->language->get('column_order_date');\r\n $data['column_quantity'] = $this->language->get('column_quantity');\r\n $data['column_status'] = $this->language->get('column_status');\r\n \r\n //Column Right Text\r\n $data['text_dashboard'] = $this->language->get('text_dashboard');\r\n $data['text_seller_profile'] = $this->language->get('text_seller_profile');\r\n $data['text_seller_products'] = $this->language->get('text_seller_products');\r\n $data['text_seller_orders'] = $this->language->get('text_seller_orders');\r\n $data['text_product_reviews'] = $this->language->get('text_product_reviews');\r\n $data['text_seller_reviews'] = $this->language->get('text_seller_reviews');\r\n $data['text_seller_earning'] = $this->language->get('text_seller_earning');\r\n $data['text_seller_transactions'] = $this->language->get('text_seller_transactions');\r\n $data['text_category_request'] = $this->language->get('text_category_request');\r\n $data['text_seller_shipping'] = $this->language->get('text_seller_shipping');\r\n \r\n $data['dashboard_link'] = $this->url->link('kbmp_marketplace/dashboard');\r\n $data['seller_profile_link'] = $this->url->link('kbmp_marketplace/seller_profile');\r\n $data['products_link'] = $this->url->link('kbmp_marketplace/products');\r\n $data['orders_link'] = $this->url->link('kbmp_marketplace/orders');\r\n $data['product_reviews_link'] = $this->url->link('kbmp_marketplace/product_reviews');\r\n $data['seller_reviews_link'] = $this->url->link('kbmp_marketplace/seller_reviews');\r\n $data['earning_link'] = $this->url->link('kbmp_marketplace/earning');\r\n $data['transactions_link'] = $this->url->link('kbmp_marketplace/transactions');\r\n $data['category_request_link'] = $this->url->link('kbmp_marketplace/category_request');\r\n $data['shipping_link'] = $this->url->link('kbmp_marketplace/shipping');\r\n \r\n $data['order_statuses'] = $this->model_kbmp_marketplace_kbmp_marketplace->getOrderStatuses();\r\n \r\n if (isset($this->error['warning'])) {\r\n $data['error_warning'] = $this->error['warning'];\r\n } else {\r\n $data['error_warning'] = '';\r\n }\r\n\r\n if (isset($this->session->data['success'])) {\r\n $data['success'] = $this->session->data['success'];\r\n unset($this->session->data['success']);\r\n } else {\r\n $data['success'] = '';\r\n }\r\n \r\n $url = '';\r\n\r\n if (isset($this->request->get['filter_from_date'])) {\r\n $url .= '&filter_from_date=' . urlencode(html_entity_decode($this->request->get['filter_from_date'], ENT_QUOTES, 'UTF-8'));\r\n }\r\n \r\n if (isset($this->request->get['filter_to_date'])) {\r\n $url .= '&filter_to_date=' . urlencode(html_entity_decode($this->request->get['filter_to_date'], ENT_QUOTES, 'UTF-8'));\r\n }\r\n \r\n if (isset($this->request->get['filter_report_format'])) {\r\n $url .= '&filter_report_format=' . urlencode(html_entity_decode($this->request->get['filter_report_format'], ENT_QUOTES, 'UTF-8'));\r\n }\r\n \r\n if (isset($this->request->get['filter_from_date_2'])) {\r\n $url .= '&filter_from_date_2=' . urlencode(html_entity_decode($this->request->get['filter_from_date_2'], ENT_QUOTES, 'UTF-8'));\r\n }\r\n \r\n if (isset($this->request->get['filter_to_date_2'])) {\r\n $url .= '&filter_to_date_2=' . urlencode(html_entity_decode($this->request->get['filter_to_date_2'], ENT_QUOTES, 'UTF-8'));\r\n }\r\n \r\n if (isset($this->request->get['filter_status'])) {\r\n $url .= '&filter_status=' . urlencode(html_entity_decode($this->request->get['filter_status'], ENT_QUOTES, 'UTF-8'));\r\n }\r\n \r\n $pagination = new Pagination();\r\n $pagination->total = $earning_total;\r\n $pagination->page = $page_1;\r\n $pagination->limit = $this->config->get('config_limit_admin');\r\n $pagination->url = $this->url->link('kbmp_marketplace/earning', $url . '&page={page}', true);\r\n\r\n $data['pagination'] = $pagination->render();\r\n\r\n $data['results'] = sprintf($this->language->get('text_pagination'), ($earning_total) ? (($page_1 - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page_1 - 1) * $this->config->get('config_limit_admin')) > ($earning_total - $this->config->get('config_limit_admin'))) ? $earning_total : ((($page_1 - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $earning_total, ceil($earning_total / $this->config->get('config_limit_admin')));\r\n \r\n $pagination_2 = new Pagination();\r\n $pagination_2->total = $earning_order_wise_total;\r\n $pagination_2->page = $page;\r\n $pagination_2->limit = $this->config->get('config_limit_admin');\r\n $pagination_2->url = $this->url->link('kbmp_marketplace/earning&tab=1', '&page={page}', true);\r\n\r\n $data['pagination_2'] = $pagination_2->render();\r\n\r\n $data['results_2'] = sprintf($this->language->get('text_pagination'), ($earning_order_wise_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($earning_order_wise_total - $this->config->get('config_limit_admin'))) ? $earning_order_wise_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $earning_order_wise_total, ceil($earning_order_wise_total / $this->config->get('config_limit_admin')));\r\n\r\n\t$this->load->model('setting/kbmp_marketplace');\r\n //Get the module configuration values\r\n $store_id = (int) $this->config->get('config_store_id');\r\n $settings = $this->model_setting_kbmp_marketplace->getSetting('kbmp_marketplace', $store_id);\r\n $data['kbmp_marketplace_settings'] = $settings;\r\n\r\n $this->response->setOutput($this->load->view('kbmp_marketplace/earning', $data));\r\n }", "title": "" }, { "docid": "daa7cb2bf5920af107464730803229ca", "score": "0.5476156", "text": "function roundsky_list_manage($lead, $lead_approved)\n{\n\treturn;\n}", "title": "" }, { "docid": "3f969560d0b5ff9d037f6308fa3df8d7", "score": "0.5474786", "text": "function EPL_getFieldDefinitionsWTSPOOL(){\n $fielddefinitions = array();\n $optionsUPD = array(\n 'query_format'=>'classic',\n );\n $fielddefinitions['UPD'] = array('field'=>'UPD', 'label'=>'Dernière mise à jour','ftype'=>'XTimestampDef', 'fcount'=>0,'forder'=>0,'compulsory'=>0,'queryable'=>0,'browsable'=>0,'translatable'=>1,'multivalued'=>0,'published'=>0,'target'=>'%', 'options'=>$optionsUPD);\n $optionsOWN = array(\n 'checkbox_limit'=>'30',\n 'autocomplete_limit'=>'200',\n 'generate_link'=>'1',\n 'checkbox_cols'=>'3',\n 'query_format'=>'classic',\n );\n $fielddefinitions['OWN'] = array('field'=>'OWN', 'label'=>'Propriétaire','ftype'=>'XLinkDef', 'fcount'=>0,'forder'=>1,'compulsory'=>0,'queryable'=>1,'browsable'=>0,'translatable'=>1,'multivalued'=>0,'published'=>0,'target'=>'USERS', 'options'=>$optionsOWN);\n $optionslabel = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['label'] = array('field'=>'label', 'label'=>'Label','ftype'=>'XShortTextDef', 'fcount'=>32,'forder'=>30,'compulsory'=>1,'queryable'=>1,'browsable'=>1,'translatable'=>0,'multivalued'=>0,'published'=>1,'target'=>'%', 'options'=>$optionslabel);\n $optionsOBJECTCATEGORIE = array(\n 'listbox_limit'=>'75',\n 'query_format'=>'classic',\n );\n $fielddefinitions['OBJECTCATEGORIE'] = array('field'=>'OBJECTCATEGORIE', 'label'=>'Catégorie de secteur','ftype'=>'XShortTextDef', 'fcount'=>20,'forder'=>31,'compulsory'=>0,'queryable'=>1,'browsable'=>1,'translatable'=>1,'multivalued'=>0,'published'=>1,'target'=>'%', 'options'=>$optionsOBJECTCATEGORIE);\n $optionsresort = array(\n 'checkbox'=>false,\n );\n $fielddefinitions['resort'] = array('field'=>'resort', 'label'=>'Station','ftype'=>'XBoolDef', 'fcount'=>0,'forder'=>13,'compulsory'=>0,'queryable'=>0,'browsable'=>0,'translatable'=>0,'multivalued'=>0,'published'=>0,'target'=>'WTSRESORT', 'options'=>$optionsresort);\n return $fielddefinitions;\n}", "title": "" } ]
b2cb975c3f51467e423d31faefa8e5b2
function save celle / function saveCelle to save cells planning action of celle=?? and position=?
[ { "docid": "7c30d11c86fdd2be1330e77b5575faf1", "score": "0.5586837", "text": "public function saveCelle($liste=null)\n{\n\t$liste=explode(',',$liste);\n\t $this->loadModel('DetailPlan');\n \n $data=array('id'=>$liste[0],\n \t'content'=>$this->getHtml($liste[1]));\n\t\t\t\t$this->DetailPlan->save($data);\n\n \n}", "title": "" } ]
[ { "docid": "69815e9790c7a5522b39c804e3fda1e4", "score": "0.57227457", "text": "function save();", "title": "" }, { "docid": "bae20704be7521fe62d2274ae793b571", "score": "0.5714707", "text": "function save()\n\t\t{\n\n\t\t}", "title": "" }, { "docid": "ff3845b0efd531a54315cbea31db7881", "score": "0.5551352", "text": "public function save()\n\t{\t\tif ($this->GeoId == \"\") {\n\t\t\t// Is it top level?\n\t\t\tif ($this->ParentId == \"\") {\n\t\t\t\t$left = parent::getMaxGeneric(\"geo\",\"Rgt\");\n\t\t\t\t$this->Lft = $left + 1;\n\t\t\t\t$this->Rgt = $left + 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$parent = self::loadFromGeoId($this->ParentId);\n\t\t\t\t$this->Lft = $parent->Rgt;\n\t\t\t\t$this->Rgt = $parent->Rgt + 1;\n\t\t\t\tparent::insertChildGeneric(\"geo\",$parent->Lft,$parent->Rgt);\n\t\t\t}\n\t\t}\n\t\tparent::saveGeneric(self::$columns,self::$table);\n\t}", "title": "" }, { "docid": "39e968cd3afc12f8aef12462f79be836", "score": "0.5529095", "text": "public function save(){\n\n\t\t$oConnection = new Connection();\n\t\t\n\t\tif($this->iId == 0 ){\n\n\t\t\t//remove Id so no crash\n\t\t\t$sSQL = \"INSERT INTO subjects (subject_name, position, visible) \n\t\t\t\t\tVALUES ('\".$this->sSubjectName.\"', '\".$this->iPosition.\"', '\".$this->iVisible.\"')\";\n\n\t\t\t$bSuccess = $oConnection->query($sSQL);\n\t\t\t\n\t\t\tif($bSuccess == true){ // if it is successful, \n\t\t\t\t$this->iId = $oConnection->getInsertId();\n\t\t}\n\t\t\n\t}else{\n\t\t\t$sSQL = \"UPDATE subjects \n\t\t\t\t\tSET subject_name = '\".$this->sSubjectName.\"',\n\t\t\t\t\tposition = '\".$this->iPosition.\"', \n\t\t\t\t\tvisible = '\".$this->iVisible.\"' \n\t\t\t\tWHERE id = \".$this->iId;\n\n\t\t\t\t$oConnection->query($sSQL);\n\t\t}\n\t}", "title": "" }, { "docid": "cf268ab1618cde7916f4c0df7cc36879", "score": "0.5526299", "text": "function save()\n {\n }", "title": "" }, { "docid": "d42b15be338158cf75c9eb4793f2f11a", "score": "0.5456053", "text": "function saveData()\n{\n //--------- BEGIN VARIABEL DEKLARASI-----------//\n global $f;\n global $isNew;\n //--------- END VARIABEL DEKLARASI-----------//\n //------------ CLASS GA Rooms-------------//\n $dataGaLocation = new cGaRooms;\n $data = [\n \"id_location\" => $f->getValue('id_location'),\n \"room_code\" => $f->getValue('room_code'),\n \"room_type\" => $f->getValue('room_type'),\n \"capacity\" => $f->getValue('capacity'),\n \"room_name\" => $f->getValue('room_name')\n ];\n //------------END GA Roms----------------//\n //------------- BEGIN SAVE DATA ------------------------------------------------//\n $bolSuccess = false;\n //---------- BEGIN Jika Data Baru---------------------------------------------//\n if ($isNew) {\n $bolSuccess = $dataGaLocation->insert($data);\n } else {\n $bolSuccess = $dataGaLocation->update(/*pk*/\n \"id='\" . $f->getValue('dataID') . \"'\", /*data to update*/\n $data\n );\n }\n //---------- END Jika Data Baru---------------------------------------------//\n //---------------BEGIN Jika data yang berhasil disimpan-----------------//\n if ($bolSuccess) {\n if ($isNew) {\n $f->setValue('dataID', $dataGaLocation->getLastInsertId());\n } else {\n $f->setValue('dataID', $f->getValue('dataID'));\n }\n }\n //---------------END Jika data yang berhasil disimpan--------------------//\n $f->message = $dataHrdBank->strMessage;\n //------------- END SAVE DATA ------------------------------------------------//\n}", "title": "" }, { "docid": "abb90dae50c3e76df15da16915e8eded", "score": "0.5450053", "text": "abstract function save();", "title": "" }, { "docid": "baa7be98443868d93da7148a8d3968d2", "score": "0.5439597", "text": "protected function saveCompra(){\n\t\t$json = new JInputJSON;\n\t\t$json_data = json_decode($json->getRaw(), true);\n\t\t$file = 'get_post_'.time().'.json';\n\t\tfile_put_contents($file, $json->getRaw());\n\t\t$json_data_body = $json_data['body'];\n\t\t$comprador = $json_data_body['comprador'];\n\t\t$data = $json_data_body['data'];\n\t\t$details = $json_data_body['details'];\n\t\t$saveData = [];\n\t\t$saveData['id']=0;\n\t\t$saveData['paypal_orderID']=$data['orderID'];\n\t\t$saveData['paypal_payerID']=$data['payerID'];\n\t\t$saveData['paypal_details']=json_encode($details);\n\t\t$saveData['comprador']=json_encode($comprador);\n\t\t$saveData['published']=1;\n\t\t//$saveData['created'] = JFactory::getDate()->toSql();\n\t\t$model = $this->getModel('checkout');\t\t\t\t\n\t\t$row = $model->storeCompra($saveData);\n\t\t$this->numeroPedido = $row->id;\t\t\n\t\tJFactory::getSession()->set('numeroPedido', $this->numeroPedido);\n\t\t$saveData['id']=$row->id;\n\t\t$saveData['detalles']=$this->getBodyHtml('online');\n\t\t$model->storeCompra($saveData);\nreturn $this->numeroPedido;\n\t\t//print_r($json_data_body);\n\t\t//print_r($json_data);\n\t}", "title": "" }, { "docid": "42924e111b4c1cb2792c770f539b4168", "score": "0.5439263", "text": "public function save()\n\t{\t\tif ($this->CatId == \"\") {\n\t\t\t// Is it top level?\n\t\t\tif ($this->ParentId == \"\") {\n\t\t\t\t$left = parent::getMaxGeneric(\"cat\",\"Rgt\");\n\t\t\t\t$this->Lft = $left + 1;\n\t\t\t\t$this->Rgt = $left + 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$parent = self::loadFromCatId($this->ParentId);\n\t\t\t\t$this->Lft = $parent->Rgt;\n\t\t\t\t$this->Rgt = $parent->Rgt + 1;\n\t\t\t\tparent::insertChildGeneric(\"cat\",$parent->Lft,$parent->Rgt);\n\t\t\t}\n\t\t}\n\t\tparent::saveGeneric(self::$columns,self::$table);\n\t}", "title": "" }, { "docid": "efc9ec6ecf6b4e9452abda90899a626c", "score": "0.5436805", "text": "protected function save()\n\t{\n\t\t//$this->saveItems();\n\t\t//$this->saveAssignments();\n\t\t$this->saveRules();\n\t}", "title": "" }, { "docid": "a5be543a463cf9624a55f4537ba9c59a", "score": "0.5430427", "text": "function editar_sector(){\r\n\t\t$id_sa = $this->input->post('id_sa');\r\n\t\t$nombre_sa = $this->input->post('nombre_sa');\r\n\t\t$colorlinea_sa=$this->input->post('clinea3_1');\r\n\t\t$colorfondo_sa=$this->input->post('crrelleno3_1');\r\n\t\t$s=\"Polis/\".$id_sa.$nombre_sa.\".txt\";\r\n\t\t$fp = fopen($s, \"w\");\r\n\t\t$coord= $this->input->post('acoordenadas3');\r\n\t\tfputs($fp,$coord);\r\n\t\tfclose($fp);\r\n\t\t$this->load->model('edit_model');\r\n\t\t$edit = $this->edit_model->modificar_sa($id_sa,$nombre_sa,$colorlinea_sa, $colorfondo_sa);\r\n\t\t$this->session->set_flashdata('actualizado', 'El sector se actualizó correctamente');\r\n\t\tredirect(base_url().'gissat/map');\r\n\t}", "title": "" }, { "docid": "637276aa44d250d3156c79a7a2110cdf", "score": "0.54280204", "text": "function saveData()\n{\n //--------- BEGIN VARIABEL DEKLARASI-----------//\n global $f;\n global $isNew;\n //--------- END VARIABEL DEKLARASI-----------//\n //------------ CLASS GA Rooms-------------//\n $dataGaLocation = new cGaDriver;\n $data = [\n \"driver_name\" => $f->getValue('dataDriverName'),\n \"address\" => $f->getValue('dataAddress'),\n \"phone_number\" => $f->getValue('dataPhoneNumber'),\n \"remark\" => $f->getValue('dataRemark')\n ];\n //------------END GA Roms----------------//\n //------------- BEGIN SAVE DATA ------------------------------------------------//\n $bolSuccess = false;\n //---------- BEGIN Jika Data Baru---------------------------------------------//\n if ($isNew) {\n $bolSuccess = $dataGaLocation->insert($data);\n } else {\n $bolSuccess = $dataGaLocation->update(/*pk*/\n \"id='\" . $f->getValue('dataID') . \"'\", /*data to update*/\n $data\n );\n }\n //---------- END Jika Data Baru---------------------------------------------//\n //---------------BEGIN Jika data yang berhasil disimpan-----------------//\n if ($bolSuccess) {\n if ($isNew) {\n $f->setValue('dataID', $dataGaLocation->getLastInsertId());\n } else {\n $f->setValue('dataID', $f->getValue('dataID'));\n }\n }\n //---------------END Jika data yang berhasil disimpan--------------------//\n $f->message = $dataHrdBank->strMessage;\n //------------- END SAVE DATA ------------------------------------------------//\n}", "title": "" }, { "docid": "d2aaee1a8710a8d30cd21a9b4280da1c", "score": "0.53968", "text": "function save() {\n \t\n \t$iDataInicial = explode('/',$this->getDataInicial());\n \t$iDataFinal = explode('/',$this->getDataFinal());\n \t$iDataInicial = db_strtotime($iDataInicial[2].'-'.$iDataInicial[1].'-'.$iDataInicial[0]); \n \t$iDataFinal = db_strtotime($iDataFinal[2].'-'.$iDataFinal[1].'-'.$iDataFinal[0]);\n \t\n \tif ($iDataInicial > $iDataFinal) {\n \t\tthrow new Exception(\"Erro ao tentar salvar Comissão.\\nA Data Final deve ser maior ou igual a Data Inicial\");\n \t}\n \t\n \t$oDaoComissao = db_utils::getDao('acordocomissao');\n \t$oDaoComissaoMembro = db_utils::getDao('acordocomissaomembro');\n \t\n \t$oDaoComissao->ac08_descricao = $this->getDescricao(); \n $oDaoComissao->ac08_observacao = $this->getObservacao(); \n $oDaoComissao->ac08_datainicial = $this->getDataInicial();\n $oDaoComissao->ac08_datafim = $this->getDataFinal();\n\n if ($this->iCodigo) {\n \t\t\n \t\t$oDaoComissao->alterar($this->getCodigo());\n if($oDaoComissao->erro_status==0){\n $sqlerro=true;\n return false;\n }\n \t\t\n \t} else {\n \t\t\n\t $oDaoComissao->incluir(null); \t \n\t if($oDaoComissao->erro_status==0){\n $sqlerro=true;\n return false;\n }\t \n \n \t\t$this->iCodigo = $oDaoComissao->ac08_sequencial;\n \t}\n \t\n \tif ($oDaoComissao->erro_status == 0) {\n \t\tthrow new Exception(\"Erro ao tentar salvar Comissão.\\n{$oDaoComissao->erro_msg}\");\n \t}\n \t\n \t//EXCLUI OS MEMBROS JA CADASTRADOS NO ACORDO\n \t$oDaoComissaoMembro->excluir(NULL, \"ac07_acordocomissao={$this->getCodigo()}\");\n\n \t//CADASTRA OS MEMBROS DO ACORDO\n \tforeach ($this->aMembros as $oMembro) {\n \t\t$oMembro->save();\n \t}\n \t\n \treturn $this;\n }", "title": "" }, { "docid": "b010d990e6da2af93f6c9f80381650a1", "score": "0.52680564", "text": "public function save($transaction = null)\n {\t\t\n global $Connexion;\n $thistransaction = \"Off\";\n\n if ((is_null($this->ID_Ecriture))||($this->ID_Ecriture==0))\n {\n $this->isToSaveOrToUpdate=1;\n $this->isNew=1;\n }\n \n if (!is_null($this->Parent_Journal))\n $this->ID_Journal = $this->set_ID_Journal($this->Parent_Journal->save($transaction));\t \n \n if (!is_null($this->Parent_Piece))\n $this->ID_Piece = $this->set_ID_Piece($this->Parent_Piece->save($transaction));\t \n \n if (!is_null($this->Parent_Compte))\n $this->ID_Compte = $this->set_ID_Compte($this->Parent_Compte->save($transaction));\t \n \n if (!is_null($this->Parent_Exercice))\n $this->ID_Exercice = $this->set_ID_Exercice($this->Parent_Exercice->save($transaction));\t \n \n if ($this->isToSaveOrToUpdate==1)\n {\n\n if ((isset($this->ID_Ecriture))&&($this->ID_Ecriture!=\"0\")&&($this->isNew!=1))\n {\n $query = parent::makequery('UPDATE', $Connexion->Database, 'Ecriture', $this->structure);\n $result=$Connexion->sql_query($query);\n }\n else\n {\n $query = parent::makequery('INSERT', $Connexion->Database, 'Ecriture', $this->structure);\n $Connexion->sql_query($query);\n $this->ID_Ecriture=$Connexion->sql_insert_id();\n $this->structure['ID_Ecriture'][\"4\"] = $this->ID_Ecriture;\n $this->isNew=0;\n }\n }\n\t\n $this->isToSaveOrToUpdate=0;\n foreach ($this->structure as $field)\n if(isset($field[0]))\n {\n $this->structure[$field[0]][3]=0;\n }\n\n return $this->ID_Ecriture;\n }", "title": "" }, { "docid": "f2aae594a5ff9393ee011f308ec975a9", "score": "0.524217", "text": "public function saveDataGrid();", "title": "" }, { "docid": "c584f1104c96b9f77d951a884367b607", "score": "0.52299494", "text": "function saveSheetToDatabase($a_dbc)\n\t{\n\t\t// function not complete yet.\n\n\t\t// save the sheet\n\t\t// sql to set the current time to now.\n\t\t$sql = \"UPDATE `Bid-well`.`sheet` SET `LastUpdate` =now() WHERE `sheet`.`SheetID` =1;\";\n\n\t\t// and now its lines.\n\t\tforeach ($this->lines as $i) {\n\t\t\t$i->saveLine($this->sheetID);\n\t\t}\n\t}", "title": "" }, { "docid": "02325d482754f1ff67a453105ba6d1be", "score": "0.5215081", "text": "abstract public function save();", "title": "" }, { "docid": "f6ed78617c7fd7862d19f81720ca0cb8", "score": "0.5213903", "text": "public function ajoutCours(){\n date_default_timezone_set(\"Europe/Paris\");\n// //donne la date et l'heure d'enregistrement du fichier\n $date = date(\"d/m/Y à H:i:s\");\n \n //etudiants etant un eliste sous forme de tableau\n //on prepare le tableau pour l'inserer dans la chaine\n $listetudiants=\"\"; \n $i=0;\n foreach ($this->_etudiants as $value) \n\t\t{\n\t\t\t$listetudiants .= $value . \";\";\n\t\t\t$i++;\n\t\t}\n \n \n \n $contenu= $this->_theme.';'.$this->_nbheures.';'.$this->_enseignant.';'.$listetudiants.';'.$this->_salle;\n \n file_put_contents('fichiers/cours/'.$this->_theme.'.txt', $contenu);\n echo \"le fichier du cours: <strong> \" . $this->_theme. \"</strong> a bien été créé le <strong>\" . $date. \"</strong>\"; \n \n // var_dump($contenu); \n \n }", "title": "" }, { "docid": "26880ef85eb39ed772e9fa30e05b4c70", "score": "0.51894426", "text": "final public function save()\n {\n }", "title": "" }, { "docid": "d72a1743e26c790f6a3b7bba601bb529", "score": "0.5174779", "text": "public function saveGridEdit()\r\n {\r\n \\App::dontChangeUrl();\r\n //get column name from request\r\n $columnName = Request::get('columnName');\r\n //set model to page from url\r\n $this->setModelFromIdUrl();\r\n //store model variable to use later\r\n $model = $this->getModel();\r\n //get column from model\r\n $column = $model->getColumn($columnName);\r\n //get the column property (alias for columna name)\r\n $columnProperty = $column->getProperty();\r\n //get the posted edited value\r\n $value = Request::get($columnProperty);\r\n //define the modified value in current model\r\n $model->setValue($columnName, $value);\r\n\r\n //get pk column to force only update what is neeed\r\n $pkColumn = $model->getPrimaryKey();\r\n //lista only columns needed in update\r\n $columns[$pkColumn . \"\"] = $pkColumn;\r\n $columns[$columnName] = $column;\r\n //update the model in database\r\n $model->update($columns);\r\n //refresh the page\r\n \\App::refresh(TRUE);\r\n }", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5162036", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5162036", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5162036", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5162036", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5162036", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5162036", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5162036", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5162036", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5162036", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5162036", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5162036", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5162036", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5162036", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5162036", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.5162036", "text": "public function save();", "title": "" }, { "docid": "5d6e0e3a3a0863f8b0ae1ec6b4ca8016", "score": "0.516135", "text": "function save()\n {\n $q=\"SELECT * FROM `\".TblModCatalogParams.\"` WHERE `id`='\".$this->id.\"'\";\n $res = $this->Right->Query( $q, $this->user_id, $this->module );\n if( !$this->Right->result ) return false;\n $rows = $this->Right->db_GetNumRows();\n\n if($rows>0)\n {\n $q=\"UPDATE `\".TblModCatalogParams.\"` SET\n `id_cat`='\".$this->id_cat.\"',\n `type`='\".$this->type.\"',\n `is_img`='\".$this->is_img.\"',\n `modify`='\".$this->modify.\"'\";\n $q=$q.\" where id='\".$this->id.\"'\";\n $res = $this->Right->Query( $q, $this->user_id, $this->module );\n //echo '<br>q='.$q.' res='.$res.' $this->Right->result='.$this->Right->result;\n if( !$res OR !$this->Right->result ) return false;\n }\n else\n {\n $q=\"SELECT MAX(`move`) as maxx FROM `\".TblModCatalogParams.\"` WHERE 1\";\n $res = $this->Right->Query( $q, $this->user_id, $this->module );\n //echo '<br>$q='.$q.' $res='.$res;\n $row = $this->Right->db_FetchAssoc();\n $maxx=$row['maxx']+1;\n\n $q=\"INSERT INTO `\".TblModCatalogParams.\"` SET\n `id_cat`='\".$this->id_cat.\"',\n `type`='\".$this->type.\"',\n `is_img`='\".$this->is_img.\"',\n `modify`='\".$this->modify.\"',\n `move`='\".$maxx.\"'\";\n $res = $this->Right->Query( $q, $this->user_id, $this->module );\n //echo '<br>q='.$q.' res='.$res.' $this->Right->result='.$this->Right->result;\n if( !$res OR !$this->Right->result) return false;\n }\n\n if ( empty($this->id) ){\n $this->id = $this->Right->db_GetInsertID();\n //echo '<br>$this->id='.$this->id;\n }\n\n //---- Save fields on different languages ----\n $res=$this->Spr->SaveNameArr( $this->id, $this->name, TblModCatalogParamsSprName );\n if( !$res ) return false;\n $res=$this->Spr->SaveNameArr( $this->id, $this->prefix, TblModCatalogParamsSprPrefix );\n if( !$res ) return false;\n $res=$this->Spr->SaveNameArr( $this->id, $this->sufix, TblModCatalogParamsSprSufix );\n if( !$res ) return false;\n $res=$this->Spr->SaveNameArr( $this->id, $this->descr, TblModCatalogParamsSprDescr );\n if( !$res ) return false;\n\n //---------------- save META DATA START -------------------\n $res=$this->Spr->SaveNameArr( $this->id, $this->mtitle, TblModCatalogParamsSprMTitle );\n if( !$res ) return false;\n $res=$this->Spr->SaveNameArr( $this->id, $this->mdescr, TblModCatalogParamsSprMDescr );\n if( !$res ) return false;\n $res=$this->Spr->SaveNameArr( $this->id, $this->mkeywords, TblModCatalogParamsSprMKeywords );\n if( !$res ) return false;\n //---------------- save META DATA END ---------------------\n\n /*\n if ( $this->type=='3' || $this->type=='4' ) {\n $res=$this->CreateParamTable();\n //echo '<br> $res='.$res;\n if( !$res ) return false;\n }\n */\n\n //--------- Delete from the table where store parameters depends from image ----------\n if ($this->is_img==0) {\n $res = $this->DelParamFromImg($this->id);\n //echo '<br> $res='.$res;\n if( !$res ) return false;\n }\n\n return true;\n\n }", "title": "" }, { "docid": "401ac83da7238d126433ab7fe118d899", "score": "0.51550186", "text": "public function save($transaction = null)\n {\t\t\n global $Connexion;\n $thistransaction = \"Off\";\n\n if ((is_null($this->ID_Facture))||($this->ID_Facture==0))\n {\n $this->isToSaveOrToUpdate=1;\n $this->isNew=1;\n }\n \n if (!is_null($this->Parent_Compte))\n $this->ID_Compte = $this->set_ID_Compte($this->Parent_Compte->save($transaction));\t \n \n if (!is_null($this->Parent_Cheque))\n $this->ID_Cheque = $this->set_ID_Cheque($this->Parent_Cheque->save($transaction));\t \n \n if (!is_null($this->Parent_ModePayement))\n $this->ID_ModePayement = $this->set_ID_ModePayement($this->Parent_ModePayement->save($transaction));\t \n \n if ($this->isToSaveOrToUpdate==1)\n {\n\n if ((isset($this->ID_Facture))&&($this->ID_Facture!=\"0\")&&($this->isNew!=1))\n {\n $query = parent::makequery('UPDATE', $Connexion->Database, 'Facture', $this->structure);\n $result=$Connexion->sql_query($query);\n }\n else\n {\n $query = parent::makequery('INSERT', $Connexion->Database, 'Facture', $this->structure);\n $Connexion->sql_query($query);\n $this->ID_Facture=$Connexion->sql_insert_id();\n $this->structure['ID_Facture'][\"4\"] = $this->ID_Facture;\n $this->isNew=0;\n }\n }\n\t\n if (!is_null($this->Piece_Facture))\n $this->save_Piece_Facture($transaction);\n \n $this->isToSaveOrToUpdate=0;\n foreach ($this->structure as $field)\n if(isset($field[0]))\n {\n $this->structure[$field[0]][3]=0;\n }\n\n return $this->ID_Facture;\n }", "title": "" }, { "docid": "8f72d6e1334b5a21b23685e8de990321", "score": "0.5120152", "text": "function saveData()\n{\n global $f;\n global $isNew;\n global $fltRemainingWeight;\n $arrScore = [];\n $db = new CdbClass;\n $bolSave = true;\n $strmodified_byID = $_SESSION['sessionUserID'];\n $dataHrdEvaluationCriteria = new cHrdEvaluationCriteria();\n //$strIDEmployee = ($f->getValue('dataEmployee') == \"\") ? -1 : getIDEmployee($db, $f->getValue('dataEmployee'));\n /* Cek total bobot (tidak lebih dari 100%)\n if ($isNew)\n {\n if ($fltRemainingWeight < floatVal($f->getValue('dataWeight')))\n {\n $bolSave = false;\n $f->message = \"Exceeded weight percentage, the remaining weight quota is \". $fltRemainingWeight;\n }\n }\n else\n {\n $arrTemp = $dataHrdEvaluationCriteria->find(\"id = '\". $f->getValue('dataID').\"'\", \"weight\");\n if (($fltRemainingWeight + $arrTemp['weight']) < floatVal($f->getValue('dataWeight')))\n {\n $bolSave = false;\n $f->message = \"Exceeded weight percentage, the remaining weight quota is \". ($fltRemainingWeight + $arrTemp['weight']);\n }\n }\n */\n if ($bolSave) {\n for ($i = 1; $i <= 5; $i++) {\n $arrScore['dataScore' . $i] = getPostValue('dataScore' . $i);\n $arrScore['dataScore' . $i . 'Note'] = getPostValue('dataScore' . $i . 'Note');\n }\n $data = [\n \"id_category\" => $f->getValue('dataIDCategory'),\n \"managerial\" => \"t\",\n \"date_from\" => $f->getValue('dataDateFrom'),\n \"date_thru\" => $f->getValue('dataDateThru'),\n \"criteria\" => $f->getValue('dataCriteria'),\n \"subheader\" => $f->getValue('dataSubheader'),\n \"weight\" => floatVal($f->getValue('dataWeight')),\n \"score1\" => $arrScore['dataScore1'],\n \"score2\" => $arrScore['dataScore2'],\n \"score3\" => $arrScore['dataScore3'],\n \"score4\" => $arrScore['dataScore4'],\n \"score5\" => $arrScore['dataScore5'],\n \"score1_note\" => $arrScore['dataScore1Note'],\n \"score2_note\" => $arrScore['dataScore2Note'],\n \"score3_note\" => $arrScore['dataScore3Note'],\n \"score4_note\" => $arrScore['dataScore4Note'],\n \"score5_note\" => $arrScore['dataScore5Note'],\n ];\n // simpan data -----------------------\n $bolSuccess = false;\n if ($isNew) {\n // data baru\n $bolSuccess = $dataHrdEvaluationCriteria->insert($data);\n if ($bolSuccess) {\n $f->setValue('dataID', $dataHrdEvaluationCriteria->getLastInsertId());\n }\n } else {\n $bolSuccess = $dataHrdEvaluationCriteria->update(/*pk*/\n \"id='\" . $f->getValue('dataID') . \"'\", /*data to update*/\n $data\n );\n }\n $f->message = $dataHrdEvaluationCriteria->strMessage;\n }\n}", "title": "" }, { "docid": "46182de144cfabb48945d8550936ebb3", "score": "0.51128596", "text": "protected function _save() {\n // primero todo a cero y despues seteamos la cantidad que haya quedado\n foreach (Mob_Data::getTropas() as $tropa) {\n Mob_Loader::getModel(\"Tropa\")->setTropa($this->getIdEdificioDefensor(), $tropa, 0);\n }\n \n foreach ($this->_combat->getTropasRestantes(\"defensor\") as $tropa => $cantidad) {\n Mob_Loader::getModel(\"Tropa\")->setTropa($this->getIdEdificioDefensor(), $tropa, $cantidad);\n }\n \n // restamos a ambos jugadores los puntos de tropas perdidos\n Mob_Loader::getModel(\"Usuarios\")->restarPuntosTropa($this->_jugadorAtacante->getIdUsuario(), $this->_combat->getPuntosPerdidos(\"atacante\"));\n Mob_Loader::getModel(\"Usuarios\")->restarPuntosTropa($this->_jugadorDefensor->getIdUsuario(), $this->_combat->getPuntosPerdidos(\"defensor\"));\n \n // restamos al defensor el robo\n $robo = $this->getRobo();\n Mob_Loader::getModel(\"Edificio\")->restarRecursos($this->getIdEdificioDefensor(), $robo[\"arm\"], $robo[\"mun\"], $robo[\"dol\"], $robo[\"alc\"]);\n\n $resultado = array(\n \"coord_atacante\" => $this->_data[\"coord_orig_1\"].\":\".$this->_data[\"coord_orig_2\"].\":\".$this->_data[\"coord_orig_3\"],\n \"coord_defensor\" => $this->_data[\"coord_dest_1\"].\":\".$this->_data[\"coord_dest_2\"].\":\".$this->_data[\"coord_dest_3\"],\n \"robo\" => $this->getRobo(),\n \"batalla\" => $this->_combat->getData(),\n \"habitaciones_defensor\" => array_map(create_function('$hab', 'return $hab->getNivel();'), $this->_jugadorDefensor->getEdificioActual()->getListadoHabitaciones()),\n \"recursos_disponibles\" => array(),\n \"trp_atacante\" => Zend_Json::encode($this->_combat->getTropas(\"atacante\")),\n \"trp_defensor\" => Zend_Json::encode($this->_combat->getTropas(\"defensor\")),\n \"trp_rest_atacante\" => Zend_Json::encode($this->_combat->getTropasRestantes(\"atacante\")),\n \"trp_rest_defensor\" => Zend_Json::encode($this->_combat->getTropasRestantes(\"defensor\"))\n );\n \n $this->_jugadorDefensor->getEdificioActual()->setData();\n foreach (array(\"arm\", \"mun\", \"dol\", \"alc\") as $rec) {\n $resultado[\"recursos_disponibles\"][$rec] = $this->_jugadorDefensor->getEdificioActual()->getTotalRecurso($rec);\n }\n \n $idFamiliaAtacante = $this->_jugadorAtacante->getIdFamilia();\n $idFamiliaDefensor = $this->_jugadorDefensor->getIdFamilia();\n \n $ptsPerdAtacante = $this->_combat->getPuntosPerdidos(\"atacante\");\n $ptsPerdDefensor = $this->_combat->getPuntosPerdidos(\"defensor\");\n \n $idGuerra = Mob_Loader::getModel(\"Guerras\")->getIdByFamilias($idFamiliaAtacante, $idFamiliaDefensor);\n // hacemos el insert\n $this->_idBatalla = Mob_Loader::getModel(\"Batallas\")->insert(array(\n \"resultado\" => Zend_Json::encode($resultado), \n \"atacante\" => $this->_jugadorAtacante->getIdUsuario(), \n \"defensor\" => $this->_jugadorDefensor->getIdUsuario(),\n \"pts_atacante\" => $this->_combat->getPuntosTotales(\"atacante\"),\n \"pts_defensor\" => $this->_combat->getPuntosTotales(\"defensor\"),\n \"pts_perd_atacante\" => $ptsPerdAtacante,\n \"pts_perd_defensor\" => $ptsPerdDefensor,\n \"fecha\" => $this->_data[\"fecha_fin\"],\n \"recursos_arm\" => $robo[\"arm\"],\n \"recursos_mun\" => $robo[\"mun\"],\n \"recursos_dol\" => $robo[\"dol\"],\n \"recursos_alc\" => $robo[\"alc\"],\n \"id_familia_a\" => $idFamiliaAtacante,\n \"id_familia_d\" => $idFamiliaDefensor,\n \"nombre_a\" => $this->_jugadorAtacante->getNombre(),\n \"nombre_d\" => $this->_jugadorDefensor->getNombre(),\n \"id_guerra\" => $idGuerra \n )\n );\n \n if ($idGuerra) {\n Mob_Loader::getModel(\"Guerras\")->sumarPerdidas($idGuerra, $ptsPerdAtacante, $idFamiliaAtacante, $ptsPerdDefensor, $idFamiliaDefensor);\n }\n \n /*$i = include_once APPLICATION_PATH.\"/modules/mob/views/helpers/getBatalla.php\";\n $renderBatalla = new Mob_View_Helper_GetBatalla;\n $renderBatalla->view = Zend_Controller_Front::getInstance()->getParam('bootstrap')->getResource('view'); \n echo $renderBatalla->getBatalla($this->_idBatalla, Zend_Auth::getInstance()->getIdentity()->id_usuario);*/ \n }", "title": "" }, { "docid": "9cfdb109ea7591e60f4004ffcb0e72a7", "score": "0.51082563", "text": "private function save($data)\n {\n\n\n\n //2 Inizializzo l'oggetto (sia save che update)\n $drawer = $this->loadModel(isset($data['drawerId'])?$data['drawerId']:null);\n //3 Aggiorno i campi di model\n $drawer->length = (int)$data['dimensions']['length'];\n $drawer->width = (int)$data['dimensions']['width'];\n $drawer->depth = (int)$data['dimensions']['shoulder_height'];\n $drawer->drawertypes_id = $data['drawertype'];\n // Update borders and background\n $drawer->sponda_front=isset($data['borders']['front'])?$data['borders']['front']:0;\n $drawer->sponda_back=isset($data['borders']['back'])?$data['borders']['back']:0;\n $drawer->sponda_left=isset($data['borders']['left'])?$data['borders']['left']:0;\n $drawer->sponda_right=isset($data['borders']['right'])?$data['borders']['right']:0;\n $drawer->background=isset($data['borders']['background'])?$data['borders']['background']:0;\n\n //Update svg and 3d\n if ($data['canvasSvg']) {\n $drawer->svg=$data['canvasSvg'];\n }\n if ($data['drawer3dImage']) {\n $drawer->png=$data['drawer3dImage'];\n }\n $saved = false;\n $error = \"\";\n try {\n $saved = $drawer->saveOrFail();\n // Gestisco svg\n\n\n\n //4 Gestisco i dividers \n\n // Clean the pivot table\n DB::table('drawerdivider')->where('drawer',$drawer->id)->delete();\n $dividers = [];\n foreach ($data['dividers_selected'] as $divider) {\n $curDividerId= $this->getDividerIdBySku($divider['sku']);\n $dividers[] = [\n 'divider' => $curDividerId,\n 'x' => $divider['x'],\n 'y' => $divider['y']\n ];\n }\n $drawer->drawerdividers()->sync($dividers);\n\n //5 Gestisco i bridges\n $bridges = [];\n $_bridgeLength = ($data['bridge_orientation']==\"V\")?$data['dimensions']['length']:$data['dimensions']['width'];\n foreach ($data['bridges_selected'] as $bridge) {\n $bridges[] = [\n 'bridge'=>$bridge['id'],\n 'orientation' => $data['bridge_orientation'],\n 'length' => $_bridgeLength,\n // 'color' => 1,\n ];\n }\n $drawer->drawerbridges()->sync($bridges);\n //6 Gestisco i supports\n $supports = [];\n $_supportLength = ($data['bridge_orientation']!=\"V\")?$data['dimensions']['length']:$data['dimensions']['width'];\n foreach ($data['bridge_supports_selected'] as $support) {\n $supports[] = [\n 'support' => $this->getSupportIdBySku($support['sku']) ,\n\n 'orientation'=>$data['bridge_orientation'],\n 'length'=> $_supportLength\n ];\n }\n $drawer->drawersupports()->sync($supports);\n\n\n } catch (\\Exception $ex) {\n $error = $ex->getMessage();\n }\n\n //6 Gestisco Mail\n if ($data['pdf']['send']) {\n $dest = $data['pdf']['email'];\n $drawerId = $drawer->id;\n $brochure = $data['pdf']['brochure'];\n $language = $data['language'];\n app()->setLocale($language);\n Mail::send('split.mail.mail', [], function($message) use ($dest,$drawerId,$brochure,$language)\n {\n $message->to($dest)\n ->subject(trans('mail.subject'))\n ->attachData(file_get_contents(route('split.export.topdf',['id'=>$drawerId,'brochure'=>0,'lang'=>$language])),\"cassetto.pdf\")\n ;\n });\n }\n\n //7 Ritorno un oggetto in json con l'id del cassetto salvato in db\n $out = [];\n if ($saved) {\n $out['status'] = 'ok';\n $out['id'] = $drawer->id;\n $out['pdfpath']= route('split.export.topdf',['id'=>$drawer->id,'brochure'=>($data['pdf']['brochure'])?1:0,'lang'=>$data['language']]);\n } else {\n $out['status'] = 'ko';\n $out['error'] = $error;\n $out['id'] = -1;\n }\n\n\n\n return $out;\n }", "title": "" }, { "docid": "bc2e87251003b75cff209e40edde3ad5", "score": "0.50919753", "text": "abstract protected function saveData();", "title": "" }, { "docid": "00ce8445cdddfc99b35f44df4cc0da5d", "score": "0.5090857", "text": "function action_edittable_save_dist(){\n\t//{\n\t\t$sql_save = \"UPDATE \"._request('table').\" SET\";\n\t\t$res_description_table = spip_query(\"DESC \"._request('table').\";\");\n\t\t$description_table = mysql_fetch_array($res_description_table);\n\t\twhile ($description_table = mysql_fetch_array($res_description_table)){\n\t\t\t//if ($cle == 'Field'){\n\t\t\t\t$sql_save .= \" \".$description_table['Field'].\"='\".addslashes(_request($description_table['Field'])).\"',\";\n\t\t\t//}\n\t\t} \n\t\t$sql_save = substr($sql_save, 0, strlen($sql_save)-1);\n\t\t$sql_save .= \" WHERE \"._request('colonne_cle').\"='\".addslashes(_request('valeur_cle')).\"';\";\n\t\t$res_sql = spip_query($sql_save);\n\t\t\n\t\t//echo $sql_save;\n\t\t\n\t//}else{\n\t\t//$sql_save = '<span style=\"font-weight:bolder;color:red;\">ERROR : NOT ADMIN</span>';\n\t//}\n\t\t$redirect = _request('redirect').'&sql_command='.$sql_save;\n\t\t//$redirect = parametre_url(urldecode(_request('redirect')),'id_digg', $id_digg,'&');\n\t\tredirige_par_entete($redirect);\n}", "title": "" }, { "docid": "556d7a984e7278b38c6100a00a0891cf", "score": "0.50893384", "text": "protected function saveCpInfo(){\n return;\n }", "title": "" }, { "docid": "c697e1f41eae83d2a8bda83f75833cb4", "score": "0.50805646", "text": "public function save()\n\t{\n\t\tif (isset($_SESSION['rol']) && $_SESSION['rol'] === 'Administrador'):\n\t\t\t$img = '';\n\t\t\tswitch ($_POST['nombre']) {\n\t\t\t\tcase 'Aerobicos':\n\t\t\t\t\t$img = 'images/clases/aerobicos.jpg';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'TaeBox':\n\t\t\t\t\t$img = 'images/clases/taebox.jpg';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Rumba':\n\t\t\t\t\t$img = 'images/clases/rumba.jpg';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Danza Pilates':\n\t\t\t\t\t$img = 'images/clases/pilates.jpg';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Abdominales':\n\t\t\t\t\t$img = 'images/clases/abdomen.jpg';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Funcionales':\n\t\t\t\t\t$img = 'images/clases/funcional.jpg';\n\t\t\t\t\tbreak;\n\t\t\t} \n\t\t\t$dataClass = [\n\t\t\t\t'nombre' => $_POST['nombre'],\n\t\t\t\t'estado' => 'Activo',\n\t\t\t\t'imagen' => $img\n\t\t\t\t\n\t\t\t]; \n\n\t\t\t$this->model->newClass($dataClass);\n\t\t\t\n\t\t\theader('Location: ?controller=clase');\n\t\telse:\n\t\t\theader('Location: ?controller=home');\n\t\tendif;\n\t\t\n\t}", "title": "" }, { "docid": "90b329df9b9a33d06b149c8d5c5a6ee1", "score": "0.5073501", "text": "function saveData()\n{\n global $f;\n global $isNew;\n global $dataDeductionType;\n $dataHrdAbsenceType = new cHrdAbsenceType();\n $data = [\n \"code\" => $f->getValue('dataCode'),\n \"note\" => $f->getValue('dataNote'),\n //\"full_absence\" => ($f->getValue('dataFullAbsence')) ? 't' : 'f',\n \"is_leave\" => ($f->getValue('dataIsLeave')) ? 't' : 'f',\n \"deduct_leave\" => ($f->getValue('dataDeductLeave')) ? 't' : 'f',\n \"leave_weight\" => $f->getValue('dataLeaveWeight'),\n \"limit\" => $f->getValue('limit'),\n \"cancel_partial_absence\" => ($f->getValue('dataCancelPartialAbsence')) ? 't' : 'f',\n /*\"deduct_attendance\" => ($f->getValue('dataDeductAttendance')) ? 't' : 'f',\n \"deduct_meal\" => ($f->getValue('dataDeductMeal')) ? 't' : 'f',\n \"deduct_shift\" => ($f->getValue('dataDeductShift')) ? 't' : 'f',\n \"deduct_transport\" => ($f->getValue('dataDeductTransport')) ? 't' : 'f',\n \"deduct_salary\" => ($f->getValue('dataDeductSalary')) ? 't' : 'f'*/\n ];\n // simpan data -----------------------\n if ($isNew) {\n // data baru\n $bolSuccess = $dataHrdAbsenceType->insert($data);\n } else {\n $bolSuccess = $dataHrdAbsenceType->update(/*pk*/\n \"code='\" . $f->getValue('dataID') . \"'\", /*data to update*/\n $data\n );\n }\n if ($bolSuccess) {\n $f->setValue('dataID', $f->getValue('dataCode'));\n }\n // simpan data trip type cost setting\n $tblHrdAbsenceDeduction = new cHrdAbsenceDeduction();\n $tblHrdAbsenceDeduction->delete(\"absence_code = '\" . $f->getValue('dataCode') . \"'\");\n $data2 = [\"absence_code\" => $f->getValue('dataCode')];\n foreach ($dataDeductionType AS $strDeductionCode => $arrDetail) {\n $data2['deduction_code'] = $strDeductionCode;\n $data2['is_dependant'] = ($f->getValue('data' . $strDeductionCode)) ? 't' : 'f';\n $tblHrdAbsenceDeduction->insert($data2);\n }\n $f->message = $dataHrdAbsenceType->strMessage;\n}", "title": "" }, { "docid": "90a89c1c8b3894700a8f9328e0bc7d62", "score": "0.5059823", "text": "public abstract function save();", "title": "" }, { "docid": "9ed5c9ca2ef115bd344906ebc7cda339", "score": "0.5044952", "text": "function salva()\r\n\t{\r\n\t\trestauraConObj($this->mapa,$this->postgis_mapa);\r\n\t\t$this->mapa->save($this->arquivo);\r\n\t}", "title": "" }, { "docid": "a138dbc3932dbd33ec10aace57508b90", "score": "0.50378805", "text": "function save() \n\t{\n\t\tif ($this->id<>0) \n\t\t\t{\n\t\t\t$query_save = \"update clientes_facturas_pagos set idFactura = '$this->idFactura', idTipoPago = '$this->idTipoPago', importe = '$this->importe', descripcion = '$this->descripcion', fecha = '$this->fecha' where id='$this->id'\"; \n\t\t\tmysql_query($query_save) or die(mysql_error()); \n\t\t\t}\n\t\telse \n\t\t\t{\n\t\t\t$query_save = \"insert into clientes_facturas_pagos values (null, '$this->idFactura', '$this->idTipoPago', '$this->importe', '$this->descripcion', CURDATE())\"; \n\t\t\tmysql_query($query_save) or die(mysql_error()); \n $id_insert = mysql_insert_id(); \n return($id_insert);\n\n } \n\t}", "title": "" }, { "docid": "c4ec92166ad9455336f4cd0f5352d324", "score": "0.50258386", "text": "private function saveInfo($model){\n\n\t\t$doc_dir = Yii::getPathOfAlias('application.data.despesas');\n\t\t\n\t\t//Salva todos os campos adicionais\n\t\tif(isset($_POST['ProjetoDespesaInfo'])){\n\t\t\tforeach($_POST['ProjetoDespesaInfo'] as $key=>$dps){\n\t\t\n\t\t\t\t$despesa = new ProjetoDespesaInfo();\n\t\t\t\t$despesa->cod_despesa = $model->cod_despesa;\n\t\t\t\t$despesa->attributes = $dps;\n\t\t\n\t\t\t\t//Salva a despesa antes para usar seu código único no nome do arquivo\n\t\t\t\t$despesa->save();\n\t\t\n\t\t\t\t//Verifica se o tipo de campo é um Arquivo\n\t\t\t\tif($dps['tipo'] == RubricaCampo::CAMPO_ANEXO){\n\t\t\t\t\t\t\n\t\t\t\t\t//Salva o arquivo do campo adicional\n\t\t\t\t\t$info_file = CUploadedFile::getInstanceByName('ProjetoDespesaInfo[' .$key .'][valor]');\n\t\t\t\t\tif($info_file != null){\n\t\t\t\t\t\t$docname = $model->cod_despesa . $despesa->cod_info .'_' .$info_file->name;\n\t\t\n\t\t\t\t\t\t$info_file->saveAs($doc_dir .DIRECTORY_SEPARATOR .$docname);\n\t\t\n\t\t\t\t\t\t//Salva o nome do arquivo\n\t\t\t\t\t\t$despesa->valor = $docname;\n\t\t\t\t\t\t$despesa->save();\n\t\t\t\t\t}\n\t\t\t\t}//fim anexo\n\t\t\n\t\t\t}\n\t\t}//PostDespesaInfo\n\t}", "title": "" }, { "docid": "fede24e8d1332f07ab5ff39c03eeb7d8", "score": "0.50249326", "text": "public function save()\n\t{\n \tglobal $gDb, $gCurrentOrganization;\n \n \tforeach ($this->config as $section => $sectiondata)\n \t{\n \tforeach ($sectiondata as $sectiondatakey => $sectiondatavalue)\n \t{\n \tif (is_array($sectiondatavalue))\n \t{\n \t\t\tfor ($i = 0; $i < count($sectiondatavalue); $i++)\n \t\t\t\t{\n \t\t\t\t\tif (is_array($sectiondatavalue[$i]))\n \t\t\t\t{\n \t\t\t\t\t// um diesen Datensatz in der Datenbank als Array zu kennzeichnen, wird er von Doppelklammern eingeschlossen \n \t\t\t\t$sectiondatavalue[$i] = '(('.implode(self::$dbtoken2,$sectiondatavalue[$i]).'))';\n \t\t\t\t}\n \t\t\t\t\t}\n\n \t// um diesen Datensatz in der Datenbank als Array zu kennzeichnen, wird er von Doppelklammern eingeschlossen \n \t\t$sectiondatavalue = '(('.implode(self::$dbtoken,$sectiondatavalue).'))';\n \t} \n \n \t\t\t\t$plp_name = self::$shortcut.'__'.$section.'__'.$sectiondatakey;\n \n \t$sql = ' SELECT plp_id \n \t\t\t FROM '.$this->table_name.' \n \t\t\t WHERE plp_name = \\''.$plp_name.'\\' \n \t\t\t AND ( plp_org_id = '.$gCurrentOrganization->getValue('org_id').'\n \t\t OR plp_org_id IS NULL ) ';\n $statement = $gDb->query($sql);\n \t$row = $statement->fetchObject();\n\n \t// Gibt es den Datensatz bereits?\n \t// wenn ja: UPDATE des bestehende Datensatzes \n \tif (isset($row->plp_id) AND strlen($row->plp_id) > 0)\n \t{\n \t$sql = 'UPDATE '.$this->table_name.' \n \t\t\t SET plp_value = \\''.$sectiondatavalue.'\\' \n \t\t\t WHERE plp_id = '.$row->plp_id; \n \n \t$gDb->query($sql); \n \t}\n \t// wenn nicht: INSERT eines neuen Datensatzes \n \telse\n \t{\n \t\t\t\t\t$sql = 'INSERT INTO '.$this->table_name.' (plp_org_id, plp_name, plp_value) \n \t\t\t\t\t\t\t VALUES (\\''.$gCurrentOrganization->getValue('org_id').'\\' ,\\''.self::$shortcut.'__'.$section.'__'.$sectiondatakey.'\\' ,\\''.$sectiondatavalue.'\\')'; \n \t\t$gDb->query($sql); \n \t} \n \t} \n \t}\n\t}", "title": "" }, { "docid": "9a7aaadb234f9df4e7b1817cc12036e0", "score": "0.5023935", "text": "function salva()\n {\n \trestauraConObj($this->mapa,$this->postgis_mapa);\n \t$this->mapa->save($this->arquivo);\n }", "title": "" }, { "docid": "f58953398874f5366ec8cc9e390cbd07", "score": "0.5023807", "text": "function autosave()\r\n {\r\n\t\tif($this->debug>0){error_log('New LP - In learnpath::autosave()',0);}\r\n \t//TODO add aditionnal save operations for the learnpath itself\r\n }", "title": "" }, { "docid": "281acedbce4688dd4c6e103d5de9183a", "score": "0.5017602", "text": "function save() {\n\t\t$this -> load -> model('ec_auction_m');\n\t\t$dt = $this -> ec_auction_m -> get_no_tender();\n\t\t$dt['NO_TENDER']++;\n\t\t$data['NO_TENDER'] = $dt['NO_TENDER'];\n\t\t$data['DESC'] = $this -> input -> post('DESC');\n\t\t$data['LOCATION'] = $this -> input -> post('LOCATION');\n\t\t$data['TGL_BUKA'] = $this -> input -> post('TGL_BUKA');\n\t\t$data['TGL_TUTUP'] = $this -> input -> post('TGL_TUTUP');\n\t\t$data['NILAI_PENGURANGAN'] = str_replace(\".\", \"\", $this -> input -> post('NILAI_PENGURANGAN'));\n\t\t$data['CURR'] = $this -> input -> post('CURR');\n\t\t$data['TIPE'] = $this -> input -> post('TIPE');\n\t\t$data['NOTE'] = \"\";\n\t\t$data['HPS'] = str_replace(\".\", \"\", $this -> input -> post('HPS'));\n\t\t$data['NO_REF'] = $this -> input -> post('NO_REF');\n\t\t$data = $this -> ec_auction_m -> save($data, $this -> session -> userdata['ID']);\n\t\tredirect('EC_Auction/index');\n\t}", "title": "" }, { "docid": "8c282a5c7ce6fc3ebf5886047801516a", "score": "0.49935234", "text": "function save()\n\t{\n\t\tJRequest::checkToken() or jexit('Invalid Token');\n\t\t\n\t\t$row = &JTable::getInstance('blooms', 'Table');\n\t\t$post = JRequest::get('post');\n\t\t// get the Text Area 'text' again, but not full *cleaned* by JRequest.\n\t\t$post['body'] = JRequest::getVar('body', '', 'post', 'string', JREQUEST_ALLOWRAW);\n\n\t\t$success = $row->save($post);\n\t\tif (!$success) {\n\t\t\tJError::raiseError(500, $row->getError());\n\t\t}\n\n\t\tswitch ($this->_task)\n\t\t{\n\t\t\tcase 'apply':\n\t\t\t\t$msg = JText::_('COM_ALVEARIUM_BLOOMS_APPLIED');\n\t\t\t\t$link = 'index.php?option=com_alvearium&controller=letter&task=edit&cid[]='.$row->id;\n\t\t\t\tbreak;\n\n\t\t\tcase 'save':\n\t\t\tdefault:\n\t\t\t\t$msg = JText::_('COM_ALVEARIUM_BLOOMS_SAVED');\n\t\t\t\t$link = 'index.php?option=com_alvearium&view=blooms';\n\t\t\t\tbreak;\n\t\t}\n\n\t\t$this->setRedirect($link, $msg);\n\t}", "title": "" }, { "docid": "da6a030b5592320cf3c2cf91ad50d6ac", "score": "0.49755323", "text": "protected function compile()\n\t{\n\t/* Datenbank abrufen*/\n\t$this->import('Database');\n \n\t/* EDITIERTES KONZERT SPEICHERN*/\n if($_REQUEST['trg']=='saveedconc'){\n //Daten einlesen\n $coid = $_REQUEST['coid'];\n $title = $_REQUEST['cotitle'];\n $ensembleid = $_REQUEST['ensemble'];\n $director = $_REQUEST['codirector'];\n $solisti = $_REQUEST['cosolisti'];\n $heute = time();\n // Parse Werke into one string\n $werkids = \"\";\n for($i=1;$i<=12;$i++){\n if($_REQUEST['werkids_'.$i]&&$_REQUEST['wdel'.$i]!='delw'.$i){\n $werkids .= $_REQUEST['werkids_'.$i.''].\",\";\n }\n }\n $werkids = substr($werkids, 0, -1);\n $sqlc='UPDATE tl_concert SET tstamp = '.$heute.',ensembleid = '.$ensembleid.', title = \"'.$title.'\", director = \"'.$director.'\", solisti = \"'.$solisti.'\", werkids = \"'.$werkids.'\" WHERE id = '.$coid.';';\n $result = $this->Database->prepare($sqlc)->execute();\n //Konzertdaten speichern > falls id vorhanden > UPDATE, sonst INSERT\n for($i=1;$i<=6;$i++){\n if($_REQUEST['date'.$i.'']!=''){\n $td = explode('.',$_REQUEST['date'.$i.'']);\n $tt = explode(':',$_REQUEST['time'.$i.'']);\n if ($tt[1]=='00'){$tt[1]=0;}\n $tstmp = mktime($tt[0],$tt[1],0,$td[1],$td[0],$td[2]);\n $ort = $_REQUEST['ort'.$i.''];\n $ksaal = $_REQUEST['ksaal'.$i.''];\n if($_REQUEST['cdatid'.$i.'']==''){\n $sqld = 'INSERT into tl_concertdata (tstamp, ensembleid,concertid,datumzeit,ort,ksaal) VALUES ('.$heute.','.$ensembleid.','.$coid.','.$tstmp.',\"'.$ort.'\",\"'.$ksaal.'\")';\n $result = $this->Database->prepare($sqld)->execute();\n } else {\n $sqld = 'UPDATE tl_concertdata SET tstamp = '.$heute.', ensembleid ='.$ensembleid.', concertid = '.$coid.', datumzeit = '.$tstmp.', ort = \"'.$ort.'\", ksaal = \"'.$ksaal.'\" WHERE id = '.$_REQUEST['cdatid'.$i.''];\n $result = $this->Database->prepare($sqld)->execute();\n }\n }\n //Do we have to delete something?\n if($_REQUEST['cdel'.$i.'']==\"delc\".$i){\n $sqldelc = 'DELETE FROM tl_concertdata WHERE id ='.$_REQUEST['cdatid'.$i.''];\n $result = $this->Database->prepare($sqldelc)->execute();\n }\n }\n }\n \n\t/*** NEUES KONZERT SPEICHERN ***/\n\tif($_REQUEST['trg']=='savenewconc'){\n $coid = $_REQUEST['coid'];\n $title = $_REQUEST['cotitle'];\n $ensembleid = $_REQUEST['ensemble'];\n\t\t\t$director = $_REQUEST['codirector'];\n $solisti = $_REQUEST['cosolisti'];\n $heute = time();\n\t\t // Parse Werke into one string\n $werkids = $_REQUEST['werkids_1'];\n for($i=2;$i<=12;$i++){\n if($_REQUEST['werkids_'.$i]){\n $werkids .= \",\".$_REQUEST['werkids_'.$i.''];\n }\n }\n $sql='INSERT into tl_concert (tstamp,ensembleid, title, director, solisti, werkids) VALUES ('.$heute.','.$ensembleid.',\"'.$title.'\",\"'.$director.'\",\"'.$solisti.'\",\"'.$werkids.'\");';\n $result = $this->Database->prepare($sql)->execute();\n $concertid = $result->insertId;\n $td= explode('.',$_REQUEST['date1']);\n $tt= explode(':',$_REQUEST['time1']);\n if ($tt[1]=='00'){$tt[1]=0;}\n $tstmp = mktime($tt[0],$tt[1],0,$td[1],$td[0],$td[2]);\n \n $ort = $_REQUEST['ort1'];\n $ksaal = $_REQUEST['ksaal1']; \n $sql='INSERT into tl_concertdata (tstamp, ensembleid,concertid,datumzeit,ort,ksaal) VALUES ('.$heute.','.$ensembleid.','.$concertid.','.$tstmp.',\"'.$ort.'\",\"'.$ksaal.'\")';\n $result = $this->Database->prepare($sql)->execute();\n for($i=2;$i<=5;$i++){\n if($_REQUEST['date'.$i.'']!=''){\n $td = explode('.',$_REQUEST['date'.$i.'']);\n $tt = explode(':',$_REQUEST['time'.$i.'']);\n if ($tt[1]=='00'){$tt[1]=0;}\n $tstmp = mktime($tt[0],$tt[1],0,$td[1],$td[0],$td[2]);\n $ort = $_REQUEST['ort'.$i.''];\n $ksaal = $_REQUEST['ksaal'.$i.''];\n \n $sql1='INSERT into tl_concertdata (tstamp, ensembleid,concertid,datumzeit,ort,ksaal) VALUES ('.$heute.','.$ensembleid.','.$concertid.','.$tstmp.',\"'.$ort.'\",\"'.$ksaal.'\")';\n $result = $this->Database->prepare($sql1)->execute();\n }\n }\n \n \n $this->Template->todo = 'klist';\n }\n \n\t/*** ZU EDITIERENDE DATEN ABRUFEN ***/ \n if($_REQUEST['trg']=='concertedit'){\n $coid = $_REQUEST['coid']; // key\n $sql=\"SELECT tl_concert.id as coid, tl_concert.title as ktitle, ensembleid, director, solisti, werkids from tl_concert, tl_ensemble WHERE tl_concert.id = \".$coid.\" AND tl_concert.ensembleid = tl_ensemble.id\";\n $sqld=\"SELECT tl_concertdata.id as cdid, datumzeit, ort, ksaal from tl_concertdata WHERE concertid = \".$coid.\";\";\n $result = $this->Database->prepare($sql)->execute();\n $ensembleid = $result->ensembleid;\n $this->Template->ensembleid = $result->ensembleid;\n $this->Template->ktitle = $result->ktitle;\n $this->Template->director = $result->director;\n $this->Template->solisti = $result->solisti;\n $this->Template->coid = $result->coid;\n //Bereitstellen Konzertdaten\n $dresult = $this->Database->prepare($sqld)->execute();\n while($dresult->next()){\n $datum = date(\"d.m.Y\", $dresult->datumzeit);\n $zeit = date(\"H:i\", $dresult->datumzeit);\n $arrKdat[] = array(\n 'cdatid' => $dresult->cdid,\n 'ort' => $dresult->ort,\n 'ksaal' => $dresult->ksaal,\n 'datum' => $datum,\n 'zeit' => $zeit,\n );\n }\n $this->Template->kdat = $arrKdat;\n \n // Bereitstellen Ensembles\n $sqle=\"SELECT tl_ensemble.id, title from tl_ensemble ORDER by title;\";\n $eresult = $this->Database->prepare($sqle)->execute();\n while($eresult->next()){\n $arrEns[] = array(\n 'eid' => $eresult->id,\n 'etitle' => $eresult->title,\n );\n }\n $this->Template->kens = $arrEns;\n // Bereitstellen Werke > alle Werke\n $this->Template->prog = explode(\",\",$result->werkids);\n \n $sqlw=\"SELECT id, komponist, komponistvn, title from tl_catalog ORDER by komponist,title;\";\n $wresult = $this->Database->prepare($sqlw)->execute();\n while($wresult->next()){\n $arrWerk[] = array(\n 'werkid' => $wresult->id,\n 'komp' => $wresult->komponist,\n 'werktitle' => $wresult->title,\n );\n }\n $this->Template->werklist = $arrWerk;\n // Konzertdaten\n \n $this->Template->todo = 'edconc';\n }\n \n /* NEUES KONZERT ANLEGEN */ \n\tif($_REQUEST['trg']=='newconc'){\n $this->Template->todo = 'newconc';\n //DATEN ENSEMBLES\n $sql=\"SELECT tl_ensemble.id as ensembleid, title as ensemblename FROM tl_ensemble ORDER by ensemblename\";\n $result = $this->Database->prepare($sql)->execute();\n while($result->next())\n {\n $arrEnse[] = array(\n\t\t 'ensembleid' => $result->ensembleid,\n\t\t 'ensemblename' => $result->ensemblename,\n\t\t\t);\n }\n\t $this->Template->ensembles = $arrEnse;\n //DATEN WERKLISTE\n $sql=\"SELECT tl_catalog.id as werkid, komponist as komp, title as werktitle FROM tl_catalog ORDER by komponist,werktitle\";\n $result = $this->Database->prepare($sql)->execute();\n while($result->next())\n {\n $arrWerke[] = array(\n\t\t 'werkid' => $result->werkid,\n 'komp' => $result->komp, \n\t\t 'werktitle' => $result->werktitle,\n\t\t\t);\n }\n\t $this->Template->werklist = $arrWerke;\n //DATEN BEREITS EINGETRAGENE KONZERTE\n $sql = \"SELECT tl_concert.id as coid, datumzeit, ort, ksaal, tl_concert.title as ktitle, tl_ensemble.title, director, solisti, werkids from tl_concert, tl_concertdata, tl_ensemble WHERE concertid = tl_concert.id AND tl_concert.ensembleid = tl_ensemble.id\";\n $result = $this->Database->prepare($sql)->execute();\n while($result->next())\n {\n $sqlw = \"SELECT komponist, komponistvn, title from tl_catalog WHERE id in (\".$result->werkids.\");\";\n $wresult = $this->Database->prepare($sqlw)->execute();\n while($wresult->next())\n {\n $prog .= $wresult->komponist.\" \".$wresult->komponistvn.\": \".$wresult->title.\", \"; \n }\n $datum = date('d.m.Y', $result->datumzeit);\n $zeit = date('H:i', $result->datumzeit);\n $arrKonz[] = array(\n\t\t 'ort' => $result->ort,\n 'ksaal' => $result->ksaal, \n\t\t 'ktitle' => $result->ktitle,\n 'datum' => $datum,\n 'zeit' => $zeit,\n 'tstmp' => $result->datumzeit,\n\t\t\t);\n }\n $this->Template->konzlist = $arrKonz; \n }\n \n /*** KONZERTLISTE ERSTELLEN ***/ \n\t$sql = \"SELECT tl_concert.id as coid, datumzeit, ort, ksaal, tl_concert.title as ktitle, tl_ensemble.title, director, solisti, werkids from tl_concert, tl_concertdata, tl_ensemble WHERE concertid = tl_concert.id AND tl_concert.ensembleid = tl_ensemble.id ORDER by datumzeit\";\n $result = $this->Database->prepare($sql)->execute();\n while($result->next())\n {\n $sqlwe = \"SELECT komponist, komponistvn, title from tl_catalog WHERE id in (\".$result->werkids.\");\";\n $wresult = $this->Database->prepare($sqlwe)->execute();\n $prog='';\n while($wresult->next())\n {\n $prog .= $wresult->komponist.\" \".$wresult->komponistvn.\": \".$wresult->title.\"&#10;\";\n }\n $datum = date('d.m.Y', $result->datumzeit);\n $zeit = date('H:i', $result->datumzeit);\n $arrKonz[] = array(\n 'ort' => $result->ort,\n 'ksaal' => $result->ksaal, \n 'ktitle' => $result->ktitle,\n 'datum' => $datum,\n 'zeit' => $zeit,\n 'tstmp' => $result->datumzeit,\n 'director' => $result->director,\n 'solisti' => $result->solisti,\n 'prog' => $prog,\n 'coid' => $result->coid,\n\t\t\t);\n }\n $this->Template->konzlist = $arrKonz; \n \n }", "title": "" }, { "docid": "0edd2f79cee931aed903e77799623bf1", "score": "0.49617413", "text": "function Save(){\r\n\t\tltxt::print_r($_REQUEST);\r\n\t\t$nextScreenLevel = $_REQUEST[\"ScreenLevel\"]+1;echo $nextScreenLevel;\r\n\t\t$nextSCTypeId = $this->getNextSCTypeID($_REQUEST[\"BgtYear\"],$_REQUEST[\"ScreenLevel\"]);echo $nextSCTypeId;\r\n\t\t\r\n\t\t// โครงการ\r\n\t\t$ListPrj = $this->getPrjList($_REQUEST[\"BgtYear\"],$_REQUEST[\"OrganizeCode\"],$_REQUEST[\"SCTypeId\"],$_REQUEST[\"ScreenLevel\"]);\r\n\t\t//ltxt::print_r($ListPrj);\r\n\r\n\t\tforeach($ListPrj as $r){\r\n\t\t\tforeach($r as $k=>$v){ ${$k} = $v;}\r\n\r\n\t\t\t\t$Data[\"PrjId\"] = $PrjId;\r\n\t\t\t\t$Data[\"PrjCode\"] = $PrjCode;\r\n\t\t\t\t$Data[\"StartDate\"] = $StartDate;\r\n\t\t\t\t$Data[\"EndDate\"] = $EndDate;\r\n\t\t\t\t$Data[\"Telephone\"] = $Telephone;\r\n\t\t\t\t$Data[\"Fax\"] = $Fax;\r\n\t\t\t\t$Data[\"Email\"] = $Email;\r\n\t\t\t\t$Data[\"Principles\"] = $Principles;\r\n\t\t\t\t$Data[\"Purpose\"] = $Purpose;\r\n\t\t\t\t$Data[\"Indicator\"] = $Indicator;\r\n\t\t\t\t$Data[\"Outputs\"] = $Outputs;\r\n\t\t\t\t$Data[\"StatusId\"] = \"1\";\r\n\t\t\t\t$Data[\"DetailIdRefer\"] = $DetailIdRefer;\r\n\t\t\t\t$Data[\"SCTypeId\"] = $nextSCTypeId;\r\n\t\t\t\t$Data[\"ScreenLevel\"] = $nextScreenLevel;\r\n\t\t\t\t$Data[\"ActiveStatus\"] = \"Y\";\r\n\t\t\t\t$Data[\"UpdateDate\"] = $UpdateDate;\r\n\t\t\t\t$Data[\"UpdateBy\"] = $UpdateBy;\r\n\t\t\t\t$Data[\"CreateDate\"] = $CreateDate;\r\n\t\t\t\t$Data[\"CreateBy\"] = $CreateBy;\t\r\n\t\r\n\t\t\t\t$pkPrj = $this->db->arecSave(\"tblbudget_project_detail\",$Data);\r\n\t\t\t\r\n\t\t\t\t$sql = \"update tblbudget_project_detail set ActiveStatus='N' where PrjId='$PrjId' and PrjDetailId='$PrjDetailId' and SCTypeId='\".$_POST[\"SCTypeId\"].\"' and ScreenLevel='\".$_POST[\"ScreenLevel\"].\"' \";\r\n\t\t\t\t$this->db->Execute($sql);\t\t\r\n\t\t\t\r\n\t\t\t//ไฟล์แนบ\r\n\t\t\t$ListPrjFile = $this->getPrjFile($PrjDetailId);\r\n\t\t\t//ltxt::print_r($ListPrjFile);\r\n\t\t\tforeach($ListPrjFile as $rFlie){\r\n\t\t\t\tforeach($rFlie as $k=>$v){ ${$k} = $v;}\r\n\t\t\t\t\t\t$DataFile[\"DocId\"] = $DocId;\r\n\t\t\t\t\t\t$DataFile[\"PrjDetailId\"] = $pkPrj;\t\t\t\t\r\n\t\t\t\t\t\t$DataFile[\"CreateDate\"] = $CreateDate;\r\n\t\t\t\t\t\t$DataFile[\"CreateBy\"] = $CreateBy;\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//$pkFile = $this->db->arecSave(\"tblbudget_project_file\",$DataFile);\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t//ตัวชี้วัดโครงการ\r\n\t\t\t$ListPrjIndicator = $this->getPrjIndicator($PrjDetailId);\r\n\t\t\t//ltxt::print_r($ListPrjIndicator);\r\n\t\t\tforeach($ListPrjIndicator as $rInd){\r\n\t\t\t\tforeach($rInd as $k=>$v){ ${$k} = $v;}\r\n\t\t\t\t\t\t$DataInd[\"PrjDetailId\"] = $pkPrj;\t\r\n\t\t\t\t\t\t$DataInd[\"IndicatorName\"] = $IndicatorName;\t\t\t\t\r\n\t\t\t\t\t\t$DataInd[\"Value\"] = $Value;\t\t\t\t\r\n\t\t\t\t\t\t$DataInd[\"UnitID\"] = $UnitID;\t\t\r\n\t\t\t\t\t\t$DataInd[\"IndTypeId\"] = $IndTypeId;\t\t\t\r\n\t\t\t\t\t\t$DataInd[\"CreateDate\"] = $CreateDate;\r\n\t\t\t\t\t\t$DataInd[\"CreateBy\"] = $CreateBy;\t\r\n\t\t\t\t\t\t$DataInd[\"UpdateDate\"] = $UpdateDate;\r\n\t\t\t\t\t\t$DataInd[\"UpdateBy\"] = $UpdateBy;\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$pkInd = $this->db->arecSave(\"tblbudget_project_indicator\",$DataInd);\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\r\n/*\t\t\t//ผู้รับผิดชอบโครงการ\r\n\t\t\t$ListPrjPerson = $this->getPrjPerson($PrjDetailId);\r\n\t\t\t//ltxt::print_r($ListPrjPerson);\r\n\t\t\tforeach($ListPrjPerson as $rPer){\r\n\t\t\t\tforeach($rPer as $k=>$v){ ${$k} = $v;}\r\n\t\t\t\t\t\t$DataPer[\"PrjDetailId\"] = $pkPrj;\t\r\n\t\t\t\t\t\t$DataPer[\"PersonalCode\"] = $PersonalCode;\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t$DataPer[\"CreateDate\"] = $CreateDate;\r\n\t\t\t\t\t\t$DataPer[\"CreateBy\"] = $CreateBy;\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$pkPer = $this->db->arecSave(\"tblbudget_project_person\",$DataPer);\t\t\t\t\t\r\n\t\t\t}*/\r\n\r\n\t\t\t// กิจกรรม\t\r\n\t\t\t$ListActPrj = $this->getPrjActList($PrjDetailId,$_POST[\"BgtYear\"],$_POST[\"OrganizeCode\"],$_POST[\"SCTypeId\"],$_POST[\"ScreenLevel\"]);\r\n\t\t\t//ltxt::print_r($ListActPrj);\r\n\t\t\tforeach($ListActPrj as $rAct){\r\n\t\t\t\tforeach($rAct as $k=>$v){ ${$k} = $v;}\r\n\t\t\t\t\r\n\t\t\t\t\t\t$DataAct[\"PrjActCode\"] = $PrjActCode;\r\n\t\t\t\t\t\t$DataAct[\"OrganizeCode\"] = $OrganizeCode;\r\n\t\t\t\t\t\t$DataAct[\"StartDate\"] = $StartDate;\r\n\t\t\t\t\t\t$DataAct[\"EndDate\"] = $EndDate;\r\n\t\t\t\t\t\t$DataAct[\"PrjActName\"] = $PrjActName;\r\n\t\t\t\t\t\t$DataAct[\"PrjDetailId\"] = $pkPrj;\t\t\t\t\t\t\r\n\t\t\t\t\t\t$DataAct[\"UpdateDate\"] = $UpdateDate;\r\n\t\t\t\t\t\t$DataAct[\"UpdateBy\"] = $UpdateBy;\r\n\t\t\t\t\t\t$DataAct[\"CreateDate\"] = $CreateDate;\r\n\t\t\t\t\t\t$DataAct[\"CreateBy\"] = $CreateBy;\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$pkActPrj = $this->db->arecSave(\"tblbudget_project_activity\",$DataAct);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//ตัวชี้วัดกิจกรรม\r\n\t\t\t\t\t\t$ListPrjIndicatorAct = $this->getPrjIndicatorAct($PrjActId);\r\n\t\t\t\t\t\t//ltxt::print_r($ListPrjIndicatorAct);\r\n\t\t\t\t\t\tforeach($ListPrjIndicatorAct as $rIndAct){\r\n\t\t\t\t\t\t\tforeach($rIndAct as $k=>$v){ ${$k} = $v;}\r\n\t\t\t\t\t\t\t\t\t$DataIndAct[\"PrjActId\"] = $pkActPrj;\t\r\n\t\t\t\t\t\t\t\t\t$DataIndAct[\"IndicatorName\"] = $IndicatorName;\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t$DataIndAct[\"Value\"] = $Value;\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t$DataIndAct[\"UnitID\"] = $UnitID;\t\t\r\n\t\t\t\t\t\t\t\t\t$DataIndAct[\"IndTypeId\"] = $IndTypeId;\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t$DataIndAct[\"CreateDate\"] = $CreateDate;\r\n\t\t\t\t\t\t\t\t\t$DataIndAct[\"CreateBy\"] = $CreateBy;\t\r\n\t\t\t\t\t\t\t\t\t$DataIndAct[\"UpdateDate\"] = $UpdateDate;\r\n\t\t\t\t\t\t\t\t\t$DataIndAct[\"UpdateBy\"] = $UpdateBy;\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t$pkIndAct = $this->db->arecSave(\"tblbudget_project_activity_indicator\",$DataIndAct);\t\t\t\t\r\n\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//ภาคีเครือข่าย\r\n\t\t\t\t\t\t$PartyList = $this->getPartyListAct($PrjActId);\r\n\t\t\t\t\t\t//ltxt::print_r($ListPrjIndicatorAct);\r\n\t\t\t\t\t\tforeach($PartyList as $rPtyAct){\r\n\t\t\t\t\t\t\tforeach($rPtyAct as $k=>$v){ ${$k} = $v;}\r\n\t\t\t\t\t\t\t\t\t$DataPtyAct[\"PrjActId\"] = $pkActPrj;\t\r\n\t\t\t\t\t\t\t\t\t$DataPtyAct[\"PartnerCode\"] = $PartnerCode;\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t$DataPtyAct[\"CatGroupId\"] = $CatGroupId;\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t$DataPtyAct[\"CatGroupCode\"] = $CatGroupCode;\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t$DataPtyAct[\"CreateDate\"] = $CreateDate;\r\n\t\t\t\t\t\t\t\t\t$DataPtyAct[\"CreateBy\"] = $CreateBy;\t\r\n\t\t\t\t\t\t\t\t\t$DataPtyAct[\"UpdateDate\"] = $UpdateDate;\r\n\t\t\t\t\t\t\t\t\t$DataPtyAct[\"UpdateBy\"] = $UpdateBy;\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t$pkPtyAct = $this->db->arecSave(\"tblbudget_project_party\",$DataPtyAct);\t\t\t\t\r\n\t\t\t\t\t\t}\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t// คูณ 4 ช่อง Internal\r\n\t\t\t\t\t\t$ListX4InternalPrj = $this->getPrjX4InternalList($PrjActId,$_POST[\"BgtYear\"],$_POST[\"OrganizeCode\"],$_POST[\"SCTypeId\"],$_POST[\"ScreenLevel\"]);\r\n\t\t\t\t\t\t//ltxt::print_r($ListX4InternalPrj);\r\n\t\t\t\t\t\tforeach($ListX4InternalPrj as $rX4In){\r\n\t\t\t\t\t\t\tforeach($rX4In as $k=>$v){ ${$k} = $v;}\r\n\r\n\t\t\t\t\t\t\t\t$DataX4In[\"CostItemCode\"] = $CostItemCode;\t\r\n\t\t\t\t\t\t\t\t$DataX4In[\"Detail\"] = $Detail;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$DataX4In[\"Value1\"] = $Value1;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$DataX4In[\"Unit1\"] = $Unit1;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$DataX4In[\"Value2\"] = $Value2;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$DataX4In[\"Unit2\"] = $Unit2;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$DataX4In[\"Value3\"] = $Value3;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$DataX4In[\"Unit3\"] = $Unit3;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$DataX4In[\"Value4\"] = $Value4;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$DataX4In[\"Unit4\"] = $Unit4;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$DataX4In[\"SumCost\"] = $SumCost;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$DataX4In[\"PrjActId\"] = $pkActPrj;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$DataX4In[\"UpdateDate\"] = $UpdateDate;\r\n\t\t\t\t\t\t\t\t$DataX4In[\"UpdateBy\"] = $UpdateBy;\r\n\t\t\t\t\t\t\t\t$DataX4In[\"CreateDate\"] = $CreateDate;\r\n\t\t\t\t\t\t\t\t$DataX4In[\"CreateBy\"] = $CreateBy;\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$pkX4In = $this->db->arecSave(\"tblbudget_project_activity_cost_internal\",$DataX4In);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// แจกแจงรายเดือน Internal\r\n\t\t\t\t\t\t\t\t$ListInternalMonth = $this->getListInternalMonth($CostIntId,$_POST[\"BgtYear\"],$_POST[\"OrganizeCode\"],$_POST[\"SCTypeId\"],$_POST[\"ScreenLevel\"]);\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//ltxt::print_r($ListInternalMonth);\r\n\t\t\t\t\t\t\t\tforeach($ListInternalMonth as $rInMonth){\r\n\t\t\t\t\t\t\t\t\tforeach($rInMonth as $k=>$v){ ${$k} = $v;}\r\n\t\t\t\t\t\t\t\t\t\t$DataInMonth[\"CostIntId\"] = $pkX4In;\r\n\t\t\t\t\t\t\t\t\t\t$DataInMonth[\"MonthNo\"] = $MonthNo;\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t$DataInMonth[\"Budget\"] = $Budget;\r\n\t\t\t\t\t\t\t\t\t\t$DataInMonth[\"CreateDate\"] = $CreateDate;\r\n\t\t\t\t\t\t\t\t\t\t$DataInMonth[\"CreateBy\"] = $CreateBy;\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t$this->db->arecSave(\"tblbudget_project_activity_cost_internal_month\",$DataInMonth);\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}//ListInternalMonth\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}//ListX4InternalPrj\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// คูณ 4 ช่อง External\r\n\t\t\t\t\t\t$ListX4ExternalPrj = $this->getPrjX4ExnternalList($PrjActId,$_POST[\"BgtYear\"],$_POST[\"OrganizeCode\"],$_POST[\"SCTypeId\"],$_POST[\"ScreenLevel\"]);\r\n\t\t\t\t\t\t//ltxt::print_r($ListX4ExternalPrj);\r\n\t\t\t\t\t\tforeach($ListX4ExternalPrj as $rX4Ex){\r\n\t\t\t\t\t\t\tforeach($rX4Ex as $k=>$v){ ${$k} = $v;}\r\n\r\n\t\t\t\t\t\t\t\t$DataX4Ex[\"SourceExId\"] = $SourceExId;\t\r\n\t\t\t\t\t\t\t\t$DataX4Ex[\"CostItemCode\"] = $CostItemCode;\t\r\n\t\t\t\t\t\t\t\t$DataX4Ex[\"Detail\"] = $Detail;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$DataX4Ex[\"Value1\"] = $Value1;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$DataX4Ex[\"Unit1\"] = $Unit1;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$DataX4Ex[\"Value2\"] = $Value2;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$DataX4Ex[\"Unit2\"] = $Unit2;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$DataX4Ex[\"Value3\"] = $Value3;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$DataX4Ex[\"Unit3\"] = $Unit3;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$DataX4Ex[\"Value4\"] = $Value4;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$DataX4Ex[\"Unit4\"] = $Unit4;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$DataX4Ex[\"SumCost\"] = $SumCost;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$DataX4Ex[\"PrjActId\"] = $pkActPrj;\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$DataX4Ex[\"UpdateDate\"] = $UpdateDate;\r\n\t\t\t\t\t\t\t\t$DataX4Ex[\"UpdateBy\"] = $UpdateBy;\r\n\t\t\t\t\t\t\t\t$DataX4Ex[\"CreateDate\"] = $CreateDate;\r\n\t\t\t\t\t\t\t\t$DataX4Ex[\"CreateBy\"] = $CreateBy;\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t $pkX4Ex = $this->db->arecSave(\"tblbudget_project_activity_cost_external\",$DataX4Ex);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// แจกแจงรายเดือน Internal\r\n\t\t\t\t\t\t\t\t$ListExternalMonth = $this->getListExternalMonth($CostExtId,$_POST[\"BgtYear\"],$_POST[\"OrganizeCode\"],$_POST[\"SCTypeId\"],$_POST[\"ScreenLevel\"]);\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//ltxt::print_r($ListExternalMonth);\r\n\t\t\t\t\t\t\t\tforeach($ListExternalMonth as $rExMonth){\r\n\t\t\t\t\t\t\t\t\tforeach($rExMonth as $k=>$v){ ${$k} = $v;}\r\n\t\t\t\t\t\t\t\t\t\t$DataExMonth[\"CostExtId\"] = $pkX4Ex;\r\n\t\t\t\t\t\t\t\t\t\t$DataExMonth[\"MonthNo\"] = $MonthNo;\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t$DataExMonth[\"Budget\"] = $Budget;\r\n\t\t\t\t\t\t\t\t\t\t$DataExMonth[\"CreateDate\"] = $CreateDate;\r\n\t\t\t\t\t\t\t\t\t\t$DataExMonth[\"CreateBy\"] = $CreateBy;\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t$this->db->arecSave(\"tblbudget_project_activity_cost_external_month\",$DataExMonth);\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}//ListExternalMonth\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}//ListX4ExternalPrj\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\r\n\t\t\t\t\t\t\r\n\t\t\t}//ListActPrj\r\n\t\t\t\r\n\t\t} // ListPrj\r\n\r\n\t\t\r\n\t\t$sqly = \"update tblbudget_init_year_org set SCTypeId='$nextSCTypeId', ScreenLevel='$nextScreenLevel',CloseStep='N' where OrganizeCode='\".$_POST[\"OrganizeCode\"].\"' and BgtYear='\".$_POST[\"BgtYear\"].\"' \";\r\n\t\t$this->db->Execute($sqly);\t\t\t\r\n\t\t\r\n\t\t//== Log File ===\r\n\t\t$SCTypeName = $this->getSCTypeName($nextSCTypeId);\r\n\t\tif($ScreenLevel > 0){ $ScreenName = $this->getScreenName($nextScreenLevel); $txtScreenName = \" --> \".$ScreenName;} \t\r\n\t\tLogFiles::SaveLog(\"กลั่นกรองงบ/จัดสรรงบ/ทำแผนฯ\",\"ปรับขั้นตอนการจัดทำงบประมาณ\",$_POST[\"BgtYear\"],\"ปรับขั้นตอนการจัดทำงบประมาณ ปี \".$_POST[\"BgtYear\"].\" รหัสหน่วยงาน \".$_POST[\"OrganizeCode\"].\" เป็น \".$SCTypeName.$txtScreenName);\r\n\t\t//============\r\n\t\t\r\n\t\tLTXT::_( '?mod='.LURL::dotPage($this->RedirectPage).'&BgtYear='.$_POST[\"BgtYear\"].'&OrganizeCode='.$_POST[\"OrganizeCode\"], 'redirect' );\r\n\r\n\r\n\t}", "title": "" }, { "docid": "5bf46e83504c8d14a6428d2cca830a3b", "score": "0.49574885", "text": "function save()\r\n\t{\r\n\r\n // Check for request forgeries\r\n if(!$this->_input->get(JSession::getFormToken(),0,'BOOL')) jexit( 'Invalid Token' );\r\n\r\n\t\t// Get the model\r\n\t\t$model = $this->getModel('configuration');\r\n\t\t\r\n\t\t// Save\r\n\t\t$model->save();\r\n\t\t\r\n\t\t$tabposition = $this->_input->get('tabposition',0,'int');\r\n\t\t\r\n\t\t$task = $this->_input->get('task');\r\n\t\tif ($task == 'apply')\r\n\t\t\t$link = 'index.php?option=com_jtour&view=configuration&tabposition='.$tabposition;\r\n\t\telse\r\n\t\t\t$link = 'index.php?option=com_jtour';\r\n\t\t\r\n\t\t// Redirect\r\n\t\t$this->setRedirect($link, JText::_('JTOUR_CONFIGURATION_OK'));\r\n\t}", "title": "" }, { "docid": "5f2d95eb73071792fa2f5425a77a5021", "score": "0.49563575", "text": "function accesorio($tipo,$string) {\r\n\t$this->setxy(50,$this->desp_kitatx);\r\n $this->cell(30,8,$tipo);\r\n $this->setxy(86,$this->desp_kitatx);\t\t\t\t\t\t\r\n $this->cell(30,8,$string);\r\n $this->desp_kitatx+=4;\r\n}", "title": "" }, { "docid": "da4104d7233cb414cee4e226cd0ea03b", "score": "0.49430093", "text": "function save() \n\t{\n\t\tif ($this->id<>0)\n\t\t\t{ \n\t\t\t$query_save = \"update vendedores set nombre = '$this->nombre', direccion = '$this->direccion', telefono = '$this->telefono', comision = '$this->comision', activo = '$this->activo' where id='$this->id'\"; \n\t\t\tmysql_query($query_save) or die(mysql_error()); \n\t\t\t}\n\t\telse\n\t\t\t{ \n\t\t\t$query_save = \"insert into vendedores values (null, '$this->nombre', '$this->direccion', '$this->telefono', '$this->comision', '$this->activo')\"; \n\t\t\tmysql_query($query_save) or die(mysql_error()); \n\t\t\t$this->id = mysql_insert_id(); \n\t\t\t} \n\t}", "title": "" }, { "docid": "480f298dc9521e3c3c8dc69d07f3f0a7", "score": "0.49328676", "text": "function save()\n\t{\n\t\t// Check for request forgeries.\n\t\tJSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));\n\n\t\t$user = JFactory::getUser();\n\t\tif (!$user->authorise('core.edit', 'com_gmapfp'))\n\t\t{\n\t\t\t$this->setMessage(JText::_('JLIB_APPLICATION_ERROR_DELETE_NOT_PERMITTED'), 'error');\n\t\t} else {\n\t\t\t$post\t= JRequest::get('post');\n\t\t\t$model = $this->getModel('auteur');\n\n\t\t\t$return=$model->store($post);\n\t\t\tif ($return>0) {\n\t\t\t\t$msg = JText::_( 'GMAPFP_SAVED' );\n\t\t\t} else {\n\t\t\t\t$msg = JText::_( 'GMAPFP_SAVED_ERROR' );\n\t\t\t}\n\t\t}\n\n\t\t$link = 'index.php?option=com_gmapfp&controller=gmapfp&task=view';\n\t\t// Check the table in so it can be edited.... we are done with it anyway\n\t\t$this->setRedirect($link, $msg);\n\t}", "title": "" }, { "docid": "e32d06b7c0a98b0337ec6b256914abde", "score": "0.4922732", "text": "function saveAction(){\r\n\t\t$iddiv= $this->_request->getParam('iddiv');\r\n\t\t$type = $this->_request->getParam('type');\r\n\t\t$version = $this->_request->getParam('version');\r\n\t\t$idDuthao = $this->_request->getParam('idDuthao');\r\n\t\t$idHSCV = $this->_request->getParam('idHSCV');\r\n\t\t$year = QLVBDHCommon::getYear(); //nam cua bang du lieu\r\n\t\t$idPBDuthao = $this->_request->getParam('idPBDuthao');\t\t\r\n\t\tglobal $auth;\r\n\t\t$user = $auth->getIdentity();\r\n\t\tif(!$idPBDuthao){\r\n\t\t\t$idPBDuthao = 0;\r\n\t\t}\r\n\t\tif(!$type)\r\n\t\t\t$type = -1;\r\n\t\tif(!$year)\r\n\t\t\t$year = $date['year'];\t\t\r\n\t\t$idObject = $this->_request->getParam('idObject');//id cua doi tuong chua file dinh kem\r\n\t\tif(!$idObject)\r\n\t\t\t$idObject = 0;\r\n\t\t$isTemp = $this->_request->getParam('isTemp');\r\n\t\tif(!$isTemp)\r\n\t\t\t$isTemp = 0;\r\n\t\t//$idOld = $this->_request->getParam('idOldFile');\r\n\t\t//tao cac lop model tuong ung\r\n\t\t//$fdk = new filedinhkemModel($year);\t\t\r\n\t\t//Cap nhat file dinh kem (them file moi, xoa file cu) \r\n\t\tif($idPBDuthao !=0){\r\n\t\t$re = filedinhkemModel::insertFile($idPBDuthao,$isTemp,$iddiv,$year,$type);\r\n\t\t}\r\n\t\t//if($re != -1){\r\n\t\t//\tif($idOld>0)\r\n\t\t//\t\t$fdk->deleteFile($idOld);\t\r\n\t\t//}\r\n\t\t//doan js cap nhat lai danh sach cac van ban du thao\r\n\t\techo \"<script>window.parent.loadDivFromUrl('PhienBanDiv\".$idPBDuthao.\"_\".$idDuthao.\"','/hscv/PhienBanFIle?year=\".$year.\"&idPBDuthao=\".$idPBDuthao.\"&idDuthao=\".$idDuthao.\"&idHSCV=\".$idHSCV.\"',1);\t\t\r\n\t\t</script>\";\t\r\n\t\texit; //khong xu dung lop view\r\n\t}", "title": "" }, { "docid": "ea03f05f9f1d2abd4514426e584eccf9", "score": "0.49092147", "text": "public function saveActiviter($liste=null)\n{\n\t$this->loadModel('Activite');\n\t$liste=explode(',',$liste);\n\t$data=array(\n\t\t'id'=>$liste[0],\n\t\t'description'=>$liste[1],\n\t\t'cible'=>$liste[2],\n\t\t'title'=>$liste[3]\n\t\t);\n\t$this->Activite->save($data);\n\t// $tab=$liste[0].','.\n}", "title": "" }, { "docid": "0bc3d8ca588ba4f614d58340b10bbb67", "score": "0.49074945", "text": "public function save(): void;", "title": "" }, { "docid": "0bc3d8ca588ba4f614d58340b10bbb67", "score": "0.49074945", "text": "public function save(): void;", "title": "" }, { "docid": "f5814a8a4850b92eeaafe6d88c5900ef", "score": "0.4902853", "text": "public function save()\r\n {\r\n //\r\n }", "title": "" }, { "docid": "c6d0f171963566402e861b32de5727ff", "score": "0.4898136", "text": "public function save()\n\t{\n\t\t// Getting Columns\n\t\t$columns = new \\ArrayIterator($this->_columnNames);\n\t\t$columns = new \\CachingIterator($columns);\n\t\t$cols = '';\n\t\t$values = [];\n\t\tforeach ($columns as $column) {\n\t\t\t// Col Names\n\t\t\tif($columns->hasNext()){\n\t\t\t\t$cols .= \"$column, \";\n\t\t\t} else {\n\t\t\t\t// Last column\n\t\t\t\t$cols .= \"$column\"; \n\t\t\t}\n\t\t\t// Values \n\t\t\t$values[$column] = $this->{$column};\n\t\t}\n\t\t//Extracting Values\n\t\t$colValues = new \\ArrayIterator($values);\n\t\t$colValues = new \\CachingIterator($colValues);\n\t\t$vals = '';\n\t\tforeach($colValues as $col => $val){\n\t\t\tif($colValues->hasNext()){\n\t\t\t\t$vals .= \":$col, \";\n\t\t\t}else {\n\t\t\t\t// Last value\n\t\t\t\t$vals .= \":$col\";\n\t\t\t}\n\t\t}\n\n\t\t// Query \n\t\t$sql = \"INSERT INTO \" . $this->_table . \"($cols) VALUES($vals)\"; \n\t\t$sql = $this->_connection->prepare($sql);\n\t\tif($sql->execute($values)){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "0192cfea3ae741c1675398a7f42af74d", "score": "0.48958597", "text": "function open_save($val){\r\n\r\n\t\t$in=$this->session_vars;\r\n\t\tif ($this->attributes['VAR_TYPE']=='text')\r\n\t\t$controllo=\"t\";\r\n\t\telse\r\n\t\t{\r\n\t\t\tif ($this->attributes['FM_CODE']){\r\n\t\t\t$fm=$this->attributes['FM_CODE'];\r\n\t\t\t if (strtoupper($in[$this->attributes['VAR']])=='NA') $in[$this->attributes['VAR']]=-9911;\r\n \t\tif (strtoupper($in[$this->attributes['VAR']])=='NK') $in[$this->attributes['VAR']]=-9922;\r\n \t\tif (strtoupper($in[$this->attributes['VAR']])=='ND') $in[$this->attributes['VAR']]=-9933;\r\n \t\tif (strtoupper($in[$this->attributes['VAR']])=='NP') $in[$this->attributes['VAR']]=-9944;\r\n \t\tif (strtoupper($in[$this->attributes['VAR']])=='TE') $in[$this->attributes['VAR']]=-9955;\r\n \t\tif (strtoupper($in[$this->attributes['VAR']])=='OT') $in[$this->attributes['VAR']]=-9900;\r\n\t\t\t}\r\n\r\n\t\t\telse\r\n\t\t\t$fm=\"00\";\r\n\r\n\t\t\tif ($this->attributes['VAR_STYPE']=='int')\r\n\t\t\t$controllo=\"np\".$fm;\r\n\t\t\telse if ($this->attributes['VAR_STYPE']=='neg') $controllo=\"na\".$fm;\r\n\t\t\telse if($this->attributes['VAR_STYPE']=='real') $controllo=\"xa\".$fm;\r\n\t\t\telse $controllo=\"xp\".$fm;\r\n\t\t\tif ($val!='obbligatorio') $controllo=\"f\".$controllo;\r\n\t\t}\r\n\t\t\r\n\t\t$testo_js=make_js($this->testo);\r\n\t\tif ($testo_js=='') $testo_js=$this->attributes['LABEL_JS'];\r\n\t\t\r\n\t\t/* Gestione controlli al salvataggio */\r\n\t\tif($this->config_service['lang'] == \"en\"){\r\n\t\t\t$alert_save_msg_value = \"Warning. Incorrect format in the field\\\\n{$testo_js}:\\\\ncannot be blank.\";\r\n\t\t\t$alert_save_msg_unit = \"Warning. Incorrect format in the field\\\\n{$testo_js}:\\\\ncannot be blank.\\\\nPlease specify also units measurement.\";\r\n\t\t}else{\r\n\t\t\t$alert_save_msg_value = \"Warning. Incorrect format in the field\\\\n{$testo_js}:\\\\ncannot be blank.\";\r\n\t\t\t$alert_save_msg_unit = \"Attenzione. Valore scorretto nel campo\\\\n{$testo_js}:\\\\nnon può essere vuoto.\\\\nSpecificare anche l\\\\'unità di misura.\";\r\n\t\t}\r\n\t\t$this->salva_js.=\"\r\n\t\tif(document.forms[0].\".$this->attributes['VAR'].\".value != ''){\r\n\t\t\tif(!document.forms[0].\".$this->attributes['VAR'].\"_UNIT.selectedIndex){\r\n\t\t\t\talert('\".$alert_save_msg_unit.\"');\r\n\t\t\t\tdocument.forms[0].\".$this->attributes['VAR'].\"_UNIT.focus();\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tif(document.forms[0].\".$this->attributes['VAR'].\"_UNIT.selectedIndex){\r\n\t\t\t\talert('\".$alert_save_msg_value.\"');\r\n\t\t\t\tdocument.forms[0].\".$this->attributes['VAR'].\".focus();\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\";\r\n\t\t\r\n\t\tif (($val=='obbligatorio' && $this->attributes['CONDITION']=='')||($this->attributes['VAR_TYPE']!='text' && $val=='facoltativo')){\r\n\r\n\t\t\t$this->salva_js.=\"\r\n\t\t\t\tc1+='<<\".$controllo.\"###\".$this->attributes['VAR'].\"###\".$testo_js.\">>';\\n\";\r\n\r\n\t\t\t$this->inrevisione_js.=\"\r\n\t\t\t\tc1+='<<\".$controllo.\"###\".$this->attributes['VAR'].\"###\".$testo_js.\">>';\\n\";\r\n\t\t}\r\n\t\t/*aggiorno con la possibilità di utilizzare più valori divisi da virgola in condition_value da testare approfonditamente (Giorgio Delsignore 14/06/2010)\r\n\t\tif ($val=='obbligatorio' && $this->attributes['CONDITION']!=''){\r\n\t\t\t$this->salva_js.=\"\r\n\t\t\tvar value_{$this->attributes['CONDITION']}=value_of('{$this->attributes['CONDITION']}','0');\r\n\t\t\tif(value_{$this->attributes['CONDITION']}=='{$this->attributes['CONDITION_VALUE']}')c1+='<<\".$controllo.\"###\".$this->attributes['VAR'].\"###\".$testo_js.\">>';\r\n\t\t\t\";\r\n\r\n\t\t}*/\r\n\t\tif ($val=='obbligatorio' && $this->attributes['CONDITION']!=''){\r\n\t\t\t$this->salva_js.=\"\r\n\t\t\t\t\".$this->attributes['CONDITION'].\"_setted=false;\r\n\t\t\t\t\";\r\n\t\t\t$this->inrevisione_js.=\"\r\n\t\t\t\t\".$this->attributes['CONDITION'].\"_setted=false;\r\n\t\t\t\t\";\r\n\t\t\tif (preg_match(\"/,/\",$this->attributes['CONDITION_VALUE'])){\r\n\t\t\t\t$vals=explode(\",\", $this->attributes['CONDITION_VALUE']);\r\n\t\t\t\tforeach ($vals as $key => $value)\r\n\t\t\t\t$this->salva_js.=\"\r\n\t\t\t\t\t\tvalue=value_of('{$this->attributes['CONDITION']}', '0');\r\n\t\t\t\t\t\tif (value=='\".$value.\"') {\r\n\t\t\t\t\t\t\t\t\".$this->attributes['CONDITION'].\"_setted=true;\r\n\t\t\t\t\t\t\t\tc1+='<<\".$controllo.\"###\".$this->attributes['VAR'].\"###\".$testo_js.\">>';\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\";\r\n\t\t\t\t$this->inrevisione_js.=\"\r\n\t\t\t\t\t\tvalue=value_of('{$this->attributes['CONDITION']}', '0');\r\n\t\t\t\t\t\tif (value=='\".$value.\"') {\r\n\t\t\t\t\t\t\t\t\".$this->attributes['CONDITION'].\"_setted=true;\r\n\t\t\t\t\t\t\t\tc1+='<<\".$controllo.\"###\".$this->attributes['VAR'].\"###\".$testo_js.\">>';\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\";\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$oper=\"==\";\r\n\t\t\t\tif (preg_match(\"/!/\",$this->attributes['CONDITION_VALUE'])) {$oper=\"!=\";$this->attributes['CONDITION_VALUE']=substr($this->attributes['CONDITION_VALUE'], 1);}\r\n\t\t\t\t$this->salva_js.=\"\r\n\t\t\t\t\t\tvalue=value_of('{$this->attributes['CONDITION']}', '0');\r\n\t\t\t\t\t\tif (value $oper'\".$this->attributes['CONDITION_VALUE'].\"') {\r\n\t\t\t\t\t\tc1+='<<\".$controllo.\"###\".$this->attributes['VAR'].\"###\".$testo_js.\">>';\r\n\t\t\t\t\t\t\".$this->attributes['CONDITION'].\"_setted=true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\";\r\n\t\t\t\t$this->inrevisione_js.=\"\r\n\t\t\t\t\t\tvalue=value_of('{$this->attributes['CONDITION']}', '0');\r\n\t\t\t\t\t\tif (value $oper'\".$this->attributes['CONDITION_VALUE'].\"') {\r\n\t\t\t\t\t\tc1+='<<\".$controllo.\"###\".$this->attributes['VAR'].\"###\".$testo_js.\">>';\r\n\t\t\t\t\t\t\".$this->attributes['CONDITION'].\"_setted=true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\";\r\n\t\t\t}\r\n\t\t\t$this->salva_js.=\"\r\n\t\t\t\t\tif (!\".$this->attributes['CONDITION'].\"_setted) {c1+='<<b###\".$this->attributes['VAR'].\"###\".$testo_js.\">>';}\r\n\t\t\t\t\";\r\n\t\t\t$this->inrevisione_js.=\"\r\n\t\t\t\t\tif (!\".$this->attributes['CONDITION'].\"_setted) {c1+='<<b###\".$this->attributes['VAR'].\"###\".$testo_js.\">>';}\r\n\t\t\t\t\";\r\n\t\t}\r\n\t\t$this->session_vars=$in;\r\n\t}", "title": "" }, { "docid": "2adbed4e047e964b9ecc9953094e9910", "score": "0.48949975", "text": "public function saveAction()\n\t{\n\t}", "title": "" }, { "docid": "46c36e20c0d7ce6d806f08ddbdf9d7ae", "score": "0.4894462", "text": "function write_db(){\n\tdatabase_connect();\n\n\t$updated_cells = 0;\n\t$inserted_rows = 0;\n\t$worksheet = get_worksheet();\n\n\trequire(plugin_dir_path(__FILE__) . \"../database/AllCities.php\");\n\n\tfor ($row = 2; $row <= $worksheet->getHighestRow(); ++ $row) {\n\t\t$city_full = $worksheet->getCellByColumnAndRow(0, $row);\n\n\t\tif ($city_full == \"\")\n\t\t\tcontinue;\n\n\t\t$city_english = explode(\" \", $city_full)[0];\n\t\t$index = array_search(strtolower($city_english), array_map('strtolower', $cities));\n\n\t\tif ($index === false){\n\t\t\tinsert($worksheet, $row, $city_english);\n\t\t\t$inserted_rows++;\n\t\t}\n\t\telse{\n\t\t\t$updated_cells += update($worksheet, $row, $index + 1);\n\t\t}\n\t}\n\n\techo $updated_cells . \" cells updated. \" . $inserted_rows . \" rows inserted. Please check if this is reasonable.\"; \n\t?><br><?php\n}", "title": "" }, { "docid": "b56f6678a303126f396f2ac88994efcf", "score": "0.48905134", "text": "public function cl_info_edit(){\n\t\t \t$ot_hour = (int)substr($_POST['ot_time'],0,2)*60;\n\t\t \t$ot_min = (int)substr($_POST['ot_time'],3,5);\n\t\t \t$ct_hour = (int)substr($_POST['ct_time'],0,2)*60;\n\t\t \t$ct_min = (int)substr($_POST['ct_time'],3,5);\n\t\t \t$ot_con = $ot_hour+$ot_min;\n\t\t \t$ct_con = $ct_hour+$ct_min;\n\n\t\t \tif($ot_con>=$ct_con){\t//Checking of opening time and closing time of branch\n\t\t \t\t//OPENING TIME MUST BE LESS THAN CLOSING TIME\n\t\t \t\tredirect('client_home');\n\t\t \t}\n\n\t\t \tif(!empty($_POST['days'])){\n\t\t\t\t$day_arr = \"\";\t//getting branch open days and saving in database as array\n\t\t\t\t$day_max = count($_POST['days'])-1;\t//max count of array to create format\n\t\t\t\tforeach($_POST['days'] as $index=>$days){\n\t\t\t\t\tif($index==$day_max){\n\t\t\t\t\t\t$day_arr = $day_arr.$days;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t$day_arr = $day_arr.$days.\",\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t \t}\n\t\t \telse{\n\t\t \t\t//ADD CHECKBOX ERROR\n\t\t \t\tredirect('client_home');\n\t\t \t}\n\n\t\t\t$compdata = array(\n\t\t\t\t\t'u_id' => $_SESSION['id'],\n\t\t\t\t\t'id' => $_GET['id'],\n\t\t\t\t\t'name' => $_POST['company'],//$_POST['company']),\n\t\t\t\t\t'description' => $_POST['description'],\n\t\t\t\t\t'cm_id' => $_SESSION['cm_id'],\n\t\t\t\t\t'updated_date' => date('Y-m-d H:i:s', time()),\n\t\t\t\t\t'updated_by' => $_SESSION['user']);//$_POST['description']));\n\t\t\t$brdata = array(\n\t\t\t\t\t'location' => $_POST['location'],\n\t\t\t\t\t'mobile' => $_POST['mobile'],\n\t\t\t\t\t'telephone' => $_POST['telephone'],\n\t\t\t\t\t'open_days' => $day_arr,\n\t\t\t\t\t'open_time' => $_POST['ot_time'],\n\t\t\t\t\t'close_time' => $_POST['ct_time'],\n\t\t\t\t\t'slots' => $_POST['slots'],\n\t\t\t\t\t'updated_date' => date('Y-m-d H:i:s', time()),\n\t\t\t\t\t'updated_by' => $_SESSION['user']);\n\t\t\t$this->load->model('kikay_model');\n\n\t\t\t$compcheck = $this->client_model->comp_check($compdata);\n\t\t\tif($compcheck){\n\t\t\t\t$past_comp = $this->kikay_model->get_company($compdata['u_id']);\n\t\t\t\t$this->client_model->update_client_info($compdata,$brdata);\t\n\t\t\t\t$this->cl_branch_change($past_comp, $compdata);\n\t\t\t}\n\t\t\telse{\n\n\t\t\t\t//COMPANY ALREADY EXIST\n\t\t\t}\n\t\t\tredirect('client_home');\n\t}", "title": "" }, { "docid": "816e87b734b60cceab279f4f8019fd60", "score": "0.48903593", "text": "public function save() {\n\t\t\t$query = \"SELECT char_id FROM \" . self::TABLE . \" WHERE char_id = '\" . esc($this->id) . \"'\";\n\t\t\t$row = Framework::getDb()->getFirstRow($query);\n\t\t\tif ($row != null) {\n\t\t\t\t// Vender found, update it\n\t\t\t\t// Note: update name incase of name-change\n\t\t\t\t$query = \"\n\t\t\t\t\tUPDATE \" . self::TABLE . \" SET \n\t\t\t\t\t\tname = '\" . esc($this->name) . \"', \n\t\t\t\t\t\tshopname = '\" . esc($this->shopname) . \"',\n\t\t\t\t\t\tposX = '\" . esc($this->posX) . \"', \n\t\t\t\t\t\tposY = '\" . esc($this->posY) . \"', \n\t\t\t\t\t\tposMap = '\" . esc($this->posMap) . \"', \n\t\t\t\t\t\tonline = 1,\n\t\t\t\t\t\tseen = NOW()\n\t\t\t\t\tWHERE char_id = '\" . esc($this->id) . \"'\n\t\t\t\t\";\n\t\t\t} else {\n\t\t\t\t// New entry\n\t\t\t\t$query = \"\n\t\t\t\t\tINSERT INTO \" . self::TABLE . \"\n\t\t\t\t\t\t(char_id, name, shopname, posX, posY, posMap, seen, online)\n\t\t\t\t\tVALUES\n\t\t\t\t\t\t('\" . esc($this->id) . \"', '\" . esc($this->name) . \"', '\" . esc($this->shopname) . \"', '\" . esc($this->posX) . \"', '\" . esc($this->posY) . \"', '\" . esc($this->posMap) . \"', NOW(), '1')\n\t\t\t\t\";\n\t\t\t}\n\t\t\t\n\t\t\tFramework::getDb()->query($query);\n\t\t}", "title": "" }, { "docid": "1b169722360d6177f165f450ba19115e", "score": "0.48902085", "text": "private function saveSelection( )\n {\n $db = atkGetDb( );\n $id = $db->nextid( 'exportcriteria' );\n\n $user_id = 0;\n if( 'none' !== strtolower( atkConfig( 'authentication' ) ) ) \n {\n $user = atkGetUser( );\n $user_id = array_key_exists( atkConfig('auth_userpk'), $user ) ? $user[atkConfig('auth_userpk')] : 0;\n }\n \n // first check if the combination of node, name and user_id doesn't already exist\n $rows = $db->getRows(\"SELECT id FROM atk_exportcriteria \n WHERE nodetype = '\".$this->m_postvars['atknodetype'].\"' \n AND name = '\".$this->m_postvars['export_selection_name'].\"' \n AND user_id = \".$user_id);\n if (count($rows))\n {\n return;\n }\n \n $query = 'INSERT INTO atk_exportcriteria ( id, nodetype, name, criteria, user_id )\n VALUES ( '.$id.', \"'.$this->m_postvars['atknodetype'].'\", \"'.$db->escapeSQL( $this->m_postvars['export_selection_name'] ) .'\",\n \"'. addslashes( serialize( $this->m_postvars ) ).'\", '.$user_id.' )';\n \n $db->query( $query );\n }", "title": "" }, { "docid": "7f18c0f5e6a9709dee65895b2ca5c94b", "score": "0.48901233", "text": "public function save(){\n\t\n\t\t$_POST['jpart_jobid'] = $_POST['_parentid'];\n\t\t\n\t\tif ($this->input->post(\"_id\") > 0) {\n\t\t\tparent::save('/jobparts/edit/'.$this->input->post(\"_id\"));\n \n\t\t} else {\n\t\t\tparent::save('',$_POST['jpart_jobid'],'add');\n\t\t}\n\t}", "title": "" }, { "docid": "1e8047e2abace90a6670ffa120ab4fb4", "score": "0.48896152", "text": "public function saveContentBlock(){\n\t\n\t\t$data\t\t= JRequest::get( 'post', '' );\n\t\t$blockid \t= JRequest::getVar( 'block' );\n\t\t\n\t\t$model\t\t= $this->getModel( 'brochure' );\n\t\t$newid\t\t= $model->saveBlock( $data, $blockid );\n\t\t\n\t\t$bro_page \t= $model->getPageNumber( $blockid );\n\t\t\n\t\t$this->setRedirect( 'index.php?option=com_zbrochure&view=brochure&id='.$data['bro_id'].'#page-'.$bro_page, 'Content Block '.$newid.' Saved' );\n\t\n\t}", "title": "" }, { "docid": "85425759b6bf0c97741d47f98272e30b", "score": "0.48873124", "text": "function guardar(){\t\t\r\n\t\tif($this->nuevo){\r\n\t\t\t$sql=\"INSERT INTO me_componentes (id_componente,codigo,nombre) VALUES ('$this->id_componente','$this->codigo','$this->nombre')\";\r\n\t\t\tif(!existeValorTabla(\"me_componentes\",\"codigo\",$this->codigo)) {\r\n\t\t\t\tif($res=mysql_query($sql)) $this->guardarOperaciones();\r\n\t\t\t}else return (_ERROR1);\t\t\t\r\n\t\t}else{\r\n\t\t\t$sql=\"UPDATE me_componentes SET codigo='$this->codigo', nombre='$this->nombre' WHERE id_componente=$this->id_componente\";\t\t\t\t\r\n\t\t\tif(existeValorTabla(\"me_componentes\",\"codigo\",$this->codigo) && $this->codigoOrig!=$this->codigo) return (_ERROR1); \r\n\t\t\telseif($res=mysql_query($sql)) $this->guardarOperaciones();\r\n\t\t}\t\r\n\t}", "title": "" }, { "docid": "c992db03aa07294977fbc0dee50aee59", "score": "0.48827183", "text": "function saveNew() {\r\n\t\t$this->getVars();\r\n\t\t\r\n\t\t//tratamento UnOrg\r\n\t\tif(preg_match(\"|[0-9]{2}.[0-9]{2}.[0-9]{2}.[0-9]{2}.[0-9]{2}.[0-9]{2}|\", $this->unOrg['compl'], $matches)) {\r\n\t\t\t$this->unOrg['id'] = substr($this->unOrg['compl'], 0, 17);\r\n\t\t\t$this->unOrg['nome'] = substr($this->unOrg['compl'], 18, strpos($this->unOrg['compl'], ' ('));\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//monta a consulta SQL\r\n\t\t$sql = \"INSERT INTO obra_empreendimento (nome, nomeBusca, unOrg, justificativa, local, descricao, solicNome, solicDepto, solicEmail, solicRamal, ofirID, responsavelID)\r\n\t\tVALUES ('{$this->nome}', '\".stringBusca(SGDecode($this->nome)).\"','{$this->unOrg['id']}','{$this->justificativa}','{$this->local}','{$this->descricao}','{$this->solicitante['nome']}','{$this->solicitante['depto']}','{$this->solicitante['email']}','{$this->solicitante['ramal']}','{$this->ofir}','{$this->responsavel}')\";\r\n\t\t\t\t\r\n\t\t$insert = $this->bd->query($sql); \r\n\t\tif(constant('DEBUG')) print '<BR />'.$sql.'<BR />';\r\n\t\t\r\n\t\t//se for inserido com sucesso \r\n\t\tif($insert) {\r\n\t\t\t//consulta o empreendimento\r\n\t\t\t$sql = \"SELECT id FROM obra_empreendimento WHERE nome = '{$this->nome}' AND unOrg = '{$this->unOrg['id']}'\";\r\n\t\t\tif(constant('DEBUG')) print '<BR />'.$sql.'<BR />';\r\n\t\t\t\r\n\t\t\t$selectID = $this->bd->query($sql);\r\n\t\t\tif(count($selectID) == 1){\r\n\t\t\t\t$this->id = $selectID[0]['id'];\r\n\t\t\t\t\r\n\t\t\t//cria a etapa padrao (Geral)\r\n\t\t\t//$etapa = new Etapa($this->id, 0, $this->bd);\r\n\t\t\t//$etapa->save();\r\n\t\t\t\r\n\t\t\t//adicao de fase/documento oficio de requisicao\r\n\t\t\tif(isset($_POST['ofir']) && $_POST['ofir'] > 0) {\r\n\t\t\t//\t$etapa->addFase(1,1,$_POST['ofir']);\r\n\t\t\t\t\r\n\t\t\t\t$ofir = new Documento($_POST['ofir']);\r\n\t\t\t\t$ofir->loadCampos();\r\n\t\t\t\tatribEmpreend($_POST['ofir'], $this->id, $this->bd, 0);\r\n\t\t\t\t$ofir->update(\"OwnerArea\", null);\r\n\t\t\t\t$ofir->update(\"ownerID\", 0);\r\n\t\t\t\t//if(isset($_POST['abrirSAP']) && $_POST['abrirSAP'] > 0)\r\n\t\t\t\t//\t$despOfir = showDespStatus($ofir, array('para' => 'Protocolo' ,\"outro\" => '', 'funcID' => '_todos', 'despExt' => '', 'despacho' => 'Despachado automaticamente pelo sistema para anexar ao processo referente a obra '.$this->nome),'hideFB');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//adicao de fase/documento solicitacao de abertura de processo\r\n\t\t\tif(isset($_POST['abrirSAP']) && $_POST['abrirSAP'] > 0) {\r\n\t\t\t\t$doc = new Documento(0);\r\n\t\t\t\t$doc->dadosTipo['nomeAbrv'] = 'sap';\r\n\t\t\t\t$doc->loadTipoData();\r\n\t\t\t\t\r\n\t\t\t\t//seleciona o attr da tabela\r\n\t\t\t\t$sql = 'SELECT numero_sap FROM '. $doc->dadosTipo['tabBD']. ' WHERE anoE='.date(\"Y\"). ' ORDER BY numero_sap DESC LIMIT 1';\r\n\t\t\t\t$r2 = $this->bd->query($sql);\r\n\t\t\t\t//incrementa o valor do attr e guarda no valor do campo\r\n\t\t\t\tif(isset($r2[0]['numero_sap']))\r\n\t\t\t\t\t$numero = $r2[0]['numero_sap'];\r\n\t\t\t\telse \r\n\t\t\t\t\t$numero = 0;\r\n\t\t\t\t//seta os campos a serem preenchidos\r\n\t\t\t\t$doc->campos['numero_sap'] = ($numero + 1);\r\n\t\t\t\t$doc->campos['anoE'] = date(\"Y\");\r\n\t\t\t\t$doc->campos['contato'] = $_SESSION['id'];\r\n\t\t\t\t$doc->campos['unOrgIntSAP'] = $this->unOrg['compl'];\r\n\t\t\t\t$doc->campos['pessoaIntSAP'] = '';\r\n\t\t\t\t$doc->campos['assunto'] = SGEncode(strtoupper('Planejamento '.SGDecode($this->nome)), ENT_QUOTES, null, false);\r\n\t\t\t\t$doc->campos['tipoProc'] = 'plan';\r\n\t\t\t\t$doc->campos['justificativa'] = $this->justificativa; \r\n\t\t\t\t// associa esta nova sap ao empreendimento\r\n\t\t\t\t$doc->empreendID = $this->id;\r\n\t\t\t\t//salva novo documento\r\n\t\t\t\t$doc->salvaCampos();\r\n\t\t\t\t$doc->salvaDoc(0);\r\n\t\t\t\tif (!$doc->doLogHist($_SESSION['id'],\"\",\"\",'','criacao','','')) {\r\n\t\t\t\t\treturn array(\"success\" => false, \"errorNo\" => 2, \"errorFeedback\" => \"Erro ao salvar o despacho de criacao.\");\r\n\t\t\t\t}\r\n\t\t\t\t//gera PDF da SAP\r\n\t\t\t\tgeraPDF($doc->id);\r\n\t\t\t\t//gera feedback\r\n\t\t\t\t$despStatus = showDespStatus($doc, array('para' => 'Protocolo' ,\"outro\" => '', 'funcID' => '_todos', 'despExt' => '', 'despacho' => 'Documento gerado automaticamente para abertura de processo de planejamento referente a obra '.$this->nome.'. Favor providenciar a abertura de processo para esta obra e anexar este documento a ele assim como o of&iacute;cio correspondete (se houver)'),'hideFB');\r\n\t\t\t\t//adiciona fase: solicitacao de abertura de processo de contratacao\r\n\t\t\t\t//$etapa->addFase(1,2,$doc->id);\r\n\t\t\t\t\r\n\t\t\t\t//Adiciona os recursos\r\n\t\t\t\t/*if(isset($_POST['recursos']) && $_POST['recursos'] && isset($_POST['montanteRec']) && $_POST['montanteRec']){\r\n\t\t\t\t\t//adicao de recurso\r\n\t\t\t\t\t$rec = new Recurso($this->bd);\r\n\t\t\t\t\t$insert = $rec->insertRecursoInEmpreend($this->id);\r\n\t\t\t\t\tif (!$insert['success']) return array(\"success\" => false, \"errorNo\" => 2, \"errorFeedback\" => \"Erro ao salvar recursos no BD\".$insert['errorFeedback']);\r\n\t\t\t\t\t$this->getRecursos();\r\n\t\t\t\t}*/\r\n\t\t\t}\r\n\t\t\t\treturn array('success' => true, 'errorID' => 0, 'errorFeedback' => '');\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn array('success' => false, 'errorID' => 1, 'errorFeedback' => 'Erro ao salvar novo Empreendimento/duplicidade encontrada');\r\n\t}", "title": "" }, { "docid": "335e0152841be91c245a718f680dca16", "score": "0.48751312", "text": "public function save(){\n\n \t$sql = \"INSERT INTO \" . self::TABLENAME . \" (tip, soi, \n \t culoare, pret)\n \t\t\tVALUES ('$this->tip', '$this->soi', \n \t\t\t'$this->culoare', '$this->pret')\";\n\n \t$this->conn->exec($sql);\n\n \treturn \"Datele au fost introduse cu succes.\";\n }", "title": "" }, { "docid": "4f0ec29213c2d727fbc35c2ed2d2ed63", "score": "0.4870469", "text": "public function saveTemp($row = array())\n { \n\t\t$over_basis_janjang = $this->_formula->cal_NormaPanenOerBjr_OverBasisJanjang($row);\n\t\t//$row['OVER_BASIS_JANJANG'] = $over_basis_janjang;\n\t\t$janjang_operation = $this->_formula->cal_NormaPanenOerBjr_JanjangOperation($row);\n\t\t$row['JANJANG_OPERATION'] = $janjang_operation;\n\t\t$nilai = $this->_formula->cal_NormaPanenOerBjr_Nilai($row);\n\t\t//die($row['OVER_BASIS_JANJANG'].\" - \".$row['JANJANG_OPERATION']);\n\t\t\n\t\t$sql = \"UPDATE TN_PANEN_OER_BJR\n\t\t\t\t\tSET BJR_BUDGET = REPLACE('\".addslashes($row['BJR_BUDGET']).\"', ',', ''),\n JANJANG_BASIS_MANDOR = REPLACE('\".addslashes($row['JANJANG_BASIS_MANDOR']).\"', ',', ''),\n\t\t\t\t\t\tJANJANG_BASIS_MANDOR_JUMAT = REPLACE('\".addslashes($row['JANJANG_BASIS_MANDOR_JUMAT']).\"', ',', ''),\n\t\t\t\t\t\tJANJANG_OPERATION = REPLACE('\".addslashes($janjang_operation).\"', ',', ''),\n\t\t\t\t\t\tPREMI_PANEN = REPLACE('\".addslashes($row['PREMI_PANEN']).\"', ',', ''), \n\t\t\t\t\t\tOER_BA = '\".addslashes($row['OER']).\"',\n\t\t\t\t\t\tUPDATE_USER = '{$this->_userName}',\n\t\t\t\t\t\tUPDATE_TIME = SYSDATE,\n\t\t\t\t\t\tFLAG_TEMP = 'Y',\n\t\t\t\t\t\tDELETE_TIME = NULL,\n\t\t\t\t\t\tDELETE_USER = NULL\n\t\t\t\t\t WHERE ROWIDTOCHAR(ROWID) = '{$row['ROW_ID']}';\n\t\t\t\t\";\n\t\t\t\t\t\n\t\t//create sql file\n\t\t$this->_global->createSqlFile($row['filename'], $sql);\t\t\n return true;\n }", "title": "" }, { "docid": "3e1d61a174aa6068496b2f18b3d71f8e", "score": "0.48677835", "text": "public function save()\n {\n $portF = $this->valores();\n unset($portF['idPortfolio']);\n\n $portF['idUser'] = $this->usuario->idUser;\n unset($portF['usuario']);\n\n if (empty($this->idPortfolio)) {\n $this->insert($portF);\n $this->idPortfolio = self::$conn->lastInsertId();\n } else {\n $this->update($this->idPortfolio, $portF);\n }\n }", "title": "" }, { "docid": "a00bc58792bd4c9d4c6dcef533631c74", "score": "0.48653403", "text": "public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n self::COL2 => $this->creator_id,\n self::COL3 => $this->company_name,\n self::COL4 => $this->position,\n self::COL5 => $this->job_url,\n self::COL6 => $this->applied_date,\n self::COL7 => $this->resume_version,\n self::COL8 => $this->contact,\n self::COL9 => $this->status\n );\n //print_r($db_properties);\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "title": "" }, { "docid": "e182118295652200e650ae1fe9161a67", "score": "0.48425892", "text": "public function actionUpdateIngresacompra($id) {\r\r\n $codigomovimiento='30';\r\r\n $model=$this->loadModel($id);\r\r\n $model->setscenario(\"ingresacompra\");\r\r\n if(isset($_POST['Almacendocs']))\r\r\n {\r\r\n $model->attributes=$_POST['Almacendocs'];\r\r\n //iniciamos la transaccion\r\r\n $model->cestadovale='20';\r\r\n $transaccion=$model->dbConnection->beginTransaction();\r\r\n if($model->save()) {\r\r\n $this->actualizahijos($codigomovimiento,$model,$transaccion);\r\r\n $this->actualizaoc($codigomovimiento,$model,$transaccion);\r\r\n $transaccion->commit();\r\r\n Yii::app()->user->setFlash('success', \"..El ingreso se ha grabado!\");\r\r\n $this->render('update',array(\r\r\n 'model'=>$model,\r\r\n 'movimiento'=> $codigomovimiento,\r\r\n ));\r\r\n } else {\r\r\n $transaccion->rollback();\r\r\n throw new CHttpException(500,'No se pudo grabar');\r\r\n }\r\r\n } else {\r\r\n $movimiento='Updatecargainicial';\r\r\n //rellenamos los registros hijos del kardex\r\r\n $registro=Ocompra::model()->findAll(\"numcot=:nimi\",array(\"nimi\"=>trim($model->numdocref)));\r\r\n\t\t\t\tif(!(count($registro)>0)) {\r\r\n throw new CHttpException(500,'No se pudo encontrar la OC indicada');\r\r\n }else{\r\r\n ////Verfiicando que existan en esa solpe items que esten reservadas\r\r\n $itemscompras=Docompra::model()->findAll( \"hidguia=:mipa and estadodetalle in ('20','50') and codentro=:centrox and codigoalma=:codalx \",array(\":mipa\"=>$registro[0]['idguia'], \":codalx\"=>$model->codalmacen, \":centrox\"=>$model->codcentro));\r\r\n if(count($itemscompras) ==0 ) {\r\r\n throw new CHttpException(500,'Esta OC no tiene items Habilitados '.$registro[0][\"idguia\"].'--'.$model->codalmacen.'--'.$model->codcentro);\r\r\n } else {\r\r\n for ($i=0; $i < count($itemscompras); $i++) {\r\r\n $itemcompra=Docompra::model()->findByPk($itemscompras[$i]['id']);\r\r\n $cantatendida=$itemcompra->cantidadentregada; ///Cantidad ya entregada de la tabla alentregas\r\r\n if ($cantatendida < $itemcompra->cant) { ///Siempre que la cantidad comprada exceda a lo atendido\r\r\n if( count(Alkardex::model()->findAll(\"idref=:refe and codestado='99' \", array(\":refe\"=>$itemcompra->id)))==0) {\r\r\n ///siempre que el kardex no se haya creado antes, en otro caso cada que\r\r\n //refresca al pagina se insertarian ergistros\r\r\n $modelokardex=new Alkardex();\r\r\n $modelokardex->setscenario('ingresacompra');\r\r\n $modelokardex->codmov=$codigomovimiento;\r\r\n $modelokardex->hidvale=$model->id;\r\r\n $modelokardex->codart=$itemscompras[$i]['codart'];\r\r\n $modelokardex->alemi=$model->codalmacen;\r\r\n $modelokardex->codcentro=$model->codcentro;\r\r\n $modelokardex->fecha=$model->fechacont;\r\r\n $modelokardex->codocuref='210'; //Ocompra\r\r\n $modelokardex->numdocref=$model->numdocref;\t//numero de la OC\r\r\n $modelokardex->idref=$itemscompras[$i]['id']; //el id del detalle de la oc\r\r\n $modelokardex->preciounit=$itemscompras[$i]['punit'];\r\r\n if($cantatendida == 0 ) {\r\r\n $modelokardex->cant=$itemscompras[$i]['cant'];\r\r\n }else {\r\r\n $modelokardex->cant=$itemscompras[$i]['cant']-$cantatendida;\r\r\n }\r\r\n\r\r\n\r\r\n\r\r\n if( !$modelokardex->save()) throw new CHttpException(500,'no grabo');\r\r\n }\r\r\n }\r\r\n }\r\r\n }\r\r\n }\r\r\n ////////////////////\r\r\n $this->render('update',array(\r\r\n 'model'=>$model,\r\r\n 'movimiento'=> $movimiento,\r\r\n ));\r\r\n\r\r\n }\r\r\n\r\r\n }", "title": "" }, { "docid": "e7f648a675648fef2f05368aeee6fe85", "score": "0.4838952", "text": "public final function save(){\n \n return \"It was made $this->tank liter(s) of samagon\";\n }", "title": "" }, { "docid": "3483ad5f1961038b815683f1e8a121f7", "score": "0.4837308", "text": "public function save()\n {\n \n }", "title": "" }, { "docid": "6604565bc748de7b0fbe9b3569b41eb8", "score": "0.48312724", "text": "public function saveBlock(){\n\t\t\n\t\t$data\t\t\t= JRequest::get( 'post','' );\n\t\t\n\t\t$bro_id\t\t\t= JRequest::getInt( 'bro_id', 0 );\n\t\t$bro_page_order\t= JRequest::getInt( 'bro_page_order', 0 );\n\t\t\n\t\t$layout\t\t\t= JRequest::getCmd( 'layout', '' );\n\t\t$tmpl\t\t\t= JRequest::getCmd( 'tmpl', '' );\n\t\t$view\t\t\t= JRequest::getCmd( 'view', '' );\n\t\t\n\t\t$model\t\t\t= $this->getModel( 'block' );\n\t\t\n\t\t$block_id\t\t= $model->store( $data );\n\t\t\n\t\t$layout\t\t\t= ($layout) ? '&layout='.$layout : '';\n\t\t$tmpl\t\t\t= ($tmpl) ? '&tmpl='.$tmpl : '';\n\t\t\n\t\tif( $view == 'brochure' ){\n\t\t\t\n\t\t\t$view_id\t= $view . '&id=' . $bro_id;\n\t\t\t\n\t\t}else{\n\t\t\t\n\t\t\t$view_id\t= $view . '&id=' . $block_id;\n\t\t\t\n\t\t}\n\t\t\n\t\t$bro_page_order = ($bro_page_order) ? '#page-' . $bro_page_order : '';\n\t\t\n\t\t$this->setRedirect( 'index.php?option=com_zbrochure&view='.$view_id.$layout.$tmpl.$bro_page_order, JText::_( 'BLOCKED_SAVED' ) );\n\t\t\n\t}", "title": "" }, { "docid": "38410bd9a8a3b3d93a15774bf2c85ce0", "score": "0.4821717", "text": "Public function actualizaoc($movimiento, $model,$transaccion) {\r\r\n //recorriendo el kardex\r\r\n $statusacolocar=null;\r\r\n\r\r\n if ($movimiento=='30') {\r\r\n $hijos=Alkardex::model()->findall(\"hidvale=:hid\",array(\":hid\"=>$model->id));\r\r\n for ($i=0; $i < count($hijos); $i++) {\r\r\n $modelodetalle=Docompra::model()->findByPk($hijos[$i]['idref']);\r\r\n $cantiatendida=$modelodetalle->cantidadentregada; ///la cantidada atendida\r\r\n $cantidadingresada=$hijos[$i]['cant'];\r\r\n $modelodetalle->setScenario('ingresacompra');\r\r\n\r\r\n if($cantidadingresada <= $modelodetalle->cant-$cantiatendida) {\r\r\n $modelentregas=new Alentregas;\r\r\n\r\r\n\t\t\t\t\t $modelentregas->iddetcompra=$modelodetalle->id;\r\r\n $modelentregas->cant=$hijos[$i]['cant'];\r\r\n $modelentregas->fecha=date(\"Y-m-d H:i:s\");\r\r\n $modelentregas->idkardex=$hijos[$i]['id'];\r\r\n $modelentregas->usuario=Yii::app()->user->name;\r\r\n //actualizando el status del detalle de la OC\r\r\n $modelodetalle->estadodetalle=($cantidadingresada==($modelodetalle->cant-$cantiatendida))?'60':'50';\r\r\n\r\r\n\t\t\t\t\t\t\t//revisando las reservas\r\r\n\t\t\t\t\t $modeloreserva=Alreserva::model()->find(\"hidesolpe=:xidsolpe AND codocu='800' \",array(\":xidsolpe\"=>$modelodetalle->id));\r\r\n\t\t\t\t\t if(!is_null($modeloreserva)) {\r\r\n\r\r\n\t\t\t\t\t\t\t\t\t$modeloreserva->setscenario('cambiaestado');\r\r\n\t\t\t\t\t\t\t\t\t$modeloreserva->estadoreserva=($cantidadingresada==($modelodetalle->cant-$cantiatendida))?'40':'20';\r\r\n\t\t\t\t\t\t\t\t\t$modeloreserva->save();\r\r\n\t\t\t\t\t\t \t\t\t\t\t ECHO \"SI SALIO LA RESERVA\";\r\r\n\t\t\t\t\t\t\t\t\t\t\t $transaccion->rollback();\r\r\n\t\t\t\t\t\t \t\t\t\t\t\t\tYii::app()->end();\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\r\n\r\r\n } else {\r\r\n $transaccion->rollback();\r\r\n //revertimos la transaccion\r\r\n throw new CHttpException(500,'La cantidad del item excede a lo que se ha comprado');\r\r\n }\r\r\n $modelodetalle->save();\r\r\n $modelentregas->save();\r\r\n // $statusacolocar='02'; ///actualizar EL VALE\r\r\n } //FIN DEL BUCLE\r\r\n } // fin de si es un ingreso\r\r\n\r\r\n if ($movimiento=='40') {\r\r\n //SACAMOS LOS KARDEX HIJOS DEL VALE REFRENCIADO, OJO , NO EL VALE ACTUAL\r\r\n $valeref=Almacendocs::model()->findAll(\"numvale=:xnumvale\",array(\":xnumvale\"=>trim($model->numdocref)));\r\r\n if(count($valeref) > 0) {\r\r\n\r\r\n\r\r\n $hijos=Alkardex::model()->findall(\"hidvale=:hid\",array(\":hid\"=>$valeref[0]['id']));\r\r\n\r\r\n for ($i=0; $i < count($hijos); $i++) {\r\r\n //detalle de la OC\r\r\n\r\r\n $modelentregas=Alentregas::model()->find(\"idkardex=:xidkardex\",array(\":xidkardex\"=>$hijos[$i]['id']));\r\r\n\r\r\n if( !$modelentregas==null) {\r\r\n\r\r\n\r\r\n\r\r\n // $transaccion->rollback();\r\r\n //throw new CHttpException(500,'qeup paso '.$modelentregas->idkardex);\r\r\n $detalleoc=Docompra::model()->findByPk($modelentregas->iddetcompra);\r\r\n $detalleoc->setScenario('ingresacompra');\r\r\n\r\r\n ///!CUIDADO LA ETREHA VAYA A ESTAR FACTURADO\r\r\n if($modeloentregas->estado=='20') {\r\r\n $transaccion->rollback();\r\r\n throw new CHttpException(500,'No se puede anular hay entregas facturadas, OC :'.$detalleoc->docompra_ocompra->numcot.'Item :'.$detalleoc->item.' ');\r\r\n }\r\r\n\r\r\n ///resolviendo el tema de los status del detalle de la OC\r\r\n $cantiatendida=$detalleoc->cantidadentregada;\r\r\n if (abs($hijos[$i]['cant']) == $cantiatendida) //Si es un ingreso unico\r\r\n $detalleoc->estadodetalle='20'; ///aprobado\r\r\n if (abs($hijos[$i]['cant']) < $cantiatendida) //Si es un ingreso parcial\r\r\n $detalleoc->estadodetalle='50'; ///atencionm parcial\r\r\n $modelentregas->delete(); //borrar las entregas\r\r\n } ELSE {\r\r\n $transaccion->rollback();\r\r\n throw new CHttpException(500,'No se pudo hallar la entrega correspondiente al item del vale '.$hijos[$i]['id']);\r\r\n }\r\r\n\r\r\n if( !($detalleoc->save() and $modelentregas->save())) {\r\r\n $transaccion->rollback();\r\r\n throw new CHttpException(500,'No se pudograbar el detalle de la OC, o borrar las entregas');\r\r\n }\r\r\n\r\r\n }\r\r\n }else {\r\r\n $transaccion->rollback();\r\r\n throw new CHttpException(500,'El numero de vale a anular no es valido, verifique la entrada : Vale a anular:'.$model->numdocref.' Vale actual:'.$model->numvale);\r\r\n }\r\r\n\r\r\n }\r\r\n }", "title": "" }, { "docid": "ff960645c3840f60993d80a01c889b08", "score": "0.48202485", "text": "public function actionCrear()\n\t{\n\n\nfunction normalize_date($date){ \nif(!empty($date)){ \n$var = explode('/',str_replace('-','/',$date)); return \"$var[2]-$var[0]-$var[1]\"; \n} \n} \n\t\t$hora = date(\"H:i:s\",time()-21600);\n\t\t$horan = \"{\".$hora.\"}\";\n\t\tif(isset ($_POST['data']))\n\t\t{\n\t\t\n\t\t\t$data = $_POST['data'];\n\t\t\n\t\t\t$enc = explode('|',$data);\n\n\t\t\t\t\t//POINT(-10014051.271376 1740758.0212264)\n\n\t\t\t$coordinates = new CDbExpression(\"st_GeomFromEWKT('SRID=900913;\".$enc[11].\"')\");\n\t$nfecha = normalize_date($enc[2]);\n\t\t$variable_datos_usuario = json_decode($_SESSION['ID_ROL_SIPOL']);\n\t\t$id_usuario = $variable_datos_usuario[0]->id_usuario;\n\t\t$m_boleta = new mTBoleta;\n\t\t$m_boleta->attributes=array(\n \t\t'id_comisaria'=>$enc[0],\n \t\t'division_pnc'=>$enc[1],\n \t\t'fecha'=>\"{\".$enc[2].\"}\",\n\t\t\t'hora'=>\"{\".$enc[3].\"}\",\n \t\t'titulo'=>$enc[4],\n \t\t'id_departamento'=>$enc[6],\n \t\t\t'id_municipio'=>$enc[7],\n \t\t\t'id_zona'=>$enc[8],\n \t\t\t'the_geom'=>$coordinates,\n \t\t\t'detalle'=>htmlspecialchars($enc[5]),\n \t\t'estado'=>'Preeliminar',\n \t\t'id_usuario'=>'57',\n \t\t'hora_registro'=>$horan,\t \t\t\t\n\t\t\t);\n\t\t\t$m_boleta->save();\n\t\t\t$correl = $m_boleta->id_boleta;\n\t\t\t$eventos = $_POST['data_det'];\n\t\t\t//print_r($eventos);\n\t\t$contador_posiciones = 0;\n\t\t$variable_string = \"\";\n\t\t\tforeach ($eventos as $key => $value) {\n\t\t\t\tif($contador_posiciones == 4)\n\t\t\t\t{\n\t\t\t\t\t$variable_string = $variable_string.\"|\";\n\t\t\t\t\t$contador_posiciones = 0;\n\t\t\t\t}else{\n\t\t\t\t\t$variable_string = $variable_string.$value.\",\";\n\t\t\t\t\t$contador_posiciones = $contador_posiciones +1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t# code...\n\t\t\t}\n\t\t\t//var_dump($eventos);\n\n\t\t\t$insert_id = Yii::app()->db->getLastInsertId('dg_pnc_novedades.t_boleta_id_boleta_seq');\t\n\t\t\t$pjoin = explode('|',$variable_string);\n \t\t\tforeach ($pjoin as $value) \n \t\t\t{\n \t\t\t\t$param = explode(',',$value);\n \t\t\t$connection=Yii::app()->db;\n\t\t\t$sql1 = \"\n\t\t\tselect a.id_evento from dg_pnc_novedades.t_evento a, dg_pnc_novedades.t_hecho b\n\t\t\twhere b.id_hecho =a.id_hecho \n\t\t\tand b.nombre_hecho ='\".$param[0].\"'\n\t\t\tand a.nombre_evento ='\".$param[1].\"'\t\t\t\n\t\t\t\";\n\t\t\t$command=$connection->createCommand($sql1);\n\t\t\t$dataReader=$command->query();\n\t\t\t$acciones = \"\";\n\t\t\t\n\t\t\tforeach($dataReader as $row)\n\t\t\t{\n\t\t\t$id = $row['id_evento'];\n\t\t\t} \n\t\t\t\t$reg_actividades = $command->insert('dg_pnc_novedades.t_total_eventos', array(\n \t\t\t\t'id_boleta'=>$insert_id,\n \t\t\t\t'id_evento'=>$id,\n \t\t\t\t'cantidad'=>$param[3],\n\t\t\t\t\t'complemento'=>$param[2],\n\t\t\t\t));\t\n\n\n\t\t\t}\n\t\t\t$modal = '\n\n\t\t\t\t\t<div class=\"modal-body\">\n\t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">×</button>\n\t\t\t\t\t<h4>Guardó El Preeliminar: '.$correl.' </h4>\n\t\t\t\t\t</div> \n\t\t\t\t\t';\n\t\techo $modal;\n\n\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "19a80064a844e9bde428d42846c690d4", "score": "0.4817288", "text": "public function actionExportCustomerDossier($cid) {\n /*\n * Load data\n */\n $criteria = new CDbCriteria();\n //$criteria->select = \"dossier_id, t.cus_id, dossier_name, dossier_no, seal_no, create_time, t.note, t.floor_id\";\n $criteria->condition = \"t.cus_id = :id AND t.status = 1\";\n $criteria->params = array(':id' => $cid);\n $customer = Customer::model()->find($criteria);\n\n $criteria = new CDbCriteria();\n //$criteria->select = \"dossier_id, t.cus_id, dossier_name, dossier_no, seal_no, create_time, t.note, t.floor_id\";\n $criteria->condition = \"t.cus_id = :id AND t.status = 1\";\n $criteria->params = array(':id' => $cid);\n $dossiers = CustomerDossier::model()->findAll($criteria);\n\n /*\n * Create excel\n */\n Yii::import('application.extensions.excel.PHPExcel');\n Yii::import('application.extensions.excel.PHPExcel.IOFactory');\n\n $objPHPExcel = new PHPExcel();\n $objReader = new PHPExcel_Reader_Excel5;\n\n //Load template\n $path = Yii::app()->theme->basePath . '/template/view_box.xls';\n $objPHPExcel = $objReader->load($path);\n\n\n //Fill customer information\n $cusName = $customer->company_name;\n $objPHPExcel->getActiveSheet()->SetCellValue('B3', $customer->contract_code);\n $objPHPExcel->getActiveSheet()->SetCellValue('B4', $cusName);\n $objPHPExcel->getActiveSheet()->SetCellValue('B5', $customer->comp_phone);\n $objPHPExcel->getActiveSheet()->SetCellValue('B6', $customer->comp_fax);\n $objPHPExcel->getActiveSheet()->SetCellValue('B7', $customer->comp_email);\n $objPHPExcel->getActiveSheet()->SetCellValue('B8', $customer->comp_address);\n\n //Fill box information\n $i = 11;\n foreach ($dossiers as $value) {\n $objPHPExcel->getActiveSheet()->setCellValue('A' . $i, $value->dossier_no);\n $objPHPExcel->getActiveSheet()->setCellValue('B' . $i, $value->seal_no);\n $objPHPExcel->getActiveSheet()->setCellValue('C' . $i, $value->dossier_name);\n $objPHPExcel->getActiveSheet()->setCellValue('D' . $i, $value->floor->location_code);\n $objPHPExcel->getActiveSheet()->setCellValue('E' . $i, date('d-m-Y', $value->create_time));\n $objPHPExcel->getActiveSheet()->setCellValue('F' . $i, date('d-m-Y', $value->destruction_time));\n $objPHPExcel->getActiveSheet()->setCellValue('G' . $i, $value->note);\n $i++;\n }\n\n // Fix Template\n $objPHPExcel->getActiveSheet()->removeRow($i, 1000 - count($dossiers));\n\n if (!Util::isSupperUser()) { //if user is not SupperUser, export readonly excel file\n //secure in excel\n $objPHPExcel->getActiveSheet()->getProtection()->setSheet(true);\n $objPHPExcel->getActiveSheet()->getProtection()->setSort(true);\n $objPHPExcel->getActiveSheet()->getProtection()->setInsertRows(true);\n $objPHPExcel->getActiveSheet()->getProtection()->setFormatCells(true);\n }\n\n\n // Save Excel 2005 file\n $objWriter = new PHPExcel_Writer_Excel5($objPHPExcel);\n $fileName = preg_replace('[\\s]', '_', $cusName) . \"_\" . date('dmYhis', time()) . \".xls\";\n $objWriter->save(Yii::getPathOfAlias('webroot') . \"/uploads/\" . $fileName);\n\n if (file_exists(Yii::getPathOfAlias('webroot') . \"/uploads/\" . $fileName))\n return $fileName;\n else\n return null;\n }", "title": "" }, { "docid": "41ee657cec36dd4a6891025b8667483f", "score": "0.48108572", "text": "public function saveBlocks(){\n\t\n\t\t$app\t= JFactory::getApplication();\n\t\t\n\t\t$data\t= JRequest::get('post','');\n\t\t\n\t\t$brochure = JRequest::getVar('brochureid');\n\t\t$page = JRequest::getVar('page');\n\t\t\n\t\t$model\t= $this->getModel( 'brochure' );\n\t\t$newid\t= $model->saveBlocks($data, $brochure, $page);\n\t\t\n\t\t$this->setRedirect( 'index.php?option=com_zbrochure&view=brochure', 'Brochure Saved' );\n\t\n\t}", "title": "" }, { "docid": "bac506b3307dd53fe04f12bf3e8ae106", "score": "0.48101297", "text": "function save($data);", "title": "" }, { "docid": "60129c6b36f8663660b6976f96d6badc", "score": "0.48056442", "text": "protected abstract function SaveElement();", "title": "" }, { "docid": "c1369cd9320a2dc21e07a9cea7389e2d", "score": "0.48030698", "text": "function editarPlantillaCosto($codComp,$title,$cant1,$cant2,$stmt,$tabla,$cabecera,$valores,$fact){\n $dbh = new Conexion();\n $i=0;$cab=cantidadF($cabecera);$codigo=0;\n while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {\n $codigo=$row['codigo'];\n if($i<$cant2){\n //update\n $sets=\"\";\n for ($k=0; $k < $cab; $k++) { \n if($k==($cab-1)){\n $sets.=$cabecera[$k].\"='\".$valores[$i][$k].\"'\";\n }else{\n $sets.=$cabecera[$k].\"='\".$valores[$i][$k].\"', \";\n }\n } \n $query=\"UPDATE $tabla set $sets where codigo=$codigo\"; \n }else{\n //delete\n $query=\"DELETE from $tabla where codigo=$codigo\";\n }\n $crud = $dbh->prepare($query);\n $crud->execute();\n if($fact!=null){\n //recoger valores del array en un array general para enviar los datos\n for($h=0;$h<cantidadF($fact[$i]);$h++){\n $valFac[$h][0]=$fact[$i][$h]->codigo_cuenta;\n $valFac[$h][1]=$fact[$i][$h]->tipo;\n $valFac[$h][2]=$fact[$i][$h]->monto_i;\n $valFac[$h][3]=$fact[$i][$h]->monto_fi;\n $valFac[$h][4]=$fact[$i][$h]->monto_cal;\n }\n $sql = obtenerPlantillasDetalle($codigo);\n $cabeceraFac[0]=\"cod_partidapresupuestaria\";$cabeceraFac[1]=\"tipo_calculo\";$cabeceraFac[2]=\"monto_local\";$cabeceraFac[3]=\"monto_externo\";$cabeceraFac[4]=\"monto_calculado\";\n editarPlantillaCosto($codigo,'cod_plantillagrupocosto',contarPlantillaCostoDetalle($codigo),cantidadF($fact[$i]),$sql,'plantillas_grupocostodetalle',$cabeceraFac,$valFac,null);\n }\n $i++;\n }\n if($cant2>$cant1){\n for ($j=$i; $j < $cant2; $j++) { \n //insert\n $into=$title.\",\";$values=$codComp.\",\";\n for ($l=0; $l < $cab; $l++) { \n if($l==($cab-1)){\n $into.=$cabecera[$l].\"\";\n $values.=\"'\".$valores[$j][$l].\"'\";\n }else{\n $into.=$cabecera[$l].\",\";\n $values.=\"'\".$valores[$j][$l].\"',\";\n } \n }\n if($fact==null){\n $codPlantillaDetalle=obtenerCodigoPlantillaGrupoDetalle();\n $dbh = new Conexion();\n $query2=\"INSERT INTO $tabla (codigo, \".$into.\") values ($codPlantillaDetalle, \".$values.\")\";\n }else{\n $codPlantillaGrupo=obtenerCodigoPlantillaGrupo();\n $dbh = new Conexion();\n $query2=\"INSERT INTO $tabla (codigo, \".$into.\") values ($codPlantillaGrupo, \".$values.\")\";\n //recoger valores del array en un array general para enviar los datos\n for($r=0;$r<cantidadF($fact[$j]);$r++){\n $valFac[$r][0]=$fact[$j][$r]->codigo_cuenta; \n $valFac[$r][1]=$fact[$j][$r]->tipo;\n $valFac[$r][2]=$fact[$j][$r]->monto_i;\n $valFac[$r][3]=$fact[$j][$r]->monto_fi;\n $valFac[$r][4]=$fact[$j][$r]->monto_cal;\n }\n $sql = obtenerPlantillasDetalle($codPlantillaGrupo);\n $cabeceraFac[0]=\"cod_partidapresupuestaria\";$cabeceraFac[1]=\"tipo_calculo\";$cabeceraFac[2]=\"monto_local\";$cabeceraFac[3]=\"monto_externo\";$cabeceraFac[4]=\"monto_calculado\";\n editarPlantillaCosto($codPlantillaGrupo,'cod_plantillagrupocosto',contarPlantillaCostoDetalle($codPlantillaGrupo),cantidadF($fact[$j]),$sql,'plantillas_grupocostodetalle',$cabeceraFac,$valFac,null);\n }\n \n $crud2 = $dbh->prepare($query2);\n $crud2->execute();\n }\n }\n }", "title": "" }, { "docid": "c5aa734304007491abef7ff5004902e4", "score": "0.48016378", "text": "function saveElecteur() :bool\r\n {\r\n // instancier la class de connexion a la base de donnee\r\n $ob_connexion=new Connexion();\r\n // l appel de la methode de connexion getdb()\r\n $db=$ob_connexion->getDB();\r\n $ret=false;\r\n if (!is_null($db))\r\n {\r\n $sql=\"INSERT INTO electeur(\r\n nom_electeur, \r\n prenom_electeur, \r\n cni,\r\n num_electeur,\r\n sexe,\r\n date_nais, \r\n lieu_nais,\r\n adress,login,mdp,\r\n region,dep,arron,commune,\r\n id_bureau\r\n )values(:nom_electeur,:prenom_electeur,:cni,:num_electeur,:sexe,:date_nais,:lieu_nais,:adress,:login,:mdp,:region,:dep,:arron,:commune,:id_bureau)\";\r\n $element=$db->prepare($sql);\r\n $element->execute(array(\r\n ':nom_electeur'=>$this->nom_electeur,\r\n ':prenom_electeur'=>$this->prenom_electeur,\r\n ':cni'=>$this->cni,\r\n ':num_electeur'=>$this->num_electeur,\r\n ':sexe' =>$this->sexe,\r\n ':date_nais'=>$this->date_nais,\r\n ':lieu_nais'=>$this->lieu_nais,\r\n ':adress'=>$this->adress,\r\n ':login'=>$this->login,\r\n ':mdp'=>$this->mdp,\r\n ':region'=>$this->region,\r\n ':dep'=>$this->dep,\r\n ':arron'=>$this->arron,\r\n ':commune'=>$this->commune,\r\n ':id_bureau'=>$this->id_bureau\r\n ));\r\n $ret=true;\r\n }else{\r\n echo \"erreur de connexion a la basse\";\r\n }\r\n return $ret;\r\n}", "title": "" }, { "docid": "e2e568725c51337657cefa507ce0afff", "score": "0.47966334", "text": "function save(&$record, $current, $exits) {}", "title": "" }, { "docid": "2b9bb664aa7869e644ee160abc654976", "score": "0.4796079", "text": "public function onAfterSave() {\n //hack, doesn't need to raise the system events\n //parent::onAfterSave();\n\n if ($this->pieces->accessed) $this->pieces->save ();\n\n $this->accessed = false;\n \n }", "title": "" }, { "docid": "93a75f580a731beacea13e1575449e04", "score": "0.479568", "text": "function save() {\n $this->dbh->TransactionBegin();\n $garantID = $this->getGarantID();\n\n //TODO: tu je delete na all mozno komplikovany,\n //je mozne mazat rovno zaznamy vo foreach podla predmetu a potom insertovat ak treba\n //toto potom vyhodi id_semester z modelu+pohladu\n\n //vymazeme vsetky priradenia pedagogov k predmetom v aktivnom semestri\n $query =\n \"DELETE FROM vyucuje_predmet WHERE id_pedagog_typ=$1\n \t AND (id_predmet IN (SELECT id FROM predmet WHERE id_semester = $2))\";\n\n $this->dbh->query($query, array($garantID, $this->id_semester));\n\n foreach ($this->garant as $gar) {\n if (!$gar['id_garant']) continue;\n $query =\n \"INSERT INTO vyucuje_predmet(id_predmet,id_pedagog,id_pedagog_typ)\n VALUES ($1, $2, $3)\";\n $this->dbh->query($query, array(\n $gar['id_predmet'], $gar['id_garant'], $garantID\n ));\n }\n $this->dbh->TransactionEnd();\n }", "title": "" }, { "docid": "f5541471bab5650374ad4068eb864ccb", "score": "0.47849274", "text": "abstract protected function saveSpreadsheet(Spreadsheet $spreadsheet);", "title": "" }, { "docid": "f1e48a2ca4a850b7e30a93a135e74b61", "score": "0.47821078", "text": "function saveCat(){\n\t\tglobal $tsdb, $tsCore;\n\t\t//\n\t\t//$db = $this->getDBtypes();\n\t\t$cid = $tsCore->setSecure($_GET['cid']);\n\t\t//\n\t\t$c_nombre = $tsCore->setSecure($_POST['c_nombre']);\n $cimg = $tsCore->setSecure($_POST['c_img']);\n\t\t$updates = \"c_nombre = '{$c_nombre}', c_seo = '{$tsCore->setSEO($c_nombre,true)}', c_img = '{$cimg}'\";\n\t\tif($tsdb->update(\"p_categorias\",$updates,\"cid = {$cid}\")) return true;\n\t}", "title": "" }, { "docid": "2bab08cfb24d463624c0361bdd13ab58", "score": "0.4773227", "text": "function save_last(){\r\n\r\n\t\tif($this->debug>0){error_log('New LP - In learnpath::save_last()',0);}\r\n\r\n \t\t$table = Database::get_course_table('lp_view');\r\n\r\n \tif(isset($this->current)){\r\n\r\n \t\tif($this->debug>2){error_log('New LP - Saving current item ('.$this->current.') for later review',0);}\r\n\r\n \t\t$sql = \"UPDATE $table SET last_item = \".$this->get_current_item_id().\" \" .\r\n\r\n \t\t\t\t\"WHERE lp_id = \".$this->get_id().\" AND user_id = \".$this->get_user_id();\r\n\r\n \t\tif($this->debug>2){error_log('New LP - Saving last item seen : '.$sql,0);}\r\n\r\n\t\t\t$res = api_sql_query($sql,__FILE__,__LINE__);\r\n\r\n \t}\r\n\r\n \t//save progress\r\n\r\n \tlist($progress,$text) = $this->get_progress_bar_text('%');\r\n\r\n \tif($progress>=0 AND $progress<=100){\r\n\r\n \t\t$progress= (int)$progress;\r\n\r\n \t\t$sql = \"UPDATE $table SET progress = $progress \" .\r\n\r\n \t\t\t\t\"WHERE lp_id = \".$this->get_id().\" AND \" .\r\n\r\n \t\t\t\t\t\t\"user_id = \".$this->get_user_id();\r\n\r\n \t\t$res = api_sql_query($sql,__FILE__, __LINE__); //ignore errors as some tables might not have the progress field just yet\r\n\r\n \t\t$this->progress_db = $progress;\r\n\r\n \t}\r\n\r\n }", "title": "" }, { "docid": "af687fa786c2c9e1d77e2d47079b25dd", "score": "0.47668278", "text": "public static function SaveAnalyteMatrixForTask($caller, $task_id, $matrix_data, $analyte_type = 'Lab') {\n\t\t\n //create data for deletion\n $data = array('task_id' => $task_id);\n\n if($analyte_type === 'Lab') {\n \t //FOR LAB ANALYTE\n\t \t//First delete the existing relationship\n $data = array('task_id' => $task_id);\n //Init PDO\n $lab_analyte_location = \\Applications\\PMTool\\Helpers\\CommonHelper::PrepareUserObject($data, new \\Applications\\PMTool\\Models\\Dao\\Lab_analyte_location());\n $manager = $caller->managers()->getManagerOf('TaskLabAnalyte');\n $result_del_relation = $manager->delete($lab_analyte_location, 'task_id');\n\n \t} else {\n \t //FOR FIELD ANALYTE\n //First delete the existing relationship\n //Init PDO\n $field_analyte_location = \\Applications\\PMTool\\Helpers\\CommonHelper::PrepareUserObject($data, new \\Applications\\PMTool\\Models\\Dao\\Field_analyte_location());\n $manager = $caller->managers()->getManagerOf('TaskFieldAnalyte');\n $result_del_relation = $manager->delete($field_analyte_location, 'task_id'); \n \t}\n\n \t$ret_val = true;\n\n \t//location_analyte id pairs incoming, process the variable\n $id_pairs = array();\n if(trim($matrix_data) !== '') {\n $data_pairs = explode('&', $matrix_data);\n \tforeach($data_pairs as $data_pair){\n $data_nodes = explode('=', $data_pair);\n array_push($id_pairs, $data_nodes[1]);\n \t}\n\n \t//Finally loop and save the relationship\n \tforeach ($id_pairs as $key => $id_pair) {\n $id_arr = explode('_', $id_pair);\n $location_id = $id_arr[0];\n $analyte_id = $id_arr[1];\n\n //Save\n //create data\n unset($data);\n if($analyte_type === 'Lab'){\n \t$data = array('task_id' => $task_id, 'location_id' => $location_id, 'lab_analyte_id' => $analyte_id);\t\n \t//Init PDO\n\t $lab_analyte_location = \\Applications\\PMTool\\Helpers\\CommonHelper::PrepareUserObject($data, new \\Applications\\PMTool\\Models\\Dao\\Lab_analyte_location());\n\t $manager = $caller->managers()->getManagerOf('TaskLabAnalyte');\n\t $result_save_relation = $manager->add($lab_analyte_location);\n } else {\n $data = array(\n 'task_id' => $task_id, \n 'location_id' => $location_id, \n 'field_analyte_id' => $analyte_id,\n 'field_analyte_location_result' => ''); \n //Init PDO\n $field_analyte_location = \\Applications\\PMTool\\Helpers\\CommonHelper::PrepareUserObject($data, new \\Applications\\PMTool\\Models\\Dao\\Field_analyte_location());\n $manager = $caller->managers()->getManagerOf('TaskFieldAnalyte');\n $result_save_relation = $manager->add($field_analyte_location);\n } \n }\n }\n else{\n \t$ret_val = false;\n }\n return $ret_val;\n }", "title": "" }, { "docid": "1a584b58dc11cf12fa0af3bac7aa7bdb", "score": "0.4762934", "text": "function save($checkupdates = false) {}", "title": "" } ]
fe023a2b2b53b520f345ca0adc7db9a2
Display the specified DocumentCategory.
[ { "docid": "3129e6b286e280c48d51a0be54dd1cd5", "score": "0.60511774", "text": "public function show($id)\n {\n $documentCategory = $this->documentCategoryRepository->findWithoutFail($id);\n\n if (empty($documentCategory)) {\n Flash::error('Document Category not found');\n\n return redirect(route('admin.documentCategories.index'));\n }\n\n return view('backend.document_categories.show')->with('documentCategory', $documentCategory);\n }", "title": "" } ]
[ { "docid": "705084b4b6408be71ccb6fde8851f729", "score": "0.70342255", "text": "public function show(Category $Category)\n {\n //\n }", "title": "" }, { "docid": "c7912b8fb71ff84752543ce62b463dec", "score": "0.70017445", "text": "public function show(Category $category)\n {\n //\n \n \n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "b78f3b710afe563a9f7794f34ef21194", "score": "0.696552", "text": "public function show(Category $category)\n {\n //\n }", "title": "" }, { "docid": "34e743d8d29ad6e3d5713ecbfe2ae4cd", "score": "0.6879147", "text": "public function show(category $category)\n {\n //\n }", "title": "" }, { "docid": "34e743d8d29ad6e3d5713ecbfe2ae4cd", "score": "0.6879147", "text": "public function show(category $category)\n {\n //\n }", "title": "" }, { "docid": "a6830fd7d3b31bbf493d61d8d8c50af3", "score": "0.68380153", "text": "public function show(Category $category)\n {\n\n }", "title": "" }, { "docid": "c3deb2d9508f37cf8fc444ac0182181e", "score": "0.6799613", "text": "public function show(BlogCategory $blogCategory)\n {\n //\n }", "title": "" }, { "docid": "61a20ef12fbb7bbdf12cdf0b0d85cfbd", "score": "0.66827625", "text": "public function show(booksCategory $booksCategory)\n {\n //\n }", "title": "" }, { "docid": "5c5edb63111f26ed1eb4fdfb31b03bec", "score": "0.6671953", "text": "public function show(booksCategory $booksCategory)\n {\n //\n }", "title": "" }, { "docid": "a6dcc55e1464cb67182cff6b572e9936", "score": "0.6544944", "text": "public function show(QuestionCategory $questionCategory)\n {\n //\n }", "title": "" }, { "docid": "7c2080fd5c75d73e8edd432ccd7a6911", "score": "0.65256214", "text": "public function show_edit_category_page() {\n global $category;\n\n $categories = Goods_Types_Model::get_all_categories();\n\n $this->render( MM_DIR . '/views/category_edit_page.php'\n , array(\n 'page_name' => $this->categories_page,\n 'category' => $category,\n 'categories' => $categories,\n )\n );\n }", "title": "" }, { "docid": "5a153139f5475571933cc2122664ae78", "score": "0.6522001", "text": "public function show(ProductCategory $productCategory)\n {\n //\n }", "title": "" }, { "docid": "8dffe134a9fb9ae217d09bec40a51203", "score": "0.64998865", "text": "public function show(EventCategory $eventCategory)\n {\n //\n }", "title": "" }, { "docid": "2e29c203151eba914bac6ded8aaec130", "score": "0.64580065", "text": "public function show(DefectCategory $defectCategory)\n {\n //\n }", "title": "" }, { "docid": "91d491a2139824142139193361715617", "score": "0.6447664", "text": "public function show(CollectionCategory $collectionCategory)\n {\n $this->authorize('admin.collection-category.show', $collectionCategory);\n\n // TODO your code goes here\n }", "title": "" }, { "docid": "c9ebeb438d3fc417c725fe06f6b8006b", "score": "0.6443895", "text": "public function show(Category $category)\n {\n return $category;\n }", "title": "" }, { "docid": "c9ebeb438d3fc417c725fe06f6b8006b", "score": "0.6443895", "text": "public function show(Category $category)\n {\n return $category;\n }", "title": "" }, { "docid": "c9ebeb438d3fc417c725fe06f6b8006b", "score": "0.6443895", "text": "public function show(Category $category)\n {\n return $category;\n }", "title": "" }, { "docid": "7294dda15a87dbfd290d90b352cd8f2b", "score": "0.6440928", "text": "public function show(ComplaintCategory $complaintCategory)\n {\n //\n }", "title": "" }, { "docid": "480985c272171dd56a7902f866898d51", "score": "0.6438306", "text": "public function show(Category $tag)\n {\n //\n }", "title": "" }, { "docid": "ca52400f26abc0e9814ff74a3047dd25", "score": "0.6428582", "text": "public function show(Category $category)\n {\n abort(404);\n }", "title": "" }, { "docid": "594282039c85262144e79371b7ae4ac6", "score": "0.62624574", "text": "public function show(ItemCategory $itemCategory)\n {\n //\n }", "title": "" }, { "docid": "594282039c85262144e79371b7ae4ac6", "score": "0.62624574", "text": "public function show(ItemCategory $itemCategory)\n {\n //\n }", "title": "" }, { "docid": "fd2a4e4092df9d505468920ff145afa5", "score": "0.6255799", "text": "public function show($categoryKey)\n {\n // Find Category class\n $category = sharp_category($categoryKey);\n\n $k=0;\n $entityKey = $category->entities()[$k];\n\n // Find the first entity for which we are abilited\n while(!check_ability(\"list\", $categoryKey, $entityKey)) {\n $entityKey = sizeof($category->entities()) > $k\n ? $category->entities()[++$k]\n : null;\n }\n\n if(!$entityKey) {\n abort(403);\n }\n\n return redirect()->route(\"sharp.cms.list\", [$categoryKey, $entityKey]);\n }", "title": "" }, { "docid": "487c95df6d928bbc63a8e3e6bff1c9c1", "score": "0.6240239", "text": "public function show(Root $root, Category $category)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "47c781a48e2575eaa8c999ba8ad8bb7b", "score": "0.6228337", "text": "public function showAction(Tx_Extbasenews_Domain_Model_Categorie $categorie) {\n\t\t$this->view->assign('categorie', $categorie);\n\t}", "title": "" }, { "docid": "a5d7b099382bd67ef195d93929a4e94f", "score": "0.6225906", "text": "protected function show(){\n \t$documentsCategories = DocumentsCategory::paginate();\n \treturn view('documentsCategory.list', compact('documentsCategories'));\n }", "title": "" }, { "docid": "24e91972c0571af93650204a97e632d3", "score": "0.6203272", "text": "public function show(NewsCategory $newsCategory)\n {\n }", "title": "" }, { "docid": "94f492130aa786ee9a35db13b2938719", "score": "0.6170774", "text": "public function show($_category_id) {\n $category_id = hash_decode($_category_id);\n if (!$category_id) {\n return back()->with('alert-danger', trans('product::category.invalid'));\n }\n $category = ProductCategory::select(['id', 'name', 'created_at'])->where('id', $category_id)->first();\n if (!$category) {\n return back()->with('alert-danger', trans('product::category.not.found'));\n }\n return view('product::category.show', [\n 'category' => $category,\n ]);\n }", "title": "" }, { "docid": "3fd8326797659da219c6ad0bb3bcc07f", "score": "0.61649925", "text": "public function show(CategoryProduct $categoryProduct)\n {\n //\n }", "title": "" }, { "docid": "736485e321628f4b55e3d13459c513d6", "score": "0.6145507", "text": "public function show(Category $category)\n {\n return view('codebook::categories.show', compact('category'));\n }", "title": "" }, { "docid": "fb393a44c664d0f9b4f113f68a09e7c6", "score": "0.6138958", "text": "public function show_category($category_slug)\n {\n $parts = explode('-', $category_slug);\n $id = array_shift($parts);\n $category_slug = implode('-', $parts);\n $category = Category::findOrFail($id);\n\n if(Str::slug($category->slug) !== $category_slug) return redirect()->route('catalog.category', ['category_slug' => Str::slug($id.'-'.Str::slug($category->slug))]);\n\n return view('catalog.category')->with([\"subcategories\" => $category->subcategories, \"category\" => $category]);\n }", "title": "" }, { "docid": "904d7ec7c4f531b0b2ad6c51b21401b5", "score": "0.61343384", "text": "public function show(Category $category)\n {\n return abort(404);\n }", "title": "" }, { "docid": "7eea2eba378d81340ae0abf108139245", "score": "0.6129945", "text": "public function action_category() {\n\t\tKohana::$log->add(Kohana::DEBUG,\n\t\t\t'Executing Controller_Blog::action_category');\n\t\t$this->template->content = View::factory('blog/front/list')\n\t\t\t->bind('legend', $legend)\n\t\t\t->bind('articles', $articles)\n\t\t\t->bind('pagination', $pagination);\n\n\t\t$category = $this->request->param('name');\n\t\t$search = Sprig::factory('blog_search');\n\t\t$articles = $search->search_by_category($category);\n\t\t$pagination = $search->pagination;\n\t\t$legend = __(':name Articles', array(':name'=>ucfirst($category)));\n\t}", "title": "" }, { "docid": "29459f442034d9bba9ee47c54188136b", "score": "0.6129347", "text": "public function show( Category $category ) {\n return response()->view( $this->folderPath . 'show', [ 'single' => $category ] );\n }", "title": "" }, { "docid": "86d8ef8dfcb741a1a664fea071dfd661", "score": "0.6129288", "text": "public function show(Category $category)\n {\n //\n return view('admin.category.show',['category'=>$category]);\n }", "title": "" }, { "docid": "57576685d766824cc1fa0d174f5cd311", "score": "0.61230195", "text": "public function show(ShopCategory $shopCategory)\n {\n //\n }", "title": "" }, { "docid": "57576685d766824cc1fa0d174f5cd311", "score": "0.61230195", "text": "public function show(ShopCategory $shopCategory)\n {\n //\n }", "title": "" }, { "docid": "402937fe75cf399abc29c0ac4a5c784d", "score": "0.6107572", "text": "public function showcategory()\n {\n $category = Category::all();\n\n return view('admin-area.category', ['category' => $category]);\n }", "title": "" }, { "docid": "393a6084ff185fd085156c3acf6906d7", "score": "0.6107475", "text": "public function show(Tiny_category $tiny_category)\n {\n //\n }", "title": "" }, { "docid": "29cdbc85f70a48de92b141aafa740225", "score": "0.6100848", "text": "public function displayCategoryAction()\n\t{\n\t\tif(!$this->isAdmin())\n\t\t{\n\t\t\treturn $this->redirectToRoute('home');\n\t\t}\n\n\t\t$form_attributes = array(\n\t\t\t'action' => $this->generateUrl('attribute_add_category'),\n\t\t\t'method' => 'POST',\n\t\t);\n\n\t\t$category_form = $this->createForm('e_category', array(), $form_attributes);\n\t\t$attr_value_form = $this->createForm('e_attr_value', array(), array());\n\n\t\t$category_repository = $this->getDoctrine()->getRepository('Ecommerce:Category');\n\t\t$categories = $category_repository->getViewCategories();\n\n\t\t$view = array(\n\t\t\t'head_title'\t\t => $this->get('translator')->trans('head_title.attribute.display-category'),\n\t\t\t'h1_title'\t\t\t => $this->get('translator')->trans('h1_title.attribute.display-category'),\n\t\t\t'categories'\t\t => $categories,\n\t\t\t'category_form'\t\t => $category_form->createView(),\n\t\t\t'attr_value_form'\t => $attr_value_form->createView(),\n\t\t);\n\n\t\treturn $this->render('attribute/category.html.twig', $view);\n\t}", "title": "" }, { "docid": "a2a822b546659ccbd8a85c060fdaf242", "score": "0.60528934", "text": "public function show(Cat $cat)\n {\n //\n }", "title": "" }, { "docid": "f3f3bd6157cc71400b4c62f6e9c89b8e", "score": "0.60360956", "text": "public function actionCategories()\n {\n return $this->render('categories', [\n 'dataProvider' => new ActiveDataProvider(['query' => DocumentCategory::findByType(DocumentCategory::class)]),\n ]);\n }", "title": "" }, { "docid": "6ed637199cc2443e3acee136d44bd77c", "score": "0.59974647", "text": "public function show(Category $category)\n {\n $category_ar=new category_ar;\n $category_ar=$category_ar->find($category->id);\n $category_en=new category_en;\n $category_en=$category_en->find($category->id);\n return view(\"admin.showcategory\",[\"category\"=>$category, \"categories_ar\"=>$category_ar,\"categories_en\"=>$category_en]);\n }", "title": "" }, { "docid": "705c3a0f72133524f27817b2af0d7841", "score": "0.5986826", "text": "public function show(SubCategory $subCategory) {\n\t\t//\n\t}", "title": "" }, { "docid": "ee89f7b85fc44430e614d35c7b08ca98", "score": "0.5983833", "text": "public function show(StockCategory $stockCategory)\n {\n //\n }", "title": "" }, { "docid": "2b737857d843108b685a2bbd088267a4", "score": "0.59724253", "text": "public function show(Category $category)\n {\n return view('categories.single', compact('category'));\n }", "title": "" }, { "docid": "686ac7cb96511450d2cdcfef29cc7f55", "score": "0.59557724", "text": "public function show($category)\n {\n\n return Category::with('children')->where('id', $category)->first();\n }", "title": "" }, { "docid": "c1b02730c4e07cf8ed06a2de31274523", "score": "0.5954405", "text": "public function show(Kategori $kategori)\n {\n //\n }", "title": "" }, { "docid": "c1b02730c4e07cf8ed06a2de31274523", "score": "0.5954405", "text": "public function show(Kategori $kategori)\n {\n //\n }", "title": "" }, { "docid": "faa30f7da34c0d535d3ac0b1aed2163b", "score": "0.594923", "text": "public function show(Category $category)\n {\n return $this->ResponseWithSuccess($category);\n }", "title": "" }, { "docid": "9b4dbb753f79b9f515f0ed5c7f23b40d", "score": "0.594437", "text": "public function show(CategoryGroup $categoryGroup)\n {\n //\n }", "title": "" }, { "docid": "48eb58848e9721228899412c05d0c5d2", "score": "0.5931528", "text": "public function show(Category $category)\n {\n abort_if(Gate::denies('category_show'), Response::HTTP_FORBIDDEN, '403 Forbidden');\n\n return view('admin.categories.show', compact('category'));\n }", "title": "" } ]
5c6b27d4885440cb2de6a7329463e491
Test case for salesOrderPaymentTypesGETRequestPaymentTypesPaymentTypeIDGet Retrieves a payment type.
[ { "docid": "28e2d0de9c67de00d00148e840f1ad50", "score": "0.67180336", "text": "public function testSalesOrderPaymentTypesGETRequestPaymentTypesPaymentTypeIDGet()\n {\n }", "title": "" } ]
[ { "docid": "dbd618a46a62ed4259e792230bca2eb5", "score": "0.6734691", "text": "public function getIdpaymentstype()\n {\n return $this->idPaymentsType;\n }", "title": "" }, { "docid": "64dadec81d59ab7467f91e675b0411dc", "score": "0.6614165", "text": "public function getPaymentType()\n {\n \treturn $this->paymentType;\n }", "title": "" }, { "docid": "7952ce3bc63427f2c48f75b1c256c580", "score": "0.6596223", "text": "public function getPaymentType()\n {\n return $this->_paymentType;\n }", "title": "" }, { "docid": "a2c637736a4b84be3c7692253904baa5", "score": "0.6370756", "text": "public function getPaymentType(): string\n {\n return $this->paymentType;\n }", "title": "" }, { "docid": "a996cc48f8358df6b3748c26d5d963f0", "score": "0.6273927", "text": "public function get_payment_type_post() {\n\n try {\n\n $get_role_details = $this->Common_model->get_the_role($this->user_id);\n if (!empty($get_role_details['user_role_data'])) {\n $permission_data = array(\n 'role_data' => $get_role_details['user_role_data'],\n 'module' => 16,\n 'key' => 3\n );\n $check_module_permission = $this->check_module_permission($permission_data);\n if ($check_module_permission == 2) {\n $this->my_response['status'] = false;\n $this->my_response['message'] = lang('permission_error');\n $this->send_response();\n }\n }\n\n $where_array = array(\n 'payment_type_status' => 1\n );\n $columns = 'payment_type_id, payment_type_name';\n $get_payment_type = $this->Common_model->get_payment_type($columns);\n\n if (!empty($get_payment_type)) {\n $this->my_response['status'] = true;\n $this->my_response['message'] = lang('common_detail_found');\n $this->my_response['data'] = $get_payment_type;\n } else {\n $this->my_response['status'] = false;\n $this->my_response['message'] = lang('common_detail_not_found');\n $this->my_response['data'] = array();\n }\n\n $this->send_response();\n } catch (ErrorException $ex) {\n $this->error = $ex->getMessage();\n $this->store_error();\n }\n }", "title": "" }, { "docid": "a539025094f7dbbc1928f3705a7bfbaf", "score": "0.62353617", "text": "private function getPaymentType(string $paymentId)\n {\n return substr($paymentId, 0, 2) === 'pi' ? 'payment_intent' : 'charge';\n }", "title": "" }, { "docid": "f3f6fdf8f7e96b15d5dbbe6e4812e3c9", "score": "0.622335", "text": "public function getPaymentProductTypes() {\n return PaymentType::find('id = ' . $this->paymenttype . '');\n }", "title": "" }, { "docid": "cd58323d0f0d38f889357aa055c81dae", "score": "0.60793287", "text": "function load_payment_type_id() {\n\t\t$this->payment_type->load($this->payment_type_id);\n\t}", "title": "" }, { "docid": "aa4277f42cef04a9a9316caad80de53d", "score": "0.6078601", "text": "public function testSalesOrderPaymentTypesDELETERequestPaymentTypesPaymentTypeIDDelete()\n {\n }", "title": "" }, { "docid": "584973d721b70f01287cf7d08d0e414c", "score": "0.5827344", "text": "public function getDirectPaymentType()\n {\n return $this->_fields['DirectPaymentType']['FieldValue'];\n }", "title": "" }, { "docid": "8ee3f5b277b26bd1a8c2f00afcd8994c", "score": "0.5826887", "text": "function get_payment_type_name($id){\n\t$query = \"SELECT payment_type FROM location_payments WHERE id='$id'\";\n\t$output = mysql_query($query);\n\t$result = mysql_fetch_assoc($output);\n\treturn $result['payment_type'];\n\t}", "title": "" }, { "docid": "3d8dbaabb897a0fce4eddc3eaa7bfb84", "score": "0.5798983", "text": "public function getEventPaymentType($eID)\r\n {\r\n if (!filter_var($eID, FILTER_VALIDATE_INT)) {\r\n echo(\"Event ID is not valid\");\r\n return false;\r\n } else {\r\n $graphModule = new Graph();\r\n $apiCall = $graphModule->selectNodeById($eID);\r\n $event = $apiCall['data'][0][0]['data'];\r\n return $event['paymentType'];\r\n }\r\n }", "title": "" }, { "docid": "b8a4996e7c0c237f4cfcc4c54d1bf8ce", "score": "0.57707155", "text": "public function getPaidType()\n\t{\n\t\treturn $this->paid_type;\n\t}", "title": "" }, { "docid": "8c304357fa38af0da189e880fb9c67f5", "score": "0.5762047", "text": "private function _getPaymentType( $postdata )\n\n\t{\n\n\t\t$type\t\t\t=\tstrtolower( cbGetParam( $postdata, 'cardtype' ) );\n\n\n\n\t\tswitch ( $type ) {\n\n\t\t\tcase 'american-express':\n\n\t\t\tcase 'american-express-dk':\n\n\t\t\t\t$type\t=\t'American Express Credit Card';\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'dankort':\n\n\t\t\t\t$type\t=\t'Dankort Credit Card';\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'danske-dk':\n\n\t\t\t\t$type\t=\t'Danske Net Bank';\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'diners':\n\n\t\t\tcase 'diners-dk':\n\n\t\t\t\t$type\t=\t'Diners Credit Card';\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'edankort':\n\n\t\t\t\t$type\t=\t'eDankort Credit Card';\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'fbg1886':\n\n\t\t\t\t$type\t=\t'Forbrugsforeningen af 1886';\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'jcb':\n\n\t\t\tcase '3d-jcb':\n\n\t\t\t\t$type\t=\t'JCB Credit Card';\n\n\t\t\t\tbreak;\n\n\t\t\tcase '3d-maestro':\n\n\t\t\tcase '3d-maestro-dk':\n\n\t\t\t\t$type\t=\t'Maestro Credit Card';\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'mastercard':\n\n\t\t\tcase 'mastercard-dk':\n\n\t\t\tcase '3d-mastercard':\n\n\t\t\tcase '3d-mastercard-dk':\n\n\t\t\t\t$type\t=\t'Mastercard Credit Card';\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'mastercard-debet-dk':\n\n\t\t\tcase '3d-mastercard-debet-dk':\n\n\t\t\t\t$type\t=\t'Mastercard Debit Card';\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'nordea-dk':\n\n\t\t\t\t$type\t=\t'Nordea Net Bank';\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'visa':\n\n\t\t\tcase 'visa-dk':\n\n\t\t\tcase '3d-visa':\n\n\t\t\tcase '3d-visa-dk':\n\n\t\t\t\t$type\t=\t'Visa Credit Card';\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'visa-electron':\n\n\t\t\tcase 'visa-electron-dk':\n\n\t\t\tcase '3d-visa-electron':\n\n\t\t\tcase '3d-visa-electron-dk':\n\n\t\t\t\t$type\t=\t'Visa Debit Card';\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'paypal':\n\n\t\t\t\t$type\t=\t'PayPal';\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'creditcard':\n\n\t\t\tcase '3d-creditcard':\n\n\t\t\t\t$type\t=\t'Credit Card';\n\n break;\n\n\t\t\tdefault:\n\n\t\t\t\tbreak;\n\n\t\t}\n\n\n\n\t\treturn $type;\n\n\t}", "title": "" }, { "docid": "ba868d8e1b6f541943619c76d6c1580a", "score": "0.57478976", "text": "function set_payment_type_id($payment_type_id = null) {\n\t\tif($payment_type_id != null) {\n\t\t\t$this->payment_type_id = $payment_type_id;\n\t\t} else {\n\t\t\t$this->payment_type_id = \n\t\t\t\t$this->db->query_field(PAYMENT_OPTION_SQL_GET_PAYMENT_TYPE_ID, array(get_class($this)));\n\t\t}\n\t\tif($this->payment_type_id != $this->payment_type->payment_type_id)\n\t\t{\n\t\t\t$this->payment_type = new payment_type($this->payment_type_id);\n\t\t}\n\t}", "title": "" }, { "docid": "a9cc3d9d44ea68bead5d5c806bb6e214", "score": "0.5638691", "text": "public function testSalesOrderPaymentTypesPOSTRequestPaymentTypesPost()\n {\n }", "title": "" }, { "docid": "ad2754fe2969a6e64376ef223a216a0d", "score": "0.5573682", "text": "public function getTransactionType($type) {\t\t\n \n $this->db['select']->column = \"*\";\n\t\t\n\t\t$this->db['select']->tableName = \"CAP_ACCOUNTING_TRANSACTION_TYPE\";\n\t\t\n\t\t$this->db['select']->whereClause = [[\"CAP_ACC_TRA_TYP_NAME\",\"=\",strtoupper($type)]];\n\t\t\n\t\t$this->db['select']->execute();\n\t\t\n\t\treturn $this->db['select']->arrayResult[0]['CAP_ACC_TRA_TYP_ID'];\n \n }", "title": "" }, { "docid": "14a847288f83eb8a93791af968540450", "score": "0.54880905", "text": "public function testSalesOrderPaymentTypesPATCHRequestPaymentTypesPaymentTypeIDUpdate()\n {\n }", "title": "" }, { "docid": "a19ab3872c26762713abb806dbe3294d", "score": "0.5484784", "text": "public function getOrderItemTypeId();", "title": "" }, { "docid": "cc2e9a19e5cd8fa0318caea06f3f86c5", "score": "0.5334039", "text": "public static function getTypeHandlerUrl($paymentType)\r\n\t{\r\n $url = null;\r\n \r\n\t\t$queryParts = objectTree::getObjectsQueryParts(\r\n\t\t\t'payment/handler',\r\n\t\t\tfalse,\r\n\t\t\ttrue\r\n\t\t);\r\n\r\n\t\t$queryParts['where'][] = 'x.type = \\'' . dbSE($paymentType) . '\\'';\r\n\t\t$row = dbGetRow($queryParts);\r\n \r\n\t\tif (!empty($row))\r\n\t\t{\r\n\t\t\t$url = orp($row['id']);\r\n\r\n if (!empty($url))\r\n {\r\n // force https for client return url unless explicitly specified otherwise\r\n if (\r\n (!defined(\"FORCE_HTTPS_FOR_PAYMENT_HANDLERS\"))\r\n ||\r\n (FORCE_HTTPS_FOR_PAYMENT_HANDLERS)\r\n )\r\n {\r\n $url = preg_replace('/^http:\\/\\//i', 'https://', $url);\r\n }\r\n }\r\n\t\t}\r\n \r\n\t\t$className = $paymentType;\r\n\t\t$handlerCheckVariable = 'paymentHandlerNeeded';\r\n if (!$url && $className::$$handlerCheckVariable)\r\n\t\t{\r\n\t\t\tthrow new DomainException('Could not find a payment handler in content tree for type: [' . $paymentType . '].');\r\n\t\t}\r\n \r\n return $url;\r\n\t}", "title": "" }, { "docid": "32d737a8545e1999b4559c457fa14839", "score": "0.53317213", "text": "function getPaymenttypeName($id){\n\t\t$handler = new DBHandler();\n\t\t$name = $handler->getPaymenttypeName($id);\n\t\treturn $name;\n\t}", "title": "" }, { "docid": "7edd3f9d5c46fdc06273ab74654bd4a2", "score": "0.53292596", "text": "function getTypes()\n {\n return $this->db->get('bill_to_pay_types')->result();\n }", "title": "" }, { "docid": "67b3d0a28ab548c01a1086fd9ad6b06e", "score": "0.5286282", "text": "public function setPaymentType($paymentType)\n {\n $this->_paymentType = $paymentType;\n return $this;\n }", "title": "" }, { "docid": "87eb65d414ac20f629409094a0bfd51e", "score": "0.52733636", "text": "public function getPaymentTypeAttribute()\n {\n return $this->type == self::PAYOUT_PAYPAL ? 'PayPal' : ucfirst($this->type);\n }", "title": "" }, { "docid": "c6aec7f2826e0e8368a88fe878b6ac86", "score": "0.52596515", "text": "public function setPaymentType(string $type = 'qris')\n {\n \t$this->paymentType = $type;\n\n \treturn $this;\n }", "title": "" }, { "docid": "003fab813eb1bdf25b61a1ed6bacf958", "score": "0.52295715", "text": "private function endpointByPaymentType($paymentType, $merchantPaymentId)\n {\n $main = $this->main();\n switch ($paymentType) {\n case 'pending':\n $version = $this->main()->GetEndpointVersion('REQUEST_ORDER');\n $endpoint = \"/${version}\" . $main->GetEndpoint('REQUEST_ORDER') . \"/$merchantPaymentId\";\n $url = $this->api_url . $main->GetEndpoint('REQUEST_ORDER') . \"/$merchantPaymentId\";\n $url = str_replace('v2', $version, $url);\n break;\n\n default:\n $endpoint = '/v2' . $main->GetEndpoint('PAYMENT') . \"/$merchantPaymentId\";\n $url = $this->api_url . $main->GetEndpoint('PAYMENT') . \"/$merchantPaymentId\";\n break;\n }\n return [\"endpoint\" => $endpoint, \"url\" => $url];\n }", "title": "" }, { "docid": "6b4a389bab51e2501fbff8fc45d20b38", "score": "0.52291125", "text": "public function getOrderType();", "title": "" }, { "docid": "6b4a389bab51e2501fbff8fc45d20b38", "score": "0.52291125", "text": "public function getOrderType();", "title": "" }, { "docid": "080f6efc4da44320921c0cb7889cbdfc", "score": "0.5198895", "text": "public function getPaymentMethodTypes(): ?array\n {\n return $this->paymentMethodTypes;\n }", "title": "" }, { "docid": "080f6efc4da44320921c0cb7889cbdfc", "score": "0.5198895", "text": "public function getPaymentMethodTypes(): ?array\n {\n return $this->paymentMethodTypes;\n }", "title": "" }, { "docid": "30f9c74770d028916ea51f976c016d13", "score": "0.5190235", "text": "private function getRegType($type) {\n\t\tif($type == 'paid')\n\t\t\treturn $this->registrants_by_race_paid;\n\t\telse if($type == 'unpaid')\n\t\t\treturn $this->registrants_by_race_unpaid;\n\t\telse\n\t\t\treturn $this->registrants_by_race;\n\t}", "title": "" }, { "docid": "aae00af81321a7fa974aed9e60372f0e", "score": "0.5177123", "text": "public function setIdpaymentstype($idPaymentsType)\n {\n $this->idPaymentsType = $idPaymentsType;\n\n return $this;\n }", "title": "" }, { "docid": "98d5a8c603ed26f5577a7864bddc4dd9", "score": "0.5174438", "text": "public function WC_getPaymantTypes() {\n\t\t\t$wc_payment = WC_Payment_Gateways::instance();\n\t\t\t$wc_payment_list = array();\n\n\t\t\tforeach ( $wc_payment->payment_gateways() as $payment ) {\n\t\t\t\t$wc_payment_list[ $payment->id ] = __( $payment->method_title, 'woocommerce' );\n\t\t\t}\n\n\t\t\treturn $wc_payment_list;\n\t\t}", "title": "" }, { "docid": "34c27adeb685663821fc0d109ea9e7f9", "score": "0.51582193", "text": "private function _getXSDTypeByCode($type){\n\t\tswitch($type){\n\t\t\tcase 'integer':\n\t\t\t\treturn 'xsd:int';\n\t\t\t\tbreak;\n\t\t\tcase 'string':\n\t\t\t\treturn 'xsd:string';\n\t\t\t\tbreak;\n\t\t\tcase 'double':\n\t\t\tcase 'float':\n\t\t\t\treturn 'xsd:float';\n\t\t\t\tbreak;\n\t\t}\n\t\treturn $type;\n\t}", "title": "" }, { "docid": "c6895d38a68028140572ed5accf71e00", "score": "0.5143468", "text": "public function getPaymentMethodType()\n {\n return $this->_paymentMethod;\n }", "title": "" }, { "docid": "c6895d38a68028140572ed5accf71e00", "score": "0.5143468", "text": "public function getPaymentMethodType()\n {\n return $this->_paymentMethod;\n }", "title": "" }, { "docid": "b8f49f986853f459c74e6d55583ffc31", "score": "0.51313823", "text": "public function getPaymentType() {\n $tipObracuna = $this->getValue('tipObracuna');\n if($tipObracuna === \"Akontacija\") return \"Аконтација\";\n if($tipObracuna === \"LZPred\") return \"Лична зарада предузетника\";\n if($tipObracuna === \"Konacni\") return \"Коначни обрачун\";\n return \"НИЈЕ ПРОНАЂЕН\";\n }", "title": "" }, { "docid": "5b5f68d130f609395d69a79f16a3bf32", "score": "0.5119752", "text": "public static function getTypes() {\n return array(\n 'xero_account', 'xero_bank_transaction', 'xero_contact', 'xero_customer',\n 'xero_credit_note', 'xero_employee', 'xero_expense', 'xero_invoice',\n 'xero_journal', 'xero_payment', 'xero_receipt', 'xero_user',\n );\n }", "title": "" }, { "docid": "910c150521a41c00eed4db8aaac7655c", "score": "0.51136035", "text": "public function getMethodofpaymentid()\n\t{\n\t\treturn $this->methodofpaymentid;\n\t}", "title": "" }, { "docid": "f9f863498f94fc01636558667244bbc5", "score": "0.50950104", "text": "public function getType(): InvoiceTransactionType;", "title": "" }, { "docid": "166aa551022903e74f5fa44788830042", "score": "0.5086832", "text": "public function getTypeId()\n {\n return $this->type_id;\n }", "title": "" }, { "docid": "166aa551022903e74f5fa44788830042", "score": "0.5086832", "text": "public function getTypeId()\n {\n return $this->type_id;\n }", "title": "" }, { "docid": "166aa551022903e74f5fa44788830042", "score": "0.5086832", "text": "public function getTypeId()\n {\n return $this->type_id;\n }", "title": "" }, { "docid": "166aa551022903e74f5fa44788830042", "score": "0.5086832", "text": "public function getTypeId()\n {\n return $this->type_id;\n }", "title": "" }, { "docid": "bccacb4c943a86166a7bf82f8835318c", "score": "0.508632", "text": "public function getTypeId()\n\t{\n\t\treturn $this->type_id;\n\t}", "title": "" }, { "docid": "bfcb41453fe00e7982682d798cbd6e94", "score": "0.50855243", "text": "public function get_transaction_types()\n {\n $types = DB::select('id','type','credit')\n ->from(self::TYPE_TABLE)\n ->where('publish','=',1)\n ->where('delete','=',0)\n ->execute()\n ->as_array();\n return $types;\n }", "title": "" }, { "docid": "e401c2dd0f911756e0f7c705696a9748", "score": "0.50820035", "text": "private function returnType()\n\t{\n\t\t$type = 0;\n\t\tif(isset($_GET['type'])) {\n\t\t\tif(is_numeric($_GET['type'])) {\n\t\t\t\t$type = $_GET['type'];\n\t\t\t} else {\n\t\t\t\t$type = 0;\n\t\t\t}\n\t\t} else {\n\t\t\t$type = 0;\n\t\t}\n\t\treturn $type;\n\t}", "title": "" }, { "docid": "11c20a9cb13dc1a7e3ac773cc78c82a9", "score": "0.5080749", "text": "public function getPaymentType($method)\n {\n return $this->getConfigDataForSpecificMethod($method, self::PAYMENT_ACTION);\n }", "title": "" }, { "docid": "7de4a1d0f9d13fc9edb7c915b5281611", "score": "0.5080188", "text": "public function postCreate(PaymentTypeRequest $payment_type_request) {\n\n $payment_type = new PaymentType();\n $payment_type -> description = $payment_type_request->description;\n $payment_type -> amount = $payment_type_request->amount;\n $payment_type -> is_ledger = $payment_type_request->is_ledger;\n $payment_type -> save();\n\n $success = \\Lang::get('payment_type.create_success').' : '.$payment_type->description ; \n return redirect('payment_type/create')->withSuccess( $success);\n }", "title": "" }, { "docid": "533f0ebb6511b656f00f825f6fe52aa7", "score": "0.5061881", "text": "public function testSalesOrderPaymentTypesGETManyRequestPaymentTypesGet()\n {\n }", "title": "" }, { "docid": "f3c0a794a9e4e1ce9da48fbf6fb6be59", "score": "0.5057222", "text": "public function paymentType()\n {\n return $this->belongsTo('App\\PaymentType');\n }", "title": "" }, { "docid": "6e38904531a7797fb2d6f1b58f57212f", "score": "0.5055629", "text": "public static function typeManager() {\n return \\Drupal::service('plugin.manager.payment.type');\n }", "title": "" }, { "docid": "58260cb451921898c1eb0a77223a9298", "score": "0.50478834", "text": "public function show(PaymentType $paymentType)\n {\n //\n }", "title": "" }, { "docid": "7f451e2cbd1fef0a02a70273267a24e9", "score": "0.5037715", "text": "function getIndexPropertiesByTypeName($typeName)\n\t{\n\t $indexPayment = null;\n\t \n\t if (isset($this->aPropConf['properties']) === true) {\n\t\t foreach ($this->aPropConf['properties'] as $k => $v) {\n\t\t if (isset($this->aPropConf['properties'][$k]['type']) && $this->aPropConf['properties'][$k]['type'] == $typeName) {\n\t\t $indexPayment = $k;\n\t\t break;\n\t\t }\n\t\t }\n\t }\n\t \n\t return $indexPayment;\n\t}", "title": "" }, { "docid": "c1ba784b7949d79e03c9df45a1e60f0c", "score": "0.5031059", "text": "function getInvType( $invoiceid )\n{\nglobal $db;\nif ( $db->db_connect_id )\n\t{\n\t$query = 'select InvType from invInvoice where InvoiceID = ' . $invoiceid;\n\tif ( !$result = $db->sql_query( $query ) )\n\t\t{\n\t\tLogError( 8118, $query .$dblang[ \"ErrorInSQL\" ].\"<br>\".$db->sql_error() );\n\t\texit;\n\t\t}\n\t$row = $db->sql_fetchrow( $result );\n\treturn $row[ 'InvType' ];\n\t}\n}", "title": "" }, { "docid": "c7616feeba68b2dea2da665d85fc15b7", "score": "0.50298154", "text": "public function getStateType($stateType) {\n if(Utility\\isID($stateType)) {\n return $this->getStateTypeByID($stateType);\n } else {\n return $this->getStateTypeBySlug($stateType);\n }\n }", "title": "" }, { "docid": "cad0f5c9d961c13f42bff5c3ef00db93", "score": "0.50293684", "text": "public function GetCustomerType() {\n $result = $this->con->query(\"SELECT * FROM customertype;\");\n return $result;\n }", "title": "" }, { "docid": "100a492ca2cc9a63ee590c70d0f529d1", "score": "0.50270385", "text": "public function get_notification_type_id($notification_type_name)\n\t{\n\t\t$notification_type_ids = $this->cache->get('notification_type_ids');\n\n\t\t$this->db->sql_transaction('begin');\n\n\t\tif ($notification_type_ids === false)\n\t\t{\n\t\t\t$notification_type_ids = array();\n\n\t\t\t$sql = 'SELECT notification_type_id, notification_type_name\n\t\t\t\tFROM ' . $this->notification_types_table;\n\t\t\t$result = $this->db->sql_query($sql);\n\t\t\twhile ($row = $this->db->sql_fetchrow($result))\n\t\t\t{\n\t\t\t\t$notification_type_ids[$row['notification_type_name']] = (int) $row['notification_type_id'];\n\t\t\t}\n\t\t\t$this->db->sql_freeresult($result);\n\n\t\t\t$this->cache->put('notification_type_ids', $notification_type_ids);\n\t\t}\n\n\t\tif (!isset($notification_type_ids[$notification_type_name]))\n\t\t{\n\t\t\tif (!isset($this->notification_types[$notification_type_name]) && !isset($this->notification_types['notification.type.' . $notification_type_name]))\n\t\t\t{\n\t\t\t\t$this->db->sql_transaction('rollback');\n\n\t\t\t\tthrow new \\phpbb\\notification\\exception('NOTIFICATION_TYPE_NOT_EXIST', array($notification_type_name));\n\t\t\t}\n\n\t\t\t$sql = 'INSERT INTO ' . $this->notification_types_table . ' ' . $this->db->sql_build_array('INSERT', array(\n\t\t\t\t'notification_type_name'\t\t=> $notification_type_name,\n\t\t\t\t'notification_type_enabled'\t\t=> 1,\n\t\t\t));\n\t\t\t$this->db->sql_query($sql);\n\n\t\t\t$notification_type_ids[$notification_type_name] = (int) $this->db->sql_nextid();\n\n\t\t\t$this->cache->put('notification_type_ids', $notification_type_ids);\n\t\t}\n\n\t\t$this->db->sql_transaction('commit');\n\n\t\treturn $notification_type_ids[$notification_type_name];\n\t}", "title": "" }, { "docid": "2b9a8fc60eefe5c69148ebd6bc4b1ffb", "score": "0.502563", "text": "public function getTypeId(){\n switch($this->type){\n case self::TYPE_NEW_OFFER: return '1';\n case self::TYPE_STOP_OFFER: return '2';\n case self::TYPE_CHANGE_OFFER: return '3';\n case self::TYPE_NEW_CONTENT: return '4';\n case self::TYPE_SYSTEM: return '5';\n case self::TYPE_IMPORTANT: return '6';\n }\n }", "title": "" }, { "docid": "b38d2386098467eaa72c7aa173ef927f", "score": "0.5023882", "text": "public function setPaymenttype($paymenttype) {\n $this->paymenttype = $paymenttype;\n return $this;\n }", "title": "" }, { "docid": "5335647e0731811e0cc25ff768cee9c8", "score": "0.5017179", "text": "public function getLicenseTypeByStateId(LicenseRequest $request)\n {\n //declare and initialize variables\n $location_id = $request->location_id;\n $licenses = $this->company_location->getLicenseTypes($location_id);\n\n $data = array();\n if(isset($licenses[0])) {\n foreach($licenses as $license) {\n $data[] = array('id' => $license->id, 'name' => $license->license_name);\n }\n }\n return response()->json(array('data' => $data), 200);\n }", "title": "" }, { "docid": "458a9a799bee0c792a8286a0cca302aa", "score": "0.5016151", "text": "public function show(PaymentType $paymentType)\n {\n //\n }", "title": "" }, { "docid": "92734c94a27e3e72bfd9f06352362f1f", "score": "0.501557", "text": "public function getName()\n {\n return 'thanpa_paycenter_bundle_payment_response_type';\n }", "title": "" }, { "docid": "3b0a99722f9cde8a0b22111332178067", "score": "0.5009759", "text": "public function get_type() {\n\t\t/**\n\t\t * Filters the discount type.\n\t\t *\n\t\t * @since 2.7\n\t\t *\n\t\t * @param string $code Discount type (percent or flat amount).\n\t\t * @param int $ID Discount ID.\n\t\t */\n\t\treturn apply_filters( 'edd_get_discount_type', $this->type, $this->ID );\n\t}", "title": "" }, { "docid": "bc199feaec6700605025feeb5dee4d8c", "score": "0.49990955", "text": "public function findByOrderAndType($orderId, $transactionTypeId, $paymentGatewayId) {\n $select = $this->select ()->where ( 'order_id = ?', $orderId )->where ( 'order_transaction_type_id = ?', $transactionTypeId )->where ( 'payment_gateway_id = ?', $paymentGatewayId );\n \n return $this->fetchRow ( $select );\n }", "title": "" }, { "docid": "eead1ef6eb66215a02a69a08135a9b64", "score": "0.4994909", "text": "function getIdType () {\r\n\t\treturn $this->_id_type;\t\r\n\t}", "title": "" }, { "docid": "c53f410c24d15fd5ad578685cf3089a9", "score": "0.49874207", "text": "public function paymentMethodId()\r\n {\r\n $paymentData = $this->paymentData();\r\n \r\n if (!empty($paymentData['payment_method'])) \r\n {\r\n return $paymentData['payment_method'];\r\n }\r\n \r\n return null;\r\n }", "title": "" }, { "docid": "6d2c4682676758c7c6a1579b67ea10b4", "score": "0.4958805", "text": "public function get_Type_ID() {\n return $this->type_id;\n }", "title": "" }, { "docid": "5da8cbf093c5966dbcb1a66bd89ad749", "score": "0.49569592", "text": "public function getAdditionalPayerIdType()\n {\n return $this->additional_payer_id_type;\n }", "title": "" }, { "docid": "af52b7b694ec50ebd6bc933cee5fd05d", "score": "0.49555036", "text": "public function get_payment_id()\n {\n return $this->paymentId;\n }", "title": "" }, { "docid": "431e582399481532af4b93b27c78ec69", "score": "0.49530247", "text": "public function getIdType()\n {\n\n return $this->id_type;\n }", "title": "" }, { "docid": "b04f7d94200fe8676514919ef7252cef", "score": "0.49511018", "text": "public function getType()\n {\n $types = UserContestTypeRequirement::getTypes();\n\n return $types[$this->type_id];\n }", "title": "" }, { "docid": "19764734abcf657393906891cc031969", "score": "0.4947984", "text": "public function getTypeId(): int\n {\n return $this->typeId;\n }", "title": "" }, { "docid": "19764734abcf657393906891cc031969", "score": "0.4947984", "text": "public function getTypeId(): int\n {\n return $this->typeId;\n }", "title": "" }, { "docid": "593997ca1eb768f1ec937170dcf2c31e", "score": "0.49473307", "text": "public function getSupportedPaymentTypes()\n {\n return [\n PaymentMethod::SOFORT\n ];\n }", "title": "" }, { "docid": "3335a1aafaaf75b045c0437d3868594c", "score": "0.49461165", "text": "public function getWalletTypes(){\n try{\n //return all wallet types\n $types = WalletType::paginate(10);\n\n $response['response']['status'] = true;\n $response['response']['responseCode'] = 200;\n $response['response']['responseDescription'] = \"Wallet Types\";\n $response['wallet_types'] = $types;\n\n return $this->respond($response);\n \n }catch(\\Exception $e){\n return $this->respondWithError($e->getMessage());\n }catch(\\Error $e){\n return $this->respondWithError($e->getMessage());\n }\n }", "title": "" }, { "docid": "0b757dfeaf7d44363f6bec1d1a97a324", "score": "0.49431458", "text": "private static function _getCheckoutTransactionTypes()\n {\n $processedList = array();\n $aliasMap = array();\n\n $selectedTypes = EMerchantPayCheckoutSettings::getTransactionTypes();\n\n $pproSuffix = PPRO_TRANSACTION_SUFFIX;\n $methods = Methods::getMethods();\n\n foreach ($methods as $method) {\n $aliasMap[$method . $pproSuffix] = Types::PPRO;\n }\n\n $aliasMap = array_merge(\n $aliasMap,\n [\n GOOGLE_PAY_TRANSACTION_PREFIX . GOOGLE_PAY_PAYMENT_TYPE_AUTHORIZE =>\n Types::GOOGLE_PAY,\n GOOGLE_PAY_TRANSACTION_PREFIX . GOOGLE_PAY_PAYMENT_TYPE_SALE =>\n Types::GOOGLE_PAY,\n PAYPAL_TRANSACTION_PREFIX . PAYPAL_PAYMENT_TYPE_AUTHORIZE =>\n Types::PAY_PAL,\n PAYPAL_TRANSACTION_PREFIX . PAYPAL_PAYMENT_TYPE_SALE =>\n Types::PAY_PAL,\n PAYPAL_TRANSACTION_PREFIX . PAYPAL_PAYMENT_TYPE_EXPRESS =>\n Types::PAY_PAL,\n APPLE_PAY_TRANSACTION_PREFIX . APPLE_PAY_PAYMENT_TYPE_AUTHORIZE =>\n Types::APPLE_PAY,\n APPLE_PAY_TRANSACTION_PREFIX . APPLE_PAY_PAYMENT_TYPE_SALE =>\n Types::APPLE_PAY,\n ]\n );\n\n foreach ($selectedTypes as $selectedType) {\n if (array_key_exists($selectedType, $aliasMap)) {\n $transactionType = $aliasMap[$selectedType];\n\n $processedList[$transactionType]['name'] = $transactionType;\n\n $key = self::_getCustomParameterKey($transactionType);\n\n $processedList[$transactionType]['parameters'][] = array(\n $key => str_replace(\n [\n $pproSuffix,\n GOOGLE_PAY_TRANSACTION_PREFIX,\n PAYPAL_TRANSACTION_PREFIX,\n APPLE_PAY_TRANSACTION_PREFIX\n ],\n '',\n $selectedType\n )\n );\n } else {\n $processedList[] = $selectedType;\n }\n }\n\n return $processedList;\n }", "title": "" }, { "docid": "cad1b4ee57cca4d4145572c550cdf4e2", "score": "0.49427503", "text": "public function getPaymentMode()\n {\n $app = JFactory::getApplication('site');\n $paymentId = $app->input->get('payment_id', 0, 'uint');\n\n $db = $this->getDbo();\n $query = $db->getQuery(true);\n // \n $query->select('id, name, plugin_element, information')\n\t ->from('#__ketshop_payment_mode')\n ->where('id='.(int)$paymentId);\n $db->setQuery($query);\n\n return $db->loadObject();\n }", "title": "" }, { "docid": "6807932f9d65493d97bb91dd4d8b125d", "score": "0.49377322", "text": "public function setPaymentType(string $paymentType): self\n {\n $this->initialized['paymentType'] = true;\n $this->paymentType = $paymentType;\n\n return $this;\n }", "title": "" }, { "docid": "4c9b4235f127609e60ae29061846cc4e", "score": "0.49266553", "text": "public function testSalesOrderDocumentTypeGETRequestDocumentTypesDocumentTypeIDGet()\n {\n }", "title": "" }, { "docid": "2c2f61c42ef6dff7816db515880df9b3", "score": "0.49266064", "text": "public function getTypeCode(): int\n {\n return self::TYPE_CODE;\n }", "title": "" }, { "docid": "cc4ab02e82ddec0d026c9926c7785f3e", "score": "0.49233177", "text": "public function getPaymentId()\r\n {\r\n return ($this->getCart() && $this->getCart()->getPaymentMethod())\r\n ? $this->getCart()->getPaymentMethod()->getMethodId()\r\n : 0;\r\n }", "title": "" }, { "docid": "890b45596c44e9ffe9bf0b44c7d0ee15", "score": "0.49209437", "text": "public function getStateTypeByID($stateTypeID) {\n // Do a select query to see if we get a returned row\n $params = [\":stateTypeID\" => $stateTypeID];\n $sql = \"SELECT * from \".$this->tables['treeStateType'].\" WHERE\n stateTypeID = :stateTypeID\";\n // return the found state type row\n return $this->fetchOne($sql, $params);\n }", "title": "" }, { "docid": "d894416f0e466c9804c5d84ac6c8a6d8", "score": "0.49163002", "text": "public static function getTitleTypePaymentMethod($type)\n {\n if (!is_null($type)) {\n switch ($type) {\n case 1:\n return 'Cartão de crédito';\n break;\n case 2:\n return 'Boleto';\n break;\n case 3:\n return 'Débito online(TEF)';\n break;\n case 4:\n return 'Saldo PagSeguro';\n break;\n case 7:\n return 'Depósito em conta';\n break;\n default:\n return $type;\n break;\n }\n }\n return false;\n }", "title": "" }, { "docid": "85271d338b6062fed03f59a46fd4a09d", "score": "0.49018788", "text": "public function testFetchTokenByPaymentId()\n {\n $data = $this->api->payment->fetch($this->paymentId);\n\n $this->assertTrue(is_array($data->toArray()));\n \n $this->assertTrue(in_array('payment',$data->toArray()));\n }", "title": "" }, { "docid": "5d3944d187e7e087c602816f6fa5a52d", "score": "0.48980248", "text": "public function getType()\n {\n return $this->getData(self::ID_TYPE);\n }", "title": "" }, { "docid": "c8d95cc261047d771283bb6969567a36", "score": "0.48945123", "text": "function GetTypeID()\n\t{\n\t\treturn $this->m_typeID;\n\t}", "title": "" }, { "docid": "3e328fc3272ed3d31d9d79443d1f624e", "score": "0.4885712", "text": "public function test__fcGetPaymentByPaymentType_Positive()\n {\n $oTestObject = oxNew('fcPayOnePaymentView');\n\n $oMockUser = $this->getMock('oxUser', array('getId'));\n $oMockUser->expects($this->any())->method('getId')->will($this->returnValue('someId'));\n\n $sMockPaymentType = 'fcpopayadvance';\n\n $oMockDatabase = $this->getMock('oxDb', array('GetOne'));\n $oMockDatabase->expects($this->any())->method('GetOne')->will($this->returnValue('someValue'));\n\n $oMockUserPayment = $this->getMock('oxuserpayment', array('load'));\n $oMockUserPayment->expects($this->any())->method('load')->will($this->returnValue(true));\n\n $oMockPayment = $this->getMock('oxPayment', array('fcpoGetUserPaymentId'));\n $oMockPayment->expects($this->any())->method('fcpoGetUserPaymentId')->will($this->returnValue('someUserPaymentId'));\n\n $oHelper = $this->getMockBuilder('fcpohelper')->disableOriginalConstructor()->getMock();\n $oHelper->expects($this->any())->method('getFactoryObject')->will($this->onConsecutiveCalls($oMockPayment, $oMockUserPayment));\n\n $this->invokeSetAttribute($oTestObject, '_oFcpoHelper', $oHelper);\n\n $oResponse = $oExpect = $this->invokeMethod($oTestObject, '_fcGetPaymentByPaymentType', array($oMockUser, $sMockPaymentType));\n\n $this->assertEquals($oExpect, $oResponse);\n }", "title": "" }, { "docid": "6bc5cdbc7f46c72eb74ac1fd38025c98", "score": "0.4885352", "text": "public function getDuePaidSaleNo($type, $pharmacy_id)\n {\n if ($type == 1) {\n $table = \"pharmacy_payment_transaction\";\n $where = array(\n 'date(create_time)' => date('Y-m-d')\n );\n $ph = \"PD\";\n $len = 8;\n } else {\n $table = \"pharmacy_sub_payment_transaction\";\n $where = array(\n 'date(create_time)' => date('Y-m-d'),\n 'pharmacy_id' => $pharmacy_id\n );\n //$user->pharmacy_id\n $ph = \"PR\" . $pharmacy_id;\n $count = count($pharmacy_id);\n $len = 8 + $count;\n }\n $row = $this->CI->db\n ->select('due_mr_no', 'id')\n ->where($where)\n ->where('type', 2)\n ->order_by('id', 'desc')\n ->get($table)\n ->row();\n\n //print_r($where);exit;\n if (!$row) {\n $due_mr_no = $ph . date('ymd') . \"1\";\n } else {\n $inc = substr($row->due_mr_no, $len);\n $inc++;\n $due_mr_no = $ph . date('ymd') . $inc;\n }\n return $due_mr_no;\n }", "title": "" }, { "docid": "27d3bfa643b4b83b5d0edbb270ff6a32", "score": "0.48688412", "text": "public function get_type();", "title": "" }, { "docid": "106e86b4efb3e0cfd6bd392a770f2dc6", "score": "0.4865742", "text": "public function getPayment( $paymentId );", "title": "" }, { "docid": "1b4212e662974fbb7f46e0991921505d", "score": "0.48608944", "text": "public function get_type_id() {\n return ! is_null( $this->type ) ? $this->type->term_id : 0;\n }", "title": "" }, { "docid": "f0d075d36f6ee636bf6543440c0fbd38", "score": "0.48467892", "text": "public function getInternalPaymentId();", "title": "" }, { "docid": "ca0817b3f0247504c67301c6560fdd45", "score": "0.48455676", "text": "private function removePaymentTypes()\n {\n $sql = \"DELETE FROM s_core_paymentmeans WHERE name = ?\";\n foreach (array_keys($this->payment_types) as $payment_type) {\n $this->Application()->Db()->query($sql, array($payment_type));\n }\n }", "title": "" }, { "docid": "56e834e922d1da0ed83e8ae0c80de6bf", "score": "0.4839917", "text": "function get_sale_type($id)\n {\n $sale_types = sh_helper::_get_sale_type_array();\n return $sale_types[$id];\n }", "title": "" }, { "docid": "b8258aeeffb4181cddd25b68780febca", "score": "0.48353004", "text": "public function getPaymentId()\n {\n return ($this->getCart() && $this->getCart()->getPaymentMethod())\n ? $this->getCart()->getPaymentMethod()->getMethodId()\n : 0;\n }", "title": "" }, { "docid": "d2a83b78463bf994b939afa7a2c675ae", "score": "0.48300728", "text": "public function getEmployeesId($key, $type) {\r\n\t\tif ($type == 'single') {\r\n\t\t\treturn $this->employeesId;\r\n\t\t} else if ($type == 'array') {\r\n\t\t\treturn $this->employeesId [$key];\r\n\t\t} else {\r\n\t\t\techo json_encode(array(\"success\" => false, \"message\" => \"Cannot Identifiy Type String Or Array:getPaymentId ?\"));\r\n\t\t\texit();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b8366f9d1310455d53f43d28f6ffd85a", "score": "0.48284596", "text": "public function getMopId($paymentCode)\n {\n if (isset($this->mops[$paymentCode])) {\n return $this->mops[$paymentCode];\n }\n $paymentMethods = $this->paymentMethodRepo->allForPlugin(PluginConstants::NAME);\n if (!$paymentMethods) {\n return 'no_paymentmethod_found';\n }\n /** @var PaymentMethod $paymentMethod */\n foreach ($paymentMethods as $paymentMethod) {\n if ($paymentMethod->paymentKey == $paymentCode) {\n return $paymentMethod->id;\n }\n }\n\n return 'no_paymentmethod_found';\n }", "title": "" }, { "docid": "0253afd2a7e9c98390db3fbea2b3cb21", "score": "0.4827235", "text": "public function getProductType();", "title": "" }, { "docid": "cdcbec1927c5e96e219570c314d7a0fb", "score": "0.48266387", "text": "public function getPaymentMethod();", "title": "" } ]
431d58bab7b094f761b46a5b2a838b9d
Initialize the widget, called by the constructor and free from its parameters.
[ { "docid": "d8710cd2620c3289ac3069ff6752f7de", "score": "0.0", "text": "public function init()\n {\n }", "title": "" } ]
[ { "docid": "98c84c777c45fd699a9a2ad2442e0901", "score": "0.7817349", "text": "public function init()\n {\n // Initialize widget.\n }", "title": "" }, { "docid": "651ac0b2afaeb860bd1f4c0acd379601", "score": "0.72884893", "text": "public function init(){\n /*you can set initial default values and other stuff here.\n * it's also a good place to register any CSS or Javascript your\n * widget may need. */ \n }", "title": "" }, { "docid": "09ee6fbc799e4f0dc6251ccc9629f385", "score": "0.69239545", "text": "private function initializeWidgetContext() {}", "title": "" }, { "docid": "6430f7452b45fdab550cc1a350cae13b", "score": "0.6768751", "text": "function init() {\n\t\t\n\t\tparent::init();\n\t}", "title": "" }, { "docid": "d167a582efdc49d8ea49128044019c87", "score": "0.67138255", "text": "function __construct() {\n\n\t\t// Widget Handle\n\t\t$this->ID = 'example-widget';\n\n\t\t// Widget Config\n\t\t$this->options = array(\n\t\t\t'name' => 'Example Widget', // Widget name\n\t\t\t'description' => 'Widget description.', // Widget description\n\t\t\t'classname' => 'projects-cycle-widget' // CSS class\n\t\t);\n\n\t\t// Default values for widget fields\n\t\t$this->defaults = array(\n\t\t\t'widget_title' => 'My Example Widget',\n\t\t\t'sample_field' => 'Some value'\n\t\t);\n\n\t\tparent::__construct();\n\n\t}", "title": "" }, { "docid": "e931eb4d3a1df4515c9da3c13c1b6b9e", "score": "0.6700083", "text": "function init()\r\n\t\t{\r\n\t\t\t// Should always call parent's init\r\n\t\t\tparent::init();\r\n\t\t}", "title": "" }, { "docid": "5f40eacbe11a646bd07413144bdae014", "score": "0.66772914", "text": "public function __construct() {\n\t\t// widget actual processes\n\t\t\n\t\tparent::__construct(\n\t\t\t'xtreme_example_widget', // Base ID\n\t\t\t__( 'Xtreme Example Widget Title', XF_TEXTDOMAIN ), // Name\n\t\t\tarray( 'description' => __( 'A Foo Widget', XF_TEXTDOMAIN ), ) // Args\n\t\t);\n\t}", "title": "" }, { "docid": "1e964840a0050d6dbc73dfb299178a1b", "score": "0.6675952", "text": "public function init() {\n //Register widget settings...\n self::update_dashboard_widget_options(\n self::wid, //The widget id\n array( //Associative array of options & default values\n\t\t\t\t'remaining_days' => 0,\n\t\t\t\t'reset' => 0,\n\t\t\t\t'start_conversion' => 0,\n\t\t\t\t'start_datetime' => '',\n\t\t\t\t'end_datetime' => '',\n\t\t\t\t'starting_year' => '',\n\t\t\t\t'starting_month' => '',\n\t\t\t\t'starting_day' => '',\n\t\t\t\t'starting_hour' => '',\n\t\t\t\t'starting_minute' => '',\n\t\t\t\t'starting_meridiem' => '',\n\t\t\t\t'starting_date' => '',\n\t\t\t\t'starting_time' => '',\n\t\t\t\t'ending_year' => '',\n\t\t\t\t'ending_month' => '',\n\t\t\t\t'ending_day' => '',\n\t\t\t\t'ending_hour' => '',\n\t\t\t\t'ending_minute' => '',\n\t\t\t\t'ending_meridiem' => '',\n\t\t\t\t'ending_date' => '',\n\t\t\t\t'ending_time' => '',\n\t\t\t\t'set_by_user' => '',\n\t\t\t),\n true //Add only (will not update existing options)\n );\n\n // Register the widget...\n wp_add_dashboard_widget(\n self::wid, //A unique slug/ID\n __( 'Red Flag Parking', 'Fire' ),//Visible name for the widget\n array('Red_Flag_Parking_Dashboard_Widget','widget'), //Callback for the main widget content\n array('Red_Flag_Parking_Dashboard_Widget','config') //Optional callback for widget configuration content\n );\t\n\n }", "title": "" }, { "docid": "3ec0109543a1dc92c20147800b9a6001", "score": "0.66047066", "text": "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->setAdapter(new TJuiControlAdapter($this));\n\t}", "title": "" }, { "docid": "d655d5b4265c5f5de598b6877ada440d", "score": "0.6598728", "text": "public function __construct() {\n // 表示部分で使うオブジェクトを作成\n $this->initDisplayObj();\n }", "title": "" }, { "docid": "bd08b1c6b3e9a21c89b598fc57e35d21", "score": "0.65728194", "text": "function _constructor() {\n\t\t\tglobal $my_frontend,$include_path;\n\n\t\t\t$this->name = $my_frontend;\n\t\t\t$this->width = \"100%\";\n\t\t\t$this->align = \"left\";\n\t\t\t$this->ajax_list = array();\n\t\t\t$this->standardFooter = true;\n\t\t}", "title": "" }, { "docid": "a4859dbd70a4dba48150b36304806069", "score": "0.65558165", "text": "public function __construct() {\n\n\t\t// Register widget scripts\n\t\tadd_action( 'elementor/frontend/before_enqueue_scripts', [ $this, 'widget_scripts' ] );\n\n\n\t\tadd_action( 'elementor/frontend/after_register_styles', [ $this, 'widget_styles' ] );\n\n\t\t// Register widgets\n\t\tadd_action( 'elementor/widgets/widgets_registered', [ $this, 'register_widgets' ] );\n\t}", "title": "" }, { "docid": "7737d01fef09674707334913164c8ac0", "score": "0.6555393", "text": "public function __construct() {\n\n\t\t// Load plugin text domain\n\t\tadd_action( 'init', array( $this, 'load_plugin_textdomain' ) );\n\n\t\t// Activate plugin when new blog is added\n\t\tadd_action( 'wpmu_new_blog', array( $this, 'activate_new_site' ) );\n\n\t\tadd_shortcode('grams', array( &$this, 'shortcode') );\n\t\tadd_action('wp_enqueue_scripts', array( &$this, 'enqueue_scripts') );\n\n\t\t// widget\n\t\t$this->widget = new Simple_Grams_Widget();\n\t\tadd_action( 'widgets_init', array( &$this, 'simple_grams' ) );\n\n\t}", "title": "" }, { "docid": "a3b005ec4b1fffcb5d4a5058daa4d818", "score": "0.65525335", "text": "protected function init()\n {\n $this->autoRefresh = $this->createAutoRefreshSetting();\n\n // User setting --> textbox converted to int defining a validator and filter\n $this->refreshInterval = $this->createRefreshIntervalSetting();\n\n // User setting --> radio\n $this->color = $this->createColorSetting();\n }", "title": "" }, { "docid": "9ce918a46a2227e8cc5fce5a18130e67", "score": "0.6543044", "text": "public function init()\n {\n $this->fillFromConfig([\n 'columns',\n 'model',\n 'recordUrl',\n 'recordOnClick',\n 'noRecordsMessage',\n 'showPageNumbers',\n 'recordsPerPage',\n 'showSorting',\n 'defaultSort',\n 'showCheckboxes',\n 'showSetup',\n 'showTree',\n 'treeExpanded',\n 'showPagination',\n 'customViewPath',\n ]);\n\n /*\n * Configure the list widget\n */\n $this->recordsPerPage = $this->getSession('per_page', $this->recordsPerPage);\n\n if ($this->showPagination == 'auto') {\n $this->showPagination = $this->recordsPerPage && $this->recordsPerPage > 0;\n }\n\n if ($this->customViewPath) {\n $this->addViewPath($this->customViewPath);\n }\n\n $this->validateModel();\n $this->validateTree();\n }", "title": "" }, { "docid": "45e96075ce1586775c88d7592cd9e273", "score": "0.65388024", "text": "public function init()\n {\n\n $this->minWidth = 300;\n $this->minHeight = 200;\n $this->width = 950;\n $this->height = 650;\n $this->resizable = true;\n $this->movable = true;\n $this->closable = true;\n\n $this->models = new TArray();\n\n }", "title": "" }, { "docid": "3f41828c91b125e7c9c3f799bab79293", "score": "0.65058863", "text": "public function __construct(){\n // 表示部分で使うオブジェクトを作成\n $this->initDisplayObj();\n }", "title": "" }, { "docid": "1096089761b3b3322f480f74d7af107c", "score": "0.6503548", "text": "public function init() {\r\n parent::init();\r\n }", "title": "" }, { "docid": "833b47188a8145e885e0ef0cf7deddb0", "score": "0.6491892", "text": "public function init() {\n parent::init();\n }", "title": "" }, { "docid": "833b47188a8145e885e0ef0cf7deddb0", "score": "0.6491892", "text": "public function init() {\n parent::init();\n }", "title": "" }, { "docid": "833b47188a8145e885e0ef0cf7deddb0", "score": "0.6491892", "text": "public function init() {\n parent::init();\n }", "title": "" }, { "docid": "3e80b66c6737d601a924f3580c249a72", "score": "0.64918715", "text": "function initialize() {\n\t\t$this->number = 1;\n\t\t$this->post_types = array();\n\t\t$this->widget_form_fields = array();\n\n\t\tadd_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );\n\t\tadd_action( 'save_post', array( $this, 'save_widget_post_meta' ), 10, 3 );\n\t}", "title": "" }, { "docid": "c5ad70288df5ad5861eb8ee8cde58ceb", "score": "0.6472628", "text": "public function __construct() {\n\n\t\t// Register widget scripts\n\t\tadd_action( 'elementor/frontend/after_register_scripts', [ $this, 'widget_scripts' ] );\n\n\t\t// Register widgets\n\t\tadd_action( 'elementor/widgets/widgets_registered', [ $this, 'register_widgets' ] );\n\t}", "title": "" }, { "docid": "a3db1ad7dfacb42373b2c4516dbd75de", "score": "0.64575106", "text": "public static function init() {\n //Register widget settings...\n self::update_dashboard_widget_options(\n self::wid, //The widget id\n array( //Associative array of options & default values\n 'username' => '',\n\t\t\t\t'apikey' => '',\n\t\t\t\t'project_id' => '',\n ),\n true //Add only (will not update existing options)\n );\n\n //Register the widget...\n wp_add_dashboard_widget(\n self::wid, //A unique slug/ID\n __( 'Rankalyst Statistik', 'affiliatetheme-backend' ),//Visible name for the widget\n array('AT_Rankalyst_Widget','widget'), //Callback for the main widget content\n array('AT_Rankalyst_Widget','config') //Optional callback for widget configuration content\n );\n }", "title": "" }, { "docid": "a392e3c19efaa7a5bf888a8725b9fe7f", "score": "0.64571303", "text": "public function init()\n {\n parent::init();\n\n $this->size = $this->finalWidth;\n }", "title": "" }, { "docid": "c700e57fc9fc7f31b1b1d817978fbe3d", "score": "0.6453656", "text": "public function init()\r\n {\r\n parent::init();\r\n }", "title": "" }, { "docid": "674315aad92e29e32efd9de2d2f4a11d", "score": "0.64461434", "text": "public function init()\n {\n parent::init();\n }", "title": "" }, { "docid": "674315aad92e29e32efd9de2d2f4a11d", "score": "0.64461434", "text": "public function init()\n {\n parent::init();\n }", "title": "" }, { "docid": "674315aad92e29e32efd9de2d2f4a11d", "score": "0.64461434", "text": "public function init()\n {\n parent::init();\n }", "title": "" }, { "docid": "674315aad92e29e32efd9de2d2f4a11d", "score": "0.64461434", "text": "public function init()\n {\n parent::init();\n }", "title": "" }, { "docid": "674315aad92e29e32efd9de2d2f4a11d", "score": "0.64461434", "text": "public function init()\n {\n parent::init();\n }", "title": "" }, { "docid": "674315aad92e29e32efd9de2d2f4a11d", "score": "0.64461434", "text": "public function init()\n {\n parent::init();\n }", "title": "" }, { "docid": "674315aad92e29e32efd9de2d2f4a11d", "score": "0.64461434", "text": "public function init()\n {\n parent::init();\n }", "title": "" }, { "docid": "fb4fadb203820d696309b3989e055656", "score": "0.6433227", "text": "protected function __construct()\n\t{\n\t\t$this->_init();\n\t}", "title": "" }, { "docid": "faa60ee5f41b60f0545c339d7ed72582", "score": "0.6429334", "text": "public function init()\n\t{\n\t\tparent::init();\n\t}", "title": "" }, { "docid": "faa60ee5f41b60f0545c339d7ed72582", "score": "0.6429334", "text": "public function init()\n\t{\n\t\tparent::init();\n\t}", "title": "" }, { "docid": "02081cae1d10637b48ee98bd55e7ccb6", "score": "0.6424467", "text": "public function init()\n {\n parent::init();\n \n $this->_autoId = CMyHtml::genID();\n $this->_idPrefix = self::$autoIdPrefix.'_'.CMyHtml::getIDPrefix();\n \n if (empty($this->logoUrl)) {\n $urlRoot = \\common\\helpers\\Utils::getRootUrl();\n $this->logoUrl = \"{$urlRoot}assets/images/logo/yikazc_black.png\";\n }\n \n if (!isset($this->titleOptions) || empty($this->titleOptions)) {\n $this->titleOptions = ['style'=>\"font-size:14px\"];\n }\n if (!isset($this->subTitleOptions) || empty($this->subTitleOptions)) {\n $this->subTitleOptions = [];\n }\n }", "title": "" }, { "docid": "4c892271c6b139f54f2ed95f0dbdfaac", "score": "0.64134514", "text": "function initialize () {\n $this->set_openingtag ( \"<LABEL>\" );\n\t$this->set_closingtag ( \"</LABEL><INPUT TYPE=\\\"text\\\"[attributes]>\" );\n\t$this->set_type (\"text\");\n }", "title": "" }, { "docid": "6558a889694bfb53b5a638fee23e222c", "score": "0.64030707", "text": "function __construct() \n {\n\t\t/* Widget settings. */\n\t\t$widget_ops = array( 'classname' => 'newsletter-signup', 'description' => 'EK newsletter subscription box.' );\n\n\t\t/* Widget control settings. */\n\t\t$control_ops = array('newsletter-signup');\n\n\t\t/* Create the widget. */\n\t\tparent::WP_Widget( 'newsletter-signup', 'EK Newsletter Signup', $widget_ops, $control_ops );\n }", "title": "" }, { "docid": "5b08a1d0aa2eb764f19446ab2571f25c", "score": "0.6395093", "text": "public static function init() {\n //Register widget settings...\n self::update_dashboard_widget_options(\n self::wid, //The widget id\n array( //Associative array of options & default values\n 'starting_date' => date(\"Y-m-d\"), //Defaults to today\n 'ending_date' => date(\"Y-m-d\")\n ),\n true //Add only (will not update existing options)\n );\n\n //Register the widget...\n wp_add_dashboard_widget(\n self::wid, //A unique slug/ID\n __( 'PASS Statistics', CARE_TEXTDOMAIN ), //Visible name for the widget\n array('Statistics_Dashboard_Widget','widget'), //Callback for the main widget content\n array('Statistics_Dashboard_Widget','config') //Optional callback for widget configuration content\n );\n }", "title": "" }, { "docid": "7c8e27d524211e8d8b1d4619271ffb36", "score": "0.6375347", "text": "protected function __construct()\n {\n parent::__construct();\n $this->initCommands = array();\n $this->additionalCode = array();\n $this->plugins = array();\n\n $this->fns['name'] = $this->fns['prototype'] = $this->fns['body'] = array();\n\n $this->fTheme = fTheme::getInstance();\n $this->fTheme->onBuild('Singleton', 'fjQuery', 'build', 99);\n }", "title": "" }, { "docid": "a2d8deba08a6b86b019bd8f241b8b8d1", "score": "0.637491", "text": "public function init() {\n\t\tparent::init();\n\t}", "title": "" }, { "docid": "f3a08c054a87689235a1b8beef715f2f", "score": "0.6358416", "text": "public function init()\n {\n extract($this->data);\n\n // Make data accessible\n $this->compParams = [\n 'label' => $label,\n 'color' => $color,\n 'size' => $size\n ];\n\n $this->data['isSvg'] = $this->iconIsSvg($icon);\n\n if ($this->data['isSvg']) {\n $this->data['classList'][] = $this->getBaseClass() . \"--svg\";\n } else {\n $this->data['classList'] = array_merge($this->data['classList'] ?? [], [\n $this->createIconModifier($icon),\n $this->getBaseClass() . \"--material\",\n $this->getBaseClass() . \"--material-\" . $icon,\n \"material-icons\"\n ]);\n }\n\n if (!empty($customColor)) {\n $this->data['attributeList']['style'] = 'color:' . $customColor . ';';\n } else {\n $this->setColor();\n }\n $this->appendSpace();\n $this->setSize();\n\n //Identify as an image\n $this->data['attributeList']['role'] = \"img\";\n $this->data['attributeList']['aria-label'] = $this->getAltText($icon);\n $this->data['attributeList']['alt'] = $this->getAltText($icon);\n }", "title": "" }, { "docid": "d25bc4d8cf45b6f43288cba00d03b205", "score": "0.6357954", "text": "protected function __construct()\n\t\t{\n\t\t\t$this->init();\n\t\t}", "title": "" }, { "docid": "d25bc4d8cf45b6f43288cba00d03b205", "score": "0.6357954", "text": "protected function __construct()\n\t\t{\n\t\t\t$this->init();\n\t\t}", "title": "" }, { "docid": "79ab39ae1136adec02eef0dfb65d2b33", "score": "0.63538593", "text": "public function init()\n {\n // set class to identify as p4cms-ui component\n $this->setAttrib('class', 'p4cms-ui')\n ->setAttrib('dojoType', 'p4cms.ui.grid.Form');\n\n // turn off CSRF protection - its not useful here (form data are\n // used for filtering the data grid and may be exposed in the URL)\n $this->setCsrfProtection(false);\n\n // call parent to publish the form.\n parent::init();\n }", "title": "" }, { "docid": "06c5e61312453d02562c6b883f980036", "score": "0.6334292", "text": "public function __construct() {\n\t\t$option = array(\n\t\t\t'classname' => 'RPG_Twitter',\n\t\t\t'description' => 'RPG - Twitter Widget'\n\t\t);\n\n\t\t$this->WP_Widget('RPG_Twitter', 'RPG - Twitter', $option);\n\n\t}", "title": "" }, { "docid": "f67981a38554247eba96c718b8ae8309", "score": "0.6331002", "text": "function init()\n {\n $this->defineAttribute('label', true, '', COMPONENT_TYPE_STRING);\n $this->defineAttribute('routeUrl', false, '', COMPONENT_TYPE_STRING);\n $this->defineAttribute('add', false, 'Nuova scheda', COMPONENT_TYPE_STRING);\n $this->defineAttribute('cssClass', false, '', COMPONENT_TYPE_STRING);\n $this->defineAttribute('buttonId', false, '', COMPONENT_TYPE_STRING);\n $this->defineAttribute('noLink', false, false, COMPONENT_TYPE_STRING);\n $this->defineAttribute('iconClass', false, 'fa-plus', COMPONENT_TYPE_STRING);\n\n parent::init();\n }", "title": "" }, { "docid": "a193e05e70c17264c82cb0f82fbf96c2", "score": "0.63214964", "text": "public function initialize() {\n // default values\n $this->setText('__notext__');\n $this->setTextFont(array(\n 'family' => 'monospace',\n 'style' => 0,\n 'name' => 'Courier'\n ));\n $this->setHeight(0.8);\n $this->setPosition(array(0, 0));\n $this->setTextColor('#000000');\n\n // default flags\n $this->setAlignment(0);\n }", "title": "" }, { "docid": "23f215b1b18c3e481966a2017166b79c", "score": "0.6313685", "text": "public function init()\r\n {\r\n parent::init();\r\n $this->visible = true;\r\n $this->descriptionashint = true;\r\n $this->active = false;\r\n }", "title": "" }, { "docid": "98268a9cd069ddbd7b5f5434cc670d9f", "score": "0.63106894", "text": "public function init() {\n $this->_renderLayout = 0;\n }", "title": "" }, { "docid": "67856c8ee7a031ddab328f1216f5044a", "score": "0.6310605", "text": "protected function _init()\n\t{\n\t\tparent::_init();\n\t}", "title": "" }, { "docid": "0c942960d7bec8031ad7b5644e7e7c17", "score": "0.6309037", "text": "public function init()\n {\n parent::init();\n $this->_msgCat = 'creditcard';\n $this->initI18N(__DIR__);\n\n $this->options['type'] = $this->type;\n $this->options['autocomplete'] = $this->autocomplete;\n $this->options['placeholder'] = ($this->placeholder === null)\n ? Yii::t('creditcard', 'CV code')\n : $this->placeholder;\n\n $this->registerAssets();\n echo Html::tag('div', $this->renderInput(), $this->containerOptions);\n }", "title": "" }, { "docid": "77603deaaac7fa0fc5419e18f275383f", "score": "0.63076586", "text": "public static function a_widget_init() {\n\t\t\treturn register_widget(__CLASS__);\n\t\t}", "title": "" }, { "docid": "554f3329a1045271b5ff688f102201a8", "score": "0.63057196", "text": "final private function __construct()\n {\n \t$this->init();\n }", "title": "" }, { "docid": "2510a19796a435915341e66a30089010", "score": "0.63005865", "text": "function __construct() {\n\t\t\tadd_action( 'admin_init', array( &$this, 'register_sidebar' ) ); \n\t\t\tadd_shortcode( 'umw_widget', array( &$this, 'do_widget' ) );\n\t\t\t\n\t\t\tif ( ! class_exists( 'WP_Widget' ) )\n\t\t\t\trequire_once( ABSPATH . WPINC . '/widgets.php' );\n\t\t\t\n\t\t\t// init process for MCS button control\n\t\t\tadd_action( 'admin_init', array( $this, 'add_buttons' ) );\n\t\t\tadd_action( 'admin_print_styles', array( $this, 'print_admin_styles' ) );\n\t\t}", "title": "" }, { "docid": "1c17855f3e35e7000c2b4313c68adf09", "score": "0.62779", "text": "public function init()\r\n {\r\n \tparent::init();\r\n }", "title": "" }, { "docid": "3f985b466abb2b53cafd7edcabf90d33", "score": "0.62762195", "text": "public function __construct()\r\n {\r\n $this->view = new stdClass;\r\n $this->view->placeHolder = $this->placeHolder;\r\n $this->view->settingOptionName = $this->settingOptionName;\r\n }", "title": "" }, { "docid": "d08597e82504cd4d9226cbd32735a321", "score": "0.6271701", "text": "function initialize () {\n $this->set_openingtag ( \"<INPUT TYPE=\\\"button\\\" value=\\\"\" );\n\t$this->set_closingtag ( \"\\\"[attributes]>\" );\n\t$this->set_type (\"button\");\n }", "title": "" }, { "docid": "7e0da7956597d4002c3d40d64502efae", "score": "0.627123", "text": "public function __construct()\n {\n $this->variablesDescriptionDir = null;\n $this->imgBaseDir = null;\n $this->imgBaseUrl = null;\n $this->documentDate = null;\n $this->documentTitle = null;\n $this->widgetTpl = __DIR__ . \"/tpl/widget-doc-widget.tpl.php\";\n $this->pageTpl = __DIR__ . \"/tpl/widget-doc-page.tpl.php\";\n $this->widgetsBaseDir = null;\n }", "title": "" }, { "docid": "3a9dde1feb6a2861b29b26f39df52658", "score": "0.6265967", "text": "public function __construct() {\n\t\t\t$this->init();\n\t\t}", "title": "" }, { "docid": "2f35559534f7382f5acb7b5fb895ecca", "score": "0.6262465", "text": "public function __construct(){\n\t\t\t$this->should_render();\n\n\t\t\t//$this->init();\n\t\t}", "title": "" }, { "docid": "411cc89e629456842856adba2358465d", "score": "0.62534416", "text": "public function init() {\n\t\t$this->_helper->layout->disableLayout();\n\t\t$this->_helper->viewRenderer->setNeverRender();\n\t}", "title": "" }, { "docid": "4be3cf30170d68f297154a74bbb62e1e", "score": "0.62533784", "text": "protected function _construct()\n {\n parent::_construct();\n $this->setTemplate(self::TEMPLATE);\n }", "title": "" }, { "docid": "907fa2cfc025c67eca24c02ac27f9b7c", "score": "0.6243798", "text": "function __construct()\n\t\t{\t\n\t\t\t$this->render();\n\t\t}", "title": "" }, { "docid": "907fa2cfc025c67eca24c02ac27f9b7c", "score": "0.6243798", "text": "function __construct()\n\t\t{\t\n\t\t\t$this->render();\n\t\t}", "title": "" }, { "docid": "907fa2cfc025c67eca24c02ac27f9b7c", "score": "0.6243798", "text": "function __construct()\n\t\t{\t\n\t\t\t$this->render();\n\t\t}", "title": "" }, { "docid": "a5d06805e70bea4b7aefe2c3c98271e3", "score": "0.62427664", "text": "public function init()\n\t\t{\n\t\t\t$this->SetHelpText(GetLang('EmailChangeHelpText'));\n\t\t\t$this->ShowSaveAndCancelButtons(false);\n\t\t}", "title": "" }, { "docid": "309917549bc886bee98e70079a03ac58", "score": "0.6240804", "text": "public function init(){\n parent::init();\n $this->registerAssets();\n \n echo CHtml::openTag(\"div\", $this->getContainerOptions());\n echo CHtml::openTag(\"div\", $this->getInnerContainerOptions());\n echo CHtml::openTag(\"div\", $this->getContentOptions());\n }", "title": "" }, { "docid": "b1bf6f3b9384271405042bb839d9a165", "score": "0.623956", "text": "public function init()\n {\n $this->addElement('password', 'password', array(\n 'required' => true,\n 'label' => 'Password'\n ));\n\n $this->addElement('submit', 'submit', array(\n 'ignore' => true,\n 'label' => 'Submit'\n ));\n }", "title": "" }, { "docid": "6af52b2a177be1c974e159d8379488c8", "score": "0.622842", "text": "public function __construct() {\n\t\tparent::__construct(\n\t\t\t'edgtf_raw_html_widget',\n\t\t\tesc_html__( 'Edge Raw HTML Widget', 'fluid' ),\n\t\t\tarray( 'description' => esc_html__( 'Add raw HTML holder to widget areas', 'fluid' ) )\n\t\t);\n\t\t\n\t\t$this->setParams();\n\t}", "title": "" }, { "docid": "d79561277c4f92222daf5f14901e22ec", "score": "0.62183", "text": "public function __construct() {\n\n\t\tparent::__construct( 'Mlp_Widget', __( 'Language Switcher', 'multilingual-press' ), array(\n\t\t\t'classname' => 'mlp_widget',\n\t\t\t'description' => __( 'MultilingualPress Translations', 'multilingual-press' ),\n\t\t\t'customize_selective_refresh' => true,\n\t\t) );\n\n\t\t// Enqueue style if widget is active (appears in a sidebar) or if in Customizer preview.\n\t\tif ( is_active_widget( false, false, $this->id_base ) || is_customize_preview() ) {\n\t\t\t// Do NOT use wp_enqueue_scripts here as require_style() implicitly hooks into this.\n\t\t\tadd_action( 'template_redirect', array( $this, 'require_style' ) );\n\t\t}\n\t}", "title": "" }, { "docid": "9d7dd32cd6bb746999fdb2f0a9f60fd3", "score": "0.6215368", "text": "protected function _construct()\n {\n $this->setTemplate('zirconprocessing/widget/catalogrequest.phtml');\n }", "title": "" }, { "docid": "0cc9d2716e7e2eec1a05bb69ad313e1a", "score": "0.62066835", "text": "function __construct() {\n\t\tparent::__construct(\n\t\t\t'askthelawyer_widget', // Base ID\n\t\t\t__('Ask the lawyer', 'piananotizie'), // Name\n\t\t\tarray( 'description' => __( 'Show widget ask the lawyer', 'piananotizie' ), ) // Args\n\t\t);\n\t}", "title": "" }, { "docid": "61c1474055f65c33cd40101a4bf65525", "score": "0.62055117", "text": "function __construct() {\n\t\tparent::__construct();\n\t\t$this->init();\n\t}", "title": "" }, { "docid": "ad089ba45a4eaed38bf8133bb35e2df5", "score": "0.6205462", "text": "public function _init(){}", "title": "" }, { "docid": "187fbc34289c6cb92984a4e42be3db25", "score": "0.61901915", "text": "function initialize() {\r\n add_filter(\"slp_widget_default_options\", array($this, \"options\"));\r\n add_filter(\"slp_widget_get_settings\" , array($this, \"getSettings\"));\r\n\r\n $this->settings_array = apply_filters(\"slp_widget_default_options\", array());\r\n foreach ($this->settings_array as $setting => $setto) {\r\n $this->$setting = $setto;\r\n }\r\n }", "title": "" }, { "docid": "7f21cea006b8c9d0d5ec73e8fa746ac9", "score": "0.61867344", "text": "public function __construct() {\n $this->init();\n }", "title": "" }, { "docid": "6742f8d154fb69ebf3213919c07955c0", "score": "0.6183082", "text": "public function __construct()\n {\n $this->setRefreshAt();\n $this->setOptions();\n $this->blocks = new ArrayCollection();\n }", "title": "" }, { "docid": "55a1952126d1476cc16548f461c2384d", "score": "0.61817306", "text": "function __construct()\n\t{\n\t\tparent::__construct(\n\t\t\t'jetty_widget_button_text',\n\t\t\t__('Jetty Widget - Andeavor Button Text Box', 'jetty'),\n\t\t\tarray( 'description' => __( 'This widget for display text and button', 'jetty' ), )\n\t\t);\n\t}", "title": "" }, { "docid": "a4578070a83ed1f1df2d8d2f546dd179", "score": "0.6180717", "text": "protected function _initialize()\n\t{\n\t\t$this->_do = Kiwi_Object_Manager::load\n\t\t(\n\t\t\t'Kiwi_Slide'\n\t\t); // allows caching\n\n\t\tparent::_initialize();\n\t}", "title": "" }, { "docid": "e49c02e48929af5f0a6ad491ab97ccbb", "score": "0.6180097", "text": "public function __construct()\n {\n $sPluginClass = preg_replace(\"/Widget$/\", 'Plugin', get_class($this));\n $this->oPlugin = new $sPluginClass;\n\t\tparent::__construct\n (\n\t\t\t$this->oPlugin->pluginId() . '_widget',\n\t\t\t__($this->oPlugin->pluginName() . ' Widget', $this->oPlugin->textDomain()),\n\t\t\t['description' => __($this->oPlugin->pluginDescription(), $this->oPlugin->textDomain())]\n\t\t);\n\t}", "title": "" }, { "docid": "b4294c3124ab4923b9f9bf7f623f541a", "score": "0.6179991", "text": "public function init()\n\t{\n //https://www.facebook.com/FacebookDevelopers\n if (!empty($this->username)) $this->username = $this->username;\n if (empty($this->lang)) $this->lang = 'en_US';\n if (empty($this->width)) $this->width = 292;\n if (empty($this->height)) $this->height = 550;\n if (empty($this->show_faces)) $this->show_faces = true;\n if (empty($this->color_scheme)) $this->color_scheme = 'light';\n if (empty($this->show_stream)) $this->show_stream = true;\n if (empty($this->show_border)) $this->show_border = true;\n if (empty($this->show_header)) $this->show_header = true;\n\t}", "title": "" }, { "docid": "9cae15f4ed3170137c3cf2e9783e3876", "score": "0.6171514", "text": "public function init()\n {\n }", "title": "" }, { "docid": "9cae15f4ed3170137c3cf2e9783e3876", "score": "0.6171514", "text": "public function init()\n {\n }", "title": "" }, { "docid": "9cae15f4ed3170137c3cf2e9783e3876", "score": "0.6169038", "text": "public function init()\n {\n }", "title": "" }, { "docid": "9cae15f4ed3170137c3cf2e9783e3876", "score": "0.6169038", "text": "public function init()\n {\n }", "title": "" }, { "docid": "9cae15f4ed3170137c3cf2e9783e3876", "score": "0.6169038", "text": "public function init()\n {\n }", "title": "" }, { "docid": "9cae15f4ed3170137c3cf2e9783e3876", "score": "0.6169038", "text": "public function init()\n {\n }", "title": "" }, { "docid": "9cae15f4ed3170137c3cf2e9783e3876", "score": "0.6169038", "text": "public function init()\n {\n }", "title": "" }, { "docid": "9cae15f4ed3170137c3cf2e9783e3876", "score": "0.6169038", "text": "public function init()\n {\n }", "title": "" }, { "docid": "9cae15f4ed3170137c3cf2e9783e3876", "score": "0.6169038", "text": "public function init()\n {\n }", "title": "" }, { "docid": "9cae15f4ed3170137c3cf2e9783e3876", "score": "0.6169038", "text": "public function init()\n {\n }", "title": "" }, { "docid": "9cae15f4ed3170137c3cf2e9783e3876", "score": "0.6169038", "text": "public function init()\n {\n }", "title": "" }, { "docid": "9cae15f4ed3170137c3cf2e9783e3876", "score": "0.6168297", "text": "public function init()\n {\n }", "title": "" }, { "docid": "9cae15f4ed3170137c3cf2e9783e3876", "score": "0.61680704", "text": "public function init()\n {\n }", "title": "" }, { "docid": "3cc589a2e24609c55adb58fc3fe160c6", "score": "0.61674905", "text": "public static function init () : void\n {\n add_action(\"widgets_init\", function ()\n {\n self::unregister_widget();\n self::register_widget();\n self::register_sidebar();\n });\n }", "title": "" }, { "docid": "3115ec463e2106f71be4ca2dcf873898", "score": "0.6166212", "text": "function __construct() {\n\t\tparent::__construct(\n\t\t\t'Compound_Calculator_Widget', // Base ID\n\t\t\t__( 'compound Calculator Widget', 'cc_domain' ), // Name\n\t\t\tarray( 'description' => __( 'Widget lets users Calculate Compound Interest', 'text_domain' ), ) // Args\n\t\t);\n\t}", "title": "" }, { "docid": "f6cbcc91d78f8d15380c376745a06397", "score": "0.61661166", "text": "public function init()\r\n\t {\r\n\t }", "title": "" }, { "docid": "286268e3b29613ea8c8af93e623cd8ab", "score": "0.61656606", "text": "function init() {\n\t\t\t$this->showHeaders();\n\n\t\t\t// Display the CSS content\n\t\t\t$this->createContent();\n\t\t\t$this->showContent();\n\t\t}", "title": "" }, { "docid": "397e2bdd03bcd71186d81293507a7f8a", "score": "0.61620784", "text": "protected function initialize() {\n\t add_action( 'widgets_init' , array( $this , 'register_widgets' ) );\n\t $this->add_hooks_and_filters();\n }", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4bac3188558c3acab53dd8d5175c1d4e", "score": "0.0", "text": "public function show($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e5152a75698da8d87238a93648112fcf", "score": "0.72897154", "text": "function display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->fetch($resource_name, $cache_id, $compile_id, true);\n }", "title": "" }, { "docid": "87649d98f1656cc542e5e570f7f9fd1f", "score": "0.6616427", "text": "public function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t\t$this->setHeaderData();\n\t\t\tparent::display($resource_name, $cache_id, $compile_id);\n\t\t}", "title": "" }, { "docid": "b08b6bb501370e4c42f069ea734388a0", "score": "0.64993453", "text": "public function get($resource);", "title": "" }, { "docid": "dd518b422828ccdfc7b932a34e62225d", "score": "0.6273607", "text": "public function show(Resource $resource)\n {\n return response()->json($resource);\n \n }", "title": "" }, { "docid": "51a1c3499847de81938cf22e3e336bf2", "score": "0.62220424", "text": "public function getAction()\n {\n \t/**\n \t * @todo handle error cases and return an error, return valid users ondly\n \t */\n \t$id = $this->_request->getParam('id');\n \t$result = $this->_table->find($id);\n \t$this->view->resource = $result->current();\n }", "title": "" }, { "docid": "cbf3bf22b6453f9015dd8d3552392655", "score": "0.6155763", "text": "protected function showResourceView($id)\n\t{\n\n\t\t$element = $this->getElements($id);\n\t\treturn Response::view('adm/IAS/element', array('data' => $element));\n\n\t}", "title": "" }, { "docid": "04d35d47081d101fff17d30acb1f2178", "score": "0.6141969", "text": "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(SugarAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "title": "" }, { "docid": "556fa9c7c8b0bbfca3848834f795e687", "score": "0.6119021", "text": "public function displayAction($id)\n { }", "title": "" }, { "docid": "0243c17e457a131b89a485445f1cee26", "score": "0.60701436", "text": "public function show()\n {\n $this->getView($this->view_name);\n }", "title": "" }, { "docid": "f0d6bc8f87110dac3699808a11a93b8f", "score": "0.6056663", "text": "public function render()\n {\n $this->bindResource($this->resource);\n return parent::render();\n }", "title": "" }, { "docid": "66bedfeb611b91813c98a7e106a95902", "score": "0.5966627", "text": "private function displayImageResource($image) {\n if($image) {\n if($image->getExtension() == 'jpg' || $image->getExtension() == 'jpeg') {\n header('Content-Type: image/jpeg');\n imagejpeg($image->getResource(), null, 100);\n }\n else if($image->getExtension() == 'png') {\n header('Content-Type: image/png');\n imagepng($image->getResource(), null, 9);\n }\n else if($image->getExtension() == 'gif') {\n header('Content-Type: image/gif');\n imagegif($image->getResource(), null, 100);\n }\n }\n }", "title": "" }, { "docid": "d8bcb4a6a484fbd4595bf60c13751c5f", "score": "0.5916333", "text": "public function display()\n {\n $this->_getAdapter()->display();\n }", "title": "" }, { "docid": "df778faf9f0b4d88cab1a7ccf83e7502", "score": "0.59093356", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n $url = $em->getRepository('KtIoWebInterfaceBundle:Url')->find($id);\n\n if (!$url)\n throw $this->createNotFoundException();\n\n // TODO check we own this url\n return $this->render(\n 'KtIoWebInterfaceBundle:Url:show.html.twig',\n array('url' => $url)\n );\n }", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "4e4b4802386aefba7de0e06d94dac1a8", "score": "0.5861693", "text": "public function viewResources($resourceid='')\n {\n $resourceid = db::escapechars($resourceid);\n \n $sql = \"SELECT * FROM kidschurchresources ORDER BY resourceName ASC\";\n $resources = db::returnallrows($sql);\n if(count($resources) > 0){\n $resourceOutput = \"<table class=\\\"memberTable\\\"><tr><th>ID</th><th>Name</th><th>Description</th><th>Type</th><th>Quantity</th><th>Task</th></tr>\";\n foreach($resources as $resource){\n if($resource['resourceID'] == $resourceid){\n $resourceOutput .= \"<tr class=\\\"highlight\\\">\";\n }\n else{\n $resourceOutput .= \"<tr>\";\n }\n $resourceOutput .= \"<td>\".$resource['resourceID'].\"</td>\";\n $resourceOutput .= \"<td>\".$resource['resourceName'].\"</td>\";\n $resourceOutput .= \"<td>\".$resource['resourceDescription'].\"</td>\";\n $resourceOutput .= \"<td>\".$resource['resourceType'].\"</td>\";\n $resourceOutput .= \"<td>\".$resource['resourceQuantity'].\"</td>\";\n $resourceOutput .= \"<td> \n <a href=\\\"index.php?mid=431&action=edit&resourceID=\".$resource['resourceID'].\"\\\" class=\\\"runbutton\\\">Edit</a>\n <a href=\\\"index.php?mid=430&action=remove&resourceID=\".$resource['resourceID'].\"\\\" class=\\\"delbutton\\\">Remove</a>\n </td>\";\n $resourceOutput .= \"<tr>\";\n }\n $resourceOutput .= \"</table>\";\n }\n else{\n $resourceOutput = \"<p>There are no resources stored at present.</p>\";\n }\n return $resourceOutput;\n }", "title": "" }, { "docid": "8c23114005d84f0741705b7da9ef9695", "score": "0.58511454", "text": "public function list_display($resource){\n\t\techo(\"<table border='1' >\\n<tr>\");\n\t\tforeach($this->list_headers as $head){\n\t\t\techo(\"<th>$head</th>\\n\");\n\t\t}\n\t\tif($this->ed_flag){\n\t\t\techo(\"<th colspan='2'>Admin</th>\\n\");\n\t\t}\n\t\techo(\"</tr>\");\n\t\twhile($row = mysql_fetch_array($resource)){\n\t\t\t\techo(\"<tr>\\n\");\n\t\t\t\tforeach($row as $key => $value) {\n\t\t\t\t$row[$key] = stripslashes($value);\n\t\t\t}\n\t\t\tforeach($this->list_table_cols as $val) {\n\t\t\t\techo(\"<td valign='top'>$row[$val]</td>\");\n\t\t\t}\n\t\t\tif($this->ed_flag){\n\t\t\t\techo(\"<td valign='top'><a href=attendance.php?id={$row[$this->ID]}>Edit</a></td>\\n\"); //Adds Edit button to end of display table\n\t\t\t\techo(\"<td valign='top'><a href=attendance.php?id={$row[$this->ID]}>Delete</a></td>\\n\"); //Adds Delete button to end of display table\n\t\t\t}\n\t\t}\n\t\techo(\"</tr>\\n</table>\");\n\t}", "title": "" }, { "docid": "bebff39922dfa3f37a3d7a6997a89e2f", "score": "0.5843188", "text": "function show()\n\t{\n\t\t$this->postObject->display();\n\t}", "title": "" }, { "docid": "c77fbba2f7b7f5018f4471f75871b57a", "score": "0.5841994", "text": "public function edit(Resource $resource)\n {\n return view(\n 'resources.edit', \n [\n 'resource' => $resource\n ]\n );\n }", "title": "" }, { "docid": "8aae95d60d936382831b42a40edb3397", "score": "0.5824328", "text": "public function show()\r\n\t{\r\n\t\techo $this->template;\r\n\t}", "title": "" }, { "docid": "7c5c6f9fff24e84ba0d3b00444a0acc7", "score": "0.58195084", "text": "public function resolveForDisplay($resource, $attribute = null)\n {\n if (empty($this->value)) {\n $this->value = null;\n }\n\n try {\n $file = new GenericFile($this->value);\n\n $path = FileCache::get($file, function ($file, $path) {\n return basename($path);\n });\n\n $url = vsprintf('%s/%s', [\n 'nova-vendor/skydiver/nova-cached-images',\n $path\n ]);\n\n $value = url($url);\n } catch (\\Throwable $th) {\n $value = 'remote image not found';\n }\n\n $this->value = $value;\n }", "title": "" }, { "docid": "2f33e89741ba0a19b898dc9a1f9026fc", "score": "0.5811495", "text": "public function showResource($value, bool $justOne = false);", "title": "" }, { "docid": "d6af1b1d4946c54112fc9b7ca038cb20", "score": "0.58112013", "text": "public function display()\n\t{\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "baf449cd82447c0bffb577fe732c4f2b", "score": "0.57953733", "text": "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::add('error', 'msg_info', array('message' => Kohana::message('gw', 'event.view.not_allowed'), 'is_persistent' => FALSE, 'hash' => Text::random($length = 10)));\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "title": "" }, { "docid": "ef3fb32b359d85e91687f25572082d98", "score": "0.57948667", "text": "public function display()\r\n {\r\n\r\n echo $this->get_display();\r\n\r\n }", "title": "" }, { "docid": "f7584132221ad89383b2964e2bd53fe5", "score": "0.57916236", "text": "public function show(Request $request, $id)\n {\n \n if($request->session()->exists('resources') && isset($request->session()->get('resources')[$id])){\n $resource = $request->session()->get('resources')[$id];\n \n $data = [];\n $data['resource']= $resource;\n return view('resource.show', $data);\n }\n return redirect('resource');\n }", "title": "" }, { "docid": "59b26eccbeb80415b27d312ada1ffed8", "score": "0.5781528", "text": "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "title": "" }, { "docid": "21604cc50e9ca2b999b8c59635c9346b", "score": "0.5777744", "text": "protected function _resource($data, $name)\r\n {\r\n $data = get_resource_type($data);\r\n $this->_renderNode('Resource', $name, $data);\r\n }", "title": "" }, { "docid": "b5cf19a61f4df8b352f4c5245148ed8c", "score": "0.57745427", "text": "public function show()\n\t{\n\t\t// Set user states\n\t\t$this->setUserStates();\n\n\t\t// Set pagination\n\t\t$this->setPagination();\n\n\t\t// Set rows\n\t\t$this->setRows();\n\n\t\t// Set filters\n\t\t$this->setFilters();\n\n\t\t// Set toolbar\n\t\t$this->setToolbar();\n\n\t\t// Set menu\n\t\t$this->setMenu();\n\n\t\t// Set Actions\n\t\t$this->setListActions();\n\n\t\t// Render\n\t\t$this->render();\n\t}", "title": "" }, { "docid": "a3e57330d7cd59896b945f16d0e12a89", "score": "0.5756713", "text": "public function display()\n {\n echo $this->render();\n }", "title": "" }, { "docid": "e7bae91f4e998eac5e73657c932c48d7", "score": "0.5752467", "text": "public function show($id) {\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "e7bae91f4e998eac5e73657c932c48d7", "score": "0.5752467", "text": "public function show($id) {\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "f18ebc5f8b08ddef340fa4f0d3eeea2f", "score": "0.5751132", "text": "public static function show() {\n\t\treturn static::$instance->display();\n\t}", "title": "" }, { "docid": "e6492f335ada5179a4fe15779fa54555", "score": "0.5746491", "text": "public function show($id)\n\t{\n\t\t//\t\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "cb9307a32f6d22a33b956aed56db49ba", "score": "0.5717934", "text": "public function show($id)\n\t{\n\t\t//\n\t\t\n\t}", "title": "" }, { "docid": "6ad29c72212e149d40619613cbacfe13", "score": "0.5712024", "text": "protected function addResourceShow(string $name, string $base, string $controller, array $options): RouteContract\n {\n $uri = $this->getResourceUri($name, $options) . '/{' . $base . '}';\n\n $action = $this->getResourceAction($name, $controller, 'show', $options);\n\n return $this->router->get($uri, $action);\n }", "title": "" }, { "docid": "61a627e0c8c8b3a47cc8487387ee35b2", "score": "0.57057", "text": "public function show($id)\n\t{\n\t\t//No need for showing\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "560ae0fd472bad5f1d21beeed5dfbbdd", "score": "0.57012135", "text": "public function show(){}", "title": "" }, { "docid": "98910c6c774dc1299639c448306ea157", "score": "0.5694748", "text": "public function show($id)\n {\n $this->crud->hasAccessOrFail('show');\n\n // set columns from db\n $this->crud->setFromDb();\n\n // cycle through columns\n foreach ($this->crud->columns as $key => $column) {\n // remove any autoset relationship columns\n if (array_key_exists('model', $column) && array_key_exists('autoset', $column) && $column['autoset']) {\n $this->crud->removeColumn($column['name']);\n }\n }\n\n // get the info for that entry\n $this->data['entry'] = $this->crud->getEntry($id);\n $this->data['crud'] = $this->crud;\n $this->data['title'] = trans('bcrud::crud.preview').' '.$this->crud->entity_name;\n\n // remove preview button from stack:line\n $this->crud->removeButton('preview');\n $this->crud->removeButton('delete');\n\n // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package\n return view($this->crud->getShowView(), $this->data);\n }", "title": "" }, { "docid": "851cd390daf8f79de66a294538711bfd", "score": "0.5691463", "text": "public function view(HTTPRequest $request)\n {\n $id = $request->param('ID');\n if ($display = Display::get_by_id($id)) {\n return $this->renderPresentation($display);\n }\n\n return $this->httpError(404);\n }", "title": "" }, { "docid": "89380f02c69f1ed066b5443620b90407", "score": "0.568851", "text": "public function show($id)\n\t{ \n \t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" } ]
1bbea0d56fe2057687542f46d11ddce7
Get the funding account associated with the contribution.
[ { "docid": "ad621c1f038cdb23d8a8c6d7e931529b", "score": "0.0", "text": "public function fundable() {\n return $this->belongsTo('App\\Fundable', 'fundable_id');\n }", "title": "" } ]
[ { "docid": "4f189632041a34cbe91ffef43774bf5b", "score": "0.7079601", "text": "public function getFinancialAccount()\n {\n return $this->financialAccount;\n }", "title": "" }, { "docid": "20b341d87d2c531de76c8ec033db44ca", "score": "0.68829644", "text": "public function getAccount()\n {\n return $this->account;\n }", "title": "" }, { "docid": "20b341d87d2c531de76c8ec033db44ca", "score": "0.68829644", "text": "public function getAccount()\n {\n return $this->account;\n }", "title": "" }, { "docid": "20b341d87d2c531de76c8ec033db44ca", "score": "0.68829644", "text": "public function getAccount()\n {\n return $this->account;\n }", "title": "" }, { "docid": "20b341d87d2c531de76c8ec033db44ca", "score": "0.68829644", "text": "public function getAccount()\n {\n return $this->account;\n }", "title": "" }, { "docid": "20b341d87d2c531de76c8ec033db44ca", "score": "0.68829644", "text": "public function getAccount()\n {\n return $this->account;\n }", "title": "" }, { "docid": "20b341d87d2c531de76c8ec033db44ca", "score": "0.68829644", "text": "public function getAccount()\n {\n return $this->account;\n }", "title": "" }, { "docid": "52fb52e5b78aa42ff1957a3e4634cb9a", "score": "0.67990535", "text": "public function getAccount() {\n return $this->account;\n }", "title": "" }, { "docid": "751baae9eec575a5eb8ecbd896549675", "score": "0.6735405", "text": "public function getAccount()\n {\n return isset($this->account) ? $this->account : null;\n }", "title": "" }, { "docid": "ac71154d99454cdc59e549763d468327", "score": "0.6631176", "text": "public function getAccount();", "title": "" }, { "docid": "faef40a398f13b72c39de09d55ba682a", "score": "0.6595759", "text": "public function getAccount()\n {\n return isset($this->Account) ? $this->Account : null;\n }", "title": "" }, { "docid": "a803c27f1a2e63f6f8d223efc39a436b", "score": "0.63651395", "text": "protected function account(): Account\n {\n return $this->account;\n }", "title": "" }, { "docid": "14f342edcfaf310b0d3adb554830ac63", "score": "0.630768", "text": "public function getDepositBankAccount()\n {\n return BankAccount::doesntHave('user')\n ->whereHas('bank.operatingCountries', function (Builder $query) {\n $query->where('code', $this->country);\n })\n ->has('supportedCurrency')->where('currency', $this->currency)\n ->latest()->first();\n }", "title": "" }, { "docid": "b85719f8d8d9ac31eaca6c18ef4b05b0", "score": "0.6276659", "text": "public function getAccount()\n {\n return $this->container->get('user')->getAccount();\n }", "title": "" }, { "docid": "ee4b89aac80b0fba7f4c7237f0cdb1b6", "score": "0.621536", "text": "public function getAccount(): ?Account\n\t{\n\t\treturn $this->client()->getAccount($this->accountId);\n\t}", "title": "" }, { "docid": "2932d267d656032e7668b045557225f9", "score": "0.6204587", "text": "public function getBankAccount()\n {\n return $this->getData(self::BANK_ACCOUNT);\n }", "title": "" }, { "docid": "f8a98b622769ae116ab5c62363bf64c0", "score": "0.6179244", "text": "function get_account() {\n\t\t// $pos = $this->add_request( __FUNCTION__ );\n\t\t$pos = $this->add_request( 'getaccount' );\n\t\t$this->send_request();\n\t\t$r = $this->response_part( $pos );\n\t\tif ( isset( $r->account ) && !is_null( $r->account->email ) )\n\t\t\treturn $r->account;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "fd80b1048b3857a0ce87ecbb5617ce14", "score": "0.61186117", "text": "public static function account($accountId) {\n //Return the information for $accountId\n return self::get('accounts/' . $accountId);\n }", "title": "" }, { "docid": "0525e1c68027caf1868bb4f2ebf6abb4", "score": "0.60935354", "text": "public function getBankAccount()\n {\n return $this->bankAccount;\n }", "title": "" }, { "docid": "5eaabf015ee7693fa11d364a41ab0acd", "score": "0.6076656", "text": "public function getDepositAccount(){\n return $this->getParameter('deposit_account');\n }", "title": "" }, { "docid": "c523d1e29b52187e10b73372b05b0351", "score": "0.6032424", "text": "public static function getCurrentAccount() {\n $billing_account = FALSE;\n $uid = \\Drupal::currentUser()->id();\n if ($uid > 0) {\n $billing_account = self::getUserAccount($uid);\n }\n return $billing_account;\n }", "title": "" }, { "docid": "0dd6f6654728f7804ba7b217db03dc23", "score": "0.5999388", "text": "public function getAccount(): ?string\n {\n return $this->account;\n }", "title": "" }, { "docid": "33ea01eb4cf689ecbecfc6ff23c4abae", "score": "0.59935373", "text": "public function getAccount_id()\n {\n return $this->fv_account_id;\n }", "title": "" }, { "docid": "f618087b80163e9b008e289ecd61662c", "score": "0.5982916", "text": "public function getClientAccount()\n {\n return $this->account;\n }", "title": "" }, { "docid": "c9d385e382c725c9376f81b693ebfc4b", "score": "0.59827566", "text": "public function getAccount(): ?stdClass\n {\n return $this->account;\n }", "title": "" }, { "docid": "ef655af7fcf6db27152eb25f4e2540dc", "score": "0.5981126", "text": "public function account()\n {\n return $this->belongsTo(CommunityFacade::getUserClass(), 'account_id');\n }", "title": "" }, { "docid": "790f2e9a84b2dcf4c2f14838b9b1c9fa", "score": "0.5976173", "text": "public function resolveaccount()\n {\n //\n $thePaystack = new Paystack();\n return $thePaystack->resolveAccountNumber();\n }", "title": "" }, { "docid": "4a1baa5e197d4558b92aceaba23b477a", "score": "0.5941182", "text": "public function getBankAccount() {\n return $this->bankAccount;\n }", "title": "" }, { "docid": "aa437c1387a324d5830512d52f44d8e9", "score": "0.59279054", "text": "public function getAccountingCustomerParty()\n {\n return $this->accountingCustomerParty;\n }", "title": "" }, { "docid": "6275805b886d839d6e6bb7cb940f223c", "score": "0.5903644", "text": "function account()\n {\n return auth()->user();\n }", "title": "" }, { "docid": "6b13d7b4421f80fd147fd7175f9b6965", "score": "0.588622", "text": "public function getAccount(): Account\n {\n return $this->model(Account::class);\n }", "title": "" }, { "docid": "9c1b2d67d74917f4d90d8ac663042730", "score": "0.5868082", "text": "public function account() {\n $connection = new HTTPConnector($this);\n $url = $this->credential->getRequestUrl(BitcasaConstants::METHOD_USER . BitcasaConstants::METHOD_PROFILE);\n if (!BitcasaUtils::isSuccess($connection->get($url))) {\n return null;\n }\n\n $response = $connection->getResponse(true);\n\n $accountInfo = Account::getInstance($response);\n return $accountInfo;\n }", "title": "" }, { "docid": "9b0700fc5e3530ca2e382bd1352879c6", "score": "0.57888365", "text": "public function getAccountId()\n {\n return $this->accountId;\n }", "title": "" }, { "docid": "9b0700fc5e3530ca2e382bd1352879c6", "score": "0.57888365", "text": "public function getAccountId()\n {\n return $this->accountId;\n }", "title": "" }, { "docid": "7593be141e159ce69ea5284f8bbd05fa", "score": "0.5755514", "text": "public function getAccountInformation()\n {\n return $this->api->getBinanceApiRequest('v3/account');\n }", "title": "" }, { "docid": "32eab4c7a7533a3402383427a3dd63f1", "score": "0.5752616", "text": "public function getAccount() {\n if (isset($this->account)) {\n return $this->account;\n }\n if (!$account = entity_load_single('fluxservice_account', $this->task['data']['account'])) {\n throw new \\RulesEvaluationException('The specified Toggl account cannot be loaded.', array(), NULL, \\RulesLog::ERROR);\n }\n $this->account = $account;\n return $this->account;\n }", "title": "" }, { "docid": "d1b17ff7736c6efd8701123b42ed3003", "score": "0.57302946", "text": "private function getResourceAccount()\n\t{\n\t\tif (!$this->account) {\n\t\t\t$payload = [\n\t\t\t\t'onlyReturnExisting' => true,\n\t\t\t];\n\n\t\t\t$this->requestResource('POST', ResourcesDirectory::NEW_ACCOUNT, $payload);\n\t\t\t$this->account = $this->getHttpClient()->getLastLocation();\n\t\t}\n\n\t\treturn $this->account;\n\t}", "title": "" }, { "docid": "dca351c61ffeec339da9e8a7a071738b", "score": "0.5728302", "text": "public function getLoggedInUserAccount() {\n\t\tLoggerRegistry::debug('CustomerModule::getLoggedInUserAccount()');\n\t\t$account = null;\n\t\t$email = $this->getEngine()->getUserManager()->getLoggedInUserEmail();\n\t\tif (!is_null($email)) {\n\t\t\t$account = $this->getRepository('Account')->findOneBy(array( 'email' => 'ben@leftclick.com.au' ));\n\t\t\tif (is_null($account)) {\n\t\t\t\t$account = new Account();\n\t\t\t\t$account->setEmail($email);\n\t\t\t\t$this->getEngine()->doctrine()->getEntityManager()->persist($account);\n\t\t\t}\n\t\t}\n\t\treturn $account;\n\t}", "title": "" }, { "docid": "56f89b82ee49dc7d896fc5d9b3cd0a12", "score": "0.56872", "text": "public function account()\n {\n if ($response = $this->request('account')) {\n if (isset($response->success) && $response->success == true) {\n return $response->account;\n }\n }\n return false;\n }", "title": "" }, { "docid": "c7435caafdc1ffbfdb020add9a636450", "score": "0.5662522", "text": "public function getAccountReference()\n {\n if (isset($this->data['object']) && 'account' === $this->data['object']) {\n return $this->data['id'];\n }\n\n return null;\n }", "title": "" }, { "docid": "9b8a3d8edc7249c0ce6eae5d481ee9ea", "score": "0.5660345", "text": "public function account()\n {\n return $this->hasOne(UserAccount::class);\n }", "title": "" }, { "docid": "44d37c9a97d05f1d4d2298b49ce0e65c", "score": "0.56515485", "text": "public function getAccount($account_id)\n\t{\n\t\t$arr = DB::select('SELECT * FROM accounts WHERE account_id = ?', [$account_id]); \n\n\t\tif ($arr[0]) {\n\t\t\treturn $arr[0];\n\t\t} else {\n\t\t\treturn ['status' => 'error', 'error' => 'Ups!!! No accounts.'];\n\t\t}\n\t}", "title": "" }, { "docid": "f555e82706052fb161c05e478c83ebb4", "score": "0.56485", "text": "public function getAccountId()\n {\n return $this->account_id;\n }", "title": "" }, { "docid": "f555e82706052fb161c05e478c83ebb4", "score": "0.56485", "text": "public function getAccountId()\n {\n return $this->account_id;\n }", "title": "" }, { "docid": "51e282ede1603397ca1a891400cefd50", "score": "0.563732", "text": "public function getAccountUid()\n {\n return $this->getProperty('paymentAccountUid');\n }", "title": "" }, { "docid": "6dc543f0ecf313a70f1c163098202e43", "score": "0.5635417", "text": "public function purchaseAccountLedgerEntry()\n {\n $items = $this->getItems();\n \n $financeLedger = new Core_Model_Finance_Ledger;\n $salesLedgerRecord = $financeLedger->fetchByName('Purchase Account');\n \n $totalPrice = 0;\n for($i = 0; $i <= sizeof($items)-1; $i += 1) {\n $price = $items[$i]['unit_price'] * $items[$i]['quantity'];\n $totalPrice = $totalPrice + $price;\n }\n $notes = 'Purchase with Purchase Id = '.$this->_purchaseId;\n \n $dataToInsert = array(\n 'debit' => $totalPrice,\n 'credit' => \"0\",\n 'notes' => $notes,\n 'transaction_timestamp' => $this->_transactionTime,\n 'fa_ledger_id' => $salesLedgerRecord['fa_ledger_id']\n );\n $ledgerEntryModel = new Core_Model_Finance_Ledger_Entry;\n $ledgerEntryId = $ledgerEntryModel->create($dataToInsert);\n return $ledgerEntryId;\n }", "title": "" }, { "docid": "fece3e52401e32237ae0bc8bab31144e", "score": "0.5634371", "text": "public function account(): Account\n {\n return new Account($this);\n }", "title": "" }, { "docid": "667c9b6d375aff0e2dc16eea682b5324", "score": "0.5596758", "text": "public function getAccountID();", "title": "" }, { "docid": "686b972876d7f0f2295c43f42a3f2fa6", "score": "0.5592116", "text": "protected function getAccount(): AccountInterface\n {\n if ($this->hasAccount()) {\n return $this->account;\n }\n\n throw new MissingAccount();\n }", "title": "" }, { "docid": "685a257d150a67234ad628b24844a95e", "score": "0.55852455", "text": "public function account()\n {\n return $this->hasOne(Account::class, 'user_id', 'user_id');\n }", "title": "" }, { "docid": "83bb82cbbce99f58fe4fead77f111252", "score": "0.55828726", "text": "public function accountId(): string\n {\n return $this->accountId;\n }", "title": "" }, { "docid": "83bb82cbbce99f58fe4fead77f111252", "score": "0.55828726", "text": "public function accountId(): string\n {\n return $this->accountId;\n }", "title": "" }, { "docid": "e3de33e7add1f90db52b4ee5df52ce90", "score": "0.55621696", "text": "public function getFinanceAccount($user_id = null,$payment_type = null)\n {\n $table = Engine_Api::_()->getDbtable('paymentAccounts', 'mp3music');\n $select = $table->select();\n \n if($user_id != null)\n {\n $select->where('user_id = ?',$user_id);\n }\n if($payment_type != null)\n {\n $select->where('payment_type = ?',$payment_type); \n }\n $accounts = $table->fetchAll($select)->toArray(); \n return @$accounts[0]; \n }", "title": "" }, { "docid": "5e44f20151562e16859a4973534a0667", "score": "0.5558287", "text": "function getAccount($userID = null) {\n\t\treturn $this->getInstance('Account', $userID);\n\t}", "title": "" }, { "docid": "76953fe91d18a003b80ca93bddd95d0e", "score": "0.55509454", "text": "public function getAccountId(): ?string {\n return $this->accountId;\n }", "title": "" }, { "docid": "2a927359ed50eb285eb45796febf61dc", "score": "0.5540038", "text": "public function getAccountAccessEntry(): AccountAccessEntryContract;", "title": "" }, { "docid": "3578f5d6bfb43d3e6b6966b038992639", "score": "0.55379075", "text": "function crowdfunding() {\r\n\treturn ATCF_CrowdFunding::instance();\r\n}", "title": "" }, { "docid": "11fe0289cafa15880eabc8fefd04fa94", "score": "0.5535973", "text": "protected function getGigyaAccount() {\n $gigya_uid = json_decode($this->getRequest()->getParam('login_data'))->UID;\n $gigya_account = $this->gigyaHelper->_getAccount($gigya_uid);\n return $gigya_account;\n }", "title": "" }, { "docid": "a0182af142914408f9ea506395a55024", "score": "0.55352676", "text": "public function getAccountNumber()\n {\n return $this->account_number;\n }", "title": "" }, { "docid": "a0182af142914408f9ea506395a55024", "score": "0.55352676", "text": "public function getAccountNumber()\n {\n return $this->account_number;\n }", "title": "" }, { "docid": "e8165b7b61dc7cf5d6c3ee27f925b7e0", "score": "0.55271894", "text": "public function getAccountBank()\n {\n return $this->account_bank;\n }", "title": "" }, { "docid": "d467db4b4fefb733a5d85d15bbbd9666", "score": "0.55183434", "text": "public static function getAccount($account = null, $attribut = PLEXCEL_SUPPLEMENTAL)\n {\n return plexcel_get_account(self::getConnection(), $account, $attribut );\n }", "title": "" }, { "docid": "29ae67d178e02b7103381a4b9923fa1d", "score": "0.54963297", "text": "public function getAccountID()\n {\n return $this->accountID;\n }", "title": "" }, { "docid": "29ae67d178e02b7103381a4b9923fa1d", "score": "0.54963297", "text": "public function getAccountID()\n {\n return $this->accountID;\n }", "title": "" }, { "docid": "e8dc8ef086c88023a7fdb2af62a9031d", "score": "0.5482252", "text": "public function getAccountId(){\n $value = \\Auth::user()->account_id;\n return $value;\n }", "title": "" }, { "docid": "82cc792fafcf2b5585a4813a0988c333", "score": "0.54623026", "text": "public function accdebet()\n {\n \treturn $this->hasOne('App\\Model\\Account', 'id', 'accdebet_id');\n }", "title": "" }, { "docid": "06117fc1cd4bfcb5012d23f73fc5444f", "score": "0.54613024", "text": "private function getUser() {\n\t\t$account = $this->authenticationManager->getSecurityContext()->getAccount();\n\t\t$user = $account->getParty();\n\t\treturn $user;\n\t}", "title": "" }, { "docid": "d59fb7d4502273ee2fbed3c164c202ff", "score": "0.54604584", "text": "public function getAccountId()\n {\n return $this->id;\n }", "title": "" }, { "docid": "714a94c1a4e5312d9729b1b8997afae4", "score": "0.54405147", "text": "function getContract() {\n $etp = $this->entity_table;\n $eid = $this->entity_id;\n switch ($etp) {\n case 'civicrm_contribution_recur' :\n $recur = new CRM_Contribute_BAO_ContributionRecur();\n $recur->get('id', $eid);\n return $recur;\n break;\n case 'civicrm_contribution' :\n $contr = new CRM_Contribute_BAO_Contribution();\n $contr->get('id', $eid);\n return $contr;\n break;\n default:\n echo 'Huh ? ' . $etp;\n }\n return null;\n }", "title": "" }, { "docid": "19e223304fd350c426df0797815b5c4a", "score": "0.5438883", "text": "public function getAccountId()\n {\n return $this->getParameter('accountId');\n }", "title": "" }, { "docid": "0f0759745fb2db4fa65655c84a427eca", "score": "0.5411426", "text": "public function getBankAccount()\n {\n \treturn $this->db->get_where('bank_account',array('delete_status'=>0))->result();\n }", "title": "" }, { "docid": "6b72c15ea567260029aeb22c7478c923", "score": "0.54039633", "text": "public function getFund()\n {\n return Controllers\\FundController::getInstance();\n }", "title": "" }, { "docid": "cd762be68fe4ccf0f52c1b9f37ae0086", "score": "0.53871506", "text": "public function getAccount($key = null);", "title": "" }, { "docid": "61ea02ebdf98a25f38ab029a3dbfa94a", "score": "0.5366564", "text": "public function getAccountNumber()\n {\n return $this->helper->accountNumber();\n }", "title": "" }, { "docid": "9f95f7c10ee55c3db281129936b2cd68", "score": "0.53642094", "text": "public function getAccountNumber()\n {\n return $this->hasOne(AccountNumber::className(), ['id' => 'account_number_id']);\n }", "title": "" }, { "docid": "7ec595b4bd9454f8a768e70b9aab4423", "score": "0.53531206", "text": "public function getAccountingId()\n {\n return $this->accountingId;\n }", "title": "" }, { "docid": "454c99baf521cca8ac4f76befde41d04", "score": "0.53453743", "text": "public function account($id)\n {\n return $this->get(\"ach/relationships/{$id}\");\n }", "title": "" }, { "docid": "9d42da39a2530ea2cb70600b26e8e056", "score": "0.53440493", "text": "public static function getAccount ($id = null) {\n if (!$id) { \n $id = session::getUserId();\n }\n $db = new db();\n $row = $db->selectOne('account', 'id', $id);\n return $row;\n }", "title": "" }, { "docid": "649efcd0b6be3cb7b5c9eb865070ede8", "score": "0.53416276", "text": "public function getBillingAccountId()\n {\n return $this->billingAccountId;\n }", "title": "" }, { "docid": "c04b97d6c5ebd064296438d37d18e9ba", "score": "0.53398794", "text": "public function getAccountName()\n {\n return $this->config->getAccountName();\n }", "title": "" }, { "docid": "f931748973f68bf8ae9d2f5675519085", "score": "0.53347206", "text": "public function getObtainFinancialReference()\n {\n return $this->obtainFinancialReference;\n }", "title": "" }, { "docid": "2d61c52ebdda60420e3cc3d7bf63fa10", "score": "0.53226393", "text": "function get_wallet($id_trader) \n\t{\n\t\treturn $this->db->select('USD,EUR,GBP,JPY,CHF,TRY,RUR')\n\t\t->where('id',$id_trader)\n\t\t->get('investroom_personal_accounts')->row();\n\t}", "title": "" }, { "docid": "00cc50358893ed57d52df280b91fd825", "score": "0.5308195", "text": "public function getAccountName()\n {\n return $this->account_name;\n }", "title": "" }, { "docid": "00cc50358893ed57d52df280b91fd825", "score": "0.5308195", "text": "public function getAccountName()\n {\n return $this->account_name;\n }", "title": "" }, { "docid": "00cc50358893ed57d52df280b91fd825", "score": "0.5308195", "text": "public function getAccountName()\n {\n return $this->account_name;\n }", "title": "" }, { "docid": "c5a2c83fdbc83f0edfbcfae702b9cdcd", "score": "0.5306175", "text": "public function getCharge() {\n return Charge::retrieve($this->refund->__get('data')['object']['balance_transaction']);\n }", "title": "" }, { "docid": "84ae5272bc77bdd934b11d04b47d7325", "score": "0.5289055", "text": "public function getAdjAccount()\n {\n return $this->hasOne(InvAdjAccount::className(), ['account_id' => 'adj_account_id']);\n }", "title": "" }, { "docid": "fee679b4f12810cf9ac76f580630eb78", "score": "0.5284074", "text": "public function getAccountCode();", "title": "" }, { "docid": "fee679b4f12810cf9ac76f580630eb78", "score": "0.5284074", "text": "public function getAccountCode();", "title": "" }, { "docid": "35af3d476d00253cd0459e8549146d94", "score": "0.5276934", "text": "public function getSubAccountId(): string;", "title": "" }, { "docid": "827dd39bff09b0ca5f65f590b224775d", "score": "0.52703965", "text": "public function getAccountId(): ?string\n {\n return $this->_account_id;\n }", "title": "" }, { "docid": "50b4b0c016b4673535d8965657731978", "score": "0.52663124", "text": "public static function getAccauntBalance($account) {\n $url = self::$username.':'.self::$password.'@'.self::$address.':'.self::$port.'/';\n self::$rpcClient = new jsonRPCClient($url, self::$debug);\n \n self::$emercoin_info = self::$rpcClient->getinfo();\n \n return self::$rpcClient->getbalance($account);\n }", "title": "" }, { "docid": "0190516b562b8cf6ed596fc6bf5f4ff3", "score": "0.52662796", "text": "public function getRandomAccount()\n {\n if (!$this->is_group) {\n return $this;\n }\n\n return $this->accounts()->inRandomOrder()->first();\n }", "title": "" }, { "docid": "3a1a4c2072cc244ab130065cc770d1e2", "score": "0.52559865", "text": "public function getBaseCredit(){\n return $this->creditAccount->getCredit();\n }", "title": "" }, { "docid": "d97c4740ba125969faad65ccb11ce834", "score": "0.525176", "text": "public function getAccountName()\n {\n return $this->accountName;\n }", "title": "" }, { "docid": "306bb9e4e909d8c1a6f59b5782b5e436", "score": "0.52392447", "text": "public function getAccountNo()\n {\n return $this->account_no;\n }", "title": "" }, { "docid": "31127b6a558a2d299832b8c4aeb9c073", "score": "0.52365583", "text": "function getAccountId($acctid = '') {\n if ($acctid) $this->acctid= $acctid;\n\n if (!$acctid) {\n $data = $this->_callResource('/a/');\n $this->acctid = $data['accounts'][0]['accountId']; \n } \n\n return $this->acctid;\n }", "title": "" }, { "docid": "24c3bf7a825dd2fbc2d559cc0b87c342", "score": "0.5234973", "text": "public static function checkacct($fb_id)\n {\n $user = User::find('one', array('conditions' => array('fb_id=?', $fb_id)));\n return $user;\n }", "title": "" }, { "docid": "a8d103037011968e58e71754ddcc1797", "score": "0.5225032", "text": "public function getAccountingSupplierParty()\n {\n return $this->accountingSupplierParty;\n }", "title": "" }, { "docid": "d103421073c8db68e42fb1f39e9685f7", "score": "0.52240396", "text": "public function getFinanceCharge()\n\t{\n\t\treturn $this->finance_charge;\n\t}", "title": "" }, { "docid": "18333fcb2ce09a8eace882a2b986ee90", "score": "0.5220363", "text": "public function getRoundingGlAcc()\n {\n return $this->hasOne(GlAccount::className(), ['account_id' => 'rounding_gl_acc_id']);\n }", "title": "" } ]
f90ac98d1e8fee2c99b7066df5d3aed7
======================================================================================== FUNCTIONS FOR INSTRUCTOR VIEWING THEIR OWN SCHEDULE ========================================================================================
[ { "docid": "a0f9a92f7b03886605bd9ab457b78359", "score": "0.0", "text": "public function SearchByInstructor_MenuLeft_Instructor() \n {\n $OBJ = new Website_PageContents();\n $output = $OBJ->GetContentFromIdentifier('##INSTRUCTOR_CALENDAR_INSTRUCTIONS##');\n \n return $output;\n }", "title": "" } ]
[ { "docid": "6ffd9fff54a11121101a27031a1ce1ec", "score": "0.6492541", "text": "abstract public function getSchedule();", "title": "" }, { "docid": "aa8beb455029ed5428bd3a49903080fa", "score": "0.64675516", "text": "public function schedule(){\n\t}", "title": "" }, { "docid": "ddaf386224f120f5124d2c9a6eb7244c", "score": "0.61350924", "text": "public function reportSchedule();", "title": "" }, { "docid": "ab2bdf79b193da95c108517d6c239676", "score": "0.6010385", "text": "public function getWorkSchedule();", "title": "" }, { "docid": "5d49eb249396f513ae76fbe432dc239d", "score": "0.59654045", "text": "public function refreshBySchedule();", "title": "" }, { "docid": "e8b5418833707f4e1f9ea84be384e425", "score": "0.59203035", "text": "function ManageSchedules()\n\t{\n\t\t$session = &GetSession();\n\t\t$user = &GetUser();\n\t\t$jobsApi = $this->GetApi('Jobs');\n\n\t\t$settingsApi = $this->GetApi('Settings');\n\t\t$cron_check = $settingsApi->CheckCron();\n\n\t\t$cron_run1 = $settingsApi->Get('cronrun1');\n\t\t$cron_run2 = $settingsApi->Get('cronrun2');\n\n\t\tif ($cron_run1 > 0 && $cron_run2 > 0) {\n\t\t\t$cron_diff = $cron_run2 - $cron_run1;\n\t\t\t$next_run = $cron_run2 + $cron_diff;\n\t\t\t$now = $jobsApi->GetServerTime();\n\t\t\t$time_to_wait = $next_run - $now;\n\t\t\t$update_cron_time = 'true';\n\t\t} else {\n\t\t\t$time_to_wait = GetLang('Unknown');\n\t\t\t$cron_diff = 0;\n\t\t\t$next_run = 0;\n\t\t\t$update_cron_time = 'false';\n\t\t}\n\n\t\t$this->DisplayCronWarning(false);\n\n\t\t$GLOBALS['UpdateCronTime'] = $update_cron_time;\n\t\t$GLOBALS['CronTimeLeft'] = $time_to_wait;\n\t\t$GLOBALS['CronTimeDifference'] = $cron_diff;\n\n\t\t$perpage = $this->GetPerPage();\n\n\t\t$DisplayPage = (isset($_GET['DisplayPage'])) ? (int)$_GET['DisplayPage'] : 1;\n\t\t$start = ($DisplayPage - 1) * $perpage;\n\n\t\t$lists = $user->GetLists();\n\n\t\t$listids = array_keys($lists);\n\n\t\tif ($user->HasAccess('Newsletters', 'Send')) {\n\t\t\t$GLOBALS['Newsletters_SendButton'] = $this->ParseTemplate('Newsletter_Send_Button', true, false);\n\t\t}\n\n\t\t$include_unapproved = false;\n\t\tif ($user->Admin()) {\n\t\t\t$include_unapproved = true;\n\t\t}\n\n\t\t$numJobs = $jobsApi->GetJobList('send', 'newsletter', $listids, true, 0, 0, $include_unapproved);\n\n\t\tif ($numJobs < 1) {\n\t\t\tif ($user->HasAccess('Newsletters', 'Send')) {\n\t\t\t\t$msg = $this->PrintSuccess('Schedule_Empty', GetLang('NoSchedules_HasAccess'));\n\t\t\t} else {\n\t\t\t\t$msg = $this->PrintSuccess('Schedule_Empty', '');\n\t\t\t}\n\t\t\tif (!isset($GLOBALS['Message'])) {\n\t\t\t\t$GLOBALS['Message'] = '';\n\t\t\t}\n\t\t\t$GLOBALS['Message'] .= $msg;\n\t\t\techo $this->ParseTemplate('Schedule_Manage_Row_Empty', true, false);\n\t\t\treturn;\n\t\t}\n\n\t\t$jobs = $jobsApi->GetJobList('send', 'newsletter', $listids, false, $start, $perpage, $include_unapproved);\n\n\t\t$this->SetupPaging($numJobs, $DisplayPage, $perpage);\n\t\t$GLOBALS['FormAction'] = 'Action=ProcessPaging';\n\t\t$paging = $this->ParseTemplate('Paging', true, false);\n\n\t\t$manage_row = '';\n\n\t\t$timenow = AdjustTime();\n\n\t\t$rid = 0;\n\n\t\tforeach ($jobs as $p => $details) {\n\t\t\t$rid++;\n\t\t\t$GLOBALS['JobID'] = (int)$details['jobid'];\n\t\t\t$GLOBALS['Status'] = $jobsApi->GetJobStatus($details['jobstatus']);\n\t\t\t$GLOBALS['JobTime'] = $this->PrintTime($details['jobtime'], true);\n\t\t\t$GLOBALS['ListName'] = htmlspecialchars($details['listname'], ENT_QUOTES, SENDSTUDIO_CHARSET);\n\t\t\t$GLOBALS['NewsletterName'] = htmlspecialchars($details['name'], ENT_QUOTES, SENDSTUDIO_CHARSET);\n\n\t\t\t$action = '';\n\n\t\t\t$GLOBALS['RowID'] = $rid;\n\n\t\t\t$GLOBALS['RefreshLink'] = $GLOBALS['AlreadySent'] = '';\n\t\t\tif ($details['jobstatus'] == 'w') {\n\n\t\t\t\tif ($user->Admin() && $details['approved'] <= 0) {\n\t\t\t\t\t$GLOBALS['TipName'] = $this->GetRandomId();\n\t\t\t\t\t$GLOBALS['ScheduleTip'] = GetLang('WaitingForApproval_Description');\n\n\t\t\t\t\t$need_approval_tip = $this->ParseTemplate('Schedule_Needs_Approval_Tip', true, false);\n\t\t\t\t\t$GLOBALS['Status'] = $need_approval_tip;\n\n\t\t\t\t\t$action .= $this->ParseTemplate('Schedule_Manage_Row_ApproveLink', true, false);\n\n\t\t\t\t\t$action .= $this->ParseTemplate('Schedule_Manage_Row_DeleteLink', true, false);\n\n\t\t\t\t\t$GLOBALS['Action'] = $action;\n\n\t\t\t\t\t$manage_row .= $this->ParseTemplate('Schedule_Manage_Row', true, false);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif ($next_run > 0) {\n\t\t\t\t\t$send_in_time_difference = $details['jobtime'] - AdjustTime();\n\n\t\t\t\t\t// if we're below 0, that means we should send next time cron runs.\n\t\t\t\t\tif ($send_in_time_difference < 0) {\n\t\t\t\t\t\t$send_in_time_difference = $time_to_wait;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ($next_run > 0 && $details['jobtime'] <= $next_run) {\n\t\t\t\t\t\t$send_in_time_difference = $next_run - AdjustTime();\n\t\t\t\t\t}\n\n\t\t\t\t\tif ($send_in_time_difference < 0) {\n\t\t\t\t\t\t$send_in_time_difference = $cron_diff;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ($send_in_time_difference > 0) {\n\t\t\t\t\t\t$have_refreshed = (isset($_GET['R'])) ? 1 : 0;\n\n\t\t\t\t\t\t$GLOBALS['RefreshLink'] = \"<script>UpdateMyTimer('\" . $GLOBALS['JobID'] . \"_\" . $rid . \"', \" . (int)$send_in_time_difference . \", \" . $have_refreshed . \");</script>\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$GLOBALS['Status'] = GetLang('WaitingToSend');\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$GLOBALS['Status'] = GetLang('WaitingToSend');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($details['jobstatus'] == 'i') {\n\t\t\t\tif ($user->Admin() && $details['approved'] <= 0) {\n\t\t\t\t\t$GLOBALS['TipName'] = $this->GetRandomId();\n\t\t\t\t\t$GLOBALS['ScheduleTip'] = GetLang('WaitingForApproval_Description');\n\n\t\t\t\t\t$need_approval_tip = $this->ParseTemplate('Schedule_Needs_Approval_Tip', true, false);\n\t\t\t\t\t$GLOBALS['Status'] = $need_approval_tip;\n\n\t\t\t\t\t$action .= $this->ParseTemplate('Schedule_Manage_Row_ApproveLink', true, false);\n\n\t\t\t\t\t$action .= $this->ParseTemplate('Schedule_Manage_Row_DeleteLink', true, false);\n\n\t\t\t\t\t$GLOBALS['Action'] = $action;\n\n\t\t\t\t\t$manage_row .= $this->ParseTemplate('Schedule_Manage_Row', true, false);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$queueinfo = $jobsApi->GetJobQueueSize($details['jobid']);\n\t\t\t\tif (!empty($queueinfo)) {\n\t\t\t\t\t$GLOBALS['AlreadySent'] = sprintf(GetLang('AlreadySentTo'), $this->FormatNumber($queueinfo['totalsent']), $this->FormatNumber($queueinfo['sendsize']));\n\t\t\t\t}\n\t\t\t\t$GLOBALS['RefreshDisplayPage'] = $DisplayPage;\n\t\t\t\t$action .= $this->ParseTemplate('Schedule_Manage_Row_RefreshLink', true, false);\n\t\t\t}\n\n\t\t\t// if the job is paused, we can resume it.\n\t\t\tif ($details['jobstatus'] == 'p') {\n\t\t\t\t$action .= $this->ParseTemplate('Schedule_Manage_Row_ResumeLink', true, false);\n\t\t\t}\n\n\t\t\t// if the job is in progress we can pause it.\n\t\t\t// or if it's in progress.\n\t\t\t// that will allow us to delay it without losing all of the info....\n\t\t\tif ($details['jobstatus'] == 'i' || $details['jobstatus'] == 'w') {\n\t\t\t\t$action .= $this->ParseTemplate('Schedule_Manage_Row_PauseLink', true, false);\n\t\t\t}\n\n\t\t\t// if it's not in progress, we can edit or delete the scheduled event.\n\t\t\t// but only if it has not started yet (the queueid will be > 0 for started events).\n\t\t\tif ($details['jobstatus'] != 'i') {\n\t\t\t\tif ($details['queueid'] == 0 && $details['jobstatus'] != 'c') {\n\t\t\t\t\t$action .= $this->ParseTemplate('Schedule_Manage_Row_EditLink', true, false);\n\t\t\t\t}\n\t\t\t\t$action .= $this->ParseTemplate('Schedule_Manage_Row_DeleteLink', true, false);\n\t\t\t}\n\n\t\t\t$GLOBALS['Action'] = $action;\n\n\t\t\t$manage_row .= $this->ParseTemplate('Schedule_Manage_Row', true, false);\n\t\t}\n\n\t\t$template = $this->ParseTemplate('Schedule_Manage', true, false);\n\t\t$template = str_replace('%%TPL_Schedule_Manage_Row%%', $manage_row, $template);\n\n\t\t$template = str_replace('%%TPL_Paging%%', $paging, $template);\n\t\t$template = str_replace('%%TPL_Paging_Bottom%%', $GLOBALS['PagingBottom'], $template);\n\n\t\techo $template;\n\t}", "title": "" }, { "docid": "de619417b9f4acd55f7d7f06a2b3e40a", "score": "0.59116286", "text": "function loadViewScheduleCalendar() \n {\n // GROUP 2: STAFF AND ABOVE ONLY. \n if ((( $this->accessPrivManager->hasSitePriv() ) || ( $this->accessPrivManager->isStaff($this->viewer->getID()) )) ){\t \n\t \n\t // set the pageCallBack to be without any additional parameters\n\t // (an AdminBox needs this so Language Switching on a page doesn't\n\t // pass a previous operations)\n\t $parameters = array('PERSON_ID'=>$this->PERSON_ID, 'PROVINCE_ID'=>$this->PROVINCE_ID, 'GENDER_ID'=>$this->GENDER_ID, 'STAFF_ID'=>$this->STAFF_ID, 'REGION_ID'=>$this->REGION_ID, 'EMERG_ID'=>$this->EMERG_ID, 'ASSIGNSTATUS_ID'=>$this->ASSIGNSTATUS_ID, 'CAMPUS_ID'=>$this->CAMPUS_ID, 'ASSIGNMENT_ID'=>$this->ASSIGNMENT_ID, 'VIEWER_ID'=>$this->VIEWER_ID, 'ACCESS_ID'=>$this->ACCESS_ID, 'YEAR_ID'=>$this->YEAR_ID, 'PERSON_YEAR_ID'=>$this->PERSON_YEAR_ID);//[RAD_CALLBACK_PARAMS]\n\t $pageCallBack = $this->getCallBack(modulecim_hrdb::PAGE_VIEWSCHEDULECALENDAR, $this->sortBy, $parameters);\n\t $this->setPageCallBack( $pageCallBack );\n\t \n\t $parameters = array('PERSON_ID'=>$this->PERSON_ID, 'PROVINCE_ID'=>$this->PROVINCE_ID, 'GENDER_ID'=>$this->GENDER_ID, 'STAFF_ID'=>$this->STAFF_ID, 'REGION_ID'=>$this->REGION_ID, 'EMERG_ID'=>$this->EMERG_ID, 'ASSIGNSTATUS_ID'=>$this->ASSIGNSTATUS_ID, 'CAMPUS_ID'=>$this->CAMPUS_ID, 'ASSIGNMENT_ID'=>$this->ASSIGNMENT_ID, 'VIEWER_ID'=>$this->VIEWER_ID, 'ACCESS_ID'=>$this->ACCESS_ID, 'YEAR_ID'=>$this->YEAR_ID, 'PERSON_YEAR_ID'=>$this->PERSON_YEAR_ID);//[RAD_CALLBACK_PARAMS]\n\t $formAction = $this->getCallBack(modulecim_hrdb::PAGE_VIEWSCHEDULECALENDAR, $this->sortBy, $parameters );\n\t if ($this->MONTH_ID=='')\n\t {\n\t\t $this->MONTH_ID=date('n');\t// current month\n\t }\n\t $this->pageDisplay = new page_ViewScheduleCalendar( $this->moduleRootPath, $this->viewer, $this->sortBy, $this->MONTH_ID);\t//[RAD_FORMINIT_FOREIGNKEY_INIT] \n\t\n\t $links = array();\n\t \n\t/*[RAD_LINK_INSERT]*/ \n\t \n\t $jumpLink = $this->getCallBack( modulecim_hrdb::PAGE_VIEWSCHEDULECALENDAR, $this->sortBy, '', '', '', '', '', '' );//[RAD_CALLBACK_PARAMS_EDIT]\n\t $jumpLink .= \"&\". modulecim_hrdb::MONTH_ID . \"=\";\n\t $links[\"jumpLink\"] = $jumpLink;\n\t\n\t $this->pageDisplay->setLinks( $links );\n\t \n\t $this->addScript('MM_jumpMenu.jsp'); \n \n }\n else\n {\n\t $this->pageDisplay = new page_NotAuthorized($this->moduleRootPath, $this->viewer); \n } \n \n \n }", "title": "" }, { "docid": "802305512f98df1381240e9cb8b9436d", "score": "0.58068913", "text": "public function sendSchedule();", "title": "" }, { "docid": "614faca06cc66749fa4b74409ea1fe9b", "score": "0.5806584", "text": "protected function schedule(Schedule $schedule)\n {\n }", "title": "" }, { "docid": "614faca06cc66749fa4b74409ea1fe9b", "score": "0.5806584", "text": "protected function schedule(Schedule $schedule)\n {\n }", "title": "" }, { "docid": "3992d879a4ab57eff625b54f6a5d4be7", "score": "0.57266283", "text": "public function schedule(Schedule $schedule)\n {\n }", "title": "" }, { "docid": "ff11fdc548e7cf85dae7ce7abc55657d", "score": "0.571973", "text": "public function ScheduleListing()\n\t{\tob_start();\n\t\techo '<table><tr class=\"newlink\"><th colspan=\"5\"><a href=\"courseedit.php?ccid=', $this->id, '\">Schedule new course</a></th></tr><tr><th>Schedule ID</th><th>Dates</th><th>Venue</th><th>Stock Control</th><th>Actions</th></tr>';\n\t\tforeach ($this->courses as $course_row)\n\t\t{\t\n\t\t\tif($course_row['cvenue']> 0 && ($course_row['starttime']!='0000-00-00' || $course_row['endtime']!='0000-00-00')){\n\t\t\t\t$course = new AdminCourse($course_row);\n\t\t\t\techo '<tr><td>', $course->id, '</td><td>', $course->DisplayDates(), '</td><td>', $course->GetVenue()->GetAddress(), '</td><td>', $course->StockControlText(), '</td><td><a href=\"courseedit.php?id=', $course->id, '\">edit</a></td></tr>';\n\t\t\t}\n\t\t}\n\t\techo '</table>';\n\t\treturn ob_get_clean();\n\t}", "title": "" }, { "docid": "b535c051f6ec2729eaef8ae2e5b7227c", "score": "0.5694268", "text": "protected function schedule(Schedule $schedule)\n {\n //\n }", "title": "" }, { "docid": "b535c051f6ec2729eaef8ae2e5b7227c", "score": "0.5694268", "text": "protected function schedule(Schedule $schedule)\n {\n //\n }", "title": "" }, { "docid": "b535c051f6ec2729eaef8ae2e5b7227c", "score": "0.5694268", "text": "protected function schedule(Schedule $schedule)\n {\n //\n }", "title": "" }, { "docid": "110998066856b1c9c778745ed87adbcc", "score": "0.5668576", "text": "public function scheduleAction()\n {\n // Si on peut récupérer un objet MainEvent, l'utilisateur à le droit...\n $granted = $this->get('fibe_security.acl_entity_helper')->getEntityACL('VIEW', 'MainEvent');\n\n $user = $this->getUser();\n $em = $this->getDoctrine();\n // $mainEvent = $user->getCurrentMainEvent();\n\n //filters\n $categories = $em->getRepository('fibeEventBundle:Category')->getOrdered();\n // $locations = $user->getCurrentMainEvent()->getLocations();\n // $topics = $user->getCurrentMainEvent()->getTopics();\n\n return array(\n //'currentMainEvent' => $mainEvent,\n 'authorized' => isset($granted), // Si il existe une conference\n 'categories' => $categories,\n //'locations' => $locations,\n //'topics' => $topics,\n );\n }", "title": "" }, { "docid": "43143564be7f9fd128136b92f2b6893f", "score": "0.56480396", "text": "protected function schedule(Schedule $schedule)\n {\n $schedule->call(function () {\n Task::where('due_date', '<', Carbon::now())\n ->where('status', '!=', 'complete')\n ->update(['status' => 'overdue']);\n\n $tasks = Task::where('due_date', '<=', Carbon::now()->subDays(5))->get();\n \n if($tasks->isNotEmpty()) {\n foreach($tasks as $task) {\n if($task->status == 'overdue') {\n Notification::create([\n 'user_id' => $task->asigned_to,\n 'text' => 'Your <strong>Task ('.$task->task_name.')</strong> is overdue.',\n ]);\n // event(new LiveNotification('Your Task ('.$task->task_name.') is overdue.',$task->asigned_to));\n } else {\n Notification::create([\n 'user_id' => $task->asigned_to,\n 'text' => 'You have an approaching deadline on <strong>Task ('.$task->task_name.')</strong>',\n ]);\n // event(new LiveNotification('You have an approaching deadline on Task ('.$task->task_name.')',$task->asigned_to));\n }\n }\n }\n\n $recurring = Task::where('recurring', true)->where('recurring_date', '<=' , Carbon::now())->get();\n\n if($recurring->isNotEmpty()) {\n foreach($recurring as $recurring_task) {\n $recurring_task->update([\n 'recurring' => false,\n ]);\n Task::create([\n 'task_name' => $recurring_task->task_name,\n 'assigner' => $recurring_task->assigner,\n 'asigned_to' => $recurring_task->asigned_to,\n 'due_date' => $recurring_task->due_date->addDays($recurring_task->recurring_freq),\n 'remarks' => $recurring_task->remarks,\n 'priority' => $recurring_task->priority,\n 'recurring' => true,\n 'recurring_freq' => $recurring_task->recurring_freq,\n 'recurring_date' => Carbon::now()->addDays($recurring_task->recurring_freq),\n ]);\n Notification::create([\n 'user_id' => $recurring_task->asigned_to,\n 'text' => 'A new task has been added <strong>('.$task->task_name.')</strong>',\n ]);\n $user = User::where('id', $recurring_task->asigned_to)->first();\n if($user) {\n $details = [\n 'user' => $user->name,\n 'task' => $recurring_task->task_name,\n ];\n $user->notify(new RecurringTask($details)); \n }\n // event(new LiveNotification('Task ('.$recurring_task->task_name.') assigned.',$recurring_task->asigned_to));\n }\n }\n\n })->daily();\n // })->everyMinute(); // Localhost debug\n\n if (Schema::hasTable('notification_settings')) {\n $notifs = NotificationSettings::where('enabled', true)->get();\n if($notifs) {\n foreach ($notifs as $notif) {\n $schedule->call(function() use ($notif) {\n if($notif->name == 'syllabus') {\n $users = User::role(['department-staff','department-secretary'])->get();\n if($users) {\n foreach($users as $user) {\n Notification::create([\n 'user_id' => $user->id,\n 'text' => 'Update All <strong>Course Syllabus</strong>',\n ]);\n // event(new LiveNotification('Update All Course Syllabus',$user->id));\n }\n }\n } elseif ($notif->name == 'fif') {\n $users = User::role('faculty')->get();\n foreach($users as $user) {\n Notification::create([\n 'user_id' => $user->id,\n 'text' => 'Update <strong>Faculty Information Form</strong>',\n ]);\n // event(new LiveNotification('Update Faculty Information Form',$user->id));\n }\n }\n })->cron($notif->cron)->timezone('Asia/Manila');\n }\n }\n }\n }", "title": "" }, { "docid": "a4ada42837371a8b9f3466c520437d45", "score": "0.5636475", "text": "public function __construct()\n {\n parent::__construct();\n \n $this->ClassInfo = array(\n 'Created By' => 'Richard Witherspoon',\n 'Created' => '2011-01-01',\n 'Updated By' => 'Richard Witherspoon',\n 'Updated' => '2012-06-19',\n 'Version' => '1.2',\n 'Description' => 'Allow users to search for sessions on the website',\n );\n \n /* UPDATE LOG ======================================================================================\n \n 2012-03-27 -> Function :: AddScript() :: Restricted dates on instructor search. Added vars \"Cal_Date_Start\" and \"Cal_Date_End\".\n 2012-06-19 -> Modified button to show in the menu - SearchByInstructor_MenuLeft() && SearchByDate_MenuLeft()\n \n ====================================================================================== */\n \n \n \n $this->Return_Page = (Get('retpage')) ? \"http://www.yogalivelink.com/\" . Get('retpage') : '';\n \n # IF AN INSTRUCTOR_WHID HAS BEEN PUSHED IN - LOAD THAT SCHEDULE\n # =================================================================\n if (Get('instructor_whid')) {\n $whid = Get('instructor_whid');\n AddScriptOnReady(\"\n LoadInstructorProfile({$whid}); // select the instructor\n LoadInstructorCalendar({$whid}); // load that instructor's calendar\n \");\n }\n \n \n $this->OBJ_TIMEZONE = new General_TimezoneConversion();\n \n \n # GET THE USER'S LOCAL DATE\n # =================================================================\n date_default_timezone_set($GLOBALS['USER_LOCAL_TIMEZONE']);\n $this->User_Today_Date = date('Y-m-d');\n $this->User_First_Day_Month = date('Y-m-1');\n date_default_timezone_set($GLOBALS['SERVER_TIMEZONE']);\n \n //echo ArrayToStr($_SESSION['USER_LOGIN']['LOGIN_RECORD']);\n \n if (isset($_SESSION['USER_LOGIN']['LOGIN_RECORD']['tz_name']) && isset($_SESSION['USER_LOGIN']['LOGIN_RECORD']['tz_display'])) {\n $this->Existing_Records_Timezone = $_SESSION['USER_LOGIN']['LOGIN_RECORD']['tz_name'];\n $this->Existing_Records_Timezone_Display = $_SESSION['USER_LOGIN']['LOGIN_RECORD']['tz_display'];\n } else {\n $this->Existing_Records_Timezone = $GLOBALS['USER_LOCAL_TIMEZONE'];\n $this->Existing_Records_Timezone_Display = $GLOBALS['USER_LOCAL_TIMEZONE_DISPLAY'];\n }\n \n #echo \"<br />\" . $this->Existing_Records_Timezone;\n #echo \"<br />\" . $this->Existing_Records_Timezone_Display;\n \n }", "title": "" }, { "docid": "447b0517ff023692e2b31459e8ce6002", "score": "0.56042606", "text": "function scheduleVacation($arrive, $depart)\n{\n}", "title": "" }, { "docid": "155889667f1b35b32ca4fd17733a02ae", "score": "0.5571094", "text": "public function timeline() {\n\t}", "title": "" }, { "docid": "6870ffbbc010dab962c6a475ea615988", "score": "0.55131", "text": "public function hasSchedule(){\r\n return $this->_has(2);\r\n }", "title": "" }, { "docid": "96d618d412fd783fc98c1053eb179cd6", "score": "0.5496285", "text": "public function mySchedule() {\n $userData = AppSession::getLoginData();\n $schedule = null;\n\n if ($userData && $userData->role == 'model') {\n $schedule = ScheduleModel::where('modelId', $userData->id)->first();\n }\n $schedules = [\n 'monday' => $schedule->monday,\n 'tuesday' => $schedule->tuesday,\n 'wednesday' => $schedule->wednesday,\n 'thursday' => $schedule->thursday,\n 'friday' => $schedule->friday,\n 'saturday' => $schedule->saturday,\n 'sunday' => $schedule->sunday\n ];\n\n $currentKey = lcfirst(date('l', strtotime('today')));\n $nextSchedule = null;\n\n if ($schedules[$currentKey] > date('H:i:s') && array_key_exists($currentKey, array_filter($schedules))) {\n\n $nextSchedule = date('Y-m-d') . ' ' . date('H:i', strtotime($schedules[$currentKey]));\n } else {\n for ($i = 1; $i < 7; $i++) {\n// echo date('l', strtotime($currentKey . \" +{$i} + day\"));\n $nextKey = lcfirst(date('l', strtotime($currentKey . \" +{$i} day\")));\n if (array_key_exists($nextKey, array_filter($schedules))) {\n $nextSchedule = date('Y-m-d', strtotime($currentKey . \" +{$i} day\")) . ' ' . date('H:i', strtotime($schedules[$nextKey]));\n break;\n }\n }\n }\n return view('Model::model_dashboard_schedule')->with('mySchedule', $schedule)->with('nextSchedule', $nextSchedule);\n }", "title": "" }, { "docid": "f580b0da7001dc129a289c771749b40d", "score": "0.54803437", "text": "public function DiscussionsController_Scheduled_Create($Sender) {\n\t\t// Replace standard View with the \"Scheduled Discussions\" view\n\t\t$this->ShowScheduledDiscussions($Sender, GetValue(0, $Args, 'p1'));\n\t}", "title": "" }, { "docid": "ec46eea689b916cb3e6c9c6ad88fd1c5", "score": "0.54650915", "text": "public function schedules()\n {\n return $this->hasMany(Schedule::class, 'member_id', 'id');\n }", "title": "" }, { "docid": "041e39ede1cead47e94b1b3ae25f940a", "score": "0.5438662", "text": "protected function manageschedule() {\n $id = Auth::user()->id;\n $schedule_info = Model\\Contents::where('admin_id', $id)->first();\n $schedule_time = Model\\Time_sheduling::where('admin_id', $id)->get();\n return view('clientadmin.manage_schedule')->with('schedule', ['schedule_info' => $schedule_info, 'schedule_time' => $schedule_time]);\n }", "title": "" }, { "docid": "f2b39c17969a0ee0e8c0ea0ea64b9b99", "score": "0.5413102", "text": "public function hasSchedule(){\r\n return $this->_has(1);\r\n }", "title": "" }, { "docid": "6ac73e5d27e0b76e2f85988760f58a63", "score": "0.54080456", "text": "function eventclass_student_assesment()\n\t{\n\t\t$this->events[\"AfterAdd\"]=true;\n\n\n//\tonscreen events\n\n\n\t}", "title": "" }, { "docid": "96b43c9c67cf454e91de96d8e30adb57", "score": "0.54065084", "text": "public function Schedules()\n\t{\n\t\treturn $this->hasMany('ThunderID\\Schedule\\Models\\PersonSchedule');\n\t}", "title": "" }, { "docid": "8d35510cf37cc46dc507a09bf09b7178", "score": "0.54058075", "text": "public function actionList()\n {\n $schedules = Plugin::$plugin->getSchedules();\n\n $i = 0;\n if ($ungroupedSchedules = $schedules->getSchedulesByGroupId()) {\n $this->stdout(Craft::t('schedule', 'Ungrouped') . \": \\n\", Console::FG_YELLOW);\n foreach ($ungroupedSchedules as $schedule) {\n /** @var Schedule $schedule */\n $this->stdout(Console::renderColoredString(\" > #{$i} %c{$schedule->handle}\\n\"));\n ++$i;\n }\n }\n\n foreach ($schedules->getAllGroups() as $group) {\n $this->stdout(\"{$group->name}: \\n\", Console::FG_YELLOW);\n foreach ($group->getSchedules() as $schedule) {\n /** @var Schedule $schedule */\n $this->stdout(Console::renderColoredString(\" > #{$i} %c{$schedule->handle}\\n\"));\n ++$i;\n }\n }\n }", "title": "" }, { "docid": "15452e67583137fa6053512efe0347d2", "score": "0.53939813", "text": "function adminsMeeting() {\n //TODO:napisac funkcje na meeting\n}", "title": "" }, { "docid": "266bcc4d45dd945e774efb53cd642039", "score": "0.5339429", "text": "public function newSchedule()\n\t{\n\t\t$this->checkSession();\n\t\t$user_id = $this->session->userid;\n\t\t//$data['user'] = $usr;\n\t\t$data['Menu'] = 'Dashboard';\n\t\t$data['SubMenuOne'] = '';\n\t\t\n\t\t$data['UserMenu'] = $this->M_user->getUserMenu($user_id,$this->session->responsibility_id);\n\t\t$data['UserSubMenuOne'] = $this->M_user->getMenuLv2($user_id,$this->session->responsibility_id);\n\t\t$data['UserSubMenuTwo'] = $this->M_user->getMenuLv3($user_id,$this->session->responsibility_id);\n\t\t$data_branch = $this->M_schedule->data_branch();\n\t\t$data_relation = $this->M_schedule->data_relation();\n\t\t$data['data_branch'] = $data_branch;\n\t\t$data['data_relation'] = $data_relation;\n\t\t\n\t\t$this->load->view('V_Header',$data);\n\t\t$this->load->view('V_Sidemenu',$data);\n\t\t$this->load->view('MorningGreeting/schedule/V_newschedule',$data);\n\t\t$this->load->view('V_Footer',$data);\n\t}", "title": "" }, { "docid": "d6463e8d7d469e9bbfde3aa4abcbd16f", "score": "0.5328931", "text": "public function getSchedule()\n {\n return $this->schedule;\n }", "title": "" }, { "docid": "d6463e8d7d469e9bbfde3aa4abcbd16f", "score": "0.5328931", "text": "public function getSchedule()\n {\n return $this->schedule;\n }", "title": "" }, { "docid": "077d0097f604b1f9610b71b2cfda1186", "score": "0.53204024", "text": "public function finish()\n {\n // don't add appointments if this list isn't parented\n if( is_null( $this->parent ) ) $this->addable = false;\n else // don't add appointments if the parent already has an unassigned appointment\n {\n $modifier = lib::create( 'database\\modifier' );\n $modifier->where( 'participant_id', '=', $this->parent->get_record()->id );\n $modifier->where( 'assignment_id', '=', NULL );\n $class_name = lib::get_class_name( 'database\\appointment' );\n $this->addable = 0 == $class_name::count( $modifier );\n }\n\n parent::finish();\n\n foreach( $this->get_record_list() as $record )\n {\n $db_phone = $record->get_phone();\n $phone = is_null( $db_phone )\n ? 'not specified'\n : sprintf( '(%d) %s: %s',\n $db_phone->rank,\n $db_phone->type,\n $db_phone->number );\n $this->add_row( $record->id,\n array( 'participant.first_name' => $record->get_participant()->first_name,\n 'participant.last_name' => $record->get_participant()->last_name,\n 'phone' => $phone,\n 'datetime' => $record->datetime,\n 'state' => $record->get_state() ) );\n }\n\n $this->finish_setting_rows();\n }", "title": "" }, { "docid": "5c4e65c91bfb2dd0c20557d03c055a0f", "score": "0.5319214", "text": "public function show_schedule()\n\n {\n \n $data_of_schedules = ScheduleEditer::show_schedule_of_movies();\n $sheduledmovies = $data_of_schedules['sheduledmovies']; \n $available_movies_to_add = $data_of_schedules['available_movies_to_add'];\n $movie_being_edited = null;\n return view('shedules',compact('sheduledmovies','available_movies_to_add','movie_being_edited'));\n }", "title": "" }, { "docid": "a79b0be0779f288c99a2f54b439766c2", "score": "0.5318769", "text": "public function summary_schedule()\n\n {\n $start_date = Carbon::today();\n $shedulebmgr = new ScheduleEditer(); \n $summary_data = $shedulebmgr->summarise_movie_shows_in_week($start_date);\n $movies = $summary_data['movies'];\n $schedule_for_dates = $summary_data['showing_status_per_movie'];\n $all_dates_in_range = $summary_data['all_dates_in_range'];\n $shows_in_the_days = $summary_data['shows_in_that_day'];\n if(User::is_admin())\n { \n return view('summary_shedule_admin',compact('schedule_for_dates','movies','all_dates_in_range','shows_in_the_days'));\n }\n \n return view('summary_shedule',compact('schedule_for_dates','movies','all_dates_in_range','shows_in_the_days'));\n\n }", "title": "" }, { "docid": "9f391d10ebf5819ebc568092c99ef5a4", "score": "0.5308716", "text": "public function show(Schedule $schedule)\n {\n //\n }", "title": "" }, { "docid": "9f391d10ebf5819ebc568092c99ef5a4", "score": "0.5308716", "text": "public function show(Schedule $schedule)\n {\n //\n }", "title": "" }, { "docid": "9f391d10ebf5819ebc568092c99ef5a4", "score": "0.5308716", "text": "public function show(Schedule $schedule)\n {\n //\n }", "title": "" }, { "docid": "9f391d10ebf5819ebc568092c99ef5a4", "score": "0.5308716", "text": "public function show(Schedule $schedule)\n {\n //\n }", "title": "" }, { "docid": "9f391d10ebf5819ebc568092c99ef5a4", "score": "0.5308716", "text": "public function show(Schedule $schedule)\n {\n //\n }", "title": "" }, { "docid": "efeeb559adb60618de2cc973cbf6515d", "score": "0.53056747", "text": "function &default_add_event()\n\t{\n\t\t$extra_participants = $_GET['participants'] ? explode(',',$_GET['participants']) : array();\n\n\t\t// if participant is a contact, add its link title as title\n\t\tforeach($extra_participants as $uid)\n\t\t{\n\t\t\tif ($uid[0] == 'c')\n\t\t\t{\n\t\t\t\t$title = egw_link::title('addressbook', substr($uid, 1));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (isset($_GET['owner']))\n\t\t{\n\t\t\t$owner = $_GET['owner'];\n\t\t}\n\t\t// dont set the planner start group as owner/participants if called from planner\n\t\telseif ($this->view != 'planner' || $this->owner != $this->cal_prefs['planner_start_with_group'])\n\t\t{\n\t\t\t$owner = $this->owner;\n\t\t}\n\n\t\tif (!$owner || !is_numeric($owner) || $GLOBALS['egw']->accounts->get_type($owner) != 'u' ||\n\t\t\t!$this->bo->check_perms(EGW_ACL_ADD,0,$owner))\n\t\t{\n\t\t\tif ($owner)\t// make an owner who is no user or we have no add-rights a participant\n\t\t\t{\n\t\t\t\t// if we come from ressources we don't need any users selected in calendar\n\t\t\t\tif (!isset($_GET['participants']) || $_GET['participants'][0] != 'r')\n\t\t\t\t{\n\t\t\t\t\tforeach(explode(',',$owner) as $uid)\n\t\t\t\t\t{\n\t\t\t\t\t\t// only add users or a single ressource, not all ressources displayed by a category\n\t\t\t\t\t\tif (is_numeric($uid) || $owner == $uid)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$extra_participants[] = $uid;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$owner = $this->user;\n\t\t}\n\t\t//echo \"<p>this->owner=$this->owner, _GET[owner]=$_GET[owner], user=$this->user => owner=$owner, extra_participants=\".implode(',',$extra_participants).\"</p>\\n\";\n\n\t\t// by default include the owner as participant (the user can remove him)\n\t\t$extra_participants[] = $owner;\n\n\t\t$start = $this->bo->date2ts(array(\n\t\t\t'full' => isset($_GET['date']) && (int) $_GET['date'] ? (int) $_GET['date'] : $this->date,\n\t\t\t'hour' => (int) (isset($_GET['hour']) && (int) $_GET['hour'] ? $_GET['hour'] : $this->bo->cal_prefs['workdaystarts']),\n\t\t\t'minute' => (int) $_GET['minute'],\n\t\t));\n\t\t//echo \"<p>_GET[date]=$_GET[date], _GET[hour]=$_GET[hour], _GET[minute]=$_GET[minute], this->date=$this->date ==> start=$start=\".date('Y-m-d H:i',$start).\"</p>\\n\";\n\n\t\t$participant_types['u'] = $participant_types = $participants = array();\n\t\tforeach($extra_participants as $uid)\n\t\t{\n\t\t\tif (isset($participants[$uid])) continue;\t// already included\n\n\t\t\tif (!$this->bo->check_acl_invite($uid)) continue;\t// no right to invite --> ignored\n\n\t\t\tif (is_numeric($uid))\n\t\t\t{\n\t\t\t\t$participants[$uid] = $participant_types['u'][$uid] =\n\t\t\t\t\tcalendar_so::combine_status($uid == $this->user ? 'A' : 'U',1,\n\t\t\t\t\t($uid == $this->user || ($uid == $owner && $this->bo->check_perms(EGW_ACL_ADD,0,$owner))) ? 'CHAIR' : 'REQ-PARTICIPANT');\n\t\t\t}\n\t\t\telseif (is_array($this->bo->resources[$uid[0]]))\n\t\t\t{\n\t\t\t\t// if contact is a user, use the user instead (as the GUI)\n\t\t\t\tif ($uid[0] == 'c' && ($account_id = $GLOBALS['egw']->accounts->name2id(substr($uid,1),'person_id')))\n\t\t\t\t{\n\t\t\t\t\t$uid = $account_id;\n\t\t\t\t\t$participants[$uid] = $participant_types['u'][$uid] =\n\t\t\t\t\t\tcalendar_so::combine_status($uid == $this->user ? 'A' : 'U',1,\n\t\t\t\t\t\t($uid == $this->user || ($uid == $owner && $this->bo->check_perms(EGW_ACL_ADD,0,$owner))) ? 'CHAIR' : 'REQ-PARTICIPANT');\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$res_data = $this->bo->resources[$uid[0]];\n\t\t\t\tlist($id,$quantity) = explode(':',substr($uid,1));\n\t\t\t\tif (($status = $res_data['new_status'] ? ExecMethod($res_data['new_status'],$id) : 'U'))\n\t\t\t\t{\n\t\t\t\t\t$participants[$uid] = $participant_types[$uid[0]][$id] =\n\t\t\t\t\t\tcalendar_so::combine_status($status,$quantity,'REQ-PARTICIPANT');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!$participants)\t// if all participants got removed, include current user\n\t\t{\n\t\t\t$participants[$this->user] = $participant_types['u'][$this->user] = calendar_so::combine_status('A',1,'CHAIR');\n\t\t}\n\t\t$alarms = array();\n\t\t// if default alarm set in prefs --> add it\n\t\t// we assume here that user does NOT have a whole-day but no regular default-alarm, no whole-day!\n\t\tif ((string)$this->cal_prefs['default-alarm'] !== '')\n\t\t{\n\t\t\t$offset = 60 * $this->cal_prefs['default-alarm'];\n\t\t\t$alarms[1] = array(\n\t\t\t\t'default' => 1,\n\t\t\t\t'offset' => $offset ,\n\t\t\t\t'time' => $start - $offset,\n\t\t\t\t'all' => false,\n\t\t\t\t'owner' => $owner,\n\t\t\t\t'id'\t=> 1,\n\t\t\t);\n\t\t}\n\t\treturn array(\n\t\t\t'participant_types' => $participant_types,\n\t\t\t'participants' => $participants,\n\t\t\t'owner' => $owner,\n\t\t\t'start' => $start,\n\t\t\t'end' => $start + (int) $this->bo->cal_prefs['defaultlength']*60,\n\t\t\t'tzid' => $this->bo->common_prefs['tz'],\n\t\t\t'priority' => 2,\t// normal\n\t\t\t'public'=> $this->cal_prefs['default_private'] ? 0 : 1,\n\t\t\t'alarm' => $alarms,\n\t\t\t'recur_exception' => array(),\n\t\t\t'title' => $title ? $title : '',\n\t\t);\n\t}", "title": "" }, { "docid": "1f78b9304a7c0a02c62105fbceb5fcfb", "score": "0.5295092", "text": "public function __construct($schedule)\n {\n $this->schedule = $schedule;\n }", "title": "" }, { "docid": "c5711fc7d02262a6c5b93c2f86af5430", "score": "0.5293336", "text": "public function mysschedules()\n {\n //hindi ata to nagana \n return $this->belongsToMany(Schedule::class,'section_id','id')->with('attendances');\n }", "title": "" }, { "docid": "ecb658e2793f27400c986ffabb58e77c", "score": "0.52900994", "text": "function schedule_groups_individual_steps_page() {\n if(!current_group_enable()){\n return;\n }\n\n global $bp;\n if (isset($bp->groups->current_group->slug)) {\n bp_core_new_subnav_item(array(\n 'name' => '训练营日程',\n 'slug' => 'schedule',\n 'parent_slug' => $bp->groups->current_group->slug,\n 'parent_url' => bp_get_group_permalink($bp->groups->current_group),\n 'screen_function' => 'schedule_group_show_screen',\n 'position' => 1));\n }\n}", "title": "" }, { "docid": "54254afdf57dd768296c37ac52a4660c", "score": "0.5282798", "text": "public function schedule_plan() {\n $data = array(\n array(scheduler::DAILY, 10, 1389394800, 1389394800, 1389434400),\n array(scheduler::DAILY, 15, 1394202900, 1394202900, 1394204400),\n array(scheduler::DAILY, 15, 1394204400, 1394204400, 1394290800),\n array(scheduler::WEEKLY, 4, 1389484800, 1389484800, 1389830400),\n array(scheduler::WEEKLY, 5, 1394118600, 1394118600, 1394150400),\n array(scheduler::WEEKLY, 5, 1394205000, 1394205000, 1394150400),\n array(scheduler::WEEKLY, 5, 1394291400, 1394291400, 1394755200),\n array(scheduler::MONTHLY, 6, 1389052800, 1389052800, 1391644800),\n array(scheduler::MONTHLY, 31, 1391212800, 1391212800, 1393545600),\n array(scheduler::MONTHLY, 31, 1454284800, 1454284800, 1456704000),\n array(scheduler::MONTHLY, 29, 1394041665, 1394041665, 1396051200),\n array(scheduler::MONTHLY, 1, 1394041665, 1394041665, 1396310400),\n array(scheduler::MONTHLY, 5, 1394041665, 1394041665, 1393977600),\n array(scheduler::HOURLY, 1, 1427346000, 1427346793, 1427349600),\n array(scheduler::HOURLY, 1, 1427410800, 1427410800, 1427414400),\n array(scheduler::HOURLY, 8, 1427446800, 1427454000, 1427472000),\n array(scheduler::HOURLY, 8, 1427472000, 1427472000, 1427500800),\n array(scheduler::MINUTELY, 1, 1427559300, 1427559300, 1427559360),\n array(scheduler::MINUTELY, 1, 1427561940, 1427561940, 1427562000),\n array(scheduler::MINUTELY, 15, 1427556600, 1427556665, 1427557500),\n array(scheduler::MINUTELY, 15, 1427557500, 1427557500, 1427558400),\n );\n return $data;\n }", "title": "" }, { "docid": "d3f0910b5c792c26663cd37858acad5f", "score": "0.5280717", "text": "public function schedule($schedule): void;", "title": "" }, { "docid": "f9f05c7cc9542da3532375399c26f8d2", "score": "0.52705866", "text": "function schedule_details($selected_parameter) {\n global $list_master;\n foreach ($list_master as $role => $people) {\n foreach ($people as $person => $list_core) {\n // selected parameter\n if ($selected_parameter == $role) {\n echo \"<h3>{$person}</h3>\";\n if (!empty($list_core['phone'])) {\n echo \"<li>\".$list_core['phone'].\"</li>\";\n }\n if (!empty($list_core['email'])) {\n echo \"<li>\".$list_core['email'].\"</li>\";\n }\n if (!empty($list_core['website'])) {\n echo \"<li><a href=\\\"\".$list_core['website'].\"\\\" target=\\\"_blank\\\">\".$list_core['website'].\"</a></li>\";\n }\n $list_master_teaching_schedule = array();\n $list_master_office_hours = array();\n // schedule factoring \"schedule times\" should be cool because its only being practically called here and for the two schedules\n foreach ($list_core as $core_one => $schedule_times) {\n // try to find teaching times\n if ($core_one == \"teaching_schedule\") {\n foreach ($schedule_times as $day => $list_period_structure) {\n foreach ($list_period_structure as $nullCheck_key_period => $scheduled_period) {\n if (!empty($scheduled_period)) {\n $list_master_teaching_schedule['teaching_schedule'][$day][] = $scheduled_period;\n }\n }\n }\n } // /teaching schedule\n\n // if office hours exist\n if ($core_one == \"office_hours\") {\n foreach ($schedule_times as $day => $list_period_structure) {\n foreach ($list_period_structure as $slot => $list_ports) {\n foreach ($list_ports as $port => $time) {\n if (!empty($time)) {\n $list_master_office_hours[$day][$slot][$port] = $time;\n }\n }\n }\n }\n } // /office hours\n }// schedule factoring\n\n\n if (!empty($list_master_teaching_schedule)) {\n echo \"<h4>Teaching Schedule</h4>\";\n echo \"<table>\";\n foreach ($list_master_teaching_schedule as $null_name => $list_dayTime) {\n foreach ($list_dayTime as $day => $list_period) {\n echo \"<tr>\";\n echo \"<td>{$day}</td>\";\n echo \"<td>\";\n foreach ($list_period as $period_slot => $value_period) {\n if (!empty($value_period)) {\n echo $value_period;\n if ($value_period !== end($list_period)) {\n echo \", \";\n }\n }\n }\n echo \"<td>\";\n echo \"</tr>\";\n }\n }\n echo \"</table>\";\n }\n\n // print office hours\n if (!empty($list_master_office_hours)) {\n echo \"<h4>Office Hours</h4>\";\n foreach ($list_master_office_hours as $day => $list_slot) {\n echo \"<h5>{$day}</h5>\";\n foreach ($list_slot as $slot => $list_port) {\n foreach ($list_port as $port => $time) {\n $time = date('g:i a', strtotime($time));\n echo $time;\n if ($port == \"start\") {\n echo \" to \";\n }\n if ($port == \"end\") {\n echo \"<br>\";\n }\n }\n }\n }\n } // print office hours\n } // if argument == argument\n } // loop role people\n } // loop list_master\n }", "title": "" }, { "docid": "036a99040282d8c69d3e01f84cbd74a5", "score": "0.52684695", "text": "public function getSchedule()\n {\n return $this->plg_schedule;\n }", "title": "" }, { "docid": "436ae7fc317be209a72ac467374da2e8", "score": "0.52585405", "text": "public function scheduleAction()\n\t{\n\t\t// If a user is not in session\n\t\t$user = $this->currentSessionUser();\n\t\tif (!isset($user)) {\n\t\t\t// Redirect to the login view\n\t\t\treturn $this->redirectToLoginPage();\n\t\t}\n\t\t// Prepare the layout\n\t\t$this->prepareLayout($this->layout(), $user);\n\t\t// Get the user's schedule\n\t\t$schedule = $this->getUserSchedule($user);\n\t\t// If the user submitted changes\n\t\tif (\n\t\t\t $this->request->isPost()\n\t\t\t&& ($this->params('mode') === 'edit')\n\t\t) {\n\t\t\t// Add the availability to the schedule\n\t\t\t$params = array_values($this->request->getPost()->toArray());\n\t\t\tlist($day, $startTime, $endTime, $addRemove) = $params;\n\t\t\ttry {\n\t\t\t\t$schedule->setAvailability(\n\t\t\t\t\t(int) $day,\n\t\t\t\t\t(int) $startTime,\n\t\t\t\t\t(int) $endTime,\n\t\t\t\t\t($addRemove == 'add')\n\t\t\t\t);\n\t\t\t} catch (InvalidArgumentException $e) {\n\t\t\t\treturn [\n\t\t\t\t\t'error' => $e->getMessage(),\n\t\t\t\t\t'user' => $user,\n\t\t\t\t\t'schedule' => $schedule,\n\t\t\t\t];\n\t\t\t}\n\t\t\t// Persist the changes\n\t\t\t$this->save($schedule);\n\t\t\t// Redirect to the schedule page\n\t\t\t$params = [\n\t\t\t\t'id' => $user->getId(),\n\t\t\t\t'action' => 'schedule',\n\t\t\t];\n\t\t\treturn $this->redirect()->toRoute('users', $params);\n\t\t}\n\t\t// Show the user their schedule\n\t\treturn [\n\t\t\t'schedule' => $schedule,\n\t\t\t'user' => $user,\n\t\t];\n\t}", "title": "" }, { "docid": "6cf8829b2adb7bd9c4981294867598e7", "score": "0.52574646", "text": "private function Mission() {}", "title": "" }, { "docid": "351ea76268d55f78b5dbebc4c1e5afae", "score": "0.5250813", "text": "public function updateSchedule()\n {\n $this->aParams = array_filter($this->aParams);\n $aValidationResult = Validations::validateScheduleInputs($this->aParams);\n if ($aValidationResult['bResult'] === true) {\n\n // if (empty($this->aParams['bReschedule']) === false && $this->aParams['bReschedule'] == true && $this->aParams['iRemainingSlots'] < $this->aParams['iSlots']) {\n // $aResult = array(\n // 'bResult' => false,\n // 'sMsg' => 'Cannot update schedules. Inform the enrolees first.'\n // );\n // echo json_encode($aResult);\n // exit();\n // }\n\n // Declare an array with keys equivalent to that inside the database.\n $aDatabaseColumns = array(\n 'iScheduleId' => 'id',\n 'iInstructorId' => 'instructorId',\n 'iCoursePrice' => 'coursePrice',\n 'iVenueId' => 'venueId',\n 'iCourseId' => 'courseId',\n 'sStart' => 'fromDate',\n 'sEnd' => 'toDate',\n 'iSlots' => 'numSlots',\n 'iRecurrence' => 'recurrence',\n 'iNumRepetitions' => 'numRepetitions'\n );\n\n Utils::renameKeys($this->aParams, $aDatabaseColumns);\n Utils::sanitizeData($this->aParams);\n $this->aParams['toDate'] = $this->changeEndDateIfRecurring($this->aParams);\n $this->aParams['remainingSlots'] = $this->getRemainingSlots($this->aParams);\n\n if ($this->aParams['remainingSlots'] < 0) {\n $aResult = array(\n 'bResult' => false,\n 'sElement' => '.remainingSlots',\n 'sMsg' => 'Remaining slots cannot be less than ' . $this->aParams['remainingSlots'] . '.'\n );\n echo json_encode($aResult);\n exit();\n }\n\n $aUnnecessaryKeys = array(\n 'iRemainingSlots',\n 'bReschedule'\n );\n Utils::unsetKeys($this->aParams, $aUnnecessaryKeys);\n\n // Perform update.\n $iQuery = $this->executeScheduleUpdate($this->aParams);\n\n if ($iQuery > 0) {\n $aResult = array(\n 'bResult' => true,\n 'sMsg' => 'Schedule updated!'\n );\n } else {\n $aResult = array(\n 'bResult' => false,\n 'sMsg' => 'An error has occured.'\n );\n }\n } else {\n $aResult = $aValidationResult;\n }\n\n echo json_encode($aResult);\n }", "title": "" }, { "docid": "5cb229e5983184160b48d5d996acf7ed", "score": "0.5248811", "text": "function showSchedulePage() {\n\t\t$this->setCacheLevelNone();\n\t\t\n\t\t$this->getEngine()->assign('oReports', utilityOutputWrapper::wrap($this->getModel()->getScheduledReports()));\n\t\t$this->getEngine()->assign('view', 'schedule');\n\n\t\t$this->render($this->getTpl('reports'));\n\t}", "title": "" }, { "docid": "eaf428f01e621dc455bf118994fb753b", "score": "0.5232529", "text": "public function deleteSchedule();", "title": "" }, { "docid": "ee60a53f6ddb7cc1b84d6030b54aed6c", "score": "0.52156365", "text": "public function getScheduleId()\n {\n return $this->schedule_id;\n }", "title": "" }, { "docid": "82250bb6f52c10b3f3ebb8efec2fc39e", "score": "0.5214381", "text": "public function indexAction()\n {\n if (!$this->performer()->isOwner(false)) {\n return $this->performer()->goAsOwner();\n }\n $user = $this->performer()->getAsUser();\n $objectManager = $this->getEntityManager();\n\n $request = $this->getRequest();\n if ($request->isPost()) {\n $data = \\Zend\\Json\\Json::decode($request->getPost('schedules'));\n if (is_array($data)) {\n $removedEvents = array_pop($data);\n $removedShedules = $objectManager\n ->getRepository('AdminPlatform\\Entity\\Shedules')\n ->findBy(array('id' => $removedEvents));\n foreach ($removedShedules as $item) {\n $objectManager->remove($item);\n }\n foreach ($data as $event) {\n\n $shedul = $objectManager->find('AdminPlatform\\Entity\\Shedules', $event->id);\n $shedul = ($shedul) ? $shedul : new Shedules();\n $shedul->setUser($user);\n $shedul->setTitle($event->title);\n $shedul->setToDate(new \\DateTime($event->to));\n $shedul->setFromDate(new \\DateTime($event->from));\n $shedul->setFreeDay($event->freeDay);\n $objectManager->persist($shedul);\n }\n try {\n $objectManager->flush();\n $this->flashMessenger()->addMessage('Your schedule was saved successfully!');\n } catch (Exception $ex) {\n $this->flashMessenger()->addErrorMessage('Unexpected error!');\n }\n } else {\n $this->flashMessenger()->addWarningMessage('Your data are empty!');\n }\n }\n $events = $objectManager->getRepository('AdminPlatform\\Entity\\Shedules')->findBy(array('user' => $user));\n return array('events' => $events);\n }", "title": "" }, { "docid": "ad9fc0803c5f12f8de165d2b79fc4025", "score": "0.5210441", "text": "protected function schedule(Schedule $schedule)\n {\n // $schedule->call(function () {\n \n // DB::table('shipper')->where('account_id', '21')->update(['active' => '0']);\n // })->everyMinute();\n }", "title": "" }, { "docid": "ea96b355c2c9035225d2893bfc60689c", "score": "0.5194348", "text": "public function viewscheduleAction(){\n\t\t $this->_helper->layout->setLayout('popup');\n\t\t $this->view->routesettinglist = $this->ModelObj->getDriverRouteList();\n\t }", "title": "" }, { "docid": "74dbff2e1e3629050f80e73d8ef0d0d8", "score": "0.5187174", "text": "function get_name() {\n\t\treturn \"Day Schedule\";\n\t}", "title": "" }, { "docid": "5505b41e8c9b01e2ef49a081c95639bc", "score": "0.51841027", "text": "public function schedule(){\n $shifts = DB::table('shift_defination')->get();\n\n $nextSunday = date(\"Y-m-d\", strtotime('next sunday'));\n\n Log::info('user ID is '. Auth::user()->id);\n $nextSunday = date(\"Y-m-d\", strtotime('next sunday'));\n $date = new \\DateTime($nextSunday);\n $weekNumber = $date->format('W');\n Log::info('->>weekNumber is '. $weekNumber);\n Log::info('\\n\\n\\n\\n');\n $caller_shifts = \\App\\CallerShift::\n where('user_id', Auth::user()->id)\n ->where('weeknumber', $weekNumber)\n ->get();\n Log::info('::::::::::::shifts is '. $caller_shifts);\n\n $currentShifts = DB::table('caller_shifts')\n ->select('shift_id', DB::raw('count(*) as total'))\n ->where('weeknumber', $weekNumber)\n ->whereNull('deleted_at')\n ->groupBy('shift_id')\n ->get();\n $shiftAvailability = array();\n Log::info($currentShifts);\n foreach($currentShifts as $shift)\n {\n $shiftInfo = new \\stdClass();\n $shiftInfo->total = $shift->total;\n $shiftInfo->text = 'Planned';\n $shiftAvailability[$shift->shift_id] = $shiftInfo;\n }\n\n return view('schedule' , ['page' => 'schedule',\n 'shifts' => $shifts,\n 'mailed' => false,\n 'saved' => false,\n 'shiftAvailability' => $shiftAvailability,\n 'caller_shifts' => $caller_shifts\n ]);\n }", "title": "" }, { "docid": "245ab853e0b81678c78d8ef0ccdc5b3a", "score": "0.5173939", "text": "public function getActiveScheduleEmails();", "title": "" }, { "docid": "b3bac70c28811d14a2186a826dd68c6e", "score": "0.5169885", "text": "function reschedule();", "title": "" }, { "docid": "94ad0f003a89b3b8e14920826d9b26d7", "score": "0.51687753", "text": "function loadApproveStaffSchedule($isCreated = false) \n {\n\t \n // GROUP 2: STAFF AND ABOVE ONLY. (approve HRDB form)\n if ((( $this->accessPrivManager->hasSitePriv() ) || ( $this->accessPrivManager->isStaff($this->viewer->getID()) )) ){\t \n\t \n\t \n\t // set the pageCallBack to be without any additional parameters\n\t // (an AdminBox needs this so Language Switching on a page doesn't\n\t // pass a previous operations)\n\t $parameters = array('PERSON_ID'=>$this->PERSON_ID, 'PROVINCE_ID'=>$this->PROVINCE_ID, 'GENDER_ID'=>$this->GENDER_ID, 'STAFF_ID'=>$this->STAFF_ID, 'REGION_ID'=>$this->REGION_ID, 'EMERG_ID'=>$this->EMERG_ID, 'ASSIGNSTATUS_ID'=>$this->ASSIGNSTATUS_ID, 'CAMPUS_ID'=>$this->CAMPUS_ID, 'ASSIGNMENT_ID'=>$this->ASSIGNMENT_ID, 'VIEWER_ID'=>$this->VIEWER_ID, 'ACCESS_ID'=>$this->ACCESS_ID, 'YEAR_ID'=>$this->YEAR_ID, 'PERSON_YEAR_ID'=>$this->PERSON_YEAR_ID, 'STAFFSCHEDULE_ID'=>$this->STAFFSCHEDULE_ID, 'STAFFACTIVITY_ID'=>$this->STAFFACTIVITY_ID, 'ACTIVITYTYPE_ID'=>$this->ACTIVITYTYPE_ID, 'STAFFSCHEDULETYPE_ID'=>$this->STAFFSCHEDULETYPE_ID, 'ACTIVITYSCHEDULE_ID'=>$this->ACTIVITYSCHEDULE_ID, 'FIELD_ID'=>$this->FIELD_ID, 'FIELDVALUE_ID'=>$this->FIELDVALUE_ID, 'FIELDTYPE_ID'=>$this->FIELDTYPE_ID, 'DATATYPE_ID'=>$this->DATATYPE_ID, 'COUNTRY_ID'=>$this->COUNTRY_ID);//[RAD_CALLBACK_PARAMS]\n\t $pageCallBack = $this->getCallBack(modulecim_hrdb::PAGE_APPROVESTAFFSCHEDULE, $this->sortBy, $parameters);\n\t $this->setPageCallBack( $pageCallBack ); \n\t \n\t \n\t $parameters = array('PERSON_ID'=>$this->PERSON_ID, 'PROVINCE_ID'=>$this->PROVINCE_ID, 'GENDER_ID'=>$this->GENDER_ID, 'STAFF_ID'=>$this->STAFF_ID, 'REGION_ID'=>$this->REGION_ID, 'EMERG_ID'=>$this->EMERG_ID, 'ASSIGNSTATUS_ID'=>$this->ASSIGNSTATUS_ID, 'CAMPUS_ID'=>$this->CAMPUS_ID, 'ASSIGNMENT_ID'=>$this->ASSIGNMENT_ID, 'VIEWER_ID'=>$this->VIEWER_ID, 'ACCESS_ID'=>$this->ACCESS_ID, 'YEAR_ID'=>$this->YEAR_ID, 'PERSON_YEAR_ID'=>$this->PERSON_YEAR_ID, 'STAFFSCHEDULE_ID'=>$this->STAFFSCHEDULE_ID, 'STAFFACTIVITY_ID'=>$this->STAFFACTIVITY_ID, 'ACTIVITYTYPE_ID'=>$this->ACTIVITYTYPE_ID, 'STAFFSCHEDULETYPE_ID'=>$this->STAFFSCHEDULETYPE_ID, 'ACTIVITYSCHEDULE_ID'=>$this->ACTIVITYSCHEDULE_ID, 'FIELD_ID'=>$this->FIELD_ID, 'FIELDVALUE_ID'=>$this->FIELDVALUE_ID, 'FIELDTYPE_ID'=>$this->FIELDTYPE_ID, 'DATATYPE_ID'=>$this->DATATYPE_ID, 'COUNTRY_ID'=>$this->COUNTRY_ID);//[RAD_CALLBACK_PARAMS]\n\t $basic_form_parameters = array('PERSON_ID'=>$this->PERSON_ID, 'STAFF_ID'=>$this->STAFF_ID, 'ASSIGNSTATUS_ID'=>$this->ASSIGNSTATUS_ID, 'CAMPUS_ID'=>$this->CAMPUS_ID, 'ASSIGNMENT_ID'=>$this->ASSIGNMENT_ID, 'VIEWER_ID'=>$this->VIEWER_ID, 'ACCESS_ID'=>$this->ACCESS_ID, 'STAFFSCHEDULE_ID'=>$this->STAFFSCHEDULE_ID, 'STAFFSCHEDULETYPE_ID'=>$this->STAFFSCHEDULETYPE_ID, 'FIELD_ID'=>$this->FIELD_ID, 'FIELDVALUE_ID'=>$this->FIELDVALUE_ID);//[RAD_CALLBACK_PARAMS]\n\t $activity_form_parameters = array('PERSON_ID'=>$this->PERSON_ID, 'STAFF_ID'=>$this->STAFF_ID, 'CAMPUS_ID'=>$this->CAMPUS_ID, 'ASSIGNMENT_ID'=>$this->ASSIGNMENT_ID, 'VIEWER_ID'=>$this->VIEWER_ID, 'ACCESS_ID'=>$this->ACCESS_ID, 'STAFFSCHEDULE_ID'=>$this->STAFFSCHEDULE_ID, 'STAFFACTIVITY_ID'=>$this->STAFFACTIVITY_ID, 'ACTIVITYTYPE_ID'=>$this->ACTIVITYTYPE_ID, 'STAFFSCHEDULETYPE_ID'=>$this->STAFFSCHEDULETYPE_ID, 'ACTIVITYSCHEDULE_ID'=>$this->ACTIVITYSCHEDULE_ID);//[RAD_CALLBACK_PARAMS]\n\t \n\t $formAction = $this->getCallBack(modulecim_hrdb::PAGE_APPROVESTAFFSCHEDULE, $this->sortBy, $parameters );\n\t $basicFormAction = $this->getCallBack(modulecim_hrdb::PAGE_APPROVESTAFFSCHEDULE, $this->sortBy, $basic_form_parameters );\n\t $activityFormAction = $this->getCallBack(modulecim_hrdb::PAGE_APPROVESTAFFSCHEDULE, $this->sortBy, $activity_form_parameters );\n\t\n\t $pageCallBack = $this->getCallBack(modulecim_hrdb::PAGE_APPROVESTAFFSCHEDULE, $this->sortBy, $parameters);\n\t $this->setPageCallBack( $pageCallBack ); \n\t \n\t // if this pageDisplay object isn't already created then \n\t// if ( !$isCreated ) {\n\t// \t $disableHeading = false;\n\t// \t $showActivityForm = true;\n\t\t $showHidden = false;\t\t// TODO: create condition for this based on privilege level\n\t // create a new pageDisplay object\t\t\t\t\t\t\t\t\t\t \n\t \t\t$this->pageDisplay = new FormProcessor_ApproveStaffSchedule( $this->moduleRootPath, $this->viewer, $formAction, $basicFormAction, $activityFormAction, $this->sortBy, $this->PERSON_ID, $this->STAFFSCHEDULETYPE_ID, $this->STAFFSCHEDULE_ID, $this->FIELDVALUE_ID, $this->FIELD_ID, $this->STAFFACTIVITY_ID, $showHidden);//[RAD_FORMINIT_FOREIGNKEY_INIT] \n\t\n\t// } else {\n\t// \n\t// // otherwise just update the formAction value\n\t// $this->pageDisplay->setFormAction( $formAction, $basicFormAction, $activityFormAction);\n\t// } \n\t \n\t $links = array();\n\t $continueLink = $this->getCallBack( modulecim_hrdb::PAGE_FORMAPPROVALLISTING, \"\", $parameters );\n\t $links[\"cont\"] = $continueLink;\t \n\t \n\t /**** ACTIVITY FORM SUB-PAGE LINKS INIT ***/\n\t $activityFormLinks = array(); \n\t \n\t// $parameters = array('PERSON_ID'=>$this->PERSON_ID, 'PROVINCE_ID'=>$this->PROVINCE_ID, 'GENDER_ID'=>$this->GENDER_ID, 'STAFF_ID'=>$this->STAFF_ID, 'REGION_ID'=>$this->REGION_ID, 'EMERG_ID'=>$this->EMERG_ID, 'ASSIGNSTATUS_ID'=>$this->ASSIGNSTATUS_ID, 'CAMPUS_ID'=>$this->CAMPUS_ID, 'ASSIGNMENT_ID'=>$this->ASSIGNMENT_ID, 'VIEWER_ID'=>$this->VIEWER_ID, 'ACCESS_ID'=>$this->ACCESS_ID, 'YEAR_ID'=>$this->YEAR_ID, 'PERSON_YEAR_ID'=>$this->PERSON_YEAR_ID, 'STAFFSCHEDULE_ID'=>$this->STAFFSCHEDULE_ID, 'STAFFACTIVITY_ID'=>$this->STAFFACTIVITY_ID, 'ACTIVITYTYPE_ID'=>$this->ACTIVITYTYPE_ID, 'STAFFSCHEDULETYPE_ID'=>$this->STAFFSCHEDULETYPE_ID, 'ACTIVITYSCHEDULE_ID'=>$this->ACTIVITYSCHEDULE_ID, 'FIELD_ID'=>$this->FIELD_ID, 'FIELDVALUE_ID'=>$this->FIELDVALUE_ID, 'FIELDTYPE_ID'=>$this->FIELDTYPE_ID, 'DATATYPE_ID'=>$this->DATATYPE_ID, 'COUNTRY_ID'=>$this->COUNTRY_ID);//[RAD_CALLBACK_PARAMS]\n\t// $editLink = $this->getCallBack( modulecim_hrdb::PAGE_APPROVESTAFFSCHEDULE, $this->sortBy, $parameters );\n\t// $editLink .= \"&\". modulecim_hrdb::STAFFACTIVITY_ID . \"=\";\n\t// $activityFormLinks[ \"edit\" ] = $editLink;\n\t// \n\t// // NOTE: delete link is same as edit link for an AdminBox\n\t// $activityFormLinks[ \"del\" ] = $editLink;\n\t\n\t/*[RAD_LINK_INSERT]*/\n\t\n\t $parameters = array('PERSON_ID'=>$this->PERSON_ID, 'PROVINCE_ID'=>$this->PROVINCE_ID, 'GENDER_ID'=>$this->GENDER_ID, 'STAFF_ID'=>$this->STAFF_ID, 'REGION_ID'=>$this->REGION_ID, 'EMERG_ID'=>$this->EMERG_ID, 'ASSIGNSTATUS_ID'=>$this->ASSIGNSTATUS_ID, 'CAMPUS_ID'=>$this->CAMPUS_ID, 'ASSIGNMENT_ID'=>$this->ASSIGNMENT_ID, 'VIEWER_ID'=>$this->VIEWER_ID, 'ACCESS_ID'=>$this->ACCESS_ID, 'YEAR_ID'=>$this->YEAR_ID, 'PERSON_YEAR_ID'=>$this->PERSON_YEAR_ID, 'STAFFSCHEDULE_ID'=>$this->STAFFSCHEDULE_ID, 'STAFFACTIVITY_ID'=>$this->STAFFACTIVITY_ID, 'ACTIVITYTYPE_ID'=>$this->ACTIVITYTYPE_ID, 'STAFFSCHEDULETYPE_ID'=>$this->STAFFSCHEDULETYPE_ID, 'ACTIVITYSCHEDULE_ID'=>$this->ACTIVITYSCHEDULE_ID, 'FIELD_ID'=>$this->FIELD_ID, 'FIELDVALUE_ID'=>$this->FIELDVALUE_ID, 'FIELDTYPE_ID'=>$this->FIELDTYPE_ID, 'DATATYPE_ID'=>$this->DATATYPE_ID, 'COUNTRY_ID'=>$this->COUNTRY_ID);//[RAD_CALLBACK_PARAMS]\n\t $sortByLink = $this->getCallBack( modulecim_hrdb::PAGE_APPROVESTAFFSCHEDULE, '', $parameters );\n\t $sortByLink .= \"&\".modulecim_hrdb::SORTBY.\"=\";\n\t $activityFormLinks[\"sortBy\"] = $sortByLink;\n\t\n\t $this->pageDisplay->setLinks( $links, $activityFormLinks );\t // $links, $basicFormLinks, (DON'T NEED LINKS FOR SINGLE FORM PORTION) \n\n }\n else\n {\n\t $this->pageDisplay = new page_NotAuthorized($this->moduleRootPath, $this->viewer); \n } \t \n\t \n \n }", "title": "" }, { "docid": "a97017019971c9b8f23b72280cda5993", "score": "0.51615244", "text": "public static function instanceStarted() { \n return self::__get_routing('instanceStarted','instance_started',func_get_args());\n }", "title": "" }, { "docid": "a1349d20e63dd53e6386ca5bca29dfc3", "score": "0.5157286", "text": "public function setScheduler() {}", "title": "" }, { "docid": "0f3b98d9811cd47fe71193e649e5194f", "score": "0.51505786", "text": "public function run()\n {\n //\n $now = new Carbon();\n $year = $now->subDay()->format('Y-m-d');\n $now->hour = 7;\n $now->minute = 00;\n $now->second = 00;\n $hour = $now;\n\n $schedule = new Schedule();\n $schedule->hour = $hour->addHour()->format('H:i:s');\n $schedule->date = $year;\n $schedule->state = 'open';\n $schedule->teacher_id = 1;\n $schedule->type_class_id = 1;\n $schedule->save();\n\n $schedule = new Schedule();\n $schedule->hour = $hour->addHour()->format('H:i:s');\n $schedule->date = $year;\n $schedule->state = 'open';\n $schedule->teacher_id = 2;\n $schedule->type_class_id = 1;\n $schedule->save();\n\n $schedule = new Schedule();\n $schedule->hour = $hour->addHour()->format('H:i:s');\n $schedule->date = $year;\n $schedule->state = 'open';\n $schedule->teacher_id = 3;\n $schedule->type_class_id = 1;\n $schedule->save();\n\n }", "title": "" }, { "docid": "aaa507bd85ef090baf12058567b3447a", "score": "0.5149645", "text": "public function getSchedule() {\n return $this->schedule;\n }", "title": "" }, { "docid": "b971489c4f750efa760f523431753d96", "score": "0.5144981", "text": "function generateEvents()\n\t{\n\t\tprint (\"<br /> An event will be generated for \" . $this->begining_date . \" to \" .$this->begining_end_date);\n\t\tinsertRecord($this->place,$this->begining_date,$this->time_start,$this->time_end,$this->begining_end_date,$this->begining_end_date,$this->confirm,$this->activity, $this->media);\n\t\t$this->bumpDates();\n\t\t\n\t\twhile ($this->julian_to_date <= $this->julian_final_date)\n\t\t{\n\t\tprint(\"<br /> Another event will be generated for \" . $this->now_from . \" to \" .$this->now_to);\n\t\tinsertRecord($this->place,$this->now_from,$this->time_start,$this->time_end,$this->now_to,$this->now_from,$this->confirm,$this->activity, $this->media);\n\t\t$this->bumpDates();\n\t\t} \n\t}", "title": "" }, { "docid": "0c0e3c48c4d832d6bd1069e92a098199", "score": "0.51447994", "text": "public function __construct() {\n// Commented out to avoid spinning up unneccary tasks for admin\n// Manually call the generateNewTaskID() function to set...\n// $this->task_id = $this->generateNewTaskID();\n }", "title": "" }, { "docid": "bec5db2a3e10e3fae8eecb0229bd9413", "score": "0.51425815", "text": "public function NextDepartures() {\r\n \r\n }", "title": "" }, { "docid": "464b2d14336f2b54736e6ee8f10ac34a", "score": "0.51423156", "text": "public function sendAllSchedule();", "title": "" }, { "docid": "cbeb92a2a3245dcb89009fd084664cfe", "score": "0.5136062", "text": "public function run()\n {\n $Schedule1=Schedule::create([\n 'id_class' => '1',\n\t\t'time_start' => '2021-04-21 23:46:00',\n\t\t'time_end' => '2021-04-21 23:46:00',\n\t\t'day' => '2021-04-21',\n ]);\n\n $Schedule1=Schedule::create([\n 'id_class' => '2',\n\t\t'time_start' => '2021-04-22 23:46:00',\n\t\t'time_end' => '2021-04-22 23:46:00',\n\t\t'day' => '2021-04-22',\n ]);\n\n $Schedule1=Schedule::create([\n 'id_class' => '1',\n\t\t'time_start' => '2021-04-28 23:46:00',\n\t\t'time_end' => '2021-04-28 23:46:00',\n\t\t'day' => '2021-04-28',\n ]);\n\n }", "title": "" }, { "docid": "326a1491e8a9178c3cb57b4f19e7ae13", "score": "0.5132691", "text": "public function getSchedules()\n {\n return $this->schedules;\n }", "title": "" }, { "docid": "530dafdc05141908f7ec06b77ecdc898", "score": "0.51210773", "text": "private function get_schedule()\n {\n return new Schedule($this->m_client, $this->m_profile, $this);\n }", "title": "" }, { "docid": "d30945e0f57673bcffdc4b70850050df", "score": "0.51191694", "text": "public function audit_schedule()\n {\n \t\t$audits=array();\n \n //$this->teamDivId\n //also store AVAILABLE timeslots\n $free_ts=array();\n if(!is_array($this->timeslots))\n {\n\t\t\t$this->timeslots=array();\n\t\t\t\n }\n foreach($this->timeslots as $ts)\n \tif($ts['game_id']==-1)\n \t\t$free_ts[]=$ts;\n \t\n //instead we should loop through ACTUAL GAMES \n \n //and hence recreate these arrays\n $audits['currentTimeslots'] = $free_ts;\n $stats = array();\n $row=0;\n \n \t\n $teamMatchups=array();\n $full_fmt='D, M j Y';\n $short_fmt='M j, Y';\n $plain_fmt='Y-m-d';\n // $home_count=array();//hometeam->awayteam->count\n $away_count=array();//awayteam -> hometeam->count\n\t\t$div_match_count=array();\n\t\t$div_date_count=array();\n\t\t$div_venue_count=array();\n\t\t//reset these, before were used just for match balance\n \t\t$this->awayGames=array();\n $this->homeGames=array();\n $date_stats = array();\n \n $venDistanceStats=array();\n // $venPairsUsed=array();\n \n /**************** venue distance stats ***************/\n $this->buildLinkedListGamseAdj();\n \n \n \t$vvAdjGameCount=array();// for bb_games\n \t$vvAdjTeamCount=array();// for bb_teams\n \t$vvNajTeamCount=array();// for day_teams\n \tforeach($this->llGamesAdj as $fg_idx => $afterGames)\n \t{\n \t\t//venue of first game\n\t\t\t$f_vid = $this->createdGames[$fg_idx]['venue_id'];\n\t\t\tif(!isset($vvAdjGameCount[$f_vid])) $vvAdjGameCount[$f_vid]=array();\n\t\t\tif(!isset($vvAdjTeamCount[$f_vid])) $vvAdjTeamCount[$f_vid]=array();\n \n\t\t\t//count how many games came after this one, that were adjacent but it depends on which venue they were on\n\t\t\tforeach($afterGames as $sg_idx)\n\t\t\t{\n\t\t\t\t//venue of second game\n\t\t\t\t$s_vid = $this->createdGames[$sg_idx]['venue_id'];\n\t\t\t\t\n\t\t\t\tif(!isset($vvAdjGameCount[$f_vid][$s_vid]))$vvAdjGameCount[$f_vid][$s_vid]=0;\n\t\t\t\tif(!isset($vvAdjTeamCount[$f_vid][$s_vid]))$vvAdjTeamCount[$f_vid][$s_vid]=0;\n\t\t\t\t//count up one more game that was adjacent\n\t\t\t\t$vvAdjGameCount[$f_vid][$s_vid]++;\n\t\t\t\t\n\t\t\t\t//this may be zero: but just tack on teh count of team overlap\n\t\t\t\t$vvAdjTeamCount[$f_vid][$s_vid] += $this->countTeamsInCommon($fg_idx,$sg_idx);\n\t\t\t\t\n\t\t\t}\t\t\t\n \t}\n \t\n \t//non adj, but same day\n \tforeach($this->llGamesNaDay as $fg_idx => $afterGames)\n \t{\n\t\t\t$f_vid = $this->createdGames[$fg_idx]['venue_id'];\n\t\t\tif(!isset($vvNajTeamCount[$f_vid])) $vvNajTeamCount[$f_vid]=array();\n\t\t\tforeach($afterGames as $sg_idx)\n\t\t\t{\n\t\t\t\t//venue of second game\n\t\t\t\t$s_vid = $this->createdGames[$sg_idx]['venue_id'];\n\t\t\t\t//so we have two games, one game is after the second, on same day and non adjacent\n\t\t\t\tif(!isset($vvNajTeamCount[$f_vid][$s_vid]))$vvNajTeamCount[$f_vid][$s_vid]=0;\n\t\t\t\t//starts at zero, now add the teams that had to move\n\t\t\t\t$vvNajTeamCount[$f_vid][$s_vid] += $this->countTeamsInCommon($fg_idx,$sg_idx);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n \t}\n \t\n \t//initializse the venue distance stats\n //make sure to avoid duplicate mirror records by always having\n //smallest id first\n foreach($this->venueDistanceMatrix as $first_vid=>$data)\n {\n \tif(!isset($vvAdjTeamCount[$first_vid])) $vvAdjTeamCount[$first_vid]=array();\n \tif(!isset($vvAdjGameCount[$first_vid])) $vvAdjGameCount[$first_vid]=array();\n \tif(!isset($vvNajTeamCount[$first_vid])) $vvNajTeamCount[$first_vid]=array();\n\t\t\tforeach($data as $second_vid=>$distance)\n\t\t\t{\n\t\t\t\t//changed from one dec pt to zero: so round it off\n\t\t\t\tif(!isset($vvAdjTeamCount[$first_vid][$second_vid] )) $vvAdjTeamCount[$first_vid][$second_vid] = 0;\n\t\t\t\tif(!isset($vvAdjGameCount[$first_vid][$second_vid] )) $vvAdjGameCount[$first_vid][$second_vid] = 0;\n\t\t\t\tif(!isset($vvNajTeamCount[$first_vid][$second_vid] )) $vvNajTeamCount[$first_vid][$second_vid] = 0;\n \t\t\t\t$distance=round($distance);\n \t\t\t\t//if($distance != 0)\n \t\t\t\t\t//$distance=number_format($distance,1,'.',',');\n \t\t\t\t\n\t\t\t\t$venDistanceStats[]=array(\n\t\t\t\t\t'first_venue_id'=>$first_vid\n\t\t\t\t\t,'first_venue'=>$this->venueName[$first_vid]\n\t\t\t\t\t,'second_venue_id'=>$second_vid\n\t\t\t\t\t,'second_venue'=>$this->venueName[$second_vid]\n\t\t\t\t\t,'distance'=>$distance\n\t\t\t\t\t,'bb_teams'=>$vvAdjTeamCount[$first_vid][$second_vid] \n\t\t\t\t\t,'bb_games'=>$vvAdjGameCount[$first_vid][$second_vid]\n\t\t\t\t\t,'day_teams'=>$vvNajTeamCount[$first_vid][$second_vid]\n\t\t\t\t); \n\t\t\t}\n }\n \n $audits['auditVenueDist']=$venDistanceStats;\n \n \n \n /**************** main loop on createdGames, that calcs most other stats *************/\n $missing_games=array();\n if(!is_array($this->createdGames )) $this->createdGames =array(); \n \n foreach($this->createdGames as &$g)\n {\n\t\t\tif( $g['timeslot']<0) \n\t\t\t{\n\t\t\t\t$missing_games[]=$g;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t//$vid= $g['venue_id'];\n\t\t\t$ht = $g['home_id']; \n\t\t\t$at = $g['away_id']; \n\t\t\t\n\t\t\t \n\t\t\t\n\t\t\t\n\t\t\tif(!isset($this->homeGames[$ht]))\n \t\t$this->homeGames[$ht]=0;//start at zero\n \t\t\n\t\t\t$this->homeGames[$ht]++;\n\t\t\t\n\t\t\tif(!isset($this->awayGames[$at]))\n \t\t$this->awayGames[$at]=0;\n\t\t\t$this->awayGames[$at]++;\n\t\t\t\n\t\t\t\n\t\t\t$date=$g['date_timestamp'];\n\t\t\t//div\n \n \t \n \t $time_fmt = 'g:i a';\n\n \t //$game['display_date']=date($full_fmt,$date);//deprec\n\t\t if(!array_key_exists($date,$date_stats))\n\t\t \t\t{$date_stats[$date]=0;}\n\n\t\t $date_stats[$date]++;\n \t\n \t if(isset($g['start_time']) && $g['start_time'])//if exists, not unassigned\n \t {\n \t \t $g['display_start_time']=date($time_fmt,$g['start_timestamp'] );\n\t\t }\n\t\t \t\t//now count division stats\n\t\t\n \n\t\t\t\n\t\t\t$v_id = $g['venue_id'];\n\t\t\t//$m_pk = $g['match_pk'];\n\t\t\t\n\t\t\t$h_div=$g['home_div'];\n\t\t\t$a_div=$g['away_div'];\n\t\t\t\n\t\t\t\n\t\t\tif(!isset($div_date_count[$h_div]))\n\t\t\t\t$div_date_count[$h_div]=array();\n\t\t\tif(!isset($div_date_count[$a_div]))\n\t\t\t\t$div_date_count[$a_div]=array();\n\t\t\t\t\n\t\t\tif(!isset($div_date_count[$h_div][$date]))\n\t\t\t\t$div_date_count[$h_div][$date]=0;\n\t\t\tif(!isset($div_date_count[$date][$date]))\n\t\t\t\t$div_date_count[$a_div][$date]=0;\t\n\t\t\t\t\n\t\t\tif(!isset($div_venue_count[$h_div]))\n\t\t\t\t$div_venue_count[$h_div]=array();\n\t\t\tif(!isset($div_venue_count[$a_div]))\n\t\t\t\t$div_venue_count[$a_div]=array();\t\n\t\t\t\t\n\t\t\tif(!isset($div_venue_count[$h_div][$v_id]))\n\t\t\t\t$div_venue_count[$h_div][$v_id]=0;\n\t\t\tif(!isset($div_venue_count[$a_div][$v_id]))\n\t\t\t\t$div_venue_count[$a_div][$v_id]=0;\n\t\t\t\t\n\t\t\t\n\t\t\tif(!isset($div_match_count[$h_div]))\n\t\t\t\t$div_match_count[$h_div]=array();\n\t\t\tif(!isset($div_match_count[$a_div]))\n\t\t\t\t$div_match_count[$a_div]=array();\n\t\t\t\t\n\t\t\t\n\t\t\tif(!isset($div_match_count[$h_div][$a_div]))\n\t\t\t\t$div_match_count[$h_div][$a_div]=0;\n\t\t\tif(!isset($div_match_count[$a_div][$h_div]))\n\t\t\t\t$div_match_count[$a_div][$h_div]=0;\n\t\t\t\t\n\t\t\t$div_match_count[$h_div][$a_div]++;\t\t\n\t\t\t$div_match_count[$a_div][$h_div]++;\n\t\t\t\n\t\t\t$div_date_count[$a_div][$date]++;\n\t\t\t$div_venue_count[$a_div][$v_id]++;\n\t\t\t$div_date_count[$h_div][$date]++;\n\t\t\t$div_venue_count[$h_div][$v_id]++;\n\t\t\t\n }\n \n if(!is_array($this->teamList)) $this->teamList=array();\n $audits['gameStats']=array();\n \n foreach($this->teamList as $division_id => $team_array){\n foreach($team_array as $team_info)\n {\n \t$teamid=$team_info['team_id'];\n \t//$div_name=\n \t\n \tif(!isset($this->homeGames[$teamid]))$this->homeGames[$teamid]=0;// \n \t\t\n \tif(!isset($this->awayGames[$teamid]))$this->awayGames[$teamid]=0;//if no games -> zero so its not blank\n \t\n \t$home = $this->homeGames[$teamid];\n $away = $this->awayGames[$teamid];\n $total= $home + $away;\n $diff = $home - $away;\n if($total !=0)\n {\n $stats[$row]=array( 'name'=> $this->teamName[$teamid], \n 'home'=> $home,\n 'away'=> $away,\n 'total'=>$total , \n 'id' =>$teamid, //depreciated but left in\n 'team_id' =>$teamid, \n 'division_name'=>$this->divNames[$division_id],//=$this->divisions_model->get_division_extended_name($division_id);,\n 'division_id'=>$division_id, \n 'diff'=>$diff\n ); \n $row++;\n }\n }}\n \n $audits['gameStats'] = $stats;\n\n //debug: final vardump statements\n $vstats = array();\n //$row=0;\n \n $teamVenueJoin=array();\n \n \n \n foreach($this->venueCount as $vid => $list)\n {//assumes there is no venueid zero\n \t$vid=(int)$vid;\n \n\t\t\t\n if( isset($this->venueCount[$vid]['total']))\n {\n $total = $this->venueCount[$vid]['total'];\n $vstats[] = array('venue_id'=>$vid, 'total'=>$total, 'venue_name' => $this->venueName[$vid] );\n // $row++;\n }\n \n //now loop for each teamid\n foreach($this->venueCount[$vid] as $teamid => $count)\n {\n if($teamid != 'total')\n { \n $teamVenueJoin[] = array( 'venue_id'=>$vid, 'team_id'=>$teamid, \n 'team_name'=>$this->teamName[$teamid], 'venue_name'=> $this->venueName[$vid], \n 'total'=>$count );\n } \n } \n }\n\n \n if($this->floatingGames != 0)\n $vstats[] = array( 'venue_id'=>-1, 'total'=>$this->floatingGames, 'venue_name' => \"None Available\" );\n //$floatingGames\n $audits['venueStats']=$vstats;\n\n $audits['teamVenueJoin']=$teamVenueJoin;\n \n \n \n\t if(!is_array($this->teamName)) $this->teamName=array();\n foreach($this->teamName as $team_id =>$name)\n {\n\t \t foreach($this->teamName as $other_id =>$other_name)\n\t \t {\t\t \t\t\n\t \t \tif($other_id==$team_id) continue;\n\t \t \tif( !isset($this->head_to_head[$team_id][$other_id] ) )\n\t \t \t\t $this->head_to_head[$team_id][$other_id] = 0;\n\t \t \t\t \n\t \t \tif( !isset($this->head_to_head[$other_id][$team_id] ) )\n\t \t \t\t $this->head_to_head[$other_id][$team_id] = 0;\n\t \t \t\t \n\t \t \t$total=$this->head_to_head[$team_id][$other_id]+$this->head_to_head[$other_id][$team_id];\n\t \t \t//include rows for team playing itself -that way we can ensure zeroes\n\t \t \t$teamMatchups[] = array\n\t\t \t\t\t(\t\t \t\t\t\n\t\t \t\t\t\t'home_id' =>$team_id,\n\t\t \t\t\t\t'home_name' =>$name,\n\t\t \t\t\t\t'away_id' =>$other_id,\n\t\t \t\t\t\t'away_name' =>$other_name,\n\t\t \t\t\t\t'home_count'=>$this->head_to_head[$team_id][$other_id],\n\t\t \t\t\t\t'away_count'=>$this->head_to_head[$other_id][$team_id],\n\t\t \t\t\t\t'total'\t =>$total\n\t\t \t\t\t);\n\t\t\t}\t\t \t\n }\n \n\t\t$num_decimals = 1;\n\t\t$dec_point = \".\";\n\t\t$thous_sep=\"\";\n\n foreach($teamMatchups as &$team_row)\n {\n \t if(!$team_row['total'] || $team_row['total']==0)\n \t {\n\t\t\t $team_row['percent_home'] = '';\n\t\t\t $team_row['percent_away'] = '';\n \t }\n \t else\n \t {\n \t\t $hp = 100*$team_row['home_count']/$team_row['total'];\n \t\t $ap = 100*$team_row['away_count']/$team_row['total'];\n\t\t \n\t\t\t $team_row['percent_home'] = number_format($hp,$num_decimals,$dec_point,$thous_sep );\n\t\t\t $team_row['percent_away'] = number_format($ap,$num_decimals,$dec_point,$thous_sep );\n\t\t }\n }\n\n $audits['teamMatchups']=$teamMatchups;\n $date_stats_table=array();\n foreach($date_stats as $date=>$total)\n {\n \t //echo $date;\n \t //$d=substr($date,0,4).\"-\".substr($date,4,2).'-'.substr($date,6,2);\n \t\t$date_stats_table[] = array('date'=>date($plain_fmt,$date),'total'=>$total);\n\t }\n \n $audits['dateStats']=$date_stats_table;\n \n \n $team_date_table=array();\n \n if(!is_array($this->dailyGames)) $this->dailyGames=array();\n foreach($this->dailyGames as $team_id => $data)\n {\n\t\t foreach($data as $date=>$total)\n\t\t {\n\t\t\t // $d=substr($date,0,4).\"-\".substr($date,4,2).'-'.substr($date,6,2);\n\t\t\t // echo $d;\n\t\t\t $team_date_table[] = array(\n\t\t\t \t\t'team_id' =>$team_id, \n\t\t\t \t\t'team_name'=>$this->teamName[$team_id] , \n\t\t\t \t\t'date'=>date($plain_fmt,strtotime($date)),\n\t\t\t \t\t'total'=>$total\t\t\n\t\t\t \t\t\t\t\t\t);\n\t\t }\n\t\t \n }\n\n\t\t$audits['teamDateJoin']=$team_date_table;\n\t\t\n\n\t\t \n\t\t\n\t\t$div_match_table=array();\n\t\t$div_date_table=array();\n\t\t$div_venue_table=array();\n\t\tforeach($div_date_count as $id=>$dcounts)\n\t\t{\n\t\t\t$div_name=$this->divNames[$id];\n\t\t\t\n\t\t\tforeach($dcounts as $datets=>$cnt)\n\t\t\t{\n\t\t\t\t$row=array();\n\t\t\t\t$row['division_id']=$id;\n\t\t\t\t$row['division_name']=$div_name;\n\t\t\t\t$row['date'] = date($plain_fmt,$datets);\n\t\t\t\t$row['total']=$cnt;\n\t\t\t\t\n\t\t\t\t$div_date_table[]=$row;\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t$audits['div_date_table']=$div_date_table;\n\t\tforeach($div_venue_count as $id=>$vcounts)\n\t\t{\n\t\t\t$div_name=$this->divNames[$id];\n\t\t\t\n\t\t\tforeach($vcounts as $vid=>$cnt)\n\t\t\t{\n\t\t\t\t$row=array();\n\t\t\t\t$row['division_id']=$id;\n\t\t\t\t$row['division_name']=$div_name;\n\t\t\t\t$row['venue_id'] = $vid;\n\t\t\t\t$row['venue_name'] = $this->venueName[$vid];\n\t\t\t\t$row['total']=$cnt;\n\t\t\t\t\n\t\t\t\t$div_venue_table[]=$row;\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t$audits['div_venue_table']=$div_venue_table;\n\t\t\n\t\tforeach($div_match_count as $hid=>$arr)\n\t\t{\n\t\t\t$h_div_name=$this->divNames[$hid];\n\t\t\t\n\t\t\tforeach($arr as $aid=>$cnt)\n\t\t\t{\n\t\t\t\t$row=array();\n\t\t\t\t$row['h_division_id']=$hid;\n\t\t\t\t$row['a_division_id']=$aid;\n\t\t\t\t$row['h_division_name']=$h_div_name;\n\t\t\t\t$row['a_division_name']=$this->divNames[$aid];\n \n\t\t\t\t$row['total']=$cnt;\n\t\t\t\t\n\t\t\t\t$div_match_table[]=$row;\n\t\t\t\t\t\t\n\t\t\t}\n \n\t\t}\n\t\t$audits['div_match_table']=$div_match_table;\n\t\t\n\t\t//missing games audit\n\t\t$missing_games_table=array();\n\t\tforeach($missing_games as $mg)\n\t\t{\n\t\t\t$row=array();\n\t\t\t$row['home_name']=$mg['home_name'];\n\t\t\t$row['home_id']=$mg['home_id'];\n\t\t\t$row['home_id']=$mg['home_id'];\n\t\t\t$row['away_name']=$mg['away_name'];\n\t\t\t$row['h_division_name']=$this->divNames[$mg['home_div']];\n\t\t\t$row['a_division_name']=$this->divNames[$mg['away_div']];\n\t\t\t$row['h_division_id']=$mg['home_div'];\n\t\t\t$row['a_division_id']=$mg['away_div'];\n\t\t\t$row['match_pk']=$mg['match_pk'];\n\t\t\t//$match = $this->schedule_model->s_get_match_by_pk($mg['match_pk']);\n\t\t\t\n\t\t\t$missing_games_table[]=$row;\n\t\t}\n\t\t$audits['missing_games_table']=$missing_games_table;\n\t\t\n\t\t$audits['currentSchedule'] = $this->createdGames;\n\t\t\n\t\treturn $audits;\n }", "title": "" }, { "docid": "112f4fb9aedd2e4792dab4fcb07dd83f", "score": "0.51112264", "text": "public function Base_AfterDiscussionTabs_Handler($Sender) {\n\t\t// If User is not allowed to schedule Discussions, he cannot have a list of\n\t\t// them, therefore the menu item doesn't need to be displayed\n\t\tif(!Gdn::Session()->CheckPermission('Plugins.PostScheduler.ScheduleDiscussions')) {\n\t\t\treturn;\n\t\t}\n\n\t\t// TODO Review code to display a Sprite in Vanilla 2.1\n\t\t$CssClass = $Sender->RequestMethod == 'scheduled' ? 'Active' : '';\n\t\techo Wrap(Anchor(T('Mine (Scheduled)'),\n\t\t\t\t\t\t\t\t\t\t '/discussions/scheduled',\n\t\t\t\t\t\t\t\t\t\t 'TabLink'),\n\t\t\t\t\t\t\t'li',\n\t\t\t\t\t\t\tarray('class' => 'MyScheduledDiscussions ' . $CssClass)\n\t\t\t\t\t\t );\n\t}", "title": "" }, { "docid": "0f18eedb6708b82da26b9bbdc0400ffa", "score": "0.51100665", "text": "public function timeslotAction()\n {\n view::rendertemplate('Administrator/timeslot.html', [\n 'timeslots' => $this->timeslots,\n 'days' => $this->days\n ]);\n\n }", "title": "" }, { "docid": "599994e7710956d026154de291bfba1f", "score": "0.5083021", "text": "protected function schedule(Schedule $schedule)\n { \n $schedule->command('TargetSalesmanUpd:report')->monthlyOn(1,'01:30');\n $schedule->command('inspire')\n ->hourly();\n $schedule->command('update:location')->everyFifteenMinutes();\n $schedule->command('order:report')->everyMinute();\n $schedule->command('product-sales:report')->everyMinute();\n $schedule->command('PartyDetails:report')->everyMinute();\n $schedule->command('EmployeeDetails:report')->everyMinute();\n $schedule->command('saleman-party-wise:report')->everyMinute();\n $schedule->command('stock:report')->everyMinute();\n $schedule->command('party-wise-return:report')->everyMinute();\n $schedule->command('product-order-detail:report')->everyMinute();\n $schedule->command('attendance:autocheckout')->hourly();\n $schedule->command('tally:order')->everyMinute();\n $schedule->command('tally:product')->hourly();\n $schedule->command('tally:party')->hourly();\n $schedule->command('queue:work --once')\n ->everyMinute();\n\n \n }", "title": "" }, { "docid": "8b9eae2745df5e0fa1f755ae327ba603", "score": "0.5080728", "text": "public function Schedules()\n\t{\n\t\treturn $this->hasMany('\\App\\ThunderID\\WorkforceManagementV1\\Models\\Schedule');\n\t}", "title": "" }, { "docid": "e51ae4d5026d8a753e499829fa8e609e", "score": "0.50799507", "text": "public function url()\n {\n return '/tasks/schedule';\n }", "title": "" }, { "docid": "326e846072621c31e354561f6a7f2f73", "score": "0.50743604", "text": "public function working_schedule_view($report,$company,$division,$department,$section,$subsection,$location,$classification,$employment,$status,$yy,$mm,$dd,$type,$date_from,$date_to,$payroll_period,$report_area,$covered_month_from,$covered_month_to,$covered_year,$groupings_type,$payroll_unique,$selected_individual_employee_id,$quarter,$page_row,$bank_company_code,$bank_company_depository_code,$bank_effectivity_date,$bank_company_code_two,$loan_status)\n\t{\n\t\t// report name: $report <br>\n\t\t// company : $company<br>\n\t\t// division: $division<br>\n\t\t// department: $department<br>\n\t\t// sect: $section<br>\n\t\t// sub sec: $subsection<br>\n\t\t// loc: $location<br>\n\t\t// class: $classification<br>\n\t\t// employment: $employment<br>\n\t\t// status: $status<br>\n\t\t// year: $yy<br>\n\t\t// month: $mm<br>\n\t\t// day: $dd<br>\n\t\t// report type: $type<br>\n\t\t// date from : $date_from<br>\n\t\t// date to: $date_to<br>\n\t\t// pay period: $payroll_period <br>\n\t\t// report area : $report_area<br>\n\t\t// covered month : $covered_month_from<br>\n\t\t// covered to : $covered_month_to <br>\n\t\t// covered year : $covered_year <br> <br>\n\t\t// payroll unique where : $payroll_unique <br> <br>\n\n\t\t// individual emp_id : $selected_individual_employee_id <br> <br>\n\n\t\t// for grouping report fiedls only <br>\n\t\t// groupings type : $groupings_type\n\t\t\n\t\t// <br>\n\t\t// for sss only\n\t\t// quarter : $quarter <br>\n\t\t// row per page : $page_row <br>\n\n\t\t// <br>\n\t\t// for bank file only <br>\n\t\t// bank_company_code : $bank_company_code <br>\n\t\t// bank_company_code TWO : $bank_company_code_two <br>\n\t\t// bank_company_depository_code : $bank_company_depository_code <br>\n\t\t// bank_effectivity_date : $bank_effectivity_date <br>\n\t\t// for loan only <br>\n\t\t// loan status : $loan_status <br>\n\n\t\t// <br>\";\n\n\t\t\t\tif($report_area==\"bank_file_metrobank1\" OR $report_area==\"bank_file_metrobank2\" OR $report_area==\"bank_file_metrobank3\"){\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\t$this->data['ws_data'] = $this->reports_payroll_model->ws_filter_data($company,$division,$department,$section,$subsection,$location,$classification,$employment,$status,$yy,$mm,$dd,$type,$date_from,$date_to,$payroll_period,$report_area,$covered_month_from,$covered_month_to,$covered_year,$groupings_type,$payroll_unique,$selected_individual_employee_id,$quarter,$page_row,$bank_company_code,$bank_company_depository_code,$bank_effectivity_date,$bank_company_code_two,$loan_status);\n\n\t\t\n\t\t\t\t\t$this->data['report']= $report;\n\t\t\t\t\t$this->data['company']= $company;\n\t\t\t\t\t$this->data['division']= $division;\n\t\t\t\t\t$this->data['department']= $department;\n\t\t\t\t\t$this->data['section']= $section;\n\t\t\t\t\t$this->data['subsection']= $subsection;\n\t\t\t\t\t$this->data['location']= $location;\n\t\t\t\t\t$this->data['classification']= $classification;\n\t\t\t\t\t$this->data['employment']= $employment;\n\t\t\t\t\t$this->data['status']= $status;\n\t\t\t\t\t$this->data['yy']= $yy;\n\t\t\t\t\t$this->data['mm']= $mm;\n\t\t\t\t\t$this->data['dd']= $dd;\n\t\t\t\t\t$this->data['type']= $type;\n\t\t\t\t\t$this->data['date_from']= $date_from;\n\t\t\t\t\t$this->data['date_to']= $date_to;\n\t\t\t\t\t$this->data['payroll_period']= $payroll_period;\n\t\t\t\t\t$this->data['report_area']= $report_area;\n\t\t\t\t\t$this->data['covered_month_from']= $covered_month_from;\n\t\t\t\t\t$this->data['covered_month_to']= $covered_month_to;\n\t\t\t\t\t$this->data['covered_year']= $covered_year;\n\t\t\t\t\t$this->data['groupings_type']= $groupings_type;\n\t\t\t\t\t$this->data['payroll_unique']= $payroll_unique;\n\t\t\t\t\t$this->data['selected_individual_employee_id']= $selected_individual_employee_id;\n\t\t\t\t\t$this->data['quarter']= $quarter;\n\t\t\t\t\t$this->data['page_row']= $page_row;\n\n\t\t\t\t\t$this->data['bank_company_code']= $bank_company_code;\n\t\t\t\t\t$this->data['bank_company_code_two']= $bank_company_code_two;\n\t\t\t\t\t$this->data['bank_company_depository_code']= $bank_company_depository_code;\n\t\t\t\t\t$this->data['bank_effectivity_date']= $bank_effectivity_date;\n\t\t\t\t\t$this->data['loan_status']= $loan_status;\n\n\n\t\t\t\t}elseif($report_area==\"pagibig_group_rep\" OR $report_area==\"sss_group_rep\" OR $report_area==\"ph_group_rep\" OR $report_area==\"tax_deduction\"){ // default form\n\t\t\t\t\t\t$this->data['groupings_type']=$groupings_type;\n\t\t\t\t\t\t$this->data['division']=$division;\n\t\t\t\t\t\t$this->data['department']=$department;\n\t\t\t\t\t\t$this->data['section']=$section;\n\t\t\t\t\t\t$this->data['subsection']=$subsection;\n\t\t\t\t\t\t$this->data['location']=\"0\";\n\t\t\t\t\t\t$this->data['classification']=\"0\";\n\t\t\t\t\t\t$this->data['employment']=\"0\";\n\t\t\t\t\t\t$this->data['status']=$status;\n\t\t\t\t\t\t$this->data['yy']=$yy;\n\t\t\t\t\t\t$this->data['mm']=$mm;\n\t\t\t\t\t\t$this->data['dd']=$dd;\n\t\t\t\t\t\t$this->data['type']=$type;\n\t\t\t\t\t\t$this->data['date_from']=$date_from;\n\t\t\t\t\t\t$this->data['date_to']=$date_to;\n\t\t\t\t\t\t$this->data['payroll_period']=$payroll_period;\n\t\t\t\t\t\t$this->data['report_area']=$report_area;\n\t\t\t\t\t\t$this->data['covered_month_from']=$covered_month_from;\n\t\t\t\t\t\t$this->data['covered_month_to']=$covered_month_to;\n\t\t\t\t\t\t$this->data['covered_year']=$covered_year;\n\t\t\t\t\t\t$this->data['payroll_unique']=$payroll_unique;\n\t\t\t\t\t\t$this->data['selected_individual_employee_id']=$selected_individual_employee_id;\t\n\t\t\t\t\t\t$this->data['quarter']=$quarter;\t\n\t\t\t\t\t\t$this->data['page_row']=$page_row;\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t$this->data['bank_company_code']=$bank_company_code;\t\n\t\t\t\t\t\t$this->data['bank_company_depository_code']=$bank_company_depository_code;\t\n\t\t\t\t\t\t$this->data['bank_effectivity_date']=$bank_effectivity_date;\t\n\t\t\t\t\t\t$this->data['bank_company_code_two']=$bank_company_code_two;\t\n\t\t\t\t\t\t$this->data['loan_status']=$loan_status;\t\n\n\n\t\t\t\t}elseif($report_area==\"pagibig_certificate\" OR $report_area==\"sss_certificate\" OR $report_area==\"ph_certificate\"){// default form\n\n\t\t\t\t\t$this->data['selected_individual_employee_id']=$selected_individual_employee_id;\n\n\t\t\t\t\tif($selected_individual_employee_id==\"0\"){\n\n\t\t\t\t\t\t$this->data['group_cert']=1;\n\t\t\t\t\t\t$this->data['company']=$company;\n\t\t\t\t\t\t$this->data['groupings_type']=$groupings_type;\n\t\t\t\t\t\t$this->data['division']=$division;\n\t\t\t\t\t\t$this->data['department']=$department;\n\t\t\t\t\t\t$this->data['section']=$section;\n\t\t\t\t\t\t$this->data['subsection']=$subsection;\n\t\t\t\t\t\t$this->data['location']=\"0\";\n\t\t\t\t\t\t$this->data['classification']=\"0\";\n\t\t\t\t\t\t$this->data['employment']=\"0\";\n\t\t\t\t\t\t$this->data['status']=$status;\n\t\t\t\t\t\t$this->data['yy']=$yy;\n\t\t\t\t\t\t$this->data['mm']=$mm;\n\t\t\t\t\t\t$this->data['dd']=$dd;\n\t\t\t\t\t\t$this->data['type']=$type;\n\t\t\t\t\t\t$this->data['date_from']=$date_from;\n\t\t\t\t\t\t$this->data['date_to']=$date_to;\n\t\t\t\t\t\t$this->data['payroll_period']=$payroll_period;\n\t\t\t\t\t\t$this->data['report_area']=$report_area;\n\t\t\t\t\t\t$this->data['covered_month_from']=$covered_month_from;\n\t\t\t\t\t\t$this->data['covered_month_to']=$covered_month_to;\n\t\t\t\t\t\t$this->data['covered_year']=$covered_year;\n\t\t\t\t\t\t$this->data['payroll_unique']=$payroll_unique;\n\n\t\t\t\t\t\t$this->data['bank_company_code']=$bank_company_code;\n\t\t\t\t\t\t$this->data['bank_company_code_two']=$bank_company_code_two;\n\t\t\t\t\t\t$this->data['bank_company_depository_code']=$bank_company_depository_code;\n\t\t\t\t\t\t$this->data['bank_effectivity_date']=$bank_effectivity_date;\n\t\t\t\t\t\t$this->data['loan_status']=$loan_status;\n\n\t\t\t\t\t\t$this->data['emp_list'] = $this->reports_payroll_model->check_emp_list($company,$division,$department,$section,$subsection,$location,$classification,$employment,$status,$yy,$mm,$dd,$type,$date_from,$date_to,$payroll_period,$report_area,$covered_month_from,$covered_month_to,$covered_year,$groupings_type,$payroll_unique,$selected_individual_employee_id,$quarter,$page_row);\n\n\t\t\t\t\t}else{\n\n\t\t\t\t\t\t$this->data['group_cert']=0;\n\t\t\t\t\t\t$this->data[\"emp\"]=$this->reports_payroll_model->check_emp_201($selected_individual_employee_id);\n\n\t\t\t\t\t\t$this->data['ws_data'] = $this->reports_payroll_model->ws_filter_data($company,$division,$department,$section,$subsection,$location,$classification,$employment,$status,$yy,$mm,$dd,$type,$date_from,$date_to,$payroll_period,$report_area,$covered_month_from,$covered_month_to,$covered_year,$groupings_type,$payroll_unique,$selected_individual_employee_id,$quarter,$page_row,$bank_company_code,$bank_company_depository_code,$bank_effectivity_date,$bank_company_code_two,$loan_status);\n\n\t\t\t\t\t}\n\n\t\t\t\t\n\t\t\t\t}elseif($report_area==\"pagibig_mcrf\"){// default form\n\t\t\t\t\t$company_id=$company;\n\t\t\t\t\t$this->data['cInfo']=$this->general_model->get_company_info($company_id);\n\t\t\t\t\t$payslip_decimal=$this->reports_payroll_model->check_payslip_decimal($company);\n\t\t\t\t\tif(!empty($payslip_decimal)){\n\t\t\t\t\t\t$this->data['payslip_decimal_place']=$payslip_decimal->single_field;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->data['payslip_decimal_place']=2;// default decimal place\n\t\t\t\t\t}\n\t\t\t\t\t$payslip_round=$this->reports_payroll_model->check_rounding_off($company);\n\t\t\t\t\tif(!empty($payslip_round)){\n\t\t\t\t\t\t$this->data['round_off_payslip']=$payslip_round->single_field;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->data['round_off_payslip']=\"yes\"; //default round it offs\n\t\t\t\t\t}\n\n\t\t\t\t\t$this->data['ws_data'] = $this->reports_payroll_model->ws_filter_data($company,$division,$department,$section,$subsection,$location,$classification,$employment,$status,$yy,$mm,$dd,$type,$date_from,$date_to,$payroll_period,$report_area,$covered_month_from,$covered_month_to,$covered_year,$groupings_type,$payroll_unique,$selected_individual_employee_id,$quarter,$page_row,$bank_company_code,$bank_company_depository_code,$bank_effectivity_date,$bank_company_code_two,$loan_status);\n\n\n\t\t\t\t}elseif($report_area==\"pagibig_mrrf\"){// default form\n\t\t\t\t\t$company_id=$company;\n\t\t\t\t\t$this->data['the_covered_year']=$covered_year;\n\t\t\t\t\t$this->data['the_covered_months']=date('F', mktime(0, 0, 0, $covered_month_from, 10)).\" TO \".date('F', mktime(0, 0, 0, $covered_month_to, 10));\n\t\t\t\t\t$this->data['cInfo']=$this->general_model->get_company_info($company_id);\n\t\t\t\t\t$this->data['ws_data'] = $this->reports_payroll_model->ws_filter_data($company,$division,$department,$section,$subsection,$location,$classification,$employment,$status,$yy,$mm,$dd,$type,$date_from,$date_to,$payroll_period,$report_area,$covered_month_from,$covered_month_to,$covered_year,$groupings_type,$payroll_unique,$selected_individual_employee_id,$quarter,$page_row,$bank_company_code,$bank_company_depository_code,$bank_effectivity_date,$bank_company_code_two,$loan_status);\n\n\n\t\t\t\t}elseif($report_area==\"sss_transmittal\"){\n\t\t\t\t\t$company_id=$company;\n\t\t\t\t\t$this->data['cInfo']=$this->general_model->get_company_info($company_id);\n\t\t\t\t\t$payslip_decimal=$this->reports_payroll_model->check_payslip_decimal($company);\n\t\t\t\t\tif(!empty($payslip_decimal)){\n\t\t\t\t\t\t$this->data['payslip_decimal_place']=$payslip_decimal->single_field;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->data['payslip_decimal_place']=2;// default decimal place\n\t\t\t\t\t}\n\t\t\t\t\t$payslip_round=$this->reports_payroll_model->check_rounding_off($company);\n\t\t\t\t\tif(!empty($payslip_round)){\n\t\t\t\t\t\t$this->data['round_off_payslip']=$payslip_round->single_field;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->data['round_off_payslip']=\"yes\"; //default round it offs\n\t\t\t\t\t}\t\t\t\t\t\n\n\t\t\t\t\tif($covered_month_from==$covered_month_to){\n\t\t\t\t\t\t$this->data['the_covered_months']=date('F', mktime(0, 0, 0, $covered_month_from, 10));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->data['the_covered_months']=date('F', mktime(0, 0, 0, $covered_month_from, 10)).\" to \".date('F', mktime(0, 0, 0, $covered_month_to, 10));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$this->data['the_covered_year']=$covered_year;\n\t\t\t\t\t$this->data['cInfo']=$this->general_model->get_company_info($company_id);\t\n\n\t\t\t\t\t$this->data['ws_data'] = $this->reports_payroll_model->ws_filter_data($company,$division,$department,$section,$subsection,$location,$classification,$employment,$status,$yy,$mm,$dd,$type,$date_from,$date_to,$payroll_period,$report_area,$covered_month_from,$covered_month_to,$covered_year,$groupings_type,$payroll_unique,$selected_individual_employee_id,$quarter,$page_row,$bank_company_code,$bank_company_depository_code,$bank_effectivity_date,$bank_company_code_two,$loan_status);\n\n\t\t\t\t}elseif($report_area==\"sss_r3\"){\n\t\t\t\t\t$company_id=$company;\n\t\t\t\t\t$this->data['cInfo']=$this->general_model->get_company_info($company_id);\n\t\t\t\t\t$payslip_decimal=$this->reports_payroll_model->check_payslip_decimal($company);\n\t\t\t\t\tif(!empty($payslip_decimal)){\n\t\t\t\t\t\t$this->data['payslip_decimal_place']=$payslip_decimal->single_field;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->data['payslip_decimal_place']=2;// default decimal place\n\t\t\t\t\t}\n\t\t\t\t\t$payslip_round=$this->reports_payroll_model->check_rounding_off($company);\n\t\t\t\t\tif(!empty($payslip_round)){\n\t\t\t\t\t\t$this->data['round_off_payslip']=$payslip_round->single_field;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->data['round_off_payslip']=\"yes\"; //default round it offs\n\t\t\t\t\t}\t\t\t\t\t\n\n\n\t\t\t\t\t\t$this->data['groupings_type']=$groupings_type;\n\t\t\t\t\t\t$this->data['division']=$division;\n\t\t\t\t\t\t$this->data['department']=$department;\n\t\t\t\t\t\t$this->data['section']=$section;\n\t\t\t\t\t\t$this->data['subsection']=$subsection;\n\t\t\t\t\t\t$this->data['location']=\"0\";\n\t\t\t\t\t\t$this->data['classification']=\"0\";\n\t\t\t\t\t\t$this->data['employment']=\"0\";\n\t\t\t\t\t\t$this->data['status']=$status;\n\t\t\t\t\t\t$this->data['yy']=$yy;\n\t\t\t\t\t\t$this->data['mm']=$mm;\n\t\t\t\t\t\t$this->data['dd']=$dd;\n\t\t\t\t\t\t$this->data['type']=$type;\n\t\t\t\t\t\t$this->data['date_from']=$date_from;\n\t\t\t\t\t\t$this->data['date_to']=$date_to;\n\t\t\t\t\t\t$this->data['payroll_period']=$payroll_period;\n\t\t\t\t\t\t$this->data['report_area']=$report_area;\n\t\t\t\t\t\t$this->data['covered_month_from']=$covered_month_from;\n\t\t\t\t\t\t$this->data['covered_month_to']=$covered_month_to;\n\t\t\t\t\t\t$this->data['covered_year']=$covered_year;\n\t\t\t\t\t\t$this->data['payroll_unique']=$payroll_unique;\n\t\t\t\t\t\t$this->data['selected_individual_employee_id']=$selected_individual_employee_id;\t\n\n\t\t\t\t\t\t$this->data['company']=$company;\n\t\t\t\t\t\t$this->data['page_row']=$page_row;\n\t\t\t\t\t\t$this->data['quarter']=$quarter;\n\t\t\t\t\t\t$this->data['emp_list'] = $this->reports_payroll_model->check_emp_list($company,$division,$department,$section,$subsection,$location,$classification,$employment,$status,$yy,$mm,$dd,$type,$date_from,$date_to,$payroll_period,$report_area,$covered_month_from,$covered_month_to,$covered_year,$groupings_type,$payroll_unique,$selected_individual_employee_id,$quarter,$page_row);\n\t\t\t\t}elseif($report_area==\"loan_report\"){ \n\n\t\t\t\t$this->data['ws_data'] = $this->reports_payroll_model->ws_filter_data($company,$division,$department,$section,$subsection,$location,$classification,$employment,$status,$yy,$mm,$dd,$type,$date_from,$date_to,$payroll_period,$report_area,$covered_month_from,$covered_month_to,$covered_year,$groupings_type,$payroll_unique,$selected_individual_employee_id,$quarter,$page_row,$bank_company_code,$bank_company_depository_code,$bank_effectivity_date,$bank_company_code_two,$loan_status);\n\n\t\t\t\t}elseif($report_area==\"payslip_viewed\"){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t$this->data['status']=$status;\n\t\t\t\t\t\t$this->data['yy']=$yy;\n\t\t\t\t\t\t$this->data['mm']=$mm;\n\t\t\t\t\t\t$this->data['dd']=$dd;\n\t\t\t\t\t\t$this->data['type']=$type;\n\t\t\t\t\t\t$this->data['date_from']=$date_from;\n\t\t\t\t\t\t$this->data['date_to']=$date_to;\n\t\t\t\t\t\t$this->data['payroll_period']=$payroll_period;\n\t\t\t\t\t\t$this->data['report_area']=$report_area;\n\t\t\t\t\t\t$this->data['covered_month_from']=$covered_month_from;\n\t\t\t\t\t\t$this->data['covered_month_to']=$covered_month_to;\n\t\t\t\t\t\t$this->data['covered_year']=$covered_year;\n\t\t\t\n\n\t\t\t\t$this->data['ws_data'] = $this->reports_payroll_model->ws_filter_data($company,$division,$department,$section,$subsection,$location,$classification,$employment,$status,$yy,$mm,$dd,$type,$date_from,$date_to,$payroll_period,$report_area,$covered_month_from,$covered_month_to,$covered_year,$groupings_type,$payroll_unique,$selected_individual_employee_id,$quarter,$page_row,$bank_company_code,$bank_company_depository_code,$bank_effectivity_date,$bank_company_code_two,$loan_status);\t\t\t\t\t\n\n\t\t\t\t}else{ // crystal reports\n\n\t\t\t\t$this->data['report_fields'] = $this->reports_payroll_model->working_schedule_fields($report);\n\t\t\t\t$this->data['general_fields'] = $this->reports_payroll_model->working_schedule_general_fields($report,$report_area);\n\t\t\t\n\t\t\t\t$this->data['ws_data'] = $this->reports_payroll_model->ws_filter_data($company,$division,$department,$section,$subsection,$location,$classification,$employment,$status,$yy,$mm,$dd,$type,$date_from,$date_to,$payroll_period,$report_area,$covered_month_from,$covered_month_to,$covered_year,$groupings_type,$payroll_unique,$selected_individual_employee_id,$quarter,$page_row,$bank_company_code,$bank_company_depository_code,$bank_effectivity_date,$bank_company_code_two,$loan_status);\n\n\t\t\t\t}\n\n\n\t\t$this->data['report_fs_type']=$type;\n\t\t$this->data['report_area']=$report_area;\n\n\t\tif($report_area==\"payroll_register\"){\n\n\t\t\t\tif($type==\"by_month\" OR $type==\"by_year\" OR $type==\"group_by_year\" OR $type==\"group_by_month\"){\n\t\t\t\t\t\n\t\t\t\t\t$check_mc=$this->reports_payroll_model->payroll_period_myc($covered_month_from,$covered_month_to,$company,$covered_year,$type,$quarter);\n\t\t\t\t\tif(!empty($check_mc)){\n\t\t\t\t\t\t\t$check_pp_id=\"\"; // check payroll period ID\n\t\t\t\t\t\tforeach($check_mc as $pp){\n\t\t\t\t\t\t\t$check_pp_id.=\"b.payroll_period_id='\".$pp->id.\"' OR \";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$check_pp_id=substr($check_pp_id, 0, -3); \n\t\t\t\t\t}else{\n\t\t\t\t\t\t$check_pp_id=\"b.payroll_period_id='0'\"; // force no result value.\n\t\t\t\t\t}\n\n\t\t\t\t}elseif($type==\"single_pp\"){\n\t\t\t\t\t\t$check_pp_id=\"b.payroll_period_id='\".$payroll_period.\"'\";\n\t\t\t\t}else{\n\t\t\t\t\t\t$check_pp_id=\"\";\n\t\t\t\t}\n\n\t\t\t\t$this->data['the_payrol_period']=$check_pp_id;\n\t\t\t/*\n\t\t\t\t---------------------------\n\t\t\t\tloans breakdown\n\t\t\t\t---------------------------\n\t\t\t*/\t\t\t\n\t\t\t\t$this->data['loan_details']=$this->reports_payroll_model->loans_breakdown($company);\n\t\t\t/*\n\t\t\t\t---------------------------\n\t\t\t\tleave type(s) breakdown\n\t\t\t\t---------------------------\n\t\t\t*/\n\t\t\t\t$this->data['leave_details']=$this->reports_payroll_model->leave_breakdown($company);\n\t\t\t/*\n\t\t\t\t---------------------------\n\t\t\t\tother additions/deductions breakdown\n\t\t\t\t---------------------------\n\t\t\t*/\n\t\t\t$check_tax=\"1\";\n\t\t\t$this->data['comp_oa_taxable']=$this->reports_payroll_model->comp_oa($company,$check_tax);\n\t\t\t$this->data['comp_od_taxable']=$this->reports_payroll_model->comp_od($company,$check_tax);\n\t\t\t// == ready.\n\t\t\t$comp_oa_taxable_count=$this->reports_payroll_model->comp_oa_count($company,$check_tax);\n\t\t\tif(!empty($comp_oa_taxable_count)){\n\t\t\t\t$this->data['tax_oa_numbers']=$comp_oa_taxable_count->oa_numbers;\n\t\t\t}else{\n\t\t\t\t$this->data['tax_oa_numbers']=0;\n\t\t\t}\n\n\t\t\t$check_tax=\"0\";\n\t\t\t$this->data['comp_oa_nontax']=$this->reports_payroll_model->comp_oa($company,$check_tax);\n\t\t\t$this->data['comp_od_nontax']=$this->reports_payroll_model->comp_od($company,$check_tax);\n\t\t\t// == ready.\n\t\t\t$comp_oa_nontax_count=$this->reports_payroll_model->comp_oa_count($company,$check_tax);\n\t\t\tif(!empty($comp_oa_nontax_count)){\n\t\t\t\t$this->data['ntax_oa_numbers']=$comp_oa_nontax_count->oa_numbers;\n\t\t\t}else{\n\t\t\t\t$this->data['ntax_oa_numbers']=0;\n\t\t\t}\n\n\t\t}else{}\n\n\n\t\tif($report_area==\"pagibig_group_rep\"){\n\t\t\t$this->data[\"companyList\"]=$this->general_model->companyList();\n\t\t\t$this->data[\"heyList\"]=$this->general_model->companyList();\n\t\t\t$this->data[\"forGroupSec\"]=$this->general_model->companyList();\n\t\t\t$this->data[\"div_companyList\"]=$this->reports_payroll_model->div_base_company();\n\t\t \t$this->load->view('app/reports/payroll/working_schedule/pagbig_group_report_result',$this->data);\n\t\t}elseif($report_area==\"sss_group_rep\"){\n\t\t\n\t\t\t$this->data[\"companyList\"]=$this->general_model->companyList();\n\t\t\t$this->data[\"heyList\"]=$this->general_model->companyList();\n\t\t\t$this->data[\"forGroupSec\"]=$this->general_model->companyList();\n\t\t\t$this->data[\"div_companyList\"]=$this->reports_payroll_model->div_base_company();\n\t\t \t$this->load->view('app/reports/payroll/working_schedule/sss_group_report_result',$this->data);\n\n\t\t}elseif($report_area==\"ph_group_rep\"){\n\t\t\t$this->data[\"companyList\"]=$this->general_model->companyList();\n\t\t\t$this->data[\"heyList\"]=$this->general_model->companyList();\n\t\t\t$this->data[\"forGroupSec\"]=$this->general_model->companyList();\n\t\t\t$this->data[\"div_companyList\"]=$this->reports_payroll_model->div_base_company();\n\t\t \t$this->load->view('app/reports/payroll/working_schedule/philhealth_group_report_result',$this->data);\n\n\t\t}elseif($report_area==\"tax_deduction\"){\n\t\t\t$this->data[\"companyList\"]=$this->general_model->companyList();\n\t\t\t$this->data[\"heyList\"]=$this->general_model->companyList();\n\t\t\t$this->data[\"forGroupSec\"]=$this->general_model->companyList();\n\t\t\t$this->data[\"div_companyList\"]=$this->reports_payroll_model->div_base_company();\n\t\t \t$this->load->view('app/reports/payroll/working_schedule/tax_group_report_result',$this->data);\n\n\t\t}elseif($report_area==\"pagibig_certificate\" OR $report_area==\"sss_certificate\" OR $report_area==\"ph_certificate\"){\n\n\t\t \t$this->load->view('app/reports/payroll/gov_certificate',$this->data);\n\n\t\t}elseif($report_area==\"pagibig_mcrf\"){\n\n\t\t \t$this->load->view('app/reports/payroll/mcrf',$this->data);\n\n\t\t}elseif($report_area==\"pagibig_mrrf\"){\n\n\t\t \t$this->load->view('app/reports/payroll/mrrf',$this->data);\n\t\t \t\n\t\t}elseif($report_area==\"sss_transmittal\"){\n\n\t\t \t$this->load->view('app/reports/payroll/sss_transmittal',$this->data);\n\n\t\t}elseif($report_area==\"sss_r3\"){\n\n\t\t \t$this->load->view('app/reports/payroll/sss_r3',$this->data);\n\n\t\t}elseif($report_area==\"bank_file_metrobank1\" OR $report_area==\"bank_file_metrobank2\" OR $report_area==\"bank_file_metrobank3\"){\n\n\t\t \t$this->load->view('app/reports/payroll/bank_file',$this->data);\n\n\t\t}elseif($report_area==\"loan_report\"){\n\n\t\t \t$this->load->view('app/reports/payroll/sysdef_loan_report',$this->data);\n\n\t\t}elseif($report_area==\"payslip_viewed\"){\n\n\t\t \t\n\t\t \t$this->load->view('app/reports/payroll/payslip_viewed',$this->data);\n\n\t\t}else{\n\t\t \t$this->load->view('app/reports/payroll/working_schedule/view_filtered_reports',$this->data);\t\n\t\t}\n\t}", "title": "" }, { "docid": "68a38a6f7c3a488c9f5e4de312e68cd3", "score": "0.5071898", "text": "function Index()\n {\n _config_set(time(),'SYSTEM','CRON_TIME');\n $this->member_model->check_and_update_expiration_term();\n $this->payment_model->inform_almost_expired_subscriptions();\n $this->payment_model->inform_expired_subscriptions();\n $this->Send_portion_of_emails();\n $this->Delete_expired_history();\n \n //auto subscribe free products\n if(intval(config_get('SYSTEM', 'CONFIG', 'member_autosubscribe_free_products')))\n {\n $this->member_model->subscribe_all_free(50);\n } \n }", "title": "" }, { "docid": "8c1ab85f08de3b0cd8a748b7f7d36f27", "score": "0.5069438", "text": "public function schedule()\n {\n return $this->belongsTo('App\\Models\\Schedule', 'scheduling_id');\n }", "title": "" }, { "docid": "e4af18d93032a8049a2ed1701570ff6a", "score": "0.5067746", "text": "public function myschedules()\n {\n // burahin to \n return $this->hasMany(Schedule::class,'section_id','id')->with('attendances');\n }", "title": "" }, { "docid": "9aa6e7e1740d526f8a4f6896b87bfe6d", "score": "0.50651467", "text": "function get_schedule(){\n $t = mktime(0, 0, 0, date('m'), date('d') + 1, date('Y'));\n $snts = get_default_snts(30);\n $snts = apply_exception($snts);\n $snts = array_filter($snts,\n function($snt) use($t){\n return is_after($snt[\"when\"], $t);\n });\n $snts = array_slice($snts, 0, 10);\n $snts = set_speakers($snts);\n return $snts;\n}", "title": "" }, { "docid": "3cd831c093b6ffbafea3b4ac2f06562f", "score": "0.5055802", "text": "protected function schedule(Schedule $schedule)\n {\n $schedule->call(function () {\n\n $startDate = Carbon::now();\n\n Artisan::call('db:seed');\n\n $endDate = Carbon::now();\n\n event(new FeedGeneration($startDate, $endDate));\n \n })->everyFiveMinutes();\n\n $schedule -> call (function(){\n/* DB::insert('INSERT INTO rssfeeds.feeds (title, timestamp, description, autor, topic, link) \n VALUES ( ?, ?, ?, ?, ?);', [ 'Prueba Schedule', 'now()', 'Prueba Schedule', 'Prueba Schedule', '22', 'Prueba Schedule']);\n\n $results = DB::select('SELECT url FROM rssfeeds.news_rss_sources;');\n\n $feed = Feeds::make($results,5, true);\n $rssItems = $feed->get_items();\n\n foreach ($rssItems as $item) {\n\n $id =$item->get_id();\n $title=$item->get_title();\n $description=$item->get_description() === null ? \"Null summary\": $item->get_description();\n $updated_at=Carbon::parse($item->get_updated_date());\n $link=$item->get_permalink();\n $author=$item->get_author();\n\n $category = DB::select('SELECT idtopics FROM rssfeeds.topics WHERE LOWER(description) = LOWER(?) LIMIT 1',[$item->get_category()]);\n\n DB::insert('INSERT INTO rssfeeds.feeds (idfeed, title, timestamp, description, autor, topic, link) \n VALUES (?, ?, ?, ?, ?, ?);', [$id, $title, $updated_at, $description, $author, \n $reset($category)!==null? $reset($category): 22, $link]);\n }\n*/\n })->everyFiveMinutes();\n }", "title": "" }, { "docid": "e872f7fa4f9aba533353e52f420cebfe", "score": "0.50550705", "text": "protected function schedule(Schedule $schedule)\n {\n //$schedule->command('inspire')->hourly()->appendOutputTo('C:\\xampp\\htdocs\\waybill\\schedulelog.txt');\n\t \n\t $schedule->command('DailyReportEmail:dailySend')->daily()->between('15:00', '16:30');\n\t $schedule->command('sendHodDailyReport:dailySend')->daily()->between('16:00', '16:30');\n\t //$schedule->command('MonthlyReportEmail:monthlySend')->everyMinute();\t\n }", "title": "" }, { "docid": "756f4545529de034c918f71b0d866a56", "score": "0.50527906", "text": "public function teacherAttendance()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "2217997b947848c4485f5e2ecb537528", "score": "0.5050041", "text": "protected function schedule(Schedule $schedule)\n {\n // $schedule->command('inspire')\n // ->hourly();\n //$schedule->command('test:Log')->twiceDaily(13, 20);\n \n //$schedule->call('App\\Http\\Controllers\\EmailController@index')\n //->dailyAt('08:30'); \n //->twiceDaily(13, 20);\n //->everyMinute();\n //$schedule->call('App\\Http\\Controllers\\ScheduleController@getuser')\n //->dailyAt('08:30');\n \n $schedule->call('App\\Http\\Controllers\\ScheduleController@matchtime')\n ->dailyAt('23:30');\n $schedule->call('App\\Http\\Controllers\\ExportController@autotal')\n ->dailyAt('19:30');\n $schedule->call('App\\Http\\Controllers\\ScheduleController@tlccheck')\n ->dailyAt('09:05');\n $schedule->call('App\\Http\\Controllers\\ScheduleController@tlcchecknow')\n ->dailyAt('09:10');\n $schedule->call('App\\Http\\Controllers\\ScheduleController@servercatch')\n ->twiceDaily(07,12);\n $schedule->call('App\\Http\\Controllers\\ScheduleController@contractcheck')\n ->dailyAt('09:20');\n $schedule->call('App\\Http\\Controllers\\ScheduleController@licensecheck')\n ->dailyAt('09:30');\n $schedule->call('App\\Http\\Controllers\\ScheduleController@licenseend')\n ->dailyAt('08:30'); \n\t\t$schedule->call('App\\Http\\Controllers\\ScheduleController@customecheck')\n ->dailyAt('09:30');\n //$schedule->call('App\\Http\\Controllers\\LetterController@letter')\n //->weekly()->fridays()->at('09:30');\n \n \n\n \n }", "title": "" }, { "docid": "e14f5048017776390880bf47a7893d76", "score": "0.5048229", "text": "public static function index()\n {\n $previousSchedule = LocationUsers::where('selected', 'session')->get();\n\n foreach ($previousSchedule as $key => $previous) {\n $oldSchedule = LocationUsers::find($previous->id);\n $oldSchedule->selected = 'done';\n $oldSchedule->save();\n }\n\n //Get the next friday\n $date = date('Y-m-d', strtotime('next friday'));\n\n //Delete any previous schedule already made for that date\n $collection = LocationUsers::where('meeting', $date)->get(['id']);\n LocationUsers::destroy($collection->toArray());\n\n //Get All Users\n $users = User::all();\n\n //Then Shuffle erm\n $users = $users->shuffle();\n\n //Pluck the first one out make him admin\n $admin = $users->first();\n $users = $users->diff([$admin]);\n\n $users->count();\n //Get the number of the rest of users we have to schedule\n $numberofusers = $users->count();\n\n //Save Admin Schedule\n $newLocation = new LocationUsers();\n $newLocation->location_id = 0;\n $newLocation->user_id = $admin->id;\n $newLocation->role = \"isAdmin\";\n $newLocation->meeting = $date;\n $newLocation->save();\n $locations = Location::all();\n $numberlocations = $locations->count();\n\n //Get Excess\n $excess = $numberofusers % $numberlocations;\n\n //Get Maximized locations fill\n $placement = $numberofusers - $excess;\n\n //Get Minimum number of people for every location\n $placementperlocation = (float) $numberofusers / $numberlocations;\n $placementperlocation = sprintf('%.1f', $placementperlocation);\n list($minimum, $normal) = sscanf($placementperlocation, '%d.%d');\n\n\n // $other = \\collect([]);\n ///Make Sure all location have a minimum number of people\n foreach ($locations as $key => $location) {\n for ($i = 1; $i <= $minimum; $i++) {\n $user = $users->pop();\n $schedule = new LocationUsers();\n $schedule->location_id = $location->id;\n $schedule->user_id = $user->id;\n $schedule->role = \"Normal\";\n $schedule->meeting = $date;\n $schedule->save();\n }\n }\n\n if ($excess > 0) {\n $HigherPriorityLocations = Location::where('priority', '=', 'High')->get();\n $schedule = new LocationUsers();\n foreach ($HigherPriorityLocations as $key => $location) {\n if ($users->count()) {\n $user = $users->pop();\n $schedule = new LocationUsers();\n $schedule->location_id = $location->id;\n $schedule->user_id = $user->id;\n $schedule->role = \"Normal\";\n $schedule->meeting = $date;\n $schedule->save();\n }\n }\n }\n event(new SheduleCreatedEvent());\n }", "title": "" }, { "docid": "e74d47fc8406ff9797b4f242bc96762a", "score": "0.5047917", "text": "protected function schedule(Schedule $schedule)\n {\n $schedule->command('inspire')\n ->hourly();\n $schedule->command('task:remind')->daily();\n $schedule->command('tender:complete')->daily();\n// $schedule->call(function (){\n// $tenders = Tender::all();\n// foreach ($tenders as $tender){\n// $tasks = $tender->tasks;\n// foreach ($tasks as $task){\n// if ($task->type == 'task'){\n// $deadline = $task->start_date->addDays($task->duration);\n// if($deadline <= $deadline->subDays(2)){\n// if ($tender->company)\n// foreach($tender->company as $company){\n// Mail::to($company->email)->send(new TaskDeadlineReminderEmail());\n// }\n// }\n// }\n// }\n// }\n// })->everyFiveMinutes();\n }", "title": "" }, { "docid": "130721d0f06059ad54098216c32c8f3d", "score": "0.5045048", "text": "function index()\n {\n\n $this->reset();\n // exit();\n\n $weekNumber = date(\"W\");\n\n $year = date(\"Y\");\n\n echo \"Scheduling ..<br/>\";\n echo \"Current weekno / year : $weekNumber / $year <br/>\";\n\n $sql = \" SELECT\n outlet_code\n FROM\n scheduler\n WHERE\n weekno = '$weekNumber'\n AND YEAR = '$year'\";\n $query = $this->db->query($sql);\n\n foreach ($query->result() as $row) {\n $outlet_code = $row->outlet_code;\n\n $sql = \"UPDATE `outlet` SET `created` = NOW() + INTERVAL 1 DAY, `is_displayed` = 1 WHERE `outlet_code` = '{$outlet_code}'\";\n $result = $this->db->query($sql);\n if ($result) {\n echo \"Outlet code: $outlet_code updated\";\n }\n\n // echo $this->db->last_query();\n echo \"<br/>\";\n\n }\n\n }", "title": "" }, { "docid": "2d28ed9efa3cffe8995a3fcbdd95e23c", "score": "0.50437176", "text": "public function addAppointment()\n {\n }", "title": "" }, { "docid": "1f54ce9907d4c616013f4c83c7083720", "score": "0.50353366", "text": "public function run()\n {\n MonthlySchedule::factory()\n ->count(6)\n ->state(function (array $attributes) {\n return ['end_date' => carbon::parse($attributes['start_date'])->addMonth(1)];\n }\n )\n ->has(CourseMaterial::factory()->count(2))\n ->create();\n }", "title": "" }, { "docid": "7c85d9ccb1d4b3af82857d5bb227c016", "score": "0.501483", "text": "function schedule($user_id)\n\t{\n\t\tif($this->ion_auth->logged_in())\n\t\t{\n\t\t\t$data = array();\n\t\t\t$data['page'] = 'schedule';\n\t\t\t$data['in_project'] = false;\n\t\t\t$this->load->view('main_head', $data);\n\t\t\t$this->load->view('main_schedule');\n\t\t\t$this->load->view('main_foot');\n\t\t} else {\n\t\t\t$uri = $_SERVER['REQUEST_URI'];\n\t\t\t$pos = strpos($uri, 'main/');\n\t\t\t$_SESSION['requested_uri'] = substr($uri,$pos);\n\t\t\tredirect('auth/login');\n\t\t}\n\t}", "title": "" }, { "docid": "b81957dc1474d22cf0ca18d204f4cded", "score": "0.50076824", "text": "public function __construct(){\n get_instance()->load->model('scheduled');\n }", "title": "" }, { "docid": "4f5170d6e3174b6ec78e5ec55775e517", "score": "0.5005196", "text": "function scheduler_events_update($slot, $course) {\n \n $slotDoesntHaveAStudent = ! count_records('scheduler_appointment', 'slotid', $slot->id);\n $slotWasAttended = count_records('scheduler_appointment', 'slotid', $slot->id, 'attended', 1); \n\n if ($slotDoesntHaveAStudent || $slotWasAttended) {\n scheduler_delete_calendar_events($slot);\n } \n else {\n scheduler_add_update_calendar_events($slot, $course);\n }\n}", "title": "" }, { "docid": "c073b5c5c2544f77ad55cd152b93e522", "score": "0.49999586", "text": "function scheduler_add_update_calendar_events($slot, $course) { \n\n //firstly, collect up the information we'll need no matter what.\n $eventDuration = ($slot->duration) * 60;\n $eventStartTime = $slot->starttime;\n \n // get all students attached to that slot\n $appointments = get_records('scheduler_appointment', 'slotid', $slot->id, '', 'studentid,studentid');\n\n // nothing to do\n if (!$appointments) return;\n\n $studentids = implode(',', array_keys($appointments));\n \n $teacher = get_record('user', 'id', $slot->teacherid);\n $students = get_records_list('user', 'id', $studentids);\n \n $schedulerDescription = get_field('scheduler', 'description', 'id', $slot->schedulerid);\n $schedulerName = get_field('scheduler', 'name', 'id', $slot->schedulerid);\n $teacherEventDescription = addslashes(\"$schedulerName<br/><br/>$schedulerDescription\");\n \n $studentEventDescription = $teacherEventDescription;\n \n //the eventtype field stores a code that is used to relate calendar events with the slots that 'own' them.\n //the code is SSstu (for a student event) or SSsup (for a teacher event).\n //then, the id of the scheduler slot that it belongs to.\n //finally, the courseID. I can't remember why, TODO: remember the good reason.\n //all in a colon delimited string. This will run into problems when the IDs of slots and courses are bigger than 7 digits in length... \n $teacherEventType = \"SSsup:{$slot->id}:{$course->id}\";\n $studentEventType = \"SSstu:{$slot->id}:{$course->id}\";\n \n $studentNames = array();\n\n // passes studentEvent and teacherEvent by reference so function can fill them\n scheduler_events_exists($slot, $studentEvent, $teacherEvent);\n\n foreach($students as $student){\n $studentNames[] = fullname($student);\n $studentEventName = get_string('meetingwith', 'scheduler').' '.$course->teacher.', '.fullname($teacher);\n\n //firstly, deal with the student's event\n //if it exists, update it, else create a new one.\n \n if ($studentEvent) {\n $studentEvent->name = $studentEventName;\n $studentEvent->description = $studentEventDescription;\n $studentEvent->format = 1;\n $studentEvent->userid = $student->id;\n $studentEvent->timemodified = time();\n // $studentEvent->modulename = 'scheduler'; // Issue on delete/edit link\n $studentEvent->instance = $slot->schedulerid;\n $studentEvent->timestart = $eventStartTime;\n $studentEvent->timeduration = $eventDuration;\n $studentEvent->visible = 1;\n $studentEvent->eventtype = $studentEventType;\n update_record('event', $studentEvent);\n } else {\n $studentEvent->name = $studentEventName;\n $studentEvent->description = $studentEventDescription;\n $studentEvent->format = 1;\n $studentEvent->userid = $student->id;\n $studentEvent->timemodified = time();\n // $studentEvent->modulename = 'scheduler';\n $studentEvent->instance = $slot->schedulerid;\n $studentEvent->timestart = $eventStartTime;\n $studentEvent->timeduration = $eventDuration;\n $studentEvent->visible = 1;\n $studentEvent->id = null;\n $studentEvent->eventtype = $studentEventType;\n // This should be changed to use add_event()\n insert_record('event', $studentEvent);\n }\n \n }\n\n if (count($studentNames) > 1){\n $teacherEventName = get_string('meetingwithplural', 'scheduler').' '.$course->students.', '.implode(', ', $studentNames);\n } else {\n $teacherEventName = get_string('meetingwith', 'scheduler').' '.$course->student.', '.$studentNames[0];\n }\n if ($teacherEvent) {\n $teacherEvent->name = $teacherEventName;\n $teacherEvent->description = $teacherEventDescription;\n $teacherEvent->format = 1;\n $teacherEvent->userid = $slot->teacherid;\n $teacherEvent->timemodified = time();\n // $teacherEvent->modulename = 'scheduler';\n $teacherEvent->instance = $slot->schedulerid;\n $teacherEvent->timestart = $eventStartTime;\n $teacherEvent->timeduration = $eventDuration;\n $teacherEvent->visible = 1;\n $teacherEvent->eventtype = $teacherEventType;\n update_record('event',$teacherEvent);\n } else {\n $teacherEvent->name = $teacherEventName;\n $teacherEvent->description = $teacherEventDescription;\n $teacherEvent->format = 1;\n $teacherEvent->userid = $slot->teacherid;\n $teacherEvent->instance = $slot->schedulerid;\n $teacherEvent->timemodified = time();\n // $teacherEvent->modulename = 'scheduler';\n $teacherEvent->timestart = $eventStartTime;\n $teacherEvent->timeduration = $eventDuration;\n $teacherEvent->visible = 1;\n $teacherEvent->id = null;\n $teacherEvent->eventtype = $teacherEventType;\n insert_record('event', $teacherEvent);\n }\n}", "title": "" }, { "docid": "1ea3e6b4f3cfe966e85d27a30b85072e", "score": "0.49993756", "text": "function tutorship_get_reservation_info_link($courseid, $timetableid, $week, $urlparams) {\n global $DB;\n $urlstr = '/mod/tutorship/view.php';\n $reservationcondition = array('courseid' => $courseid, 'timetableid' => $timetableid, 'week' => $week);\n\n if ($DB->record_exists('tutorship_reserves', $reservationcondition)) {\n $studentid = $DB->get_field('tutorship_reserves', 'studentid', $reservationcondition);\n $student = $DB->get_record('user', array('id' => $studentid));\n $reserveid = $DB->get_field('tutorship_reserves', 'id', $reservationcondition);\n\n\t\t//Link For Calendar Event\n\t\t$timeslotid = (int) $DB->get_field('tutorship_timetables', 'timeslotid', array('id' => $timetableid));\n\t\t$timeslot = $DB->get_record('tutorship_timeslots', array('id' => $timeslotid));\n\t\t$year = date('Y', time());\n\t\t$time = gmdate('H:i', $timeslot->starttime);\n\t\t$daynumber = date('d', tutorship_get_date($timeslot->day, $week, $year));\n\t\t$month = date('m', tutorship_get_date($timeslot->day, $week, $year));\n\t\t$unixtime = mktime(0, 0, 0, (int) $month, (int) $daynumber, (int) $year);\n\t\t$unixtime += $timeslot->starttime;\n\t\t\t\t\t\n\t\t//print_r($unixtime);die();\n\n\t\t$courseInfo = $DB->get_record('course', array('id' => $courseid));\n\t\t$courseFullName = $courseInfo->fullname;\n\n $linkconditions = array('id' => $studentid, 'course' => $courseid);\n\t\t$studentFullName = $student->firstname.\" \" . $student->lastname;\n $linkstr = $studentFullName .'<br>'.$student->username;//$student->email;\n $params = $urlparams;\n $params['action'] = 1;\n $params['cancell'] = 1;\n $params['reserveid'] = $reserveid;\n\n $conditions = array('courseid' => $courseid, 'timetableid' => $timetableid, 'week' => $week, 'confirmed' => '1');\n $confirmed = $DB->get_field('tutorship_reserves', 'confirmed', $conditions);\n\n $output = html_writer::link(new moodle_url('/user/view.php', $linkconditions), $linkstr);\n $output .= '<br>';\n\t\n\t\t\n\n if (! $confirmed) {\n\n $confirmparams = $urlparams;\n $confirmparams['action'] = 1;\n $confirmparams['cancell'] = 0;\n $confirmparams['reserveid'] = $reserveid;\n $output .= html_writer::link(new moodle_url($urlstr, $confirmparams), get_string('confirm', 'tutorship'));\n $output .= '<br>';\n\n }\n\t\telse\n\t\t{\n\t\t\t$calendarCondition = array('view' => 'day', 'course' => $courseid, 'time' => $unixtime);\n\t\t\t$output .= html_writer::link(new moodle_url('/calendar/view.php', $calendarCondition), $courseFullName);\n\t\t\t$output .= '<br>';\n\t\t}\n\n // Marked For cancel in teacher $output .= html_writer::link(new moodle_url($urlstr, $params), get_string('cancel', 'tutorship'));\n \n } else {\n $output = get_string('empty', 'tutorship');\n }\n\n return $output;\n}", "title": "" }, { "docid": "f7afbf8b9e15202d29fb66a7df202351", "score": "0.4992365", "text": "function activity_tab() {\n\t\tglobal $current_user, $bp;\n\t\twp_get_current_user();\n\n\t\t$type = get_post_type_object( $this->id );\n\t\t$count = bpcp_get_user_count( $current_user->ID, $this->id );\n\n\t\tif ( $count->publish ) { ?>\n\t\t\t<li id=\"activity-<?php echo $bp->{$this->id}->slug; ?>\"><a href=\"<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/' . $bp->{$this->id}->slug . '/' ?>\"><?php printf( $type->labels->my_posts, $count->publish ) ?></a></li>\n\t\t<?php }\n\t}", "title": "" }, { "docid": "f78e060af7c5ec156db4393690b51183", "score": "0.49922037", "text": "public function schedule()\n {\n return $this->belongsTo('App\\Schedule');\n }", "title": "" } ]
99b316964e5800d3eb99dd9514d17ce9
afficher la liste des formt
[ { "docid": "a228fdacbb59a5721b5116509bd99752", "score": "0.0", "text": "public function all_formt_n()\n {\n $this->AdminAuthCheck();\n $all_formt_info = DB::table('tbl_formations')\n ->where('formt_type', 'non')\n ->orderByDesc('formt_id')\n ->paginate(5);\n $nb = $all_formt_info->count();\n\n return view('formation.all_formt_non', ['all_formt_info' => $all_formt_info])\n ->with(['nb' => $nb]);\n\n }", "title": "" } ]
[ { "docid": "3ba941db19852c1d1dc9b194d7705d7e", "score": "0.6505567", "text": "public function liste(){\r\n \r\n $d['vente'] = $this->Vente->get();\r\n $this->set($d);\r\n $this->renderS('listeVente');\r\n \r\n print_r($d);\r\n \r\n }", "title": "" }, { "docid": "9531bfb085cb9934430b7547bfecb39d", "score": "0.6447971", "text": "public function lists()\n {\n }", "title": "" }, { "docid": "fc587691898429843aee3d4f788f6819", "score": "0.6384857", "text": "public function lists();", "title": "" }, { "docid": "6da96e35fad3db959cf294e4a99a01f4", "score": "0.6312548", "text": "public function list();", "title": "" }, { "docid": "621114f2c354d5dded359c36f0699c69", "score": "0.63048464", "text": "private function lesListes() : string {\n\t\t$html = '';\n\t\tforeach($this->tab as $liste){\n\t\t\t$html .= \"<li>{$liste['titre']}, {$liste['description']}</li>\";\n\t\t}\n\t\t$html = \"<ul>$html</ul>\";\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "a17aead04408df89282658f40f5d8105", "score": "0.6304339", "text": "Public function lister_rep(){\n\n\n\n //je scan le repertoire desirer\n $tableau = scandir($this->var_rep);\n\n //j'effectue un foreach pour ranger le tableau et effectuer un traitement dessus\n foreach($tableau as $k => $v)\n {\n\n //comme scandir retourne un tableau avec la clée 0 et 1 inutile je les ignore\n if($k !='0' && $k != '1')\n {\n\n $liste[] = $v;\n\n }\n }\n return $liste;\n\n }", "title": "" }, { "docid": "92596c3d27ebdfd33a4bc41374c3c076", "score": "0.6241987", "text": "public function liste() {\r\n $reports = $this->report->getReports();\r\n\t$graphs = $this->graph->getGraphs();\r\n\t$this->setAction(\"liste\");\r\n\t$this->genererVue(true, array('reports' => $reports, 'graphs' => $graphs));\r\n }", "title": "" }, { "docid": "5192ab1df56908efa7a2dc3747ec9df7", "score": "0.62374526", "text": "public function compile()\n {\n if ($this->liga == '') {\n return;\n }\n $mannschaften = \\MannschaftModel::findByLiga($this->liga, ['order' => 'name ASC']);\n if ($mannschaften === null) {\n return;\n }\n\n $listitems = [];\n foreach ($mannschaften as $mannschaft) {\n /*\n if ($mannschaft->teampage) {\n $teampage = \\PageModel::findById($mannschaft->teampage);\n $listitem = sprintf(\"<a href='%s'>%s</a>\",\n \\Controller::generateFrontendUrl($teampage->row()),\n $mannschaft->name\n );\n } else {\n $listitem = $mannschaft->name;\n }\n */\n if ($mannschaft->active==='1') {\n $listitem = $mannschaft->getLinkedName();\n $listitems[] = $listitem;\n }\n }\n\n $this->Template->listitems = $listitems;\n\n }", "title": "" }, { "docid": "ad69dbcb5017423a97efe0e1acca9cc3", "score": "0.6210344", "text": "public function listar(){\n $registro = new Registro();\n // Recuperar dados\n $lista = $registro->getRegistros();\n // Manipular dados\n // . . .\n\n // Substituindo numero da manutencao pelo tipo dela.\n foreach ($lista as $key => $value) {\n $lista[$key]['tipo'] = $value['tipo'] == 1 ? 'Preventiva' : ($value['tipo'] == 2 ? 'Corretiva' : 'Urgente');\n }\n\n // Invocar/retornar os dados para view.\n include 'view/registros/lista.php';\n }", "title": "" }, { "docid": "c965ad045ab8664a3cbeec7f0dcb1498", "score": "0.61663944", "text": "function getFasce():array{return $this->listaFasce;}", "title": "" }, { "docid": "9c1e8fa492a273a8029727e7b624324c", "score": "0.61428094", "text": "abstract public function getListeChamp();", "title": "" }, { "docid": "60343f2d43f71731abe085a2701cfca0", "score": "0.61074317", "text": "function listForfaits()\n{\n $forfaits = getForfaits();\n require('view/forfait/listForfaitsView.php');\n}", "title": "" }, { "docid": "8dec2ed96f2efed88efae32321452fc3", "score": "0.6091854", "text": "public function getAllList();", "title": "" }, { "docid": "21ea9ca6e67755582e4972cc971caf07", "score": "0.6090279", "text": "public function listar()\n\t{\n\t\tparent::listar();\n\t\t$this->viewVars['botoesLista']['0'] = array();\n\t\t$this->viewVars['botoesLista']['1'] = array();\n\t}", "title": "" }, { "docid": "b3379440015b2d96131500a71d9e87ea", "score": "0.6031665", "text": "public function doListPrint(){\r\n\t\t\tparent::pdfGenericList(array('delegacion','estado'),\"../_commons/css\",\"Listado delegaciones L&M.pdf\");\r\n\t\t}", "title": "" }, { "docid": "6cfb5cbe141ea91ecdd44fc51f0d6e92", "score": "0.6016874", "text": "public function getList();", "title": "" }, { "docid": "6cfb5cbe141ea91ecdd44fc51f0d6e92", "score": "0.6016874", "text": "public function getList();", "title": "" }, { "docid": "6cfb5cbe141ea91ecdd44fc51f0d6e92", "score": "0.6016874", "text": "public function getList();", "title": "" }, { "docid": "6cfb5cbe141ea91ecdd44fc51f0d6e92", "score": "0.6016874", "text": "public function getList();", "title": "" }, { "docid": "6cfb5cbe141ea91ecdd44fc51f0d6e92", "score": "0.6016874", "text": "public function getList();", "title": "" }, { "docid": "6cfb5cbe141ea91ecdd44fc51f0d6e92", "score": "0.6016874", "text": "public function getList();", "title": "" }, { "docid": "0888108a141db0b58da07157b059c370", "score": "0.60057914", "text": "public function optionList(){\n\t\t/*if ($this->request->is('ajax')) {\n \t$this->disableCache();\n\t\t}*/\n\t\t$this->layout = null;\n\t\t//$this->autoRender = false;\n\n\t\t$this->set('chamadotipos',\n\t\t\t\t\t\t\t\t$this->ChamadoTipo->find('list', array(\n\t\t\t\t\t\t\t\t\t'fields' => array('ChamadoTipo.id', 'ChamadoTipo.nome'),\n\t\t\t\t\t\t\t\t\t'conditions' => array('ChamadoTipo.servico_id' => $this->params['url']['servico']))));\n\t}", "title": "" }, { "docid": "69225736d642146ea3bad15ccb1e0f9a", "score": "0.6003978", "text": "function getListeChamps()\n{\n\t// ATTENTION, respecter l'ordre des champs de la table dans la base de données pour construire laListeChamp\n\t$laListeChamps[]=new dbChamp(\"Pdf_id\", \"entier\", \"get_id\", \"set_id\");\n\t$laListeChamps[]=new dbChamp(\"Pdf_titre\", \"text\", \"get_titre\", \"set_titre\");\n\t$laListeChamps[]=new dbChamp(\"Pdf_src\", \"text\", \"get_src\", \"set_src\");\n\t$laListeChamps[]=new dbChamp(\"Pdf_vignette\", \"text\", \"get_vignette\", \"set_vignette\");\n\t$laListeChamps[]=new dbChamp(\"Pdf_metadata\", \"text\", \"get_metadata\", \"set_metadata\");\n\t$laListeChamps[]=new dbChamp(\"Pdf_cms_site\", \"entier\", \"get_cms_site\", \"set_cms_site\");\n\t$laListeChamps[]=new dbChamp(\"Pdf_dtcrea\", \"date_formatee\", \"get_dtcrea\", \"set_dtcrea\");\n\t$laListeChamps[]=new dbChamp(\"Pdf_dtmod\", \"date_formatee\", \"get_dtmod\", \"set_dtmod\");\n\t$laListeChamps[]=new dbChamp(\"Pdf_statut\", \"entier\", \"get_statut\", \"set_statut\");\n\treturn($laListeChamps);\n}", "title": "" }, { "docid": "f4d17451160e0b6de7ae955b505d6c54", "score": "0.6003732", "text": "public function list() {\n\n\t}", "title": "" }, { "docid": "42a7a82d5e01a3db53e9cb5d09e9d56a", "score": "0.600209", "text": "abstract public function getList();", "title": "" }, { "docid": "826833999132aa8ed19873abcf7a0bd3", "score": "0.5998683", "text": "public function listMineAction() {\n\t\t$this->view->assign('value', $this->arrayService->flatten($this->taskRepository->findByPerson(), 'list'));\n\t}", "title": "" }, { "docid": "931794dbd10ecce58d7be1c315675866", "score": "0.59848297", "text": "public function listAll(){\n $allCinema = CinemaDao::getAll();\n $GLOBALS[\"smarty\"]->assign('isLoggedIn', isset($_SESSION[\"user\"]));\n $GLOBALS[\"smarty\"]->assign('cinemas', $allCinema);\n $GLOBALS[\"smarty\"]->display('cinemaList.tpl');\n }", "title": "" }, { "docid": "36d1a822767c802ab1f7d798aeff362f", "score": "0.5977163", "text": "public function listForms();", "title": "" }, { "docid": "8ba2638df2bb5851a654e7c7da8612c0", "score": "0.5955044", "text": "public function listDetalhes(): array;", "title": "" }, { "docid": "c41c5dd1949f5936b516cadde660635b", "score": "0.59541065", "text": "public function getMListList(){\r\n return $this->_get(2);\r\n }", "title": "" }, { "docid": "c41c5dd1949f5936b516cadde660635b", "score": "0.59541065", "text": "public function getMListList(){\r\n return $this->_get(2);\r\n }", "title": "" }, { "docid": "c41c5dd1949f5936b516cadde660635b", "score": "0.59541065", "text": "public function getMListList(){\r\n return $this->_get(2);\r\n }", "title": "" }, { "docid": "52d55cf627b4c2d460678da88e9fc9b1", "score": "0.595122", "text": "public function getItemListList(){\r\n return $this->_get(2);\r\n }", "title": "" }, { "docid": "82e7a6451b3804d0ccd19f9f3bc4fe40", "score": "0.5938212", "text": "public function getItemListList(){\r\n return $this->_get(5);\r\n }", "title": "" }, { "docid": "15627417aa2c5e3c0164cca3ad48d438", "score": "0.5933429", "text": "public function getListAkun();", "title": "" }, { "docid": "8d689d2f3d62a1eb10e875b7f254d432", "score": "0.59252423", "text": "public function listAll();", "title": "" }, { "docid": "8d689d2f3d62a1eb10e875b7f254d432", "score": "0.59252423", "text": "public function listAll();", "title": "" }, { "docid": "8d689d2f3d62a1eb10e875b7f254d432", "score": "0.59252423", "text": "public function listAll();", "title": "" }, { "docid": "87316b04bcdb309aafd51a6062c1b5a3", "score": "0.5924381", "text": "public function listtraiteAction() {\n\n $sessionmembre = new Zend_Session_Namespace('membre');\n //$this->_helper->layout->disableLayout();\n $this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n if (!isset($sessionmembre->code_membre)) {\n $this->_redirect('/');\n }\n\n\n $tabela = new Application_Model_DbTable_EuTpagcp();\n $select = $tabela->select(Zend_Db_Table::SELECT_WITH_FROM_PART);\n $select->setIntegrityCheck(false);\n //$select->joinRight('eu_traite', 'eu_traite.traite_tegcp = eu_tpagcp.id_tpagcp');\n $select->where('eu_tpagcp.escomptable = 3');\n $select->where('eu_tpagcp.code_membre = ?', $sessionmembre->code_membre);\n $select->where(\"eu_tpagcp.mode_reglement LIKE 'OPI'\");\n //$select->where('eu_traite.traiter != 8');\n $select->order('eu_tpagcp.date_deb ASC');\n $traites = $tabela->fetchAll($select);\n\n $this->view->traites = $traites;\n\n $this->view->tabletri = 1;\n\n }", "title": "" }, { "docid": "13ec6bfaabfea4ea5dc62cba1a3e76c3", "score": "0.59231013", "text": "public function lista()\n\t{\n\t\t$this->viewVars['listaCampos'] = array('Usuario.login','Usuario.nome','Usuario.email','Usuario.cidade_id');\n\t\t//$this->viewVars['comboCampos']['estado_id']['cidades'] = 'nome';\n\t\tparent::lista();\n\t}", "title": "" }, { "docid": "753efccadad9bb50a080b52ddc342291", "score": "0.59065294", "text": "public function getItemListList(){\r\n return $this->_get(1);\r\n }", "title": "" }, { "docid": "4334a44781521c85655a8e0f86674418", "score": "0.5905699", "text": "public function getGiftList();", "title": "" }, { "docid": "4a83b626f8d28c82bbd87a6c13ff2a1f", "score": "0.5904568", "text": "function _FormList()\n {\n global $CNK;\n $aDstImg = array( \"i_email.gif\", \"i_db.gif\" );\n $aDstAlt = array( \"L_alt_frm_to_email\", \"L_alt_frm_to_database\" );\n\n $mRid = $CNK->__oDisplay->LoadTpl('idx_all_forms');\n $mRidWrp = $CNK->__oDisplay->LoadTpl('idx_forms_wrp');\n $mRidRow = $CNK->__oDisplay->LoadTpl('idx_forms_row');\n $mRidDst = $CNK->__oDisplay->LoadTpl('idx_all_forms_dest');\n\n $aTpl = $CNK->__aWords;\n $aTplWrp = $CNK->__aWords;\n $aTplDst = array();\n $aTplDst['img_path'] = $this->__aModVars[\"my_mod_imgs\"];\n\n $aTpl['img_path'] = $this->__aModVars[\"my_mod_imgs\"];\n\n $aTplRow = $CNK->__aWords;\n $aTplRow['img_path'] = $this->__aModVars[\"my_mod_imgs\"];\n\n $mQid = $CNK->__oDb->ExecQuery( \"SELECT frm_id, frm_name, frm_type, frm_dest FROM pf_forms\" );\n\n if ( $CNK->__oDb->NumRows($mQid)<1 )\n {\n $mRidNoItems = $CNK->__oDisplay->LoadTpl('idx_forms_noitems');\n $aTplNoItems = $CNK->__aWords;\n $aTpl['T_idx_forms_wrp'] = $CNK->__oDisplay->EvalTpl( $aTplNoItems, '', $mRidNoItems );\n }\n else\n {\n $aTplWrp['T_idx_rows_all_forms'] = '';\n // Forms loop\n while ( $aRes = $CNK->__oDb->Fetch($mQid) )\n {\n $mQid1 = $CNK->__oDb->ExecQuery( \"SELECT pg_id FROM pf_pages WHERE pg_frm_id='{$aRes['frm_id']}'\" );\n\n $aPages = array();\n while ( $aRes1 = $CNK->__oDb->Fetch($mQid1) ) $aPages[] = $aRes1['pg_id'];\n\n $sPages = \"'\" . implode( \"','\", $aPages ) . \"'\";\n $mQid2 = $CNK->__oDb->ExecQuery( \"SELECT fld_id FROM pf_fields WHERE fld_pg_id IN ({$sPages})\" );\n\n $aTplRow['fields_count'] = $CNK->__oDb->NumRows($mQid2);\n $aTplRow['pages_count'] = count($aPages);\n $aTplRow['form_name'] = $aRes['frm_name'];\n\n if ( $aRes['frm_dest'] <= 1 )\n {\n $aTplDst['inf_img'] = $aDstImg[$aRes['frm_dest']];\n $aTplDst['img_alt'] = $CNK->__aWords[$aDstAlt[$aRes['frm_dest']]];\n $aTplRow['form_action'] = $CNK->__oDisplay->EvalTpl( $aTplDst, '', $mRidDst );\n }\n else if ( $aRes['frm_dest'] == 2 )\n {\n $aTplDst['inf_img'] = $aDstImg[0];\n $aTplDst['img_alt'] = $CNK->__aWords[$aDstAlt[0]];;\n $aTplRow['form_action'] = $CNK->__oDisplay->EvalTpl( $aTplDst, '', $mRidDst );\n $aTplDst['inf_img'] = $aDstImg[1];\n $aTplDst['img_alt'] = $CNK->__aWords[$aDstAlt[1]];\n $aTplRow['form_action'] .= $CNK->__oDisplay->EvalTpl( $aTplDst, '', $mRidDst );\n }\n\n $aTplRow['form_id'] = $aRes['frm_id'];\n $aTplRow['preview_url'] = \"index.php?fid={$aRes['frm_id']}&demo=1\";\n $aTplRow['get_code_url'] = \"admin.php?act=idx&code=08&fid={$aRes['frm_id']}\";\n\n $aTplWrp['T_idx_rows_all_forms'] .=\n $CNK->__oDisplay->EvalTpl( $aTplRow, '', $mRidRow );\n } // Forms loop (END)\n\n $aTpl['T_idx_forms_wrp'] = $CNK->__oDisplay->EvalTpl( $aTplWrp, '', $mRidWrp );\n }\n // Form List table rows (END)\n $aTpl['L_idx_forms_doc'] = $this->_LoadNote('form_list');\n\n $sAllForms = $CNK->__oDisplay->EvalTpl( $aTpl, '', $mRid );\n\n $this->__aTplData['L_page_title'] = $CNK->__aWords['L_page_frm_list'];\n $this->__aTplData['T_idx_wrapper_content'] = $sAllForms;\n }", "title": "" }, { "docid": "005facd6f54dc2b425d01c9a1aef920a", "score": "0.5899232", "text": "public function generateList() {\n\n $file_types = $this->getData('file_types');\n\n $i = 0;\n $tpl = file_get_contents($this->getModulePath() . '/tpl/' . $this->getTpl() . '.tpl.php');\n\n foreach ($this->items as $file) {\n\n /** @var FileObject $file */\n $i++;\n\n // Check that this file is not excluded by parameters.\n if (!empty($this->exclude) && !isset($this->exclude[$i])) {\n continue;\n }\n // Check that this file is included, if specified.\n if (!empty($this->include) && isset($this->include[$i])) {\n continue;\n }\n // If there is a limit set, break when passing it.\n if (!empty($this->limit) && $i > $this->limit) {\n break;\n }\n $classes = array('file-list-item', 'list-item-' . $this->getTpl(), 'list-item-' . $i, (($i % 2) == 0) ? 'list-item-even' : 'list-item-odd');\n\n if ((($file_types == FALSE) || $file_types == $file->getType()) && $file->isPublic()) {\n\n // TODO: not a beautiful approach. Invent something better.\n $list_item = preg_replace(\"/\\{LISTITEM\\}/is\", Api::string_normalize($file->getPath()), $tpl);\n $list_item = preg_replace(\"/\\{LISTNODE\\}/is\", Api::string_normalize($this->getNode()->getName()), $list_item);\n $list_item = QtagFactory::transformCodeTags($this->env, $list_item);\n $vars = array(\n 'list' => &$this,\n 'list_item' => &$list_item,\n 'list_item_counter' => $i,\n 'list_item_classes' => &$classes,\n );\n $this->env->hook('list_item', $vars);\n\n // If \"clean\" mode is set don't add wrapping li tags.\n if (empty($this->getData('clean'))) {\n $list_item = '<' . $this->getData('list_item_html_tag') . ' class=\"' . implode(' ', $classes) . '\" data-index=\"' . $i . '\">' . $list_item . '</' . $this->getData('list_item_html_tag') . '>';\n }\n\n $this->rendered_items[$file->getName()] = $list_item;\n }\n }\n }", "title": "" }, { "docid": "763c667833a58c0ab1d9b6ed41fcd7f1", "score": "0.5887937", "text": "public function actionList(){\n // input\n $t = Text::getEntityTexts($this->moduleid, $this->entityid);\n \n // process\n \n // output\n Page::setTitle(\"Consulta de \".$t->entity());\n $this->view(\"list\");\n }", "title": "" }, { "docid": "243e3ba491a1e6bc43adecdf2a7d4371", "score": "0.5879235", "text": "public function getListList(){\r\n return $this->_get(1);\r\n }", "title": "" }, { "docid": "257305b5cb9c17aaf500201366cb8a5e", "score": "0.58730286", "text": "public function uflist() {\n\n $uflist = array(\n '' => 'Selecione',\n 'AC' => 'Acre',\n 'AL' => 'Alagoas',\n 'AP' => 'Amapá',\n 'AM' => 'Amazonas',\n 'BA' => 'Bahia',\n 'CE' => 'Ceará',\n 'DF' => 'Distrito Federal',\n 'ES' => 'Espirito Santo',\n 'GO' => 'Goiás',\n 'MA' => 'Maranhão',\n 'MT' => 'Mato Grosso',\n 'MS' => 'Mato Grosso do Sul',\n 'MG' => 'Minas Gerais',\n 'PA' => 'Pará',\n 'PB' => 'Paraiba',\n 'PR' => 'Paraná',\n 'PE' => 'Pernambuco',\n 'PI' => 'Piauí',\n 'RJ' => 'Rio de Janeiro',\n 'RN' => 'Rio Grande do Norte',\n 'RS' => 'Rio Grande do Sul',\n 'RO' => 'Rondônia',\n 'RR' => 'Roraima',\n 'SC' => 'Santa Catarina',\n 'SP' => 'São Paulo',\n 'SE' => 'Sergipe',\n 'TO' => 'Tocantis'\n );\n\n return $uflist;\n }", "title": "" }, { "docid": "cc3d16b86ed98d91bec59bc751062dd0", "score": "0.5866075", "text": "public function listAction() {\n\t\t$this->view->assign('value', $this->arrayService->flatten($this->taskRepository->findAll(), 'list'));\n\t}", "title": "" }, { "docid": "518e90338c030a6d81f610434bd500ce", "score": "0.586346", "text": "public function list()\n {\n \n }", "title": "" }, { "docid": "9464fb5edaf58b8aaea4c74e6b1d602d", "score": "0.58626324", "text": "public function listallAction() {\n\n $dbh = Yaf_Registry::get('_db');\n $user = Yaf_Registry::get('user');\n $pclasses = Yaf_Registry::get('pclass');\n $hclass = Yaf_Registry::get('hclass');\n $this->getView()->assign(\"user\", $user);\n $this->getView()->assign(\"pclasses\", $pclasses);\n $this->getView()->assign(\"hclass\", $hclass);\n $userid = $user['tid'];\n $rs = $dbh->query(\"select * from attend inner join teacher where attend.tid=teacher.tid and attend.aid='{$userid}'\");\n $attends = $rs->fetchAll();\n $i=0;\n foreach($attends as $attend){\n $rs = $dbh->query(\"select * from ctoa where aid ='{$attend['id']}'\");\n $classes=$rs->fetchAll();\n foreach($classes as $class){\n $attend['classes'].=$class['cid'].=', ';\n }\n $attend['classes']=substr($attend['classes'],0,strlen($attend['classes'])-2);\n\n $attends[$i]=$attend;\n $i++;\n }\n $this -> getView() -> assign(\"attends\",$attends);\n }", "title": "" }, { "docid": "2b941b604725d3e8c914cde5789fd097", "score": "0.5861327", "text": "function get_form_list() {\n\t\t// 有効なフォームをリストアップ\n\t\t$db = Loader::db();\n\t\t$sql = \"SELECT\n\t\t\t\t\tbtFormTomoac.surveyName,\n\t\t\t\t\tbtFormTomoac.bID,\n\t\t\t\t\tbtFormTomoac.questionSetId,\n\t\t\t\t\tCollectionVersions.cvDateCreated\n\t\t\t\tFROM CollectionVersionBlocks \n\t\t\t\t\tINNER JOIN CollectionVersions \n\t\t\t\t\t\tON CollectionVersionBlocks.cID=CollectionVersions.cID \n\t\t\t\t\t\t\tAND CollectionVersionBlocks.cvID=CollectionVersions.cvID \n\t\t\t\t\tINNER JOIN btFormTomoac \n\t\t\t\t\t\tON CollectionVersionBlocks.bID=btFormTomoac.bID \n\t\t\t\tWHERE CollectionVersions.cvIsApproved=1\n\t\t\t\";\n\t\t//error_log($sql,0);\n\t\t$rows = $db->Execute($sql);\n\t\treturn $rows;\n\t}", "title": "" }, { "docid": "d2ff55d9f56cf729e2308f6df726164a", "score": "0.5848445", "text": "function lists()\n {\n $data[\"data\"] = $this->KegiatanModel->get();\n $this->load->view('kegiatan/lists', $data);\n }", "title": "" }, { "docid": "f9b8150dead276ccc9e50f2591ffb04a", "score": "0.5831372", "text": "public function listfAction() // Verificacion del perfil\n { \n $form = new Formulario(\"form\");\n $formc = new FormChequ(\"form\");\n $id = (int) $this->params()->fromRoute('id', 0);\n $form->get(\"id\")->setAttribute(\"value\",\"$id\");\n //----\n $this->dbAdapter=$this->getServiceLocator()->get('Zend\\Db\\Adapter');\n $d = New AlbumTable($this->dbAdapter); \n $con=' f.tipo=1 and a.id='.$id;\n if($this->getRequest()->isPost()) // Actulizar datos\n { \n $request = $this->getRequest();\n $data = $this->request->getPost(); \n $id = $data->id;\n\n // Buscar nivel del cargo \n $dat = $d->getGeneral1(\"select c.idNasp from t_lista_cheq a inner join t_lista_cheq_d d on a.id=d.idCheq\n inner join t_sol_con b on a.idSol=b.id\n inner join t_cargos c on b.idCar=c.id\n where d.id=\".$id);\n //print_r($dat);\n $idn = $dat['idNasp']; \n \n $dato = $d->getGeneral1(\"Select distinct idCheq, idEtai from t_lista_cheq_d where id=\".$id);\n\n $con=' and a.id = '.$dato['idEtai'];\n $datos = $d->getIformI( $con , $id ); \n // Guardar \n $u = New IniconForm($this->dbAdapter); \n \n $d->modGeneral(\"Delete from t_lista_cheq_f where idDcheq=\".$id); \n foreach ($datos as $dato){\n $idLc = $dato['idIform'];\n \n $lista = 0;\n $val = '$data->lista'.$idLc; // VALORES DE LISTA\n eval(\"\\$tex = $val;\"); \n if ( $tex != NULL)\n $lista = $tex;\n $texto = '';\n $val = '$data->res'.$idLc; // TEXTO\n eval(\"\\$tex = $val;\"); \n if ( $tex != NULL)\n $texto = $tex; \n $a=0;\n $val = '$data->ch'.$idLc; // Check de verificacion\n eval(\"\\$tex = $val;\"); \n if ( $tex != NULL)\n $a = $tex; \n\n $u->actRegistro($data->id ,$idLc ,$lista, $texto, $a); \n\n }\n return $this->redirect()->toUrl($this->getRequest()->getBaseUrl().$this->lin.'f/'.$data->id);\n \n } \n \n // Buscar nivel del cargo \n $da = $d->getGeneral(\"select c.idNasp from t_lista_cheq a inner join t_lista_cheq_d d on a.id=d.idCheq\n inner join t_sol_con b on a.idSol=b.id\n inner join t_cargos c on b.idCar=c.id\n where d.id=\".$id);\n $idn=0; \n foreach ($da as $dat){\n $idn = $dat['idNasp'];\n }\n $dato = $d->getGeneral1(\"Select distinct idCheq, idEtai from t_lista_cheq_d where id=\".$id);\n $valores=array\n (\n \"titulo\" => $this->tfor,\n 'url' => $this->getRequest()->getBaseUrl(),\n \"datos\" => $d->getIformI(' and a.id = '.$dato['idEtai'], $id ), \n \"datSol\" => $d->getDatSol($dato['idCheq']),\n \"ttablas\" => 'Detalle, Calificación, Acción',\n \"form\" => $form,\n \"formc\" => $formc,\n \"idCheq\" => $dato['idCheq'],\n \"lin\" => $this->lin\n ); \n return new ViewModel($valores);\n \n }", "title": "" }, { "docid": "7a9f78e0d04bc17991354eb2a8289b5e", "score": "0.5821458", "text": "function listing(){\n\t\t// la variable $listado guarda el resultado de la funcion GetPersons\n\t\t//para luego ser enviada a la vista en el objeto _listado\n\t\t\t\t$listado = $this->_person->getPersons();\n\t\t\t\t$this->_view->_listado = $listado;\n\t\t\t\t\n\t\t\t\t$this->_view->render('listing', 'persons', '',$this->_sidebar_menu);\n\t\t\t}", "title": "" }, { "docid": "b9eb18b7d833a2fd6353130286552d9a", "score": "0.58172745", "text": "public function getList() {\r\n\t\treturn $this->getAtributo(\"list\");\r\n\t}", "title": "" }, { "docid": "9c07a60d8d4bae3d11b6fb33ae831a47", "score": "0.581482", "text": "function getListeChamps()\n{\n\t// ATTENTION, respecter l'ordre des champs de la table dans la base de données pour construire laListeChamp\n\t$laListeChamps[]=new dbChamp(\"Tit_id\", \"entier\", \"get_id\", \"set_id\");\n\t$laListeChamps[]=new dbChamp(\"Tit_nom\", \"text\", \"get_nom\", \"set_nom\");\n\t$laListeChamps[]=new dbChamp(\"Tit_cms_site\", \"entier\", \"get_cms_site\", \"set_cms_site\");\n\t$laListeChamps[]=new dbChamp(\"Tit_statut\", \"entier\", \"get_statut\", \"set_statut\");\n\treturn($laListeChamps);\n}", "title": "" }, { "docid": "88b826f9360e883b2300815561698711", "score": "0.58131385", "text": "public static function getList()\n {\n \treturn CHtml::listData(DepLocalidad::model()->findAll(),'id_dep_localidad', 'descripcion');\n \t}", "title": "" }, { "docid": "1b65213b9c58a993fb94ac834e0bfe6a", "score": "0.5805766", "text": "public function getInfoList(){\r\n return $this->_get(1);\r\n }", "title": "" }, { "docid": "32bc28064d5dd8960149987e8523fd71", "score": "0.57936066", "text": "public function getInfoList(){\n return $this->_get(6);\n }", "title": "" }, { "docid": "5bd0f3a29a5e67244d41d8e6229a4cff", "score": "0.5792179", "text": "public function listtraite11Action()\n {\n\n $sessionmembre = new Zend_Session_Namespace('membre');\n //$this->_helper->layout->disableLayout();\n $this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n if (!isset($sessionmembre->code_membre)) {\n $this->_redirect('/');\n }\n\n\n $tabela = new Application_Model_DbTable_EuTpagcp();\n $select = $tabela->select(Zend_Db_Table::SELECT_WITH_FROM_PART);\n $select->setIntegrityCheck(false);\n //$select->join('eu_traite', 'eu_traite.traite_tegcp = eu_tpagcp.id_tpagcp');\n $select->where('eu_tpagcp.escomptable = 3');\n //$select->where('eu_tpagcp.code_membre = ?', $sessionmembre->code_membre);\n $select->where(\"eu_tpagcp.mode_reglement LIKE 'OPI'\");\n //$select->where(\"eu_traite.traite_code_banque IN (SELECT code_banque FROM eu_banque WHERE code_membre_morale LIKE '\".$sessionmembre->code_membre.\"')\");\n $select->order('eu_tpagcp.date_deb ASC');\n $traites = $tabela->fetchAll($select);\n\n $this->view->traites = $traites;\n\n\n\n $this->view->tabletri = 1;\n\n }", "title": "" }, { "docid": "6587bb95d4a67ca1480e841bd5959437", "score": "0.57902247", "text": "function dnh_rubrieken_list() {\n // Beperk toegang\n if ( !current_user_can( 'manage_options' ) ) {\n wp_die( __( 'You do not have sufficient permissions to access this page.' ) );\n }\n \n if(!class_exists('DNHRubrieken_List_Table')){\n require_once( 'rubrieken-list-table-class.php' );\n }\n //Create an instance of our package class...\n\t$myListTable = new DNHRubrieken_List_Table();\n\t//Fetch, prepare, sort, and filter our data...\n\t$myListTable->prepare_items();\n\tinclude( 'rubrieken-list.inc.php' );\t\n}", "title": "" }, { "docid": "0714cc8c6f54f199a378e66007e39238", "score": "0.57891864", "text": "function viewlist() {\n $lista = $this->getModel()->getList();\n $datoFinal = <<<DEF\n <script>\n var confirmarBorrar = function(evento) {\n var objeto = evento.target;\n var r = confirm('Borrar?');\n if (r) {\n } else {\n evento.preventDefault();\n }\n }\n var a = document.getElementsByClassName('borrar');\n for (var i = 0; i < a.length; i++) {\n a[i].addEventListener('click', confirmarBorrar, false);\n }\n </script>\nDEF;\n $dato = '';\n foreach($lista as $usuario) {\n $dato .= $usuario;\n $dato .= '<a class=\"borrar\" href=\"index.php?ruta=usuario&accion=dodelete&email=' . $usuario->getEmail() . '\">borrar este Usuario</a> ';\n $dato .= '<a href=\"index.php?ruta=usuario&accion=viewedit&email=' . $usuario->getEmail() . '\">editar este Usuario</a>';\n $dato .= '<br>';\n }\n $dato .= $datoFinal;\n $dato .= '<a href=\"index.php?ruta=register&accion=viewinsert\" > Insertar</a>';\n $this->getModel()->addData('lista', $dato);\n }", "title": "" }, { "docid": "67a393deb2cde865d396eb0200297a09", "score": "0.5788082", "text": "public function listsalaireAction() {\n $sessionmembre = new Zend_Session_Namespace('membre');\n //$this->_helper->layout->disableLayout();\n $this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n if (!isset($sessionmembre->code_membre)) {\n $this->_redirect('/');\n }\n $tabela = new Application_Model_DbTable_EuTpagcp();\n $select = $tabela->select();\n $select->where('eu_tpagcp.code_membre = ?',$sessionmembre->code_membre);\n $select->where(\"eu_tpagcp.mode_reglement LIKE 'SALAIRE'\");\n $result = $tabela->fetchAll($select);\n $this->view->entries = $result;\n\n $this->view->tabletri = 1;\n }", "title": "" }, { "docid": "f2273562b072a2829fb7d5b8210a362a", "score": "0.5772102", "text": "public function action_list()\n {\n //ustawia aktywne menu\n $this->menu->setActive('list');\n $this->template->title = \"Zarządzanie podaniami\";\n\n //sprawdza czy admin zalogowany\n if (!Auth::instance()->logged_in())HTTP::redirect('admin', 302);\n\n //po prostu wyswietla widok views/admin/dynamic-list.php\n $this->template->content = View::factory('admin/dynamic-list');\n }", "title": "" }, { "docid": "3440dae1ffaf63d331f5b8ace40d96c9", "score": "0.576574", "text": "function listerTout() {\r\n echo \"Liste des types d'appartements disponibles dans la base : <br/>\";\r\n $listeTypeAppartements = TypeAppartement::findAll();\r\n foreach ($listeTypeAppartements as $value) {\r\n $value->afficher();\r\n }\r\n}", "title": "" }, { "docid": "1e6cd2a81e326672e39fc1bbb173c795", "score": "0.5760508", "text": "public function liste2()\n {\n $this->load->database();\n\n // Exécute la requête\n $results = $this->db->query(\"SELECT * FROM produits ORDER BY pro_id ASC\");\n\n // Récupération des résultats\n $aListe2 = $results->result();\n\n // Ajoute des résultats de la requête au tableau des variables à transmettre à la vue\n $aView[\"liste_produits\"] = $aListe2;\n\n // Appel de la vue avec transmission du tableau\n $this->load->view('liste2', $aView);\n }", "title": "" }, { "docid": "7bddcc0a28d935da8c3de6ed862adc71", "score": "0.57552713", "text": "public function getInfoList(){\r\n return $this->_get(2);\r\n }", "title": "" }, { "docid": "65d16544b2ab30365103a7d843bff7c2", "score": "0.57546633", "text": "protected function _set_list() {\n $this->_remap_list(FALSE);\n }", "title": "" }, { "docid": "7412cc1d70ba68b8404c252ea04af328", "score": "0.5747732", "text": "public function list()\n {\n //on récupère les rendez-vous avec la fonction getAppointments du modèle appointment\n $appointments = $this->appointment->getAppointments();\n //appel de la fonction render de la class Controller qui affiche la vue\n $this->render('appointments/listeRendezVous.php', $appointments);\n\n\n }", "title": "" }, { "docid": "9c4f9b65a381fd5d8e400963e8c5d611", "score": "0.57456636", "text": "private function viewList ( ) {\r\n\r\n /** estableix la vista que s'ha de mostrar */\r\n $this->view = $_SESSION[\"viewPath\"].'dashboardllarview.php'; \r\n\r\n }", "title": "" }, { "docid": "27147ad1fb6c2345cdfa4cbfc490755d", "score": "0.5732556", "text": "function searchable_form_lists()\n {\n //check if logged in\n $this->_is_logged_in();\n\n $this->data['title'] = \"List searchable form\";\n\n //check permission\n //$this->has_allowed_perm($this->router->fetch_method());\n\n $config = array(\n 'base_url' => $this->config->base_url(\"xform/searchable_form_lists\"),\n 'total_rows' => $this->Xform_model->count_searchable_form(),\n 'uri_segment' => 3,\n );\n\n $this->pagination->initialize($config);\n $page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0;\n\n $this->data['form_list'] = $this->Xform_model->get_searchable_form_list($this->pagination->per_page, $page);\n $this->data[\"links\"] = $this->pagination->create_links();\n\n foreach ($this->data['form_list'] as $k => $value) {\n $this->data['form_list'][$k]->xform = $this->Xform_model->get_form_by_id($value->xform_id);\n }\n\n //render view\n $this->load->view('header', $this->data);\n $this->load->view(\"searchable_form_list\");\n $this->load->view('footer');\n }", "title": "" }, { "docid": "51b1cc6b6ee7ba0d0eccd6713d328fef", "score": "0.5732", "text": "public function getInfoList(){\n return $this->_get(11);\n }", "title": "" }, { "docid": "1952edf4538b39f517c39023aef2a591", "score": "0.57221645", "text": "public static function filelist()\n\t{\n\t\tstatic::get_config();\n\t\t$docs_dir = static::$docs_dir;\n\t\t\n\t\t$list = \\File::read_dir($docs_dir);\n\t\t$list = static::convert_filelist($list);\n\t\t//var_dump($list);\n\t\t\n\t\tforeach ($list as $file)\n\t\t{\n\t\t\techo $file . \"\\n\";\n\t\t}\n\t}", "title": "" }, { "docid": "be77afec22add6f5b0c7a0ebc2119f3d", "score": "0.5721611", "text": "function getListeChamps()\n{\n\t// ATTENTION, respecter l'ordre des champs de la table dans la base de données pour construire laListeChamp\n\t$laListeChamps[]=new dbChamp(\"Cms_id\", \"entier\", \"get_id\", \"set_id\");\n\t$laListeChamps[]=new dbChamp(\"Cms_src\", \"text\", \"get_src\", \"set_src\");\n\t$laListeChamps[]=new dbChamp(\"Cms_filemdate\", \"text\", \"get_filemdate\", \"set_filemdate\");\n\t$laListeChamps[]=new dbChamp(\"Cms_w\", \"entier\", \"get_w\", \"set_w\");\n\t$laListeChamps[]=new dbChamp(\"Cms_h\", \"entier\", \"get_h\", \"set_h\");\n\t$laListeChamps[]=new dbChamp(\"Cms_data\", \"text\", \"get_data\", \"set_data\");\n\treturn($laListeChamps);\n}", "title": "" }, { "docid": "b847c06403b7be7c12b40611a8fd513a", "score": "0.5716567", "text": "public function getInfoList(){\n return $this->_get(3);\n }", "title": "" }, { "docid": "b7fcaff894053c0a2b4909eb18047d1b", "score": "0.5711934", "text": "public static function listAll(){\n\t\t$conexion = new Conexion();\n\t\t$consulta = $conexion->prepare('SELECT * FROM ' . self::TABLA . ' ORDER BY idetiqueta');\n\t\t$consulta->execute();\n\t\t$registros = $consulta->fetchAll(PDO::FETCH_ASSOC);\n\t\treturn $registros;\n\t}", "title": "" }, { "docid": "29352a30c257f82ee76c68f05a0e7096", "score": "0.5711239", "text": "function listeFormation()\n {\n \t$bdd = new Base();\n \t$bdd = $bdd->connexion();\n\n \t$req = $bdd->query('SELECT id AS id_formation, nom_formation, contenu, dure AS dure_formation, la_date AS date_formation, lieux, pre_requis, prix AS prix_formation FROM formation ORDER BY id');\n\n $donnees = $req->fetchAll(PDO::FETCH_ASSOC);\n \t\n return $donnees;\n }", "title": "" }, { "docid": "3f9967283679e2285b3402cc42da1ae4", "score": "0.57110846", "text": "public function listchequeAction()\n {\n\n $sessionmembre = new Zend_Session_Namespace('membre');\n //$this->_helper->layout->disableLayout();\n $this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n if (!isset($sessionmembre->code_membre)) {\n $this->_redirect('/');\n }\n\n\n $tabela = new Application_Model_DbTable_EuTpagcp();\n $select = $tabela->select(Zend_Db_Table::SELECT_WITH_FROM_PART);\n $select->setIntegrityCheck(false);\n //$select->joinRight('eu_traite', 'eu_traite.traite_tegcp = eu_tpagcp.id_tpagcp');\n $select->where('eu_tpagcp.escomptable = 3');\n $select->where('eu_tpagcp.code_membre = ?', $sessionmembre->code_membre);\n $select->where(\"eu_tpagcp.mode_reglement LIKE 'CHEQUE'\");\n //$select->where('eu_traite.traiter != 8');\n $select->order('eu_tpagcp.date_deb ASC');\n $traites = $tabela->fetchAll($select);\n\n $this->view->traites = $traites;\n\n\n\n $this->view->tabletri = 1;\n\n }", "title": "" }, { "docid": "ac20a2b33c47bebf1b93e0fa4b3f0f51", "score": "0.57068217", "text": "public function getItemgetList(){\n return $this->_get(6);\n }", "title": "" }, { "docid": "2fba9f1b031369fc18249669f2ec292d", "score": "0.5706372", "text": "public function listAction() : void {\n $maillists = $this->maillistRepository->findAll();\n $server = [];\n /** @var \\BoergenerWebdesign\\BwDpsgList\\Domain\\Model\\Maillist $maillist */\n foreach($maillists as $maillist) {\n $server[$maillist -> getServer() -> getUid()][] = $maillist;\n }\n $this -> view -> assignMultiple([\n 'server' => $server\n ]);\n }", "title": "" }, { "docid": "830da61da3b6f487eefe460abb863c1e", "score": "0.5703038", "text": "public function getInfoList() {\n\t\tif ($this->language == 'english') {\n\t\t\t$query = 'SELECT TIT_EN, CONT_EN FROM PERSONAL_INFO ORDER BY ORDEN';\n\t\t}\n\t\telse if ($this->language == 'espanol') {\n\t\t\t$query = 'SELECT TIT_ES, CONT_ES FROM PERSONAL_INFO ORDER BY ORDEN';\n\t\t\tmysql_query(\"SET NAMES 'utf8'\");\n\t\t}\n\t\t\n\t\t$result = mysql_query($query) or die('Consulta fallida: ' . mysql_error());\n\n\t\t// Imprimir los resultados en HTML\n\t\twhile ($line = mysql_fetch_array($result, MYSQL_NUM)) {\n\t\t\techo \"<p><strong>$line[0]:</strong> $line[1]</p>\";\n\t\t}\n\t\t\n\t\t// Liberar resultados\n\t\tmysql_free_result($result);\n\t}", "title": "" }, { "docid": "9d1e88dfd92a1083d4c77f61221a0c35", "score": "0.5698338", "text": "private function GetLista(){\n $i = 1;\n //eu estou chamando o meu metodo listar dados da classe conexão\n while($lista = $this->ListarDados()):\n $this->itens[$i] = array(\n 'idProduto'=> $lista['id_Produto'],\n 'nomeProduto' => $lista['nomeProduto'],\n 'referencia' => $lista['referencia'],\n 'custo' => 'R$ ' . str_replace(\".\", \",\", $lista['custo']),\n 'venda' => 'R$ ' . str_replace(\".\", \",\", $lista['venda']),\n 'lucro' => 'R$ ' . str_replace(\".\", \",\", $lista['lucro'])\n );\n $i++;\n endwhile;\n }", "title": "" }, { "docid": "e14e4a665dc70298020327cfc0147843", "score": "0.5684029", "text": "public function getTListList(){\r\n return $this->_get(1);\r\n }", "title": "" }, { "docid": "7cc1e59f5fc0e40d76d7ac7a413e10a8", "score": "0.5676496", "text": "public function projet_disponible_list(){\n \n $spathSQL= $this->GLOBALS_INI[\"PATH_HOME\"] . $this->GLOBALS_INI[\"PATH_MODEL\"] . \"projet_disponible_list.sql\";\n $this->resultat[\"profil_pro_projet_disponible\"]= $this->oBdd->getSelectDatas($spathSQL);\n \n }", "title": "" }, { "docid": "0e198cde16d5a5daaf1a641cb125c115", "score": "0.5673077", "text": "public function getList()\n {\n $this->setContent((new Log($this->mysql()))->renderTable());\n }", "title": "" }, { "docid": "a77084e5b2454d9dabb577c21ac2a6cd", "score": "0.5669846", "text": "public function listastaffAction()\n {\n $staff=$this->_adminModel->getDipendenti();\n $this->view->staff =$staff;\n }", "title": "" }, { "docid": "b208593b68527259191c482fc50f1c8d", "score": "0.5665416", "text": "public function getInfoList(){\n return $this->_get(21);\n }", "title": "" }, { "docid": "45a6bec9d104fb6bfd9a74c9e9ab92a4", "score": "0.56653357", "text": "public function getInfoList(){\n return $this->_get(7);\n }", "title": "" }, { "docid": "45a6bec9d104fb6bfd9a74c9e9ab92a4", "score": "0.56653357", "text": "public function getInfoList(){\n return $this->_get(7);\n }", "title": "" }, { "docid": "1faabbfb67ae44999da8978871989801", "score": "0.5661279", "text": "public function getList()\n {\n\n }", "title": "" }, { "docid": "df885397fa447b3a1f9f2e6b6b8df907", "score": "0.56608737", "text": "function getListeChamps()\n{\n\t// ATTENTION, respecter l'ordre des champs de la table dans la base de données pour construire laListeChamp\n\t$laListeChamps[]=new dbChamp(\"Lan_id\", \"entier\", \"get_id\", \"set_id\");\n\t$laListeChamps[]=new dbChamp(\"Lan_libelle\", \"text\", \"get_libelle\", \"set_libelle\");\n\t$laListeChamps[]=new dbChamp(\"Lan_libellecourt\", \"text\", \"get_libellecourt\", \"set_libellecourt\");\n\t$laListeChamps[]=new dbChamp(\"Lan_statut\", \"entier\", \"get_statut\", \"set_statut\");\n\treturn($laListeChamps);\n}", "title": "" }, { "docid": "93c40b74e27ac1552b6d74d807a1ff2c", "score": "0.56592774", "text": "protected function _get_list() {\n return $this->_remap_list();\n }", "title": "" }, { "docid": "180cb24e795ee01eb5890866946008c8", "score": "0.5658173", "text": "public function listAll(){\r\n\t\t\t$this->bindingsData();\r\n\t\t\t$key = strtolower(get_class($this));\r\n\t\t\t$datos = array();\r\n\t\t\t$datos = $this->computeSQL($this->filtroSQL, (($this->externQuery)?false:true) );\r\n\t\t\tif ( $this->oSystem->getOrderActionClass()->getChannel()=='html' ){\t\r\n\t\t\t\t$template = $this->pathApp . '/listado.html';\r\n\t\t\t} else {\r\n\t\t\t\t$datosJson = array(\"error\"=>\"NO\",\"callBack\"=>\"\");\r\n\t\t\t\t$rows = array();\r\n\t\t\t\twhile ( $row = $this->oSystem->getConnection()->getColumnas($datos) )\r\n\t\t\t\t\tarray_push( $rows, array(\"id\"=>$row['id'],\"delegacion\"=>utf8_encode($row['delegacion']),\"estado\"=>$row['estado'] ) );\r\n\t\t\t\t$key = 'json';\r\n\t\t\t\t$template = '';\r\n\t\t\t\t$pagination = $this->oSystem->getConnection()->getPaginacionJSON();\r\n\t\t\t\t$datosJson['callBack']=\"refreshList(\".json_encode($pagination).\",\".json_encode($rows).\")\";\r\n\t\t\t\t$datos = json_encode( $datosJson );\r\n\t\t\t}\r\n\t\t\t$this->oLogger->debug($template);\r\n\t\t\t$this->computeTemplate($key, $datos, $template);\r\n\t\t}", "title": "" }, { "docid": "271af64fc25b41beefcb0ae2bf3d06c1", "score": "0.5650988", "text": "public function index()\n {\n $this->lst();\n }", "title": "" }, { "docid": "599c28c8b997cdceb3f5fa43341842fe", "score": "0.56473494", "text": "function getListeChamps()\n{\n\t// ATTENTION, respecter l'ordre des champs de la table dans la base de données pour construire laListeChamp\n\t$laListeChamps[]=new dbChamp(\"Xca_id\", \"entier\", \"get_id\", \"set_id\");\n\t$laListeChamps[]=new dbChamp(\"Xca_arbo_pages_parent\", \"entier\", \"get_arbo_pages_parent\", \"set_arbo_pages_parent\");\n\t$laListeChamps[]=new dbChamp(\"Xca_arbo_pages\", \"entier\", \"get_arbo_pages\", \"set_arbo_pages\");\n\t$laListeChamps[]=new dbChamp(\"Xca_classe\", \"text\", \"get_classe\", \"set_classe\");\n\t$laListeChamps[]=new dbChamp(\"Xca_objet\", \"entier\", \"get_objet\", \"set_objet\");\n\treturn($laListeChamps);\n}", "title": "" }, { "docid": "3dc93006fc6a37088d05a93674500af5", "score": "0.56440204", "text": "public function listarDependente(){\n\t\t$retorno = $this->model->buscarDependente();\n\t\t$this->view->listarDependente($retorno);\t\n\t}", "title": "" }, { "docid": "5b744e37a5b23ad2d81f7a50b5032cb6", "score": "0.56433815", "text": "public function voirListe()\n {\n $contenu = '';\n $liste = ArticleBd::lireListeDocuments();\n foreach ($liste as $article) {\n // Encodage des caractères\n $encodeur = new EncodeurManager();\n $encodeur->ajouter('Bv21411850\\Emdn2\\Utils\\Encodage\\EncodeurSpecialChars');\n // HTML\n $titre = \"Liste des articles\";\n $this->response->setPart('title', $titre);\n $afficheur = new ArticleHtml($article, $encodeur);\n $contenu .= $afficheur->afficherListe();\n // L'utilisateur est-il connecté ?\n $auth = AuthManager::getInstance();\n if ($auth->estConnecte()) {\n $contenu .= $afficheur->afficherOptions();\n }\n }\n $this->response->setPart('content', $contenu);\n }", "title": "" }, { "docid": "e2deba6120ffa81ac94fc1e5b214d8ef", "score": "0.5631599", "text": "function getListeChamps()\n{\n\t// ATTENTION, respecter l'ordre des champs de la table dans la base de données pour construire laListeChamp\n\t$laListeChamps[]=new dbChamp(\"Cms_id\", \"entier\", \"get_id\", \"set_id\");\n\t$laListeChamps[]=new dbChamp(\"Cms_titre\", \"text\", \"get_titre\", \"set_titre\");\n\t$laListeChamps[]=new dbChamp(\"Cms_type\", \"entier\", \"get_type\", \"set_type\");\n\t$laListeChamps[]=new dbChamp(\"Cms_valeur\", \"text\", \"get_valeur\", \"set_valeur\");\n\t$laListeChamps[]=new dbChamp(\"Cms_obligatoire\", \"entier\", \"get_obligatoire\", \"set_obligatoire\");\n\treturn($laListeChamps);\n}", "title": "" }, { "docid": "d3cb0c67092dc08bbd2d7b15040ea51f", "score": "0.56186754", "text": "function lists()\n\t{\n $urldata = $this->uri->uri_to_assoc(3, array('m', 'i'));\n # Pick all assigned data\n $data = assign_to_data($urldata);\n $current_financial_year = currentyear.'-'.endyear;\n\n \n\t\t //manage_items_v\n \t\t$data['list'] = $this->item->get_items($data);\n\n\n\t\t #fetch_ifb_procurement_entries\n $data['page_title'] = \"Manage items\"; \n $data['current_menu'] = 'view_items';\n $data['view_to_load'] = 'items/manage_items_v';\n $data['view_data']['form_title'] = $data['page_title'];\n \t\n\n $this->load->view('dashboard_v', $data);\n\n\t}", "title": "" }, { "docid": "06625157d750bcbc12bf333f28390d8c", "score": "0.5617202", "text": "public function getlist()\n {\n return Doctrine_Query::create()\n ->select('lay.*')\n ->from('Templater_Model_Mapper_Layout lay')\n ->execute();\n }", "title": "" }, { "docid": "de324c14914537ba1983528ee24f89db", "score": "0.5617109", "text": "public function lst(){\r\n $proinfo = StaffModel::select();\r\n foreach($proinfo as $prosingle){\r\n unset($prosingle['ROW_NUMBER']);\r\n }\r\n $protitles = array(\"id\",\"员工姓名\",\"员工性别\",\"角色权限\",\"员工账户\",\"员工电话\",\"员工密码\",\"建立时间\",\"操作\");\r\n $this->assign('KWK','staffid');\r\n $this->assign('titlename', '项目管理 - 项目浏览');\r\n $this->assign('tabletitles', $protitles);\r\n $this->assign('contents', $proinfo);\r\n $this->assign('editurl','\\\\staff\\\\edit\\\\' );\r\n $this->assign('delurl','\\\\staff\\\\del\\\\' );\r\n return $this->fetch();\r\n }", "title": "" } ]
bcc35ff70f23e76c18a5c9e18c244e30
Sets the createdByUserId property value. The identifier for the account that created the tenant tag. Required. Readonly.
[ { "docid": "70abb895c15b5eb6c2f7339fe87424de", "score": "0.70788306", "text": "public function setCreatedByUserId(?string $value): void {\n $this->getBackingStore()->set('createdByUserId', $value);\n }", "title": "" } ]
[ { "docid": "d6abf54ee08d8d3f305659b81bd23b1c", "score": "0.72719187", "text": "public function setCreatedUserId($createdUserId)\n {\n $this->createdUserId = $createdUserId;\n }", "title": "" }, { "docid": "ff734435760fb1c461ca3cf7fe9bbcd7", "score": "0.7140955", "text": "public function _setCreatedBy($createdBy) {\n\t\t$this->_createdBy = $createdBy;\n\t}", "title": "" }, { "docid": "33749b50a9491bdcd54a581434abcb3a", "score": "0.70827585", "text": "public function setCreatedBy(User $createdBy)\n\t{\n\t\t$this->addKeyValue('Created_By', $createdBy); \n\n\t}", "title": "" }, { "docid": "23d041b5575444287a11e9aeabf16a96", "score": "0.68512034", "text": "public function setCreatedBy($created_by)\n {\n $this->json()->created_by = $created_by;\n }", "title": "" }, { "docid": "8996a22e0c74cd092fbef6d7ce18bcbe", "score": "0.658687", "text": "public function setCreatedBy($var)\n {\n GPBUtil::checkString($var, True);\n $this->created_by = $var;\n\n return $this;\n }", "title": "" }, { "docid": "3a33a5afc399d3d6dccb12668f2fc757", "score": "0.6507967", "text": "public function setCreatedBy(?string $value): void {\n $this->getBackingStore()->set('createdBy', $value);\n }", "title": "" }, { "docid": "3a33a5afc399d3d6dccb12668f2fc757", "score": "0.6507967", "text": "public function setCreatedBy(?string $value): void {\n $this->getBackingStore()->set('createdBy', $value);\n }", "title": "" }, { "docid": "bcc9face940774b985d3554b8e78b266", "score": "0.64868766", "text": "public function setCreatedBy($value) {\n $this->{static::CREATED_BY} = $value;\n\n return $this;\n }", "title": "" }, { "docid": "0606bd4300f0a08730a0b9817e4677fe", "score": "0.6482462", "text": "public function setCreatedBy(\\GoetasWebservices\\Client\\SalesforceEnterprise\\Sobject\\UserType $createdBy)\n {\n $this->createdBy = $createdBy;\n return $this;\n }", "title": "" }, { "docid": "0606bd4300f0a08730a0b9817e4677fe", "score": "0.6482462", "text": "public function setCreatedBy(\\GoetasWebservices\\Client\\SalesforceEnterprise\\Sobject\\UserType $createdBy)\n {\n $this->createdBy = $createdBy;\n return $this;\n }", "title": "" }, { "docid": "0606bd4300f0a08730a0b9817e4677fe", "score": "0.6482462", "text": "public function setCreatedBy(\\GoetasWebservices\\Client\\SalesforceEnterprise\\Sobject\\UserType $createdBy)\n {\n $this->createdBy = $createdBy;\n return $this;\n }", "title": "" }, { "docid": "0606bd4300f0a08730a0b9817e4677fe", "score": "0.6482462", "text": "public function setCreatedBy(\\GoetasWebservices\\Client\\SalesforceEnterprise\\Sobject\\UserType $createdBy)\n {\n $this->createdBy = $createdBy;\n return $this;\n }", "title": "" }, { "docid": "0606bd4300f0a08730a0b9817e4677fe", "score": "0.6482462", "text": "public function setCreatedBy(\\GoetasWebservices\\Client\\SalesforceEnterprise\\Sobject\\UserType $createdBy)\n {\n $this->createdBy = $createdBy;\n return $this;\n }", "title": "" }, { "docid": "0606bd4300f0a08730a0b9817e4677fe", "score": "0.6482462", "text": "public function setCreatedBy(\\GoetasWebservices\\Client\\SalesforceEnterprise\\Sobject\\UserType $createdBy)\n {\n $this->createdBy = $createdBy;\n return $this;\n }", "title": "" }, { "docid": "0606bd4300f0a08730a0b9817e4677fe", "score": "0.6482462", "text": "public function setCreatedBy(\\GoetasWebservices\\Client\\SalesforceEnterprise\\Sobject\\UserType $createdBy)\n {\n $this->createdBy = $createdBy;\n return $this;\n }", "title": "" }, { "docid": "0606bd4300f0a08730a0b9817e4677fe", "score": "0.6482462", "text": "public function setCreatedBy(\\GoetasWebservices\\Client\\SalesforceEnterprise\\Sobject\\UserType $createdBy)\n {\n $this->createdBy = $createdBy;\n return $this;\n }", "title": "" }, { "docid": "0606bd4300f0a08730a0b9817e4677fe", "score": "0.6482462", "text": "public function setCreatedBy(\\GoetasWebservices\\Client\\SalesforceEnterprise\\Sobject\\UserType $createdBy)\n {\n $this->createdBy = $createdBy;\n return $this;\n }", "title": "" }, { "docid": "09a34cd679f5ab6f5cc60a4cae70afd8", "score": "0.63949615", "text": "public function setCreatedBy(string $createdBy)\n {\n $this->createdBy = $createdBy;\n return $this;\n }", "title": "" }, { "docid": "ea2bb58e1c07abb4158efd26dbeda024", "score": "0.63304144", "text": "public function setCreatedBy($val)\n {\n $this->_propDict[\"createdBy\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "ea2bb58e1c07abb4158efd26dbeda024", "score": "0.63304144", "text": "public function setCreatedBy($val)\n {\n $this->_propDict[\"createdBy\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "ea2bb58e1c07abb4158efd26dbeda024", "score": "0.63304144", "text": "public function setCreatedBy($val)\n {\n $this->_propDict[\"createdBy\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "ea2bb58e1c07abb4158efd26dbeda024", "score": "0.63304144", "text": "public function setCreatedBy($val)\n {\n $this->_propDict[\"createdBy\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "42e4258d2e3963d229b1f9133fbd5be6", "score": "0.62888384", "text": "public function setUserId($userId) {\n $this->userId = $userId;\n }", "title": "" }, { "docid": "439125163d84d8629d48b04fa503467f", "score": "0.6261553", "text": "public function setUserId($userId);", "title": "" }, { "docid": "31f9592e7700677fe08aa9e511535c74", "score": "0.62366694", "text": "public function setCreatedBy(\\GoetasWebservices\\Client\\SalesforceEnterprise\\Sobject\\SObjectType $createdBy)\n {\n $this->createdBy = $createdBy;\n return $this;\n }", "title": "" }, { "docid": "31f9592e7700677fe08aa9e511535c74", "score": "0.62366694", "text": "public function setCreatedBy(\\GoetasWebservices\\Client\\SalesforceEnterprise\\Sobject\\SObjectType $createdBy)\n {\n $this->createdBy = $createdBy;\n return $this;\n }", "title": "" }, { "docid": "31f9592e7700677fe08aa9e511535c74", "score": "0.62366694", "text": "public function setCreatedBy(\\GoetasWebservices\\Client\\SalesforceEnterprise\\Sobject\\SObjectType $createdBy)\n {\n $this->createdBy = $createdBy;\n return $this;\n }", "title": "" }, { "docid": "567f9c2f768d7daf2b79bc39ce20ef6b", "score": "0.6225903", "text": "public function setUserId($userId)\n {\n $this->userId = $userId;\n }", "title": "" }, { "docid": "567f9c2f768d7daf2b79bc39ce20ef6b", "score": "0.6225903", "text": "public function setUserId($userId)\n {\n $this->userId = $userId;\n }", "title": "" }, { "docid": "567f9c2f768d7daf2b79bc39ce20ef6b", "score": "0.6225903", "text": "public function setUserId($userId)\n {\n $this->userId = $userId;\n }", "title": "" }, { "docid": "0429ca40f1517431b6e15f322119aba6", "score": "0.6217489", "text": "function setCreatedById($value) {\n return $this->setFieldValue('created_by_id', $value);\n }", "title": "" }, { "docid": "d6e89fd18cb90566c74ca24d4602e5cd", "score": "0.6195985", "text": "public function set_created_by($_created_by)\n {\n $this->_created_by = $_created_by;\n\n return $this;\n }", "title": "" }, { "docid": "71c51555d7cc70be935090c77f9cb29e", "score": "0.61642265", "text": "public function setUserId($userId)\n {\n $this->user = $userId;\n }", "title": "" }, { "docid": "c2bc4287f35e602a8c14f509e3e4f348", "score": "0.6161724", "text": "public function setCreatedBy($createdBy) {\n\t\t$this->_setCreatedBy($createdBy);\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "650dfab421236e53d69c58753bde5e6c", "score": "0.6156483", "text": "public function setCreatedBy($createdBy)\n {\n $this->createdBy = $createdBy;\n\n return $this;\n }", "title": "" }, { "docid": "454b6ec4c410a09ad3cc700ce5aaaacc", "score": "0.6153357", "text": "function setUserId($userId) {\n\t\treturn $this->setData('userId', $userId);\n\t}", "title": "" }, { "docid": "454b6ec4c410a09ad3cc700ce5aaaacc", "score": "0.6153357", "text": "function setUserId($userId) {\n\t\treturn $this->setData('userId', $userId);\n\t}", "title": "" }, { "docid": "2fdf995b9f4d7878c4db7ce82fc022f0", "score": "0.6151305", "text": "public function setCreatedBy(?IdentitySet $value): void {\n $this->getBackingStore()->set('createdBy', $value);\n }", "title": "" }, { "docid": "d3547805f09be296b0348c7051db21ca", "score": "0.6105317", "text": "public function getCreatedUserId()\n {\n return $this->createdUserId;\n }", "title": "" }, { "docid": "b336c22c1fb63322e6352516c1c88a40", "score": "0.6095679", "text": "public function setUserId($value);", "title": "" }, { "docid": "3de78c0fcee6dbcf22f5df4c7c02555c", "score": "0.6061225", "text": "public function setUserId($userId)\n\t{\n\t\t$this->user_id = $userId;\n\t}", "title": "" }, { "docid": "04920abc6e07c895e4f8757c5adff151", "score": "0.6026384", "text": "final protected function setUserId($userId)\n {\n $this->userId = $userId;\n }", "title": "" }, { "docid": "4366759f2b4ddd38e42c5c7a2d2a59ba", "score": "0.6010603", "text": "public function setUser($userId)\n {\n $this->userId = $userId;\n }", "title": "" }, { "docid": "e4d0e239974a9e88467e88a6101220dd", "score": "0.59901375", "text": "public function setUserId(int $userId): void\n {\n $this->userId = $userId;\n }", "title": "" }, { "docid": "4e0e344d20b6e75b70e7e09c850ed27d", "score": "0.5970439", "text": "public function createdBy();", "title": "" }, { "docid": "3d0bbbf37cc1d5e30c8b086e5181dfd5", "score": "0.5967698", "text": "function setUserId($userId) {\n\t\treturn $this->userId = $userId;\n\t}", "title": "" }, { "docid": "97accbad26a4e4e6db595a94d6d353bb", "score": "0.5952101", "text": "public function getCreatedBy()\n {\n return $this->createdBy;\n }", "title": "" }, { "docid": "84f13d09aabe79b6676f560f8f43795d", "score": "0.590702", "text": "public function getCreatedby()\n\t{\n\t\treturn $this->createdby;\n\t}", "title": "" }, { "docid": "5074b6b0610a83b30ba20fe0545c32c0", "score": "0.58954597", "text": "public function setUserId($userId)\n {\n if ($this->getTeamId())\n $this->teamId = null;\n\n $this->userId = $userId;\n }", "title": "" }, { "docid": "28034e5f70b508f29cf7802352d4fc18", "score": "0.589544", "text": "function setCreatedByEmail($value) {\n return $this->setFieldValue('created_by_email', $value);\n }", "title": "" }, { "docid": "3dfbddbcfa2ba64a559e20c664a39c9b", "score": "0.5851627", "text": "public function _getCreatedBy() {\n\t\treturn $this->_createdBy;\n\t}", "title": "" }, { "docid": "7f4d4a57a8cbbd6c4457cdb7d89846b2", "score": "0.58255774", "text": "public function setIdentityUserId(string $userId): void;", "title": "" }, { "docid": "8171f87224c767fcf0cfd7d77076b95d", "score": "0.5820009", "text": "public function setUserId($userId)\n {\n $this->userId = $userId;\n\n return $this;\n }", "title": "" }, { "docid": "1882e57c84348e484b6a0dfc546eb9c4", "score": "0.58123094", "text": "public function setQuestionCreatedBy($questionCreatedBy)\n {\n return $this->setData(self::QUESTION_CREATED_BY, $questionCreatedBy);\n }", "title": "" }, { "docid": "9f8bfdbfa53c25721a6c25a2760ae0c2", "score": "0.58108515", "text": "public function setUserId($value)\n {\n $this->setProperty(\"UserId\", $value, true);\n }", "title": "" }, { "docid": "1b2fa3c009aa5135ec975527c708a8be", "score": "0.58032924", "text": "public function setUserId($userId) {\n\t\t\t$this->sourcedIdKey\n\t\t\t\t->setUserId($userId);\n\t\t\treturn $this;\n\t\t}", "title": "" }, { "docid": "dea79f7e3a54f2ddb27e86ef76add20c", "score": "0.5800218", "text": "public function setCreatedBy($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->created_by !== $v) {\n\t\t\t$this->created_by = $v;\n\t\t\t$this->modifiedColumns[] = TbinstexternaPeer::CREATED_BY;\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "cc65c55186c980231c405e69e65f5162", "score": "0.57802033", "text": "public function setUserId($id) {\n\t\t$this->userId = $id;\n\t}", "title": "" }, { "docid": "aba34d98284bf56ee7f925d35337a7de", "score": "0.5767967", "text": "public function setUserId($value)\n {\n $this->attributes['user_id'] = $value ?: null;\n }", "title": "" }, { "docid": "33f82630ba41d6fe645cb7e1f3bc0196", "score": "0.5767847", "text": "public function setUserId($userId){\n $this->userId = $userId;\n\n return $this;\n }", "title": "" }, { "docid": "67ff147f5d397a0b110d9d4b573695c6", "score": "0.57612896", "text": "public function getCreatedBy()\n {\n return $this->created_by;\n }", "title": "" }, { "docid": "3fc738ae14626b91e450731f527d61d3", "score": "0.5761097", "text": "public function getCreatedBy()\n {\n if (array_key_exists(\"createdBy\", $this->_propDict)) {\n if (is_a($this->_propDict[\"createdBy\"], \"\\Beta\\Microsoft\\Graph\\Model\\UserIdentity\") || is_null($this->_propDict[\"createdBy\"])) {\n return $this->_propDict[\"createdBy\"];\n } else {\n $this->_propDict[\"createdBy\"] = new UserIdentity($this->_propDict[\"createdBy\"]);\n return $this->_propDict[\"createdBy\"];\n }\n }\n return null;\n }", "title": "" }, { "docid": "a7a707229c96efae07b8cebe768bac76", "score": "0.57426167", "text": "public function setUserId($userId)\n {\n $this->userId = $userId;\n\n return $this;\n }", "title": "" }, { "docid": "346c5e010c99db25fe545dc4fc902500", "score": "0.57378095", "text": "public function getCreatedBy()\n {\n if (array_key_exists(\"createdBy\", $this->_propDict)) {\n if (is_a($this->_propDict[\"createdBy\"], \"\\Beta\\Microsoft\\Graph\\Model\\User\") || is_null($this->_propDict[\"createdBy\"])) {\n return $this->_propDict[\"createdBy\"];\n } else {\n $this->_propDict[\"createdBy\"] = new \\Beta\\Microsoft\\Graph\\Model\\User($this->_propDict[\"createdBy\"]);\n return $this->_propDict[\"createdBy\"];\n }\n }\n return null;\n }", "title": "" }, { "docid": "faa4b7e62f25e6fd5f98a919d298ec68", "score": "0.5729638", "text": "public function setUserId(?int $userId): self\n {\n $this->initialized['userId'] = true;\n $this->userId = $userId;\n\n return $this;\n }", "title": "" }, { "docid": "6f1a678453aade73a1432db2258a678e", "score": "0.5707757", "text": "public function setUser($userId){\n return $this->userId = $userId;\n }", "title": "" }, { "docid": "258ed918186e368ae624968abfb3a1fc", "score": "0.570138", "text": "public function getCreatedBy()\n\t{\n\t\treturn $this->created_by;\n\t}", "title": "" }, { "docid": "beb953a7286540f2f96f9b61552b07b6", "score": "0.56994754", "text": "public function createdBy()\n {\n return $this->belongsTo('App\\User', 'user_created_id', 'id');\n }", "title": "" }, { "docid": "35c3172018dd65a14564e6589f27df22", "score": "0.5685328", "text": "public function setUserId($userId)\n {\n $this->userId = $userId;\n\n return $this;\n }", "title": "" }, { "docid": "97f867c2a4827870944eeed080d038f0", "score": "0.56782407", "text": "public function setIdUser($idUser){\n $this->idUser = $idUser;\n\n }", "title": "" }, { "docid": "5b23f3bb00b18d75b5f947e86e31113c", "score": "0.56677216", "text": "public function setAssignerUserId($val)\n {\n $this->_propDict[\"assignerUserId\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "fc81dc7f31840f8136f6892eb8d42131", "score": "0.56645244", "text": "public function createdBy()\n {\n return $this->belongsTo(User::class, 'created_by_user_id');\n }", "title": "" }, { "docid": "8521fdb8a49b5918479a201343bc83ab", "score": "0.5652672", "text": "public function get_created_by()\n {\n return $this->_created_by;\n }", "title": "" }, { "docid": "cc49560888be495184f98d0c404e29be", "score": "0.56455886", "text": "public function getCreatedBy(): string\n {\n return $this->createdBy;\n }", "title": "" }, { "docid": "0f01707d8ee8548fca6fdd7b972692c7", "score": "0.56400293", "text": "public function setUserId($userId)\n {\n $this->userId = $userId;\n return $this;\n }", "title": "" }, { "docid": "0f01707d8ee8548fca6fdd7b972692c7", "score": "0.56400293", "text": "public function setUserId($userId)\n {\n $this->userId = $userId;\n return $this;\n }", "title": "" }, { "docid": "0f01707d8ee8548fca6fdd7b972692c7", "score": "0.56400293", "text": "public function setUserId($userId)\n {\n $this->userId = $userId;\n return $this;\n }", "title": "" }, { "docid": "4a1a4e7e8c06ad1e649cb04722c83aec", "score": "0.5627348", "text": "function setUserId($user_id) {\n $this->user_id = $user_id;\n }", "title": "" }, { "docid": "8b5b917303f629cf165b915703080b66", "score": "0.56228423", "text": "public function setUserId($userId)\n\t\t{\n\t\t\t\t$this->userId = (int)$userId;\n\n\t\t\t\treturn $this;\n\t\t}", "title": "" }, { "docid": "3cbbcf3899f33a145b3d020702e7e485", "score": "0.5622573", "text": "public function setAddedBy($addedBy): void\n {\n $this->addedBy = $addedBy;\n }", "title": "" }, { "docid": "91921539d1525a777aeacb6200b2ff80", "score": "0.5617653", "text": "public function setAddedBy($addedBy){\n $this->addedBy = $addedBy;\n }", "title": "" }, { "docid": "0b89980236eb07bb532df728e74af3c2", "score": "0.56162417", "text": "public function setUserId($newUserId) {\n $this->userId = $newUserId;\n }", "title": "" }, { "docid": "1864f145c40ae4b9e1e26ef6ecbc8d20", "score": "0.5610697", "text": "public function getCreatedBy()\n {\n if (!$this->isPropertyAvailable(\"CreatedBy\")) {\n $this->setProperty(\"CreatedBy\", new User($this->getContext(),\n new ResourcePath(\"CreatedBy\", $this->getResourcePath())));\n }\n return $this->getProperty(\"CreatedBy\");\n }", "title": "" }, { "docid": "d09af54f1d126c791ce0e5247646b3a3", "score": "0.560857", "text": "public function setUserId($value)\n {\n $this->user_id = $value;\n return $this;\n }", "title": "" }, { "docid": "7debcb6c07606bf8b7efe8ac008f8e01", "score": "0.56046367", "text": "private function getCreatedByAttribute()\n {\n return (array_key_exists($this->createdByAttribute, $this->attributes) ? $this->createdByAttribute : false);\n }", "title": "" }, { "docid": "9b44af1039f26151a30308aaa1c50a83", "score": "0.5604631", "text": "public function setUserId($userId)\n\t{\n\t\tif (is_numeric($userId)) {\n\t\t\t$this->_userId = (int)$userId;\n\t\t}\n\t}", "title": "" }, { "docid": "fb910f660fd2ca8e26d5402dc46b19f8", "score": "0.5603751", "text": "public function setUserid($userId)\r\n {\r\n $this->userId = $userId;\r\n\r\n return $this;\r\n }", "title": "" }, { "docid": "cd956d8d623961b1a3543c2e4fefea3f", "score": "0.5594872", "text": "protected function setUserId($userId)\n {\n if ($userId && Yii::app()->session) {\n Yii::app()->session['fb_userId'] = $userId;\n }\n $this->_userId = $userId;\n }", "title": "" }, { "docid": "4fb29cc893fd3c453074278b896ae78c", "score": "0.55945295", "text": "public function setUserId($userId)\n {\n $this->userId = $userId;\n\n return $this;\n }", "title": "" }, { "docid": "4fb29cc893fd3c453074278b896ae78c", "score": "0.55945295", "text": "public function setUserId($userId)\n {\n $this->userId = $userId;\n\n return $this;\n }", "title": "" }, { "docid": "4fb29cc893fd3c453074278b896ae78c", "score": "0.55945295", "text": "public function setUserId($userId)\n {\n $this->userId = $userId;\n\n return $this;\n }", "title": "" }, { "docid": "4fb29cc893fd3c453074278b896ae78c", "score": "0.55945295", "text": "public function setUserId($userId)\n {\n $this->userId = $userId;\n\n return $this;\n }", "title": "" }, { "docid": "4fb29cc893fd3c453074278b896ae78c", "score": "0.55945295", "text": "public function setUserId($userId)\n {\n $this->userId = $userId;\n\n return $this;\n }", "title": "" }, { "docid": "4fb29cc893fd3c453074278b896ae78c", "score": "0.55945295", "text": "public function setUserId($userId)\n {\n $this->userId = $userId;\n\n return $this;\n }", "title": "" }, { "docid": "7d0b4e79e878310bbb2672c659c2c056", "score": "0.55850565", "text": "public function set_UserId($userId)\n {\n $this->userId = $userId;\n\n return $this;\n }", "title": "" }, { "docid": "ec77e942fb91fb0b412ead38add3e27f", "score": "0.5570931", "text": "public function user_by() {\n if (isset($_SESSION['userinfo'])) {\n $this->created_by = $_SESSION['userinfo']['UID'];\n }\n }", "title": "" }, { "docid": "a1200df9d88a3782566686b613914066", "score": "0.55566305", "text": "function setToUserId($a_iToUserId)\n {\n $this->_iToUserId = (int) $a_iToUserId;\n $this->setSearchParameter('to_user_id', $this->_iToUserId);\n }", "title": "" }, { "docid": "edb22dfa5b3f24a6ad121f304d2d533f", "score": "0.55563664", "text": "protected function setUserId($userId)\n\t{\n\t\t$this->userId = $userId;\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "8d96e880b5f2a8d3c040fdccbf245c65", "score": "0.555016", "text": "function setRealtorUserId($a_iRealtorUserId)\n {\n if (!is_null($this->_iRealtorUserId) && $this->_iRealtorUserId !== (int) $a_iRealtorUserId) {\n $this->_markModified();\n }\n $this->_iRealtorUserId = (int) $a_iRealtorUserId;\n }", "title": "" } ]
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "d3bfe5fb89e0aa2f15ecfe190e457f61", "score": "0.0", "text": "public function edit(Warehouse $warehouse)\n {\n //\n }", "title": "" } ]
[ { "docid": "eaff1ff5ad75e879908bb065beeea534", "score": "0.789207", "text": "public function edit(Resource $resource)\n {\n return view('actions.resource.edit', compact('resource'));\n }", "title": "" }, { "docid": "f3bc4ff0e0f2cc54bf914d77670e405e", "score": "0.78099495", "text": "public function edit(Resource $resource)\n {\n return view('resource.edit',['resource'=>$resource]);\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.7692893", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "4bdbe4ff8aec98fee963bdf4dbf6da91", "score": "0.7512742", "text": "public function edit(FormBuilder $formBuilder, $course, Resource $resource)\n {\n //\n $edit = $formBuilder->create(\\App\\Forms\\Resource::class, [\n 'method' => 'PATCH',\n 'url' => route('resource.update', [$course, $resource->id]),\n 'model' => $resource,\n ]);\n //\n $delete = $formBuilder->create(\\App\\Forms\\DeleteForm::class, [\n 'method' => 'DELETE',\n 'url' => route('resource.destroy', [$course, $resource->id]),\n ]);\n $pageTitle = 'Edit Resource';\n return view('resources.formEdit', compact('edit','delete', 'pageTitle'));\n\n }", "title": "" }, { "docid": "93f7e624d9e32a9fbf006f4f83dae8a8", "score": "0.7485166", "text": "public function edit($id)\n {\n /*show edit form*/\n }", "title": "" }, { "docid": "1404e57fbb5774c03bfe25411f8fe287", "score": "0.7329009", "text": "public function edit($id)\n {\n $resource = Resource::findOrFail($id);\n \n $data = [\n 'resource' => $resource,\n ];\n\n return view('resources.edit-resource')->with($data);\n }", "title": "" }, { "docid": "ed0028dbd1fbb47ee337d77b8a651d9a", "score": "0.7300998", "text": "public function edit($id)\n\t{\n\t\t$resource = Resource::findOrFail($id);\n\t\treturn View::make('resource/edit', compact('resource'));\n\t}", "title": "" }, { "docid": "4753e80c2af19bb37f8b9df0bf10829e", "score": "0.72601366", "text": "public function edit( )\n\t{\n\t\t// show\n\t}", "title": "" }, { "docid": "2d0354bc64da2d977cfd60754017882b", "score": "0.7256488", "text": "public function edit($id)\n {\n $userdata = Resources::findOrFail($id);\n return view('admin.resource.edit', compact('userdata'));\n }", "title": "" }, { "docid": "8c5ec66a768a8406204fdc19e3dec141", "score": "0.7236764", "text": "public function edit($id)\n\t{\n\t\t// Get the resource if it has not been provided by the child class\n\t\tif( ! $this->resource->getKey())\n\t\t\t$this->resource = $this->resource->findOrFail($id);\n\n\t\t$this->layout->subtitle = _('Edit');\n\n\t\treturn $this->loadView(__FUNCTION__, $this->resource->getFillableLabels());\n\t}", "title": "" }, { "docid": "f486aa2dad1b98a29b575e9dba22938d", "score": "0.7131576", "text": "public function edit($id)\n {\n $resource = Resource::findOrFail($id);\n\n return view('resources.edit')->with(compact('resource'));\n }", "title": "" }, { "docid": "654b96e5d414d66677bf1e3d1695b1d8", "score": "0.7118867", "text": "public function edit_form()\n {\n return View::make(\"app.edit\");\n }", "title": "" }, { "docid": "ecbdcecae7d17f5fd47a1b3471865b07", "score": "0.71140355", "text": "public function edit($resourceId)\n {\n $resource = $this->resource->find($resourceId);\n\n return view('laramanager::resources.edit', compact('resource'));\n }", "title": "" }, { "docid": "8640b0c244bf00ab3b420106f09d5eb1", "score": "0.71136826", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BWBlogBundle:Resource')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Resource entity.');\n }\n\n $form = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BWBlogBundle:Resource:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "ab1c5f00384bd443c0312a8cedd635d9", "score": "0.709417", "text": "function edit() {\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t$productId = KRequest::getInt('productId');\n\t\t$matrixId = KRequest::getInt('id');\n\n\t\t$view = $this->getDefaultViewForm();\n\t\t$view->setProductId($productId);\n\t\t$view->setMatrixId($matrixId);\n\t\t$view->display();\n\n\t}", "title": "" }, { "docid": "5df52742ed05bd924198604d4236743d", "score": "0.7058229", "text": "public function edit($id)\n {\n //$resource = Resource::findOrFail($id);\n $query = '\"select\":\"*\",\"where\":\"id=' . $id . '\"';\n $data = ResourcesService::getResourcesTableRow($query);\n $resource = $data[\"Result\"][0];\n SyncService::SyncResourcesTable();\n return view('admin.resources.edit', compact('resource'));\n }", "title": "" }, { "docid": "6c1e231bfb659c518730d45c158fa402", "score": "0.7040291", "text": "public function edit($id)\n\t{\n\t\t$resource = $this->repository->getResource($id);\n\t\t$menuTab = $this->menuTab;\n\t\treturn response()->view('admin.resources.edit', compact(['resource', 'menuTab']));\n\t}", "title": "" }, { "docid": "9c8836b3e3aa143dfa78083f839f6e60", "score": "0.7036434", "text": "public function editAction()\n {\n $request = $this->getRequest();\n\t\t$id = $request->getParam(\"id\");\n\n $form = new Application_Form_Book();\n $book = new Application_Model_Book();\n\t\t$mapper = new Application_Model_BookMapper();\n $mapper->find($id, $book);\n\t\t\n\t\t$form->populate($book);\n\t\t\n\t\t$this->view->form=$form;\n\n }", "title": "" }, { "docid": "96884a0d55f36349b743e3d913248156", "score": "0.70006657", "text": "function edit()\n {\n $this->_view_edit('edit');\n }", "title": "" }, { "docid": "38b4c2bcc5d6f933f82442e502068ae3", "score": "0.6945275", "text": "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "title": "" }, { "docid": "0aee08a6c8d208457326de0c63ab1d93", "score": "0.69405466", "text": "public function edit($id)\n\t{\n $form_data = ['route' => [self::$prefixRoute . 'update', $this->revision->id], 'method' => 'PUT'];\n\n return view(self::$prefixView . 'form', compact('form_data'))\n \t->with(['revision' => $this->revision]);\n\t}", "title": "" }, { "docid": "13550b89e98e00015a895299bc148377", "score": "0.69336295", "text": "public function editAction()\n {\n $assign_id = $this->_getParam('assign');\n $this->_includeForm($assign_id);\n }", "title": "" }, { "docid": "44db8e15fc1352a7c519823621a72cc9", "score": "0.69331795", "text": "public function edit()\n {\n return view('coreplanification::edit');\n }", "title": "" }, { "docid": "901ccd53ce97c5a7d1966359f57043a4", "score": "0.69117606", "text": "public function edit()\n {\n return view('inpatient::edit');\n }", "title": "" }, { "docid": "6acf67aab48fd2b396026c0eeb096874", "score": "0.69115764", "text": "public function edit()\n {\n return view('prappo::edit');\n }", "title": "" }, { "docid": "291ee83a27f023635ff2c99d1e9ea7a6", "score": "0.69041586", "text": "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'em' => $this->getDoctrine()->getManager(),\n 'action' => $this->generateUrl('resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array(\n 'label' => 'Update',\n 'attr' => array(\n 'class' => 'btn btn-primary',\n ),\n ));\n\n return $form;\n }", "title": "" }, { "docid": "53a8dd3945e8d394e8af0378fcb0759a", "score": "0.68744934", "text": "public function edit($id)\n\t{\n // get\n $resident = Resident::find($id);\n\n // show the edit form and pass\n return View::make('residents.edit')\n ->with('resident', $resident);\n\t}", "title": "" }, { "docid": "b1f8a3dd503a02e69fbec578be1ee9d1", "score": "0.686333", "text": "public function editForm($id)\n\t{\n\t\t$job = Job::find($id);\n\t\tif(!$job)\n\t\t{\n\t\t\tApp::abort(404);\n\t\t}\n\n\t\treturn View::make('admin.jobs.edit')->with(array(\n\t\t\t'title' => 'Edition de '.$job->name,\n\t\t\t'job' => $job\n\t\t));\n\t}", "title": "" }, { "docid": "6fe32e6f0c7ebd96d516ccbe60770da8", "score": "0.686321", "text": "public function edit()\n\t{\n\t\t$jInput = JFactory::getApplication()->input;\n\t\t$jInput->set('view', 'field');\n\t\t$jInput->set('layout', 'default');\n\t\t$jInput->set('hidemainmenu', 1);\n\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "766ad0e46f9488ff1bb3e99bffd9b013", "score": "0.68585783", "text": "public function edit($id)\n {\n return view('formbuilder::edit');\n }", "title": "" }, { "docid": "3adf6e4a4db6770a78d161ea39e0d09a", "score": "0.68573624", "text": "public function editAction ( )\n {\n $model = $this->getModel($this->_modelName);\n $request = $this->getRequest();\n $form = $model->getForm();\n $params = $request->getParams();\n\n $model->load($request->getParam('id'));\n\n $form->injectDependencies($model, $params);\n\n if (! $model->id) {\n $message = sprintf(self::MSG_LOAD_FAILURE, $this->_modelName);\n $this->flashAndRedirect($message, 'error', array(\n 'module' => $request->getModuleName(),\n 'controller' => $request->getControllerName(),\n 'action' => 'index',\n ));\n }\n\n if ($request->isPost()) {\n try {\n $this->_edit($model, $request);\n } catch (Zend_Exception $exception) {\n $get = $this->_getGetRequest();\n $this->flashAndRedirect($exception->getMessage(), 'error', $get);\n }\n }\n\n $this->view->form = $form;\n $this->view->model = $model;\n\n }", "title": "" }, { "docid": "d56e1574f0c5378fe3811673b7df8b42", "score": "0.6851044", "text": "public function edit($id)\n\t{\n\t\t$this->page_title = 'Edit Associate';\n\t\t$data = $this->rendarEdit($id);\n\t\treturn view('admin.crud.form',$data);\n\t}", "title": "" }, { "docid": "489dd9e64fb4a5c656aedbd3e14c8922", "score": "0.6848005", "text": "public function edit($id)\n\t{\n\t\t$question = Question::findOrFail($id);\n return view('admin.question.form', compact('question'));\n\t}", "title": "" }, { "docid": "9f631e40538fb44577d89db78f7348d8", "score": "0.684799", "text": "public function edit($id)\n {\n\t\t$user = $this->repository->findOneById($id);\n\n return view($this->base . 'form',compact('user'));\n }", "title": "" }, { "docid": "ebdfabd30fdb198a4595764f3e45e18f", "score": "0.6832047", "text": "public function actionEdit()\n {\n $this->view->article = Article::findById((int)$_GET['id']);\n $this->view->display(__DIR__ . '/../../../templates/admin/edit.php');\n }", "title": "" }, { "docid": "8f4207c19a0c7a6f7e5ad8a14497a90f", "score": "0.6824207", "text": "public function edit($id)\n\t{\n\t\treturn \"Shows a form for editing a specific post\";\n\t}", "title": "" }, { "docid": "3968d721d2d6a0540f1d6feba20cef0c", "score": "0.68226755", "text": "public function edit($id)\n {\n return view('controllers.resource-controllers.edit', compact('id'));\n }", "title": "" }, { "docid": "43a06ccc90a0e604ffd06cacb786b0ff", "score": "0.6820547", "text": "public function edit($id)\n\t{\n\t\t$student = $this->students->findById($id);\n return View::make('students._form', array('student' => $student, 'exists' => true));\n\n\t}", "title": "" }, { "docid": "dd6567bb75ad8b2f5dcd4461b639f0e6", "score": "0.6819833", "text": "public function edit($id)\n {\n $form = Form::find($id);\n return view('formbuilder::form.edit',compact('form'));\n }", "title": "" }, { "docid": "ca5f52bec4884c7fcd8605fda797f2e0", "score": "0.681206", "text": "public function edit($id)\n {\n $form =\\App\\Form::find($id);\n return view('form.edit',compact('form'));\n }", "title": "" }, { "docid": "07993cef1b04896170dffd4d46ed96aa", "score": "0.68106216", "text": "public function edit($class_id, $resource)\n {\n //\n }", "title": "" }, { "docid": "42fefa0bb00f6a35ff461a006d5fb4fe", "score": "0.6809563", "text": "public function editForm()\n {\n $data = [\n 'question' => App::get('database')->select('questions', 'id', $_GET['id']),\n 'answers' => App::get('database')->select('answers', 'answer_id', $_GET['id'])\n ];\n\n return view('questions.edit', compact('data'));\n }", "title": "" }, { "docid": "5dbf6a424144f5f1ea70f7e2584cb814", "score": "0.68048286", "text": "public function edit()\r\n {\r\n return view('admin::edit');\r\n }", "title": "" }, { "docid": "b2548057b424e6a5cacb6db19ee658ae", "score": "0.68022823", "text": "public function edit()\n {\n return view('api::edit');\n }", "title": "" }, { "docid": "62c2bf22604789e0fe0631318bc4da7e", "score": "0.6793394", "text": "public function edit() {\n\t\t/* CHANGED - switched to url(\"id\") as $this->param(\"id\") is deprecated */\n\t $this->id = WaxUrl::get(\"id\");\n\t\tif(!$this->id) $this->id = $this->route_array[0];\n $this->model = new $this->model_class($this->id);\n \n\t\t$this->form = $this->render_partial(\"form\");\n\t\tif($_POST['cancel']) $this->redirect_to(Session::get(\"list_refer\"));\n\t\tif($_POST['save']) $this->save($this->model, \"edit\");\n\t\telse $this->save($this->model, Session::get(\"list_refer\"));\n\t}", "title": "" }, { "docid": "4d4b5c8d6ba885d863626bf0f1e99725", "score": "0.67909837", "text": "public function edit($id)\n\t{\n\t\t$this->resources = array('car' => $this->resource,\n \t\t\t\t\t\t\t\t 'categories' => Category::ClassListSelectInput(),\n \t\t\t\t\t\t\t\t 'carList' => Car::carListSelectOptions()\n \t\t\t\t\t\t);\n\t\treturn $this->respondTo(\n\t\t\tarray('html'=> function()\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t $this->layout->nest('content', $this->view, $this->resources);\n\t\t\t\t \t\t\t},\n\t\t\t\t 'js' => function()\n\t\t\t\t \t\t {\n\t\t\t\t \t\t \t $form = View::make($this->form, $this->resources)->render();\n\t\t\t\t \t\t \t return View::make('admin.shared.modal', array('body' => $form))->render();\n\t\t\t\t \t\t }\n\t\t\t\t )\n\t\t\t);\n\t}", "title": "" }, { "docid": "86d596efe1714c0e50410fc7134cd9e3", "score": "0.67899823", "text": "public function edit()\n {\n return view('berating::edit');\n }", "title": "" }, { "docid": "2147ded57d317abac917ded7bf4c5589", "score": "0.678895", "text": "public function edit($id)\n {\n $record = $this->model->findOrFail($id);\n\n $this->viewData['record'] = $record;\n\n $this->viewData['formMethod'] = 'PUT';\n $this->viewData['formAction'] = 'user.update';\n\n return view($this->defaultFormView, $this->viewData);\n }", "title": "" }, { "docid": "b475fc8e937568a510257d6507f3a6e2", "score": "0.67683", "text": "public function edit($id)\n {\n $product = Product::find($id);\n return view('admin.product.form',[ 'product' => $product ]);\n }", "title": "" }, { "docid": "cadf80168cda3fc14631174ff8ec05e6", "score": "0.6767456", "text": "public function editAction()\n {\n $model = $this->_initModel();\n\n // make sure that the model exists before continuing\n if ($this->_getRequestedId() && !$model && !$model->getId()) {\n Mage::getSingleton('adminhtml/session')->addError($this->__('This ' . $this->_getObjectLabel() . ' no longer exist or is corrupt.'));\n $this->_redirect('*/*/');\n } else {\n $this->_initAction()->renderLayout();\n }\n }", "title": "" }, { "docid": "5bf37156a011a54f8d1f89ba96911864", "score": "0.67593914", "text": "public function edit(Form $form)\n {\n return view('forms.edit',compact('form'));\n }", "title": "" }, { "docid": "ac62d8f04a855af96ee81ddcc7f43f6a", "score": "0.674935", "text": "public function edit(): void\n {\n $this->showEditPage($this->getItem());\n }", "title": "" }, { "docid": "e87e608ddadfa3687caa6cc9477425cf", "score": "0.6745892", "text": "public function edit($id)\n {\n $is_edit = true;\n $product = Product::find($id);\n\n return view('products.form', compact('product', 'is_edit'));\n }", "title": "" }, { "docid": "f317696c87c55af5bdb2c774e7855698", "score": "0.67415434", "text": "public function edit(Resource $resource)\n {\n //\n // $this->authorize('update',Resource::class);\n // $page=Page::all();\n // return view('resource.edit',compact('page','resource'));\n return response()->json($resource);\n }", "title": "" }, { "docid": "2a0de8686ce09f7bacd45838296d3aac", "score": "0.6740148", "text": "public function edit($id)\n {\n if(Gate::denies('familia-edit')){\n abort(403,\"Não autorizado!\");\n }\n\n $familia = Familia::find($id);\n\n return view('familias.form',compact('familia'));\n }", "title": "" }, { "docid": "6d0cd677e592e2179223532437971edd", "score": "0.67277086", "text": "public function edit($id)\n\t{\n return view($this->path . 'edit', ['record' => Record::find($id)] );\n\t}", "title": "" }, { "docid": "8ecab6633b0244e83acc1262c8f70524", "score": "0.6724784", "text": "public function edit($id)\n\t{\n\t\t$famoso = Famoso::find($id);\n\n\t\t// show the edit form and pass the object\n\t\treturn View::make('famoso.edit')\n\t\t\t->with('famoso', $famoso);\n\t}", "title": "" }, { "docid": "5e95479074ff3a4269a77c41326ace59", "score": "0.67221993", "text": "public function editing(){\n\t\t/// Send the user to this view\n\t\t$this->render(\"editing\");\n\t}", "title": "" }, { "docid": "e9232910411eba7ae6c98603663c9453", "score": "0.6719594", "text": "public function edit($id)\n {\n $company = Company::find($id);\n $company->form_action = $this->getRoute() . '.update';\n $company->page_title = 'Company Edit Page';\n // Add page type here to indicate that the form.blade.php is in 'edit' mode\n $company->page_type = 'edit';\n return view('backend.companies.form', [\n 'company' => $company\n ]);\n }", "title": "" }, { "docid": "73c3c8ef8ccb5ebffbd7c9d1617e5de2", "score": "0.6716718", "text": "public function editForm() {\n\t\t$layout = $this->input->get('layout', null, 'string');\n\t\t$nameModelForm = (empty($layout)) ? $this->nameKey.'form' : $layout.'form';\n\t\t$layout = (empty($layout)) ? 'edit' : 'edit_'.$layout; //BmDebug::log($layout, __method__);\n\t\t$view = $this->getView($this->default_view,\n\t\t\tJFactory::getDocument()->getType(), '', array('layout' => $layout));\n\t\t$view->setModel($this->getModel($this->nameKey));\n\t\t$view->setModel($this->getModel($nameModelForm));\n\t\t$view->editForm();\n\t}", "title": "" }, { "docid": "1d24319a1462677632ee7717aa20a61d", "score": "0.6715344", "text": "public function edit($id)\n { \n \treturn view(\"gestion.formularios.edit\",[\"formulario\"=>Formulario::findOrFail($id)]); \n }", "title": "" }, { "docid": "2a667f76d35f0224dbbf223e12e110af", "score": "0.6706635", "text": "public function actionEdit($id)\n\t{\n\t\t$form = $this->getComponent('rightResourceForm');\n\t\t/* @var $form Form */\n\n\t\t$submit = $form->addSubmit(FormBuilder::SUBMIT_EDIT, 'upravit zdroj oprávnění');\n\t\t$submit->onClick[] = callback($this,'edit');\n\n\t\t$form->addSubmit('stortno', \"storno\")->setValidationScope(false)->onClick[] = callback($this,'formStorno');\n\t}", "title": "" }, { "docid": "a7dded643ee65e6b9cf08ef89ee539b6", "score": "0.6699572", "text": "public function edit($id)\n\t{\n $form_data = ['route' => [self::$prefixRoute . 'update', $this->presentation->id], 'method' => 'PUT'];\n\n return view(self::$prefixView . 'form', compact('form_data'))\n \t->with(['presentation' => $this->presentation]);\n\t}", "title": "" }, { "docid": "4e3f60120231c9e9fb4516dda6cad799", "score": "0.6698769", "text": "public function edit($id)\n {\n $entity = Entity::query()->find($id);\n return view('crudgenerator::entities.edit', compact('entity'));\n }", "title": "" }, { "docid": "b3e1f1e6d5549bd781053c989eb1e847", "score": "0.66949964", "text": "public function edit($id)\n {\n $author = Author::find($id);\n return view('admin.author.form',['author' => $author]); \n }", "title": "" }, { "docid": "fe08627e9afbe6ed7f13f71f273030a1", "score": "0.6693402", "text": "public function edit($id)\n\t{\n $employee = Employee::find($id);\n return View::make('system.Employee.edit',compact(\"employee\"));\n\t}", "title": "" }, { "docid": "b8547be61d1a0bb98b26ec7de01610cd", "score": "0.668619", "text": "public function edit($id, FormBuilder $form_builder): Renderable\n {\n $existing_product = $this->product_repository->getById($id);\n\n $form = $form_builder->create('App\\Forms\\Product\\EditForm', [\n 'method' => 'PUT',\n 'url' => route('product.update'),\n 'model' => $existing_product\n ]);\n\n return view('product.modify', compact('form'));\n }", "title": "" }, { "docid": "bf49bc8226e13e2862c2259d16e93588", "score": "0.6680715", "text": "public function edit($id)\n {\n $product = Product::find($id);\n return view('products.edit_form')->with('product', $product)->with('manufacturers', Manufacturer::all());\n }", "title": "" }, { "docid": "6c0376e096733d3b0fa90503eef2434b", "score": "0.6677822", "text": "public function edit()\n {\n return view('bangunan::edit');\n }", "title": "" }, { "docid": "44ff363bc16fe7311c23454456531dbc", "score": "0.66771793", "text": "public function edit_item()\n {\n $this->check_authorization();\n \n $id = $this->get_arg('id', 0);\n $item = Item::find($id); \n $data['item'] = $item;\n $data['breadcrumbs'] = $this->generate_breadcrumbs(\n $item->category_id,\n array('/show_item?id='.$item->id => $item->name)\n );\n\n return new View('item_form', $data); \n }", "title": "" }, { "docid": "41567083a127c71ff96104505b7b5dec", "score": "0.66739434", "text": "public static function edit()\n {\n $record = todos::findOne($_REQUEST['id']);\n self::getTemplate('edit_task', $record);\n\n }", "title": "" }, { "docid": "98c3057a696eb14943e7e5fea5851c0b", "score": "0.6665287", "text": "public function edit($id)\n {\n return $this->showForm($id);\n }", "title": "" }, { "docid": "58fa8a98152b59c2e07c439335e492b4", "score": "0.6664993", "text": "public function edit($id)\n {\n return view('web::edit');\n }", "title": "" }, { "docid": "adb01bd13a4dfbf550016516570e7b60", "score": "0.6664392", "text": "public function edit($id)\n\t{\n\t\t$this->resources = array('station' => $this->resource\n \t\t\t\t\t\t);\n\t\treturn $this->respondTo(\n\t\t\tarray('html'=> function()\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t $this->layout->nest('content', $this->view, $this->resources);\n\t\t\t\t \t\t\t},\n\t\t\t\t 'js' => function()\n\t\t\t\t \t\t {\n\t\t\t\t \t\t \t $form = View::make($this->form, $this->resources)->render();\n\t\t\t\t \t\t \t return View::make('admin.shared.modal', array('body' => $form))->render();\n\t\t\t\t \t\t }\n\t\t\t\t )\n\t\t\t);\n\t}", "title": "" }, { "docid": "5fa4968110c48bd9bdcff5495b19f29a", "score": "0.66524285", "text": "public function edit()\n {\n return view('task::edit');\n }", "title": "" }, { "docid": "c13dfacb9aed13d70a670ff15ea907b6", "score": "0.664798", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('EmpleadoBundle:Empleado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Empleado entity.');\n }\n\n $editForm = $this->createForm(new EmpleadoType(), $entity);\n \n\n return $this->render('PanelBundle:Empleado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n ));\n }", "title": "" }, { "docid": "58f55c0117c1a36e605cb5c2aabc68e3", "score": "0.66402805", "text": "public function edit() {\n\t\t$author = pick_arg(Author::class) ?: new Author;\n\t\treturn $this->viewEdit(compact('author'));\n\t}", "title": "" }, { "docid": "221efc99f3dd40c0f971d42862c5b218", "score": "0.66357946", "text": "public function edit($id)\n\t{\n\t\tif(!$this->autorizado) return Redirect::to('/login');\n\t\t$modelo = Modelo::find($id);\n\t\tif (is_null ($modelo))\n\t\t{\n\t\t\tApp::abort(404);\n\t\t}\n\t\treturn View::make('models.form')->with('modelo', $modelo);\n\t}", "title": "" }, { "docid": "b912d383bf373377209a233f3ceefe90", "score": "0.66283524", "text": "public function editAction($id) {\r\n $em = $this->getDoctrine()->getEntityManager();\r\n\r\n $entity = $em->getRepository('MedicinaKernelBundle:Oficina')->find($id);\r\n\r\n if (!$entity) {\r\n throw $this->createNotFoundException('No se ha encontrado la oficina solicitada');\r\n }\r\n\r\n $editForm = $this->createForm(new OficinaType(), $entity);\r\n\r\n return $this->render('BackendBundle:Oficina:edit.html.twig', array(\r\n 'entity' => $entity,\r\n 'form' => $editForm->createView(),\r\n ));\r\n }", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.6627662", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "e69682a60ea811251468072e63bf80cb", "score": "0.6626088", "text": "public function showEditForm($id)\n\t{\n\t\t$post = Post::where('id', $id)->first();\n\t\treturn view('admin.post.edit', ['post' => $post]);\n\t}", "title": "" }, { "docid": "bb154b1db81c97b24dc305b03e48e156", "score": "0.6624101", "text": "function edit() {\n\t\t$this->display();\n\t}", "title": "" }, { "docid": "4ba7055b2304ab3f588267e488d1cfb9", "score": "0.6620297", "text": "function viewedit(){\n $id=Request::read('id');\n \n $nota = $this->getModel()->getNota($id);\n $this->getModel()->addData('titulo', $nota->getTitulo());\n $this->getModel()->addData('contenido', $nota->getContenido());\n $this->getModel()->addData('favorito', $nota->getFavorito());\n $this->getModel()->addData('idNotas', $nota->getId());\n $this->getModel()->addData('idUsuario', $nota->getIdUsuario());\n $this->getModel()->addFile('form', 'sections/nota/formEdit.html');\n }", "title": "" }, { "docid": "c9ce59f5b770500a9924cc8e0f97bf72", "score": "0.66186434", "text": "public function edit($id)\n {\n $resident = Resident::where('id','=',$id)->with('relatives')->first();\n return view('survey.family-member-form.edit', compact('resident'));\n }", "title": "" }, { "docid": "afb09dad84e30958b4252ef05c35ffd3", "score": "0.66183454", "text": "public function editView() {\n $this->edit = true;\n $this->addView();\n }", "title": "" }, { "docid": "63720603ef56686d63e3133a9a3ec385", "score": "0.6612739", "text": "public function edit()\n {\n return view('mgdestino::edit');\n }", "title": "" }, { "docid": "09ca9097e9f59afd7ab61c2fa4368b57", "score": "0.66118366", "text": "public function showEditForm($id)\r\r\n {\r\r\n $userinfo = User::findOrFail($id);\r\r\n return view('/auth/edituser', compact('userinfo'));\r\r\n }", "title": "" }, { "docid": "f77eec10d5891a2545e2b33ab8d59228", "score": "0.66089296", "text": "public function edit()\n {\n $company = Company::first();\n return view('company.edit',compact('company'));\n }", "title": "" }, { "docid": "035eb13b2ca5fd52c8005c0d17b6d221", "score": "0.66086483", "text": "public function edit()\n {\n return view('dashboard::edit');\n }", "title": "" }, { "docid": "035eb13b2ca5fd52c8005c0d17b6d221", "score": "0.66086483", "text": "public function edit()\n {\n return view('dashboard::edit');\n }", "title": "" }, { "docid": "fb75ecb723bf601f0c220bda3e7a2405", "score": "0.66079116", "text": "public function edit($id);", "title": "" }, { "docid": "9ec66c39b4a9570023bc9493ee748e0e", "score": "0.66041213", "text": "protected function editAction()\n {\n $this->editAction\n ->setAccess($this, Access::CAN_EDIT)\n ->setOwnerAccess($this)\n ->execute($this, UserEntity::class, UserActionEvent::class, NULL, __METHOD__, [], ['user_id' => $this->thisRouteID()])\n ->render()\n ->with(\n [\n 'user' => $this->toArray($this->findOr404()),\n 'check_icon' => '<li><ion-icon name=\"checkmark-outline\"></ion-icon></li>',\n 'close_icon' => '<ion-icon name=\"close-outline\"></ion-icon>'\n ]\n )\n ->form($this->formUser)\n ->end();\n }", "title": "" }, { "docid": "f1396c5dcd191e30f534693231be69da", "score": "0.66018045", "text": "public function edit()\n {\n return view('usersupplier::edit');\n }", "title": "" }, { "docid": "2a47ad7ce79b806f24d1a15c7fc9c440", "score": "0.6596694", "text": "public function edit($id)\n {\n return view('frontend::edit');\n }", "title": "" }, { "docid": "5f22addb2b8cf9ad635b7e8fa77bb71c", "score": "0.6594983", "text": "public function edit()\n {\n return view('mgcatalogos::edit');\n }", "title": "" }, { "docid": "751bc10498bcb4f6f6569034693a7061", "score": "0.6590733", "text": "public function edit($id)\n {\n $template = (object) $this->template;\n $form = $this->form();\n $data = SPM::find($id);\n return view('admin.master.edit',compact('template','form','data'));\n }", "title": "" }, { "docid": "bdaf931446dd96d9ab719a5b26c06691", "score": "0.65898085", "text": "public function edit(FormBuilder $formBuilder, $id)\n {\n $form = $formBuilder->create(\\App\\Forms\\BookForm::class, [\n 'method' => 'PUT',\n 'url' => route('book.update',$id),\n ]);\n $books = Book::find($id);\n return view($this->folder.'.edit',compact('books','form'));\n }", "title": "" }, { "docid": "fbf7adc2631fd986ff97047f975f7733", "score": "0.6589644", "text": "public function formEdit($id)\n {\n //data poli berdasarkan id poli\n $poli = Poli::find($id);\n\n return view('poli.edit', compact('poli'));\n }", "title": "" }, { "docid": "300b72dd1771af8bcd33044e19ed0e2d", "score": "0.6585872", "text": "public function edit($id)\n\t{\n\t\t// get the nerd\n\t\t$user = Cliente::find($id);\n\n\t\t// show the edit form and pass the nerd\n\t\treturn View::make('preinscrito.editar')\n\t\t\t->with('user', $user);\n\t}", "title": "" }, { "docid": "f39615b9da8997b13628876a6e82ad26", "score": "0.65829885", "text": "public function edit()\n {\n return view('bill::edit');\n }", "title": "" }, { "docid": "48a8ca09ce387a26578ef11260681196", "score": "0.65802926", "text": "public function editform($id){\n $cultivo = Cultivo::findOrFail($id);\n\n return view(\"editform\", compact(\"cultivo\"));\n }", "title": "" } ]
70429e2ed1867c6e152ca0ae523e03bf
Retrieves a list of models based on the current search/filter conditions. Typical usecase: Initialize the model fields with values from filter form. Execute this method to get CActiveDataProvider instance which will filter models according to data in model fields. Pass data provider to CGridView, CListView or any similar widget.
[ { "docid": "87f4777692860d9fe6b1a0e43a58046c", "score": "0.0", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id_offre_emploi',$this->id_offre_emploi);\n\t\t$criteria->compare('date_creation_offre_emploi',$this->date_creation_offre_emploi,true);\n\t\t$criteria->compare('poste_offre_emploi',$this->poste_offre_emploi,true);\n\t\t$criteria->compare('type_offre_emploi',$this->type_offre_emploi,true);\n\t\t$criteria->compare('date_debut_offre_emploi',$this->date_debut_offre_emploi,true);\n\t\t$criteria->compare('salaire_offre_emploi',$this->salaire_offre_emploi);\n\t\t$criteria->compare('experience_offre_emploi',$this->experience_offre_emploi,true);\n\t\t$criteria->compare('description_offre_emploi',$this->description_offre_emploi,true);\n\t\t$criteria->compare('id_entreprise',$this->id_entreprise);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" } ]
[ { "docid": "ef46ff0319907477c9c00c2b8e561c28", "score": "0.73506933", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('model_id',$this->model_id);\n\t\t$criteria->compare('vendor_id',$this->vendor_id);\n\t\t$criteria->compare('season_id',$this->season_id);\n\t\t$criteria->compare('auto_id',$this->auto_id);\n\t\t$criteria->compare('model_year',$this->model_year);\n\t\t$criteria->compare('model_name',$this->model_name,true);\n\t\t$criteria->compare('model_url',$this->model_url,true);\n\t\t$criteria->compare('model_stud',$this->model_stud,true);\n\t\t$criteria->compare('model_green_flag',$this->model_green_flag,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "e4cd5f924bf0f27f7e7ad644c65dd3fc", "score": "0.72517586", "text": "public function search(){\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$this->getCriteria(),\n\t\t\t'sort'=>$this->getSort(),\n\t\t));\n\t}", "title": "" }, { "docid": "759437652b5aa77c495a172c9092ec9f", "score": "0.7135453", "text": "public function search()\n\t{\n\t\t$criteria=new CDbCriteria;\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t\t'criteria' => $criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "f7164d235320b1ed8c31ad366b0ea0d1", "score": "0.7129166", "text": "public function search()\n {\n $criteria=new CDbCriteria;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "e84a5e736e06e77dad89f9394c3e7bef", "score": "0.70055777", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('Date', $this->Date,true);\n\t\t$criteria->compare('Value', $this->Value); \n\t\t$criteria->compare('isActive', $this->isActive);\n\t\t$criteria->compare('Comment',$this->Comment,true);\n\t\t$criteria->compare('SubgroupFilter',$this->SubgroupFilter,true);\n\t\t$criteria->compare('TitleFilter',$this->TitleFilter,true);\n\t\t$criteria->compare('ModelFilter',$this->ModelFilter,true);\n\t\t$criteria->compare('MakeFilter',$this->MakeFilter,true);\n\t\t$criteria->compare('ArticleFilter',$this->ArticleFilter,true);\n\t\t$criteria->compare('OemFilter',$this->OemFilter,true);\n\t\t$criteria->compare('ManufacturerFilter',$this->ManufacturerFilter,true);\n\t\t$criteria->compare('CountryFilter',$this->CountryFilter,true);\n\t\t$criteria->compare('FreeAssortmentFilter',$this->FreeAssortmentFilter,true);\n\t\t$criteria->compare('UsernameFilter',$this->UsernameFilter,true);\n\t\t$criteria->compare('GroupFilter',$this->GroupFilter,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "c3c6e518aa89a9e4b9f1f7b68515cecd", "score": "0.6971126", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('makes_id',$this->makes_id);\n\t\t$criteria->compare('models_id',$this->models_id);\n\t\t$criteria->compare('year',$this->year);\n\t\t$criteria->compare('logo_img',$this->logo_img,true);\n\t\t$criteria->compare('car_img',$this->car_img,true);\n\t\t$criteria->compare('logo_data',$this->logo_data,true);\n\t\t$criteria->compare('car_data',$this->car_data,true);\n\t\t$criteria->compare('maker_model_name',$this->maker_model_name,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "1861ff2d92ae8a6c57ec9db2d0b5c20f", "score": "0.6958307", "text": "public function search()\n\t{\n\n\t\treturn new CActiveDataProvider($this);\n\t}", "title": "" }, { "docid": "8790bb6e9492f0766589897850360446", "score": "0.69158435", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('fModuleID',$this->fModuleID,true);\n\t\t$criteria->compare('fModuleName',$this->fModuleName,true);\n\t\t$criteria->compare('fModuleTitle',$this->fModuleTitle,true);\n\t\t$criteria->compare('fIsVisible',$this->fIsVisible);\n\t\t$criteria->compare('fSearchable',$this->fSearchable);\n\t\t$criteria->compare('FCustom',$this->FCustom,true);\n\t\t$criteria->compare('fCreateDate',$this->fCreateDate);\n\t\t$criteria->compare('fCreateUser',$this->fCreateUser,true);\n\t\t$criteria->compare('fUpdateUser',$this->fUpdateUser,true);\n\t\t$criteria->compare('fUpdateDate',$this->fUpdateDate);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "32d53a7d6df629353f04cf01844df241", "score": "0.69014865", "text": "public function search()\n {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $this->reportConditions($criteria);\n $criteria->order='t.id DESC';\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'pagination' => array('pageSize' => isset($_GET['pageSize'])?$_GET['pageSize']:20)\n ));\n }", "title": "" }, { "docid": "b08a8269a2fd4eb7ee66f39bb1f500e6", "score": "0.69006026", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('company_name',$this->company_name,true);\n\t\t$criteria->compare('company_address',$this->company_address,true);\n\t\t$criteria->compare('owner_firstname',$this->owner_firstname,true);\n\t\t$criteria->compare('owner_middlename',$this->owner_middlename,true);\n\t\t$criteria->compare('owner_lastname',$this->owner_lastname,true);\n\t\t$criteria->compare('employee_firstname',$this->employee_firstname,true);\n\t\t$criteria->compare('employee_middlename',$this->employee_middlename,true);\n\t\t$criteria->compare('employee_lastname',$this->employee_lastname,true);\n\t\t$criteria->compare('insurance_company_id',$this->insurance_company_id);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "2c8eeacd5266bd164e3101cb086eb290", "score": "0.6894355", "text": "public function search()\n {\n $criteria=new CDbCriteria;\n $criteria->compare('name', $this->name, true);\n $criteria->compare('status', $this->status, true);\n\n return new CActiveDataProvider(get_class($this), array(\n 'criteria' => $criteria,\n 'pagination' => array(\n 'pageSize' => $this->paginationOptions->getPageSize(),\n 'pageVar' => 'page',\n ),\n 'sort' => array(\n 'defaultOrder' => array(\n 'category_id' => CSort::SORT_ASC,\n ),\n ),\n ));\n }", "title": "" }, { "docid": "4449767d41614ed878e4e6199984edd7", "score": "0.6892705", "text": "public function search(){\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('phone_id', $this->phone_id);\n $criteria->compare('apply_id', $this->apply_id);\n $criteria->compare('company_id', $this->company_id);\n $criteria->compare('station_id', $this->station_id);\n $criteria->compare('use_type', $this->use_type);\n $criteria->compare('phone_number', $this->phone_number, true);\n $criteria->compare('remark', $this->remark, true);\n $criteria->compare('status', $this->status);\n $criteria->compare('status_time', $this->status_time, true);\n $criteria->compare('create_time', $this->create_time, true);\n $criteria->compare('update_user_id', $this->update_user_id);\n $criteria->compare('update_time', $this->update_time, true);\n $criteria->compare('create_user_id', $this->create_user_id);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "6ffa470b724b249aaddc51b525b8d4af", "score": "0.6883519", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('company',$this->company,true);\n\t\t$criteria->compare('upd_date',$this->upd_date,true);\n\t\t$criteria->compare('parse_class',$this->parse_class,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n 'pagination'=>array(\n 'pageSize'=>50,\n ),\n\t\t));\n\t}", "title": "" }, { "docid": "0addf5a32db03e689008bd9471b4e4c9", "score": "0.6882866", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('building_id',$this->building_id);\n\t\t$criteria->compare('air_conditioning',$this->air_conditioning);\n\t\t$criteria->compare('water_heater',$this->water_heater);\n\t\t$criteria->compare('balcony',$this->balcony);\n\t\t$criteria->compare('sink',$this->sink);\n\t\t$criteria->compare('pool',$this->pool);\n\t\t$criteria->compare('internet',$this->internet);\n\t\t$criteria->compare('microwave',$this->microwave);\n\t\t$criteria->compare('fridge',$this->fridge);\n\t\t$criteria->compare('cable_tv',$this->cable_tv);\n\t\t$criteria->compare('security_camera',$this->security_camera);\n\t\t$criteria->compare('fans',$this->fans);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "89b8cc26bb0862e80a3ae619fe556543", "score": "0.6882084", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('company_name',$this->company_name,true);\n\t\t$criteria->compare('address',$this->address,true);\n\t\t$criteria->compare('phone1',$this->phone1,true);\n\t\t$criteria->compare('phone2',$this->phone2,true);\n\t\t$criteria->compare('phone3',$this->phone3,true);\n\t\t$criteria->compare('tax',$this->tax);\n\t\t$criteria->compare('discount',$this->discount);\n\t\t$criteria->compare('email',$this->email,true);\n\t\t$criteria->compare('website',$this->website,true);\n\t\t$criteria->compare('text1',$this->text1,true);\n\t\t$criteria->compare('text2',$this->text2,true);\n\t\t$criteria->compare('photo',$this->photo,true);\n\t\t$criteria->compare('shop',$this->shop);\n\t\t$criteria->compare('print_size',$this->print_size);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "14a13a955f14a9c0785f82173e78d674", "score": "0.6875264", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('product_id',$this->product_id,true);\n\t\t$criteria->compare('engine_id',$this->engine_id,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "ffc96a7ff3c64fac3d945d8641dd3d42", "score": "0.68709236", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('companyID',$this->companyID);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('adress',$this->adress,true);\n\t\t$criteria->compare('phone',$this->phone,true);\n\t\t$criteria->compare('email',$this->email,true);\n\t\t$criteria->compare('country',$this->country,true);\n\t\t$criteria->compare('city',$this->city);\n\t\t$criteria->compare('cityother',$this->cityother,true);\n\t\t$criteria->compare('deleted',$this->deleted);\n\t\t$criteria->compare('dateAdd',$this->dateAdd,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "ba413e9f76fd3a302ded0309c3271550", "score": "0.6870356", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('type',$this->type,true);\n\t\t$criteria->compare('heating',$this->heating,true);\n\t\t$criteria->compare('beds',$this->beds);\n\t\t$criteria->compare('kitchen',$this->kitchen,true);\n\t\t$criteria->compare('entery',$this->entery,true);\n\t\t$criteria->compare('bathroom',$this->bathroom,true);\n\t\t$criteria->compare('floor',$this->floor,true);\n\t\t$criteria->compare('tv',$this->tv);\n\t\t$criteria->compare('internet',$this->internet);\n\t\t$criteria->compare('phone',$this->phone);\n\t\t$criteria->compare('balcony',$this->balcony);\n\t\t$criteria->compare('air_conditioning',$this->air_conditioning);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "3f032f42d65539983b51b9ba7339cf3b", "score": "0.6857858", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('product_id',$this->product_id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('type',$this->type);\n\t\t$criteria->compare('fund_size',$this->fund_size);\n\t\t$criteria->compare('build_date',$this->build_date);\n\t\t$criteria->compare('funds_source',$this->funds_source,true);\n\t\t$criteria->compare('status',$this->status);\n\t\t$criteria->compare('process_id',$this->process_id);\n\t\t$criteria->compare('duration',$this->duration);\n\t\t$criteria->compare('investment_way',$this->investment_way);\n\t\t$criteria->compare('min_rate',$this->min_rate);\n\t\t$criteria->compare('max_rate',$this->max_rate);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "d43b9e3e51e4fda4551300643f510b13", "score": "0.6856304", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('goods_id',$this->goods_id);\n\t\t$criteria->compare('shop_type',$this->shop_type);\n\t\t$criteria->compare('is_up',$this->is_up);\n\t\t$criteria->compare('sort',$this->sort);\n\t\t$criteria->compare('activity_name',$this->activity_name,true);\n\t\t$criteria->compare('amount',$this->amount);\n\t\t$criteria->compare('type',$this->type);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "e506daff01b8bf38546c029ce0349375", "score": "0.685417", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('model_code',$this->model_code,true);\n\t\t$criteria->compare('project_id',$this->project_id);\n\t\t$criteria->compare('origin_id',$this->origin_id);\n\t\t$criteria->compare('uid',$this->uid);\n\t\t$criteria->compare('username',$this->username,true);\n\t\t$criteria->compare('by_uid',$this->by_uid);\n\t\t$criteria->compare('by_username',$this->by_username,true);\n\t\t$criteria->compare('stars',$this->stars);\n\t\t$criteria->compare('content',$this->content,true);\n\t\t$criteria->compare('status',$this->status);\n\t\t$criteria->compare('created_at',$this->created_at);\n\t\t$criteria->compare('is_top',$this->is_top);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "dc6d815c854baa3d5a8c8879d179df87", "score": "0.685302", "text": "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('table_id', $this->table_id, true);\n $criteria->compare('table_name', $this->table_name, true);\n $criteria->compare('dealer_id', $this->dealer_id, true);\n $criteria->compare('table_status', $this->table_status);\n $criteria->compare('table_sit_count', $this->table_sit_count);\n $criteria->compare('table_service_price', $this->table_service_price, true);\n $criteria->compare('table_is_room', $this->table_is_room);\n $criteria->compare('table_lower_case', $this->table_lower_case, true);\n $criteria->compare('table_is_smoke', $this->table_is_smoke);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "39ba48704f7d8647edc9d9e34da07f80", "score": "0.6849635", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('vehicle_id',$this->vehicle_id,true);\n\t\t$criteria->compare('username',$this->username,true);\n\t\t$criteria->compare('vehicle_category',$this->vehicle_category,true);\n\t\t$criteria->compare('vehicle_type',$this->vehicle_type,true);\n\t\t$criteria->compare('brand_name',$this->brand_name,true);\n\t\t$criteria->compare('model_name',$this->model_name,true);\n\t\t$criteria->compare('seating_capacity',$this->seating_capacity,true);\n\t\t$criteria->compare('price_per_hour',$this->price_per_hour);\n\t\t$criteria->compare('price',$this->price);\n\t\t$criteria->compare('security_deposit',$this->security_deposit);\n\t\t$criteria->compare('total_kms',$this->total_kms);\n\t\t$criteria->compare('extra_rate_per_kms',$this->extra_rate_per_kms);\n\t\t$criteria->compare('vehicle_features',$this->vehicle_features,true);\n\t\t$criteria->compare('variant',$this->variant,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "9a9e90c63beb6b78e1e9586534041214", "score": "0.68491703", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('table_name',$this->table_name,true);\n\t\t$criteria->compare('object_id',$this->object_id,true);\n\t\t$criteria->compare('field',$this->field,true);\n\t\t$criteria->compare('value',$this->value,true);\n\t\t$criteria->compare('locale',$this->locale,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "4f62f6cbe05b143ed524e65b6d6a8a51", "score": "0.6832411", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria = new CDbCriteria;\n\t\t$this->reportConditions($criteria);\n\t\t$criteria->order = 't.date DESC';\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria' => $criteria,\n\t\t\t'pagination' => array('pageSize' => isset($_GET['pageSize'])?$_GET['pageSize']:20)\n\t\t));\n\t}", "title": "" }, { "docid": "4f1fc76675f4df1ae01065de0404e43d", "score": "0.6829691", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('op_ter',$this->op_ter,true);\n\t\t$criteria->compare('type',$this->type,true);\n\t\t$criteria->compare('operate',$this->operate,true);\n\t\t$criteria->compare('status',$this->status);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "2206ef0ef399db47c0229351b3f8998d", "score": "0.6827453", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('ID',$this->ID);\n\t\t$criteria->compare('NAME',$this->NAME,true);\n\t\t$criteria->compare('BIRTH',$this->BIRTH,true);\n\t\t$criteria->compare('PHONE',$this->PHONE,true);\n\t\t$criteria->compare('EMAIL',$this->EMAIL,true);\n\t\t$criteria->compare('ADDRESS',$this->ADDRESS,true);\n\t\t$criteria->compare('FACE_BOOK',$this->FACE_BOOK,true);\n\t\t$criteria->compare('TWITER',$this->TWITER,true);\n\t\t$criteria->compare('GENDER',$this->GENDER);\n\t\t$criteria->compare('ACTIVE',$this->ACTIVE);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "d0c398896b3e86c77b0fdeb051726c05", "score": "0.6825093", "text": "public function search() {\r\n\t\t// Warning: Please modify the following code to remove attributes that\r\n\t\t// should not be searched.\r\n\r\n\t\t$criteria = $this->criteriaSearch();\r\n\t\t$criteria->limit = 10;\r\n\r\n\t\treturn new CActiveDataProvider($this, array(\r\n\t\t\t'criteria' => $criteria,\r\n\t\t));\r\n\t}", "title": "" }, { "docid": "cd80641b71f8d13e72c7f015b18ffa69", "score": "0.6825006", "text": "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('country_id', $this->country_id);\n $criteria->compare('email', $this->email, true);\n $criteria->compare('mobile', $this->mobile);\n $criteria->compare('about', $this->about, true);\n $criteria->compare('birthday', $this->birthday, true);\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "b5f2c20644d95ab56ff8e6f285b00ac5", "score": "0.6820113", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('c_id',$this->c_id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('sort_number',$this->sort_number);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "8524ee81d8445bc538d93bad4533d02a", "score": "0.68155694", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('product_id',$this->product_id,true);\n\t\t$criteria->compare('os_id',$this->os_id);\n\t\t$criteria->compare('version',$this->version,true);\n\t\t$criteria->compare('path',$this->path,true);\n\t\t$criteria->compare('data_folder',$this->data_folder,true);\n\t\t$criteria->compare('data_path',$this->data_path,true);\n\t\t$criteria->compare('download',$this->download,true);\n\t\t$criteria->compare('from_source',$this->from_source,true);\n\t\t$criteria->compare('create_date',$this->create_date,true);\n\t\t$criteria->compare('lastup_date',$this->lastup_date,true);\n\t\t$criteria->compare('disable',$this->disable);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "062f56ae1c40d59f4512feab3bdf1ef5", "score": "0.6815503", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('partner_id',$this->partner_id);\n\t\t$criteria->compare('admin_login',$this->admin_login,true);\n\t\t$criteria->compare('admin_user',$this->admin_user,true);\n\t\t$criteria->compare('main_new_kupons',$this->main_new_kupons);\n\t\t$criteria->compare('main_popular_kupons',$this->main_popular_kupons);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "31e48949e8f24f84d3522b2c0268fdcd", "score": "0.68119824", "text": "public function actionIndex()\n {\n $searchModel = $this->getSearchModel();\n $dataProvider = $searchModel->search(\\Yii::$app->request->get());\n return $dataProvider;\n }", "title": "" }, { "docid": "41a24348ed75bc429eb0625077bc3db9", "score": "0.6808625", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('ID',$this->ID);\n\t\t$criteria->compare('ID_CATEGORY',$this->ID_CATEGORY);\n\t\t$criteria->compare('NAME',$this->NAME,true);\n\t\t$criteria->compare('ADDRESS',$this->ADDRESS,true);\n\t\t$criteria->compare('DESCRIPTION',$this->DESCRIPTION,true);\n\t\t$criteria->compare('EMAIL',$this->EMAIL,true);\n\t\t$criteria->compare('CREATION_DATE',$this->CREATION_DATE,true);\n\t\t$criteria->compare('ACTIVE',$this->ACTIVE);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "b6ff63431b74d7c0498c28122a6c7b99", "score": "0.6801618", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('fItemNo',$this->fItemNo,true);\n\t\t$criteria->compare('fHistoryNo',$this->fHistoryNo,true);\n\t\t$criteria->compare('fShareholderName',$this->fShareholderName,true);\n\t\t$criteria->compare('fFristStrands',$this->fFristStrands);\n\t\t$criteria->compare('fFristRate',$this->fFristRate);\n\t\t$criteria->compare('fSecondStrands',$this->fSecondStrands);\n\t\t$criteria->compare('fSecondRate',$this->fSecondRate);\n\t\t$criteria->compare('fThirdStrands',$this->fThirdStrands);\n\t\t$criteria->compare('fThirdRate',$this->fThirdRate);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "3281a11be093c4e4aca64fe1b2a75e3f", "score": "0.6801179", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('ebooks_shoping_id',$this->ebooks_shoping_id);\n\t\t$criteria->compare('ebooks_shoping_mid',$this->ebooks_shoping_mid);\n\t\t$criteria->compare('ebooks_shoping_ebook_id',$this->ebooks_shoping_ebook_id);\n\t\t$criteria->compare('ebooks_shoping_payment_status',$this->ebooks_shoping_payment_status,true);\n\t\t$criteria->compare('ebooks_shoping_date',$this->ebooks_shoping_date,true);\n\t\t$criteria->compare('ebooks_shoping_amount',$this->ebooks_shoping_amount);\n\t\t$criteria->compare('ebooks_user_session_id',$this->ebooks_user_session_id,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "b51cacf19cf8d29c382ffb89089c60d0", "score": "0.6798005", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('good_id',$this->good_id,true);\n\t\t$criteria->compare('site',$this->site);\n\t\t$criteria->compare('sort',$this->sort);\n\t\t$criteria->compare('ext',$this->ext,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "ecc5cba604954b2305a5786dc3a50746", "score": "0.6796126", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('user_id',$this->user_id,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('city',$this->city,true);\n\t\t$criteria->compare('area',$this->area,true);\n\t\t$criteria->compare('amount',$this->amount,true);\n\t\t$criteria->compare('contribution',$this->contribution,true);\n\t\t$criteria->compare('need',$this->need,true);\n\t\t$criteria->compare('analysis',$this->analysis,true);\n\t\t$criteria->compare('datetime',$this->datetime,true);\n\t\t$criteria->compare('state',$this->state,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "a4c4a31f060d538ed777475a622ad872", "score": "0.6790533", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('user_id',$this->user_id);\n\t\t$criteria->compare('real_name',$this->real_name,true);\n\t\t$criteria->compare('sex',$this->sex);\n\t\t$criteria->compare('age_id',$this->age_id);\n\t\t$criteria->compare('phone',$this->phone,true);\n\t\t$criteria->compare('work_id',$this->work_id);\n\t\t$criteria->compare('edu_id',$this->edu_id);\n\t\t$criteria->compare('salary_id',$this->salary_id);\n\t\t$criteria->compare('province_id',$this->province_id);\n\t\t$criteria->compare('city_id',$this->city_id);\n\t\t$criteria->compare('addr',$this->addr,true);\n\t\t$criteria->compare('zip',$this->zip,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "eb2a92cabfdf0f80ea9644e0ea54a203", "score": "0.6790071", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('user_id',$this->user_id);\n\t\t$criteria->compare('company_name',$this->company_name,true);\n\t\t$criteria->compare('address',$this->address,true);\n\t\t$criteria->compare('city',$this->city,true);\n\t\t$criteria->compare('province',$this->province,true);\n\t\t$criteria->compare('postal_code',$this->postal_code,true);\n\t\t$criteria->compare('country_id',$this->country_id);\n\t\t$criteria->compare('phone',$this->phone,true);\n\t\t$criteria->compare('ext',$this->ext,true);\n\t\t$criteria->compare('website',$this->website,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "70b81c4d9b2989f08aa1ae064cfc8ced", "score": "0.67868656", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('email',$this->email,true);\n\t\t$criteria->compare('postal_code',$this->postal_code);\n\t\t$criteria->compare('postal_code_letter',$this->postal_code_letter,true);\n\t\t$criteria->compare('phone',$this->phone,true);\n\t\t$criteria->compare('photo',$this->photo,true);\n\t\t$criteria->compare('password',$this->password,true);\n\t\t$criteria->compare('type',$this->type);\n\t\t$criteria->compare('facebook_id',$this->facebook_id);\n\t\t$criteria->compare('add_date',$this->add_date,true);\n\t\t$criteria->compare('change_date',$this->change_date,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "d5cf878e65d8cde13acbe39e235fbdac", "score": "0.6786138", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('datagrid_id',$this->datagrid_id);\n\t\t$criteria->compare('datagrid_name',$this->datagrid_name,true);\n\t\t$criteria->compare('page_size',$this->page_size);\n\t\t$criteria->compare('show_row_number',$this->show_row_number);\n\t\t$criteria->compare('display_column_count',$this->display_column_count);\n\t\t$criteria->compare('show_action_column',$this->show_action_column);\n\t\t$criteria->compare('show_checkbox_column',$this->show_checkbox_column);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "f62e007a68a8e4da802fb478bf943db8", "score": "0.6784689", "text": "public function search() {\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria -> compare('id', $this -> id);\n\t\t$criteria -> compare('monto', $this -> monto);\n\t\t$criteria -> compare('fecha', $this -> fecha, true);\n\t\t$criteria -> compare('factura_id', $this -> factura_id);\n\t\t$criteria -> compare('usuarios_id', $this -> usuarios_id);\n\n\t\treturn new CActiveDataProvider($this, array('criteria' => $criteria, ));\n\t}", "title": "" }, { "docid": "4275b80b2ec7c26fcb9d4dd71ab5bc3a", "score": "0.6784426", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id_labor',$this->id_labor,true);\n\t\t$criteria->compare('id_location',$this->id_location);\n\t\t$criteria->compare('id_embarkation',$this->id_embarkation);\n\t\t$criteria->compare('id_user',$this->id_user);\n\t\t$criteria->compare('date_labor',$this->date_labor,true);\n\t\t$criteria->compare('time_arrive',$this->time_arrive,true);\n\t\t$criteria->compare('time_sailing',$this->time_sailing,true);\n\t\t$criteria->compare('init_charge',$this->init_charge,true);\n\t\t$criteria->compare('end_charge',$this->end_charge,true);\n\t\t$criteria->compare('navigation_miles',$this->navigation_miles);\n\t\t$criteria->compare('observations',$this->observations,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "3e08ebdf59540d3981d6f7f65f686444", "score": "0.67833203", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('data',$this->data,true);\n\t\t$criteria->compare('ip_address',$this->ip_address,true);\n\t\t$criteria->compare('date',$this->date,true);\n\t\t$criteria->compare('fb_tab_id',$this->fb_tab_id,true);\n\t\t$criteria->compare('app_id',$this->app_id,true);\n\t\t\n\t\tif(isset($_REQUEST['pageId']))\n\t\t{\n\t\t $criteria->condition = \"fb_tab_id = '\".$_REQUEST['pageId'].\"'\";\n\t\t}\n\t\t\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t\t'sort'=>array(\n\t\t\t'defaultOrder'=>'id DESC',\n\t\t\t),\n\t\t));\n\t}", "title": "" }, { "docid": "8c44d2876b7b2ff22bac02d783b7a774", "score": "0.6779453", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('verbiage',$this->verbiage,true);\n\t\t$criteria->compare('id_trigger',$this->id_trigger);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "29cf27cb4807e7a6752a073cb1efed83", "score": "0.6778694", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('customer_id',$this->customer_id);\n\t\t$criteria->compare('prize_id',$this->prize_id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('address',$this->address,true);\n\t\t$criteria->compare('mobile',$this->mobile,true);\n\t\t$criteria->compare('username',$this->username,true);\n\t\t$criteria->compare('category_id',$this->category_id);\n\t\t$criteria->compare('status',$this->status);\n\t\t$criteria->compare('zip',$this->zip,true);\n\t\t$criteria->compare('time',$this->time);\n\t\t$criteria->compare('sn',$this->sn,true);\n\t\t$criteria->compare('record_id',$this->record_id);\n\t\t$criteria->compare('address_id',$this->address_id,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774197", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774197", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774197", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774197", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774197", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774197", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774197", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774197", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774197", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774197", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "1de5b3f3132fd4115d1401585ce8ccea", "score": "0.6774197", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=$this->criteriaSearch();\n $criteria->limit=10;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "323070e107c104b6741eb1b635954f0f", "score": "0.67734766", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\t\tif(!Yii::app()->user->checkAccess('admin')) $criteria->compare('empresa',Yii::app()->user->empresa);\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('empresa',$this->empresa,true);\n\t\t$criteria->compare('data_criacao',$this->data_criacao,true);\n\t\t$criteria->compare('data_termino',$this->data_termino,true);\n\t\t$criteria->compare('id_produto',$this->id_produto);\n\t\t$criteria->compare('id_wbs',$this->id_wbs);\n\t\t$criteria->compare('turno',$this->turno,true);\n\t\t$criteria->compare('quantidade',$this->quantidade);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "883512006d94110e194f4b9be85ea092", "score": "0.6770854", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('primary_owner',$this->primary_owner,true);\n\t\t$criteria->compare('is_private',$this->is_private);\n\t\t$criteria->compare('invite_only',$this->invite_only);\n\t\t$criteria->compare('is_default',$this->is_default);\n\t\t$criteria->compare('date_formed',$this->date_formed);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "574a09941501169a1ce2f8c5f41449cf", "score": "0.67708486", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('calle',$this->calle,true);\n\t\t$criteria->compare('num_c',$this->num_c,true);\n\t\t$criteria->compare('nom_c',$this->nom_c,true);\n\t\t$criteria->compare('id_vivienda',$this->id_vivienda);\n\t\t$criteria->compare('urbanizacion',$this->urbanizacion,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "ec95f424b95fda1b200bab52e1c9f6c5", "score": "0.6768716", "text": "public function search()\r\n\t{\r\n\t\t// Warning: Please modify the following code to remove attributes that\r\n\t\t// should not be searched.\r\n\r\n\t\t$criteria=new CDbCriteria;\r\n\r\n\t\t$criteria->compare('conditionId',$this->conditionId);\r\n\t\t$criteria->compare('nameEN',$this->nameEN,true);\r\n\t\t$criteria->compare('nameTH',$this->nameTH,true);\r\n\t\t$criteria->compare('nameCN',$this->nameCN,true);\r\n\t\t$criteria->compare('detailEN',$this->detailEN,true);\r\n\t\t$criteria->compare('detailTH',$this->detailTH,true);\r\n\t\t$criteria->compare('detailCN',$this->detailCN,true);\r\n\t\t$criteria->compare('durationTurn',$this->durationTurn);\r\n\t\t$criteria->compare('type',$this->type);\r\n\r\n\t\treturn new CActiveDataProvider($this, array(\r\n\t\t\t'criteria'=>$criteria,\r\n\t\t));\r\n\t}", "title": "" }, { "docid": "9cfb259a095cf487ebfc231cc1375d5e", "score": "0.6768467", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('PRE_CORREL',$this->PRE_CORREL,true);\n\t\t$criteria->compare('ITE_CORREL',$this->ITE_CORREL,true);\n\t\t$criteria->compare('PRO_CORREL',$this->PRO_CORREL,true);\n\t\t$criteria->compare('PRE_DESCRIPCION',$this->PRE_DESCRIPCION,true);\n\t\t$criteria->compare('PRE_MONTO',$this->PRE_MONTO,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "11c7e780630ba4070c900088bc5072ea", "score": "0.676031", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('material_id',$this->material_id,true);\n\t\t$criteria->compare('url',$this->url,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('collective_id',$this->collective_id,true);\n\t\t$criteria->compare('create_time',$this->create_time,true);\n\t\t$criteria->compare('update_time',$this->update_time,true);\n\t\t$criteria->order = 'sort';\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "a8038a4d91d71e09fbb757d8abfe6474", "score": "0.6751339", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('dependencia',$this->dependencia,true);\n\t\t$criteria->compare('ubicacion',$this->ubicacion,true);\n\t\t$criteria->compare('responsable',$this->responsable,true);\n\t\t$criteria->compare('celular',$this->celular,true);\n\t\t$criteria->compare('local',$this->local,true);\n\t\t$criteria->compare('condicion',$this->condicion);\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "98d080f8b83eb2f172a05024c0519c52", "score": "0.6750082", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('vip_id',$this->vip_id,true);\n\t\t$criteria->compare('city_k',$this->city_k);\n\t\t$criteria->compare('tag_k',$this->tag_k);\n\t\t$criteria->compare('sex_k',$this->sex_k);\n\t\t$criteria->compare('user_tag_k',$this->user_tag_k);\n\t\t$criteria->compare('key_words_k',$this->key_words_k,true);\n\t\t$criteria->compare('status',$this->status);\n\t\t$criteria->compare('modify_time',$this->modify_time,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "caf93dfd414bd3051d5388d5425a762b", "score": "0.67478913", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('cm_id',$this->cm_id);\n\n\t\t$criteria->compare('cm_district',$this->cm_district);\n\n\t\t$criteria->compare('cm_companyname',$this->cm_companyname,true);\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "7594b17408cd381db4e93915850a84b3", "score": "0.6747404", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('idccbpl',$this->idccbpl,true);\n\t\t$criteria->compare('survey',$this->survey,true);\n\t\t$criteria->compare('idccward',$this->idccward,true);\n\t\t$criteria->compare('headoffamily',$this->headoffamily,true);\n\t\t$criteria->compare('bplname',$this->bplname,true);\n\t\t$criteria->compare('bpladdress',$this->bpladdress,true);\n\t\t$criteria->compare('idccsex',$this->idccsex,true);\n\t\t$criteria->compare('idcccategory',$this->idcccategory,true);\n\t\t$criteria->compare('idccreligion',$this->idccreligion,true);\n\t\t$criteria->compare('monthlyincome',$this->monthlyincome,true);\n\t\t$criteria->compare('familymember',$this->familymember,true);\n\t\t$criteria->compare('remark',$this->remark,true);\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "df98e45c3b758fed30b7067fc2b281cc", "score": "0.67448145", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('user_id',$this->user_id);\n\t\t$criteria->compare('other_id',$this->other_id);\n\t\t$criteria->compare('other_name',$this->other_name,true);\n\t\t$criteria->compare('category',$this->category);\n\t\t$criteria->compare('status',$this->status);\n\t\t$criteria->compare('other_token',$this->other_token,true);\n\t\t$criteria->compare('other_code',$this->other_code,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "3cb7c7c4a583312b2cce5d8d0a6552aa", "score": "0.674054", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('phone',$this->phone,true);\n\t\t$criteria->compare('email',$this->email,true);\n\t\t$criteria->compare('foundation_date',$this->foundation_date,true);\n\t\t$criteria->compare('city_id',$this->city_id);\n\t\t$criteria->compare('district_id',$this->district_id);\n\t\t$criteria->compare('ward_id',$this->ward_id);\n\t\t$criteria->compare('street_id',$this->street_id,true);\n\t\t$criteria->compare('house_numbers',$this->house_numbers,true);\n\t\t$criteria->compare('address',$this->address,true);\n\t\t$criteria->compare('address_vi',$this->address_vi,true);\n\t\t$criteria->compare('created_by',$this->created_by,true);\n\t\t$criteria->compare('created_date',$this->created_date,true);\n\t\t$criteria->compare('status',$this->status);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n 'pagination' => array(\n 'pageSize' => Settings::getListPageSize(),\n ),\n\t\t));\n\t}", "title": "" }, { "docid": "9f0cf686253419cb0c1809d9c1597c9b", "score": "0.6739333", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\t\t$criteria->compare('LOWER(branchId)',strtolower($this->searchText),true, 'OR');\n\t\t$criteria->compare('LOWER(title)',strtolower($this->searchText),true, 'OR');\n\t\t$criteria->compare('LOWER(description)',strtolower($this->searchText),true, 'OR');\n\t\t$criteria->compare('seats',$this->seats);\n\t\t$criteria->compare('LOWER(staffId)',strtolower($this->searchText),true, 'OR');\n\t\t$criteria->compare('LOWER(startTime)',strtolower($this->searchText),true, 'OR');\n\t\t$criteria->compare('LOWER(endTime)',strtolower($this->searchText),true, 'OR');\n\t\t$criteria->compare('status',$this->status);\n\t\t$criteria->compare('LOWER(createDateTime)',strtolower($this->searchText),true, 'OR');\n\t\t$criteria->compare('LOWER(updateDateTime)',strtolower($this->searchText),true, 'OR');\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "02d4b65e03d361b518ba5828a8a4efe0", "score": "0.6739324", "text": "public function search()\n {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria=$this->getBaseCDbCriteria();\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "00022f117bef4b417b1036527bebe5c3", "score": "0.67384815", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('orgId',$this->orgId);\n\t\t$criteria->compare('fuelId',$this->fuelId);\n\t\t$criteria->compare('volume',$this->volume,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "efb0a28b81a98f8245d47f0e7c806107", "score": "0.67375726", "text": "public function search(){\r\n\t\t// Warning: Please modify the following code to remove attributes that\r\n\t\t// should not be searched.\r\n\r\n\t\t$criteria=new CDbCriteria;\r\n\r\n\t\t$criteria->compare('first_name',$this->first_name,true);\r\n\t\t$criteria->compare('last_name',$this->last_name,true);\r\n $criteria->compare('gender',$this->gender,true);\r\n $criteria->compare('phone',$this->phone,true);\r\n $criteria->compare('email',$this->email,true);\r\n $criteria->compare('address',$this->address,true);\r\n $criteria->compare('code_id',$this->code_id,true);\r\n $criteria->compare('ci',$this->ci,true);\r\n $criteria->compare('updated_on',$this->updated_on);\r\n $criteria->compare('created_on',$this->created_on);\r\n $criteria->compare('deleted',$this->deleted);\r\n \r\n\r\n\t\treturn new CActiveDataProvider(get_class($this), array(\r\n\t\t\t'criteria'=>$criteria,\r\n\t\t));\r\n\t}", "title": "" }, { "docid": "920d163bc7653369a944aba3c67088cc", "score": "0.67367786", "text": "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('category_id', $this->category_id);\n $criteria->compare('fullname', $this->fullname, true);\n $criteria->compare('phone', $this->phone, true);\n $criteria->compare('email', $this->email, true);\n $criteria->compare('address', $this->address);\n $criteria->compare('gender', $this->gender);\n $criteria->compare('city', $this->city);\n $criteria->compare('deal', $this->deal);\n $criteria->compare('hinhthuc', $this->hinhthuc);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "67586b1e271b33ded9deeaf2d1b19717", "score": "0.6736691", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('apply_id',$this->apply_id,false);\n\t\t$criteria->compare('user_id',$this->user_id,false);\n\t\t$criteria->compare('item_id',$this->item_id,false);\n $criteria->compare('item_brand_id',$this->item_brand_id,false);\n\t\t$criteria->compare('apply_status',$this->apply_status,true);\n\t\t$criteria->compare('apply_text',$this->apply_text,true);\n\t\t$criteria->compare('addr_province',$this->addr_province,true);\n\t\t$criteria->compare('addr_city',$this->addr_city,true);\n\t\t$criteria->compare('addr_phone',$this->addr_phone,true);\n\t\t$criteria->compare('addr_address',$this->addr_address,true);\n\t\t$criteria->compare('addr_name',$this->addr_name,true);\n\t\t$criteria->compare('apply_time',$this->apply_time,true);\n\t\t$criteria->compare('addr_email',$this->addr_email,false);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "43a345a95dd3e6418e68315d0e7aaef3", "score": "0.6735853", "text": "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n $criteria = new CDbCriteria;\n $criteria->compare('id', $this->id);\n $criteria->compare('customer', $this->customer);\n $criteria->compare('insdate', $this->insdate);\n $criteria->compare('comments', $this->comments);\n $criteria->compare('norder', $this->norder);\n $criteria->compare('fullytrans', $this->fullytrans);\n $criteria->compare('customer_name', $this->customer_name);\n $criteria->compare('status', $this->status);\n $criteria->compare('actioneer', $this->actioneer);\n $criteria->compare('created', $this->created, true);\n $criteria->compare('modified', $this->modified, true);\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "6838d1fab17a8e4f33f5d9ecbe5f956c", "score": "0.67332375", "text": "public function search() {\n\t\t$criteria = new CDbCriteria;\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('price', $this->price, true);\n\t\t$criteria->compare('city', $this->city, true);\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t\t\t'criteria' => $criteria,\n\t\t\t\t));\n\t}", "title": "" }, { "docid": "271157f46432e1f922de6d85cdacab08", "score": "0.6729497", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('compiler',$this->compiler,true);\n\t\t$criteria->compare('file_text',$this->file_text,true);\n\t\t$criteria->compare('result',$this->result);\n\t\t$criteria->compare('tests',$this->tests,true);\n\t\t$criteria->compare('log_compile',$this->log_compile,true);\n\t\t$criteria->compare('status',$this->status);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "ca20c0fa69a07617ed924c241d3e5227", "score": "0.6729393", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('co_salario',$this->co_salario,true);\n\t\t$criteria->compare('co_sistema',$this->co_sistema,true);\n\t\t$criteria->compare('brut_salario',$this->brut_salario);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "18b686e8b366dc072424d4ad72c52e6b", "score": "0.6729053", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('user_id',$this->user_id,true);\n\t\t$criteria->compare('last_name',$this->last_name,true);\n\t\t$criteria->compare('first_name',$this->first_name,true);\n\t\t$criteria->compare('middle_name',$this->middle_name,true);\n\t\t$criteria->compare('mobile',$this->mobile,true);\n\t\t$criteria->compare('country_id',$this->country_id,true);\n\t\t$criteria->compare('region_id',$this->region_id,true);\n\t\t$criteria->compare('city_id',$this->city_id,true);\n\t\t$criteria->compare('address',$this->address,true);\n\t\t$criteria->compare('phone',$this->phone,true);\n\t\t$criteria->compare('skype',$this->skype,true);\n\t\t$criteria->compare('icq',$this->icq,true);\n\t\t$criteria->compare('rating',$this->rating);\n\t\t$criteria->compare('user_type_id',$this->user_type_id);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "96b7b8bb93b47bd1a8e4fef3add7cfb7", "score": "0.6728349", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('facility_master_id',$this->facility_master_id);\n\t\t$criteria->compare('customer_id',$this->customer_id);\n\t\t$criteria->compare('payment_plan_master_id',$this->payment_plan_master_id);\n\t\t$criteria->compare('repayment_schema_generated',$this->repayment_schema_generated);\n\t\t$criteria->compare('is_active',$this->is_active);\n\t\t$criteria->compare('deleted',$this->deleted);\n\t\t$criteria->compare('sales_ref_no',$this->sales_ref_no);\n\t\t$criteria->compare('projectcode',$this->projectcode);\n\t\t$criteria->compare('project_name',$this->project_name,true);\n\t\t$criteria->compare('locationcode',$this->locationcode);\n\t\t$criteria->compare('location_name',$this->location_name,true);\n\t\t$criteria->compare('location_city',$this->location_city,true);\n $criteria->compare('location_city',$this->blocknumber,true);\n \n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "93a336c67c27399a210b717c4c5956d3", "score": "0.6728263", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('account_num',$this->account_num,true);\n\t\t$criteria->compare('label',$this->label,true);\n\t\t$criteria->compare('estrato',$this->estrato,true);\n\t\t$criteria->compare('utilities_id',$this->utilities_id);\n\t\t$criteria->compare('public_id',$this->public_id);\n\t\t$criteria->compare('datecreate',$this->datecreate,true);\n\t\t$criteria->compare('datemodify',$this->datemodify,true);\n\t\t$criteria->compare('medidor_num',$this->medidor_num,true);\n\t\t$criteria->compare('users_id',$this->users_id);\n\t\t$criteria->compare('entity_id',$this->entity_id);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "0e35f86018b96f7f7fa065b870f2994a", "score": "0.67281526", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('id_store',$this->id_store);\n\t\t$criteria->compare('fio',$this->fio,true);\n\t\t$criteria->compare('phone',$this->phone,true);\n\t\t$criteria->compare('account',$this->account,true);\n\t\t$criteria->compare('mfo',$this->mfo,true);\n\t\t$criteria->compare('bank',$this->bank,true);\n\t\t$criteria->compare('fio_mpu',$this->fio_mpu,true);\n\t\t$criteria->compare('unn',$this->unn,true);\n\t\t$criteria->compare('okpo',$this->okpo,true);\n\t\t$criteria->compare('lic',$this->lic,true);\n\t\t$criteria->compare('dov',$this->dov,true);\n\t\t$criteria->compare('address',$this->address,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "5fb1ba644f9e92423c255050aec13b9e", "score": "0.6724485", "text": "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria -> compare('id', $this -> id, true);\n $criteria -> compare('ciclo_id', $this -> ciclo_id, true);\n $criteria -> compare('usuario', $this -> usuario, true);\n $criteria -> compare('descripcion', $this -> descripcion, true);\n $criteria -> compare('controlador', $this -> controlador, true);\n $criteria -> compare('accion', $this -> accion, true);\n $criteria -> compare('modelo', $this -> modelo, true);\n $criteria -> compare('registro', $this -> registro, true);\n $criteria -> compare('saved_at', $this -> saved_at, true);\n\n return new CActiveDataProvider($this, array('criteria' => $criteria, ));\n }", "title": "" }, { "docid": "6656ed35d1fbff9291779488b522d544", "score": "0.6721904", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('status',$this->status,true);\n\t\t$criteria->compare('company_name',$this->company_name,true);\n\t\t$criteria->compare('company_website',$this->company_website,true);\n\t\t$criteria->compare('contact_person',$this->contact_person,true);\n\t\t$criteria->compare('username',$this->username,true);\n\t\t$criteria->compare('password',$this->password,true);\n\t\t$criteria->compare('retype_password',$this->retype_password,true);\n\t\t$criteria->compare('street',$this->street,true);\n\t\t$criteria->compare('house_number',$this->house_number,true);\n\t\t$criteria->compare('post_code',$this->post_code,true);\n\t\t$criteria->compare('city',$this->city,true);\n\t\t$criteria->compare('country',$this->country,true);\n\t\t$criteria->compare('fax',$this->fax,true);\n\t\t$criteria->compare('phone_number',$this->phone_number,true);\n\t\t$criteria->compare('email_address',$this->email_address,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "904023077a1ed92b22c29485d818de48", "score": "0.67205685", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('cpId',$this->cpId,true);\n\t\t$criteria->compare('cpTipo',$this->cpTipo,true);\n\t\t$criteria->compare('cpFechaVencimiento',$this->cpFechaVencimiento,true);\n\t\t$criteria->compare('cpMonto',$this->cpMonto,true);\n\t\t$criteria->compare('cpDescripcion',$this->cpDescripcion,true);\n\t\t$criteria->compare('cpFechaIngreso',$this->cpFechaIngreso,true);\n\t\t$criteria->compare('cpObs',$this->cpObs,true);\n\t\t$criteria->compare('cpNumeroBoleta',$this->cpNumeroBoleta,true);\n\t\t$criteria->compare('cpFechaRealPago',$this->cpFechaRealPago,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "9a635762c745e4015e26857e5f3c5033", "score": "0.67187226", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\t\t\n\t\t$criteria->compare('account_holder_id',$this->account_holder_id, true);\n\t\t$criteria->compare('business_id',$this->business_id, true);\n\t\t$criteria->compare('user_id',$this->user_id, true);\n\t\t$criteria->compare('application_date',$this->application_date,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "d3e4c85190bb03929d2e320d105aed10", "score": "0.6717138", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('com_id',$this->com_id);\n\t\t$criteria->compare('open_id',$this->open_id,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('sex',$this->sex);\n\t\t$criteria->compare('phone',$this->phone,true);\n\t\t$criteria->compare('description',$this->description,true);\n\t\t$criteria->compare('address',$this->address,true);\n\t\t$criteria->compare('order_id',$this->order_id);\n\t\t$criteria->compare('status',$this->status);\n\t\t$criteria->compare('create_time',$this->create_time,true);\n\t\t$criteria->compare('update_time',$this->update_time,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "98dacd0d7367f9ec01c288bad4b72339", "score": "0.67149204", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('pro_idProyecto',$this->pro_idProyecto);\n\t\t$criteria->compare('ob_objetivo1',$this->ob_objetivo1,true);\n\t\t$criteria->compare('ob_objetivo2',$this->ob_objetivo2,true);\n\t\t$criteria->compare('ob_objetivo3',$this->ob_objetivo3,true);\n\t\t$criteria->compare('ob_objetivo4',$this->ob_objetivo4,true);\n\t\t$criteria->compare('ob_objetivo5',$this->ob_objetivo5,true);\n\t\t$criteria->compare('ob_resultado1',$this->ob_resultado1,true);\n\t\t$criteria->compare('ob_resultado2',$this->ob_resultado2,true);\n\t\t$criteria->compare('ob_resultado3',$this->ob_resultado3,true);\n\t\t$criteria->compare('ob_resultado4',$this->ob_resultado4,true);\n\t\t$criteria->compare('ob_resultado5',$this->ob_resultado5,true);\n\t\t$criteria->compare('ob_actividades1',$this->ob_actividades1,true);\n\t\t$criteria->compare('ob_actividades2',$this->ob_actividades2,true);\n\t\t$criteria->compare('ob_actividades3',$this->ob_actividades3,true);\n\t\t$criteria->compare('ob_actividades4',$this->ob_actividades4,true);\n\t\t$criteria->compare('ob_actividades5',$this->ob_actividades5,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "5e26af3e667ff2fb751e86584c00b3df", "score": "0.6714231", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\t\t$criteria->compare('itemname',$this->itemname,true);\n\t\t$criteria->compare('userid',$this->userid,true);\n\t\t$criteria->compare('bizrule',$this->bizrule,true);\n\t\t$criteria->compare('data',$this->data,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "9c6768b3a9c54caba18369b3e92a07d3", "score": "0.6714177", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('ID',$this->ID);\n\t\t$criteria->compare('company_ID',$this->company_ID);\n\t\t$criteria->compare('company',$this->company,true);\n\t\t$criteria->compare('url',$this->url,true);\n\t\t$criteria->compare('info',$this->info,true);\n\t\t$criteria->compare('date',$this->date,true);\n\t\t$criteria->compare('location',$this->location,true);\n\t\t$criteria->compare('title',$this->title,true);\n\t\t$criteria->compare('clicks',$this->clicks);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "56f922f5535a2b464c865e892b7301c5", "score": "0.67127424", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('sanitized',$this->sanitized,true);\n\t\t$criteria->compare('datetime_start',$this->datetime_start,true);\n\t\t$criteria->compare('datetime_end',$this->datetime_end,true);\n\t\t$criteria->compare('price',$this->price,true);\n\t\t$criteria->compare('id_location',$this->id_location,true);\n\t\t$criteria->compare('id_map',$this->id_map,true);\n\t\t$criteria->compare('capacity',$this->capacity,true);\n\t\t$criteria->compare('information',$this->information,true);\n\t\t$criteria->compare('reminder',$this->reminder,true);\n\t\t$criteria->compare('agreement',$this->agreement,true);\n\t\t$criteria->compare('min_age',$this->min_age);\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "70546eb793d7f87f07f38fd283bc31cc", "score": "0.67115885", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('supplies_id',$this->supplies_id);\n\t\t$criteria->compare('church_id',$this->church_id);\n\t\t$criteria->compare('supplies_title',$this->supplies_title,true);\n\t\t$criteria->compare('supplies_desc',$this->supplies_desc,true);\n\t\t$criteria->compare('category',$this->category,true);\n\t\t$criteria->compare('supplies_date',$this->supplies_date,true);\n\t\t$criteria->compare('supplies_status',$this->supplies_status);\n\t\t$criteria->compare('latlng',$this->latlng,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "1205746b155aa96f00c2646575c1e59f", "score": "0.6709791", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('created',$this->created,true);\n\t\t$criteria->compare('updated',$this->updated,true);\n\t\t$criteria->compare('cms_type',$this->cms_type);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('deleted',$this->deleted);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "83f8707164ba8b51ab63ed793cb460fa", "score": "0.6708938", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('isarch',$this->isarch);\n\t\t$criteria->compare('archdate',$this->archdate);\n\t\t$criteria->compare('isold',$this->isold);\n\t\t$criteria->compare('olddate',$this->olddate);\n\t\t$criteria->compare('adduser',$this->adduser);\n\t\t$criteria->compare('adddate',$this->adddate);\n\t\t$criteria->compare('email',$this->email,true);\n\t\t$criteria->compare('companyid',$this->companyid);\n\t\t$criteria->compare('revision_id',$this->revision_id);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "53b0ab0352aac647c999968e16d98bf4", "score": "0.67078424", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('fName',$this->fName,true);\n\t\t$criteria->compare('fLabel',$this->fLabel,true);\n\t\t$criteria->compare('fValue',$this->fValue,true);\n\t\t$criteria->compare('fDescription',$this->fDescription,true);\n\t\t$criteria->compare('fGroupName',$this->fGroupName,true);\n\t\t$criteria->compare('fSequence',$this->fSequence);\n\t\t$criteria->compare('fVisiBle',$this->fVisiBle);\n\t\t$criteria->compare('fModule',$this->fModule,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "b2677f0d5a4716b7526a80b222fefe69", "score": "0.67046005", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('email',$this->email,true);\n\t\t$criteria->compare('birthday',$this->birthday,true);\n\t\t$criteria->compare('telephone',$this->telephone,true);\n\t\t$criteria->compare('telephone2',$this->telephone2,true);\n\t\t$criteria->compare('address',$this->address,true);\n\t\t$criteria->compare('about',$this->about,true);\n\t\t\n\t\tif($this->letter)\n\t\t\t$criteria->compare(\"SUBSTRING(name,1,1)\", $this->letter);\n\t\tif($this->type_id)\n\t\t\t$criteria->addColumnCondition(array('type_id'=>$this->type_id, 'type2_id'=>$this->type_id), 'OR');\n\t\t\n\t\tif(Yii::app()->user->isAgency())\n\t\t\t$criteria->compare('agency_id',Yii::app()->user->agency_id);\n\t\telseif(Yii::app()->user->isBooker())\n\t\t\t$criteria->compare('agency_id',Yii::app()->user->agency_id);\n\t\telseif(isset($_REQUEST['agency_id'])) {\n\t\t\t$criteria->compare('agency_id',$_REQUEST['agency_id']);\n\t\t}\n\t\t\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "2d44a754921e795c8cdce781d7333a7c", "score": "0.6702346", "text": "public function search()\n\t{\n\t\t $this->StateProcess(get_class($this).'_'.Y::app()->params['cfgName']);\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('user_id',$this->user_id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('text',$this->text,true);\n\t\t$criteria->compare('parent_id',$this->parent_id);\n\t\t$criteria->compare('create_time',$this->create_time);\n\t\t$criteria->compare('like_cnt',$this->like_cnt);\n\t\t$criteria->compare('published',$this->published);\n\t\t$criteria->compare('item_id',$this->item_id);\n\t\t$criteria->compare('model_key',$this->model_key);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n 'sort'=>array('defaultOrder'=>'approved asc, id DESC'),\n 'pagination'=>array('pageSize'=>Config::$data['base']->pageSize)\n\t\t));\n\t}", "title": "" }, { "docid": "81cf31b8ef846bf1b59004344b729a85", "score": "0.6701919", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('id_brand_bike',$this->id_brand_bike);\n\t\t$criteria->compare('id_model_bike',$this->id_model_bike);\n\t\t$criteria->compare('id_colour',$this->id_colour);\n\t\t$criteria->compare('plate',$this->plate,true);\n\t\t$criteria->compare('year_bike',$this->year_bike,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "3c2d73968388c6ba52f557be95670dc7", "score": "0.6700983", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('user_id',$this->user_id,true);\n\t\t$criteria->compare('assigned_id',$this->assigned_id,true);\n\t\t$criteria->compare('network_type',$this->network_type,true);\n\t\t$criteria->compare('store_id',$this->store_id,true);\n\t\t$criteria->compare('material_id',$this->material_id,true);\n\t\t$criteria->compare('material_type',$this->material_type,true);\n\t\t$criteria->compare('post_cap_id',$this->post_cap_id,true);\n\t\t$criteria->compare('gate_latch_id',$this->gate_latch_id,true);\n\t\t$criteria->compare('removal_fence',$this->removal_fence,true);\n\t\t$criteria->compare('removal_fence_cost',$this->removal_fence_cost,true);\n\t\t$criteria->compare('feet_removal',$this->feet_removal,true);\n\t\t$criteria->compare('quotes_data',$this->quotes_data,true);\n\t\t$criteria->compare('extra_data',$this->extra_data,true);\n\t\t$criteria->compare('payment_status',$this->payment_status,true);\n\t\t$criteria->compare('upfront_payment',$this->upfront_payment,true);\n\t\t$criteria->compare('full_payment',$this->full_payment,true);\n\t\t$criteria->compare('notes',$this->notes,true);\n\t\t$criteria->compare('adjustment_price',$this->adjustment_price);\n\t\t$criteria->compare('created_at',$this->created_at,true);\n\t\t$criteria->compare('modified_at',$this->modified_at,true);\n\t\t$criteria->compare('pdf_file',$this->pdf_file,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" } ]
33049b2b8650ec0d2fa4d9464647038e
/ Save and update location
[ { "docid": "336e45437416130f93cf0e4c819099e2", "score": "0.6398391", "text": "public function save_locations(){\n \n if(!empty($_POST['location_id']))\n { \n $locatons_name = $_POST['location_name'];\n $sql = \"UPDATE locations SET location_name='$locatons_name' WHERE location_id=\".$_POST['location_id'];\n \n if (mysqli_query($this->db_connection(), $sql)) {\n header(\"Location: /demo_task/locations/?success_message=true\");\n } else {\n header(\"Location: /demo_task/locations/?error_message=true\");\n }\n }\n else{\n \n $locatons_name = $_POST['location_name'];\n \n $sql = \"INSERT INTO locations (location_name)\n VALUES ('$locatons_name')\";\n \n if (mysqli_query($this->db_connection(), $sql)) {\n header(\"Location: /demo_task/locations/?success_message=true\");\n } else {\n header(\"Location: /demo_task/locations/?error_message=true\");\n }\n }\n \n }", "title": "" } ]
[ { "docid": "85700832ad34ebd9199bf4d167d163e7", "score": "0.6942038", "text": "public function persist(Location $location);", "title": "" }, { "docid": "b8a71571191a73c425c87e7a31192a39", "score": "0.6875791", "text": "public function update_location_coordinates() {\n $location = $this->get_location();\n $latitude = $longitude = '';\n if ( $location ) {\n $coordinates = YITH_WCBK()->maps->get_location_by_address( $location );\n if ( isset( $coordinates[ 'lat' ] ) && isset( $coordinates[ 'lng' ] ) ) {\n $latitude = $coordinates[ 'lat' ];\n $longitude = $coordinates[ 'lng' ];\n }\n }\n\n // save changes only if needed\n if ( $this->get_location_latitude( 'edit' ) !== $latitude || $this->get_location_longitude( 'edit' ) !== $longitude ) {\n $this->set_location_latitude( $latitude );\n $this->set_location_longitude( $longitude );\n\n /**\n * store changes directly to DB\n *\n * @var WC_Product_Booking $clone_product\n */\n $clone_product = wc_get_product( $this );\n if ( $clone_product ) {\n $clone_product->set_location_latitude( $latitude );\n $clone_product->set_location_longitude( $longitude );\n $clone_product->save();\n }\n }\n }", "title": "" }, { "docid": "f4c34cd91e1679b165268d2910f9a01f", "score": "0.6781071", "text": "public function updatelocation(){\n\t\techo json_encode($this->MapModel->updatelocation());\n\t}", "title": "" }, { "docid": "bf9a135393d31a40ad23c83102d01327", "score": "0.67243385", "text": "public function updateLocation()\n {\n $lat = Input::get('lat');\n $lng = Input::get('lng');\n if (!empty($lat) && !empty($lng)) {\n Session::set('lat', $lat);\n Session::set('lng', $lng);\n }\n }", "title": "" }, { "docid": "c99adb22b113f28610ab054c2e9845ba", "score": "0.6704452", "text": "public function save($location)\r\n {\r\n $this->sitemap->save($location);\r\n }", "title": "" }, { "docid": "fc0941592bafccaabb0256720f0d390f", "score": "0.6674092", "text": "public function savepoint() {}", "title": "" }, { "docid": "3c36e7cf04f3ae6a655238e2714c16e7", "score": "0.66720223", "text": "public function saveLocation() {\n $stmt = db::prepareStatement('INSERT INTO `user` (`id`, `lat`, `lng`, `last_updated`) VALUES(?, ?, ?, NOW()) ON DUPLICATE KEY UPDATE `lat`=?, `lng`=?, last_updated=NOW()');\n $stmt->bind_param(\n 'idddd',\n $this->id,\n $this->lat,\n $this->lng,\n $this->lat,\n $this->lng\n );\n $stmt->execute();\n $stmt->close();\n }", "title": "" }, { "docid": "e53b2735829798965d8ed8c3c063b706", "score": "0.65605", "text": "function update(){\r\n\t\t$result = $this->TbsApi->put('locations' . '/' . $this->LocationsKey, $this);\r\n\r\n\t\tif($result){\r\n\t\t\treturn $this->applyData($result);\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0950b8cec1b347a933bf3cf513868ba5", "score": "0.6499867", "text": "public function saveLocations() {\n\t\t$this->layout = 'ajax';\n\t\t// Save\n\t\t$save = $this->Location->saveAll($this->request->data);\n\t\tif($save){\n\t\t\t$this->Session->setFlash('The locations saved.', 'flash_success');\n\t\t}\n\t\t$this->set('save', $save);\n\t}", "title": "" }, { "docid": "b7ed0a55aa1c2daedd05c2dbdca1178a", "score": "0.647384", "text": "public function updateLocation()\n\t{\n\n\t\t$mdata['country_id']=$_POST['country_id'];\n\t\t$mdata['state_id']=$_POST['state_id'];\n\t\t$mdata['city_name']=$_POST['city'];\n\t\t$mdata['status']=$_POST['status'];\n\n\t\t$res=$this->master_model->updateLocation($mdata, $_POST['id']);\n\n\t\tif($res){\n\t\t\theader('location:'.base_url().\"admin/showLocation\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "3c1d7b612033905fb93579bb781c5e83", "score": "0.6423525", "text": "function savePosition()\n\t{\n\t\t$backup = $this->treeName;\n\t\t$this->treeName = preg_replace ( '/_.{4}_.{1,3}/', '', $this->treeName );\n\t\t$this->BE_USER->uc ['browseTrees'] [$this->treeName] = serialize ( $this->stored );\n\t\t$this->BE_USER->writeUC ();\n\t\t$this->treeName = $backup;\n\t}", "title": "" }, { "docid": "335da50d6ed589db027012a06da28421", "score": "0.64122427", "text": "function save() {\n\t\t// TODO\n\t}", "title": "" }, { "docid": "feaa44fddea05cbacbbc72c532cdfa4f", "score": "0.6378483", "text": "function savePosition()\n \t{\n \t\t$this->user->setKey(\"ses\",$this->sessionVar, serialize($this->stored));\n \t}", "title": "" }, { "docid": "3d9033e2bf148d2226d067e203712cd6", "score": "0.6320192", "text": "public function savePositionAction()\n {\n $auth = Shopware()->Container()->get('auth');\n\n if (!$auth->hasIdentity()) {\n $this->View()->assign(['success' => false]);\n\n return;\n }\n\n $request = $this->Request();\n $column = $request->getParam('column');\n $position = $request->getParam('position');\n $id = $request->getParam('id');\n\n if (!$auth->hasIdentity()) {\n $this->View()->assign(['success' => false]);\n\n return;\n }\n\n $this->setWidgetPosition($id, $position, $column);\n\n $this->View()->assign(['success' => true, 'newPosition' => $position, 'newColumn' => $column]);\n }", "title": "" }, { "docid": "e0b779408dc2ab641a979ac17f48375f", "score": "0.6256651", "text": "public function save()\n\t{\n\t\tparent::save();\n\t\t\n\t\t$table_prefix = Kohana::config('database.default.table_prefix');\n\t\t\n\t\t$this->db->query('UPDATE `'.$table_prefix.'gisfile` SET gisfile_description = ?, '.\n\t\t\t'gisfile_filename = ?, gisfile_options = ?, gisfile_formfields = ?, '.\n\t\t\t'gisfile_xpos = ?, gisfile_ypos = ?, gisfile_width = ? '.\n\t\t\t'WHERE id = ? AND locale = ?',\n\t\t\t$this->gisfile_description, $this->gisfile_filename, $this->gisfile_options, \n\t\t\t$this->gisfile_formfields, $this->gisfile_xpos, $this->gisfile_ypos, \n\t\t\t$this->gisfile_width, $this->id, $this->locale\n\t\t);\n\t}", "title": "" }, { "docid": "9bf7ef85f06b2100ed2dd3db33e9a4a8", "score": "0.62363356", "text": "function setLocation($obj,$latitude=null,$longitude=null) { \n\t$obj->latitude = $latitude;\n\t$obj->longitude = $longitude;\n\t$obj->save();\n}", "title": "" }, { "docid": "decd654b36d36524f7e90b4969e5250e", "score": "0.622942", "text": "public function save() {\r\n if ($this->write_gears) {\r\n $this->system_cache->write('gears/all', $this->all_gears);\r\n $this->system_cache->write('gears/installed', $this->installed_gears);\r\n $this->system_cache->write('gears/active', $this->active_gears);\r\n }\r\n if ($this->write_config) {\r\n $settings = new Config(SITE . DS . 'settings' . EXT);\r\n $this->config->differ($settings);\r\n $this->config->write(SITE . DS . 'config' . EXT);\r\n }\r\n event('clear');\r\n }", "title": "" }, { "docid": "13632ade9675a5ed024d84749619a3a6", "score": "0.6227537", "text": "protected function save()\n {\n\n file_put_contents($this->file_address, $this->data);\n }", "title": "" }, { "docid": "5cedf66e8cd86d4b9142f8230e8a872f", "score": "0.6224769", "text": "function user_location_save($data)\n\t {\n if($this->user_location_exist($data))\n {\n $this->user_location_update($data);\n }\n else\n {\n\t\t //for new register user\n\t\t $this->Kpc_manage->kpc_update_process(array('uId'=>$data['uId'],'kpc_value'=>KPC_VALUE_SETTING,'kpc_type'=>KPC_TYPE_SETTING));\n $this->user_location_insert($data);\n }\n\t }", "title": "" }, { "docid": "0aa55a5ddd46f59006d7026d3f1a0849", "score": "0.6224537", "text": "function save()\n\t{\n\t\tif($this->_modified)\n\t\t\t$this->_update();\n\t}", "title": "" }, { "docid": "fe198e97aac0d8f5e3346ba5edc309cc", "score": "0.62083477", "text": "public function setLocation($location);", "title": "" }, { "docid": "ca6feb0fdda6bbf1393b47f14302810a", "score": "0.6196932", "text": "function AdminSaveSingleLocation() {\n\tglobal $conn;\n\tif ( (isEmpty($_REQUEST['city'])) || (strlen($_REQUEST['state']) != 2) ) {\n\t\techo \"<div class='AdminError'>Please input both a city and state.</div>\";\n\t} else {\n\t\t$lid = preg_replace(\"/[^0-9]/\",\"\",$_REQUEST['lid']); // input sanitization -- only numbers\n\t\t$city = htmlspecialchars(ucwords(trim($_REQUEST['city'])));\n\t\t$state = htmlspecialchars(strtoupper(trim($_REQUEST['state'])));\n\t\t$statename = StateCodeToName($state);\n\t\t$query = sprintf(\"UPDATE `locations` SET `city` = '%s', `state` = '%s' WHERE `lid` = '%s'\",\n\t\t\tmysqli_real_escape_string($conn,$city),\n\t\t\tmysqli_real_escape_string($conn,$state),\n\t\t\tmysqli_real_escape_string($conn,$lid)\n\t\t);\n\t\tif (mysqli_query($conn,$query) === TRUE) {\n\t\t\techo \"<div class='AdminSuccess'>Location <B>$city</B>, <B>$statename</B> [$lid] Successfully Updated.</div>\";\n\t\t} else {\n\t\t\techo \"<div class='AdminError'>Location <B>$city</B>, <B>$statename</B> [$lid] Failed to Update!<br>\". mysqli_error($conn) .\"</div>\";\n\t\t}\n\t}\n}", "title": "" }, { "docid": "bb1d52c35d4ab7508f7be8cc9989acab", "score": "0.6160103", "text": "public function save():void{\n $this->move();\n }", "title": "" }, { "docid": "416ec37a6718f78d0797903fa584eb04", "score": "0.61188203", "text": "function saveLocDetail ( $locationId, $locationName, $locationIp, $locationWebport, $locationRtmpPort) {\n\t $str_sql = \"UPDATE gr_locations \n\t SET name = ?,\n\t ipaddress = ?,\n\t webport = ?,\n\t rtmpport = ?\n\t WHERE id = ?\";\n\t $params = array(\n\t 'name'=>$locationName,\n\t 'ipaddress'=>$locationIp,\n\t 'webport'=>$locationWebport,\n\t 'rtmpport'=>$locationRtmpPort, \n\t 'id'=>$locationId\n\t );\n\t //event logs\n\t $loggedUserName = $this->session->userdata('username');\n\t $eventMsg = \"location Detail Info changed by \".$loggedUserName;\n\t $this->common_model->saveEventLog(4, $locationId, \"location\", $eventMsg);\n\t \n\t return $this->db->query($str_sql, $params);\n\t}", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.61105293", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.61105293", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.61105293", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.61105293", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.61105293", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.61105293", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.61105293", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.61105293", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.61105293", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.61105293", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.61105293", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.61105293", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.61105293", "text": "public function save();", "title": "" }, { "docid": "9410269ff0c2eb800f9503f289e87afd", "score": "0.6092663", "text": "public function updateLocation(LocationInterface $location);", "title": "" }, { "docid": "dc14ab18f967bd9cedf4b83f51e738c0", "score": "0.60919106", "text": "public function save()\t{\n\t\t\t// Save to file.\n\t\t}", "title": "" }, { "docid": "1bb1b1a89485618f225af86cce116d5a", "score": "0.60775656", "text": "public function store()\n\t{\n\t\t$location = Location::where(\"id\", '=', Input::get(\"location_id\"))->firstOrFail();\n\t\t$account = LocationAccount::where(\"id\", \"=\", Input::get(\"location_account_id\"))->firstOrFail();\n\n\t\t$location->pickupLocation = Input::get(\"pickupLocation\");\n\t\t$location->school = Input::get(\"school\");\n\n\t\t$account->username = Input::get(\"username\");\n\t\t$account->password = Input::get(\"password\");\n\n\t\t$location->save();\n\t\t$account->save();\n\n\t\treturn $this->buildFullLocation($location, $account);\n\t}", "title": "" }, { "docid": "fe7c43068f35b44123aab0319cf3feec", "score": "0.6073532", "text": "public static function save_location($post, $location)\n\t{\n\t\t// Load the country\n\t\t$country = isset($post->country_name)\n\t\t\t? Country_Model::get_country_by_name($post->country_name)\n\t\t\t: new Country_Model(Kohana::config('settings.default_country'));\n\t\t\t\n\t\t// Fetch the country id\n\t\t$country_id = ( ! empty($country) AND $country->loaded)? $country->id : 0;\n\t\t\n\t\t// Assign country_id retrieved\n\t\t$post->country_id = $country_id;\n\t\t$location->location_name = $post->location_name;\n\t\t$location->latitude = $post->latitude;\n\t\t$location->longitude = $post->longitude;\n\t\t$location->country_id = $country_id;\n\t\t$location->location_date = date(\"Y-m-d H:i:s\",time());\n\t\t$location->save();\n\t\t\n\t\t// Garbage collection\n\t\tunset ($country, $country_id);\n\t}", "title": "" }, { "docid": "c1a25a263234a960abf587cf88447617", "score": "0.60669464", "text": "protected function saved()\r\n\t{\r\n\t}", "title": "" }, { "docid": "c868f928fc327d0c2b4e65b78596d6a6", "score": "0.6065487", "text": "public function save()\n\t{\n\t\tglobal $frameUri;\n\n\t\t$frameUri = $this->uri;\n\t}", "title": "" }, { "docid": "e724aef57c89986fb67b5fe34b107c8e", "score": "0.60594064", "text": "public function location() {\n\t\tConfigure::write('debug',0);\n\t\tif(!empty($_POST)) {\n\t\t\t\t\t\t\t$this->Location->create();\n\t\t\t\t\t\t\t$this->request->data['Location']['customer_id'] = $_POST['customer_id'];\n\t\t\t\t\t\t\t$this->request->data['Location']['lat'] = $_POST['lat'];\n\t\t\t\t\t\t\t$this->request->data['Location']['lon'] = $_POST['lon'];\n\t\t\t\t\t\t\t$this->request->data['Location']['date'] = $_POST['date'];\n\t\t\t\t\t\t\t$this->request->data['Location']['time'] = $_POST['time'];\n\n\t\t\t\t\t\t\t\t\t\t if($this->Location->save($this->request->data))\n\t\t\t\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t\t $this->Driver->create();\n\t\t\t\t\t\t\t\t\t\t\t $this->request->data['Customer']['id'] = $_POST['customer_id'];\n\t\t\t\t\t\t\t\t\t\t\t $this->request->data['Customer']['lat'] = $_POST['lat'];\n\t\t\t\t\t\t\t\t\t\t\t $this->request->data['Customer']['lon'] = $_POST['lon'];\n\t\t\t\t\t\t\t $this->Customer->save($this->request->data);\n\t\t\t\t\t\t\t\t\t\t\t $status = '[{\"status\":\"Location saved successfully\"}]';\n\t\t\t\t\t\t\t\t\t\t\t echo $status;\n\t\t\t\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t\t\t\t else \n\t\t\t\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t\t\t\t\t$status = '[{\"status\":\"failure\"}]';\n\t\t\t\t\t\t\t\t\t\t\techo $status;\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t else\n\t\t {\n\t\t\t $status = '[{\"status\":\"Access denied\"}]';\n\t\t\t\t\techo $status;\n\t\t }\t\n\n\t die();\n\t}", "title": "" }, { "docid": "8be97207e5a7d41a546b2be350b93b4d", "score": "0.6033883", "text": "public function setLocation($location)\n {\n $dataFile = fopen(DATAFILE, \"w+\");\n\n if (!$dataFile) {\n return false;\n }\n\n fwrite($dataFile, $location);\n\n fclose($dataFile);\n }", "title": "" }, { "docid": "829f1126155fe73cd506d02fc410afe7", "score": "0.59588516", "text": "public function postLocation() {\n \treturn $this->repository->postLocation();\n }", "title": "" }, { "docid": "344c7ed8708fa8e446a4fc409c08b2de", "score": "0.59528154", "text": "public function save($path);", "title": "" }, { "docid": "344c7ed8708fa8e446a4fc409c08b2de", "score": "0.59528154", "text": "public function save($path);", "title": "" }, { "docid": "abb90dae50c3e76df15da16915e8eded", "score": "0.5936448", "text": "abstract function save();", "title": "" }, { "docid": "69815e9790c7a5522b39c804e3fda1e4", "score": "0.5914682", "text": "function save();", "title": "" }, { "docid": "97e74d366b4392a4b586da2ee3ad4466", "score": "0.5908757", "text": "public final function save()\n {\n }", "title": "" }, { "docid": "97e74d366b4392a4b586da2ee3ad4466", "score": "0.5908757", "text": "public final function save()\n {\n }", "title": "" }, { "docid": "97e74d366b4392a4b586da2ee3ad4466", "score": "0.5908757", "text": "public final function save()\n {\n }", "title": "" }, { "docid": "996df64887129fa118f3e0961a5681a6", "score": "0.589589", "text": "public function save() {}", "title": "" }, { "docid": "996df64887129fa118f3e0961a5681a6", "score": "0.589589", "text": "public function save() {}", "title": "" }, { "docid": "996df64887129fa118f3e0961a5681a6", "score": "0.589589", "text": "public function save() {}", "title": "" }, { "docid": "615efaea0beb3e9d1d66d52175766734", "score": "0.5876902", "text": "public function saveLoyalitySetting() {\n $query=\"update resturants set useValutec=\". $this->useValutec .\" \n ,locationName='\". $this->locationName .\"'\n ,merchantID='\". $this->merchantID .\"'\n ,locationID='\". $this->locationID .\"'\n ,terminalID='\". $this->terminalID .\"'\n ,clientKey='\". $this->clientKey .\"'\n ,isDoubleReward='\". $this->isDoubleReward .\"'\n ,numberofPoints='\". $this->numberofPoints .\"'\n ,rewardAmount='\". $this->rewardAmount .\"'\n ,rewardLevel='\". $this->rewardLevel .\"'\n ,terminalUserName='\". $this->terminalUserName .\"'\n where id=\". $this->id .\"\";\n dbAbstract::Update($query);\n $this->saveToSession();\n }", "title": "" }, { "docid": "010bdd932344f791d1ca5084518cfd44", "score": "0.5874753", "text": "public function setLocation(?Location $value): void {\n $this->getBackingStore()->set('location', $value);\n }", "title": "" }, { "docid": "f26ba957b0534ebe79c7e076780cf168", "score": "0.5867761", "text": "public function save()\r\n {\r\n // polacz z baza danych\r\n $dbh = self::getConnection();\r\n\r\n // sprawdz czy jest ID\r\n if (! $this->getId()) {\r\n // insert nowy jesli nie ma ID\r\n $sql = \"INSERT INTO book(title, author, year, location) VALUES ('{$this->getTitle()}', '{$this->getAuthor()}', '{$this->getYear()}', '{$this->getLocation()}')\";\r\n $dbh->query($sql);\r\n } else {\r\n // update istniejacego jesli jest ID\r\n $sql = \"UPDATE book SET title='{$this->getTitle()}', author='{$this->getAuthor()}', year={$this->getYear()}, location = '{$this->getLocation()}' WHERE id={$this->getId()}\";\r\n $dbh->query($sql);\r\n }\r\n }", "title": "" }, { "docid": "02325d482754f1ff67a453105ba6d1be", "score": "0.5864986", "text": "abstract public function save();", "title": "" }, { "docid": "02325d482754f1ff67a453105ba6d1be", "score": "0.5864986", "text": "abstract public function save();", "title": "" }, { "docid": "94bd4e601b7b66f7cf83a2761cd38496", "score": "0.58576095", "text": "function save_item() {\n\t\t$db = new db_mysql;\t\n\t\t\n\t\t$msg = 0;\n\t\t\n\t\tif (empty($_POST['location']) || empty($_POST['floor'])) {\n\t\t\t$msg = \"Please comlpete both fields.\";\n\t\t}\n\t\telse {\n\t\t\tif (!empty($_POST['id'])) {\n\t\t\t\t$db->query(\"UPDATE locations SET name=\\\"\" . addslashes($_POST['location']) . \"\\\", floor=\\\"\" . addslashes($_POST['floor']) . \"\\\", modified_by=\\\"{$_SESSION['admin_name']}\\\", modified_date=NOW() WHERE id = {$_POST['id']}\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$db->query(\"INSERT INTO locations (name, floor, modified_by, modified_date) VALUES (\\\"\".addslashes($_POST['location']).\"\\\", \\\"\".addslashes($_POST['floor']).\"\\\", \\\"{$_SESSION['admin_name']}\\\", NOW())\");\n\t\t\t}\n\t\t}\n\t\t \n\t\treturn $msg;\n\t}", "title": "" }, { "docid": "3d93f5d827f46653828006b75bf7b6b3", "score": "0.58569753", "text": "public function store() {\n //\n $data = Input::except('_token');\n $this->loc->create($data);\n return Redirect::route('admin.location.index');\n }", "title": "" }, { "docid": "29b9f0837de587784daf35cf86d47b91", "score": "0.5832211", "text": "public function store()\n {\n if (!$this->isPermitted('admin')) {\n Log::info(\"Unauthorized access attempt\", array('context' => get_class($this).\"#store\"));\n return $this->unauthorizedResponse();\n }\n\n $attrs = Input::all();\n $location = Location::create($attrs);\n Log::info(\"The newly created location is: \", $location->toArray());\n Response::json($location->toJson(), 201);\n }", "title": "" }, { "docid": "e6972bada65f3629aed5efa7f26d85cf", "score": "0.5831748", "text": "public function setLocation($path)\n {\n $this->_locationMplayer = $path;\n }", "title": "" }, { "docid": "e69be7b44001eb80afd1c605600b19bc", "score": "0.5818656", "text": "public function update($id, $location_name, $latitude, $longitude, $title, $content, $coverImg, $images)\n {\n\n $update = new TokyoAPI\\Model\\Location();\n $update->setId($id);\n $update->setLocation($location_name);\n $update->setLatitude($latitude);\n $update->setLongitude($longitude);\n $update->setTitle($title);\n $update->setContent($content);\n $update->setCoverImg($coverImg);\n $update->setImages($images);\n $locationEdit = $this->locationManager->updateLocation($update);\n var_dump($locationEdit);\n header('Location: index.php?action=location&id=' . $id);\n }", "title": "" }, { "docid": "9ae2ea8da96553491feafce03d044592", "score": "0.58060265", "text": "public function save()\n {\n\n $soxId = oxConfig::getParameter( \"oxid\");\n $aParams = oxConfig::getParameter( \"editval\");\n\n /** @var az_amz_destination $oAZDestination */\n $oAZDestination = oxNew( \"az_amz_destination\" );\n if ( $soxId != \"-1\")\n $oAZDestination->load( $soxId);\n else\n $aParams['az_amz_destinations__oxid'] = null;\n \n if ($aParams['az_amz_destinations__az_ftpdirectory'] == '')\n \t$aParams['az_amz_destinations__az_ftpdirectory'] = '/';\n \n $oAZDestination->assign( $aParams);\n $oAZDestination->save();\n\n /** @var az_amz_history $oHistory */\n $oHistory = oxNew('az_amz_history');\t\t\t\n $sHistoryMsg = 'Changes in \"Destination\" tab';\n\t\t$oHistory->addRecord($oAZDestination, 'save_main', $sHistoryMsg);\n\t\t\n // set oxid if inserted\n if ( $soxId == \"-1\")\n oxSession::setVar( \"saved_oxid\", $oAZDestination->az_amz_destinations__oxid->value);\n }", "title": "" }, { "docid": "faca17c90ff3d71e23beb0b82186478b", "score": "0.57910335", "text": "public abstract function save ();", "title": "" }, { "docid": "52807f69c32a6e812b8d3d5729a519da", "score": "0.57890743", "text": "public function save()\n {\n $this->store();\n }", "title": "" }, { "docid": "90a89c1c8b3894700a8f9328e0bc7d62", "score": "0.5787223", "text": "public abstract function save();", "title": "" }, { "docid": "90a89c1c8b3894700a8f9328e0bc7d62", "score": "0.5787223", "text": "public abstract function save();", "title": "" }, { "docid": "90a89c1c8b3894700a8f9328e0bc7d62", "score": "0.5787223", "text": "public abstract function save();", "title": "" }, { "docid": "4ccdf4e1a12c3a6d0e7c20b464d55b74", "score": "0.578473", "text": "public function save()\n {\n $pm = new PlaceManager();\n if(empty($this->id))\n $pm->addPlace($this);\n else\n $pm->updatePlace($this);\n }", "title": "" }, { "docid": "002beb72074e1b99e92d37ac84a4d5e6", "score": "0.57812667", "text": "private function save() {\n\t\t$data = json_encode($this->data, JSON_PRETTY_PRINT);\n\t\t$write = fopen($this->path, 'w') or die(\"can't open file: \" . $this->path);\n\t\tfwrite($write, $data);\n\t\tfclose($write);\n\t}", "title": "" }, { "docid": "dcc14dabae93b72402bbb3bf57571735", "score": "0.5777346", "text": "protected function beforesaved()\r\n\t{\r\n\t}", "title": "" }, { "docid": "6deaed4beecf0faca677cf113d9ebaeb", "score": "0.5773307", "text": "public function editCourtLocation()\n\t{\n\t $core = Core::dbOpen();\n $sql = \"UPDATE court_location SET name = :name, address = :address,\n locationID = :locationID WHERE courtLocationID = :id\";\n $stmt = $core->dbh->prepare($sql);\n $stmt->bindParam(':locationID', $this->locationID);\n $stmt->bindParam(':name', $this->name);\n $stmt->bindParam(':address', $this->address);\n $stmt->bindParam(':id', $this->courtLocationID);\n Core::dbClose();\n \n try {\n if( $stmt->execute() )\n return true;\n } catch (PDOException $e) {\n echo \"Edit Court Location Failed!\";\n }\n return false;\n\t}", "title": "" }, { "docid": "3f892fe68d226c82095a128450705bd5", "score": "0.57626647", "text": "protected function persistLocation(Location $location, $useBatch)\n {\n $em = $this->getEntityManager();\n $em->persist($location);\n $this->startTransaction($useBatch);\n }", "title": "" }, { "docid": "7d01a320bfe76c17465b4e4dc08fb7cf", "score": "0.5757775", "text": "private function save()\n {\n $this->session->set($this->key, $this->currentCountry);\n }", "title": "" }, { "docid": "98388e0b0d6a9372ac95503bdc5d1d84", "score": "0.57507586", "text": "protected function actionSaveNaviPoint() {\n $strReturn = \"\";\n $objPoint = new class_module_navigation_point();\n if($this->getParam(\"mode\") == \"edit\") {\n $objPoint = new class_module_navigation_point($this->getSystemid());\n }\n\n $objForm = $this->getPointAdminForm($objPoint);\n if(!$objForm->validateForm())\n return $this->actionNewNaviPoint($this->getParam(\"mode\"), $objForm);\n\n $objForm->updateSourceObject();\n\n $strExternalLink = $objPoint->getStrPageE();\n $strExternalLink = uniStrReplace(_indexpath_, \"_indexpath_\", $strExternalLink);\n $strExternalLink = uniStrReplace(_webpath_, \"_webpath_\", $strExternalLink);\n $objPoint->setStrPageE($strExternalLink);\n\n if($this->getParam(\"mode\") == \"new\")\n $objPoint->updateObjectToDb($this->getSystemid());\n else\n $objPoint->updateObjectToDb();\n\n\n //Flush pages cache\n $this->flushCompletePagesCache();\n $this->adminReload(getLinkAdminHref($this->arrModule[\"modul\"], \"list\", \"systemid=\".$objPoint->getPrevId().($this->getParam(\"pe\") == \"\" ? \"\" : \"&peClose=\".$this->getParam(\"pe\"))));\n return $strReturn;\n }", "title": "" }, { "docid": "5afcb53cff9802e2b4ee7f0f3465bb2f", "score": "0.5736749", "text": "public function saveBackup()\n\t{\n\t\t$this->master->params()->backup();\n\t\t$this->slave->params()->backup();\n\t}", "title": "" }, { "docid": "83090334e894fd4c02fffb4aaad01e73", "score": "0.57343173", "text": "function save() {\n }", "title": "" }, { "docid": "9e6d094c25aaed93774b0199bc2372de", "score": "0.5719284", "text": "protected function saveLocationData($space_id, $loc_data)\n {\n $space_addr = SpaceLocation::where('space_id', $space_id)->first();\n if($space_addr==null){\n $space_addr = new SpaceLocation();\n }\n\n $space_addr->space_id = $space_id;\n $space_addr->address_line_1 = $loc_data['address_line_1'];\n $space_addr->address_line_2 = $loc_data['address_line_2'];\n $space_addr->city = $loc_data['city'];\n $space_addr->state = $loc_data['state'];\n $space_addr->country = $loc_data['country'];\n $space_addr->postal_code = $loc_data['postal_code'];\n $space_addr->latitude = $loc_data['latitude'];\n $space_addr->longitude = $loc_data['longitude'];\n $space_addr->guidance = $loc_data['guidance'];\n $space_addr->save();\n\n $space_addr->save();\n }", "title": "" }, { "docid": "9ba8e0a4542faf332df808bdac4b064f", "score": "0.57186943", "text": "public function update($id)\n\t{\n\t\t$input = array_except(Input::all(), '_method');\n\t\t$validation = Validator::make($input, Location::$rules);\n $fields_to_except = array('locationName', 'top', 'left', 'bottom', 'right', 'width', 'height', 'cr_top', 'cr_left', 'cr_bottom', 'cr_right', 'imageFile');\n\t\tif ($validation->passes()) {\n\t\t\t$loc = $this->location->find($id);\n\t\t\t$loc->setCoords(array(Input::get('left'),Input::get('top'),Input::get('right'),Input::get('bottom')),'editableArea');\n\t\t\t$loc->setCoords(array(Input::get('width'),Input::get('height')),'editableAreaUnits');\n\t\t\t$loc->setCoords(array(Input::get('cr_left'),Input::get('cr_top'),Input::get('cr_right'),Input::get('cr_bottom')),'clipRect');\n // process uploaded image file\n if (Input::hasFile('imageFile')) {\n $suffix = '/'.$loc->product->id.'/'.Input::get('name');\n $dest = Config::get('app.product_upload_destination').$suffix;\n $pref = Config::get('app.product_upload_path').$suffix;\n if (!File::exists($dest)) {\n File::makeDirectory($dest, 0775, true);\n }\n $file = Input::file('imageFile');\n $file->move($dest, $file->getClientOriginalName());\n $loc->image = asset($pref.'/'.$file->getClientOriginalName());\n\n // ignore the URL field if file is uploaded\n array_push($fields_to_except,'image');\n }\n\t\t\t// extract all custom input\n $input = array_except($input, $fields_to_except);\n\t\t\t$loc->update($input);\n\t\t\t// redirect back to parent product\n\t\t\treturn Redirect::route('products.edit', $loc->product->id)\n\t\t\t\t->with('message','Location '.$loc->name.' is updated.');;\n\t\t}\n\t\treturn Redirect::route('locations.edit', $id)\n\t\t\t->withInput()\n\t\t\t->withErrors($validation)\n\t\t\t->with('message', 'There were validation errors.');\n\t}", "title": "" }, { "docid": "44b13198cfc6b8e7f4e49e36da0105da", "score": "0.5706891", "text": "public function save() {\n\t\tfile_put_contents($this->lan_file, json_encode($this->data));\n\t}", "title": "" }, { "docid": "eefe8431a2145fe40edd40edf9d736dd", "score": "0.57065225", "text": "public function save()\n\t{\n\t}", "title": "" }, { "docid": "eefe8431a2145fe40edd40edf9d736dd", "score": "0.57065225", "text": "public function save()\n\t{\n\t}", "title": "" }, { "docid": "eefe8431a2145fe40edd40edf9d736dd", "score": "0.57065225", "text": "public function save()\n\t{\n\t}", "title": "" }, { "docid": "6233c60f0cff548bcc4d3c68e6f949ad", "score": "0.5703975", "text": "public function save() {\n $this->storageController->connect();\n if (!$this->exists($this->hex)) {\n $query = 'INSERT INTO colores (nombre,valor_hex,precio) VALUES (\"%s\",\"%s\",%d)';\n $query = sprintf($query, $this->name, $this->hex, $this->price);\n }\n else {\n $query = 'UPDATE colores SET nombre=\"%s\", precio=%d WHERE valor_hex=\"%s\"';\n $query = sprintf($query, $this->name, $this->price, $this->hex);\n }\n\n $this->storageController->query($query);\n $this->storageController->close();\n\n $this->is_new = FALSE;\n }", "title": "" }, { "docid": "6e0849ab9b3e6eb3088dc23cbb0959e0", "score": "0.57020825", "text": "public function saved()\n {\n $this->flush();\n }", "title": "" }, { "docid": "bc99e3511d1156d2af543c7075e462a3", "score": "0.57008016", "text": "function save()\n {\n $result=file_put_contents(\"Address.json\",json_encode($this->account_array));\n if(!$result){\n echo \"Nothing to print in AddressBook\\n\";\n }\n else{\n echo \"AddressBook Updated Successfully\\n\";\n }\n }", "title": "" }, { "docid": "87eb28b09d31bafe1f4ddf64210678b4", "score": "0.5693915", "text": "protected function save()\n\t{\n\t\t$this->file->put($this->path.$this->session['id'], serialize($this->session), LOCK_EX);\n\t}", "title": "" }, { "docid": "c8e8ba1b629f30093e5193235926af33", "score": "0.5675911", "text": "function geo_save($geo) {\n $geo = geo_load($geo);\n\n $schema = drupal_get_schema('geo');\n $fields = array_keys($schema['fields']);\n\n $row = array('data' => array());\n foreach ($geo->vars() as $name => $val) {\n if (in_array($name, $fields)) {\n $row[$name] = $val;\n }\n else {\n $row['data'][$name] = $val;\n }\n }\n $row['handler'] = get_class($geo);\n\n // Store the reference to this datasource in our geo tables.\n $update = isset($row['gid']) ? 'gid' : NULL;\n drupal_write_record('geo', $row, $update);\n\n // Allow the handler do its own saving tasks.\n $geo->setGID($row['gid']);\n if (method_exists($geo, 'save')) {\n $geo->save();\n }\n\n // Reset the geo_list static cache.\n geo_list(TRUE);\n\n return $geo;\n}", "title": "" }, { "docid": "a15cea6cc2c6f1b34e41fa10dc7a85e9", "score": "0.5671003", "text": "public function save()\n {\n $this->_storage->modify($this->id, $this->toHash(true));\n }", "title": "" }, { "docid": "aa37b40a5da315749e621d1465e4a89a", "score": "0.5667076", "text": "public function save() {\n\t}", "title": "" }, { "docid": "a78a7f6e5a8f37dc5b3aa2bef21a9b43", "score": "0.5663489", "text": "function replace_location($loc, $dry = false) {\n $id = $loc['location_id'];\n\n // in case someone is adding a brand new one\n if (empty($id)) {\n $res = mysql_query(\"select location_id from location where name = '\". mysql_real_escape_string($loc['name']) . \"'\", DB_LINK);\n $id = mysql_result($res, 0);\n }\n\n if (empty($id)) {\n // init loc\n $fields = array(\"name\", \"address\", \"city\", \"state\", \"postal_code\", \"hours\", \"phone\", \"pick\", \"lat\", \"lng\", \"url\", \"update_time\", \"create_time\", \"user_id\");\n\n // massage name slightly\n $name = trim($loc['name']);\n $name = preg_replace('/(\\s+)/', ' ', $name);\n\n $list = implode(', ', $fields);\n $sql = \"\n insert into location ($list)\n values (\n '\" . mysql_real_escape_string($name) . \"', \n '\" . mysql_real_escape_string($loc['address']) . \"', \n '\" . mysql_real_escape_string($loc['city']) . \"', \n '\" . mysql_real_escape_string($loc['state']) . \"', \n '\" . mysql_real_escape_string($loc['postal_code']) . \"', \n '\" . mysql_real_escape_string($loc['hours']) . \"', \n '\" . mysql_real_escape_string($loc['phone']) . \"', \n '\" . mysql_real_escape_string($loc['pick']) . \"', \n \" . mysql_real_escape_string($loc['lat']) . \", \n \" . mysql_real_escape_string($loc['lng']) . \", \n '\" . mysql_real_escape_string($loc['url']) . \"', \n now(),\n now(),\n \" . $loc['user_id'] . \"\n )\";\n } else {\n // update\n $fields = array(\"name\", \"address\", \"city\", \"state\", \"postal_code\", \"hours\", \"phone\", \"url\", \"update_time\");\n $sql = \"\n update location \n set update_time = now()\n \";\n foreach ($fields as $f) {\n if (!empty($loc[$f]))\n $sql .= \", $f = '\" . mysql_real_escape_string($loc[$f]). \"'\";\n }\n $sql .= \" where location_id = $id \";\n }\n\n input_db($sql, $dry, true) or die(\"error on location!\");\n\n if (empty($id))\n $id = mysql_insert_id(DB_LINK);\n logdump($id);\n\n // handle details\n if (!empty($loc['detail'])) {\n $detail_values = array();\n foreach ($loc['detail'] as $d) {\n $pair = \"($id, $d)\";\n array_push($detail_values, $pair);\n }\n $vals = implode(', ', $detail_values);\n $sql = \"\n replace into location_detail_map (location_id, detail_id)\n values $vals\n \";\n input_db($sql, $dry, true) or die(\"error on ldm!\");\n } \n\n // next up, add review; this is where rating goes, not on location\n if (!empty($loc['review'])) {\n $rating = (!empty($loc['rating'])) ? $loc['rating'] : 61;\n $sql = \"\n insert into review (body, update_time, user_id, rating_detail_id)\n values ('\" . mysql_real_escape_string($loc['review']). \"', now(), \" . $loc['user_id'] . \", $rating)\n \";\n input_db($sql, $dry, true) or die(\"error on review!\");\n $rev_id = mysql_insert_id(DB_LINK);\n\n $sql = \"\n insert into location_review_map (location_id, review_id)\n values ($id, $rev_id)\n \";\n input_db($sql, $dry, true) or die(\"error on lrm!\");\n }\n\n // if no errors, post to twitter\n $status = 'A review of ' . html_entity_decode($loc['name']) . ' was just posted by ' . $loc['user'];\n $status .= \" on Skip's Picks Mobile: \";\n $status .= ' http://m.skipspicks.net/#/detail.php?id=' . $id;\n post_tweet($status);\n }", "title": "" }, { "docid": "efdf074c62aec69b0bc3a8a72c558d48", "score": "0.5655059", "text": "function save()\n {\n $this->store = $this->items;\n }", "title": "" }, { "docid": "c835cb5e10226d9577f955c2769962d0", "score": "0.56513387", "text": "public function update($id, $name)\n\t\t{\n\t\t\t$this->_locations[$id] = $name;\n\t\t\techo \"id : \".$id.\"<br/>Name : \".$name.\"<br/>\";\n\t\t\t//put into the file\n\t\t\tfile_put_contents($this->_file, json_encode($this->_locations));\n\t\t}", "title": "" }, { "docid": "b703aea4cf91ffdfe5fd6bffa5d9c7c4", "score": "0.56485474", "text": "public function updateTouristDestination(Request $request, Location $location) : Location;", "title": "" }, { "docid": "7f2ca263dd384973db4a53d28433a13d", "score": "0.5642446", "text": "function save()\n {\n }", "title": "" }, { "docid": "4badb7ff3292955164af0c0d30e5d716", "score": "0.5642216", "text": "public function savePoints()\n {\n $this->points += $this->unsavedPoints;\n $this->lastSavedPoints = $this->unsavedPoints;\n $this->unsavedPoints = 0;\n }", "title": "" } ]
e82279f5e270b449b336fba0cd8bcffa
Retorna uma Entidade de Dispositivo
[ { "docid": "4127c3a5b7b5cefdc3d046114626951e", "score": "0.0", "text": "public function obterPorId($id)\n {\n $conexao = DataBaseService::obterConexao();\n $query = \"SELECT `id`, `nome` FROM `categorias` WHERE `id` = :id\";\n $prepare = $conexao->prepare($query);\n $prepare->bindValue(':id', $id);\n if (!$prepare->execute()) {\n throw new \\PDOException('Erro ao obter Registro do Banco de Dados');\n }\n\n $row = $prepare->fetch(\\PDO::FETCH_ASSOC);\n\n $entity = clone $this->categoriaEntity;\n $entity->setId($row['id']);\n $entity->setNome($row['nome']);\n return $entity;\n }", "title": "" } ]
[ { "docid": "d8784694559563702e77a575eda4ec38", "score": "0.64225566", "text": "public function getEntity();", "title": "" }, { "docid": "d8784694559563702e77a575eda4ec38", "score": "0.64225566", "text": "public function getEntity();", "title": "" }, { "docid": "d8784694559563702e77a575eda4ec38", "score": "0.64225566", "text": "public function getEntity();", "title": "" }, { "docid": "d8784694559563702e77a575eda4ec38", "score": "0.64225566", "text": "public function getEntity();", "title": "" }, { "docid": "d8784694559563702e77a575eda4ec38", "score": "0.64225566", "text": "public function getEntity();", "title": "" }, { "docid": "d8784694559563702e77a575eda4ec38", "score": "0.64225566", "text": "public function getEntity();", "title": "" }, { "docid": "d8784694559563702e77a575eda4ec38", "score": "0.64225566", "text": "public function getEntity();", "title": "" }, { "docid": "451bfa70d95638b80495f4e3c4848939", "score": "0.6136056", "text": "public function getEntity( )\n {\n\n return $this->entity;\n\n }", "title": "" }, { "docid": "451bfa70d95638b80495f4e3c4848939", "score": "0.6136056", "text": "public function getEntity( )\n {\n\n return $this->entity;\n\n }", "title": "" }, { "docid": "451bfa70d95638b80495f4e3c4848939", "score": "0.6136056", "text": "public function getEntity( )\n {\n\n return $this->entity;\n\n }", "title": "" }, { "docid": "451bfa70d95638b80495f4e3c4848939", "score": "0.6136056", "text": "public function getEntity( )\n {\n\n return $this->entity;\n\n }", "title": "" }, { "docid": "d3a4bc47b2b6c95b58b4ab7ddf005699", "score": "0.61336863", "text": "function entity() {\n\t\treturn Entity::get($this->entity_path, false, false);\n\t}", "title": "" }, { "docid": "5486d0d548789af82423666c43d34d20", "score": "0.6100146", "text": "public function getEntity()\n {\n return $this->entity;\n }", "title": "" }, { "docid": "9f9b7a71b96b21bb6ca77acfc2acd61b", "score": "0.59999716", "text": "public function getEntity()\n {\n return $this->_entity;\n }", "title": "" }, { "docid": "9f9b7a71b96b21bb6ca77acfc2acd61b", "score": "0.59999716", "text": "public function getEntity()\n {\n return $this->_entity;\n }", "title": "" }, { "docid": "164b23ebdcc4705bc3696d2fdca930f5", "score": "0.59311277", "text": "public function getEntity()\n {\n return $this->entity;\n }", "title": "" }, { "docid": "164b23ebdcc4705bc3696d2fdca930f5", "score": "0.59311277", "text": "public function getEntity()\n {\n return $this->entity;\n }", "title": "" }, { "docid": "164b23ebdcc4705bc3696d2fdca930f5", "score": "0.59311277", "text": "public function getEntity()\n {\n return $this->entity;\n }", "title": "" }, { "docid": "164b23ebdcc4705bc3696d2fdca930f5", "score": "0.59311277", "text": "public function getEntity()\n {\n return $this->entity;\n }", "title": "" }, { "docid": "164b23ebdcc4705bc3696d2fdca930f5", "score": "0.59311277", "text": "public function getEntity()\n {\n return $this->entity;\n }", "title": "" }, { "docid": "164b23ebdcc4705bc3696d2fdca930f5", "score": "0.59311277", "text": "public function getEntity()\n {\n return $this->entity;\n }", "title": "" }, { "docid": "179f53310b1b0eefea50faecdf53d7b0", "score": "0.59236306", "text": "function getEntidadeCompleta($registroID) {\n $entidade = new EntidadeAlmoxarifadoProdutoEntrada();\n $entidade = $this->getEntidade($registroID);\n if ($entidade->getId() > 0) {\n //PRODUTO\n $produtoDAO = new AlmoxarifadoProdutoDAO();\n $entidade->setEntidadeProduto($produtoDAO->getEntidade($entidade->getFkProduto()));\n //USUARIO\n $usuarioDAO = new UsuarioDAO();\n $entidade->setEntidadeUsuario($usuarioDAO->getEntidade($entidade->getFkUsuario()));\n }\n return $entidade;\n }", "title": "" }, { "docid": "8b0a936548040437be7046b3965190bb", "score": "0.5901407", "text": "public function getEntity(): string;", "title": "" }, { "docid": "8b0a936548040437be7046b3965190bb", "score": "0.5901407", "text": "public function getEntity(): string;", "title": "" }, { "docid": "0be51cd2ee55df7886d0094a2526a2c8", "score": "0.5894701", "text": "public function getMotivo() {\n return $this->getEntity()->getMotivo();\n }", "title": "" }, { "docid": "11b274264f7c35e9b1c1e8dcce205a2f", "score": "0.58826137", "text": "protected function getEntidad(){\n\t\t$oObrasocial = new Obrasocial ( );\n\t\n\t\t\t\t\n\t\t$oObrasocial->setCd_obrasocial ( FormatUtils::getParamPOST('cd_obrasocial') );\t\n\t\t\t\t\n\t\t$oObrasocial->setDs_obrasocial ( FormatUtils::getParamPOST('ds_obrasocial') );\t\n\t\t\n\t\t$oObrasocial->setBl_activa ( FormatUtils::getParamPOST('bl_activa') );\t\n\t\t\n\t\t\n\t\treturn $oObrasocial;\n\t}", "title": "" }, { "docid": "b6bb91df48155434ae78b6ea04bde626", "score": "0.5818674", "text": "function getDispositivos(){\n\t\t$model=$this->getModelObject();\t\t\n\t\t$estados=$model->getEstadoDeDispositivos();\n\n\t\t$dispositivos=array(\n\t\t\t'data'=>$estados,\n\t\t\t'success'=>true\n\t\t);\n\t\techo json_encode( $dispositivos );\n\t}", "title": "" }, { "docid": "3757d41ee7e08694526934630aee1e59", "score": "0.5792123", "text": "public function getEntityClass();", "title": "" }, { "docid": "3757d41ee7e08694526934630aee1e59", "score": "0.5792123", "text": "public function getEntityClass();", "title": "" }, { "docid": "3757d41ee7e08694526934630aee1e59", "score": "0.5792123", "text": "public function getEntityClass();", "title": "" }, { "docid": "d1bd81846e1a5fc467c81f490c0f2133", "score": "0.57621086", "text": "public function getEntity()\n {\n return $this;\n }", "title": "" }, { "docid": "514c5c705307a162db96b18dd6d7207d", "score": "0.57466507", "text": "public function getEntityClass(): string;", "title": "" }, { "docid": "514c5c705307a162db96b18dd6d7207d", "score": "0.57466507", "text": "public function getEntityClass(): string;", "title": "" }, { "docid": "514c5c705307a162db96b18dd6d7207d", "score": "0.57466507", "text": "public function getEntityClass(): string;", "title": "" }, { "docid": "2b4bcc280b2cd568b88080b38a51a756", "score": "0.5739122", "text": "public function entidad()\n\t{\n return $this->belongsTo('App\\Entidad'); // Devuelve solo un objeto\n\t}", "title": "" }, { "docid": "1a4c696dcf01fcd5bf47bbb305c6c4a5", "score": "0.5706894", "text": "private function _pedirInfoInterfaz(){\n $objConsultaBase=new ConsultasBase();\n return $objConsultaBase;\n }", "title": "" }, { "docid": "a0237600724bad85b3fd25c4675645e6", "score": "0.5691355", "text": "public function entity()\n {\n return $this->belongsTo('BenBjurstrom\\CuratorModel\\Entity');\n }", "title": "" }, { "docid": "473f3c83c5ad9754a23c7c54bc29b42d", "score": "0.56862736", "text": "public function getRelatedEntity(): string;", "title": "" }, { "docid": "03e47127bb4ca19c4ce1ad14e9a9182a", "score": "0.56719005", "text": "public function getEntityObject()\n\t{\n\t\treturn $this->_initAuthor();\n\t}", "title": "" }, { "docid": "3b779f615921715ac69a2de0deb2cc16", "score": "0.5659649", "text": "public function entity();", "title": "" }, { "docid": "057ff1d568cddcef3b3bd910730e7316", "score": "0.56325513", "text": "public function getEntity()\n { \n if (null === $this->entity) {\n $entity = $this->getModel();\n if (($id = $this->getQuery('id')) && $id !== $entity->getId()) {\n $entity = $entity->getChild($id);\n }\n $this->entity = $entity;\n } \n return $this->entity; \n }", "title": "" }, { "docid": "8a1c35d514e2ac97dbf388d66e79d71e", "score": "0.5613148", "text": "public function getToEntity()\n {\n return $this->toEntity;\n }", "title": "" }, { "docid": "201ff1a33b96ec29cf1e76380abc9334", "score": "0.5607037", "text": "public function getEntity(): IEntity;", "title": "" }, { "docid": "7ada50ac22825185d4d773ddb4d5cf99", "score": "0.5595254", "text": "public function getEntregado()\n {\n return $this->entregado;\n }", "title": "" }, { "docid": "76cd5006ae48cf04b6acd53a8dc556fa", "score": "0.55678266", "text": "protected function getEntityPath()\n {\n return null;\n }", "title": "" }, { "docid": "319a8430f2e05d277b8d2fd3af905dfa", "score": "0.55635697", "text": "public function get()\n {\n return $this->entity;\n }", "title": "" }, { "docid": "5c8cbe947c2d380163edace6ed5a0f82", "score": "0.5555531", "text": "public function getManuapi()\r\n {\r\n return $this->entity;\r\n }", "title": "" }, { "docid": "3c8ce5f2a081794bd24e0c962b47e16f", "score": "0.55474555", "text": "public abstract function getEntity(): string;", "title": "" }, { "docid": "023ade9660c3e175247055506ba6f273", "score": "0.5545176", "text": "public static function getEntity()\n {\n $entity = DB::table( 'glpi_entities')\n ->select ('glpi_entities.name as entity', 'glpi_entities.id as identity')\n ->join ( 'glpi_tickets', 'glpi_entities.id','=',\n 'glpi_tickets.entities_id')\n ->where ( 'glpi_tickets.status','=','5')\n ->groupBy ('glpi_entities.id')\n ->orderBy ( 'glpi_entities.name', 'asc')\n ->get();\n\n return $entity;\n }", "title": "" }, { "docid": "f649933eebe59849af2ff32335985792", "score": "0.55216086", "text": "public function getProducto()\n {\n return $this->hasOne(Productos::class, ['id' => 'producto_id'])\n ->inverseOf('pedidos');\n }", "title": "" }, { "docid": "8cad368ac34ea5cf231e991f7f16ef76", "score": "0.5513816", "text": "public function getEntity()\n {\n if (empty($this->_data['entity'])) {\n Mage::throwException(Mage::helper('importexport')->__('Entity is unknown'));\n }\n return $this->_data['entity'];\n }", "title": "" }, { "docid": "aafdf1f369859899a6437ff152df68c8", "score": "0.55085135", "text": "abstract public function getEntityClass();", "title": "" }, { "docid": "aafdf1f369859899a6437ff152df68c8", "score": "0.55085135", "text": "abstract public function getEntityClass();", "title": "" }, { "docid": "cd9dc38f4046fc08faafbc98d0acf70b", "score": "0.54651695", "text": "public function getSystemEntity()\n {\n return $this->entity;\n }", "title": "" }, { "docid": "281aa1d2227b279ac6226a67a15ead97", "score": "0.5453219", "text": "public function getBaseEntity();", "title": "" }, { "docid": "ec69e5f94f6d448851ff4562a7df8b53", "score": "0.54325634", "text": "public function getEntity()\n {\n if (empty($this->_data['entity'])) {\n throw new \\Magento\\Framework\\Exception\\LocalizedException(__('Entity is unknown'));\n }\n return $this->_data['entity'];\n }", "title": "" }, { "docid": "ae2eef817b3f1eda31a19e31d19d9fdb", "score": "0.54121083", "text": "public function entity()\n {\n return $this->belongsTo('Cuatromedios\\Kusikusi\\Models\\EntityBase', 'entity_id');\n }", "title": "" }, { "docid": "8e5ff353d0efac4c5c19d96f37ece8c1", "score": "0.5408598", "text": "public function getUserEntity();", "title": "" }, { "docid": "4e64c5118815e220a5eaf266b6cbbd58", "score": "0.5408264", "text": "public function getPedido()\n {\n return $this->hasOne(Pedido::className(), ['app_idApp' => 'app_idApp','id'=>'pedido_id']);\n }", "title": "" }, { "docid": "3c4970730c9dd1c3f737d8614e96c8f3", "score": "0.54054266", "text": "function getEntidade($registroID) {\n $entidade = new EntidadeAlmoxarifadoProdutoEntrada();\n if ($registroID > 0) {\n try {\n $resultado = $this->select(\n \"SELECT * FROM \" . self::$NOME_TABELA . \" WHERE id = \" . $registroID\n );\n if ($resultado && $resultado->rowCount()) {\n $entidade = $this->setCarregarEntidade($resultado->fetchAll()[0]);\n }\n } catch (\\PDOException $erro) {\n $this->setErroDAO(__METHOD__, $erro->getMessage());\n }\n }\n return $entidade;\n }", "title": "" }, { "docid": "a02bbc64e505fd62cf209fc2c5613ec0", "score": "0.5393236", "text": "public function getEntityObject()\n\t{\n\t\tif (Mage::registry('wordpress_post')) {\n\t\t\treturn Mage::registry('wordpress_post');\n\t\t}\n\n\t\treturn new Varien_Object(array(\n\t\t\t'url' => Mage::helper('wordpress')->getUrl(),\n\t\t));\n\t}", "title": "" }, { "docid": "2a15dc16f864ca33b48cc9302ceb5151", "score": "0.53776675", "text": "public function getEntity()\n {\n return Printer::class;\n }", "title": "" }, { "docid": "1464945eeeac11bdbda4b26f416b3515", "score": "0.53691375", "text": "public function getOwner();", "title": "" }, { "docid": "1464945eeeac11bdbda4b26f416b3515", "score": "0.53691375", "text": "public function getOwner();", "title": "" }, { "docid": "9410b90307c29110e92259facca618eb", "score": "0.53681886", "text": "public function suscripcionDocente(){\n return $this->hasOne('Suscripcion', 'codigo_asignatura', 'codigo_asignatura')->where('codigo_tipo_suscripcion', '=', '1');\n }", "title": "" }, { "docid": "7f1dd87f5e0f5c8323f7e273660cf99d", "score": "0.53498363", "text": "public function getPedidos()\n {\n return $this->hasOne(Pedidos::className(), ['id' => 'pedidos_id']);\n }", "title": "" }, { "docid": "f44a3b806f94ae7dace6c6bed4c768f5", "score": "0.5343008", "text": "private function _entity()\n {\n return new Entity();\n }", "title": "" }, { "docid": "f44a3b806f94ae7dace6c6bed4c768f5", "score": "0.5343008", "text": "private function _entity()\n {\n return new Entity();\n }", "title": "" }, { "docid": "568eeea44c91125364de6aa56108727c", "score": "0.5341809", "text": "public function invitado(){\n return $this->hasOne(Invitado::class);\n }", "title": "" }, { "docid": "b4e2b50da0a57b8cdb044d06e6ab055a", "score": "0.53395176", "text": "public function getEntity() {\n return $this->user_entity;\n }", "title": "" }, { "docid": "8e24299d775373e649500bfd37075014", "score": "0.53283495", "text": "public function getPedido()\n {\n return $this->hasOne(Pedido::className(), ['id' => 'id_pedido']);\n }", "title": "" }, { "docid": "71091e19fb5a7e491fdf854a4a1c52ea", "score": "0.5327586", "text": "public function owner()\n {\n $this->entity->owner(true);\n }", "title": "" }, { "docid": "dd5f79d8b5ae6239a39b22313bbbc802", "score": "0.53251445", "text": "public function dispense()\n {\n return $this->belongsTo(Dispensing::class, 'dispensing_id');\n }", "title": "" }, { "docid": "b47177ed01090f3e13ca5390f52549cd", "score": "0.53226614", "text": "public function getObservacao() {\n return $this->sObservacao;\n }", "title": "" }, { "docid": "b47177ed01090f3e13ca5390f52549cd", "score": "0.53226614", "text": "public function getObservacao() {\n return $this->sObservacao;\n }", "title": "" }, { "docid": "79b48803279ae0534709db6ac5e13026", "score": "0.5310681", "text": "abstract public function getEntityClass(): string;", "title": "" }, { "docid": "fea0a0ad6b63ea2a892cd6ae40e7c545", "score": "0.5308533", "text": "public function creer_entete_ManagedObject_this() {\n\t\t$this->onDebug ( __METHOD__, 1 );\n\t\n\t\tif ($this->getManagedObject () == \"\") {\n\t\t\treturn $this->onError ( \"Aucune ManagedEntity de la class : \".__CLASS__.\" de defini.\" );\n\t\t}\n\t\t$soap_message = new stdClass ();\n\t\t$soap_message->_this = $this->getManagedObject ();\n\t\treturn $soap_message;\n\t}", "title": "" }, { "docid": "7215cb071f9ad6473a43eca0bac75551", "score": "0.5301915", "text": "function getEntityName()\n {\n return $this->context->getRequest()->baseEntity;\n }", "title": "" }, { "docid": "fc0d5c1dcb267ac1bda1345bb5de66f0", "score": "0.5295908", "text": "public function fetchObj() {\n return $this->resultado->fetch(PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "380e47b3c8406404cb709d2b5a325600", "score": "0.5292434", "text": "public static function getEntity( )\n {\n if (!static::$entity) {\n\n $tmp = \\Bitrix\\Highloadblock\\HighloadBlockTable::compileEntity(array(\n 'ID' => static::ENTITY_ID,\n 'NAME' => static::ENTITY_NAME,\n 'TABLE_NAME' => static::ENTITY_TABLE_NAME\n ));\n\n static::$entity = $tmp->getDataClass();\n\n }\n\n return static::$entity;\n }", "title": "" }, { "docid": "359c7580850ecc80f389fc47ec4dfd33", "score": "0.52906513", "text": "public function getProduto()\n {\n return $this->hasOne(Produto::className(), ['id' => 'id_produto']);\n }", "title": "" }, { "docid": "a2f678d27f2e055a4e9364cfb3c9427b", "score": "0.52775735", "text": "public function listarUsuario(){\n $crudAcceso= new crudAcesso();//Crear un objeto de la clase crud Producto\n return $crudAcceso->listarUsuario();//Retornando los valores del metodo listar productos\n \n}", "title": "" }, { "docid": "a9a8b95e1813718d98f3071511bb2309", "score": "0.5277233", "text": "public function getOrdenFabricacionAction(){\n \t$request = $this->get('request'); \t$id=$request->request->get('id');\n \t$em = $this->get('doctrine')->getEntityManager();\n \t \n \t$orden = $em->getRepository('PBProduccionBundle:Orden')->findOneById($id);\n \t\n \tif($orden) {\n \t\treturn new Response(json_encode(array('cliente' => $orden->getClienteNombre(),'subcliente' => $orden->getSubcliente(), 'material' => $orden->getTipomaterial(), 'ancho' => $orden->getAncho(),'galga' => $orden->getGalga())));\n \t} else {\n \t\treturn new Response(json_encode(array('error' => '<span class=\"error-nombre\">Código de Orden de Fabricación erróneo</span>')));\n \t}\n }", "title": "" }, { "docid": "b5410da1e1e35a442ba37ae00f41e550", "score": "0.5271919", "text": "public function managedObject() {\n\t\t\treturn $this->managedObject;\n\t\t}", "title": "" }, { "docid": "3384a7331fea633721f0d22d35cecf3a", "score": "0.5271026", "text": "function encenderDispositivo(){\n\t\t$model=$this->getModelObject();\n\t\t\n\t\t$idDispositivo=$_POST['idDispositivo'];\n\t\t$res1=$model->cancelarEventoActivo($idDispositivo,'ENCENDIDO');\t\t\n\t\tif (!$res1){\n\t\t\techo \"error apagando\";\n\t\t}\n\t\t$res2=$model->cambiarEstadoAlDispositivo($idDispositivo, 'ON');\n\t\tif (!$res2){\n\t\t\techo \"error apagando dispositivo\";\n\t\t}\n\t\tif ($res1 && $res2){\n\t\t\t echo \"OK\" ;\n\t\t}else{\n\t\t\techo \"ERROR\" ;\n\t\t}\n\t}", "title": "" }, { "docid": "cf63f6974c407d423e5b81a6da160c5a", "score": "0.5249891", "text": "protected function persistEntity($entity)\n { \n parent::persistEntity($entity);\n \n $administradores = $this->getDoctrine()\n ->getRepository(Contenido::class)\n ->findBy(array('codigo'=>'correo_superadmin'));\n \n $soporte_mail = $this->getDoctrine()\n ->getRepository(Contenido::class)\n ->findOneByCodigo('soporte_mail');\n \n if ($soporte_mail) {\n $soporte_mail = $soporte_mail->getTexto();\n } else {\n $soporte_mail = '';\n }\n \n // obtengo ahora el nro de telefono del soporte \n $soporte_tel = $this->getDoctrine()\n ->getRepository(Contenido::class)\n ->findOneByCodigo('soporte_tel');\n \n if ($soporte_tel) {\n $soporte_tel = $soporte_tel->getTexto();\n } else {\n $soporte_tel = '';\n }\n \n // Envio correo al administrador\n if (false === $this->isGranted('ROLE_SUPER_ADMIN')) {\n foreach ($administradores as $administrador) {\n $message = (new \\Swift_Message('Nuevo programa'))\n ->setFrom('ecomgrupo11@gmail.com')\n ->setSubject('Nuevo programa creado: '.$entity->getTitulo())\n ->setTo($administrador->getTexto())\n ->setBody(\n $this->renderView(\n 'mails/aviso_entrada.html.twig',\n array(\n 'soporte_tel' => $soporte_tel, \n 'soporte_mail'=> $soporte_mail,\n 'entrada'=>$entity,\n 'tipo'=>2\n )), 'text/html'\n );\n \n $this->get('mailer')->send($message);\n }\n }\n }", "title": "" }, { "docid": "6a2331dacb1ed848df97c5d53448cfb1", "score": "0.5247012", "text": "public function getProductos()\n {\n return $this->hasOne(Productos::className(), ['id' => 'productos_id']);\n }", "title": "" }, { "docid": "e08d396007bfac554e28c7a22ee7b7e2", "score": "0.52434415", "text": "public function getEntity($objType, $id);", "title": "" }, { "docid": "6d22eebd9bd260d7bcb2bbffae149b00", "score": "0.5240711", "text": "public function getCurso()\n {\n return $this->hasOne(Docentes::className(), ['id' => 'curso_id']);\n }", "title": "" }, { "docid": "e983ded0b3e4b79ea22429225268ad16", "score": "0.5237683", "text": "public function buscarUltimo()\n {\n $select = $this->select();\n $select->setIntegrityCheck(false);\n\n $select->from(\n array($this->_name),\n array('*'),\n 'BDCORPORATIVO.scCorp'\n );\n\n\n $select->order('idArquivo desc');\n $select->limit('1', '0');\n\n return $this->fetchRow($select)->toArray();\n }", "title": "" }, { "docid": "752a1a80acc10f6ae361c534bd3cddf5", "score": "0.5236942", "text": "public function objetivos()\n\t{\n\t\treturn $this->hasMany('Objetivo','id_reserva');\n\t}", "title": "" }, { "docid": "ac09ac2e243a31dfe4ddb33ae2f10941", "score": "0.52354103", "text": "public function getEntityName(): string;", "title": "" }, { "docid": "593004d5612dab5132d3b15a6e7e8b2c", "score": "0.52336484", "text": "public function holamundo(){\n\n return $this->em->getRepository(\"ProyectoBundle:Proyecto\")->findAll();\n \n }", "title": "" }, { "docid": "3cfdee61607ab484f3306c50a788a6ac", "score": "0.523317", "text": "public static function getEntityImplementor()\n {\n return '\\\\HBDemo\\\\Commenting\\\\Owner\\\\Model\\\\Aggregate\\\\Owner';\n }", "title": "" }, { "docid": "50e859e3dc83a0df6d7cfb4707fb28ce", "score": "0.5230899", "text": "public function getDipendenteId(){return $this->idDipendente;}", "title": "" }, { "docid": "6cfb54eabd2e53c2f43dc3c1a8a0f6d4", "score": "0.522926", "text": "public function entity(): string;", "title": "" }, { "docid": "0c3e57ce368858b011a8acea0a797a7d", "score": "0.5225406", "text": "protected function getSocialObject () {\n return $this->CI->model($this->data['attrs']['object_type'])->get($this->data['attrs']['object_id'])->result;\n }", "title": "" }, { "docid": "48dda030d4a1905ea565bff300a89ebe", "score": "0.5224547", "text": "public function obterPorNome($nome)\n {\n $conexao = DataBaseService::obterConexao();\n $query = \"SELECT `categorias`.`id`, `categorias`.`nome`\n FROM `categorias`\n WHERE `categorias`.`nome` = :nome\n ORDER BY `categorias`.`id`\";\n $prepare = $conexao->prepare($query);\n $prepare->bindValue(':nome', $nome);\n if (!$prepare->execute()) {\n throw new \\PDOException('Erro ao obter registros do Banco de Dados');\n }\n\n $row = $prepare->fetch(\\PDO::FETCH_ASSOC);\n\n if (!$row) {\n throw new \\Exception(\"Nenhuma categoria encontrada\");\n }\n\n $entity = clone $this->categoriaEntity;\n $entity->setId($row['id']);\n $entity->setNome($row['nome']);\n return $entity;\n }", "title": "" }, { "docid": "c3d110b0481ebbdcb7d8dc4f084aeb48", "score": "0.52223825", "text": "public function getContent()\n {\n return $this->entity;\n }", "title": "" }, { "docid": "a3e4d1a439c6f01d558ea1413aeba65e", "score": "0.52195567", "text": "public function getProducto()\n {\n return $this->hasOne(Productos::className(), ['id_producto' => 'id_producto']);\n }", "title": "" }, { "docid": "1b768aed3a150cf647803a6a0d82f915", "score": "0.52189934", "text": "function pedido_get()\n {\n if(!$this->get('idpedido'))\n {\n $this->response(NULL, 400);\n }\n \n $pedido = $this->pedidos_model->get($this->get('idpedido'));\n \n if($pedido)\n {\n $this->response(array(\"pedidos\" => $pedido), 200); // 200 being the HTTP response code\n }\n \n else\n {\n $this->response(NULL, 404);\n }\n }", "title": "" } ]
d62c4c4901da7012be609cc3ed3d7d3f
Gets the configuration mapper this event is related to.
[ { "docid": "ae4d048b9ed9f6e87af14ad8a679347c", "score": "0.701898", "text": "public function getMapper() {\n return $this->mapper;\n }", "title": "" } ]
[ { "docid": "5400a97531967710c81c632ff63868b4", "score": "0.73486835", "text": "public function getConfigMapper()\n {\n if (!isset($this->_storage['configMapper'])) {\n $this->_storage['configMapper'] = new Default_Model_Mapper_ConfigCache(\n new Default_Model_Mapper_Config(),\n $this->_config['mapper']['cache']\n );\n }\n\n return $this->_storage['configMapper'];\n }", "title": "" }, { "docid": "33f4511bbe8f54469418c5ad2f323901", "score": "0.71297294", "text": "public function getMapper()\n {\n return $this->mapper;\n }", "title": "" }, { "docid": "5daf044f27ab7ccc1e8aaa6a6bc9d438", "score": "0.70782053", "text": "public function getMapper()\r\n {\r\n return $this->mapper;\r\n }", "title": "" }, { "docid": "80b26bede1053482b10c7c8bdf2e0344", "score": "0.686479", "text": "public function mapper()\n {\n return $this->_mapper;\n }", "title": "" }, { "docid": "7f2510902d503d5b7723636b472b81ab", "score": "0.68486995", "text": "public static function get_event_mapper() {\n self::init();\n return self::$eventmapper;\n }", "title": "" }, { "docid": "0ef9abd58aba438de7b3291716d56fba", "score": "0.6664919", "text": "public function getMapper()\n {\n return $this->proxyBase\n ->getMapper();\n }", "title": "" }, { "docid": "d6d3d5682d79cb119d0a9850d5d263a1", "score": "0.6435639", "text": "public function getMapper ()\n {\n if (null === $this->_mapper) {\n if ('development' == APPLICATION_ENV)\n $this->setMapper(new Default_Model_Mapper_CommentDbMapper());\n else\n $this->setMapper(new Default_Model_Mapper_CommentRestMapper());\n }\n return $this->_mapper;\n }", "title": "" }, { "docid": "7b1109ed09b39de366d0bc3bd5a74ce5", "score": "0.6390237", "text": "public function getMapper()\n {\n if ($this->_mapper === null) {\n $this->setMapper(new Myblog_Model_Mapper_User());\n }\n\n return $this->_mapper;\n }", "title": "" }, { "docid": "ba979d9223c574c3be43b7982b9371ca", "score": "0.6347643", "text": "public function getMapper()\n {\n if (null === $this->mapper) {\n $this->mapper = new Mapper($this->getForm(), $this->getFormKey(), $this->objectHelpers, $this->entityManager);\n }\n return $this->mapper;\n }", "title": "" }, { "docid": "5bf86bfdd1709eb8d4b98d62c722a6b2", "score": "0.6317373", "text": "public function getMapper() {\n if (null === $this->_mapper) {\n $this->setMapper(new Application_Model_DoctorMapper());\n }\n return $this->_mapper;\n }", "title": "" }, { "docid": "47fce8cbb33f14d841acb02137b29c69", "score": "0.63173115", "text": "public function getMapper()\n {\n if (null === $this->_mapper) {\n $this->setMapper(new Petolio_Model_PoAttributeSetsMapper());\n }\n return $this->_mapper;\n }", "title": "" }, { "docid": "e887544c67f5488c15986d859b47e6e7", "score": "0.6267448", "text": "public function getMapper()\n {\n return parent::getMapper('Basico_Model_MensagemAssocclAssocclPessoaPerfilMapper');\n }", "title": "" }, { "docid": "d7c2c0232c88de482b33902f1f78a992", "score": "0.62327594", "text": "public function getMapper() {\n if (null === $this->_mapper) {\n $this->setMapper(new Application_Model_DoctorEnquiryMapper());\n }\n return $this->_mapper;\n }", "title": "" }, { "docid": "df7b685e10e42bcb93163f8c0dfc0597", "score": "0.6232234", "text": "protected function getMapping()\n\t{\n\t\treturn $this->mapping;\n\t}", "title": "" }, { "docid": "3f8c316b5f9978cbd245feb4f84fed50", "score": "0.61948925", "text": "protected function createConfigMapper(): ConfigMapper\n {\n return new ConfigMapper($this->createParameterMapper());\n }", "title": "" }, { "docid": "bcf7e8a727ffc5e1ab320e88412ce6bc", "score": "0.618431", "text": "public function getMapper();", "title": "" }, { "docid": "bcf7e8a727ffc5e1ab320e88412ce6bc", "score": "0.618431", "text": "public function getMapper();", "title": "" }, { "docid": "28b33626b694c4314cc4dd1aadcb522a", "score": "0.6171745", "text": "public function getMapping() {\n return $this->mapping;\n }", "title": "" }, { "docid": "222d181a81c134ecfbce29acf3fc0020", "score": "0.6155511", "text": "public function getMapping()\n {\n return $this->mapping;\n }", "title": "" }, { "docid": "795f029769667715a912f9c8c73bce9f", "score": "0.6112637", "text": "public function getMapping()\n {\n return $this->mapping;\n }", "title": "" }, { "docid": "6c2b788c6a57a0208e378fdf8720bac9", "score": "0.6049984", "text": "public function getMapper()\n\t{\n\t\tif (null === $this->_mapper) {\n\t\t\t$this->setMapper(new Petolio_Model_PoHelpMapper());\n\t\t}\n\t\treturn $this->_mapper;\n\t}", "title": "" }, { "docid": "7f4794650d21a73810bd90a40ed02035", "score": "0.6014564", "text": "public function getAttributeMapMapperConfig(): MapperConfigTransfer;", "title": "" }, { "docid": "859782ed816dd4d59852efac18e50a35", "score": "0.59963286", "text": "public function getConfiguration()\n {\n return $this->delegate->getConfiguration();\n }", "title": "" }, { "docid": "a8ab4cb9ad0f7ca190a5dc31b93ec7ab", "score": "0.597261", "text": "private function getNodeMapper() {\n\t\treturn $this->mapper;\n\t}", "title": "" }, { "docid": "051aca35303f9acc62846ef17644903f", "score": "0.5965315", "text": "public function getMapper()\n {\n if (null === $this->_mapper) {\n $this->setMapper(new Application_Model_PostMapper());\n }\n return $this->_mapper;\n }", "title": "" }, { "docid": "a3ce7a564ac417272daff9ea04acb158", "score": "0.5937387", "text": "public function getMapper()\n {\n return parent::getMapper('Basico_Model_FormularioAssocclElementoAssocclValidatorMapper');\n }", "title": "" }, { "docid": "4f808699f756c43a92795471df7ce51f", "score": "0.59034896", "text": "public function getMapper()\n {\n if ($this->_mapper === null) {\n\n \\Zend_Loader_Autoloader::getInstance()->suppressNotFoundWarnings(true);\n\n if (class_exists('\\Klikasi\\Mapper\\Sql\\Notifikazioa')) {\n\n $this->setMapper(new \\Klikasi\\Mapper\\Sql\\Notifikazioa);\n\n } else {\n\n new \\Exception(\"Not a valid mapper class found\");\n }\n\n \\Zend_Loader_Autoloader::getInstance()->suppressNotFoundWarnings(false);\n }\n\n return $this->_mapper;\n }", "title": "" }, { "docid": "2807fbe7c9a34927b2b22e9db0714297", "score": "0.5873072", "text": "public function getBlockMapper()\n {\n if (null === $this->blockMapper) {\n $this->blockMapper = $this->getServiceManager()->get('playgroundcms_block_mapper');\n }\n\n return $this->blockMapper;\n }", "title": "" }, { "docid": "b5733e49135c9ea556919f82c5fe69ab", "score": "0.58423376", "text": "private function _getMapper()\n {\n if (is_null($this->_mapper)) {\n $this->_mapper = new UserMapper($this->db());\n }\n\n return $this->_mapper;\n }", "title": "" }, { "docid": "a69ab30b083331fb66ba6f4e06a3c3d4", "score": "0.584046", "text": "public function getDataMapper()\n {\n return $this->dataMapper;\n }", "title": "" }, { "docid": "17decb71bb268db799652b829fc66616", "score": "0.58192813", "text": "public function getMapper()\n\t{\n\t\treturn parent::getMapper('Basico_Model_FormularioAssocclElementoAssocclIncludeMapper');\n\t}", "title": "" }, { "docid": "ef45275fefa169d4d3c9c797cc6bb380", "score": "0.5806812", "text": "public function getConfiguration()\n {\n return $this->config;\n }", "title": "" }, { "docid": "26648a604e096133e5c7f9d4c9cb0f5c", "score": "0.5806316", "text": "public function getTodoMapper()\n {\n if (null === $this->todoMapper) {\n $sm = $this->getServiceLocator();\n $this->todoMapper = $sm->get('Todo\\Model\\TodoMapper');\n }\n return $this->todoMapper;\n }", "title": "" }, { "docid": "193617d96a294332d67db6f777c8051e", "score": "0.5782093", "text": "public function getConfigurationHandler(): ConfigurationManager\n {\n return $this->config;\n }", "title": "" }, { "docid": "65e90509e8189bcb0d86fd36e82b6240", "score": "0.577743", "text": "public function getMapper()\r\n {\r\n if (null === $this->_mapper) {\r\n $this->setMapper(new Petolio_Model_PoAttributeGroupEntitiesMapper());\r\n }\r\n return $this->_mapper;\r\n }", "title": "" }, { "docid": "df8cf5f783ac2b60f39142f7024f3eae", "score": "0.5766645", "text": "public function getLayoutZoneMapper()\n {\n if (null === $this->layoutZoneMapper) {\n $this->layoutZoneMapper = $this->getServiceManager()->get('playgroundcms_layoutzone_mapper');\n }\n\n return $this->layoutZoneMapper;\n }", "title": "" }, { "docid": "244031bf752bb6e3f210fd2fb3924ef0", "score": "0.5744288", "text": "public function getConfiguration() \n {\n return $this->config;\n }", "title": "" }, { "docid": "42c6e2516e403de611e96db4f99e36eb", "score": "0.57257473", "text": "private function getMap()\n\t{\n\t\treturn $this->configuration->Get($this->parentKey, []);\n\t}", "title": "" }, { "docid": "7043c973639ce885a69fa4fa66e2a63c", "score": "0.56881475", "text": "public function getConfigurator(){\n return $this->_config;\n }", "title": "" }, { "docid": "0a7c457d45df8ceafe0b8349a59deb37", "score": "0.5678722", "text": "public function getUserMapper()\n {\n if (!isset($this->_storage['userMapper'])) {\n $this->_storage['userMapper'] = new Default_Model_Mapper_UserCache(\n new Default_Model_Mapper_User(),\n $this->_config['mapper']['cache']\n );\n }\n\n return $this->_storage['userMapper'];\n }", "title": "" }, { "docid": "3d59cd48ed7c69cc708b766a79ee0762", "score": "0.5671643", "text": "public function getConfigConnectorConfig()\n {\n return $this->config_connector_config;\n }", "title": "" }, { "docid": "f967e90a0eb09063fbf52a678adb5b06", "score": "0.56704265", "text": "public function getConfig()\n {\n return $this->event->getConfigService()->getMainConfig();\n }", "title": "" }, { "docid": "93bff9dc81730705ad863d7e787cde47", "score": "0.5648484", "text": "public function getMapper(){ \n $mapper = new Monitor_Model_LogServerRequest_Mapper();\n return $mapper;\n }", "title": "" }, { "docid": "3ff8bbe3e6225b3a93b35fd4e52dd5d4", "score": "0.5644966", "text": "public function getConfiguration()\r\n\t{\r\n\t\treturn $this->registerers;\r\n\t}", "title": "" }, { "docid": "c219179d86aa5566df6825d3506002c9", "score": "0.5609505", "text": "public function getConfiguration()\n {\n return $this->configuration;\n }", "title": "" }, { "docid": "c219179d86aa5566df6825d3506002c9", "score": "0.5609505", "text": "public function getConfiguration()\n {\n return $this->configuration;\n }", "title": "" }, { "docid": "c219179d86aa5566df6825d3506002c9", "score": "0.5609505", "text": "public function getConfiguration()\n {\n return $this->configuration;\n }", "title": "" }, { "docid": "c219179d86aa5566df6825d3506002c9", "score": "0.5609505", "text": "public function getConfiguration()\n {\n return $this->configuration;\n }", "title": "" }, { "docid": "c219179d86aa5566df6825d3506002c9", "score": "0.5609505", "text": "public function getConfiguration()\n {\n return $this->configuration;\n }", "title": "" }, { "docid": "c219179d86aa5566df6825d3506002c9", "score": "0.5609505", "text": "public function getConfiguration()\n {\n return $this->configuration;\n }", "title": "" }, { "docid": "c219179d86aa5566df6825d3506002c9", "score": "0.5609505", "text": "public function getConfiguration()\n {\n return $this->configuration;\n }", "title": "" }, { "docid": "f0ad84ecc3870bc369d7ae76a5548792", "score": "0.5607533", "text": "public function getConfigMap();", "title": "" }, { "docid": "092da617c5441e0e6e7ecdb5b088dad3", "score": "0.55952287", "text": "public function getConfiguration()\n\t{\n\t\treturn $this->configuration;\n\t}", "title": "" }, { "docid": "34369a8be13d83d76497753b8e81b95d", "score": "0.5560208", "text": "public function getConfiguration() {\r\n return $this->configuration;\r\n }", "title": "" }, { "docid": "a3d4c26a4912638ab226c59078018137", "score": "0.55266815", "text": "public function getMapper()\n {\n if(!isset($this->entityMapper)) {\n $entityUniqName = $this->getEntityUniqueName();\n if(!isset(modulePartsStorage::$entityMappers[$entityUniqName])) {\n /** @var mapperBase $mapperClass */\n $mapperClass = \"{$this->getModule()->getModuleNamespace()}\\\\mappers\\\\\" . $this->getEntityName() . 'Mapper';\n if (!class_exists($mapperClass)) {\n throw new mapperException(\"Unable to find mapper for entity `{$this->getEntityName()}`\");\n }\n\n modulePartsStorage::$entityMappers[$entityUniqName] = $mapperClass::getInstance();\n }\n\n $this->entityMapper = modulePartsStorage::$entityMappers[$entityUniqName];\n }\n\n return $this->entityMapper;\n }", "title": "" }, { "docid": "445d61c2ea75fc977e081e5cf25166b2", "score": "0.5522754", "text": "public function getParentEntityMapper()\n {\n return $this->getParentRepository()\n ->getEntityMapper();\n }", "title": "" }, { "docid": "1b724902dfe814ce97d550a9bd1446a3", "score": "0.5519964", "text": "public function getAttributeMapPreparationMapperConfig(): MapperConfigTransfer;", "title": "" }, { "docid": "a35278e0a0fc236f129239805a9915be", "score": "0.55155224", "text": "public function getBlockLayoutZoneMapper()\n {\n if (null === $this->blockLayoutZoneMapper) {\n $this->blockLayoutZoneMapper = $this->getServiceManager()->get('playgroundcms_blocklayoutzone_mapper');\n }\n\n return $this->blockLayoutZoneMapper;\n }", "title": "" }, { "docid": "b96c91bc9c03a90846edb13a0eb25370", "score": "0.55091876", "text": "public function getMapper()\n {\n if (null === $this->_mapper) {\n $this->setMapper(new Maerdo_Model_Mappers_Pagejavascript());\n }\n return $this->_mapper;\n }", "title": "" }, { "docid": "81291201b12ffdd3598b9c90e840d4b7", "score": "0.5508633", "text": "private function _getMapper()\n {\n if (is_null($this->_mapper)) {\n $this->_mapper = new ContentMapper(\n $this->db(),\n $this->app()->getTmpDir().DS.\"cms\"\n );\n }\n\n return $this->_mapper;\n }", "title": "" }, { "docid": "6087af5c915c4a83827cbcb181195d0a", "score": "0.55045563", "text": "public static function config()\n {\n return Config::forClass(get_called_class());\n }", "title": "" }, { "docid": "7e15175c6c65114bf57a92c021accfe0", "score": "0.5485195", "text": "public function getConfig()\n {\n $reg = MQF_Registry::instance();\n\n if (!$reg->config) {\n $reg->initConfig();\n }\n\n return $reg->config;\n }", "title": "" }, { "docid": "62e8eb0994adf110661130beb5ff745e", "score": "0.5477597", "text": "public function getMapper()\n\t{\n\t\treturn parent::getMapper('Basico_Model_FormularioElementoAssocclDecoratorMapper');\n\t}", "title": "" }, { "docid": "3b7c381694edfaf3f9e8c7197c90f38c", "score": "0.5445002", "text": "public function map() {\n return $this->map;\n }", "title": "" }, { "docid": "5778663c0cddff7ab58b1306b5eff48e", "score": "0.5443854", "text": "public function getMapping()\n {\n return $this->client->getIndexMappings($this);\n }", "title": "" }, { "docid": "29577411153040a1844db6824a499a45", "score": "0.54372287", "text": "public function getConfig()\r\n {\r\n return $this->config;\r\n }", "title": "" }, { "docid": "e725274bc3821a6fbd32561f36506762", "score": "0.54341346", "text": "public function getDomainMapping()\n {\n return $this->domain_mapping;\n }", "title": "" }, { "docid": "cbf23f4667400e0b9b1d686ee37f9b7e", "score": "0.5431611", "text": "public function getGlobalConfiguration()\n {\n return $this->globalConfig;\n }", "title": "" }, { "docid": "a65212530da6dd3c29c15c70a2e85502", "score": "0.5410293", "text": "public function getConfig() {\n\t\treturn $this->config;\n\t}", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.5408479", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.5408479", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.5408479", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.5408479", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.5408479", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.5408479", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.5408479", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.5408479", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.5408479", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.5408479", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.5408479", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.5408479", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.5408479", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.5408479", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.5408479", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "dde299d64ea1f26835f690101306c8d2", "score": "0.5402382", "text": "protected function getConfiguration() {\n return $this->configuration;\n }", "title": "" }, { "docid": "551aa08d8b21b0480329f9e70a9bc921", "score": "0.5399561", "text": "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "title": "" }, { "docid": "551aa08d8b21b0480329f9e70a9bc921", "score": "0.5399561", "text": "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "title": "" }, { "docid": "551aa08d8b21b0480329f9e70a9bc921", "score": "0.5399561", "text": "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "title": "" }, { "docid": "551aa08d8b21b0480329f9e70a9bc921", "score": "0.5399561", "text": "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "title": "" }, { "docid": "3c2ae6eba10fcc01d6c5c718d6aa5207", "score": "0.539836", "text": "public function config()\n {\n return Config::get('meta::config');\n }", "title": "" }, { "docid": "a54e7025ffeaf01ac2b47982b4ee55a8", "score": "0.5392865", "text": "public function getConfig()\n {\n return $this->di['config'];\n }", "title": "" }, { "docid": "b73999c1e5722531d060d58575e1edf2", "score": "0.53864324", "text": "public function getOrderMapper()\n {\n return $this->orderMapper;\n }", "title": "" }, { "docid": "9e295a1bc46579a4844f211c04005dc6", "score": "0.53812295", "text": "public function cfg ( ) { return $this->cfg; }", "title": "" }, { "docid": "664bc0fc4175f40caf9da7fe05fd65bf", "score": "0.5380692", "text": "protected function getMapper($entity)\r\n\t{\r\n\t\treturn Manager::mapper($entity);\r\n\t}", "title": "" }, { "docid": "b757efb79484ebf5d1fe6b51467cb4cb", "score": "0.53707993", "text": "public function getConfig() {\n return $this->config;\n }", "title": "" }, { "docid": "64b8a02e2310e27e4b76acc7fd79c8c0", "score": "0.53655386", "text": "public function getMap()\n {\n return $this->map;\n }", "title": "" }, { "docid": "b7ee551ce6461d8aa269b37261e14697", "score": "0.5361982", "text": "private function getCustomerAddressMapper()\n {\n if ($this->customerAddressMapper === null) {\n $this->customerAddressMapper = ObjectManager::getInstance()->get('Magento\\Customer\\Model\\Address\\Mapper');\n }\n return $this->customerAddressMapper;\n }", "title": "" }, { "docid": "3dad06a3004de6e7a8a74a3a918246fd", "score": "0.5354802", "text": "public function getConfig()\n {\n return $this->_config;\n }", "title": "" }, { "docid": "4d523a0218f8d51e269b88b5c713e703", "score": "0.53504413", "text": "public function getMap()\n\t{\n\t\treturn $this->map;\n\t}", "title": "" }, { "docid": "1813c9a7dd0a9d1d88227f34e46fe06d", "score": "0.5329871", "text": "public function getConfig()\n\t{\n\t\treturn $this->getRootComponent()->getConfig();\n\t}", "title": "" } ]
0caf031f92d1f1922cbb4edcfe30d6f5
Implements THEME_menu_link__menu_block__$hook_menu_name(). Renders the main menu.
[ { "docid": "2ad04b6c064daf294add13666dfc43ce", "score": "0.6454204", "text": "function balk_menu_link__menu_block__main_menu(&$variables) {\n $element = $variables['element'];\n $sub_menu = '';\n $description = '';\n $split_tree = '';\n\n // Add the link classes to the parent <li> element too.\n if (!empty($element['#attributes']['class']) && !empty($element['#original_link']['localized_options']['attributes']['class'])) {\n $element['#attributes']['class'] = array_merge($element['#attributes']['class'], (array) $element['#original_link']['localized_options']['attributes']['class']);\n }\n\n // Show menu item description.\n if (isset($element['#bid']) && ($element['#bid']['delta'] == '7') && !empty($element['#localized_options']['attributes']['title'])) {\n $description = '<span class=\"desc\">' . $element['#localized_options']['attributes']['title'] . '</span>';\n }\n \n // Split the menu tree when the 'split' class is encountered.\n if (isset($element['#attributes']['class']) && in_array('split', $element['#attributes']['class'])) {\n $split_tree = \"</ul>\\n<ul class=\\\"menu\\\">\";\n }\n \n // Add jump menus for the main links.\n $jump_menus = NULL;\n if (in_array('l1', $element['#attributes']['class'])) {\n $jump_menu = balk_get_jump_menus($element);\n if (!empty($jump_menu)) {\n $jump_menus = '<div class=\"main-menu-jump-menus\">' . implode(\"\\n\", $jump_menu) . '</div>';\n }\n }\n\n if ($element['#below']) {\n $sub_menu = '<div class=\"submenu\">' . drupal_render($element['#below']) . $jump_menus . '</div>';\n }\n $output = l($element['#title'], $element['#href'], $element['#localized_options']);\n\n return '<li' . drupal_attributes($element['#attributes']) . '>' . $output . $description . $sub_menu . \"</li>\\n\" . $split_tree;\n}", "title": "" } ]
[ { "docid": "a84f8128d5ce57f8e79e7931b13e5c0c", "score": "0.74518", "text": "public function getMenuName();", "title": "" }, { "docid": "20067c0982b5497fa34cd7d081555ee5", "score": "0.7341995", "text": "public function getName()\n {\n return self::MENU_NAME;\n }", "title": "" }, { "docid": "c4f6d72a15d7a20e7ac4855da7080a30", "score": "0.7159488", "text": "public function getMenuName() {\n \treturn $this->menuName;\n }", "title": "" }, { "docid": "aea0ecdc875cdf850e4f81e5c82b82e0", "score": "0.70855665", "text": "public function setMenuName($menu_name);", "title": "" }, { "docid": "b9664b22249f5f0e1a2be00c24b9a01e", "score": "0.6562197", "text": "protected function menu()\n\t{\n\t\t$menu = array(\n\t\t\t'Homepage' => 'dashboard',\n\t\t\t'Roosters' => 'schedule',\n\t\t\t'Leerlingen' => 'students',\n\t\t\t'Agenda' => 'calendar',\n\t\t\t'Resultaten' => 'grades',\n\t\t\t'Bestanden' => 'files',\n\t\t\t'Portfolio' => 'portfolio',\n\t\t\t'Webmail' => 'mail'\n\t\t);\n\n\t\t// Create menu HTML code\n\t\t$menu_content = '';\n\t\tforeach ($menu as $page => $link)\n\t\t{\n\t\t\t$parameters = '';\n\t\t\tif($this->type == $link)\n\t\t\t{\n\t\t\t\t$parameters = 'class=\"active\" ';\n\t\t\t}\n\t\t\t\n\t\t\t$menu_content .= '<li><a '.$parameters.'href=\"?type='.$link.'\">'.$page.'</a></li>'.\"\\n\";\n\t\t}\n\n\t\treturn '<ul>'.$menu_content.'</ul>';\t\n\t}", "title": "" }, { "docid": "cc2f5f2abd0e8b3655ca592a95d96bac", "score": "0.6529894", "text": "function wks_get_menu_name( $url2trace ){\n\t$full_menu = wks_return_manu_array( );\n\tforeach( $full_menu as $single_menu ){\t\t\n\t\tif( $url2trace == get_option('home').'/wp-admin/'.$single_menu['url'] ){\n\t\t\t$out_name = $single_menu['parent_name'].' - '.$single_menu['name'];\n\t\t}\n\t}\n\treturn $out_name;\n}", "title": "" }, { "docid": "0c5cac1c1c82f5e480094116019ef0b3", "score": "0.6517759", "text": "function register_main_menu() {\n register_nav_menu('main-menu',__( 'Main Menu' ));\n }", "title": "" }, { "docid": "8ea73966671eac464b192ab0eb396f41", "score": "0.6515848", "text": "function mytheme_menu()\n {\n\t\tregister_nav_menus(\n\t\t\tarray(\n\t\t\t\t'menu-1' => esc_html__( 'Primary', 'mytheme' ),\n\t\t\t)\n\t\t);\n\n}", "title": "" }, { "docid": "9c553187314973840c156e9aced03102", "score": "0.650967", "text": "function render_main_menu(){\n\t\t?>\n\t\t\t<div class=\"wrap upfront_admin\">\n\t\t\t\t<h1><?php _e(\"General Settings\", Upfront::TextDomain); ?></h1>\n\t\t\t</div>\n\t\t<?php\n\t}", "title": "" }, { "docid": "2c3e1f1695c3f6efd90cf882881a6f25", "score": "0.6454046", "text": "function LoadMenu($name){}", "title": "" }, { "docid": "4e50cde2d045607ddaf2e5c8fc51acdf", "score": "0.64470047", "text": "public function menu()\n {\n $menu = App::get($this->data, 'menu', []);\n\n if (!$menu) return '';\n\n foreach ($menu as $ident => &$item) {\n $route = trim($ident, '/');\n\n if ($this->route() == $route) {\n $item['active'] = true;\n }\n }\n\n $menu = App::view (\n ['menu.php'],\n ['menu' => $menu]\n );\n\n return apply_filters ('cn_page_menu_html', $menu, $this);\n }", "title": "" }, { "docid": "b864cf2f44f5c78ad842b4841ac775c7", "score": "0.6433105", "text": "function template_menu()\n{\n\tglobal $context, $settings, $options, $scripturl, $txt;\n\n\techo '\n\t\t<div class=\"main_menu_table\">\n\t\t\t<ul id=\"the_main_menu\">';\n\t\t\t/*##########################################*\n\t\t\t *\t\t\t\t\t\t\t\t\t\t\t*\n\t\t\t *\t\t\t\tCustom Menu 1\t\t\t\t*\n\t\t\t *\t\t\t\t\t\t\t\t\t\t\t*\n\t\t\t *##########################################*/\n\t\t\tif(!empty($settings['main_menu_id_1']) && !empty($settings['main_menu_url_1'])) {\n\t\t\t\techo '\n\t\t\t\t<li><a href=\"', $settings['main_menu_url_1'] , '\" target=\"_blank\">', $settings['main_menu_id_1'] , '</a>';\n\t\t\t\tif((!empty($settings['main_menu_id_1.1']) && !empty($settings['main_menu_url_1.1'])) || (!empty($settings['main_menu_id_1.2']) && !empty($settings['main_menu_url_1.2'])) || (!empty($settings['main_menu_id_1.3']) && !empty($settings['main_menu_url_1.3']))) {\n\t\t\t\techo '\n\t\t\t\t\t<ul>';\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\t/********** Menu 1.1 - Dropdown Level 1 Beginning **********/\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\tif(!empty($settings['main_menu_id_1.1']) && !empty($settings['main_menu_url_1.1'])) {\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.1'] , '\" target=\"_blank\">', $settings['main_menu_id_1.1'] , '</a>';\n\t\t\t\t\t\t /***** Menu 1.1.1 - Dropdown Level 2 Beginning *****\n\t\t\t\t\t\t *==================================================*/\n\t\t\t\t\t\tif((!empty($settings['main_menu_id_1.1.1']) && !empty($settings['main_menu_url_1.1.1'])) || (!empty($settings['main_menu_id_1.1.2']) && !empty($settings['main_menu_url_1.1.2'])) || (!empty($settings['main_menu_id_1.1.3']) && !empty($settings['main_menu_url_1.1.3']))) {\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.1.1']) && !empty($settings['main_menu_url_1.1.1'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.1.1'] , '\" target=\"_blank\">', $settings['main_menu_id_1.1.1'] , '</a>';\n\t\t\t\t\t\t\t\t// Menu 1.1.1 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_1.1.1.1']) && !empty($settings['main_menu_url_1.1.1.1'])) || (!empty($settings['main_menu_id_1.1.1.2']) && !empty($settings['main_menu_url_1.1.1.2'])) || (!empty($settings['main_menu_id_1.1.1.3']) && !empty($settings['main_menu_url_1.1.1.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.1.1.1']) && !empty($settings['main_menu_url_1.1.1.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.1.1.1'] , '\" target=\"_blank\">', $settings['main_menu_id_1.1.1.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.1.1.2']) && !empty($settings['main_menu_url_1.1.1.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.1.1.2'] , '\" target=\"_blank\">', $settings['main_menu_id_1.1.1.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.1.1.3']) && !empty($settings['main_menu_url_1.1.1.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.1.1.3'] , '\" target=\"_blank\">', $settings['main_menu_id_1.1.1.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Menu 1.1.1 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 1.1.2 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.1.2']) && !empty($settings['main_menu_url_1.1.2'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.1.2'] , '\" target=\"_blank\">', $settings['main_menu_id_1.1.2'] , '</a>';\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_1.1.2.1']) && !empty($settings['main_menu_url_1.1.2.1'])) || (!empty($settings['main_menu_id_1.1.2.2']) && !empty($settings['main_menu_url_1.1.2.2'])) || (!empty($settings['main_menu_id_1.1.2.3']) && !empty($settings['main_menu_url_1.1.2.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.1.2.1']) && !empty($settings['main_menu_url_1.1.2.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.1.2.1'] , '\" target=\"_blank\">', $settings['main_menu_id_1.1.2.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.1.2.2']) && !empty($settings['main_menu_url_1.1.2.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.1.2.2'] , '\" target=\"_blank\">', $settings['main_menu_id_1.1.2.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.1.2.3']) && !empty($settings['main_menu_url_1.1.2.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.1.2.3'] , '\" target=\"_blank\">', $settings['main_menu_id_1.1.2.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 1.1.2 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 1.1.3 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.1.3']) && !empty($settings['main_menu_url_1.1.3'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.1.3'] , '\" target=\"_blank\">', $settings['main_menu_id_1.1.3'] , '</a>';\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_1.1.3.1']) && !empty($settings['main_menu_url_1.1.3.1'])) || (!empty($settings['main_menu_id_1.1.3.2']) && !empty($settings['main_menu_url_1.1.3.2'])) || (!empty($settings['main_menu_id_1.1.3.3']) && !empty($settings['main_menu_url_1.1.3.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.1.3.1']) && !empty($settings['main_menu_url_1.1.3.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.1.3.1'] , '\" target=\"_blank\">', $settings['main_menu_id_1.1.3.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.1.3.2']) && !empty($settings['main_menu_url_1.1.3.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.1.3.2'] , '\" target=\"_blank\">', $settings['main_menu_id_1.1.3.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.1.3.3']) && !empty($settings['main_menu_url_1.1.3.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.1.3.3'] , '\" target=\"_blank\">', $settings['main_menu_id_1.1.3.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 1.1.3 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/***** Menu 1.1.1 - Dropdown Level 2 End *****\n\t\t\t\t\t\t *===========================================*/\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t</li>';\n\t\t\t\t\t}\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\t/********** Menu 1.1 - Dropdown Level 1 End*****************/\n\t\t\t\t\t/***********************************************************/\n\n\n\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\t/********** Menu 1.2 - Dropdown Level 1 Beginning **********/\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\tif(!empty($settings['main_menu_id_1.2']) && !empty($settings['main_menu_url_1.2'])) {\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.2'] , '\" target=\"_blank\">', $settings['main_menu_id_1.2'] , '</a>';\n\t\t\t\t\t\t /***** Menu 1.2.1 - Dropdown Level 2 Beginning *****\n\t\t\t\t\t\t *==================================================*/\n\t\t\t\t\t\tif((!empty($settings['main_menu_id_1.2.1']) && !empty($settings['main_menu_url_1.2.1'])) || (!empty($settings['main_menu_id_1.2.2']) && !empty($settings['main_menu_url_1.2.2'])) || (!empty($settings['main_menu_id_1.2.3']) && !empty($settings['main_menu_url_1.2.3']))) {\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.2.1']) && !empty($settings['main_menu_url_1.2.1'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.2.1'] , '\" target=\"_blank\">', $settings['main_menu_id_1.2.1'] , '</a>';\n\t\t\t\t\t\t\t\t// Menu 1.2.1 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_1.2.1.1']) && !empty($settings['main_menu_url_1.2.1.1'])) || (!empty($settings['main_menu_id_1.2.1.2']) && !empty($settings['main_menu_url_1.2.1.2'])) || (!empty($settings['main_menu_id_1.2.1.3']) && !empty($settings['main_menu_url_1.2.1.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.2.1.1']) && !empty($settings['main_menu_url_1.2.1.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.2.1.1'] , '\" target=\"_blank\">', $settings['main_menu_id_1.2.1.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.2.1.2']) && !empty($settings['main_menu_url_1.2.1.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.2.1.2'] , '\" target=\"_blank\">', $settings['main_menu_id_1.2.1.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.2.1.3']) && !empty($settings['main_menu_url_1.2.1.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.2.1.3'] , '\" target=\"_blank\">', $settings['main_menu_id_1.2.1.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Menu 1.2.1 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 1.2.2 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.2.2']) && !empty($settings['main_menu_url_1.2.2'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.2.2'] , '\" target=\"_blank\">', $settings['main_menu_id_1.2.2'] , '</a>';\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_1.2.2.1']) && !empty($settings['main_menu_url_1.2.2.1'])) || (!empty($settings['main_menu_id_1.2.2.2']) && !empty($settings['main_menu_url_1.2.2.2'])) || (!empty($settings['main_menu_id_1.2.2.3']) && !empty($settings['main_menu_url_1.2.2.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.2.2.1']) && !empty($settings['main_menu_url_1.2.2.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.2.2.1'] , '\" target=\"_blank\">', $settings['main_menu_id_1.2.2.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.2.2.2']) && !empty($settings['main_menu_url_1.2.2.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.2.2.2'] , '\" target=\"_blank\">', $settings['main_menu_id_1.2.2.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.2.2.3']) && !empty($settings['main_menu_url_1.2.2.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.2.2.3'] , '\" target=\"_blank\">', $settings['main_menu_id_1.2.2.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 1.2.2 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 1.2.3 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.2.3']) && !empty($settings['main_menu_url_1.2.3'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.2.3'] , '\" target=\"_blank\">', $settings['main_menu_id_1.2.3'] , '</a>';\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_1.2.3.1']) && !empty($settings['main_menu_url_1.2.3.1'])) || (!empty($settings['main_menu_id_1.2.3.2']) && !empty($settings['main_menu_url_1.2.3.2'])) || (!empty($settings['main_menu_id_1.2.3.3']) && !empty($settings['main_menu_url_1.2.3.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.2.3.1']) && !empty($settings['main_menu_url_1.2.3.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.2.3.1'] , '\" target=\"_blank\">', $settings['main_menu_id_1.2.3.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.2.3.2']) && !empty($settings['main_menu_url_1.2.3.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.2.3.2'] , '\" target=\"_blank\">', $settings['main_menu_id_1.2.3.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.2.3.3']) && !empty($settings['main_menu_url_1.2.3.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.2.3.3'] , '\" target=\"_blank\">', $settings['main_menu_id_1.2.3.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 1.2.3 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/***** Menu 1.2.1 - Dropdown Level 2 End *****\n\t\t\t\t\t\t *===========================================*/\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t</li>';\n\t\t\t\t\t}\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\t/********** Menu 1.2 - Dropdown Level 1 End*****************/\n\t\t\t\t\t/***********************************************************/\n\n\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\t/********** Menu 1.2 - Dropdown Level 1 Beginning **********/\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\tif(!empty($settings['main_menu_id_1.3']) && !empty($settings['main_menu_url_1.3'])) {\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.3'] , '\" target=\"_blank\">', $settings['main_menu_id_1.3'] , '</a>';\n\t\t\t\t\t\t /***** Menu 1.2.1 - Dropdown Level 2 Beginning *****\n\t\t\t\t\t\t *==================================================*/\n\t\t\t\t\t\tif((!empty($settings['main_menu_id_1.3.1']) && !empty($settings['main_menu_url_1.3.1'])) || (!empty($settings['main_menu_id_1.3.2']) && !empty($settings['main_menu_url_1.3.2'])) || (!empty($settings['main_menu_id_1.3.3']) && !empty($settings['main_menu_url_1.3.3']))) {\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.3.1']) && !empty($settings['main_menu_url_1.3.1'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.3.1'] , '\" target=\"_blank\">', $settings['main_menu_id_1.3.1'] , '</a>';\n\t\t\t\t\t\t\t\t// Menu 1.2.1 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_1.3.1.1']) && !empty($settings['main_menu_url_1.3.1.1'])) || (!empty($settings['main_menu_id_1.3.1.2']) && !empty($settings['main_menu_url_1.3.1.2'])) || (!empty($settings['main_menu_id_1.3.1.3']) && !empty($settings['main_menu_url_1.3.1.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.3.1.1']) && !empty($settings['main_menu_url_1.3.1.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.3.1.1'] , '\" target=\"_blank\">', $settings['main_menu_id_1.3.1.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.3.1.2']) && !empty($settings['main_menu_url_1.3.1.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.3.1.2'] , '\" target=\"_blank\">', $settings['main_menu_id_1.3.1.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.3.1.3']) && !empty($settings['main_menu_url_1.3.1.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.3.1.3'] , '\" target=\"_blank\">', $settings['main_menu_id_1.3.1.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Menu 1.2.1 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 1.2.2 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.3.2']) && !empty($settings['main_menu_url_1.3.2'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.3.2'] , '\" target=\"_blank\">', $settings['main_menu_id_1.3.2'] , '</a>';\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_1.3.2.1']) && !empty($settings['main_menu_url_1.3.2.1'])) || (!empty($settings['main_menu_id_1.3.2.2']) && !empty($settings['main_menu_url_1.3.2.2'])) || (!empty($settings['main_menu_id_1.3.2.3']) && !empty($settings['main_menu_url_1.3.2.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.3.2.1']) && !empty($settings['main_menu_url_1.3.2.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.3.2.1'] , '\" target=\"_blank\">', $settings['main_menu_id_1.3.2.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.3.2.2']) && !empty($settings['main_menu_url_1.3.2.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.3.2.2'] , '\" target=\"_blank\">', $settings['main_menu_id_1.3.2.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.3.2.3']) && !empty($settings['main_menu_url_1.3.2.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.3.2.3'] , '\" target=\"_blank\">', $settings['main_menu_id_1.3.2.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 1.2.2 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 1.2.3 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.3.3']) && !empty($settings['main_menu_url_1.3.3'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.3.3'] , '\" target=\"_blank\">', $settings['main_menu_id_1.3.3'] , '</a>';\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_1.3.3.1']) && !empty($settings['main_menu_url_1.3.3.1'])) || (!empty($settings['main_menu_id_1.3.3.2']) && !empty($settings['main_menu_url_1.3.3.2'])) || (!empty($settings['main_menu_id_1.3.3.3']) && !empty($settings['main_menu_url_1.3.3.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.3.3.1']) && !empty($settings['main_menu_url_1.3.3.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.3.3.1'] , '\" target=\"_blank\">', $settings['main_menu_id_1.3.3.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.3.3.2']) && !empty($settings['main_menu_url_1.3.3.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.3.3.2'] , '\" target=\"_blank\">', $settings['main_menu_id_1.3.3.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_1.3.3.3']) && !empty($settings['main_menu_url_1.3.3.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_1.3.3.3'] , '\" target=\"_blank\">', $settings['main_menu_id_1.3.3.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 1.2.3 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/***** Menu 1.2.1 - Dropdown Level 2 End *****\n\t\t\t\t\t\t *===========================================*/\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t</li>';\n\t\t\t\t\t}\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\t/********** Menu 1.2 - Dropdown Level 1 End*****************/\n\t\t\t\t\t/***********************************************************/\n\t\t\t\techo '\n\t\t\t\t\t</ul>';\n\t\t\t\t}\n\t\t\techo '\n\t\t\t\t</li>';\n\t\t\t}\n\n\n\t\t\t/*##########################################*\n\t\t\t *\t\t\t\t\t\t\t\t\t\t\t*\n\t\t\t *\t\t\t\tCustom Menu 2\t\t\t\t*\n\t\t\t *\t\t\t\t\t\t\t\t\t\t\t*\n\t\t\t *##########################################*/\n\t\t\tif(!empty($settings['main_menu_id_2']) && !empty($settings['main_menu_url_2'])) {\n\t\t\t\techo '\n\t\t\t\t<li><a href=\"', $settings['main_menu_url_2'] , '\" target=\"_blank\">', $settings['main_menu_id_2'] , '</a>';\n\t\t\t\tif((!empty($settings['main_menu_id_2.1']) && !empty($settings['main_menu_url_2.1'])) || (!empty($settings['main_menu_id_2.2']) && !empty($settings['main_menu_url_2.2'])) || (!empty($settings['main_menu_id_2.3']) && !empty($settings['main_menu_url_2.3']))) {\n\t\t\t\techo '\n\t\t\t\t\t<ul>';\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\t/********** Menu 2.1 - Dropdown Level 1 Beginning **********/\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\tif(!empty($settings['main_menu_id_2.1']) && !empty($settings['main_menu_url_2.1'])) {\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.1'] , '\" target=\"_blank\">', $settings['main_menu_id_2.1'] , '</a>';\n\t\t\t\t\t\t /***** Menu 2.1.1 - Dropdown Level 2 Beginning *****\n\t\t\t\t\t\t *==================================================*/\n\t\t\t\t\t\tif((!empty($settings['main_menu_id_2.1.1']) && !empty($settings['main_menu_url_2.1.1'])) || (!empty($settings['main_menu_id_2.1.2']) && !empty($settings['main_menu_url_2.1.2'])) || (!empty($settings['main_menu_id_2.1.3']) && !empty($settings['main_menu_url_2.1.3']))) {\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.1.1']) && !empty($settings['main_menu_url_2.1.1'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.1.1'] , '\" target=\"_blank\">', $settings['main_menu_id_2.1.1'] , '</a>';\n\t\t\t\t\t\t\t\t// Menu 2.1.1 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_2.1.1.1']) && !empty($settings['main_menu_url_2.1.1.1'])) || (!empty($settings['main_menu_id_2.1.1.2']) && !empty($settings['main_menu_url_2.1.1.2'])) || (!empty($settings['main_menu_id_2.1.1.3']) && !empty($settings['main_menu_url_2.1.1.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.1.1.1']) && !empty($settings['main_menu_url_2.1.1.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.1.1.1'] , '\" target=\"_blank\">', $settings['main_menu_id_2.1.1.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.1.1.2']) && !empty($settings['main_menu_url_2.1.1.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.1.1.2'] , '\" target=\"_blank\">', $settings['main_menu_id_2.1.1.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.1.1.3']) && !empty($settings['main_menu_url_2.1.1.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.1.1.3'] , '\" target=\"_blank\">', $settings['main_menu_id_2.1.1.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Menu 2.1.1 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 2.1.2 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.1.2']) && !empty($settings['main_menu_url_2.1.2'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.1.2'] , '\" target=\"_blank\">', $settings['main_menu_id_2.1.2'] , '</a>';\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_2.1.2.1']) && !empty($settings['main_menu_url_2.1.2.1'])) || (!empty($settings['main_menu_id_2.1.2.2']) && !empty($settings['main_menu_url_2.1.2.2'])) || (!empty($settings['main_menu_id_2.1.2.3']) && !empty($settings['main_menu_url_2.1.2.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.1.2.1']) && !empty($settings['main_menu_url_2.1.2.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.1.2.1'] , '\" target=\"_blank\">', $settings['main_menu_id_2.1.2.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.1.2.2']) && !empty($settings['main_menu_url_2.1.2.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.1.2.2'] , '\" target=\"_blank\">', $settings['main_menu_id_2.1.2.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.1.2.3']) && !empty($settings['main_menu_url_2.1.2.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.1.2.3'] , '\" target=\"_blank\">', $settings['main_menu_id_2.1.2.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 2.1.2 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 2.1.3 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.1.3']) && !empty($settings['main_menu_url_2.1.3'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.1.3'] , '\" target=\"_blank\">', $settings['main_menu_id_2.1.3'] , '</a>';\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_2.1.3.1']) && !empty($settings['main_menu_url_2.1.3.1'])) || (!empty($settings['main_menu_id_2.1.3.2']) && !empty($settings['main_menu_url_2.1.3.2'])) || (!empty($settings['main_menu_id_2.1.3.3']) && !empty($settings['main_menu_url_2.1.3.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.1.3.1']) && !empty($settings['main_menu_url_2.1.3.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.1.3.1'] , '\" target=\"_blank\">', $settings['main_menu_id_2.1.3.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.1.3.2']) && !empty($settings['main_menu_url_2.1.3.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.1.3.2'] , '\" target=\"_blank\">', $settings['main_menu_id_2.1.3.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.1.3.3']) && !empty($settings['main_menu_url_2.1.3.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.1.3.3'] , '\" target=\"_blank\">', $settings['main_menu_id_2.1.3.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 2.1.3 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/***** Menu 2.1.1 - Dropdown Level 2 End *****\n\t\t\t\t\t\t *===========================================*/\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t</li>';\n\t\t\t\t\t}\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\t/********** Menu 2.1 - Dropdown Level 1 End*****************/\n\t\t\t\t\t/***********************************************************/\n\n\n\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\t/********** Menu 2.2 - Dropdown Level 1 Beginning **********/\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\tif(!empty($settings['main_menu_id_2.2']) && !empty($settings['main_menu_url_2.2'])) {\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.2'] , '\" target=\"_blank\">', $settings['main_menu_id_2.2'] , '</a>';\n\t\t\t\t\t\t /***** Menu 2.2.1 - Dropdown Level 2 Beginning *****\n\t\t\t\t\t\t *==================================================*/\n\t\t\t\t\t\tif((!empty($settings['main_menu_id_2.2.1']) && !empty($settings['main_menu_url_2.2.1'])) || (!empty($settings['main_menu_id_2.2.2']) && !empty($settings['main_menu_url_2.2.2'])) || (!empty($settings['main_menu_id_2.2.3']) && !empty($settings['main_menu_url_2.2.3']))) {\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.2.1']) && !empty($settings['main_menu_url_2.2.1'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.2.1'] , '\" target=\"_blank\">', $settings['main_menu_id_2.2.1'] , '</a>';\n\t\t\t\t\t\t\t\t// Menu 2.2.1 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_2.2.1.1']) && !empty($settings['main_menu_url_2.2.1.1'])) || (!empty($settings['main_menu_id_2.2.1.2']) && !empty($settings['main_menu_url_2.2.1.2'])) || (!empty($settings['main_menu_id_2.2.1.3']) && !empty($settings['main_menu_url_2.2.1.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.2.1.1']) && !empty($settings['main_menu_url_2.2.1.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.2.1.1'] , '\" target=\"_blank\">', $settings['main_menu_id_2.2.1.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.2.1.2']) && !empty($settings['main_menu_url_2.2.1.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.2.1.2'] , '\" target=\"_blank\">', $settings['main_menu_id_2.2.1.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.2.1.3']) && !empty($settings['main_menu_url_2.2.1.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.2.1.3'] , '\" target=\"_blank\">', $settings['main_menu_id_2.2.1.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Menu 2.2.1 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 2.2.2 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.2.2']) && !empty($settings['main_menu_url_2.2.2'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.2.2'] , '\" target=\"_blank\">', $settings['main_menu_id_2.2.2'] , '</a>';\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_2.2.2.1']) && !empty($settings['main_menu_url_2.2.2.1'])) || (!empty($settings['main_menu_id_2.2.2.2']) && !empty($settings['main_menu_url_2.2.2.2'])) || (!empty($settings['main_menu_id_2.2.2.3']) && !empty($settings['main_menu_url_2.2.2.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.2.2.1']) && !empty($settings['main_menu_url_2.2.2.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.2.2.1'] , '\" target=\"_blank\">', $settings['main_menu_id_2.2.2.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.2.2.2']) && !empty($settings['main_menu_url_2.2.2.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.2.2.2'] , '\" target=\"_blank\">', $settings['main_menu_id_2.2.2.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.2.2.3']) && !empty($settings['main_menu_url_2.2.2.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.2.2.3'] , '\" target=\"_blank\">', $settings['main_menu_id_2.2.2.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 2.2.2 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 2.2.3 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.2.3']) && !empty($settings['main_menu_url_2.2.3'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.2.3'] , '\" target=\"_blank\">', $settings['main_menu_id_2.2.3'] , '</a>';\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_2.2.3.1']) && !empty($settings['main_menu_url_2.2.3.1'])) || (!empty($settings['main_menu_id_2.2.3.2']) && !empty($settings['main_menu_url_2.2.3.2'])) || (!empty($settings['main_menu_id_2.2.3.3']) && !empty($settings['main_menu_url_2.2.3.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.2.3.1']) && !empty($settings['main_menu_url_2.2.3.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.2.3.1'] , '\" target=\"_blank\">', $settings['main_menu_id_2.2.3.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.2.3.2']) && !empty($settings['main_menu_url_2.2.3.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.2.3.2'] , '\" target=\"_blank\">', $settings['main_menu_id_2.2.3.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.2.3.3']) && !empty($settings['main_menu_url_2.2.3.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.2.3.3'] , '\" target=\"_blank\">', $settings['main_menu_id_2.2.3.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 2.2.3 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/***** Menu 2.2.1 - Dropdown Level 2 End *****\n\t\t\t\t\t\t *===========================================*/\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t</li>';\n\t\t\t\t\t}\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\t/********** Menu 2.2 - Dropdown Level 1 End*****************/\n\t\t\t\t\t/***********************************************************/\n\n\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\t/********** Menu 2.2 - Dropdown Level 1 Beginning **********/\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\tif(!empty($settings['main_menu_id_2.3']) && !empty($settings['main_menu_url_2.3'])) {\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.3'] , '\" target=\"_blank\">', $settings['main_menu_id_2.3'] , '</a>';\n\t\t\t\t\t\t /***** Menu 2.2.1 - Dropdown Level 2 Beginning *****\n\t\t\t\t\t\t *==================================================*/\n\t\t\t\t\t\tif((!empty($settings['main_menu_id_2.3.1']) && !empty($settings['main_menu_url_2.3.1'])) || (!empty($settings['main_menu_id_2.3.2']) && !empty($settings['main_menu_url_2.3.2'])) || (!empty($settings['main_menu_id_2.3.3']) && !empty($settings['main_menu_url_2.3.3']))) {\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.3.1']) && !empty($settings['main_menu_url_2.3.1'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.3.1'] , '\" target=\"_blank\">', $settings['main_menu_id_2.3.1'] , '</a>';\n\t\t\t\t\t\t\t\t// Menu 2.2.1 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_2.3.1.1']) && !empty($settings['main_menu_url_2.3.1.1'])) || (!empty($settings['main_menu_id_2.3.1.2']) && !empty($settings['main_menu_url_2.3.1.2'])) || (!empty($settings['main_menu_id_2.3.1.3']) && !empty($settings['main_menu_url_2.3.1.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.3.1.1']) && !empty($settings['main_menu_url_2.3.1.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.3.1.1'] , '\" target=\"_blank\">', $settings['main_menu_id_2.3.1.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.3.1.2']) && !empty($settings['main_menu_url_2.3.1.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.3.1.2'] , '\" target=\"_blank\">', $settings['main_menu_id_2.3.1.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.3.1.3']) && !empty($settings['main_menu_url_2.3.1.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.3.1.3'] , '\" target=\"_blank\">', $settings['main_menu_id_2.3.1.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Menu 2.2.1 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 2.2.2 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.3.2']) && !empty($settings['main_menu_url_2.3.2'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.3.2'] , '\" target=\"_blank\">', $settings['main_menu_id_2.3.2'] , '</a>';\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_2.3.2.1']) && !empty($settings['main_menu_url_2.3.2.1'])) || (!empty($settings['main_menu_id_2.3.2.2']) && !empty($settings['main_menu_url_2.3.2.2'])) || (!empty($settings['main_menu_id_2.3.2.3']) && !empty($settings['main_menu_url_2.3.2.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.3.2.1']) && !empty($settings['main_menu_url_2.3.2.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.3.2.1'] , '\" target=\"_blank\">', $settings['main_menu_id_2.3.2.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.3.2.2']) && !empty($settings['main_menu_url_2.3.2.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.3.2.2'] , '\" target=\"_blank\">', $settings['main_menu_id_2.3.2.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.3.2.3']) && !empty($settings['main_menu_url_2.3.2.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.3.2.3'] , '\" target=\"_blank\">', $settings['main_menu_id_2.3.2.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 2.2.2 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 2.2.3 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.3.3']) && !empty($settings['main_menu_url_2.3.3'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.3.3'] , '\" target=\"_blank\">', $settings['main_menu_id_2.3.3'] , '</a>';\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_2.3.3.1']) && !empty($settings['main_menu_url_2.3.3.1'])) || (!empty($settings['main_menu_id_2.3.3.2']) && !empty($settings['main_menu_url_2.3.3.2'])) || (!empty($settings['main_menu_id_2.3.3.3']) && !empty($settings['main_menu_url_2.3.3.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.3.3.1']) && !empty($settings['main_menu_url_2.3.3.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.3.3.1'] , '\" target=\"_blank\">', $settings['main_menu_id_2.3.3.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.3.3.2']) && !empty($settings['main_menu_url_2.3.3.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.3.3.2'] , '\" target=\"_blank\">', $settings['main_menu_id_2.3.3.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_2.3.3.3']) && !empty($settings['main_menu_url_2.3.3.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_2.3.3.3'] , '\" target=\"_blank\">', $settings['main_menu_id_2.3.3.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 2.2.3 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/***** Menu 2.2.1 - Dropdown Level 2 End *****\n\t\t\t\t\t\t *===========================================*/\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t</li>';\n\t\t\t\t\t}\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\t/********** Menu 2.2 - Dropdown Level 1 End*****************/\n\t\t\t\t\t/***********************************************************/\n\t\t\t\techo '\n\t\t\t\t\t</ul>';\n\t\t\t\t}\n\t\t\techo '\n\t\t\t\t</li>';\n\t\t\t}\n\n\n\t\t\t/*##########################################*\n\t\t\t *\t\t\t\t\t\t\t\t\t\t\t*\n\t\t\t *\t\t\t\tCustom Menu 3\t\t\t\t*\n\t\t\t *\t\t\t\t\t\t\t\t\t\t\t*\n\t\t\t *##########################################*/\n\t\t\tif(!empty($settings['main_menu_id_3']) && !empty($settings['main_menu_url_3'])) {\n\t\t\t\techo '\n\t\t\t\t<li><a href=\"', $settings['main_menu_url_3'] , '\" target=\"_blank\">', $settings['main_menu_id_3'] , '</a>';\n\t\t\t\tif((!empty($settings['main_menu_id_3.1']) && !empty($settings['main_menu_url_3.1'])) || (!empty($settings['main_menu_id_3.2']) && !empty($settings['main_menu_url_3.2'])) || (!empty($settings['main_menu_id_3.3']) && !empty($settings['main_menu_url_3.3']))) {\n\t\t\t\techo '\n\t\t\t\t\t<ul>';\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\t/********** Menu 3.1 - Dropdown Level 1 Beginning **********/\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\tif(!empty($settings['main_menu_id_3.1']) && !empty($settings['main_menu_url_3.1'])) {\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.1'] , '\" target=\"_blank\">', $settings['main_menu_id_3.1'] , '</a>';\n\t\t\t\t\t\t /***** Menu 3.1.1 - Dropdown Level 2 Beginning *****\n\t\t\t\t\t\t *==================================================*/\n\t\t\t\t\t\tif((!empty($settings['main_menu_id_3.1.1']) && !empty($settings['main_menu_url_3.1.1'])) || (!empty($settings['main_menu_id_3.1.2']) && !empty($settings['main_menu_url_3.1.2'])) || (!empty($settings['main_menu_id_3.1.3']) && !empty($settings['main_menu_url_3.1.3']))) {\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.1.1']) && !empty($settings['main_menu_url_3.1.1'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.1.1'] , '\" target=\"_blank\">', $settings['main_menu_id_3.1.1'] , '</a>';\n\t\t\t\t\t\t\t\t// Menu 3.1.1 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_3.1.1.1']) && !empty($settings['main_menu_url_3.1.1.1'])) || (!empty($settings['main_menu_id_3.1.1.2']) && !empty($settings['main_menu_url_3.1.1.2'])) || (!empty($settings['main_menu_id_3.1.1.3']) && !empty($settings['main_menu_url_3.1.1.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.1.1.1']) && !empty($settings['main_menu_url_3.1.1.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.1.1.1'] , '\" target=\"_blank\">', $settings['main_menu_id_3.1.1.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.1.1.2']) && !empty($settings['main_menu_url_3.1.1.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.1.1.2'] , '\" target=\"_blank\">', $settings['main_menu_id_3.1.1.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.1.1.3']) && !empty($settings['main_menu_url_3.1.1.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.1.1.3'] , '\" target=\"_blank\">', $settings['main_menu_id_3.1.1.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Menu 3.1.1 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 3.1.2 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.1.2']) && !empty($settings['main_menu_url_3.1.2'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.1.2'] , '\" target=\"_blank\">', $settings['main_menu_id_3.1.2'] , '</a>';\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_3.1.2.1']) && !empty($settings['main_menu_url_3.1.2.1'])) || (!empty($settings['main_menu_id_3.1.2.2']) && !empty($settings['main_menu_url_3.1.2.2'])) || (!empty($settings['main_menu_id_3.1.2.3']) && !empty($settings['main_menu_url_3.1.2.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.1.2.1']) && !empty($settings['main_menu_url_3.1.2.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.1.2.1'] , '\" target=\"_blank\">', $settings['main_menu_id_3.1.2.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.1.2.2']) && !empty($settings['main_menu_url_3.1.2.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.1.2.2'] , '\" target=\"_blank\">', $settings['main_menu_id_3.1.2.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.1.2.3']) && !empty($settings['main_menu_url_3.1.2.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.1.2.3'] , '\" target=\"_blank\">', $settings['main_menu_id_3.1.2.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 3.1.2 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 3.1.3 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.1.3']) && !empty($settings['main_menu_url_3.1.3'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.1.3'] , '\" target=\"_blank\">', $settings['main_menu_id_3.1.3'] , '</a>';\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_3.1.3.1']) && !empty($settings['main_menu_url_3.1.3.1'])) || (!empty($settings['main_menu_id_3.1.3.2']) && !empty($settings['main_menu_url_3.1.3.2'])) || (!empty($settings['main_menu_id_3.1.3.3']) && !empty($settings['main_menu_url_3.1.3.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.1.3.1']) && !empty($settings['main_menu_url_3.1.3.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.1.3.1'] , '\" target=\"_blank\">', $settings['main_menu_id_3.1.3.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.1.3.2']) && !empty($settings['main_menu_url_3.1.3.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.1.3.2'] , '\" target=\"_blank\">', $settings['main_menu_id_3.1.3.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.1.3.3']) && !empty($settings['main_menu_url_3.1.3.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.1.3.3'] , '\" target=\"_blank\">', $settings['main_menu_id_3.1.3.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 3.1.3 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/***** Menu 3.1.1 - Dropdown Level 2 End *****\n\t\t\t\t\t\t *===========================================*/\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t</li>';\n\t\t\t\t\t}\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\t/********** Menu 3.1 - Dropdown Level 1 End*****************/\n\t\t\t\t\t/***********************************************************/\n\n\n\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\t/********** Menu 3.2 - Dropdown Level 1 Beginning **********/\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\tif(!empty($settings['main_menu_id_3.2']) && !empty($settings['main_menu_url_3.2'])) {\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.2'] , '\" target=\"_blank\">', $settings['main_menu_id_3.2'] , '</a>';\n\t\t\t\t\t\t /***** Menu 3.2.1 - Dropdown Level 2 Beginning *****\n\t\t\t\t\t\t *==================================================*/\n\t\t\t\t\t\tif((!empty($settings['main_menu_id_3.2.1']) && !empty($settings['main_menu_url_3.2.1'])) || (!empty($settings['main_menu_id_3.2.2']) && !empty($settings['main_menu_url_3.2.2'])) || (!empty($settings['main_menu_id_3.2.3']) && !empty($settings['main_menu_url_3.2.3']))) {\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.2.1']) && !empty($settings['main_menu_url_3.2.1'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.2.1'] , '\" target=\"_blank\">', $settings['main_menu_id_3.2.1'] , '</a>';\n\t\t\t\t\t\t\t\t// Menu 3.2.1 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_3.2.1.1']) && !empty($settings['main_menu_url_3.2.1.1'])) || (!empty($settings['main_menu_id_3.2.1.2']) && !empty($settings['main_menu_url_3.2.1.2'])) || (!empty($settings['main_menu_id_3.2.1.3']) && !empty($settings['main_menu_url_3.2.1.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.2.1.1']) && !empty($settings['main_menu_url_3.2.1.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.2.1.1'] , '\" target=\"_blank\">', $settings['main_menu_id_3.2.1.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.2.1.2']) && !empty($settings['main_menu_url_3.2.1.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.2.1.2'] , '\" target=\"_blank\">', $settings['main_menu_id_3.2.1.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.2.1.3']) && !empty($settings['main_menu_url_3.2.1.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.2.1.3'] , '\" target=\"_blank\">', $settings['main_menu_id_3.2.1.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Menu 3.2.1 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 3.2.2 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.2.2']) && !empty($settings['main_menu_url_3.2.2'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.2.2'] , '\" target=\"_blank\">', $settings['main_menu_id_3.2.2'] , '</a>';\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_3.2.2.1']) && !empty($settings['main_menu_url_3.2.2.1'])) || (!empty($settings['main_menu_id_3.2.2.2']) && !empty($settings['main_menu_url_3.2.2.2'])) || (!empty($settings['main_menu_id_3.2.2.3']) && !empty($settings['main_menu_url_3.2.2.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.2.2.1']) && !empty($settings['main_menu_url_3.2.2.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.2.2.1'] , '\" target=\"_blank\">', $settings['main_menu_id_3.2.2.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.2.2.2']) && !empty($settings['main_menu_url_3.2.2.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.2.2.2'] , '\" target=\"_blank\">', $settings['main_menu_id_3.2.2.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.2.2.3']) && !empty($settings['main_menu_url_3.2.2.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.2.2.3'] , '\" target=\"_blank\">', $settings['main_menu_id_3.2.2.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 3.2.2 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 3.2.3 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.2.3']) && !empty($settings['main_menu_url_3.2.3'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.2.3'] , '\" target=\"_blank\">', $settings['main_menu_id_3.2.3'] , '</a>';\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_3.2.3.1']) && !empty($settings['main_menu_url_3.2.3.1'])) || (!empty($settings['main_menu_id_3.2.3.2']) && !empty($settings['main_menu_url_3.2.3.2'])) || (!empty($settings['main_menu_id_3.2.3.3']) && !empty($settings['main_menu_url_3.2.3.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.2.3.1']) && !empty($settings['main_menu_url_3.2.3.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.2.3.1'] , '\" target=\"_blank\">', $settings['main_menu_id_3.2.3.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.2.3.2']) && !empty($settings['main_menu_url_3.2.3.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.2.3.2'] , '\" target=\"_blank\">', $settings['main_menu_id_3.2.3.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.2.3.3']) && !empty($settings['main_menu_url_3.2.3.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.2.3.3'] , '\" target=\"_blank\">', $settings['main_menu_id_3.2.3.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 3.2.3 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/***** Menu 3.2.1 - Dropdown Level 2 End *****\n\t\t\t\t\t\t *===========================================*/\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t</li>';\n\t\t\t\t\t}\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\t/********** Menu 3.2 - Dropdown Level 1 End*****************/\n\t\t\t\t\t/***********************************************************/\n\n\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\t/********** Menu 3.2 - Dropdown Level 1 Beginning **********/\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\tif(!empty($settings['main_menu_id_3.3']) && !empty($settings['main_menu_url_3.3'])) {\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.3'] , '\" target=\"_blank\">', $settings['main_menu_id_3.3'] , '</a>';\n\t\t\t\t\t\t /***** Menu 3.2.1 - Dropdown Level 2 Beginning *****\n\t\t\t\t\t\t *==================================================*/\n\t\t\t\t\t\tif((!empty($settings['main_menu_id_3.3.1']) && !empty($settings['main_menu_url_3.3.1'])) || (!empty($settings['main_menu_id_3.3.2']) && !empty($settings['main_menu_url_3.3.2'])) || (!empty($settings['main_menu_id_3.3.3']) && !empty($settings['main_menu_url_3.3.3']))) {\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.3.1']) && !empty($settings['main_menu_url_3.3.1'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.3.1'] , '\" target=\"_blank\">', $settings['main_menu_id_3.3.1'] , '</a>';\n\t\t\t\t\t\t\t\t// Menu 3.2.1 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_3.3.1.1']) && !empty($settings['main_menu_url_3.3.1.1'])) || (!empty($settings['main_menu_id_3.3.1.2']) && !empty($settings['main_menu_url_3.3.1.2'])) || (!empty($settings['main_menu_id_3.3.1.3']) && !empty($settings['main_menu_url_3.3.1.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.3.1.1']) && !empty($settings['main_menu_url_3.3.1.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.3.1.1'] , '\" target=\"_blank\">', $settings['main_menu_id_3.3.1.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.3.1.2']) && !empty($settings['main_menu_url_3.3.1.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.3.1.2'] , '\" target=\"_blank\">', $settings['main_menu_id_3.3.1.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.3.1.3']) && !empty($settings['main_menu_url_3.3.1.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.3.1.3'] , '\" target=\"_blank\">', $settings['main_menu_id_3.3.1.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Menu 3.2.1 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 3.2.2 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.3.2']) && !empty($settings['main_menu_url_3.3.2'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.3.2'] , '\" target=\"_blank\">', $settings['main_menu_id_3.3.2'] , '</a>';\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_3.3.2.1']) && !empty($settings['main_menu_url_3.3.2.1'])) || (!empty($settings['main_menu_id_3.3.2.2']) && !empty($settings['main_menu_url_3.3.2.2'])) || (!empty($settings['main_menu_id_3.3.2.3']) && !empty($settings['main_menu_url_3.3.2.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.3.2.1']) && !empty($settings['main_menu_url_3.3.2.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.3.2.1'] , '\" target=\"_blank\">', $settings['main_menu_id_3.3.2.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.3.2.2']) && !empty($settings['main_menu_url_3.3.2.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.3.2.2'] , '\" target=\"_blank\">', $settings['main_menu_id_3.3.2.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.3.2.3']) && !empty($settings['main_menu_url_3.3.2.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.3.2.3'] , '\" target=\"_blank\">', $settings['main_menu_id_3.3.2.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 3.2.2 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 3.2.3 - Dropdown Level 3 Beginning\n\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.3.3']) && !empty($settings['main_menu_url_3.3.3'])) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.3.3'] , '\" target=\"_blank\">', $settings['main_menu_id_3.3.3'] , '</a>';\n\t\t\t\t\t\t\t\tif((!empty($settings['main_menu_id_3.3.3.1']) && !empty($settings['main_menu_url_3.3.3.1'])) || (!empty($settings['main_menu_id_3.3.3.2']) && !empty($settings['main_menu_url_3.3.3.2'])) || (!empty($settings['main_menu_id_3.3.3.3']) && !empty($settings['main_menu_url_3.3.3.3']))) {\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t<ul>';\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.3.3.1']) && !empty($settings['main_menu_url_3.3.3.1'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.3.3.1'] , '\" target=\"_blank\">', $settings['main_menu_id_3.3.3.1'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.3.3.2']) && !empty($settings['main_menu_url_3.3.3.2'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.3.3.2'] , '\" target=\"_blank\">', $settings['main_menu_id_3.3.3.2'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!empty($settings['main_menu_id_3.3.3.3']) && !empty($settings['main_menu_url_3.3.3.3'])) {\n\t\t\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t\t<li><a href=\"', $settings['main_menu_url_3.3.3.3'] , '\" target=\"_blank\">', $settings['main_menu_id_3.3.3.3'] , '</a></li>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Menu 3.2.3 - Dropdown Level 3 End\n\t\t\t\t\t\t\techo '\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t</ul>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/***** Menu 3.2.1 - Dropdown Level 2 End *****\n\t\t\t\t\t\t *===========================================*/\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t</li>';\n\t\t\t\t\t}\n\t\t\t\t\t/***********************************************************/\n\t\t\t\t\t/********** Menu 3.2 - Dropdown Level 1 End*****************/\n\t\t\t\t\t/***********************************************************/\n\t\t\t\techo '\n\t\t\t\t\t</ul>';\n\t\t\t\t}\n\t\t\techo '\n\t\t\t\t</li>';\n\t\t\t}\n\t\t\t/*##################################*\n\t\t\t *\t\t\t\t\t\t\t\t\t*\n\t\t\t *\t\t\tCustom Menu End\t\t\t*\n\t\t\t *\t\t\t\t\t\t\t\t\t*\n\t\t\t *##################################*/\n\t\n\t// SMF default Menu\n\tforeach ($context['menu_buttons'] as $act => $button)\n\t{\n\t\techo '\n\t\t\t\t<li id=\"button_', $act, '\">\n\t\t\t\t\t<a class=\"', $button['active_button'] ? 'active ' : '', 'firstlevel\" href=\"', $button['href'], '\"', isset($button['target']) ? ' target=\"' . $button['target'] . '\"' : '', '>\n\t\t\t\t\t\t<span class=\"', isset($button['is_last']) ? 'last ' : '', 'firstlevel\">', $button['title'], '</span>\n\t\t\t\t\t</a>';\n\t\tif (!empty($button['sub_buttons']))\n\t\t{\n\t\t\techo '\n\t\t\t\t\t<ul>';\n\n\t\t\tforeach ($button['sub_buttons'] as $childbutton)\n\t\t\t{\n\t\t\t\techo '\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<a href=\"', $childbutton['href'], '\"', isset($childbutton['target']) ? ' target=\"' . $childbutton['target'] . '\"' : '', '>\n\t\t\t\t\t\t\t\t<span', isset($childbutton['is_last']) ? ' class=\"last\"' : '', '>', $childbutton['title'], !empty($childbutton['sub_buttons']) ? '...' : '', '</span>\n\t\t\t\t\t\t\t</a>';\n\t\t\t\t// 3rd level menus :)\n\t\t\t\tif (!empty($childbutton['sub_buttons']))\n\t\t\t\t{\n\t\t\t\t\techo '\n\t\t\t\t\t\t\t<ul>';\n\n\t\t\t\t\tforeach ($childbutton['sub_buttons'] as $grandchildbutton)\n\t\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t\t<a href=\"', $grandchildbutton['href'], '\"', isset($grandchildbutton['target']) ? ' target=\"' . $grandchildbutton['target'] . '\"' : '', '>\n\t\t\t\t\t\t\t\t\t\t<span', isset($grandchildbutton['is_last']) ? ' class=\"last\"' : '', '>', $grandchildbutton['title'], '</span>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t</li>';\n\n\t\t\t\t\techo '\n\t\t\t\t\t\t\t</ul>';\n\t\t\t\t}\n\n\t\t\t\techo '\n\t\t\t\t\t\t</li>';\n\t\t\t}\n\t\t\t\techo '\n\t\t\t\t\t</ul>';\n\t\t}\n\t\techo '\n\t\t\t\t</li>';\n\t}\n\techo '\n\t\t</ul></div>';\n}", "title": "" }, { "docid": "fb18153dde2723e7133321639d218254", "score": "0.63751924", "text": "function register_main_menu()\n{\n register_nav_menu('main-menu', __('Main Menu'));\n}", "title": "" }, { "docid": "30346060e41aeeead3712275efa21fff", "score": "0.6361061", "text": "public function getName() {\n return \"Menuconfig\";\n }", "title": "" }, { "docid": "cad5e2b0a1f4714ab792e267db8015dc", "score": "0.6344386", "text": "function register_my_menu() {\n register_nav_menu('header-menu',__( 'Main Menu' ));\n}", "title": "" }, { "docid": "6b8b7f362eef2134ac3e31efb4a5e54f", "score": "0.63412035", "text": "function register_menu() {\n\tregister_nav_menu('mainmeny', __('Main menu'));\n}", "title": "" }, { "docid": "5ebe2a867b46be34cd0325d65c7ffe9c", "score": "0.632045", "text": "function get_menu_item_name( $name = null ) {\n\n if( ! isset( $name ) ) { $name = $this->post_type_name; }\n return $this->get_human_friendly($name) . 's';\n \n }", "title": "" }, { "docid": "c551eefc387ffc67687bb968f2358e63", "score": "0.63159853", "text": "function dguk_get_main_menu($main_menu) {\n $menu_new_classes = array();\n foreach ($main_menu as $key => $item) {\n $menu_new_classes['nav-' . strtolower(str_replace(' ', '-', $item['title'])) . ' ' . $key] = $item;\n }\n\n\t$menu_output = theme('links__main_menu', array(\n\t 'links' => $menu_new_classes,\n\t 'attributes' => array(\n\t 'id' => 'dgu-nav',\n\t 'class' => array('nav'),\n\t ),\n\t ));\n\n $output = '<div class=\"navbar navbar-inverse\"> <div class=\"main-nav-collapse\">';\n $output .= $menu_output;\n $output .= '</div><!--/.main-nav-collapse --></div>';\n $output = str_replace('Home</a>', '<div class=\"nav-icon\"></div>Home</a>', $output);\n\n\treturn $output;\n }", "title": "" }, { "docid": "99111a285fb3f3d0866456e7f2fc0f99", "score": "0.62986827", "text": "function handle_menu()\n\t{\n\t\t//xydac()->$menu_slug\n\t\tadd_submenu_page( 'xydac_ultimate_cms', $this->module_label, $this->module_label, 'manage_xydac_cms', 'xydac_ultimate_cms_'.$this->module_name, array($this,'view_main'));\n\t}", "title": "" }, { "docid": "b73a2c564d6293c48871662acf0505bc", "score": "0.6294777", "text": "function hypha_getMenu() {\n\t\tglobal $hyphaXml;\n\t\treturn getInnerHtml($hyphaXml->getElementsByTagName('menu')->Item(0));\n\t}", "title": "" }, { "docid": "b1fdfdfbbf5e893e761e8a486fc1c458", "score": "0.62734044", "text": "function MyMod_Handle_Event_Menu()\n {\n $args=$this->CGI_URI2Hash();\n\n $subactions=$this->ReadPHPArray(\"System/Events/SubActions.php\");\n \n $currsubaction=$this->CGI_GET(\"SubAction\");\n\n $hrefs=array();\n foreach ($subactions as $subaction => $def)\n {\n $args[ \"SubAction\" ]=$subaction;\n\n $href=$this->GetRealNameKey($def);\n if ($subaction!=$currsubaction)\n {\n $href=$this->Href\n (\n \"?\".$this->CGI_Hash2URI($args),\n $href,\n \"\",\n \"\",\n \"\",\n FALSE,\n array(),\n \"HorMenu\"\n );\n }\n \n array_push($hrefs,$href);\n }\n \n return\n $this->Center\n (\n \"[ \".\n join(\" | \",$hrefs).\n \" ]\"\n );\n }", "title": "" }, { "docid": "b8eadc86c2fceb414fba214892f8d5f4", "score": "0.626253", "text": "function register_my_menu() {\n register_nav_menu('header-menu',__( 'Main Navigation' ));\n}", "title": "" }, { "docid": "a88d5ba544b39bd21f742c83dce3e353", "score": "0.625408", "text": "function MyMod_SubActions_Menu()\n {\n $args=$this->CGI_URI2Hash();\n\n $subactions=$this->ReadPHPArray(\"System/Events/SubActions.php\");\n \n $currsubaction=$this->CGI_GET(\"SubAction\");\n\n $hrefs=array();\n foreach ($subactions as $subaction => $def)\n {\n $res=$this->MyAction_Allowed($def);\n\n if (!$res) { continue; }\n \n $args[ \"SubAction\" ]=$subaction;\n\n $href=$this->GetRealNameKey($def);\n if ($subaction!=$currsubaction)\n {\n $href=$this->Href\n (\n \"?\".$this->CGI_Hash2URI($args),\n $href,\n \"\",\n \"\",\n \"\",\n FALSE,\n array(),\n \"HorMenu\"\n );\n }\n \n array_push($hrefs,$href);\n }\n \n if (empty($hrefs)) { return \"\"; }\n \n return\n $this->Center\n (\n $this->B($this->Language_Message(\"Event_Setup_Menu_Title\").\":\").\n \" [ \".\n join(\" | \",$hrefs).\n \" ]\"\n );\n }", "title": "" }, { "docid": "d87c263678b7962031fc7b63e6ea3022", "score": "0.6241948", "text": "public function getMenuLink();", "title": "" }, { "docid": "32d6c755ec8f547a0777bcc7772bc148", "score": "0.62018925", "text": "function register_my_menu() {\n register_nav_menu('header-menu',__( 'Header Menu' ));\n }", "title": "" }, { "docid": "32d6c755ec8f547a0777bcc7772bc148", "score": "0.62018925", "text": "function register_my_menu() {\n register_nav_menu('header-menu',__( 'Header Menu' ));\n }", "title": "" }, { "docid": "d95b1efbe11f3b4f078fca0612124ceb", "score": "0.62006116", "text": "public static function echoMenu(){\n\t\tglobal $modules;\n if(isset($_SESSION['boLogin']) && isset($modules->list)){\n $currentModule = boModules::$actions['module'];\n $linkString = BACKURL;//boPage::getCurrentLink($argumentsAVirer);\n ?>\n <ul id=\"main-menu-left\" class=\"nav nav-sidebar\">\n <?php foreach($modules->list as $module): ?>\n <?php if($_SESSION['boLevel'] > $module->access && $module->visible == true):?>\n <li class=\"<?php if($currentModule == $module->id){echo \"active\";}?>\"><a href=\"<?=$linkString.$module->id?>\"><i class=\"fa fa-chevron-right\"></i> <?=$module->menuname?></a></li>\n <?php endif; ?>\n <?php endforeach; ?>\n <!--\n <li>\n <a href=\"'.$linkString.'?&amp;logout=1\">Se déconnecter <i class=\"fa fa-power-off\"></i></a>\n </li>\n -->\n </ul>\n <?php\n }\n\t}", "title": "" }, { "docid": "dca1420e67c7d648aff6671abfa6b74f", "score": "0.61896044", "text": "function chrisbauer3_menu_link(&$vars) {\n $element = $vars['element'];\n $sub_menu = '';\n $id = $element['#original_link']['mlid'];\n $name_id = strtolower(strip_tags($element['#title']));\n // remove colons and anything past colons\n if(strpos($name_id, ':')) $name_id = substr ($name_id, 0, strpos($name_id, ':'));\n //Preserve alphanumerics, everything else goes away\n $pattern = '/[^a-z]+/ ';\n $name_id = preg_replace($pattern, '', $name_id);\n $element['#attributes']['class'][] = 'menu-' . $name_id . ' mlid-' . $id;\n\n if($element['#below']) {\n $sub_menu = drupal_render($element['#below']);\n }\n $output = l($element['#title'], $element['#href'], $element['#localized_options']);\n return '<li' . drupal_attributes($element['#attributes']) . '>' . $output . $sub_menu . \"</li>\\n\";\n}", "title": "" }, { "docid": "0108b84ea90632034636ef51ff4caa67", "score": "0.6187493", "text": "function bones_main_nav() {\n\t// display the wp3 menu if available\n wp_nav_menu(array(\n \t'container' => 'nav', // nav container\n \t'container_class' => 'nav', // class of container (should you choose to use it)\n \t'menu' => 'The Main Menu', // nav name\n \t'menu_class' => 'main-nav web-only clearfix', // adding custom nav class\n \t'theme_location' => 'main-nav', // where it's located in the theme\n \t'before' => '', // before the menu\n 'after' => '', // after the menu\n 'link_before' => '', // before each link\n 'link_after' => '', // after each link\n 'depth' => 0, // limit the depth of the nav\n \t'fallback_cb' => 'bones_main_nav_fallback' // fallback function\n\t));\n}", "title": "" }, { "docid": "8af2b0bc5381276a50402f85085e5066", "score": "0.61819035", "text": "public function getLinkToMenu(): string\n {\n $roles = $this->getRoles();\n switch ($roles[0]) {\n case AuthRole::ROLE_ADMIN:\n return 'layout/app/parts/usersMenu/menuAdmin.html.twig';\n default:\n return 'layout/app/parts/usersMenu/menuUser.html.twig';\n }\n }", "title": "" }, { "docid": "806fa5031beea7f9f3149d15f03102d2", "score": "0.61771965", "text": "private function printMenu() {\n global $currentUser;\n echo '<div id=\"menu\">' . \"\\n\";\n echo ' <a href=\"index.php\">Home</a>' . \"\\n\";\n echo \" <br />\\n\";\n if ( $currentUser->isAdmin() ) {\n echo ' <a href=\"accountadd.php\">Add account</a>' . \"\\n\";\n echo ' <a href=\"accountadmin.php\">Account admin</a>' . \"\\n\";\n echo ' <a href=\"syslog.php\">System log</a>' . \"\\n\";\n echo ' <br />';\n }\n echo ' <a href=\"help.php\">Help</a>' . \"\\n\";\n echo ' <a href=\"logout.php\">Logout</a>' . \"\\n\";\n echo \"</div>\\n\";\n }", "title": "" }, { "docid": "1b40d9a573edf552405d7c663d720bf4", "score": "0.61344224", "text": "function ncincl_links__system_main_menu($variables) {\n $html = \"<div>Steve\\n\";\n $html .= \" <ul>\\n\"; \n foreach ($variables['links'] as $link) {\n $html .= \"<li>\".l($link['title'], $link['path'], $link).\"</li>\";\n }\n $html .= \" </ul>\\n\";\n $html .= \"</div>\\n\";\n\n return $html;\n}", "title": "" }, { "docid": "57d4b6a2726007ceee0ca3cd2ea71770", "score": "0.6132472", "text": "function get1stLvlLink($menu_name)\n{\n global $IBSngMenuLinks;\n return $IBSngMenuLinks[$menu_name];\n}", "title": "" }, { "docid": "3b2103c716741f5b411c34e2de9dd9e0", "score": "0.6122573", "text": "function wpb_custom_new_menu() {\n register_nav_menu('celebrity',__( 'Celebrity Artists' ));\n register_nav_menu('photograhy',__( 'Fine Photography' ));\n register_nav_menu('collectibles',__( 'Collectibles' ));\n}", "title": "" }, { "docid": "ad84ec89f05fb5d989cf212ee0f4b534", "score": "0.6117306", "text": "function register_my_menu() {\n register_nav_menu('header-menu',__( 'Header Menu' ));\n}", "title": "" }, { "docid": "008d80283106349049e559bd2fc60462", "score": "0.6089817", "text": "function register_my_menus()\n{\n register_nav_menus(\n array(\n 'main-menu' => 'Hoofdmenu'\n )\n );\n}", "title": "" }, { "docid": "b81a58df6e0a318bf7c3d2481a584982", "score": "0.6089285", "text": "function pegasus_menu_function($atts, $content = null) {\r\n\t extract(\r\n\t\t shortcode_atts(\r\n\t\t\t array( 'name' => null, ),\r\n\t\t\t $atts\r\n\t\t )\r\n\t );\r\n\t return wp_nav_menu(\r\n\t\t array(\r\n\t\t\t 'menu' => $name,\r\n\t\t\t 'echo' => false\r\n\t\t\t )\r\n\t );\r\n\t}", "title": "" }, { "docid": "295c34546d7ac925ea3df5bf8c9ff69b", "score": "0.60885614", "text": "function register_my_menus() {\n register_nav_menus(\n array(\n 'main-menu' => __( 'Main Menu' )\n )\n );\n}", "title": "" }, { "docid": "573d2e4ef04714294d34d429de6a5ee8", "score": "0.6087414", "text": "function gym_menus(){\n register_nav_menus( array(\n /*El primero es el nombre a nivel de variable, los guiones es para decir\n que puede ser traducido y por ultimo es el nombre para mostrar en la interfaz,\n ademas del domain name*/\n 'menu-principal' => __( 'Menu Principal', 'gymfitness' )\n ));\n}", "title": "" }, { "docid": "6a5cd33fd2ce0ceb338bf6cc10a76efa", "score": "0.60787654", "text": "function gp_menus() {\n\tregister_nav_menus(\n\t\tarray(\n\t\t\t'primary_navigation' => __('Primary navigation', 'gp')\n\t\t)\n\t);\n}", "title": "" }, { "docid": "5aa21842dd2929f1ee08715d65e53a5a", "score": "0.60763323", "text": "public function getBuyableName()\n {\n return $this->menu_name;\n }", "title": "" }, { "docid": "dd9fcc2cd2f3dffd074f9ad05e29a993", "score": "0.606966", "text": "function register_my_menu() {\n register_nav_menu('header-menu',__( 'Header Menu' )); // menu defined as header menu\n}", "title": "" }, { "docid": "3c7ed8561d96969097a08ebaa0109c3f", "score": "0.6060059", "text": "function cs_jobcareer_child_my_menus() {\n register_nav_menus(\n array(\n 'main-menu' => __('Main Menu', 'jobcareer'),\n 'footer-menu' => __('Footer Menu', 'jobcareer'),\n )\n );\n}", "title": "" }, { "docid": "98684228cc5e534f50514c112c8a4e84", "score": "0.6056717", "text": "function register_my_menus()\r\n{\r\n register_nav_menus(\r\n array(\r\n 'main-menu' => __('Principal'),\r\n 'pieds_page' => __('Pieds de Page'),\r\n )\r\n );\r\n}", "title": "" }, { "docid": "fc3799234486742df0ee483546559b03", "score": "0.60454935", "text": "function get_main_nav()\n{\n wp_nav_menu(\n\tarray(\n\t\t'theme_location' => 'header-menu',\n\t\t'menu' => 'header-menu',\n\t\t'container' => false,\n\t\t'menu_class' => 'gu-Header-menu',\n 'menu_id' => 'gu-header-menu',\n\t\t'items_wrap' => '<ul id=\"%1$s\" class=\"%2$s\">%3$s</ul>',\n 'link_before' => '<span>',\n 'link_after' => '</span>',\n\t\t'echo' => true,\n\t\t'fallback_cb' => 'wp_page_menu',\n\t\t'depth' => 0,\n\t\t)\n\t);\n}", "title": "" }, { "docid": "1c3edcd6ae8b2e4a93f414f0430a4ee4", "score": "0.6028458", "text": "function admin_menu() {\n\t\n\t}", "title": "" }, { "docid": "899858b3c449299dfee2818b88efe310", "score": "0.6019268", "text": "function menu()\n {\n include 'common/admin/admin_menu.php';\n return $menubox->generate();\n }", "title": "" }, { "docid": "8e9bf1251a04893de36f94ab74a59ec3", "score": "0.6018338", "text": "function platterpus_theme_menu() {\n \n add_menu_page(\n get_bloginfo('name'), // The value used to populate the browser's title bar when the menu page is active\n get_bloginfo('name'), // The text of the menu in the administrator's sidebar\n 'administrator', // What roles are able to access the menu\n 'platterpus_theme_menu', // The ID used to bind submenu items to this menu \n 'platterpus_display' // The callback function used to render this menu\n );\n\n}", "title": "" }, { "docid": "4ea6760be77e563909b1c2ff8229cb54", "score": "0.6017284", "text": "final protected function getMenu($name = '')\n {\n return $this->page->menu->getItems($name);\n }", "title": "" }, { "docid": "dcb9c192de5292d840064bc16c11808a", "score": "0.60086095", "text": "function sunlight_register_nav_menu(){\n register_nav_menu('main_menu','Add menu for header option');\n }", "title": "" }, { "docid": "52c3ed59635b0575a2a70a69861ef108", "score": "0.60000527", "text": "public function primarymenu() {\n global $CFG;\n require_once($CFG->dirroot . '/lib/outputrenderers.php');\n $custommenuitems = isset($this->page->theme->settings->primarymenu) ? $this->page->theme->settings->primarymenu : \"\";\n $custommenu = new custom_menu($custommenuitems, current_language());\n return $this->custom_menu_render($custommenu);\n }", "title": "" }, { "docid": "8e2f476ca518214a9bb76cf7c10fab7f", "score": "0.5994307", "text": "function acoady_main_menu(){\n register_nav_menus(array(\n 'Main-Menu' => 'Navigation Bar',\n 'top_menu' => 'Top Menu'\n ));\n }", "title": "" }, { "docid": "2770a1ad4b6c69c1fdee9c6d7a58b565", "score": "0.5969042", "text": "public function showMenuItem() {\n\t\treturn \\BBStandards\\TemplateManager::parseSystemPluginTemplate(\"Core_IndexPage\", \"menuitem\", array());\n\t}", "title": "" }, { "docid": "cdc296603913c1e3943ee78717d87192", "score": "0.59684896", "text": "abstract public static function mainMenu();", "title": "" }, { "docid": "cacbe9b1a9699581ef825b3d16a0d009", "score": "0.5955695", "text": "function Menu()\n {\n /** Criacao do Menu */\n require_once 'HTML/Menu.php';\n require_once 'HTML/Menu/DirectRenderer.php';\n require_once 'HTML/Menu/DirectTreeRenderer.php';\n\n $menu =& new HTML_Menu($this->MenuArray, 'sitemap');\n $renderer =& new HTML_Menu_DirectTreeRenderer();\n $renderer->setLevelTemplate('<ul id=\"nav\">', '</ul>');\n $menu->render($renderer);\n $this->Template->outputMenu = $renderer->toHtml();\n\n $menu_top =& new HTML_Menu($this->MenuArray, 'urhere');\n $renderer_top =& new HTML_Menu_DirectRenderer();\n $renderer_top->setMenuTemplate ('<table border=\"0\">', '</table>');\n $menu_top->render($renderer_top);\n $this->Template->outputTopMenu = $renderer_top->toHtml();\n }", "title": "" }, { "docid": "b92556d15cffed87a2455e04e04d2f7d", "score": "0.594267", "text": "public static function typeTitle()\n\t{\n\t\treturn \\IPS\\Member::loggedIn()->language()->addToStack('menu_content_page');\n\t}", "title": "" }, { "docid": "6d6f24e137689fdd77ac1a7d8b1f3c80", "score": "0.59388554", "text": "function register_my_menus() {\n register_nav_menus(\n array(\n \t'main-nav' => __( 'The Main Menu', 'bonestheme' ), // main nav in header\n\t\t'members-nav' => __( 'Members Links', 'bonestheme' ), \n\t\t'guest-nav' => __( 'Guest Links', 'bonestheme' )\n )\n );\n}", "title": "" }, { "docid": "3c603b8fc88c1a7b251360b15599b4d2", "score": "0.59351957", "text": "function register_my_menu() {\n\tregister_nav_menu( 'primary-menu', __( 'Primary Menu' ) );\n}", "title": "" }, { "docid": "0ea22d1d5610dce2484b9681964a9b04", "score": "0.59331554", "text": "public function default_menu() {\n\n\t\tob_start(); ?>\n\t\t<div class=\"via-manager-default-admin\">\n\n\t\t</div>\n\t\t<?php\n\t\t$html = ob_get_clean();\n\n\t\techo $html;\n\t}", "title": "" }, { "docid": "23651d794935219a4b6f64a2713c3af5", "score": "0.59325886", "text": "function add_menu(){\r\n\tregister_nav_menus(array(\r\n 'main_menu' => 'Navigation Bar' ,\r\n\r\n\r\n\r\n\r\n\t));\r\n}", "title": "" }, { "docid": "bf8bfa4ed10771d14cc70bc7c3336249", "score": "0.593164", "text": "function getHeaderMenu( $menu ) {\n\t\tglobal $wgForumLink;\n\n\t\t$html = '';\n\t\t$menu_css = 'menu';\n\t\t$sk = $this->getSkin();\n\t\t$title = $this->getTitle();\n\t\t$user = $this->getUser();\n\t\t$isLoggedIn = $user->getID() > 0;\n\n\t\tswitch ( $menu ) {\n\t\t\tcase 'edit':\n\t\t\t\t$html = Linker::link(\n\t\t\t\t\t$title,\n\t\t\t\t\t$this->msg( 'bluesky-edit-this-article' )->plain(),\n\t\t\t\t\tarray(),\n\t\t\t\t\t$sk->editUrlOptions()\n\t\t\t\t);\n\t\t\t\tif ( !$isLoggedIn ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t$html .= Linker::link(\n\t\t\t\t\tSpecialPage::getTitleFor( 'Whatlinkshere', $title->getPrefixedURL() ),\n\t\t\t\t\t$this->msg( 'whatlinkshere' )->plain(),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'title' => Linker::titleAttrib( 't-whatlinkshere', 'withaccess' ),\n\t\t\t\t\t\t'accesskey' => Linker::accesskey( 't-whatlinkshere' )\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\tbreak;\n\t\t\tcase 'profile':\n\t\t\t\t// @todo Theoretically this should call $this->getPersonalToolsList(),\n\t\t\t\t// but since that generates <a>s inside <li>s, it won't work for\n\t\t\t\t// our particular use case :-( As a result of not using that\n\t\t\t\t// method, the PersonalUrls hook never gets called for this skin\n\t\t\t\tif ( $isLoggedIn ) {\n\t\t\t\t\t$myNotifications = '';\n\t\t\t\t\tif ( class_exists( 'EchoEvent' ) ) {\n\t\t\t\t\t\t$myNotifications = Linker::link(\n\t\t\t\t\t\t\tSpecialPage::getTitleFor( 'Notifications' ),\n\t\t\t\t\t\t\t$this->msg( 'bluesky-my-notifications' )->plain()\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\t$html = Linker::link( Title::makeTitle( NS_SPECIAL, 'Mytalk', 'post' ), $this->msg( 'mytalk' )->plain() ) .\n\t\t\t\t\t\t\tLinker::link( SpecialPage::getTitleFor( 'Mypage' ), $this->msg( 'bluesky-my-page' )->plain() ) .\n\t\t\t\t\t\t\t$myNotifications .\n\t\t\t\t\t\t\tLinker::link( SpecialPage::getTitleFor( 'Watchlist' ), $this->msg( 'watchlist' )->plain() ) .\n\t\t\t\t\t\t\t#Linker::link( Title::makeTitle( NS_SPECIAL, 'Drafts' ), $this->msg( 'mydrafts' )->text() ) .\n\t\t\t\t\t\t\tLinker::link( SpecialPage::getTitleFor( 'Mycontributions' ), $this->msg( 'mycontris' )->plain() ) .\n\t\t\t\t\t\t\tLinker::link( SpecialPage::getTitleFor( 'Preferences' ), $this->msg( 'mypreferences' )->plain() ) .\n\t\t\t\t\t\t\tLinker::link( SpecialPage::getTitleFor( 'Userlogout' ), $this->msg( 'logout' )->plain() );\n\t\t\t\t} else {\n\t\t\t\t\t$html = $this->getUserLoginBox();\n\t\t\t\t\t$menu_css = 'menu_login';\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'explore':\n\t\t\t\t$html = Linker::link(\n\t\t\t\t\tTitle::newFromText( $this->msg( 'portal-url' )->inContentLanguage()->text() ),\n\t\t\t\t\t$this->msg( 'portal' )->plain()\n\t\t\t\t);\n\t\t\t\tif ( $isLoggedIn && isset( $wgForumLink ) ) {\n\t\t\t\t\t$html .= \"<a href=\\\"$wgForumLink\\\">\" . $this->msg( 'forums' )->text() . '</a>';\n\t\t\t\t}\n\t\t\t\t$html .= Linker::link(\n\t\t\t\t\tSpecialPage::getTitleFor( 'Randompage' ),\n\t\t\t\t\t$this->msg( 'randompage' )->plain()\n\t\t\t\t);\n\t\t\t\tif ( !$isLoggedIn ) {\n\t\t\t\t\t$html .= Linker::link(\n\t\t\t\t\t\tTitle::newFromText( $this->msg( 'aboutpage' )->text() ),\n\t\t\t\t\t\t$this->msg( 'bluesky-navmenu-aboutus' )->text()\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\t$html .= Linker::link( SpecialPage::getTitleFor( 'Categories' ), $this->msg( 'bluesky-navmenu-categories' )->text() ) .\n\t\t\t\t\t\tLinker::link( SpecialPage::getTitleFor( 'Recentchanges' ), $this->msg( 'recentchanges' )->text() );\n\t\t\t\tif ( $isLoggedIn ) {\n\t\t\t\t\t$html .= Linker::link(\n\t\t\t\t\t\tSpecialPage::getTitleFor( 'Specialpages' ),\n\t\t\t\t\t\t$this->msg( 'specialpages' )->text()\n\t\t\t\t\t);\n\t\t\t\t\t$html .= Linker::link(\n\t\t\t\t\t\tTitle::newFromText( $this->msg( 'helppage' )->text() ),\n\t\t\t\t\t\t$this->msg( 'help' )->text()\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'help':\n\t\t\t\t$editHelpMsgContents = $this->msg( 'edithelppage' )->text();\n\t\t\t\t// By default it's an (external) URL, hence not a valid Title.\n\t\t\t\t// But because MediaWiki is by nature very customizable, someone\n\t\t\t\t// might've changed it to point to a local page. Tricky!\n\t\t\t\tif ( preg_match( '/^(?:' . wfUrlProtocols() . ')/', $editHelpMsgContents ) ) {\n\t\t\t\t\t$html = Linker::makeExternalLink(\n\t\t\t\t\t\t$this->msg( 'edithelppage' )->text(),\n\t\t\t\t\t\t$this->msg( 'edithelp' )->plain()\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\t$html = Linker::link(\n\t\t\t\t\t\tTitle::newFromText( $this->msg( 'edithelppage' )->text() ),\n\t\t\t\t\t\t$this->msg( 'edithelp' )->plain()\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\t$html .= Linker::link(\n\t\t\t\t\tSpecialPage::getTitleFor( 'Uncategorizedpages' ),\n\t\t\t\t\t$this->msg( 'bluesky-categorize' )->plain()\n\t\t\t\t);\n\t\t\t\t$html .= Linker::link(\n\t\t\t\t\tTitle::newFromText( $this->msg( 'bluesky-more-ideas-url' )->text() ),\n\t\t\t\t\t$this->msg( 'bluesky-more-ideas' )->plain()\n\t\t\t\t);\n\t\t\t\tbreak;\n\t\t\tcase 'messages':\n\t\t\t\tif ( class_exists( 'EchoEvent' ) && $this->userHasCookies() ) {\n\t\t\t\t\t$maxNotesShown = 5;\n\t\t\t\t\t$notif = ApiEchoNotifications::getNotifications( $user, 'html', $maxNotesShown );\n\n\t\t\t\t\tif ( $notif ) {\n\t\t\t\t\t\t$notificationsPage = SpecialPage::getTitleFor( 'Notifications' );\n\n\t\t\t\t\t\t// show those notifications\n\t\t\t\t\t\tforeach ( $notif as $note ) {\n\t\t\t\t\t\t\t$this_note = $note['*'];\n\t\t\t\t\t\t\t// unread?\n\t\t\t\t\t\t\tif ( !isset( $note['read'] ) ) {\n\t\t\t\t\t\t\t\t$this_note = str_replace(\n\t\t\t\t\t\t\t\t\t'mw-echo-state',\n\t\t\t\t\t\t\t\t\t'mw-echo-state mw-echo-unread',\n\t\t\t\t\t\t\t\t\t$this_note\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$html .= $this_note;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// get the unread count\n\t\t\t\t\t\t$notifUser = MWEchoNotifUser::newFromUser( $user );\n\t\t\t\t\t\t$this->notifications_count = $notifUser->getNotificationCount();\n\n\t\t\t\t\t\tif ( $this->notifications_count > $maxNotesShown ) {\n\t\t\t\t\t\t\t$unshown = '<br />' . Linker::link(\n\t\t\t\t\t\t\t\t$notificationsPage,\n\t\t\t\t\t\t\t\t$this->msg( 'parentheses',\n\t\t\t\t\t\t\t\t\t$this->msg( 'bluesky-unread-notifications' )->numParams(\n\t\t\t\t\t\t\t\t\t\t( $this->notifications_count - $maxNotesShown )\n\t\t\t\t\t\t\t\t\t)->parse()\n\t\t\t\t\t\t\t\t)->text()\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$unshown = '';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// add view all link\n\t\t\t\t\t\t$html .= '<div class=\"menu_message_morelink\">';\n\t\t\t\t\t\t$html .= Linker::link( $notificationsPage, $this->msg( 'more-notifications-link' )->plain() );\n\t\t\t\t\t\t$html .= $unshown . '</div>';\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// no notifications\n\t\t\t\t\t\t$html .= '<div class=\"menu_message_morelink\">' . $this->msg( 'no-notifications' )->parse() . '</div>';\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\t// old school\n\t\t\t\t\tif ( class_exists( 'Notifications' ) ) {\n\t\t\t\t\t\t$ret = Notifications::loadNotifications();\n\t\t\t\t\t\tif ( is_array( $ret ) ) {\n\t\t\t\t\t\t\tlist( $html, $this->notifications_count ) = $ret;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// the wikiHow notifications ext. isn't installed either,\n\t\t\t\t\t\t// so we essentially reimplement its logic here\n\t\t\t\t\t\tlist( $notes, $count, $newTalk ) = $this->getNotifications();\n\t\t\t\t\t\t$html = $this->formatNotifications( $notes, $newTalk );\n\t\t\t\t\t\t$this->notifications_count = $count;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$menu_css = 'menu_messages';\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif ( $html ) {\n\t\t\t$html = '<div class=\"' . $menu_css . '\">' . $html . '</div>';\n\t\t}\n\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "4b07834292fa9f807be0d94d56b0d8b5", "score": "0.59303296", "text": "function etheme_header_menu(){\n\n\t// $menuClass = 'menu '.etheme_get_option('menu_type').'-menu';\n\t$menuClass = 'nav navbar-nav';\n\tif(!etheme_get_option('menu_type')){\n\t\t$menuClass = 'menu default-menu';\n\t}\n\n\twp_nav_menu(array('theme_location' => 'top', 'name' => 'top', 'container' => 'ul', 'menu_class' => $menuClass));\n}", "title": "" }, { "docid": "ba7aa53cdd0755c32abf5fcc326f4572", "score": "0.5918931", "text": "function register_main_menu(){\n\t\n\t$menu = array(\n\t\t'primary' \t\t=> __('Primary Menu'),\n\t\t'footer'\t\t=> __('Footer Menu')\n\t);\n\t\n\tregister_nav_menus($menu, 'restro');\n}", "title": "" }, { "docid": "b7949336829ddba2b9a2c2d4d6299cab", "score": "0.5910905", "text": "public function getMenu()\n {\n return $this->getLayout()->createBlock('magebridge/menu')->toHtml();\n }", "title": "" }, { "docid": "c3ef257239f35a727a7e1a8ab20cdf17", "score": "0.5907061", "text": "public static function drawMenu() {\n foreach ( self::getAllTypes() as $key => $type ) {\n $menu .= '<li style=\"cursor:pointer;\" class=\"message-menu store-menu-' . strtolower(str_replace(' ', '-', $type['text'])) . '\" id=\"menuType' . str_replace(' ', '', ucwords($type['text'])) . '\">' . \n ' <a href=\"javascript:void(0);\" class=\"\" id=\"menuLink' . (int)$type['id'] . '\" onclick=\"showAddonType(\\'' . lc_output_string_protected($type['text']) . '\\');\">' . \n ' <span class=\"message-status\" style=\"padding-top:8px;\"><img src=\"' . $type['icon'] . '\" alt=\"' . $type['text'] . '\"></span>' .\n ' <br><strong>' . lc_output_string_protected($type['text']) . '</strong>' .\n ' </a>' .\n ' </li>'; \n }\n\n return $menu;\n }", "title": "" }, { "docid": "62997c4732bab9a0de9f441051db65e3", "score": "0.58973205", "text": "function main_nav() {\n if (in_admin_section()) {\n global $USER, $SESSION;\n if ($USER->get('admin')) {\n $menu = admin_nav();\n }\n else if ($USER->is_institutional_admin()) {\n $menu = institutional_admin_nav();\n }\n else if ($USER->get('staff')) {\n $menu = staff_nav();\n }\n else {\n $menu = institutional_staff_nav();\n }\n }\n else {\n // Build the menu structure for the site\n $menu = mahara_standard_nav();\n }\n\n $menu = array_filter($menu, create_function('$a', 'return empty($a[\"ignore\"]);'));\n\n // enable plugins to augment the menu structure\n foreach (array('artefact', 'interaction', 'module') as $plugintype) {\n if ($plugins = plugins_installed($plugintype)) {\n foreach ($plugins as &$plugin) {\n if (safe_require_plugin($plugintype, $plugin->name)) {\n $plugin_menu = call_static_method(generate_class_name($plugintype,$plugin->name), 'menu_items');\n $menu = array_merge($menu, $plugin_menu);\n }\n }\n }\n }\n\n // local_main_nav_update allows sites to customise the menu by munging the $menu array.\n if (function_exists('local_main_nav_update')) {\n local_main_nav_update($menu);\n }\n $menu_structure = find_menu_children($menu, '');\n return $menu_structure;\n}", "title": "" }, { "docid": "0b6811977c88605e6921a1beb45c0f52", "score": "0.58929724", "text": "function menu()\n\t{\n\t\tif ( ! $this->_can_access_ml())\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$entry_id = $this->EE->TMPL->fetch_param('entry_id');\n\n\t\t// Check that we have something to wrap our link around\n\t\tif (empty($this->EE->TMPL->tagdata)) {\n\t\t\t$this->_log('Menu tag did not receive any tagdata.');\n\t\t\treturn;\n\t\t}\n\n\t\t// Grab the entry markup and display/log errors as applicable\n\t\t$raw_markup = $this->_generate_entry_markup($entry_id, TRUE);\n\n\t\tif ( ! isset($raw_markup['error']))\n\t\t{\n\t\t\t$markup = $raw_markup['markup'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// We normally use entry IDs to reference the markup for inline menus. That presents a problem if\n\t\t\t// the entry ID happens to be invalid/non-existent. When an error occurs we'll use a random ID\n\t\t\t// instead.\n\t\t\t$entry_id = rand(1, 100000);\n\n\t\t\tswitch($raw_markup['error'])\n\t\t\t{\n\t\t\t\tcase 'no_entry_id':\n\t\t\t\t\t$markup = $this->_generate_line($this->EE->lang->line('entry_controls_no_id'), 'alert');\n\t\t\t\t\t$this->_log('Menu tag did not receive an entry ID.');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'invalid_entry_id':\n\t\t\t\t\t$markup = $this->_generate_line($this->EE->lang->line('entry_controls_invalid_id'), 'alert');\n\t\t\t\t\t$this->_log('Menu tag received an invalid entry ID - '.$this->EE->TMPL->fetch_param('entry_id'));\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn $this->_build_dialog_link($markup, 'menu');\n\t}", "title": "" }, { "docid": "ae26cce1d78b77cc6227c02968211a3c", "score": "0.58915454", "text": "function createMainMenu () {\n\n\tglobal $main_menu_items;\n\t$main_menu_items = array(\"Home\", \"What We Do\", \"How We Work\", \"About Us\", \"Contact Us\", \"Gunnercooke\"\n\t\t);\n\n\tforeach ($main_menu_items as $mmi) {\n\t\t$slug = titleToSlug($mmi); \n\t\t//Create dropdown for Contact Us\n\t\tif ($mmi == \"Contact Us\"): ?>\n\t\t\t<li class=\"dropdown\n\t\t\t\t<?php if (is_page($mmi)): ?>\n\t\t\t\tactive\n\t\t\t\t<?php endif; ?>\n\t\t\t\">\n <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" role=\"button\" aria-expanded=\"true\">Contact Us <span class=\"caret\"></span></a>\n\t <ul class=\"dropdown-menu\" role=\"menu\">\n\t \t<li><a href=\"<?= bloginfo('url'); ?>/<?= $slug; ?>\">Our Contact Details</a></li>\n\t \t<?php\n\t \t\t$person_title = \"New Client Engagement Forms: Natural Person Clients\";\n\t \t\t$corporate_title = \"New Client Engagement Forms: Corporate Clients\";\n\t \t?>\n\t \t<li><a href=\"<?= bloginfo('url'); ?>/<?= $slug; ?>/<?= titleToSlug($person_title); ?>\"><?= $person_title; ?></a></li>\n\t \t<li><a href=\"<?= bloginfo('url'); ?>/<?= $slug; ?>/<?= titleToSlug($corporate_title); ?>\"><?= $corporate_title; ?></a></li>\n\t </ul>\n </li>\n <?php else: ?>\n\t\t<li \n\t\t\t<?php if (is_page($mmi)): ?>\n\t\t\tclass=\"active\"\n\t\t\t<?php endif; ?>\n\t\t>\n\t\t\t<a href=\"<?=bloginfo('url');?>/<?=$slug;?>\"><?= $mmi; ?>\n\t\t\t\t<?php if (is_page($mmi)): ?>\n\t\t\t\t<span class=\"sr-only\">(current)</span>\n\t\t\t\t<?php endif; ?>\n\t\t\t</a>\n\t\t</li>\n <?php endif;\n\t}\n}", "title": "" }, { "docid": "a14e45eb4c4593f81ec40606b9a6cfb6", "score": "0.58842754", "text": "function spc_menus() {\n register_nav_menus( array(\n 'primary' => 'Primary Menu',\n 'footer' => 'Footer Menu'\n ));\n}", "title": "" }, { "docid": "1eaaf50e444269ee3a8391d1b5e7e142", "score": "0.58801436", "text": "public function getMenuTitle()\r\n {\r\n return $this->menuTitle;\r\n }", "title": "" }, { "docid": "f606c1fbc90290e7ba1897c6515aefaf", "score": "0.58796203", "text": "public function displayMenu()\n {\n $menus = ZIT()->Lib_JSON->loadData('AdminTopMenu.json')->getData('adminTopMenu');\n\n echo \"<ul class=\\\"dropdown\\\">\";\n\n foreach ($menus as $section => $menu) {\n if (false === $this->checkToBeDisplayedOrNot($section)) {\n continue;\n }\n\n if (!is_array($menu)) {\n echo \"<li style='z-index: 10;'><a href=\\\"{$menu}\\\" class=\\\"fNiv\\\">{$section}</a>\";\n } elseif (count($menu) > 0) {\n echo \"<li style='z-index: 10;'><a href=\\\"#\\\" class=\\\"fNiv\\\">{$section}</a>\";\n echo \"<ul>\";\n\n foreach ($menu as $menuLabel => $subMenus) {\n if (false === $this->checkToBeDisplayedOrNot($menuLabel)) {\n continue;\n }\n\n if (!is_array($subMenus)) {\n echo \"<li style='z-index: 10;'><a href=\\\"{$subMenus}\\\">{$menuLabel}</a>\";\n } elseif (count($subMenus) > 0) {\n echo \"<li style='z-index: 10;'><a href=\\\"#\\\">{$menuLabel}</a>\";\n echo \"<ul>\";\n\n foreach ($subMenus as $subMenuLabel => $subMenuURL) {\n if (false === $this->checkToBeDisplayedOrNot($subMenuLabel)) {\n continue;\n }\n\n echo \"<li style='z-index: 10;'><a href=\\\"{$subMenuURL}\\\">{$subMenuLabel}</a></li>\";\n }\n\n echo \"</ul>\";\n echo \"</li>\";\n }\n }\n\n echo \"</ul>\";\n echo \"</li>\";\n }\n }\n\n echo \"</ul>\";\n }", "title": "" }, { "docid": "a07fcdd370dcf3af8872671e0db05b1b", "score": "0.58778685", "text": "function wow_register_my_menus() {\n $menus = array('primary' => __('Main Menu'));\n register_nav_menus($menus);\n}", "title": "" }, { "docid": "01f5a659e8319336fdfdda3cff1b07f3", "score": "0.58744717", "text": "function cms_custom_new_menu() {\n\tregister_nav_menus(\n\t array(\n\t\t'sidebar-menu-design-zen-resources' => __( 'Zen Resources', 'cms-developer-challenge' ),\n\t )\n\t);\n }", "title": "" }, { "docid": "f5638e93dfe6de41ae94675f766fca6d", "score": "0.5866274", "text": "function register_theme_menus() {\n \tregister_nav_menus(\n array( 'main-menu' => __( 'Main Menu' ) )\n );\n}", "title": "" }, { "docid": "f5ba69d7e565df1c894b4d8449cf8f2b", "score": "0.5865618", "text": "function get_menu($menu_slug, $args) {\n\n // Display menu\n (new MidrubBaseFrontendClasses\\Menu)->get_menu($menu_slug, $args);\n \n }", "title": "" }, { "docid": "19dad0ac602a996aceb97b9b1927c864", "score": "0.5859431", "text": "function register_menu() {\nregister_nav_menu('top-bar-menu',__( 'Top bar menu' ));\n}", "title": "" }, { "docid": "b6a29ebeb9576bbe8b020c2be18e60c7", "score": "0.5855029", "text": "function register_my_menus() {\n\t\n\tregister_nav_menus(\n\t\tarray(\n\t\t\t'primary_navigation' => __('Primary Navigation'),\n\t\t\t'secondary_navigation' => __('Secondary Navigation')\n\t\t)\n\t);\n\t\n}", "title": "" }, { "docid": "44e1c4116017993bf32efe1dc933d187", "score": "0.58447593", "text": "function register_my_menu() {\n register_nav_menu('site-menu', __('Site Menu'));\n register_nav_menu('footer-menu', __('Footer Menu'));\n}", "title": "" }, { "docid": "9ba2584f797a9bfd299d7fee770a0b7e", "score": "0.5843977", "text": "function custom_main_nav() {\n $walker = new custom_walker;\n\n wp_nav_menu(array( \n 'menu' => 'main_nav', /* menu name */\n 'theme_location' => 'main_nav', /* where in the theme it's assigned */\n 'container' => false,\n 'fallback_cb' => 'custom_main_nav_fallback', /* menu fallback */\n 'items_wrap' => '<ul class=\"main_nav\">%3$s</ul>',\n 'walker' => $walker /* customizes the output of the menu */\n ));\n}", "title": "" }, { "docid": "1f4c5bfe198254d2f3a368a163a21d26", "score": "0.5829682", "text": "function MyApp_Interface_LeftMenu_Generate()\n {\n $this->CompanyHash[ \"Language\" ]=$this->GetLanguage();\n $this->CompanyHash[ \"Path\" ]=$this->CGI_Script_Path();\n\n $html=array();\n foreach ($this->MyApp_Interface_LeftMenu_Read() as $submenuname => $submenu)\n {\n array_push\n (\n $html,\n $this->MyApp_Interface_LeftMenu_Generate_SubMenu($submenu)\n );\n\n }\n \n return $this->Htmls_Tag(\"NAV\",$html);\n }", "title": "" }, { "docid": "8f2bf38cf229c6b38c37d724ca9c414a", "score": "0.58271366", "text": "function agregar_menu(){\nregister_nav_menu('principal', __('principal'));\n}", "title": "" }, { "docid": "ca1c76973cbc0a8f9d44f83fc7f20206", "score": "0.5809947", "text": "function bell_register_theme_menu() {\n register_nav_menus( array(\n 'main-menu' => __('Main Navigation Menu' ),\n 'social-menu' => __( 'Social Links Menu' )\n ));\n}", "title": "" }, { "docid": "72841bad0eed9241ed91beacc2a0ee54", "score": "0.57955927", "text": "function autozone_custom_menus()\n {\n\t add_theme_support('menus');\n\t \n\t /* Register Navigations */\n register_nav_menus(array(\n 'primary_nav' => esc_html__('Primary Navigation', 'autozone'),\n 'top_nav' => esc_html__('Top Navigation', 'autozone'),\n 'footer_nav' => esc_html__('Footer Navigation', 'autozone'),\n\t\t\t'mobile_nav' => esc_html__('Mobile Navigation', 'autozone'),\n ));\n }", "title": "" }, { "docid": "966cbe2a135a247f709300592a38bd52", "score": "0.5783585", "text": "function GetMenu(){}", "title": "" }, { "docid": "966cbe2a135a247f709300592a38bd52", "score": "0.5783585", "text": "function GetMenu(){}", "title": "" }, { "docid": "966cbe2a135a247f709300592a38bd52", "score": "0.5783585", "text": "function GetMenu(){}", "title": "" }, { "docid": "6e58461b11c3e75b1214975649e2dc4a", "score": "0.5776672", "text": "function get_menu($name, $classes=null, $id=null, $callback=null){\n\t$locations = get_nav_menu_locations();\n\t$menu = @$locations[$name];\n\n\tif (!$menu){\n\t\treturn \"<div class='error'>No menu location found with name '{$name}'. Set up menus in the <a href='\".get_admin_url().\"nav-menus.php'>admin's appearance menu.</a></div>\";\n\t}\n\n\t$items = wp_get_nav_menu_items($menu);\n\n\tif ($callback === null){\n\t\tob_start();\n\t\t?>\n\t\t<ul<?php if($classes):?> class=\"<?=$classes?>\"<?php endif;?><?php if($id):?> id=\"<?=$id?>\"<?php endif;?>>\n\t\t\t<?php foreach($items as $key=>$item): $last = $key == count($items) - 1;?>\n\t\t\t<li<?php if($last):?> class=\"last\"<?php endif;?>><a href=\"<?=$item->url?>\"><?=$item->title?></a></li>\n\t\t\t<?php endforeach;?>\n\t\t</ul>\n\t\t<?php\n\t\t$menu = ob_get_clean();\n\t}else{\n\t\t$menu = call_user_func($callback, array($items));\n\t}\n\n\treturn $menu;\n\n}", "title": "" }, { "docid": "483c2eb8abab31bc23d956b6d9d1e36a", "score": "0.57720053", "text": "public function menu_Default()\r\n {\r\n return $this->menu();\r\n }", "title": "" }, { "docid": "ee9f4160c81e7e792cbb00a22e8f983e", "score": "0.57657427", "text": "public static function addMenu(){\n add_menu_page(\n self::INFO_TITLE, // TITLE_PAGE\n self::INFO_MENU, // TITLE_MENU\n self::PERMITION, // CAPABILITY\n self::GROUP, // SLUG_PAGE\n [self::class, 'render'], // CALLBACK\n self::DASHICON, // icon\n 2 // POSITION\n );\n }", "title": "" }, { "docid": "9dfd6b273ee4a52dcd92dd17dd6b9cd1", "score": "0.5756362", "text": "function menu_render($menuName, array $options = array(), $renderer = null)\n{\n $servicesContainer = get_instance()->container;\n $menu = $servicesContainer->get('core.menu.builder.'.$menuName);\n\n if ($renderer) {\n $menuRenderer = $servicesContainer->get($renderer);\n } else {\n $menuRenderer = $servicesContainer->get($menu->getRendererService());\n }\n\n return $menuRenderer->render($menu->build(), $options);\n}", "title": "" }, { "docid": "35b91a34cfcb541361135402dda6aa00", "score": "0.57542723", "text": "public function getMenuURL();", "title": "" }, { "docid": "8e89ecbdf818f382f20f6bd1a6287ab5", "score": "0.5744402", "text": "public static function printOneMenuLink($item, $viewName)\r\n {\r\n\r\n $title = $item['title']; // extract title\r\n $icon = $item['icon']; // extract icon\r\n $id = $item['id']; // extract id\r\n\r\n // set the link\r\n $alink = \"?page=\" . $id;\r\n\r\n // construct <li></li>\r\n echo \"<li\";\r\n\r\n if ($viewName == $id) {\r\n echo ' class=\"current_section\"';\r\n }\r\n\r\n // check if $item has sub-item\r\n if (!isset($item['menu'])) // if not, set the title\r\n {\r\n echo \" title='{$title}'\";\r\n }\r\n\r\n print \">\\n\";\r\n // end <li>\r\n\r\n // print the hrefs\r\n print \" <a href='{$alink}'>\\n\";\r\n print \" <span class='uk-nav-icon'><i class='mdi mdi-message-outline'></i></span>\\n\";\r\n print \" <span class='uk-nav-title'>{$title}</span>\\n\";\r\n print \" </a>\\n\";\r\n\r\n // if the link has sub-menu\r\n if (isset($item['menu'])) {\r\n print \"<ul>\\n\"; // sub-menu\r\n\r\n // $item['menu'] is a sub array\r\n // iterate troug it and structure <li></li>\r\n foreach ($item['menu'] as $sub_item) {\r\n\r\n $pid = $sub_item['id'];\r\n $alink = \"?page=\" . $pid;\r\n\r\n // start <li></li>\r\n print \"<li\";\r\n\r\n // check if the view name is the same as the id\r\n if ($viewName == $pid) // if so make it highlighted\r\n {\r\n echo ' class=\"act_item\"';\r\n }\r\n // make it a clickable link\r\n print \"><a href='{$alink}'>\" . $sub_item['title'] . \"</a></li>\\n\";\r\n }\r\n print \"</ul>\\n\";\r\n }\r\n print \"</li>\\n\";\r\n // end <li>\r\n }", "title": "" }, { "docid": "415f9cff0e25649ebae0459bd83eaa8f", "score": "0.57429415", "text": "public static function addCustomMenuItem($name, $render_callback = false)\n {\n /**\n * Register the custom nav menu item\n */\n add_filter(\"syltaen_custom_nav_menu_items\", function ($items) use ($name, $render_callback) {\n $items[$name] = $render_callback;\n return $items;\n });\n\n /**\n * Render the custom nav menu item, once\n */\n if (!apply_filters(\"syltaen_custom_nav_menu_items_rendered\", false)) {\n add_action(\"admin_init\", function () use ($name) {\n add_meta_box(\"syltaen_custom_nav_link\", __(\"Custom items\"), function () use ($name) {\n global $_nav_menu_placeholder, $nav_menu_selected_id;?>\n <div id=\"posttype-syltaen_custom\" class=\"posttypediv\">\n <div id=\"tabs-panel-syltaen_custom\" class=\"tabs-panel tabs-panel-active\">\n <ul id=\"syltaen_custom-checklist\" class=\"categorychecklist form-no-clear\">\n <?php foreach (apply_filters(\"syltaen_custom_nav_menu_items\", []) as $name => $callback): ?>\n <?php $_nav_menu_placeholder = $_nav_menu_placeholder < 0 ? $_nav_menu_placeholder - 1 : -1;?>\n <li>\n <label class=\"menu-item-title\">\n <input type=\"checkbox\" class=\"menu-item-checkbox\" name=\"menu-item[<?=(int) $_nav_menu_placeholder;?>][menu-item-object-id]\" value=\"-1\"> <?=$name?>\n </label>\n <input type=\"hidden\" class=\"menu-item-type\" name=\"menu-item[<?=(int) $_nav_menu_placeholder;?>][menu-item-type]\" value=\"custom\">\n <input type=\"hidden\" class=\"menu-item-title\" name=\"menu-item[<?=(int) $_nav_menu_placeholder;?>][menu-item-title]\" value=\"<?=$name?>\">\n <!-- <input type=\"hidden\" class=\"menu-item-url\" name=\"menu-item[<?=(int) $_nav_menu_placeholder;?>][menu-item-url]\" value=\"#\"> -->\n </li>\n <?php endforeach;?>\n </ul>\n </div>\n <p class=\"button-controls\">\n <span class=\"add-to-menu\">\n <input type=\"submit\" <?php disabled($nav_menu_selected_id, 0);?> class=\"button-secondary submit-add-to-menu right\" value=\"<?=__(\"Add to Menu\");?>\" name=\"add-post-type-menu-item\" id=\"submit-posttype-syltaen_custom\">\n <span class=\"spinner\"></span>\n </span>\n </p>\n </div>\n <?php }, \"nav-menus\", \"side\", \"low\");\n });\n }\n add_filter(\"syltaen_custom_nav_menu_items_rendered\", \"__return_true\");\n\n /**\n * Render the submenu\n */\n if ($render_callback) {\n add_filter(\"wp_nav_menu_items\", function ($items, $args) use ($name, $render_callback) {\n return str_replace(\"<a>$name</a>\", $render_callback($items), $items);\n }, 10, 2);\n }\n }", "title": "" }, { "docid": "64f2bc6ef04489821a5d5b959f7d9c47", "score": "0.57383657", "text": "public function display_menu()\n {\n if (\n current_user_can('administrator')\n ||\n (current_user_can('editor') && get_option('mailjet_access_editor') == 1)\n ||\n (current_user_can('author') && get_option('mailjet_access_author') == 1)\n ||\n (current_user_can('contributor') && get_option('mailjet_access_contributor') == 1)\n ||\n (current_user_can('subscriber') && get_option('mailjet_access_subscriber') == 1)\n ) {\n add_menu_page(\n __('Manage your mailjet lists and settings', 'wp-mailjet'),\n 'Mailjet',\n 'read',\n 'wp_mailjet_options_top_menu',\n array($this, 'show_settings_menu'),\n plugin_dir_url(__FILE__) . '/assets/images/mj_logo_small.png'\n );\n\n if (function_exists('add_submenu_page'))\n add_submenu_page('wp_mailjet_options_top_menu', __('Change your mailjet settings', 'wp-mailjet'), __('Settings', 'wp-mailjet'), 'read', 'wp_mailjet_options_top_menu', array($this, 'show_settings_menu'));\n }\n }", "title": "" }, { "docid": "6e6db38b8108f047396e4526e6c70e0b", "score": "0.5726631", "text": "public function addMenu($menu_name = 'classic') {\r\n $this->vars['menu'] = APP_PATH . 'views/menus/' . $menu_name . '.phtml';\r\n return $this;\r\n }", "title": "" }, { "docid": "5d64b6222d72ecf8d1763f7b02e056bf", "score": "0.5711691", "text": "function register_menus()\n{\n\n register_nav_menu('service', __('Service menu', 'domo'));\n}", "title": "" }, { "docid": "a15a24e6ed8a5fd5b871eb1ad6f2f7be", "score": "0.57017106", "text": "function theme_nav_menus(){\r\n register_nav_menus( array(\r\n 'main'=>'Main Menu',\r\n 'footer'=>'Footer Menu'\r\n ) );\r\n}", "title": "" }, { "docid": "6a2288d3b0f35dc19bc5edce09f195b7", "score": "0.5701578", "text": "function register_my_menus() {\n register_nav_menus(\n array(\n 'menu-main' => __( 'Menu Main' ),\n 'menu-footer' => __( 'Menu Footer' ),\n )\n );\n}", "title": "" }, { "docid": "eb9e5a0b4f068913ba66dc3798f071bc", "score": "0.5691342", "text": "public function getMenuSlug()\r\n {\r\n return $this->menuSlug;\r\n }", "title": "" }, { "docid": "a907df36441c0198ba1cc251a519b8d0", "score": "0.5688786", "text": "public function course_menu() {\n $courserenderer = $this->page->get_renderer('course');\n $tcmenu = $courserenderer->top_course_menu();\n $cmenushow = theme_enlightlite_get_setting('cmenushow');\n $ccontent = '';\n if ($cmenushow) {\n\n $ccontent = '<li class=\"dropdown d-lg-none d-md-block course-link\">';\n $ccontent .= '<a class=\"nav-item nav-link\" href=\"javascript:void(0);\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">';\n\n $ccontent .= get_string('courses').'<i class=\"fa fa-chevron-down\"></i><span class=\"caretup\"></span></a>';\n $ccontent .= $tcmenu['topmmenu'];\n $ccontent .= '</li><li class=\"d-none d-lg-block course-link\" id=\"cr_link\">';\n $ccontent .= '<a class=\"nav-item nav-link\" href=\"'.new moodle_url('/course/index.php').'\" >'.get_string('courses');\n $ccontent .= '<i class=\"fa fa-chevron-down\"></i><span class=\"caretup\"></span></a>'.$tcmenu['topcmenu'].'</li>';\n } else {\n $ccontent = '';\n }\n\n return $ccontent;\n }", "title": "" } ]
f281f90ea4634b698d8380f25323d6e6
echo ''; print_r($_POST); die;
[ { "docid": "b1ba6cdd0ec9091ad1da7e50a7150a7e", "score": "0.0", "text": "function create() {\n\t\t$data[ 'title' ] = 'Requests';\n\t\tif ( isset( $_POST ) && count( $_POST ) > 0 ) {\n\t\t\t$request_type = $this->input->post('request_type');\n\t\t\t$user_id = $this->session->userdata( 'usr_id' );\n\t\t\tif($request_type == '1') {\n\t\t$mname = $this->input->post( 'material_name' );\n\t\t$project = $this->input->post( 'project' );\n\t\t//print_r($project); die;\n\t\t$project_id = $this->input->post( 'project_id' );\n\t\t$qty = $this->input->post('qty');\n\t\t$unit_type = $this->input->post('unit_type');\n\t\t$remarks = $this->input->post('remarks');\n\t\t$priority = $this->input->post('priority');\n\t\t\n \t\t$params = array(\n\t\t\t\t\t\t'project_id' => $project_id,\n\t\t\t\t\t\t'project' => $project,\n\t\t\t\t\t\t'mname' => $mname,\n\t\t\t\t\t\t'qty' => $qty,\n\t\t\t\t\t\t'unit_type' => $unit_type,\n\t\t\t\t\t\t'remarks' => $remarks,\n\t\t\t\t\t\t'priority' => $priority,\n\t\t\t\t\t\t'user_id' => $user_id,\n\t\t\t\t\t\t'status' => 1,\n\t\t\t\t\t\t'created' => date( 'Y-m-d H:i:s' )\n\t\t\t\t\t\t\n\t\t\t\t\t);\n\t\t\t\t\t\n\t\t\t\t\t$this->db->insert('material_req', $params );\n\t\t\t\t\t\n\t\t\t\t\t$material_id = $this->db->insert_id();\n\t\t\t\t\t$mat = $this->Mrequests_Model->get_product_name($mname);\n\t\t\t\t\t$req_params = array(\n\t\t\t\t\t'request_type' =>$request_type, \n\t\t\t\t\t'name' => $mat['productname'],\n\t\t\t\t\t'request_id' => $material_id,\n\t\t\t\t\t'user_id' => $user_id,\n\t\t\t\t\t'status' => 0,\n\t\t\t\t\t'created' => date( 'Y-m-d ' )\n \t\t\t\t\t\n\t\t\t\t\t) ;\n\t\t\t\t\t\n\t\t\t\t\t$this->db->insert('all_req', $req_params );\n\t\t\t}\n\t\t\telse if($request_type == '2'){\n\t\t\t\t$employee_id = $this->input->post( 'employee_id' );\n\t\t$type_of_leave = $this->input->post( 'type_of_leave' );\n\t\t$leave_start_date = $this->input->post( 'leave_start_date' );\n\t\t$rejoin_date = $this->input->post( 'rejoin_date' );\n\t\t$no_of_days = $this->input->post( 'no_of_days' );\n\t\t$user_id = $this->session->userdata( 'usr_id' );\n \t\t\n \t\t$params = array(\n\t\t\t\t\t\t'employee_id' => $employee_id,\n\t\t\t\t\t\t'type_of_leave' => $type_of_leave,\n\t\t\t\t\t\t'leave_start_date' => date('Y-m-d',strtotime($leave_start_date)),\n\t\t\t\t\t\t'rejoin_date' => date('Y-m-d',strtotime($rejoin_date)),\n\t\t\t\t\t\t'no_of_days' => $no_of_days,\n\t\t\t\t\t\t'user_id' => $user_id,\n\t\t\t\t\t\t'status' => 1,\n\t\t\t\t\t\t'created' => date( 'Y-m-d H:i:s' ), \n\t\t\t\t\t\t\n\t\t\t\t\t);\n\t\t\t\t\t$this->db->insert( 'leave_requests', $params );\n\t\t\t\t\t$leave_id = $this->db->insert_id();\n\t\t\t\t\t$req_params = array(\n\t\t\t\t\t'request_type' =>$request_type, \n\t\t\t\t\t'name' => $type_of_leave,\n\t\t\t\t\t'request_id' => $leave_id,\n\t\t\t\t\t'user_id' => $user_id,\n\t\t\t\t\t'status' => 0,\n\t\t\t\t\t'created' => date( 'Y-m-d ')\n \t\t\t\t\t\n\t\t\t\t\t) ;\n\t\t\t\t\t\n\t\t\t\t\t$this->db->insert('all_req', $req_params );\n\t\t\t\t\n\t\t\t}\n\t\t\telse if($request_type == '3'){\n\t\t\t\t\t$vendor_id = $this->input->post( 'vendor_id' );\n\t\t$bill_date = $this->input->post('bill_date');\n\t\t$reference = $this->input->post('reference');\n\t\t$amount = $this->input->post('amount');\n\t\t$vendor = $this->Billrequests_Model->get_vendor_name($vendor_id);\n\t\t$user_id = $this->session->userdata( 'usr_id' );\n\t\tif($vendor == ''){\n\t\t\t$params = array('company' => $vendor_id);\n\t\t\t$this->db->insert( 'vendors', $params );\n\t\t}\n \t\t$params = array(\n\t\t\t\t\t\t'vendor_id' => $vendor_id,\n\t\t\t\t\t\t'bill_date' => date('Y-m-d',strtotime($bill_date)),\n\t\t\t\t\t\t'reference' => $reference,\n\t\t\t\t\t\t'amount' => $amount,\n\t\t\t\t\t\t'user_id' => $user_id,\n\t\t\t\t\t\t'status' => 1,\n\t\t\t\t\t\t'created' => date( 'Y-m-d' ), \n\t\t\t\t\t\t\n\t\t\t\t\t);\n\t\t\t\t\t$this->db->insert( 'bill_requests', $params );\n\t\t\n\t\t\t\t\t$bill_id = $this->db->insert_id();\n\n\t\t\t//echo json_encode($data);\n\t\t$req_params = array(\n\t\t\t\t\t'request_type' =>$request_type, \n\t\t\t\t\t'name' => $vendor_id,\n\t\t\t\t\t'request_id' => $bill_id,\n\t\t\t\t\t'user_id' => $user_id,\n\t\t\t\t\t'status' => 0,\n\t\t\t\t\t'created' => date( 'Y-m-d ')\n \t\t\t\t\t\n\t\t\t\t\t) ;\n\t\t\t\t\t\n\t\t\t\t\t$this->db->insert('all_req', $req_params );\n\t\t\tif (!is_dir('uploads/files/billrequests/'.$bill_id)) { \n\t\t\t\t\tmkdir('./uploads/files/billrequests/'.$bill_id, 0777, true);\n\t\t\t\t}\n\t\t\t\t $data = [];\n \n $count = count($_FILES['files']['name']);\n \n for($i=0;$i<$count;$i++){\n \n if(!empty($_FILES['files']['name'][$i])){\n \n $_FILES['file']['name'] = $_FILES['files']['name'][$i];\n $_FILES['file']['type'] = $_FILES['files']['type'][$i];\n $_FILES['file']['tmp_name'] = $_FILES['files']['tmp_name'][$i];\n $_FILES['file']['error'] = $_FILES['files']['error'][$i];\n $_FILES['file']['size'] = $_FILES['files']['size'][$i];\n \n $config[ 'upload_path' ] = './uploads/files/billrequests/'.$bill_id.'';\n $config['allowed_types'] = 'zip|rar|tar|gif|jpg|png|jpeg|gif|pdf|doc|docx|xls|xlsx|txt|csv|ppt|opt';\n //$config['max_size'] = '5000';\n\t\t $ext = explode(\".\", $_FILES['file']['name']);\n //$config['file_name'] = $_FILES['files']['name'][$i];\n \n\t\t\t // $image_name = \"Others-\".$size.rand(0,5000000).\".\".end($ext);\n $config['file_name'] = $_FILES['file']['size'].rand(0,5000000).\".\".end($ext);\n $this->load->library('upload',$config); \n \n if($this->upload->do_upload('file')){\n\t\t\t \n $uploadData = $this->upload->data();\n\t\t\t\n $filename = $uploadData['file_name'];\n\t\t\t$filetype = $uploadData['file_type'];\n\t\t\t$params = array('bill_id' => $bill_id,\n\t\t\t\t\t\t\t'file_name' => $filename,\n\t\t\t\t\t\t\t'filetype' => $filetype\n\t\t\t);\n\t\t\t$this->db->insert( 'bill_request_files', $params );\n \n } \n }\n\t\t\n }\n\t\t\t}\n\t\t\telse if($request_type == '4'){\n\t\t\t\t\n\t\t\t\t$employee_id = $this->input->post( 'employee_id' );\n\t\t$type_of_salary = $this->input->post( 'type_of_salary' );\n\t\t$from_date = $this->input->post( 'from_date' );\n\t\t$to_date = $this->input->post( 'to_date' );\n\t\t$amount = $this->input->post( 'amount' );\n\t\t$remarks = $this->input->post( 'remarks' );\n\t\t$user_id = $this->session->userdata( 'usr_id' );\n\t\n \t\t\n \t\t$params = array(\n\t\t\t\t\t\t'employee_id' => $employee_id,\n\t\t\t\t\t\t'type_of_salary' => $type_of_salary,\n\t\t\t\t\t\t'from_date' => $from_date,\n\t\t\t\t\t\t'to_date' => $to_date,\n\t\t\t\t\t\t'amount' => $amount,\n\t\t\t\t\t\t'remarks' => $remarks,\n\t\t\t\t\t\t'user_id' => $this->session->userdata( 'usr_id' ),\n\t\t\t\t\t\t'status' => 1,\n\t\t\t\t\t\t'created' => date( 'Y-m-d H:i:s' ), \n\t\t\t\t\t\t\n\t\t\t\t\t);\n\t\t\t\t\t$this->db->insert( 'salary_requests', $params );\n\t\t\t\t\t$salary_id = $this->db->insert_id();\n\t\t\t\t\tif($type_of_salary == '1'){\n\t\t\t\t\t\t$request_name = 'Monthly Advance';\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$request_name = 'Leave Salary';\n\t\t\t\t\t}\n\t\t\t\t\t$req_params = array(\n\t\t\t\t\t'request_type' =>$request_type, \n\t\t\t\t\t'name' => $request_name,\n\t\t\t\t\t'request_id' => $salary_id,\n\t\t\t\t\t'user_id' => $user_id,\n\t\t\t\t\t'status' => 0,\n\t\t\t\t\t'created' => date( 'Y-m-d ')\n \t\t\t\t\t\n\t\t\t\t\t) ;\n\t\t\t\t\t\n\t\t\t\t\t$this->db->insert('all_req', $req_params );\n\t\t\t\t\n\t\t\t}\n\t\t\telse if($request_type == '5'){\n\t\t\t\t\n\t\t\t\t$description = $this->input->post( 'description' );\n\t\t$qty = $this->input->post('qty');\n\t\t$user_id = $this->session->userdata( 'usr_id' );\n \t\t$params = array(\n\t\t\t\t\t\t'description' => $description,\n\t\t\t\t\t\t'qty' => $qty,\n\t\t\t\t\t\t'user_id' => $user_id,\n\t\t\t\t\t\t'status' => 1,\n\t\t\t\t\t\t'created' => date( 'Y-m-d H:i:s' ), \n\t\t\t\t\t\t\n\t\t\t\t\t);\n\t\t\t\t\t$this->db->insert( 'other_requests', $params );\n\t\t\t\t\t$oreq_id = $this->db->insert_id();\n\n\t\t\t//echo json_encode($data);\n\t\t\t\n\t\t\t$req_params = array(\n\t\t\t\t\t'request_type' =>$request_type, \n\t\t\t\t\t'name' => $description,\n\t\t\t\t\t'request_id' => $oreq_id,\n\t\t\t\t\t'user_id' => $user_id,\n\t\t\t\t\t'status' => 0,\n\t\t\t\t\t'created' => date( 'Y-m-d ' )\n \t\t\t\t\t\n\t\t\t\t\t) ;\n\t\t\t\t\t\n\t\t\t\t\t$this->db->insert('all_req', $req_params );\n\t\t\n\t\t\tif (!is_dir('uploads/files/orequests/'.$oreq_id)) { \n\t\t\t\t\tmkdir('./uploads/files/orequests/'.$oreq_id, 0777, true);\n\t\t\t\t}\n\t\t\t\t $data = [];\n \n $count = count($_FILES['files']['name']);\n \n \n for($i=0;$i<$count;$i++){\n \n if(!empty($_FILES['files']['name'][$i])){\n \n $_FILES['file']['name'] = $_FILES['files']['name'][$i];\n $_FILES['file']['type'] = $_FILES['files']['type'][$i];\n $_FILES['file']['tmp_name'] = $_FILES['files']['tmp_name'][$i];\n $_FILES['file']['error'] = $_FILES['files']['error'][$i];\n $_FILES['file']['size'] = $_FILES['files']['size'][$i];\n // print_r($_FILES['files']['name'][$i]);\n $config[ 'upload_path' ] = './uploads/files/orequests/'.$oreq_id.'';\n $config['allowed_types'] = 'jpg|jpeg|png|gif';\n // $config['max_size'] = '5000';\n $ext = explode(\".\", $_FILES['file']['name']);\n\t\t\t // $image_name = \"Others-\".$size.rand(0,5000000).\".\".end($ext);\n $config['file_name'] = $_FILES['file']['size'].rand(0,5000000).\".\".end($ext);\n // print_r($config['file_name']); \n $this->load->library('upload',$config); \n \n if($this->upload->do_upload('file')){\n\t\t\t \n $uploadData = $this->upload->data();\n\t\t\t//print_r($uploadData); \n $filename = $uploadData['file_name'];\n\t\t\t$filetype = $uploadData['file_type'];\n\t\t\t$params = array('request_id' => $oreq_id,\n\t\t\t\t\t\t\t'file_name' => $filename,\n\t\t\t\t\t\t\t'filetype' => $filetype\n\t\t\t);\n\t\t\t$this->db->insert( 'other_request_files', $params );\n \n } \n }\n\t\t\n }\n\t \n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\t\tredirect(base_url().'mrequests');\n\t\t\t}\n\t\t\n\t\t\n\t}", "title": "" } ]
[ { "docid": "dcc0fd3422dabd97782459fb512f69ea", "score": "0.8180432", "text": "function show_post(){\n\t\tprint \"<pre>\";\n\t\tprint_r($_POST);\n\t\tprint \"</pre>\";\n}", "title": "" }, { "docid": "3de74cba2e38a373759ed9415f8d715c", "score": "0.77293", "text": "function finger_print(){\n $result = extract($_POST);\n echo \"<pre>\";\n print_r($result);\n }", "title": "" }, { "docid": "8ba1c2064c7b9225197eda03ee6eced2", "score": "0.74191165", "text": "public static function store()\n {\n print_r($_POST);\n }", "title": "" }, { "docid": "aa736fa24188c10e2b001a40d51d333d", "score": "0.71254617", "text": "public function lpost(){\r\n\t\treset($_POST);\r\n\t\techo \"<hr>\";\r\n\t\twhile (list ($clave, $val) = each($_POST)) {\r\n\t\t\techo \"$clave = \" . $_POST[\"$clave\"] . \" \";\r\n\t\t}\r\n\t\techo \"</hr>\";\r\n\t}", "title": "" }, { "docid": "01c5c642d30d163c180818e2fcf254ec", "score": "0.674262", "text": "function getPOSTData() {\n //pre-filling of the form.\n $postdata = '';\n\n foreach($_POST as $key => $value) {\n $postdata .= '&' . htmlspecialchars($key, ENT_QUOTES, 'UTF-8') . '=' . htmlspecialchars($value, ENT_QUOTES, 'UTF-8');\n }\n\n return $postdata;\n}", "title": "" }, { "docid": "9ae7c27bbf10566865e116337d8028d1", "score": "0.66920424", "text": "public function account_post()\n {\n //print_r($this->input->post());\n }", "title": "" }, { "docid": "5c5fa66780dd22323460ca1e5d73b7a6", "score": "0.6646591", "text": "public function p_signup() {\n\t\tprint_r($_POST);\n\t\t\n\t}", "title": "" }, { "docid": "aa07dcc5a8e1912144a3ae34006faed2", "score": "0.6512697", "text": "public function post(){\r\n return $_POST;\r\n }", "title": "" }, { "docid": "886ea0eeed75b139fbb032f296bec39c", "score": "0.65037763", "text": "public static function create()\n {\n print_r($_POST);\n }", "title": "" }, { "docid": "886ea0eeed75b139fbb032f296bec39c", "score": "0.65037763", "text": "public static function create()\n {\n print_r($_POST);\n }", "title": "" }, { "docid": "a5e0d4a77484775c40879a839d81744f", "score": "0.6414618", "text": "public function getRawPOST(){\n\t\treturn $this->rawPOST;\n\t}", "title": "" }, { "docid": "1be4df3a4cab9ff7bf469a8244c2def0", "score": "0.6403386", "text": "public function getRawPostInput()\n {\n return isset($_POST) ? $_POST : null;\n }", "title": "" }, { "docid": "333247f7c517695377e421694883db76", "score": "0.638133", "text": "function set_parcel_post() {\n\n\tforeach ( $_POST as $a => $b ) {\n\t\techo \"<input type='hidden' name='\" . htmlentities($a) . \"' value='\" . htmlentities($b) . \"'>\";\n\t}\n}", "title": "" }, { "docid": "96af114b5f44c6b9894b3f1151272b39", "score": "0.6340977", "text": "function post () {\n if( isset( $_POST ) ) {\n $_POST = json_decode(file_get_contents(\"php://input\"),true);\n return (object) $_POST;\n }\n return \"\";\n}", "title": "" }, { "docid": "7f7036606cece6fa700906600199906d", "score": "0.63134694", "text": "function getFormInfo() {\n $liste = ['_GET'=>$_GET, '_POST'=>$_POST, '_FILES'=>$_FILES];\n return monPrint_r($liste,true);\n}", "title": "" }, { "docid": "06ebadf00c2cff3bfb60f614ae627f15", "score": "0.63107425", "text": "function getpost() {\n $keys = array_keys($_POST);\n $url = \"/\";\n $posts = array();\n foreach ($keys as $key) {\n $posts[$key] = filter_input(INPUT_POST, $key, FILTER_SANITIZE_STRING);\n }\n return $posts;\n}", "title": "" }, { "docid": "e794c25d5399a4e2547a96c23f0fdbf9", "score": "0.6274245", "text": "public function get()\n\n {\n\n\n if ($GLOBALS['HTTP_RAW_POST_DATA'])\n\n echo $GLOBALS['HTTP_RAW_POST_DATA'];\n\n }", "title": "" }, { "docid": "77b7bbcfaa8fa71519435d1f46a22ee2", "score": "0.6241228", "text": "function limpiarPOST()\n\t{\n\t\t$clean = false;\n\t\n\t\twhile (list ($clave, $valor) = each ($_POST))\n\t\t\t$clean[$clave] = addslashes(htmlspecialchars($valor));\n\t\t\t\t\n\t\treturn $clean;\t\n\t}", "title": "" }, { "docid": "4e24b70c07786c2c9fd0060d5321f3e9", "score": "0.6235826", "text": "function seed_from_POST()\n\t{\n\t\tforeach($_POST as $key => $value)\n\t\t{\n\t\t\t$this->$key = !isset($key[$value]) || is_null(trim($key[$value])) ? \"\" : $value;\n\t\t\tif ($key != \"submit\")\n\t\t\t{\n\t\t\t\t$this->$key = $value;\n\t\t\t//\techo \"<br />\".$this->$key;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6e85f6652e14a43501104ea24c099bd2", "score": "0.6218804", "text": "function qlinks_settings_section_callback()\n{\n\t//echo '<pre>'.print_r($_POST,1).'</pre>';\n\t//if($_POST['']){}\n\n}", "title": "" }, { "docid": "1cc1860e8767082878b27e06b54ce22a", "score": "0.6218649", "text": "function debug() {\n\n GLOBAL $HTTP_POST_VARS;\n GLOBAL $HTTP_GET_VARS;\n GLOBAL $debug;\n\n if ($debug) {\n print \"<b>&Uuml;bergebene Parameter:<p></b>\\n\";\n foreach ($HTTP_POST_VARS as $k=>$v) {\n\t print \"POST \";\n if (is_array($v)) {\n\t foreach ($v as $ek=>$ev)\n print \"&nbsp; &nbsp;$k [$ek] : $ev<br>\";\n print \"<br>\\n\";\n } else {\n print \"$k : $v<br>\\n\";\n } \n }\n \n foreach ($HTTP_GET_VARS as $k=>$v) {\n\t print \"GET \";\n if (is_array($v)) {\n\t foreach ($v as $ek=>$ev)\n print \"&nbsp; &nbsp;$k [$ek] : $ev<br>\";\n print \"<br>\\n\";\n } else {\n print \"$k : $v<br>\\n\";\n } \n }\n }\n}", "title": "" }, { "docid": "71a4f89e55c4ecb6252b153049c42e67", "score": "0.61940604", "text": "function protectPostGet() \n{\n\thtmlentitiesArray($_POST);\n\thtmlentitiesArray($_GET);\n}", "title": "" }, { "docid": "2276f22d8e76b61f8dd81443dc4754d3", "score": "0.6155883", "text": "public static function postRequest(){\n return filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING);\n }", "title": "" }, { "docid": "073df45249063b2015d07813138f9e08", "score": "0.61504287", "text": "function extract_data()\n {\n $data = array();\n\n // To retrieve all param-value pairs from a post object\n foreach ($_POST as $key => $val)\n {\n $data[$key] = $val; // record all form data to an array\n }\n reset($data);\n return $data;\n }", "title": "" }, { "docid": "0b2598b50ce3825ab3aa88b96bfc3900", "score": "0.6143416", "text": "public function debug( $form )\n {\n var_dump( $_POST );\n $fields = array(\n // Singe Input Fields\n 'delimiter' ,\n 'ismultiple_value' ,\n 'isnodeplacement_value' ,\n 'donotallowremoval_value' ,\n // Per option fields:\n 'option_name_array' ,\n 'option_identifier_array' ,\n 'option_priority_array' ,\n 'option_remove_array' ,\n // Per option Buttons (images)\n 'move_option_up' ,\n 'move_option_down' ,\n // Buttons\n 'removeoption_button' ,\n 'newoption_button' ,\n 'sort_options' ,\n // Selectbox\n 'sort_options_order' \n );\n\n\n foreach( $fields as $field )\n {\n echo \"Field <b>\",$field,\"</b> has valid Data: \";\n echo $form->hasValidData( $field ) ? \"TRUE\" : \"FALSE\";\n echo \"<br />\";\n if( $form->hasValidData( $field ) )\n {\n var_dump( $form->$field );\n }\n }\n\n }", "title": "" }, { "docid": "dcaa55890e86bbaa422e3dedb78f536a", "score": "0.6138328", "text": "public function getPostVars() {\n\n return $this->_POST;\n\n }", "title": "" }, { "docid": "a579715be96252ec7789098ac2d38141", "score": "0.61274296", "text": "public static function post() {\r\n return self::__filter($_POST);\r\n }", "title": "" }, { "docid": "0eafdc4fd059035d73ac758f3cd2a293", "score": "0.6124149", "text": "function sanitizePost()\n{\n sanitizeArray($_POST);\n\n}", "title": "" }, { "docid": "07b42ef6274990f7804c3bc5552d2a1a", "score": "0.6107445", "text": "public function getRawPostArguments() {\n\t\treturn $this->POST;\n\t}", "title": "" }, { "docid": "891920b62f8ef9695df3b09996d679d4", "score": "0.6093041", "text": "function postman($args)\n {\n var_dump($args['NAME']);\n // e/cho 'hi postman';\n var_dump($_POST);\n var_dump($_GET);\n var_dump($_REQUEST);\n }", "title": "" }, { "docid": "9d3ecd40b6b723cf492f4bbb411307ad", "score": "0.6079612", "text": "public function getData()\n {\n return $_POST;\n }", "title": "" }, { "docid": "29373a326aea0167518436da52840fba", "score": "0.60595554", "text": "private function RetrievePostVariables() {\n $this->name = isset($_POST[\"name\"]) ? $_POST[\"name\"] : \"\";\n $this->surname = isset($_POST[\"surname\"]) ? $_POST[\"surname\"] : \"\";\n $this->username = isset($_POST[\"username\"]) ? $_POST[\"username\"] : \"\";\n $this->email = isset($_POST[\"email\"]) ? $_POST[\"email\"] : \"\";\n $this->password = isset($_POST[\"password\"]) ? $_POST[\"password\"] : \"\";\n }", "title": "" }, { "docid": "0ba53f95b7602b195fff1163ba269a59", "score": "0.6056782", "text": "function loadPost($debug=0 )\n\t\t{ \tif($debug === __FUNCTION__ ) { echo __FUNCTION__ ; var_dump( func_num_args()); } \n\t\n\t\t\ttry {\n\t\t \t// use controller to pocess posted & validate form fields \n\t\t\t \t\tif($_POST['submit'])\n\t\t\t\t\t { \n\t\t\t\t\t \tforeach ($_POST as $var => $value)\n\t\t\t\t\t\t\t\t{ $field[$var] = $this->input->post($var); //or whatever is the FIELD NAME \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//print_r($field);\n\t\t\t\t\t\t\t//$this->load->database();\n\t\t\t\t\t\t\t//$this->db->insert('admin_user',$field);\n\t\t\t\t\t\n\t\t\t\t\tforeach ($field as $var => $value)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//$this->$var =& $value;\n\t\t\t\t\t\t\t\t//echo $var . \"===\" . $value . \"<br>\";\n\t\t\t\t\t\t\t\t//echo $this->input->post($var);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t \n } catch (Exception $e) {\n \t print_r($e->getLine() . \": \" . $e->getMessage() . \" : \\n\" . $e->getTraceAsString());\n } //END catch\n \t \t \n\t }", "title": "" }, { "docid": "e6c22de32858bbbfdb6f7051b637d9f8", "score": "0.6056358", "text": "function getPostData() {\n\t$post = array();\n\t$post['first_name'] = isset( $_POST['first_name'] ) ? SafeInput( $_POST['first_name'], 30): '';\n\t$post['email'] = isset( $_POST['email'] ) ? addslashes( filter_var( $_POST['email'], FILTER_SANITIZE_EMAIL ) ) : '';\n\treturn $post;\n}", "title": "" }, { "docid": "1f86e9715bb71e7cfd15dfcfcb69257e", "score": "0.6054834", "text": "function forward_sms(){\n $data = extract($_POST);\n echo \"<pre>\";\n print_r($data);\n }", "title": "" }, { "docid": "f1c17fbee7c7dfa61d54bddffb47aa36", "score": "0.6050575", "text": "public function getPost()\n\t{\n\t\tif (!$this->isPost()) {\n\t\t\treturn array();\n\t\t}\n\t\treturn Zend_Controller_Front::getInstance()->getRequest()->getPost();\n\t}", "title": "" }, { "docid": "280bb3db4e1c833852bae05ea7481379", "score": "0.604711", "text": "function get_post(){\n\treturn json_decode(file_get_contents('php://input'), true);\n}", "title": "" }, { "docid": "77ca70938db2381b907eb0ad09144ad7", "score": "0.6034458", "text": "public function all()\n {\n if (isset($_POST)) {\n return $_POST;\n }\n return array();\n }", "title": "" }, { "docid": "db9f4c4b6b2044a9fd10845d9155aa4e", "score": "0.6029001", "text": "function call_post(){\n\t\tunset($_POST['action']);\n\n\t\tforeach($_POST as $key => $value) {\n\t\t\tglobal ${$key};\n\t\t\t${$key} = stripslashes($value);\n\t\t}\n\n\n}", "title": "" }, { "docid": "2bfdc6a3de4f91e8f33dd378df4651fa", "score": "0.60262614", "text": "function get_post_raw_data()\n{\n return file_get_contents(\"php://input\");\n}", "title": "" }, { "docid": "5ac30966990e3a534f84eea978ab28ef", "score": "0.60213727", "text": "function is_post()\n{\n\treturn $_SERVER['REQUEST_METHOD'] == 'POST';\n}", "title": "" }, { "docid": "d4bf6f34e86e7300f714b228feb2587e", "score": "0.60213697", "text": "function process_post()\n{\n $myReturn = ''; //set to initial empty value\n\n foreach($_POST as $varName=> $value)\n {#loop POST vars to create JS array on the current page - include email\n $strippedVarName = str_replace(\"_\",\" \",$varName);#remove underscores\n if(is_array($_POST[$varName]))\n {#checkboxes are arrays, and we need to collapse the array to comma separated string!\n $myReturn .= $strippedVarName . \": \" . implode(\",\",$_POST[$varName]) . PHP_EOL;\n }else{//not an array, create line\n $myReturn .= $strippedVarName . \": \" . $value . PHP_EOL;\n }\n }\n return $myReturn;\n}", "title": "" }, { "docid": "d4bf6f34e86e7300f714b228feb2587e", "score": "0.60213697", "text": "function process_post()\n{\n $myReturn = ''; //set to initial empty value\n\n foreach($_POST as $varName=> $value)\n {#loop POST vars to create JS array on the current page - include email\n $strippedVarName = str_replace(\"_\",\" \",$varName);#remove underscores\n if(is_array($_POST[$varName]))\n {#checkboxes are arrays, and we need to collapse the array to comma separated string!\n $myReturn .= $strippedVarName . \": \" . implode(\",\",$_POST[$varName]) . PHP_EOL;\n }else{//not an array, create line\n $myReturn .= $strippedVarName . \": \" . $value . PHP_EOL;\n }\n }\n return $myReturn;\n}", "title": "" }, { "docid": "d4bf6f34e86e7300f714b228feb2587e", "score": "0.60213697", "text": "function process_post()\n{\n $myReturn = ''; //set to initial empty value\n\n foreach($_POST as $varName=> $value)\n {#loop POST vars to create JS array on the current page - include email\n $strippedVarName = str_replace(\"_\",\" \",$varName);#remove underscores\n if(is_array($_POST[$varName]))\n {#checkboxes are arrays, and we need to collapse the array to comma separated string!\n $myReturn .= $strippedVarName . \": \" . implode(\",\",$_POST[$varName]) . PHP_EOL;\n }else{//not an array, create line\n $myReturn .= $strippedVarName . \": \" . $value . PHP_EOL;\n }\n }\n return $myReturn;\n}", "title": "" }, { "docid": "fa30e0f769938ed711962e41fb408e4c", "score": "0.6011174", "text": "function myFunction(){\n\t\n\tparse_str($_POST['values'], $my_array_of_vars);\n print_r($my_array_of_vars);\n\tdie();\n}", "title": "" }, { "docid": "4b0f3e37b20f70a109e54ed6836008ac", "score": "0.60098237", "text": "function p($vars){\n echo \"<pre>\";\n print_r($vars);\n echo \"</pre>\";\n die;\n}", "title": "" }, { "docid": "48a04e1cbdf6d64692248e0526888486", "score": "0.59864223", "text": "function p2globals(/* args */) {\n return superglobal2globals($_POST,func_get_args());\n}", "title": "" }, { "docid": "ad7c179d01a3852b56c6e7805d539717", "score": "0.5980422", "text": "function whatIsHappening()\n{\n echo '<h2>$_GET</h2>';\n var_dump($_GET);\n echo '<h2>$_POST</h2>';\n var_dump($_POST);\n echo '<h2>$_COOKIE</h2>';\n var_dump($_COOKIE);\n echo '<h2>$_SESSION</h2>';\n var_dump($_SESSION);\n}", "title": "" }, { "docid": "f77e997afda8ee4e1d2e461cf0625a38", "score": "0.59520525", "text": "public function emptyPost(){\n\t\t$_POST = array();\n $this->post = $_POST;\n\t}", "title": "" }, { "docid": "38d67446a87406a5a81c95216e4c3649", "score": "0.5949109", "text": "function method_post(){\r\n\treturn count($_POST) > 0; //$_SERVER['REQUEST_METHOD'] === 'POST';\r\n}", "title": "" }, { "docid": "e3e84bf6912c75dd42b604569e151638", "score": "0.59485644", "text": "function posted_value($name) {\r\n\tif(isset($_POST[$name]))\r\n\t\treturn htmlspecialchars($_POST[$name]);\r\n}", "title": "" }, { "docid": "b080e3786e6b3c7eeace6144a43f42eb", "score": "0.5944805", "text": "function register()\n\t{\n\t\textract($_POST);\n\t}", "title": "" }, { "docid": "ac1d7cfc74c2f4e8f216df64fec164e3", "score": "0.5943138", "text": "function whatIsHappening()\n{\n echo '<h2>$_GET</h2>';\n var_dump($_GET);\n echo '<h2>$_POST</h2>';\n var_dump($_POST);\n echo '<h2>$_COOKIE</h2>';\n var_dump($_COOKIE);\n echo '<h2>$_SESSION</h2>';\n var_dump($_SESSION);\n}", "title": "" }, { "docid": "45af64802af74b6caeefeb6e681f9425", "score": "0.59243053", "text": "function getInputValues($name)\n {\n if(isset($_POST[$name])) {\n echo $_POST[$name];\n }\n }", "title": "" }, { "docid": "b028b683ebc637875c28570d428ea96f", "score": "0.59198254", "text": "private function getPostParams()\n {\n foreach ($_POST as $key => $value) {\n $this->params[$key] = htmlentities($value);\n }\n }", "title": "" }, { "docid": "ece1746c3d09a5f42db179e03ba519f7", "score": "0.59180874", "text": "function postvar($v,$d='') { return (isset($_POST[$v]))?$_POST[$v]:$d; }", "title": "" }, { "docid": "bef5f8ad1d7488f66b0495c5819ab5b3", "score": "0.5915536", "text": "function cisess_set_post_vars(){\n foreach ($_POST as $key=>$item):\n if (!empty($_POST[$key])){\n\n cisess($key,$_POST[$key]);\n\n }\n endforeach;\n\n}", "title": "" }, { "docid": "02b63ba97fcff5663a1edf18b7d2dc4e", "score": "0.59154004", "text": "function ep($str){\n if(is_string($str) && isset($_POST[$str]) )\n echo $_POST[$str];\n}", "title": "" }, { "docid": "b5b384148fe0ea07c0e273b8a101cb61", "score": "0.5912329", "text": "function display_errors() {\n global $errors;\n if($_SERVER[\"REQUEST_METHOD\"] == \"POST\"){\n foreach($errors as $error => $errorMsg){\n echo $errorMsg;\n echo \"<br>\";\n }\n }\n return;\n}", "title": "" }, { "docid": "c73b0eaf0d4d0c5371c75000c6b6acf7", "score": "0.59117734", "text": "public function inputs(){\n if($_SERVER['REQUEST_METHOD'] == \"POST\"){\n foreach($_POST as $name => $value){\n $this->inputs[$name] = $this->sanInput($value);\n }\n }\n }", "title": "" }, { "docid": "f06a8a1b1bafee888746e9f2cd47e841", "score": "0.5909092", "text": "function getDump() {\n\t\t$data = \"\";\n\t\tforeach($_SERVER AS $option => $value) {\n\t\t\t$data .= \"{$option} : {$value} \\n\";\n\t\t}\n\t\t$data.= \"\\n\\n\".str_repeat(\"=\", 20).\"\\nPOST DUMP: \\n\\n\".print_r($_POST,true);\n\t\t$data.= \"\\n\\n\".str_repeat(\"=\", 20).\"\\nCOOKIE DUMP: \\n\\n\".print_r($_COOKIE,true);\n\t\tif(!empty($_FILES)) {\n\t\t\t$data.= \"\\n\\n\".str_repeat(\"=\", 20).\"\\nFILES DUMP: \\n\\n\".print_r($_FILES,true);\n\t\t}\n\t\tif(isset($_SESSION)) {\n\t\t\t$data.= \"\\n\\n\".str_repeat(\"=\", 20).\"\\nSESSION DUMP: \\n\\n\".print_r($_SESSION,true);\n\t\t}\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "a8edf9336b3b43b1e30222fe3776209b", "score": "0.59060776", "text": "public function getAllPostInput()\n {\n if(isset($_POST))\n {\n $postData = [];\n foreach($_POST as $field => $value)\n {\n $postData[$field] = filter_input(INPUT_POST, $field, FILTER_SANITIZE_STRING);\n }\n return $postData;\n }\n return false;\n }", "title": "" }, { "docid": "83b0a233eff6d799bf372a95c125c8e8", "score": "0.59047276", "text": "function process_post()\n{//loop through POST vars and return a single string\n $myReturn = ''; //set to initial empty value\n\n foreach($_POST as $varName=> $value)\n {#loop POST vars to create JS array on the current page - include email\n $strippedVarName = str_replace(\"_\",\" \",$varName);#remove underscores\n if(is_array($_POST[$varName]))\n {#checkboxes are arrays, and we need to collapse the array to comma separated string!\n $myReturn .= $strippedVarName . \": \" . implode(\",\",$_POST[$varName]) . PHP_EOL;\n }else{//not an array, create line\n $myReturn .= $strippedVarName . \": \" . $value . PHP_EOL;\n }\n }\n return $myReturn;\n}", "title": "" }, { "docid": "250b2750c0902b59a754ed59e8faaf62", "score": "0.58817565", "text": "function getValues()\n{\n $post = [];\n foreach ($_POST as $index => $value ){\n if(!is_array($_POST[$index]))\n $post[$index] = trim(htmlentities($_POST[$index], ENT_QUOTES, 'UTF-8'));\n else\n $post[$index] = $_POST[$index];\n }\n return $post;\n}", "title": "" }, { "docid": "c60d1d1685e800fa1f3ff295996eb857", "score": "0.5873405", "text": "public static function sanitizePost() {\n return filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING);\n }", "title": "" }, { "docid": "72fcd9545bf3ead11c99fcd1032deb3d", "score": "0.5843694", "text": "function process_post()\n{\n $myReturn = ''; //set to initial empty value\n\n foreach($_POST as $varName=> $value)\n {#loop POST vars to create JS array on the current page - include email\n $strippedVarName = str_replace(\"_\",\" \",$varName);#remove underscores\n if(is_array($_POST[$varName]))\n {#checkboxes are arrays, and we need to collapse the array to comma separated string!\n $myReturn .= \"<p><b>\" . $strippedVarName . \":</b> \" . implode(\",\",$_POST[$varName]) . \"</p>\" . PHP_EOL;\n }else{//not an array, create line\n $myReturn .= \"<p><b>\" . $strippedVarName . \":</b> \" . $value . \"</p>\" . PHP_EOL;\n }\n }\n return $myReturn;\n}", "title": "" }, { "docid": "cd77d3b6fdc6d2f67e4208f180ee9017", "score": "0.58418196", "text": "function check_post_only() {\n if(!$_POST) {\n write_error_page(\"This scripts can only be called from a form.\");\n exit;\n }\n}", "title": "" }, { "docid": "89620a5e4a59ffbf9a1de78d6f53ecc2", "score": "0.5840005", "text": "public static function spoofed()\n\t{\n\t\treturn is_array($_POST) and array_key_exists('REQUEST_METHOD', $_POST);\n\t}", "title": "" }, { "docid": "62a3c87c3fd6622c9600daebf6cf3f25", "score": "0.5832448", "text": "function complete_mail()\n{\n\n $leadData = $_POST['DATA'];\nreturn var_dump($leadData);\n}", "title": "" }, { "docid": "7cb781fd4c3208122004585ee56d823e", "score": "0.5831197", "text": "function test_global(){\n\tglobal $HTTP_POST_VARS;\n\techo $HTTP_POST_VARS['name'];\n\t\n\t/*\n\t * superglobals are available in any scope and do\n\t * not require 'global', superglobals are available\n\t * as of PHP 4.1.0 and HTTP_POST_VARS is now\n\t * deemed deprecated\n\t */\n\t \n\techo $_POST['name'];\n}", "title": "" }, { "docid": "1fdcff05e4336c75baaba1a9f1b7c4de", "score": "0.58298033", "text": "function posted() {\n\t\treturn array_map(array($this, 'cleanValue'), $_POST);\n\t}", "title": "" }, { "docid": "4bfc591bb4e0a04f3b6b46bd73084df1", "score": "0.5825066", "text": "public function getPostValues()\n {\n // Define the check for params\n $post_check_array = array(\n // education\n 'cluster' => array('filter' => FILTER_SANITIZE_STRING),\n );\n // Get filtered input:\n $inputs = filter_input_array(INPUT_POST, $post_check_array);\n // RTS\n return $inputs;\n }", "title": "" }, { "docid": "1bf5d421415399908571ff8578c81745", "score": "0.58207905", "text": "function name(){\n if(isset($_POST['name']))\n {\n echo $_POST['name'];\n }\n}", "title": "" }, { "docid": "0ae7b5f91248c14261ffa66c7326d12e", "score": "0.579538", "text": "public function setArguments_POST ()\n\t{\n\t\t$this->args\t= $_POST;\n\t}", "title": "" }, { "docid": "d8834a1fe31ce850fc71e72626c92d7b", "score": "0.5794386", "text": "function listOrder(){\nif ($clear == 0){\nforeach ($formArray as $la){\necho $_POST['$la'] . \"<br />\";\n}// end of foreach\n}// end of clear\n}", "title": "" }, { "docid": "1820b861e9d8bc11cd2fd0a6eb924653", "score": "0.57866716", "text": "function isPost()\r\n{\r\n return isset($_SERVER['REQUEST_METHOD'])\r\n && $_SERVER['REQUEST_METHOD'] == 'POST';\r\n}", "title": "" }, { "docid": "02f972ae7f2f1d68825c4977485ec58c", "score": "0.575987", "text": "private function setPost()\r\n\t{\r\n\t\t$this->postArr = array();\r\n\t\tforeach ($_POST as $key => $value) {\r\n\t\t\t$this->postArr[strtolower($key)]= filter_input(INPUT_POST, $key, FILTER_SANITIZE_SPECIAL_CHARS);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "52dadae809f26528f208c70211360704", "score": "0.575784", "text": "function getPostData() {\n\t\t\n\t\t$body = $this->getRequestBody();\n\t\tif($body != NULL && is_array($body)) {\n\t\t return $body;\t\n\t\t} if (empty($_POST) === true) { //if empty, create a barebone object\n\t\t\treturn NULL;\n\t\t} else if (is_array($_POST) === true) { \n\t\t\treturn $_POST;\n\t\t}\n\t\t\n\t\treturn NULL;\n\t}", "title": "" }, { "docid": "1c4c1cd634e6c69048a5cad10f7eef77", "score": "0.5746865", "text": "function serialize_form()\n {\n\t\t$appx = new app();\n if ($_SERVER['REQUEST_METHOD'] == 'GET'){\n $_SESSION['form_value'] = $appx->serialize64($_GET);\n }else{\n $_SESSION['form_value'] = $appx->serialize64($_POST);\n }\n }", "title": "" }, { "docid": "c297e5f109b6b34dcdc56eab0f38e4c8", "score": "0.57444674", "text": "function dump_vars($mixed=null){\r\n\tob_start();\r\n//\tvar_dump($mixed);\r\n\tprint_r($mixed);\r\n\t$sVars = ob_get_contents();\r\n\tob_end_clean();\r\n\treturn $sVars;\r\n}", "title": "" }, { "docid": "2dddc5f4b932eeacab8e0448cc15e406", "score": "0.57255596", "text": "public static function spoofed()\n\t{\n\t\treturn is_array($_POST) and array_key_exists(Request::spoofer, $_POST);\n\t}", "title": "" }, { "docid": "91b198b6a17a5b0810e23302a241211a", "score": "0.5701256", "text": "public function received() {\r\n echo '<pre>';\r\n echo var_dump( self::$post );\r\n echo '</pre>';\r\n }", "title": "" }, { "docid": "9bc5d1ce8fc8e3095ab90e47c711fafb", "score": "0.56982493", "text": "public function debug()\n {\n die(call_user_func_array('var_dump', func_get_args()));\n }", "title": "" }, { "docid": "83d06a2b08ebd6b565d03c5cd3e86196", "score": "0.5691178", "text": "function keeppostvalue($index)\r\n{\r\n if(isset($_POST[\"$index\"])) echo $_POST[\"$index\"];\r\n}", "title": "" }, { "docid": "456e6a12b92959867a805e69c5908873", "score": "0.5685739", "text": "function read_variables() {\n if (count($_POST)) {\n\t foreach ($_POST as $key => $val){\n \t$key=addslashes(\"r_\".$key);\n\t\tif (is_array($val)) { \n\t\t\tfor ($z=0;$z<count($val);$z++) { \n\t\t\t\t$val[$z]=addslashes($val[$z]);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$val=addslashes($val);\n\t\t}\n $this->$key=$val;\n }\n }\n if (count($_GET)) {\n\t foreach ($_GET as $key => $val){\n \t$key=addslashes(\"r_\".$key);\n \tif (is_array($val)) {\n \tfor ($z=0;$z<count($val);$z++) {\n \t$val[$z]=addslashes($val[$z]);\n \t}\n \t}\n \telse {\n \t$val=addslashes($val);\n \t}\n \t\n\t\t$this->$key=$val;\n }\n }\n }", "title": "" }, { "docid": "24f0c1d0b361f773367e78f5212615bf", "score": "0.5683937", "text": "function restore_fields(){\n $keys = array('p');\n foreach($keys as $name) {\n if(!isset($_GET[$name])) {\n continue;\n }\n $value = htmlspecialchars($_GET[$name]);\n $name = htmlspecialchars($name);\n echo '<input type=\"hidden\" name=\"'. $name .'\" value=\"'. $value .'\">';\n }\n}", "title": "" }, { "docid": "f238427dd585c5449fab6b3f7d8b3f1e", "score": "0.5677914", "text": "public function getPostData()\n {\n if (isset($_POST[$this->name]))\n {\n $val = $_POST[$this->name];\n return $val;\n }\n else\n {\n return '';\n }\n }", "title": "" }, { "docid": "0d8fa4345101d7e29e4f7d014fbb11c6", "score": "0.56752986", "text": "function dump($data){\r\n \techo \"<pre>\";\r\n \tprint_r($data);\r\n \techo \"</pre>\";\r\n \texit;\r\n }", "title": "" }, { "docid": "4775e577248211e77ac512554254fef0", "score": "0.565998", "text": "function print_r($data)\n{\n}", "title": "" }, { "docid": "4775e577248211e77ac512554254fef0", "score": "0.565998", "text": "function print_r($data)\n{\n}", "title": "" }, { "docid": "f69f7b0d9e54948ccb213c92c5ae9584", "score": "0.56441724", "text": "function post ( $v , $d = null ) {\n if(isset($_POST[$v]) || !empty($_POST[$v])){\n return $_POST[$v];\n }\n return null;\n}", "title": "" }, { "docid": "79e7480049086fd9a5f189e99bcbabb4", "score": "0.5641159", "text": "public function editsubmit(){\n $request = $this->getRequest();\n if ($request->isPost()) {\n print_r($request->getPost());\n die;\n }\n \n }", "title": "" }, { "docid": "52a8b9f7d0876b72060ff602831cf528", "score": "0.5636619", "text": "function CleanPostData()\r\n\t{\r\n\t\t$vals =& $_POST;\r\n\t\t\r\n\t\t$noValidateArray = array(Postback::GetPostbackVariable());\r\n\t\t\r\n\t\tforeach ($vals as $key=>$val)\r\n\t\t{\r\n\t\t\tif (array_search($key,$noValidateArray) !== false)\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t$new_value = $val;\r\n\t\t\t\r\n\t\t\tif (is_array($val))\r\n\t\t\t{\r\n\t\t\t\t$tmp = array();\r\n\t\t\t\tforeach ($val as $v)\r\n\t\t\t\t{\r\n\t\t\t\t\t//clean each \t\r\n\t\t\t\t\t$tmp[] = Postback::CleanMe($v);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$new_value = $tmp;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$new_value = Postback::CleanMe($val);\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t$vals[$key] = $new_value;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0724052ff9bf7f5a269be24769d17fa6", "score": "0.56325", "text": "public function isPost()\n {\r\n return (bool) $_POST;\n }", "title": "" }, { "docid": "5eab8b45012ce8eecc92e8e0a2e257fb", "score": "0.56281173", "text": "function post_form(){\n$secure='method=\"'. htmlspecialchars($_SERVER[\"PHP_SELF\"]).'\"';\nreturn $secure; \n}", "title": "" }, { "docid": "842256323bd4d2e7c590fbfd01c1f93c", "score": "0.5627777", "text": "function isPost() {\n $flag = ($_SERVER['REQUEST_METHOD'] == 'POST') ? TRUE : FALSE;\n return $flag;\n}", "title": "" }, { "docid": "b4a229b240b6ecdf0630883e0369c4a8", "score": "0.56268024", "text": "function postAction() {\n\t\t$data_out = array (\n\t\t\t'msg' => 'Default postAction called',\n\t\t\t'data' => $_POST\n\t\t);\n\n\t\techo json_encode($data_out);\n\t}", "title": "" }, { "docid": "94216926d16210ee5fdbba46b62146e1", "score": "0.56257063", "text": "function debug_view ( $what ) {\n\n echo '<pre>';\n\n if ( is_array( $what ) ) {\n\n print_r ( $what );\n\n } else {\n\n var_dump ( $what );\n\n }\n\n echo '</pre>';\n\n}", "title": "" }, { "docid": "074566c37ef06141ecb131aea6048938", "score": "0.5625315", "text": "function init_get_post_arrays()\r\n{\r\n\tif ($_SERVER['REQUEST_METHOD'] == 'POST' && empty($_POST))\r\n\t\t$_POST = json_decode(file_get_contents('php://input'), true);\r\n\t\r\n\tforeach($_POST as $key => $val)\r\n\t\t$_POST[$key] = utf8_decode($val);\r\n\t\r\n\t// merge the two arrays inside $_GET, so we can only work with $_GET\r\n\t$_GET += $_POST;\r\n\t\r\n\t// do some cleaning if 'get_magic_quotes_gpc' parameter is on, and remove strange keys (starting by '|')\r\n\tforeach($_GET as $key => $val)\r\n\t{\r\n\t\tif( is_string($val) && get_magic_quotes_gpc() ) // magic_quotes mode fix\r\n\t\t\t$_GET[$key] = stripslashes($val);\r\n\t}\r\n}", "title": "" }, { "docid": "7efe4cc8674e34cd83e8fc31e2a3228b", "score": "0.5623479", "text": "public function getWholePost()\n {\n return file_get_contents('php://input');\n }", "title": "" }, { "docid": "1f58c3242b1c874ad1b160b5560f7ed2", "score": "0.56216556", "text": "function is_post_request(){\n return $_SERVER[\"REQUEST_METHOD\"] == \"POST\";\n }", "title": "" } ]
2deecac5cd8f9b4d1a85fa2cacec99a2
Gets as abbreviatedName A Composite containing a short version of the PartyName (e.g. for use on devices with a small display).
[ { "docid": "c52867bcf20a7496e70cd2abeb2e76b5", "score": "0.70004755", "text": "public function getAbbreviatedName()\n {\n return $this->abbreviatedName;\n }", "title": "" } ]
[ { "docid": "a2be9b984fbb62449b53fb46935fd78e", "score": "0.68872094", "text": "public function getShortName();", "title": "" }, { "docid": "a2be9b984fbb62449b53fb46935fd78e", "score": "0.68872094", "text": "public function getShortName();", "title": "" }, { "docid": "d8d3e9d71458fe7c51b3daf9dc28b8d4", "score": "0.6768068", "text": "public function obtainFullObjectName() {\n\n $fullNameArr = array();\n\n //stain\n $name = $this->obtainValidField('stain');\n //echo \"name=\".$name.\"<br>\";\n if( $name && $name != \"\" ) {\n //pull the abbreviation for the Stain Name. Only iff abbreviation is not available, then pull the Full name (no short names).\n if( $name->getField()->getAbbreviation() ) {\n $fullNameArr[] = $name->getField()->getAbbreviation().\"\";\n } else {\n $fullNameArr[] = $name->getField()->getName().\"\";\n }\n }\n\n //title\n $title = $this->getTitle();\n if( $title ) {\n $fullNameArr[] = $title.\"\";\n }\n\n //slidetype\n $slidetype = $this->getSlidetype();\n if( $slidetype && $slidetype.\"\" != \"\" && $slidetype.\"\" != \"Permanent Section\") {\n $fullNameArr[] = $slidetype;\n }\n\n $fullName = implode(\", \",$fullNameArr);\n\n return $fullName;\n }", "title": "" }, { "docid": "12c4006a19ae7e9a9ab4b9881b75fb99", "score": "0.66999924", "text": "public function completeName()\n {\n if($this->type == 1)\n {\n return $this->titleName->name . ' '. $this->firstname . ' ' . $this->lastname;\n }\n else\n {\n return $this->organization;\n }\n }", "title": "" }, { "docid": "bcf4ac17b5ccd9501de8eac747cf192d", "score": "0.6623756", "text": "function get_shortname() {\n return format_string($this->shortname);\n }", "title": "" }, { "docid": "2c596b01ddddf42212cd2fab59f3b6f6", "score": "0.6596209", "text": "abstract public function getProviderShortName();", "title": "" }, { "docid": "c1ec251cc3045168f9a7e642d2654230", "score": "0.6583367", "text": "public function getAbbreviation() : string\n {\n return $this->abbreviationPerson;\n }", "title": "" }, { "docid": "4f5f28abd2a8f202a74fc6b9a336c0c0", "score": "0.65478575", "text": "protected function returnShortName()\r\n {\r\n $owner = $this->owner;\r\n $class = new \\ReflectionClass($owner);\r\n $name = Inflector::camel2id($class->getShortName());\r\n return $name;\r\n }", "title": "" }, { "docid": "182e6bc770de48e0b08a845758a05309", "score": "0.6484828", "text": "public function full_name()\n {\n return $this->resource->firstname.' '.$this->resource->lastname;\n }", "title": "" }, { "docid": "5511888e94ff3d6d291692bf3e72426e", "score": "0.6458051", "text": "public function getFullName()\n {\n return $this->type == 1 ? $this->company_name : $this->name.' '.$this->surname;\n }", "title": "" }, { "docid": "b35aeff238d82bd58cea0452ea36d3d9", "score": "0.6439335", "text": "function get_name() {\n return format_string($this->fullname);\n }", "title": "" }, { "docid": "2d682ff92593deb77f67f9ecb82b1f50", "score": "0.6436913", "text": "public function getCompleteName(){\n //return $this->firstName.\" \".$this->lastName.\" \".$this->type.\" \";\n return $this->getFullName().\" \".$this->type.\" \";\n\n }", "title": "" }, { "docid": "6ac20e7baa25d0b5130029c370a1dfbb", "score": "0.6405039", "text": "public function getFullName() {\n\t\treturn $this->getName () . \" \" . $this->getSurname ();\n\t}", "title": "" }, { "docid": "1afa02ed7aaf43da4276591465b9dfd4", "score": "0.63820446", "text": "public function getShortName() {\n\t\treturn $this->shortName;\n\t}", "title": "" }, { "docid": "103116571afade317d1a6c8ba3468f8c", "score": "0.6369087", "text": "public function getShortName() {\n\t\treturn Temboo_Results::getSubItemByKey($this->base, \"shortName\");\n\t}", "title": "" }, { "docid": "103116571afade317d1a6c8ba3468f8c", "score": "0.6369087", "text": "public function getShortName() {\n\t\treturn Temboo_Results::getSubItemByKey($this->base, \"shortName\");\n\t}", "title": "" }, { "docid": "3da0e7cd3c065b6c34512ad7e780c371", "score": "0.63555515", "text": "public function get_ShortName() {\n\t\t\treturn $this->_shortName;\n\t\t}", "title": "" }, { "docid": "f9b2c11c7facc48d1b56e6510e8c9836", "score": "0.6347941", "text": "function getBrandName(string $noun)\n{\n\t$len=strlen($noun)-1;\n\tif($noun[0]==$noun[$len]){\n\t\t$temp=ucfirst($noun);\n\t\t$temp=$temp.substr($noun,1,$len);\n\t\treturn $temp;\n\t}else{\n\t\treturn \"The \".ucfirst($noun);\n\t}\n}", "title": "" }, { "docid": "a8243c4394aaab671cda22417428ffa1", "score": "0.6329541", "text": "protected function _getFullName()\n {\n return $this->given_name . ' ' . $this->family_name;\n }", "title": "" }, { "docid": "d0c51cc158e31a7f174bc327652c1c8f", "score": "0.632574", "text": "function _getShortName($longname) {\n $shortname = $longname;\n if (strlen($longname)>2) {\n $shortname = substr($longname,0,1) . substr($longname,-1);\n }\n return $shortname;\n }", "title": "" }, { "docid": "c0ba6790af47efaa78d164372409f365", "score": "0.6319764", "text": "public function getAbbreviation()\n {\n $value = $this->get(self::ABBREVIATION);\n return $value === null ? (string)$value : $value;\n }", "title": "" }, { "docid": "1f768584958d4918b24e8d8944047f34", "score": "0.63161737", "text": "public function full_name()\n {\n return $this->object->first_name . ' ' . $this->object->last_name;\n }", "title": "" }, { "docid": "d3018322ffa2613fa103330278e68e35", "score": "0.6309322", "text": "public function fullName()\n {\n if($this->type == 1)\n {\n return $this->firstname . ' ' . $this->lastname;\n }\n else\n {\n return $this->organization;\n }\n }", "title": "" }, { "docid": "49e053923e388b19763147270bc5ec57", "score": "0.63030076", "text": "public function fullName()\n {\n $name = (String) $this->entity->name;\n return ucwords($name);\n }", "title": "" }, { "docid": "dee51d553bd068a5b111a86907eafef2", "score": "0.62871", "text": "function getFullname()\n\t{\n\t\treturn $this->firstname . \" \" . $this->lastname;\n\t}", "title": "" }, { "docid": "dd5c751f5dd473a34ecd82d69a09389e", "score": "0.6286243", "text": "public function abbr()\n\t{\n\t\treturn strtoupper($this->entity->abbr);\n\t}", "title": "" }, { "docid": "f815e97023c154444e10f383e7cb94aa", "score": "0.6283072", "text": "function full_name(){\n return $this->first_name . ' ' . $this->last_name . '.';\n }", "title": "" }, { "docid": "82117f10be67d45da2984a17d6170333", "score": "0.62756264", "text": "public function short(){\n\t\treturn strtoupper($this->name) . ' - ' . $this->quarter;\n\t}", "title": "" }, { "docid": "68dda23efc343594d7217a3701dfd59b", "score": "0.623475", "text": "public function full_name()\n {\n return $this->first_name . ' ' . $this->last_name;\n }", "title": "" }, { "docid": "9db3a44e83e2849f10e26f44459afab4", "score": "0.62206674", "text": "public function getShortName(): string\n {\n $shortName = explode('\\\\', get_class($this));\n\n return collect($shortName)->last();\n }", "title": "" }, { "docid": "f2574db194a5abca423b109ea8f77a59", "score": "0.6217191", "text": "public function getFullname(): string {\n if (!empty($this->fname) && !empty($this->lname)) {\n return \"$this->fname $this->lname\";\n } else {\n return \"$this->fname$this->lname\";\n }\n }", "title": "" }, { "docid": "d7d6fd0dc686817dc4df34b92be024c0", "score": "0.62142587", "text": "public function getFullname()\n {\n return $this->fullname;\n }", "title": "" }, { "docid": "d7d6fd0dc686817dc4df34b92be024c0", "score": "0.62142587", "text": "public function getFullname()\n {\n return $this->fullname;\n }", "title": "" }, { "docid": "2e5d2c1cec0f67f7a9c623fa345b3786", "score": "0.621161", "text": "public function full_name()\n\t{\n\t\treturn $this->first_name . ' ' . $this->last_name;\n\t}", "title": "" }, { "docid": "63bf2e9b680ae0cbe28bc8ec557626c8", "score": "0.61907005", "text": "public function getFullname()\n {\n return $this->firstname . \" \" . $this->surname;\n }", "title": "" }, { "docid": "235492d9bdc0452b47ac0200305f49ce", "score": "0.6186627", "text": "public function getFullName()\n {\n return $this->nombre . ' ' . $this->descripcion;\n }", "title": "" }, { "docid": "017628a65451e27a4cb61d0db22fc065", "score": "0.6173365", "text": "public function fullName()\n {\n $fullName = null;\n if ($this->legacy()) {\n $fullName = $this->legacy_initials;\n } else {\n $fullName = $this->first_name.' '.$this->last_name;\n }\n\n return trim($fullName);\n }", "title": "" }, { "docid": "56a5c21af0ee436c6c3e894226b4bef0", "score": "0.6170778", "text": "public function completeName() {\r\n\t\treturn $this->getName();\r\n\t}", "title": "" }, { "docid": "fce6e77c1a689da241d702d4e66aaac1", "score": "0.61675435", "text": "public function getFullName() {\n if (isset($this['name.full'])) {\n return $this['name.full'];\n }\n if (isset($this['name.first']) && isset($this['name.last'])) {\n return implode(' ', array($this['name.first'], $this['name.last']));\n }\n return '';\n }", "title": "" }, { "docid": "a8e2f07b258b04de22b0f2a63b800576", "score": "0.61662334", "text": "public static function getFriendlyName();", "title": "" }, { "docid": "b17a40c025ff845f23968b1a388eed9b", "score": "0.6159955", "text": "public function getFullname(){\n return $this->name.' '.$this->lastname;\n }", "title": "" }, { "docid": "f8c89861825ac5b8fc68af018066847d", "score": "0.61452305", "text": "function getFullname() {\n return $this->first_name.' '.$this->last_name;\n }", "title": "" }, { "docid": "d4b978099ad757a10bdebfac4c7b767c", "score": "0.6144153", "text": "public function get_fullname(){\n if($this->middlename){\n $name = $this->firstname.' '.$this->middlename.' '.$this->lastname;\n } else {\n $name = $this->firstname. \" \".$this->lastname;\n }\n\n return $name;\n }", "title": "" }, { "docid": "5cd2299e210d70264b42a70b096e81fb", "score": "0.6144086", "text": "public function getOrgaFullnameAttribute()\n {\n $organisation = '';\n foreach ($this->organisations as $key => $orga) {\n if ($key > 0) {\n $organisation .= ', ';\n }\n $organisation .= $orga->name;\n }\n $result = $this->firstname . ' ' . $this->lastname;\n if (!empty($organisation) && ($result != $organisation)) {\n $result = $organisation . ' (' . $result . ')';\n }\n return $result;\n }", "title": "" }, { "docid": "a03d06e4b7c7a37b3cf13ef7a403562d", "score": "0.6138998", "text": "public function full_name(){\n if(isset($this->first_name)&&isset($this->last_name)){\n return $this->first_name.\" \".$this->last_name;\n }else{\n return \"\";\n }\n }", "title": "" }, { "docid": "b31d0be0c429c61b741b5119f84848a6", "score": "0.61357474", "text": "public function getAbbreviation()\r\n\t{\r\n\t \treturn $this->abr;\r\n\t}", "title": "" }, { "docid": "12cf37cd1f3fa4b599fe3220ee11d3a7", "score": "0.6130454", "text": "public function getFull_name()\n {\n return $this->full_name;\n }", "title": "" }, { "docid": "ac491c73aed62513264349ed24c67e67", "score": "0.6122971", "text": "public function getFullnameOrgaAttribute()\n {\n $organisation = '';\n foreach ($this->organisations as $key => $orga) {\n if ($key > 0) {\n $organisation .= ', ';\n }\n $organisation .= $orga->name;\n }\n $result = $this->firstname . ' ' . $this->lastname;\n if (!empty($organisation) && ($result != $organisation)) {\n $result .= ' (' . $organisation . ')';\n }\n return $result;\n }", "title": "" }, { "docid": "5c9606b6e765b37ca96fcd92f49b0f48", "score": "0.61164284", "text": "public function getFullName() : string\n {\n return $this->fullName;\n }", "title": "" }, { "docid": "5f82a6beeab287bfd940807dd426f0c0", "score": "0.6112061", "text": "function get_name() {\n return $this->fullName;\n }", "title": "" }, { "docid": "874d8c7032776e9c6e935e136d08f33d", "score": "0.61094445", "text": "public function getShortName(): string\n\t{\n\t\treturn $this->reflection->getShortName();\n\t}", "title": "" }, { "docid": "9e685384fa03cbe3928aae57488ae022", "score": "0.6108473", "text": "public function getFullname() {\n return $this->_fullname;\n }", "title": "" }, { "docid": "a475155c01c8fcf62bc1af05c4b95b6f", "score": "0.60974073", "text": "public function getFullName()\r\n {\r\n return $this->getFirstName() . ' ' . $this->getLastname();\r\n }", "title": "" }, { "docid": "f8e975661afb4a77834eca7d7080f615", "score": "0.60963655", "text": "public function getFullName() {\n return $this->title . ' ' . $this->first_name . ' ' . $this->last_name;\n }", "title": "" }, { "docid": "72af47123c7694c08bc1d37c77fb369a", "score": "0.6084722", "text": "public function getGameShortName(): string\n {\n return $this->game_short_name;\n }", "title": "" }, { "docid": "e109a3ac7d2289364a690e520d4aac1d", "score": "0.60734016", "text": "public function getShortName(int $length = 25): string\n {\n if (mb_strlen($this->name) <= $length) {\n return $this->name;\n }\n\n return mb_substr($this->name, 0, $length - 3) . '...';\n }", "title": "" }, { "docid": "d1d7878ac0e3e3712410b164d31d93f0", "score": "0.60656357", "text": "public function getLongName()\r\n {\r\n if ($this->is_natural_person == true) {\r\n return $this->name . ( !empty($this->firstname) ? ' ' . $this->firstname : '');\r\n } else {\r\n return $this->name;\r\n }\r\n }", "title": "" }, { "docid": "b20f8655cb610a62ae6f464135b7e28c", "score": "0.6061048", "text": "function getFull_name() {\r\n return $this->full_name;\r\n }", "title": "" }, { "docid": "468aedac4ac9de81f0147e3e5adbf098", "score": "0.60574776", "text": "public function getFullName()\n\t{\n\t\treturn $this->lastname . ' ' . $this->firstname;\n\t}", "title": "" }, { "docid": "52c4458bedc57311241e754c76fe60db", "score": "0.60565364", "text": "public function getFullName()\n {\n return $this->getFirstName() . ' ' . $this->getLastname();\n }", "title": "" }, { "docid": "52c4458bedc57311241e754c76fe60db", "score": "0.60565364", "text": "public function getFullName()\n {\n return $this->getFirstName() . ' ' . $this->getLastname();\n }", "title": "" }, { "docid": "baec580715a10f26aee2cd0561161bc4", "score": "0.60516757", "text": "abstract public function getHumanReadableName();", "title": "" }, { "docid": "654d2e5b4ba2e6cc7df2f957bde9f5f4", "score": "0.60513216", "text": "public function getFullName() {\n return $this->fullName;\n }", "title": "" }, { "docid": "82b5d21539a95ff40ac0c623350eb56b", "score": "0.6046169", "text": "public function fullname() {\n\n\t\treturn $this->first_name . ' ' . $this->last_name;\n\t}", "title": "" }, { "docid": "0135a4ddb05c9cb828a73f4500730b97", "score": "0.6046089", "text": "public function getFullName()\n {\n return $this->firstname . ' ' . $this->lastname;\n }", "title": "" }, { "docid": "8a1408acc9dd7131fc5cfa74b54e1548", "score": "0.6045247", "text": "public function getFullName() {\n return $this->firstname . \" \" . $this->lastname;\n }", "title": "" }, { "docid": "47876450f4373b52ef23eac0a97e7692", "score": "0.60409325", "text": "public function getFullName()\n {\n return $this->firstName . \" \" . $this->lastName;\n }", "title": "" }, { "docid": "674358f5ac09c8752cf9e90cbf7a7667", "score": "0.6039949", "text": "public function getCountryNameAttribute()\n {\n $country = Country::where('short_name',@$this->attributes['country'])->first();\n return optional($country)->long_name;\n }", "title": "" }, { "docid": "e5e6ee7c1016d08520296febbe197e30", "score": "0.60365754", "text": "public function getFullName()\n {\n return trim($this->getForename() .' '. $this->getFamilyName());\n }", "title": "" }, { "docid": "1be8ca0abff2c49f83482d20494b7e4d", "score": "0.60365236", "text": "public function getShortName()\n {\n return $this->root->getShortName();\n }", "title": "" }, { "docid": "cf05a76fdf61de404d72a9a7c3fe002a", "score": "0.6030571", "text": "public function getNameShort() {\n return $this->getDatabaseValue('station_name_short');\n }", "title": "" }, { "docid": "e94676a3929e40acdffa691e2df0e43b", "score": "0.602531", "text": "public function getName()\n {\n return $this->fullname; \n }", "title": "" }, { "docid": "679045d42da167c5fb730cc7c5d4d63d", "score": "0.6020844", "text": "public function getFullName()\n {\n return $this->full_name;\n }", "title": "" }, { "docid": "3f976c7721ae29887c19ef380d4c7322", "score": "0.5998648", "text": "function getFullName() {\r\n if (isset($this->firstname) && isset($this->lastname)) {\r\n return $this->firstname . \" \" . $this->lastname;\r\n } else {\r\n return \"\";\r\n }\r\n }", "title": "" }, { "docid": "4e275c154d97fa39c553df74488ae398", "score": "0.5985942", "text": "public function getFullName()\n {\n return $this->first_name . ' ' . $this->last_name;\n }", "title": "" }, { "docid": "4e275c154d97fa39c553df74488ae398", "score": "0.5985942", "text": "public function getFullName()\n {\n return $this->first_name . ' ' . $this->last_name;\n }", "title": "" }, { "docid": "4e275c154d97fa39c553df74488ae398", "score": "0.5985942", "text": "public function getFullName()\n {\n return $this->first_name . ' ' . $this->last_name;\n }", "title": "" }, { "docid": "4e275c154d97fa39c553df74488ae398", "score": "0.5985942", "text": "public function getFullName()\n {\n return $this->first_name . ' ' . $this->last_name;\n }", "title": "" }, { "docid": "4e275c154d97fa39c553df74488ae398", "score": "0.5985942", "text": "public function getFullName()\n {\n return $this->first_name . ' ' . $this->last_name;\n }", "title": "" }, { "docid": "2ceec92624ff24b8a9133ebd47233b01", "score": "0.59854376", "text": "public function getFullName() {\n return $this->d_f_name . ' ' . $this->d_l_name;\n}", "title": "" }, { "docid": "a5ce4e094ca54fe07be92466585fc0fd", "score": "0.59827083", "text": "public function __toString()\n {\n $fullName = $this->getFullName();\n if ($fullName == '')\n {\n return Zurmo::t('Core', '(Unnamed)');\n }\n return $fullName;\n }", "title": "" }, { "docid": "c1b49fa8aeb84ccba83196e55ae11277", "score": "0.5978622", "text": "public function getFullName()\n {\n return $this->fullName;\n }", "title": "" }, { "docid": "c1b49fa8aeb84ccba83196e55ae11277", "score": "0.5978622", "text": "public function getFullName()\n {\n return $this->fullName;\n }", "title": "" }, { "docid": "5500f9546a15cd0eaf057441fe123e6a", "score": "0.59723556", "text": "public function getFullName() {\n return implode(\" \", [\n $this->get('salutation')->getString(),\n $this->get('first_name')->getString(),\n $this->get('last_name')->getString(),\n ]);\n }", "title": "" }, { "docid": "e7113376f721871d8f64ea34897e67d6", "score": "0.5971217", "text": "public function getAbbrev()\n\t{\n\t\treturn $this->abbreviation;\n\t}", "title": "" }, { "docid": "37101a2c98d10612017f97aad8d00958", "score": "0.59692556", "text": "public function full_name() {\n return is_null($this->insertion) || empty($this->insertion) ? $this->first_name . ' ' . $this->last_name : $this->first_name . ' ' . $this->insertion . ' ' . $this->last_name;\n }", "title": "" }, { "docid": "0bab33a416370b68e74ea28ff68c6320", "score": "0.5968189", "text": "public function fullName()\n {\n $fullNameString = $this->name .\n ($this->firstSurname->isEmpty() ? '' : ' ' . $this->firstSurname) .\n ($this->secondSurname->isEmpty() ? '' : ' ' . $this->secondSurname);\n\n $fullName = new StringValueObject($fullNameString);\n\n return $fullName;\n }", "title": "" }, { "docid": "90c0009df7aee6df67251d1bd187b064", "score": "0.59653664", "text": "public function fullName()\n\t{\n\t\treturn \"{$this->first_name} {$this->last_name}\";\n\t}", "title": "" }, { "docid": "dbe3cc4a0586594d1c4352c9cb087100", "score": "0.5962172", "text": "public function getFullName()\n {\n return ($this->firstName . ' ' . $this->lastName);\n }", "title": "" }, { "docid": "6cbc6e0b65a928577c19809215cfccca", "score": "0.59597284", "text": "public function getAgencyTypeShortName()\n {\n return isset($this->AgencyTypeShortName) ? $this->AgencyTypeShortName : null;\n }", "title": "" }, { "docid": "751763afd0e167ba978276dfdfca78fa", "score": "0.5937089", "text": "public function getFullNameAttribute() {\n \treturn ucfirst($this->first_name) . ' ' . ucfirst($this->middle_name) . ' ' . ucfirst($this->last_name);\n }", "title": "" }, { "docid": "932c7171357318ce896aef450de6ce3a", "score": "0.5924031", "text": "protected function get_thing_name() {\n // code may itself run in response to the $cm->name property access, and\n // PHP magic function properties do not allow recursion (because PHP).\n return '<AVAILABILITY_CMNAME_' . $this->cm->id . '/>';\n }", "title": "" }, { "docid": "06810b43e83a6a8c36b8e1ad858892b5", "score": "0.5917182", "text": "public function getFullName()\n {\n $first = $this->getFirstName();\n $middle= (!empty($this->middle_name)) ? $this->getMiddleName() : '';\n $last = $this->getLastName();\n\n return $first.' '.$middle.' '.$last;\n }", "title": "" }, { "docid": "db8e3c7f86d0f867c2109d961f799853", "score": "0.5911063", "text": "public function companyOrFullname() {\n\t\t\n\t\treturn !empty($this->company) ? $this->company : $this->fullname();\n\t}", "title": "" }, { "docid": "d60621435a21767f4b34087779cb7622", "score": "0.5909754", "text": "public function getFullName()\n {\n return $this->forename.' '.$this->surname;\n }", "title": "" }, { "docid": "1a85e72c2c04fe41dfb6df90a986dc9c", "score": "0.58960617", "text": "public function fullName()\n {\n return $this->firstName . ' ' . $this->lastName;\n }", "title": "" }, { "docid": "88976cf9ae805e9533674de81af34dce", "score": "0.58958834", "text": "public function getDisplayName() {\n return $this->getFullName();\n }", "title": "" }, { "docid": "0438cc567f242a5ab677035590887df5", "score": "0.589372", "text": "public function getFullName()\n {\n return $this->first_name .' '.$this->last_name;\n }", "title": "" }, { "docid": "d1f168783558fa9b9741aba3ca92c27a", "score": "0.58879226", "text": "public function getFullName()\n\t{\n\t\treturn $this->first_name_text . ' ' . $this->last_name_text;\n\t}", "title": "" }, { "docid": "7d09c03f8af085de9d6a14b357c9c72f", "score": "0.5886953", "text": "public function fullName()\n {\n $fullName = $this->first_name;\n\n // Append the last name if it is in the DB\n if( $this->last_name)\n $fullName .= ' ' . ucfirst($this->last_name);\n \n return $fullName;\n }", "title": "" } ]
06bb8cc2dc5e782a342cdb3c200e5b9d
/ Add number of days (AJAX)
[ { "docid": "1c9dec993dadfadd662c61287d681335", "score": "0.6131503", "text": "function numberofdays(Request $request){\n\t\tsession_start();\n\t\t$server=mysqli_connect('localhost', 'root', '', 'gbridge');\n\t\t$bookedby=$_SESSION['sessname'];\n\t\t$name = $request->input('desti');\n\t\t$newduration=$request->input('dayss');\n\t\t$sel=\"SELECT * from testingjs where destination like '%$name%' and bookedby='$bookedby'\";\n\t\t$selq=mysqli_query($server,$sel);\n\t\tif(!$selq){\n\n\t\t}\n\t\telse{\n\t\t\twhile ($anything=mysqli_fetch_array($selq)) {\n\t\t\t\t$cost=$anything['cost'];\n\t\t\t\t$totalcost=$cost*$newduration;\n\n\t\t$getting=DB::update(\"UPDATE testingjs set duration='$newduration', totalcost='$totalcost' where destination like '%$name%' and bookedby='$bookedby'\");\n\n\t}\n\n\t\t}\n\n\n}", "title": "" } ]
[ { "docid": "b49b675accd98a4eecd537b26fbb75d3", "score": "0.64391255", "text": "function _addDays($days)\n {\n return (86400*$days);\n }", "title": "" }, { "docid": "cc744afabac9a720cc5e82c34d175703", "score": "0.59608823", "text": "public function addDay()\n {\n return $this->addDays(1);\n }", "title": "" }, { "docid": "924ca7cd59307485a82c5f1595abfd46", "score": "0.5946791", "text": "public function updateNumberDay(Request $request, HolidayRepository $holidayRepository): JsonResponse\n {\n // Get Entity manager and repository\n $em = $this->getDoctrine()->getManager();\n // $neighborhoodsRepository = $em->getRepository('AppBundle:Neighborhood');\n $dateBegin = \\DateTime::createFromFormat('Y-m-d', $request->get('dateBegin'));\n $dateEnd = \\DateTime::createFromFormat('Y-m-d', $request->get('dateEnd'));\n $holiday = $holidayRepository->findByBetweenDate($dateBegin, $dateEnd);\n $weekend = $this->getNumberOfWeekendDays($dateBegin, $dateEnd);\n $daysBetweenStartAndEnd = $dateEnd->diff($dateBegin)->days;\n $responseArray = [];\n $responseArray[] = [\n 'nombrejour' => $daysBetweenStartAndEnd,\n ];\n $nombre_jour = $daysBetweenStartAndEnd- (count($holiday) + $weekend) ;\n\n //return new JsonResponse($responseArray);\n return new JsonResponse(['nombrejour' => $nombre_jour], 200);\n }", "title": "" }, { "docid": "dc98e7508dc69bff95a19b8c261c6fca", "score": "0.5838556", "text": "public function amountOfDays(): int;", "title": "" }, { "docid": "650bcd52fa4f976f6b33d9a7736c782e", "score": "0.57405263", "text": "function sumar_dias($fecha,$dias){\r\n\t//formato date('Y-m-j');\r\n\t$nuevafecha = strtotime ('+'.$dias.' day' , strtotime ( $fecha ) ) ;\r\n\t$nuevafecha = date ( 'Y-m-d' , $nuevafecha );\r\n\treturn \t$nuevafecha;\r\n}", "title": "" }, { "docid": "777a28c98d34be13412d57306ba93795", "score": "0.5679454", "text": "public function actionDays() {\n $message = [];\n $view = new View;\n\n if (!empty($_GET['error'])) {\n switch($_GET['error']) {\n case 23000:\n $message = ['warning' => 'Выходной не сохранен. Введенная дата уже обозначена.'];\n default:\n }\n }\n $view->days = Dayoff::selectAll('ORDER BY date DESC');\n\n $view->message = $message;\n $view->display('calendar/days.php');\n }", "title": "" }, { "docid": "f565a40f6cba5b13709eef72967b2ff2", "score": "0.5643462", "text": "public function AddDays($intDays){\r\n\t\t\t$this->intSeconds = $this->intSeconds + ($intDays * QDateTimeSpan::SecondsPerDay);\r\n\t\t}", "title": "" }, { "docid": "1fc104485d3a7dcb985d5ca1e21748e0", "score": "0.5587689", "text": "static function addDays( $date, $increment )\n {\n $interval = \"P$increment\".\"D\";\n return self::add($date, $interval);\n }", "title": "" }, { "docid": "40b20933768b712c6171305de4e015cc", "score": "0.55767334", "text": "public function bumpDayCount() {\n\t\t$this->dayCount++;\n\t}", "title": "" }, { "docid": "5df2568d893f7685b9d8cc2f05d44d7b", "score": "0.5560547", "text": "public static function addDays($date, $daysNb) {\n return mktime(date(\"H\", $date), date(\"i\", $date), 0, date(\"n\", $date), date(\"j\", $date) + $daysNb, date(\"Y\", $date)); \n }", "title": "" }, { "docid": "809beeb20604aef0269de23a2f640111", "score": "0.5552768", "text": "public static function setting_number_days()\n\t{\n\t\t$options = get_option( self::option_name );\n\t\t//{$this->get_settings( 'user-access-expiration' )}\n\t\techo \"<input id='number_of_days' name='user_access_expire_options[number_days]' size='10' type='text' value='{$options['number_days']}' />\";\n\t\techo \"<br>How many days after registration should a user have access for?\";\n\t}", "title": "" }, { "docid": "266cf09da75ac42e1b963b9dc6d0122a", "score": "0.55379385", "text": "public function getDays() {\n\t\treturn $this->dayCount + 1;\n\t}", "title": "" }, { "docid": "f7ab9f80d498b3ec49a7ee9fc6663687", "score": "0.55351955", "text": "public function addDays($date, $days){\n\t\t$date = new \\DateTime($date);\n\t\t$date->add(new \\DateInterval('P'.$days.'D'));\n\t\treturn $date->format('Y-m-d');\n\t}", "title": "" }, { "docid": "fcebbb41e7d41aabe2096748dc9c8752", "score": "0.5531424", "text": "public function AddDays($no_of_days) {\n $this->LeapYear($this->yy);\n for ($i = $no_of_days; $i > 0; $i--) {\n $this->dd += 1;\n if ($this->dd > DATECALC::$months[$this->mm]) {\n $this->dd = 1;\n $this->mm += 1;\n if ($this->mm > 12) {\n $this->LeapYear($this->yy);\n $this->dd = 1;\n $this->mm = 1;\n $this->yy += 1;\n }\n }\n }\n }", "title": "" }, { "docid": "7477b1f6a57bae6c4ed3fa1144cb7dda", "score": "0.550883", "text": "private function addDate($date) {\n return date('Y-m-d', strtotime($date. ' + 1 days'));\n }", "title": "" }, { "docid": "5f6c53d67071274cac45640776d913f2", "score": "0.5502768", "text": "function hazsuma($fecha, $ndias) {\r\n\treturn date ( \"Y-m-d\", strtotime ( \"$fecha+$ndias day\" ) );\r\n}", "title": "" }, { "docid": "af89737f2414da7f35f1d70b0e03facd", "score": "0.5494523", "text": "public function addDays($value)\n {\n return $this->modify(intval($value) . ' day');\n }", "title": "" }, { "docid": "c6535e2d3087f04a9ffd9b414adcfcbe", "score": "0.54869235", "text": "function calcDay($d){\r\n $dates = date('Y-m-d');\r\n $date = new DateTime($dates);\r\n $interval = \"+\".$d.\" day\";\r\n $date->modify($interval);\r\n return $date->format('Y-m-d');\r\n}", "title": "" }, { "docid": "efcf131bd9eda2c98212b40be8156f68", "score": "0.5477751", "text": "public function changeDailyDateAction() {\n if($this->request->isAjax() == true) {\n #si vienen datos por postm los seteamos\n if (isset($_POST)) {\n $callData = $_POST;\n if (isset($_POST['dateChange'])) {\n $today = $_POST['dateChange'];\n } else {\n $today = date(\"Y-m-d\");\n }\n }\n\n $calendar = new Calendar();\n $daily = $calendar->_getDay($today);\n $usersCalendar = $calendar->getUsersCalendarDay();\n\n $data['day'] = $daily;\n $data['today'] = $today;\n $data['users'] = Users::find(\"rol_id = 3\");\n $data['tecnologiaDictionary'] = $this->_getTecnologiaUserDictionary($data['users']);\n $data['usersCalendar'] = $usersCalendar;\n $data['categorias'] = Categoria::find();\n $data['subMenuSel'] = \"diaria\";\n\n $dataView['pcData'] = $data;\n $view = 'webcal/webcal_diaria_base_view';\n\n\n //mifaces\n $toRenderView = $this->view->render($view, $dataView);\n $this->mifaces->newFaces();\n $this->mifaces->addToRend('calendar', $toRenderView);\n $this->mifaces->addPosRendEval('$(\\'.select-chosen\\').chosen({width: \"100%\", disable_search_threshold: 7});');\n $this->mifaces->run();\n }\n else {\n $response = new \\Phalcon\\Http\\Response();\n $response->redirect(\"\");\n $response->send();\n }\n }", "title": "" }, { "docid": "7896bb6dbe7c655ae82a8c804e1d9104", "score": "0.5460769", "text": "public function addDose_ajax()\n {\n $vaccine_id = Input::get('vaccineId');\n // Nome do paciente\n $patientName = Input::get('patientName');\n\n // Recupera o número da última dose tomada pelo paciente da vacina escolhida\n $doseNumber = DB::table('doses')\n ->join('users', 'doses.id_user', '=', 'users.id')\n ->select('doses.*', 'users.name as patientName')\n ->where('vaccine_id', '=', $vaccine_id)\n ->where('users.name', '=', $patientName)\n ->orderBy('numerodose', 'desc')\n ->first();\n\n // Se o paciente não tomou nenhuma dose da vacina\n // o valor de $doseNumber será null, logo,\n // será a 1ª\n if(!$doseNumber){\n $doseNumber = \"1\";\n } else {\n // A próxima dose será 1 unidade maior que o valor anterior\n $doseNumber = strval(intval($doseNumber->numerodose) + 1);\n }\n return response()->json(array('doseNumber' => $doseNumber)); \n }", "title": "" }, { "docid": "fbaa8c3bea5726a7486cfe5eab0260c6", "score": "0.5459964", "text": "public function addDays(int $days)\n {\n $time = clone($this);\n\n return $time->add(DateInterval::createFromDateString(\"{$days} days\"));\n }", "title": "" }, { "docid": "3d37ca91f7cdf890192a0e6bede9bc21", "score": "0.544082", "text": "public function calc_day_earning(Request $request)\n {\n if ($request->ajax() && auth()->user()->level == 'admin'):\n $all_bills = bill::get();\n $day_earnings = 0;\n foreach ($all_bills as $bill):\n if (date('Y-m-d', strtotime($bill->created_at) + (2*60*60)) === $request->day):\n $day_earnings += $bill->total_price;\n endif;\n endforeach;\n return $day_earnings;\n endif;\n }", "title": "" }, { "docid": "917801bd4bd24e56bc6bf428735c4dc4", "score": "0.543267", "text": "public function addDay ($n, $operation = '+')\n\t{\n\n\t\t$date = $this->date;\n\t\t$strDate = strtotime($date);\n\t\t$format = $this->format;\n\t\t$new = date($format, strtotime(\"{$operation}{$n} Days\", $strDate));\n\t\t$this->date = $new;\n\n\t\treturn $this;\n\t\n\t}", "title": "" }, { "docid": "2edaed5af687e9f6a46f3e5110f95d33", "score": "0.542252", "text": "final public function updateDaysRemaining(): void\n {\n }", "title": "" }, { "docid": "fbe6310bdaae9048f1c492478db1b576", "score": "0.5393932", "text": "public function testUser()\n {\n $startdate=strtotime(\"2012-01-01 12:00:12\");\n $enddate=strtotime(\"2012-01-14 14:00:34\");\n $days=round(($enddate-$startdate)/86400)+1;\n echo $days;\n\n }", "title": "" }, { "docid": "9b602dcc7ed9b2a993113831265589fd", "score": "0.5391647", "text": "function dateAdd($fecha, $cantidad = 1, $intervalo = 'd') {\n\t\tApp::import('Vendor', 'dates', 'pragmatia');\n\t\t$Dates = new Dates();\n\t\treturn $Dates->dateAdd($fecha, $cantidad, $intervalo);\n\t}", "title": "" }, { "docid": "40748ea6950fd68e7aa0e8a69698a994", "score": "0.5385999", "text": "public static function addDaysInDate($days, $date) {\n\t\treturn date('Y-m-d', strtotime('+'.$days.' days', strtotime($date)));\n\t}", "title": "" }, { "docid": "e9932a04436aea5a032b60ab3c0c0a47", "score": "0.5380714", "text": "public function addDay($value)\r\n\t\t{\r\n\t\t\t $this->data[2] += $value; // добавляет значение $value к дню\r\n\t\t\t $this->data = explode('-', date('Y-n-d', mktime(0, 0, 0, $this->data[1], $this->data[2], $this->data[0])));\r\n\t\t\t return $this;\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "83da05c203b845daba3c394605cd46f1", "score": "0.5362871", "text": "public function get_chart_data_ajax() {\n\n\t\tcheck_admin_referer( 'wp_mail_smtp_' . static::SLUG . '_nonce' );\n\n\t\tif ( ! current_user_can( 'manage_options' ) ) {\n\t\t\twp_send_json_error();\n\t\t}\n\n\t\t$days = ! empty( $_POST['days'] ) ? absint( $_POST['days'] ) : 0;\n\n\t\t$data = $this->get_email_stats_count_by( 'date', $days );\n\n\t\twp_send_json( $data );\n\t}", "title": "" }, { "docid": "c737edf98304e74c8b65f40116d941a6", "score": "0.53486407", "text": "public function showTotalToDay(){\n $db = \\Config\\Database::connect();\n\n $d = $this->request->getVar('date');\n $M = $this->request->getVar('months');\n $Y = $this->request->getVar('year');\n\n $sql = \"SELECT SUM(Or_price) As todayprice from sp_order Where YEAR(Or_date)=$Y AND MONTH(Or_date)=$M AND Day(Or_date)=$d AND OS_statusid =6\";\n $query = $db->query($sql);\n\n return json_encode($query->getResult());\n }", "title": "" }, { "docid": "bbb4a5e9025908971f4a6e7434c70602", "score": "0.5346766", "text": "function add_av_vegies_dates_action()\n\t{\n\t\t/*echo \"<pre>\";\n\t\tprint_r($this->input->post());\n\t\texit;*/\n\t\t$av_date=$this->input->post('av_date');\n\t\t$vegies=$this->input->post('vegies');\n\t\t$date=date($av_date);\n $added_datentime= date('Y-m-d H:m:s', strtotime($date. ' + 5 days'));\n \n //print_r($added_datentime);\n //exit;\n\t\tforeach($vegies as $key=>$value){\n\t\t \n\t\t\t $data=array('av_date'=>$av_date,\n\t\t\t 'av_vegi_id'=>$value,\n\t\t\t 'av_added_dnt'=>$added_datentime,\n\t\t\t 'av_status'=>1);\n\t\t $this->Veg_Model->insertav_vegies_on_date($data);\n\t\t}\n\t\t\n\t\t/*echo\"<pre>\";\n\t\tprint_r($data);\n\t\texit;*/\n\t\t\n\t\t \n\t\t/*echo\"<pre>\";\n\t\tprint_r($available_date);\n\t\texit;*/\n\t \n\t\tredirect(base_url().'Vegetables/add_available_vegies_on_date');\n\t\t\n\t}", "title": "" }, { "docid": "d1a6e628423606d83e237a332894f945", "score": "0.53354794", "text": "function addSevenDays($date) {\n $newDate = date(\"Y-m-d\", strtotime(\"+7 days\", strtotime($date)));\n return $newDate;\n }", "title": "" }, { "docid": "b06560cbf64c2e650e5114f89fa4474b", "score": "0.5284237", "text": "function add_av_dates_action()\n\t{\n\t\t$av_date=$this->input->post('av_date');\n\t\t//$av_end_date=$this->input->post('end_date');\n\t\t//$start_date=date('Y-m-d',srttotime($av_date));\n\t\t//echo $start_date;\n\t\t//exit;\n\t\t$date=date($av_date);\n $next_date= date('Y-m-d', strtotime($date. ' + 4 days'));\n //print_r($next_date);\n //exit;\n\n\n\t\t$dates=array('av_date'=>$av_date,\n\t\t 'av_end_date'=>$next_date);\n\t $this->Veg_Model->insertav_date($dates);\n\t\tredirect(base_url().'Vegetables/available_date');\n\t}", "title": "" }, { "docid": "0aa57303a855323b48e8f92a691bcf1d", "score": "0.52678937", "text": "function addDaysToTimestamp($timestamp, $days) {\r\n\t//return date(\"Y-m-d\", $timestamp + ($days * 86400));\r\n\treturn $timestamp + ($days * 86400);\r\n}", "title": "" }, { "docid": "d70928fc96693ab8d97c031b458dc4f9", "score": "0.5253849", "text": "public function days_field() {\n\t\tprintf(\n\t\t\t'<input name=\"revision-strike[days]\" id=\"revision-strike-days\" type=\"number\" class=\"small-text\" value=\"%d\" /> %s',\n\t\t\tabsint( $this->get_option( 'days' ) ),\n\t\t\tesc_html_x( 'Days', 'Label for revision-strike[days]', 'revision-strike' )\n\t\t);\n\n\t\tprintf(\n\t\t\t'<p class=\"description\">%s</p>',\n\t\t\tesc_html__(\n\t\t\t\t'A post must be published at least this many days before its revisions can be removed.',\n\t\t\t\t'revision-strike'\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "31c4484eb29a830976391ba57eb397a7", "score": "0.5251341", "text": "private function _addDays($date, $daysToAdd)\n {\n return date($this->_dateFormat, strtotime($date . ' + ' . $daysToAdd . ' days'));\n }", "title": "" }, { "docid": "0dd64f9c110bfb1e2d4a73b3d8fa7fb1", "score": "0.52306026", "text": "public static function setting_notify_days()\n\t{\n\t\t$options = get_option( self::option_name );\n\t\techo \"<input id='notify_days' name='user_access_expire_options[notify_days]' type='number' size='10' value='{$options['notify_days']}' />\";\n\t\techo \"<span> days left.</span><br>\";\n\t\techo \"<br>How many days left a notification message should be sent to the user\";\n\t}", "title": "" }, { "docid": "35f87db1358e306f6d1180e04388591d", "score": "0.5225988", "text": "function addDay($nb=1){\n\t\t$abs_nb = abs($nb);\n\t\t$i = 0;\n\t\tif($nb>0){\n\t\t\twhile($i<$abs_nb){\n\t\t\t\t$this->day+=1;\n\t\t\t\tif($this->day>$this->DaysInMonth()){\n\t\t\t\t\t$this->day=1;\n\t\t\t\t\t$this->month++;\n\t\t\t\t\tif($this->month>12){\n\t\t\t\t\t\t$this->year++;\n\t\t\t\t\t\t$this->month = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}else{\n\t\t\twhile($i<$abs_nb){\n\t\t\t\t$this->day-=1;\n\t\t\t\tif($this->day<1){\n\t\t\t\t\t$this->month--;\n\t\t\t\t\tif($this->month<1){\n\t\t\t\t\t\t$this->year--;\n\t\t\t\t\t\t$this->month = 12;\n\t\t\t\t\t}\n\t\t\t\t\t$this->day=$this->DaysInMonth();\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\n\t\t$this->computeTime();\n\t}", "title": "" }, { "docid": "235688851ae23f5609e021b648c06bdb", "score": "0.52203006", "text": "public static function sumarDiasAlDate($dias,$date){\n $nuevafecha = strtotime ( '+'.$dias.' day' , strtotime ( $date ) ) ;\n $nuevafecha = date ( 'Y-m-d' , $nuevafecha );\n return $nuevafecha;\n }", "title": "" }, { "docid": "c798137eb1dd55c4ecb45033113a8cbc", "score": "0.5206638", "text": "public function countNumberDay()\n {\n $firstYearDay = new DateTime($this->datetime->format('Y').'-01-01');\n $this->dayOfYear = $this->datetime->diff($firstYearDay)->days+1;\n }", "title": "" }, { "docid": "d012ab8c7acfebe6c4471abbb09cdc3a", "score": "0.52002496", "text": "public function getDays();", "title": "" }, { "docid": "55c711cd01003256a4d2c77eefceda2b", "score": "0.5193236", "text": "function add_dates_action()\n\t{\n\t\t$delivery_date=$this->input->post();\n\t $this->Veg_Model->insertdelivery_date($delivery_date);\n\t\tredirect(base_url().'Vegetables/add_delivery_dates');\n\t\t\n\t}", "title": "" }, { "docid": "f1934fd99292b2da580b51ab7c2e00a8", "score": "0.5184577", "text": "public static function addDays($add_from_day, $no_of_days)\n {\n return $add_from_day->addDays($no_of_days);\n }", "title": "" }, { "docid": "fb3794f4601fbd5e45f5b22447cfa213", "score": "0.51802343", "text": "public function addWeekday()\n {\n return $this->addWeekdays(1);\n }", "title": "" }, { "docid": "e40b3d420c5ace06eb1935b58b56e7f2", "score": "0.5179703", "text": "public function premiumDays();", "title": "" }, { "docid": "ea9c90b824c8974fd9163e462e2f42c2", "score": "0.5177493", "text": "function getNumDays()\n {\n return $this->numDays;\n }", "title": "" }, { "docid": "94c6dfd8c4e3d270b9e6aec41f82a7da", "score": "0.5175046", "text": "private function getDayCount() {\n\t\treturn $this->dayCount;\n\t}", "title": "" }, { "docid": "8bf93cf9ea5c7712a3b171f4513c704e", "score": "0.51659393", "text": "public function visitDatesAction()\n {\n $this->visitDates();\n $this->_helper->viewRenderer->renderScript('property/add-visit-dates.phtml');\n }", "title": "" }, { "docid": "b9a5fe82b71193954f13084b1289891f", "score": "0.51605684", "text": "public function addDays(int|float $value): static\n {\n return $this->modifyDays($value);\n }", "title": "" }, { "docid": "c7e4d7c673eb16f87deff5d9eff784c7", "score": "0.51476294", "text": "public function addDays(float $days): Duration;", "title": "" }, { "docid": "1ed399c1137aeab38048feb0fb4965a4", "score": "0.51104766", "text": "public function timestampPlusNDays(int $days): string {\n return strval($this->moment()->addToTimestamp($days. ' days'));\n }", "title": "" }, { "docid": "3aa3c5d227f82f2bf98aef844c872374", "score": "0.51051545", "text": "public function ajax_adjust_add()\n\t{\n\t\t$in_string = $_POST['date'] . ' ' . $_POST['clock_in'] . ':00';\n\t\t$in_dt = DateTime::createFromFormat(util::DATE_TIME, $in_string, $this->timezone);\n\t\t$out_string = $_POST['date'] . ' ' . $_POST['clock_out'] . ':00';\n\t\t$out_dt = DateTime::createFromFormat(util::DATE_TIME, $out_string, $this->timezone);\n\n\t\t//Check that clock in time matched format\n\t\tif ($in_dt === FALSE) {\n\t\t\techo 'FALSE';\n\t\t\treturn;\n\t\t}\n\n\t\t//Build insert query\n\t\t$user_id = $_POST['user_id'];\n\t\t$date = $_POST['date'];\n\t\t$clock_in = $in_dt->format(util::DATE_TIME);\n\t\t$type = 'work';\n\n\t\tif ($out_dt === FALSE) {\n\t\t\t$add_query = \"\n\t\t\t\tINSERT INTO time_temp\n\t\t\t\t(user_id, date, type, clock_in)\n\t\t\t\tVALUES ('$user_id', '$date', '$type', '$clock_in')\";\n\t\t} else {\n\t\t\t$clock_out = $out_dt->format(util::DATE_TIME);\n\t\t\t$total = $out_dt->getTimestamp() - $in_dt->getTimestamp();\n\n\t\t\t$add_query = \"\n\t\t\t\tINSERT INTO time_temp\n\t\t\t\t(user_id, date, type, clock_in, clock_out, total)\n\t\t\t\tVALUES ('$user_id', '$date', '$type', '$clock_in', '$clock_out', '$total')\";\n\t\t}\n\n\t\t//Add time record to database\n\t\t$add_result = db::exec($add_query);\n\t\tif ($add_result === FALSE) {\n\t\t\techo 'FALSE';\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//Get id of new time record\n\t\t$record_id = db::last_id();\n\n\t\t//Create new row for adjust table\n\t\t$in_display = $in_dt->format(self::adjust_time_format);\n\t\t$out_display = ($out_dt === FALSE)?'':$out_dt->format(self::adjust_time_format);\n\t\t?>\n\t\t<tr time_id=\"<?php echo $record_id;?>\">\n\t\t\t<td class=\"c_in\"><input type=\"text\" class=\"time_input\" value=\"<?php echo $in_display;?>\"></td>\n\t\t\t<td class=\"c_out\"><input type=\"text\" class=\"time_input\" value=\"<?php echo $out_display;?>\"></td>\n\t\t\t<td>\n\t\t\t\t<button type=\"button\" class=\"update_button\">Update</button>\n\t\t\t\t<button type=\"button\" class=\"delete_button\">Delete</button>\n\t\t\t</td>\n\t\t</tr>\n\t\t<?php\n\t}", "title": "" }, { "docid": "14bda035103ec81126bc22df1b53281b", "score": "0.51012534", "text": "public function addDay(int $day)\n {\n $this->datetime->add(new DateInterval('P' . $day . 'D'));\n\n return $this;\n }", "title": "" }, { "docid": "b53e3409d679a0e529e122a1d4e3de97", "score": "0.5087127", "text": "function calcularTotalDcto(){\n\t$objResponse = new xajaxResponse();\n\t\n\t$objResponse->script(\"xajax_calcularDcto(xajax.getFormValues('frmPresupuesto'), xajax.getFormValues('frmListaArticulo'), xajax.getFormValues('frmTotalPresupuesto'),xajax.getFormValues('frm_agregar_paq'),xajax.getFormValues('frmListaManoObra'),xajax.getFormValues('frmListaNota'), xajax.getFormValues('frmListaTot'));\");\n\t\t\n\treturn $objResponse;\n}", "title": "" }, { "docid": "c6c5a26dc5e4e79abbb188279edf1e18", "score": "0.5084536", "text": "private function CountDay()\n {\n // date_default_timezone_set('Asia/Yerevan');\n // $now = time() - 30 * 60 * 60 *24;\n // $time = date('Y-m-d h:i:s', $now);\n // return $time;\n }", "title": "" }, { "docid": "e8f7b839bf70678f5617807c48bd4a75", "score": "0.5067585", "text": "public static function dateadd($v, $d=null, $f=\"m/d/Y\")\n {\n $d = ($d ? $d : date(\"Y-m-d\"));\n return date($f, strtotime($v.\" days\", strtotime($d)));\n }", "title": "" }, { "docid": "2f8589d35e04f8cb9194b938748221c8", "score": "0.5063427", "text": "private function _dateAdd( $_interval, $_number, $_date ) {\n\t\t\t$_date_time_array = getdate($_date);\n\n\t\t\t$_hours = $_date_time_array[\"hours\"];\n\t\t\t$_minutes = $_date_time_array[\"minutes\"];\n\t\t\t$_seconds = $_date_time_array[\"seconds\"];\n\t\t\t$_month = $_date_time_array[\"mon\"];\n\t\t\t$_day = $_date_time_array[\"mday\"];\n\t\t\t$_year = $_date_time_array[\"year\"];\n\n\t\t\tswitch (strtolower($_interval))\n\t\t\t{\n\t\t\t\tcase \"y\":\n\t\t\t\t\t$_year += $_number;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"q\":\n\t\t\t\t\t$_year += ( $_number * 3 );\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"m\":\n\t\t\t\t\t$_month += $_number;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"d\":\n\t\t\t\t\t $_day += $_number;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"w\":\n\t\t\t\t\t $_day += ( $_number * 7 );\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"h\":\n\t\t\t\t\t $_hours += $_number;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"n\":\n\t\t\t\t\t $_minutes += $_number;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"s\":\n\t\t\t\t\t $_seconds += $_number;\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\treturn mktime( $_hours, $_minutes, $_seconds, $_month ,$_day, $_year );\n\t\t}", "title": "" }, { "docid": "95d58079dfa25eb777f5b2126bdd12e9", "score": "0.5058256", "text": "public function getDateDifference(Request $request){\n if($request->ajax()) {\n\n $lease_start_date = Carbon::parse($request->lease_start_date);\n $lease_end_date = Carbon::parse($request->lease_end_date)->addDay(1);\n \n $date_diff = $lease_end_date->diffForHumans($lease_start_date, true, false, 4);\n return response()->json([\n 'html' => $date_diff\n ], 200);\n } else {\n abort(404);\n }\n }", "title": "" }, { "docid": "bb56e602cf573fa48eec02bdbf4f758b", "score": "0.50578195", "text": "public function updateArchivos(){\n \tparent::conectar();\n $id=$_SESSION['usuario'];\n $hoy=date(\"Y-m-d\");\n \n $dateVariable = strtotime($hoy);//your date variable goes here\n $date_plus_60_days = date('Y-m-d', strtotime('+ 1 days', $dateVariable));\n\n \tparent::query(\"UPDATE DocumentosPersonal SET fechaCreacion='$hoy',fechaFinal='$date_plus_60_days' WHERE idDocumentosPersonal='$id'\");\n\n\n parent::cerrar();\n\n\n }", "title": "" }, { "docid": "2a7a35f10c6e0ae98586fdcfbda55b73", "score": "0.5053932", "text": "function weekend_days($days) {\r\n\r\n // set the date picker's attribute\r\n $this->set_attributes(array('view' => $view));\r\n\r\n }", "title": "" }, { "docid": "46ef2fb8e179ea8b5fbbf48f97e18761", "score": "0.5043171", "text": "function restar_fechas($fecha, $cantidad) {\n\t$fecha_suma = strtotime($fecha.\"- \".$cantidad.\" days\");\n\treturn date(\"Y-m-d\", $fecha_suma);\n}", "title": "" }, { "docid": "828dac16b81284458d9db4c4fe653cf6", "score": "0.50429225", "text": "function somarDatas($data,$dias){ \n\t$data_final = date('Y-m-d', strtotime(\"$dias days\",strtotime($data)));\t\n\treturn $data_final;\n}", "title": "" }, { "docid": "7dcf2832678725df16132dabab020d53", "score": "0.50252473", "text": "public function getNumberOfDays()\n {\n return $this->number_of_days;\n }", "title": "" }, { "docid": "f0487479c1f5bb46eec8a248bc513b24", "score": "0.50220186", "text": "public static function addDayToDate($add = '+1 days', $date = 'now'){\n\t\tif($date == 'now') $date = date('Y-m-d');\n return date('Y-m-d', strtotime($date.' '.$add));\n }", "title": "" }, { "docid": "d868ec972e165743ca29f8dca20b2535", "score": "0.50090945", "text": "function somarDatas($data,$dias){\n\t$data_final = date('Y-m-d', strtotime(\"$dias days\",strtotime($data)));\t\n\t\treturn $data_final;\n}", "title": "" }, { "docid": "b0c3738d9214ee082a650e7f51c636b7", "score": "0.5004221", "text": "function setSumarDias($dias, $fecha = false) {\r\n\t\tif ($fecha == false) {\r\n\t\t\t$fecha = $this->mFecha;\r\n\t\t}\r\n\t\treturn date ( \"Y-m-d\", strtotime ( \"$fecha+$dias days\" ) );\r\n\t}", "title": "" }, { "docid": "1542a56fba5d7799817a66eebe67abc7", "score": "0.5003023", "text": "public function new_day(){\n $idzi = $this->date_model->last_day_id();\n \n //Compute the initial sold\n $soldchelt = (float)$this->calcul_model->cumul('SumeCheltuieli', (string)$idzi);\n $soldmarfa9 = (float)$this->calcul_model->cumul('SumeMarfaTVA9', (string)$idzi);\n $soldmarfa24 = (float)$this->calcul_model->cumul('SumeMarfaTVA24', (string)$idzi);\n $soldaport = (float)$this->calcul_model->cumul('SumeAport', (string)$idzi);\n\n $soldinitial_la_inceput = $this->soldinitial_model->get_sold_initial( $this->date_model->first_day_of_month($idzi) );\n\n $soldpenultimazi = $soldinitial_la_inceput + $soldaport - $soldchelt - $soldmarfa9 - $soldmarfa24;\n\n //insert the next date(to use in last_day_id())\n $this->date_model->new_day();\n $newzi = $this->date_model->last_day_id();\n $date = $this->date_model->date_by_id($newzi);\n\n $sold_azi = $this->get_total($idzi)['Aport'] - $this->get_total($idzi)['MarfaTVA9'] - $this->get_total($idzi)['MarfaTVA24'] - $this->get_total($idzi)['Cheltuieli'];\n\n $soldfinal_zi = $soldpenultimazi + $sold_azi;\n \n /*var_dump($soldfinal_zi);*/\n //check to see if the date inserted is the first day of any month(if there is a match, insert sold initial)\n if($date['day'] == 1) {\n\n //Insert sold initial into the db\n $toInsert = ['IDZi'=> $newzi, 'SoldInitial' => $soldfinal_zi];\n $this->soldinitial_model->new_sold_initial($toInsert);\n }\n // echo the new date inserted\n echo json_encode(['new_last_day' => \n $this->parsed_date_to_string( $this->date_model->date_by_id( $this->date_model->last_day_id() ) ),\n 'sold' => $soldfinal_zi ] ); \n\n\n /* //insert the next date(to use in last_day_id())\n $this->date_model->new_day();\n $newzi = $this->date_model->last_day_id();\n $date = $this->date_model->date_by_id($newzi); \n\n if($date['day'] == 1) {\n\n //Insert sold initial into the db\n $toInsert = ['IDZi'=> $newzi, 'SoldInitial' => 0];\n $this->soldinitial_model->new_sold_initial($toInsert);\n }\n\n echo json_encode(['new_last_day' => \n $this->parsed_date_to_string( $this->date_model->date_by_id( $this->date_model->last_day_id() ) )] );*/\n }", "title": "" }, { "docid": "2a0cc41a66758f4ee2958dba142945d0", "score": "0.49913654", "text": "public function addDays(int $days): Chronos\n {\n $this->date->add(new DateInterval(\"P\" . $days . \"D\"));\n\n return $this;\n }", "title": "" }, { "docid": "cdac9af1014f3c9bfa66e08bddf1065c", "score": "0.49632776", "text": "private function getDay()\n {\n $day = $this->count;\n $this->count++;\n return $day;\n }", "title": "" }, { "docid": "02210367bd2e362e511a572499fb43b2", "score": "0.49554574", "text": "public static function generateDays($conn){\n\n if(static::checkExistData($conn)) {\n return;\n }\n\n $month = getdate()['mon'];\n $year = getdate()['year'];\n\n $days = static::getNumberOfDays($month,$year);\n\n $values = '';\n\n for($i=1;$i<=$days;$i++){\n $values .= $i == $days ? \"('{$year}-{$month}-{$i}',1);\" : \"('{$year}-{$month}-{$i}',1),\";\n }\n\n $sql = \"INSERT INTO `trainings` (`date`,`add`) VALUES {$values}\";\n $stmt = $conn->prepare($sql);\n $stmt->execute();\n }", "title": "" }, { "docid": "3fa040fe45376be7c53d4ddabc4d6a2d", "score": "0.4954406", "text": "public function getDays(){\n\t\treturn $this->days;\n\t}", "title": "" }, { "docid": "32894305442ea0fd4158a854a51bbe8f", "score": "0.49358734", "text": "public function actionDateTesting(){\n $new_date = $this->getTheSubscriptionEndDate($membership_start_date=\"16/02/2026\",$number_of_months=24);\n header('Content-Type: application/json');\n echo CJSON::encode(array(\n \"success\" => mysql_errno() == 0,\n \"date\" => $new_date)\n );\n }", "title": "" }, { "docid": "0f7c1892bed5797449358f95c5e24086", "score": "0.49333552", "text": "public function updateRentDays($days){\n $this->rentDays = (int) $days;\n return $this;\n }", "title": "" }, { "docid": "430b9792f2fce027f4ffb406b38b6e33", "score": "0.49298918", "text": "public function setNumberOfDays($noDays)\n {\n $noDays = intval($noDays);\n if (!$noDays) $noDays = 30;\n $start = clone $this->endDate;\n $this->startDate = $start->modify(\"-{$noDays} days\");\n\n }", "title": "" }, { "docid": "7a01c6f14c3a0df032b357efa896be36", "score": "0.49286395", "text": "public function addDay( $day = 1, $format = 'Y-m-d H:i:s' )\n\t{\n\t\treturn date($format, strtotime(date($format) . \"+ {$day} day {$this->_timeOffset} hour\"));\n\t}", "title": "" }, { "docid": "0e821c5db49e0cd26444b65f06dde91b", "score": "0.49265277", "text": "public function getRestDaysCount()\r\n\t{\r\n\t\tif($this->restDaysCount == null)\r\n\t\t\t$this->recalcTrafficLimits();\t\t\r\n\t\treturn $this->restDaysCount;\r\n\t}", "title": "" }, { "docid": "b7fca24f333e9bddaf1040c5c3a2cb8c", "score": "0.49202943", "text": "function dia()\n{\n return (int)date(\"d\") + 4 - (int)date(\"l\");\n}", "title": "" }, { "docid": "ee9ed488919c965bf0589fb0be74cc92", "score": "0.49051976", "text": "public function getScheduleDays(Request $request)\n {\n if ($request->ajax()) {\n $scheduleDays = Schedule::where('id', $request->id)->first();\n $rooms = Room::all();\n $data = view('ajax-get-schedule-days', compact('scheduleDays', 'rooms'))->render();\n return response()->json([$data]);\n }\n }", "title": "" }, { "docid": "dbf6a6bd80dddd5b3df48b935b4f0d7b", "score": "0.49002934", "text": "function http_calendrier_jour_ics($debut, $fin, $largeur, $detcolor, $echelle, $evenements, $date) {\n\n\tif ($echelle==0) $echelle = DEFAULT_D_SCALE;\n\n\tlist($dimheure, $dimjour, $fontsize, $padding) = calendrier_echelle($debut, $fin, $echelle);\n\t$modif_decalage = round($largeur/8);\n\n\t$total = '';\n\n\tif ($evenements)\n {\n\t\t$tous = 1 + count($evenements);\n\t\t$i = 0;\n\t\tforeach($evenements as $evenement) {\n\n/*\t\t\t// Debug info\n\t\t\techo \"<!-- Event: \";\n\t\t\tvar_dump($evenement);\n\t\t\techo \" -->\\n\";\n*/\n\t\t\t$d = $evenement['DTSTART'];\n\t\t\t$e = $evenement['DTEND'];\n\t\t\t$d_jour = substr($d,0,8);\n\t\t\t$e_jour = substr($e,0,8);\n\t\t\t$debut_avant = false;\n\t\t\t$fin_apres = false;\n\t\t\t\n\t\t\t\n\t\t\t$radius_top = \" -moz-border-radius-topleft: 6px; -moz-border-radius-topright: 6px;\";\n\t\t\t$radius_bottom = \" -moz-border-radius-bottomleft: 6px; -moz-border-radius-bottomright: 6px;\";\n\t\t\t\n\t\t\tif ($d_jour <= $date AND $e_jour >= $date) {\n\n\t\t\t\t$i++;\n\t\n\t\t\t\t// Verifier si debut est jour precedent\n\t\t\t\tif (substr($d,0,8) < $date)\n\t\t\t\t{\n\t\t\t\t\t$heure_debut = 0; $minutes_debut = 0;\n\t\t\t\t\t$debut_avant = true;\n\t\t\t\t\t$radius_top = \"\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$heure_debut = substr($d,-6,2);\n\t\t\t\t\t$minutes_debut = substr($d,-4,2);\n\t\t\t\t}\n\t\n\t\t\t\tif (!$e)\n\t\t\t\t{ \n\t\t\t\t\t$heure_fin = $heure_debut ;\n\t\t\t\t\t$minutes_fin = $minutes_debut ;\n\t\t\t\t\t$haut = 0;\n\t\t\t\t\t$bordure = \"border-bottom: dashed 2px\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$bordure = \"border: 1px solid\";\n\t\t\t\t\tif (substr($e,0,8) > $date) \n\t\t\t\t\t{\n\t\t\t\t\t\t$heure_fin = 23; $minutes_fin = 59;\n\t\t\t\t\t\t$fin_apres = true;\n\t\t\t\t\t\t$radius_bottom = \"\";\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$heure_fin = substr($e,-6,2);\n\t\t\t\t\t\t$minutes_fin = substr($e,-4,2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ($debut_avant && $fin_apres) $opacity = \"-moz-opacity: 0.6; filter: alpha(opacity=60);\";\n\t\t\t\telse $opacity = \"\";\n\t\n\t\n\t\t\t\t$haut = http_cal_top (\"$heure_debut:$minutes_debut\", $debut, $fin, $dimheure, $dimjour, $fontsize);\n\t\t\t\t$bas = http_cal_top (\"$heure_fin:$minutes_fin\", $debut, $fin, $dimheure, $dimjour, $fontsize);\n\t\t\t\t$hauteur = http_cal_height (\"$heure_debut:$minutes_debut\", \"$heure_fin:$minutes_fin\", $debut, $fin, $dimheure, $dimjour, $fontsize);\n\t\t\t\tif ($bas_prec > $haut) $decale += $modif_decalage;\n\t\t\t\telse $decale = (2 * $fontsize);\n\t\t\t\tif ($bas > $bas_prec) $bas_prec = $bas;\n\t\t\t\t$url = $evenement['URL']; \n\t\t\t\t$desc = propre($evenement['DESCRIPTION']);\n\t\t\t\t$perso = $evenement['ATTENDEE'];\n\t\t\t\t$lieu = $evenement['LOCATION'];\n\t\t\t\t$sum = ereg_replace(' +','&nbsp;', typo($evenement['SUMMARY']));\n\t\t\t\tif (!$sum) { $sum = $desc; $desc = '';}\n\t\t\t\tif (!$sum) { $sum = $lieu; $lieu = '';}\n\t\t\t\tif (!$sum) { $sum = $perso; $perso = '';}\n\t\t\t\tif ($sum)\n\t\t\t\t$sum = \"<span style='font-size: 10px;'><b>$sum</b>$lieu $perso</span>\";\n\t\t\t\tif (($largeur > 90) && $desc)\n\t\t\t\t$sum .= \"<br /><span style='color: black'>$desc</span>\";\n\t\t\t\t$colors = $detcolor($evenement);\n\t\t\t\tif ($colors)\n\t\t\t\t{\n\t\t\t\t\tlist($bcolor,$fcolor) = $colors;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{ \n\t\t\t\t\t$bcolor = 'white';\n\t\t\t\t\t$fcolor = 'black';\n\t\t\t\t}\n\t\t\t\t$total .= \"\\n<div style='cursor: auto; position: absolute; overflow: hidden;$radius_top$radius_bottom$opacity z-index: \" .\n\t\t\t\t\t$i .\n\t\t\t\t\t\"; left: \" .\n\t\t\t\t\t$decale .\n\t\t\t\t\t\"px; top: \" .\n\t\t\t\t\t$haut .\n\t\t\t\t\t\"px; height: \" .\n\t\t\t\t\t$hauteur .\n\t\t\t\t\t\"px; width: \".\n\t\t\t\t\t($largeur - 2 * ($padding+1)) .\n\t\t\t\t\t\"px; font-size: \".\n\t\t\t\t\tfloor($fontsize * 1.3) .\n\t\t\t\t\t\"px; padding: \" .\n\t\t\t\t\t$padding . \n\t\t\t\t\t\"px; background-color: \" .\n\t\t\t\t\t$bcolor .\n\t\t\t\t\t\";color: \" .\n\t\t\t\t\t$fcolor .\n\t\t\t\t\t\"; $bordure $fcolor;'\n\t\t\t\t\tonmouseover=\\\"this.style.zIndex=\" . $tous . \"\\\"\n\t\t\t\t\tonmouseout=\\\"this.style.zIndex=\" . $i . \"\\\">\" .\n\t\t\t\t\t((!$url) ? \n\t\t\t\t\t\t$sum :\n\t\t\t\t\thttp_href($url, $sum, $desc,\"color: $fcolor\")) .\n\t\t\t\t\t\"</div>\";\n\t\t\t}\n\t\t}\n }\n\treturn\n\t\thttp_calendrier_heures($debut, $fin, $dimheure, $dimjour, $fontsize) .\n\t\t\t$total ;\n}", "title": "" }, { "docid": "e835352e2bc520d39e5f16aa7cbbf1e1", "score": "0.48803562", "text": "public function FutureDays() {\n $num = 0;\n $this->LeapYear($this->yy);\n for ($i = $this->mm; $i < 13; $i++)\n $num += DATECALC::$months[$i];\n $num = $num - $this->dd;\n return ($num);\n }", "title": "" }, { "docid": "8e0c74d73137f11155509ce53421babe", "score": "0.48759958", "text": "public static function countDays($d1, $d2)\n\t{\n\t\t$newDate = clone $d2;\n\t\t\n\t\t$total_days = 0;\n\t\twhile($d1 != $newDate)\n\t\t{\n\t\t\t$total_days++;\n\t\t\t$newDate->addDay();\n\t\t}\n\t\treturn $total_days;\n\t}", "title": "" }, { "docid": "4e1b2bf03d68d6d64d5a30c662d2ac5b", "score": "0.4874505", "text": "public function setTotal($idHouse){\n $date1 = new DateTime($this->start_d);\n $date2 = new DateTime($this->final_date);\n $diff = $date1->diff($date2);\n $days = $diff->days;\n $con = Conexion::connect();\n $stmt = $con->prepare(\"SELECT price_pn FROM houses where idhouses='$idHouse'\");\n $stmt->execute();\n $price = $stmt->fetchColumn();\n //calc total\n $total = $price * $days;\n $this->total = $total; \n }", "title": "" }, { "docid": "db65b77f3fa5ffb107a7f7a496b42380", "score": "0.4874145", "text": "public function setDays($days)\n {\n $this->days = (int) $days;\n }", "title": "" }, { "docid": "306201c487910cd1a69ca0e44d8a086b", "score": "0.48674127", "text": "public function kpi_ajax_weightageAction(Request $request)\n {\n $user = $this->getUser();\n if ($user != null) {\n $kpiId = $request->request->get('kpiDetailsId');\n $status = $request->request->get('status');\n $weightage = $request->request->get('weightage');\n $em = $this->getDoctrine()->getManager();\n\n $query = $em->createQueryBuilder()\n ->select('a.id', 'a.kpiName', 'a.weightage')\n ->from('InitialShippingBundle:KpiDetails', 'a')\n ->groupby('a.kpiName')\n ->getQuery()\n ->getResult();\n $sum = $weightage;\n\n for ($i = 0; $i < count($query); $i++) {\n if ($query[$i]['id'] == $kpiId && $status == 0) {\n $query[$i]['weightage'] = 0;\n }\n $sum = $sum + $query[$i]['weightage'];\n }\n\n $response = new JsonResponse();\n $response->setData(array('Weightage' => $sum));\n\n return $response;\n } else {\n return $this->redirectToRoute('fos_user_security_login');\n }\n }", "title": "" }, { "docid": "7090a8193e582bd2cd355050785a35c7", "score": "0.48577935", "text": "function dateShift($startDate,$num_days)\r\n{ \r\n $my_time = strtotime ($startDate);\r\n $timestamp = $my_time + ($num_days * 86400); \r\n $return_date = date(\"Y-m-d\",$timestamp);\r\n \r\n return $return_date;\r\n}", "title": "" }, { "docid": "6bc48e7ca3a5c297289daa597b8bae91", "score": "0.48540923", "text": "function dateAddWorkingDays($startDate, $workingDays = 1, $nonWorkingDays = 'default') {\n\t\tApp::import('Vendor', 'dates', 'pragmatia');\n\t\t$Dates = new Dates();\n\t\treturn $Dates->dateAddWorkingDays($startDate, $workingDays, $nonWorkingDays);\n\t}", "title": "" }, { "docid": "35ac71abb61cb153ccb40c72a2beeeca", "score": "0.48503393", "text": "public function addDate(){\n $user_id = $this->request->session()->read('Auth.Admin.id');\n \n $message = 'date format added successfully';\n $getDate = $this->Users->find()->where( [ 'id' => $user_id ] )->hydrate( false )->first();\n \n //$getCountryList['all']='All';\n \n if ($this->request->is('post')) {\n $this->Users->updateAll(['date_format' => $this->request->data[ 'date_format' ]], ['id' => $user_id]);\n \n //$CourseTrainers = $this->Filters->patchEntity($filtersEntity, $data);\n \n \n \n \n return $this->redirect(\"/users/add-date\"); \n }\n \n $this->set(compact('getDate')); \n \n }", "title": "" }, { "docid": "926f7cdc56e7045bc80800bf86275817", "score": "0.48491862", "text": "public function get_date_data()\n {\n $data = $_POST;\n $resp = new ajax_response( $data['action'], true );\n\n if( $data['variable_data'] != null )\n {\n $resp->set_status( true );\n $resp->set_data( array( 'loadable_content' => 'etrghvaoucyq3boigwsodrifuv suiboqiu5oqiuebroqviebrivueybrgirbf' ) );\n\n if( is_time( $data['variable_data'] ) )\n {\n\n }\n else\n {\n\n }\n }\n else\n {\n $resp->set_message('Could not load data. Try Again.');\n }\n\n echo $resp->encode_response();\n die();\n }", "title": "" }, { "docid": "702e6cb36efff208f90c625fdc0b7580", "score": "0.48449638", "text": "function suma_fechas($fecha,$ndias)\r\n{\r\n if (preg_match(\"/[0-9]{1,2}\\/[0-9]{1,2}\\/([0-9][0-9]){1,2}/\",$fecha))\r\n\t \r\n list($dia,$mes,$año)=split(\"/\", $fecha);\r\n \r\n \r\n if (preg_match(\"/[0-9]{1,2}-[0-9]{1,2}-([0-9][0-9]){1,2}/\",$fecha))\r\n \r\n \r\n list($dia,$mes,$año)=split(\"-\",$fecha);\r\n $nueva = mktime(0,0,0, $mes,$dia,$año) + $ndias * 24 * 60 * 60;\r\n $nuevafecha=date(\"d/m/Y\",$nueva);\r\n \r\n \treturn ($nuevafecha); \r\n}", "title": "" }, { "docid": "2fc62db650a45dc18cd4babbaffdc18c", "score": "0.4843877", "text": "public function dateDiffInDays($date1, $date2) \n\t{\n\t $diff = strtotime($date2) - strtotime($date1); \n\t \n\t // 1 day = 24 hours \n\t // 24 * 60 * 60 = 86400 seconds \n\t return (abs(round($diff / 86400)) + 1); \n\t}", "title": "" }, { "docid": "b1bd5027263a12dd7841df917dd75c9e", "score": "0.48419848", "text": "function sdDate($fecha, $ndias) {\r\n\treturn date ( \"Y-m-d\", strtotime ( \"$fecha+$ndias day\" ) );\r\n}", "title": "" }, { "docid": "5d606460a9062edfda39cab9872d8261", "score": "0.48382002", "text": "function add_delivery_dates()\n\t{\n\t\t$data['inner_view']='add_delivery_dates';\n\t\t$this->load->view('includes/main_layout',$data);\n\t}", "title": "" }, { "docid": "6450ca6737033339596fdadf50da8724", "score": "0.48369133", "text": "public function actionTendays()\n {\n return GetRates::getLastTenDays();\n }", "title": "" }, { "docid": "a6c491ca2db8d244e4b817a099848b4b", "score": "0.48342794", "text": "function addDay($time)\n\t{\n\t\t$time = strtotime($time);\n\t\t$day = date(\"d\",$time);\n\t\t$month = date(\"m\",$time);\n\t\t$year = date(\"y\",$time);\n\t\t$min = date(\"i\",$time);\n\t\t$hour = date(\"h\",$time);\n\t\t$sec = date(\"s\",$time);\n\t\t$day = $day + 1;\n\t\t$ret = date (\"Y-m-d\", mktime($hour,$min,$sec,$month,$day,$year));\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "b5178622aba4373f3cbfe12f7bd50a85", "score": "0.48266798", "text": "public function total(Request $request)\n {\n if ($request->ajax()) {\n $service = Service::find(Id::get($request->element), ['id', 'price']);\n\n if (empty($service)) {\n return response()->json(['value' => null]);\n } else {\n $value = (int) $request->quantity * $service->price;\n $value = number_format($value, 2, ',', '.');\n\n return response()->json(['value' => $value]);\n }\n }\n\n abort(404);\n }", "title": "" }, { "docid": "10cc7fc6100cfc6c183bc90021a0b326", "score": "0.48204255", "text": "private function calculateStRupertsDay(): void\n {\n if ($this->year < 710) {\n return;\n }\n\n $this->addHoliday(new Holiday(\n 'stRupertsDay',\n [],\n new \\DateTime($this->year.'-9-24', new \\DateTimeZone($this->timezone)),\n $this->locale\n ));\n }", "title": "" }, { "docid": "ad7aa21cc1f33130d166040023d3392e", "score": "0.48006502", "text": "public function getDateAdd()\n {\n return $this->date_add;\n }", "title": "" }, { "docid": "6fa7b8d71e67d27608e094df53f23591", "score": "0.47769523", "text": "public function getNowPlusDays($days)\n {\n $seconds = $days * 24 * 60 * 60;\n\n return time() + $seconds;\n }", "title": "" }, { "docid": "2a5879f978527697d5caf98cf7638a5b", "score": "0.47758693", "text": "public function getDates(Request $request) {\n\n $response = [\n \"ok\" => true,\n \"initialQuery\" => $request->input(),\n \"results\" => BusinessDays::getDays($request->initialDate, $request->delay)\n ];\n\n Redis::publish('BankWire', json_encode($response));\n\n return response()\n ->json($response, 200);\n }", "title": "" }, { "docid": "15b5ab43f2a9fa87f7c19e07db1f54f5", "score": "0.4772024", "text": "private static function setNumOfDays($num_of_days)\n {\n self::$num_of_days = (int) $num_of_days;\n }", "title": "" } ]
8cc5a5c1f2cc2623d2b9e11bdebb2136
/ | | SHOW ALL POSTS BY CATEGORY |
[ { "docid": "e0c4a9bfb780ce4d1240c80bf4086607", "score": "0.5752552", "text": "public function getAllCategoryPosts(Request $request, $category_id){\n // body\n $request->id = $category_id;\n \t$posts \t= new Post();\n \t$data \t\t\t= $posts->getAllCategoryPosts($request);\n\n // to collection\n // $all_subscribers = $all_users['data'] ?? [];\n\n // return view('officemate_admin.index', compact('all_subscribers'));\n //return response\n return response()->json($data, 200);\n }", "title": "" } ]
[ { "docid": "a1d6bb1993a0f852d78365a6790403d8", "score": "0.7027094", "text": "public function showCategories()\n {\n // $this->unbindModel(array('hasMany' => 'Post'));\n return $this->find('all',array(\n 'recursive' => -1\n ));\n }", "title": "" }, { "docid": "b34035f8684f4f217b5527d64700330d", "score": "0.69450665", "text": "public function getAllPost()\n {\n\n // retourne le resultat de la requete SELECT * FROM categories\n return DB::table('categories')->get();\n\n\n }", "title": "" }, { "docid": "a73353341c6406103c5dd3694f0606bb", "score": "0.67878276", "text": "function fg_sidebar_cat_posts( $cat ){\n\t\t$output = '';\n\t\t$r = new WP_Query('showposts=5&what_to_show=posts&nopaging=0&post_status=publish&cat=' . $cat );\n\t\tif ($r->have_posts()) {\t\n\t\t\t$output .= \"\\n\\t\" . '<li><h2>' . __( get_cat_name( $cat ) ) . '</h2></li>';\n\t\t\t$output .= \"\\n\\t\" . '<ul>';\n\t\t\twhile ($r->have_posts()) {\n\t\t\t\t$r->the_post();\n\t\t\t\t$output .= \"\\n\\t\" . '<li><a href=\"' . get_permalink() . '\">' . get_the_title() . '</a></li>';\n\t\t\t}\n\t\t\t$output .= \"\\n\\t\" . '</ul>';\n\t\t}\n\t\treturn $output;\n\t}", "title": "" }, { "docid": "0b9ea2b04a1640f48268011da0a30be6", "score": "0.6728038", "text": "function ts_get_category_posts( $cat_id, $no_of_post, array $class = array() ){\n\n\t$class = array(\n\t\t'title' => 'title_class',\n\t\t'body' => 'body_class',\n\t\t'category' => 'cat_class'\n\t);\n\n\t$args = array(\n\t\t'cat' => $cat_id, \n 'posts_per_page' => $no_of_post //get all posts\n\t);\n\n\t$the_query = new WP_Query( $args );\n\n\tif( $the_query -> have_posts() ):\n\t\twhile( $the_query -> have_posts() ): $the_query -> the_post();\n\n\t\t\t get_template_part( 'template-parts/content', get_post_format() ); \n\n\t\tendwhile;\n\tendif;\n\n}", "title": "" }, { "docid": "7f979153dc9d6a68217bedc849b4e786", "score": "0.6686461", "text": "public function index()\n {\n return Posts::with('categoria:id,categoria')\n ->orderBy('id', 'desc')\n ->get();\n }", "title": "" }, { "docid": "581f6ffcb319b3bcf9b0808273cff934", "score": "0.66173625", "text": "function get_posts_for_filterby_cat() {\n\tcheck_ajax_referer( 'filterby-cat', 'nonce' );\n\n\tif ( ! isset ( $_POST['catId'] ) ) {\n\t\twp_die( __( 'The category ID was not passed via AJAX.', 'filterby-cat' ) );\n\t}\n\n\t$posts = get_posts( [\n\t\t'category' => (int) $_POST['catId'],\n\t\t'numberposts' => 10,\n\t\t'no_found_rows' => true,\n\t\t'update_post_meta_cache' => false,\n\t\t'update_post_term_cache' => false,\n\t] );\n\n\t//echo json_encode( $posts );\n\t\n\tforeach( $posts as $post ) {\n\t\t$permalink = get_permalink( $post );\n\t\t$title = get_the_title( $post );\n\t\t$response .= '<h1><a href=\"'. $permalink . '\">' . $title . '</a></h1>';\n\t}\n\t\n\techo $response;\n\t\n\tdie();\n}", "title": "" }, { "docid": "667a71999769cb724710551f31f78c45", "score": "0.658533", "text": "function get_Posts_all_where_cat_categoryid($id){\r\n global $db;\r\n $postcat = $db->query(\"SELECT * FROM `posts` WHERE `category_id`= '$id' \");\r\n return $postcat;\r\n}", "title": "" }, { "docid": "07f37bb5be884b87de7adb1a02b7187a", "score": "0.65146583", "text": "public function actionAll()\n {\n // $dataProvider = new ActiveDataProvider([\n // 'query' => Posts::find(),\n // ]);\n \n // Query -> Posts & Usuarios & Perfiles\n $pClass = new Posts;\n $posts = $pClass->getAllLeft();\n \n $cClass = new Category;\n \n $categories = $cClass->getAllLeft();\n \n return $this->render('all', [\n //'dataProvider' => $dataProvider,\n 'posts' => $posts,\n 'categories' => $categories\n ]);\n }", "title": "" }, { "docid": "fed1084d6c74f96516d5410ad8b57989", "score": "0.6461106", "text": "public function posts()\n\t{\n\t\tif (isFromAdminPanel()) {\n\t\t\treturn $this->hasMany(Post::class, 'category_id');\n\t\t} else {\n\t\t\treturn $this->hasMany(Post::class, 'category_id', 'translation_of')\n\t\t\t\t->where('country_code', config('country.code'));\n\t\t}\n\t}", "title": "" }, { "docid": "833f27cf2bf6f63a81460840db35dfff", "score": "0.6418671", "text": "public function listCategoryAction()\n {\n $em = $this->getDoctrine()\n ->getEntityManager();\n\n $category = $em->createQueryBuilder()\n ->select('b')\n ->from('BloggerBundle:Category', 'b')\n ->addOrderBy('b.id', 'ASC')\n ->getQuery()\n ->getResult();\n\n if (!$category) {\n throw $this->createNotFoundException('Unable to find Cate post.');\n }\n \n return $this->render('BloggerBundle:Category:listCategory.html.twig', array(\n 'categorys' => $category\n ));\n }", "title": "" }, { "docid": "fe8f717ed5378dd07e687e49d942cdad", "score": "0.6416174", "text": "public function category_list()\n\t{\n\t\t$categoryList['catData'] = $this->op->getCategory_and_postDetails();\n\t\t$this->adminBackend('adminarea/category-list',$categoryList,TRUE);\n\t}", "title": "" }, { "docid": "a5a2fab1a041d817753e8fe18cacc0d5", "score": "0.6384449", "text": "public function getPostsByCategory( $category ) {\n $path = API_ROOT.json_decode(API_ROUTER)->posts;\n \n // Retrieve the posts with the given category.\n $data = array_filter(\n array_map(function($post) use ($path){ \n return new Markdown( \"{$path}{$post}\" );\n }, array_values( \n array_filter(\n array_filter(\n scandir( $path ), \n function($post) {\n return strpos($post, '.md') == (strlen($post) - strlen('.md'));\n }\n )\n )\n )),\n function($post) use ($category) {\n \n $normalized = strtolower(str_replace(' ', '-', $category));\n \n if( !($_category = $post->meta['category']) ) return false;\n \n else return $normalized == strtolower(str_replace(' ', '-', $_category));\n \n }\n );\n \n // Pass through data modifier.\n $result = $this->modify( $data ); \n \n // Extract data.\n $data = $result['data'];\n \n // Preserve other data.\n unset($result['data']);\n \n // Return response.\n return $this->response( 200, $data, $result );\n \n }", "title": "" }, { "docid": "c1d8462b2878b7950ab5e6cce11a5e5b", "score": "0.6372675", "text": "function mmc_post_categories( $post_id ){\n\tglobal $db;\n\t//set up query\n\t$query = \"SELECT categories.*\n\t\t\t\tFROM posts_categories AS pc, categories\n\t\t\t\tWHERE pc.category_id = categories.category_id\n\t\t\t\tAND pc.post_id = $post_id\";\n\t$result = $db->query($query);\n\tif($result->num_rows >= 1){\n\t\twhile( $row = $result->fetch_assoc() ){\n\t\t\techo $row['name'];\n\t\t\techo ', ';\n\t\t}\n\t}\n}", "title": "" }, { "docid": "f8ef65a23defc49caf7b9b02d31f80f1", "score": "0.63708675", "text": "public function index()\n {\n $postcategorys = PostCategory::where(\"type\",\"post\")\n\t\t\t\t\t\t->orderBy(\"id\")->get();\n return view('backend.cms.post_category.list',compact('postcategorys'));\n }", "title": "" }, { "docid": "02e06e9a870934a91394099c74eb4b7d", "score": "0.6320305", "text": "public function showByCategoryAction($category, $limit = 5)\n {\n $em = $this->getDoctrine()->getManager();\n $posts = $em->getRepository('SoloistBlogBundle:Post')->findByCategory($category, $limit);\n\n return array(\n 'posts' => $posts\n );\n }", "title": "" }, { "docid": "f47e7969b22f198796be3635bdadef69", "score": "0.63076544", "text": "public function getPosts()\n {\n return $this->hasMany(Post::className(), ['id' => 'post_id'])->viaTable('{{%post_category_post}}', ['category_id' => 'id']);\n }", "title": "" }, { "docid": "81e5c8b252414841d8782cad16478cdb", "score": "0.62756336", "text": "public function getCat()\n {\n return $this->query(\" SELECT c.* FROM Categories c INNER JOIN cat_post cp ON cp.id_cat = c.id\n WHERE cp.post_id = ?\", [$this->id]);\n }", "title": "" }, { "docid": "2c985bd021d35375991e1262685a6c42", "score": "0.62676466", "text": "public function pageAllPost(){\n $post = PostModel::with('category')\n ->join('users','user_id', '=', 'users.id')\n ->select('users.name', 'post.*')\n ->paginate(15);\n $data['post'] = $post;\n return view('admin.PostManager.post', $data);\n }", "title": "" }, { "docid": "b6196eb07f2a44196023c26c26492d71", "score": "0.622197", "text": "public function index(Request $request)\n { \n if(!empty($request->get('category'))) {\n $posts = DB::table('posts')\n ->select('posts.*', 'users.name as author', 'categories.name')\n ->join('categories', 'posts.category_id', 'categories.id')\n ->join('users', 'posts.user_id', 'users.id')\n ->where('categories.name', 'like', '%'.$request->get('category'). '%')\n ->get();\n // foreach ($posts as $key => $value) {\n // $category = $value->category()->first();\n // }\n } else {\n $posts = Post::latest()->get();\n }\n return view('frontend.all_post',[\n 'page' => 'All Posts',\n 'title' => 'Apotek Keluarga',\n 'posts' => $posts,\n 'categories' => Category::all()\n ]);\n // dd($posts);\n }", "title": "" }, { "docid": "da6a6c13de823948a91098fb77fa8c96", "score": "0.62126476", "text": "public function index()\n {\n\n $posts = Post::with('category')\n ->where('user_id', Auth::id())\n ->orderBy('id', 'desc')\n ->get();\n// $posts = Post::with('category:id,name')->orderBy('id', 'desc')->get();\n// $posts = Post::with(array('category'=>function($query){\n// $query->select('id', 'name');\n// }))->orderBy('id', 'desc')->get();\n// $posts = Post::orderBy('id', 'desc')->get();\n //dd($posts);\n// $user = auth()->user();\n// $user->load('posts');\n// $posts =$user->posts;\n// $posts = auth()->user()->posts;\n\n return view('admin.post.index', compact('posts'));\n }", "title": "" }, { "docid": "9248b4c8a72a7934f9cd693f8152b365", "score": "0.6209215", "text": "public function index() {\n // $this->set(compact('categoryList'));\n $this->Category->recursive = 2;\n $this->Category->hasMany['Post']['order'] = array('created' => 'DESC');\n $this->set('categories', $this->Paginator->paginate());\n $this->loadModel('Post');\n $popular_posts = $this->Post->find('all', array('conditions' => array('status' => 0), 'order' => 'access_counter DESC', 'limit' => 10));\n $this->set('popular_posts', $popular_posts);\n $this->RequestHandler->isSmartPhone() === true ? $this->render('index_sm') : $this->render('index');\n }", "title": "" }, { "docid": "d1c32f50874bce5540c7007f7c0503b9", "score": "0.620071", "text": "public function getCategoriesPosts()\n {\n return $this->hasMany(CategoryPost::class, ['category_id' => 'id']);\n }", "title": "" }, { "docid": "c851a8362b64f05974fddafac0669fef", "score": "0.6198309", "text": "public function filteredPosts($id)\n {\n $posts = Post::where('category_id',$id)->get();\n\n return view('dashboard.posts.index')\n ->with('posts',$posts);\n }", "title": "" }, { "docid": "73544cf8c8575d33fb25db03a44e6687", "score": "0.6186445", "text": "public function postsByCategory($id){\n $posts = Post::select(\"u.name as uname\",\"u.surname as usurname\",\"posts.*\",\"c.name as cname\")\n ->join(\"users as u\",\"posts.user_id\",\"=\",\"u.id\")\n ->join(\"categories as c\",\"posts.category_id\",\"=\",\"c.id\")\n ->where(\"c.id\",\"=\",$id)\n ->orderBy(\"posts.id\",\"asc\")\n ->get();\n $category = Category::find($id);\n return response()->json(array(\n 'status' => 'Success',\n 'post' => $posts,\n 'category' => $category->name\n ), 200);\n }", "title": "" }, { "docid": "a2543b96848a47eeaa8786245f2c2c61", "score": "0.618491", "text": "public function allCategories()\n {\n $categories = Category::withCount('post')->orderBy('id', 'DESC')->get();\n \treturn view('admin.categories.index',compact('categories'));\n }", "title": "" }, { "docid": "d677aa1012d2cc2f4596dff7493fe875", "score": "0.61209035", "text": "function themify_theme_mega_posts() {\n\t\t$termid = isset( $_POST['termid'] )? $_POST['termid']: '';\n\t\t$taxonomy = isset( $_POST['tax'] )? $_POST['tax']: 'category';\n\t\techo themify_theme_mega_get_posts( $termid, $taxonomy );\n\t\tdie();\n\t}", "title": "" }, { "docid": "0194f97db07c2ba94be348cf16ece47e", "score": "0.6113752", "text": "public function index()\n {\n $title = '';\n\n if(request('category')){\n $category = Category::firstWhere('slug', request('category'));\n $title = ' in ' . $category->name;\n }\n\n if(request('author')){\n $author = User::firstWhere('username', request('author'));\n $title = ' by ' . $author->name;\n }\n\n return view('posts',[\n \"title\" => \"All Posts\" . $title,\n \"active\" => 'posts',\n // \"posts\" => Post::all()\n \"posts\" => Post::latest()->filter(request(['search','category','author']))->paginate(7)->withQueryString()//filter to model\n ]);\n }", "title": "" }, { "docid": "8be6a83768bec3c6d3573d5897f32703", "score": "0.6109481", "text": "public function index(PostCategoryBuilder $query): PostCategoryCollection\n {\n return new PostCategoryCollection($query->paginate());\n }", "title": "" }, { "docid": "922331031bf50e3ce19a111bde4bc332", "score": "0.60975355", "text": "public function index()\n {\n $categorys_data = DB::select(\"SELECT * FROM category\");\n\n $posts_data = DB::select(\"\n SELECT p.*, c.name, c.idx as c_idx\n FROM post p \n JOIN category c\n ON p.category = c.idx\n ORDER BY count desc, date desc\");\n\n return view(\"index\", [\"categorys\" => $categorys_data, \"posts\" => $posts_data]);\n }", "title": "" }, { "docid": "137184564651017d34e808582380840f", "score": "0.60956925", "text": "public function indexAction() {\r\n $em = $this->getDoctrine()->getManager();\r\n\r\n $entities = $em->getRepository('LooninsWikiBundle:Categorie')->findBy(array(), array('cat'=>'ASC'));\r\n\r\n return array(\r\n 'entities' => $entities,\r\n );\r\n }", "title": "" }, { "docid": "ecada78b5a6d2b950a37433d60ed5b05", "score": "0.60788673", "text": "public function read_post(){\n $query = \"SELECT {$this->table}.* , categories.cat_title FROM {$this->table} \n LEFT JOIN categories ON {$this->table}.post_category_id = categories.cat_id \n ORDER BY {$this->table}.post_id ASC\";\n $stmt = $this->conn->prepare($query);\n $stmt->execute();\n return $stmt;\n }", "title": "" }, { "docid": "40d41fdd799c9345f475a50c184263e5", "score": "0.6061643", "text": "public function index()\n {\n \t$posts = Post::with('category')->orderByDesc('id')->paginate(50);\n return view('backend.post.index', compact('posts'));\n }", "title": "" }, { "docid": "3c73101545224354a16677f55c1f5204", "score": "0.6061452", "text": "public function postsByCategory($category)\n\t{\n\t\t$categories = $this->blog->allCategories();\n\t\t$posts = $this->blog->postsByCategory($category);\n\t\tSession::put('category', $category);\n\n\t\treturn response()->view('article/all', array('articles' => $posts, 'categories' => $categories));\n\t}", "title": "" }, { "docid": "571f8fbfe5981cdd02858fa540e9f01e", "score": "0.60409665", "text": "public function actionGetPostList(){\r\n //Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl.'/css/post.css');\r\n //$catalog_id = Yii::app()->request->getQuery('catalog_id', 11);\r\n\t\t$postParms = array();\r\n\t\t$db = Yii::app()->db;\r\n\t\t$_POST = (array) json_decode(file_get_contents('php://input'), true);\r\n\t\t$postParms = (!empty($_POST['parms']))? $_POST['parms'] : array();\r\n\t\t$catalog_id = $postParms['id'];\r\n\t\t//$catalog_id = 12;\r\n $criteria = new CDbCriteria();\r\n $criteria->order = 'id DESC';\r\n if(!empty($catalog_id)){\r\n $criteria->addCondition('catalog_id='.$catalog_id);\r\n }\r\n \r\n\r\n \r\n //房产热点新闻\r\n $posts = Post::model()->findAll(array(\r\n 'select' => 't.id as id, title',\r\n 'condition' => 'catalog_id = :catalog_id',\r\n 'params' => array(':catalog_id' => $catalog_id),\r\n\t\t\t'with' => array('catalog'),\r\n 'order' => 't.id DESC',\r\n 'limit' => 5\r\n ));\r\n\t\t\r\n\t\r\n\r\n\t\t$result['posts'] = array_map(create_function('$m','return $m->getAttributes(array(\\'id\\',\\'title\\'));'),$posts);\r\n\t\t\r\n\t\techo json_encode($result);\r\n \r\n\r\n }", "title": "" }, { "docid": "3580bf94e3f5d5dff5e69290836c63df", "score": "0.60313463", "text": "public function index()\n {\n $category = CategoryPost::all();\n \n return view('layouts.category.index')->with(compact('category'));\n }", "title": "" }, { "docid": "5fdb3ae6dc2455ebec43fc2da6ac7d0d", "score": "0.6015056", "text": "public function getAll () {\n $result = PostModel::getList();\n\n $this->renderView($result);\n }", "title": "" }, { "docid": "f5bf2057d137529c09721feae30add34", "score": "0.6007967", "text": "function getCategories()\n {\n }", "title": "" }, { "docid": "58c7ff8cc20ec2e899dfcbebc885a629", "score": "0.59935546", "text": "public function allPosts(Request $request)\n\t{\n\t\t$categories = $this->blog->allCategories();\n\t\t$posts = $this->blog->allPosts();\n\t\tSession::put('category', 'all');\n\t\t\n\t\t\n\t\treturn response()->view('article/all', array('articles' => $posts, 'categories' => $categories));\n\t}", "title": "" }, { "docid": "35bb80a3a2b63cea1e5acad4d77b75b0", "score": "0.5979136", "text": "public function index()\n {\n $categorys = DB::select(\"\n SELECT c.*, IFNULL(p.count, 0) as count\n FROM category c\n LEFT JOIN (SELECT COUNT(*) as count, category FROM post GROUP BY category) as p\n ON c.idx = p.category\n \");\n\n\n return view(\"admin\", [\"categorys\" => $categorys]);\n }", "title": "" }, { "docid": "93ddc695b38dcbebac9f580126f013d4", "score": "0.5962534", "text": "public function index_get()\n {\n $this->response($this->CategoriaModel->get_blog_categories(), 200);\n }", "title": "" }, { "docid": "eda610f050c0f75b55d78deff830802c", "score": "0.59591985", "text": "public function indexAction()\n {\n if (!$this->getUser()->getRole()->hasAccessToAlias(\"show_categories\"))\n throw new AccessDeniedException();\n\n $em = $this->getDoctrine()->getManager();\n $categories = $em->getRepository(PostCategory::class)->findAll(['createdAt' => 'DESC']);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem(\"Blog\", $this->get(\"router\")->generate(\"admin_post_index\"));\n $breadcrumbs->addItem(\"Categories\");\n\n return $this->render('FnpAdminBundle:Blog:index.category.html.twig',\n [ 'categories' => $categories ]\n );\n }", "title": "" }, { "docid": "ce7cc4039fc6ec32ba44832d57be5be6", "score": "0.59585637", "text": "public function index($slug = null){\n\t\t$this->layout = 'site';\n\t\t$this->theme = $this->get_theme();\n\t\t$category_id = $this->Category->findBySlug($slug);\n\t\t$this->paginate = array(\n\t\t\t\t'limit' => 5,\n\t\t\t\t'joins' => array(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t'table' => 'categories_posts',\n\t\t\t\t\t\t\t\t'alias' => 'C',\n\t\t\t\t\t\t\t\t'type' => 'INNER',\n\t\t\t\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t\t\t\t\t'C.post_id = Post.id',\n\t\t\t\t\t\t\t\t\t\t'C.category_id = '.$category_id['Category']['id']\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t'conditions' => array('Post.published' => 1),\n\t\t\t\t'order' => array('Post.id' => 'DESC')\n\t\t\t);\n\t\t$this->set('posts', $this->paginate('Post'));\n\t}", "title": "" }, { "docid": "7f8eb6e70ed27e01131aa544461c3d93", "score": "0.5948811", "text": "public function queryAll(){\r\n\t\t$sql = 'SELECT * FROM categories';\r\n\t\t$sqlQuery = new SqlQuery($sql);\r\n\t\treturn $this->getList($sqlQuery);\r\n\t}", "title": "" }, { "docid": "d3b9d89b5b125c8dfe3d5d0ab1bc97cf", "score": "0.59467137", "text": "public function getCategories()\n {\n die('TODO');\n }", "title": "" }, { "docid": "1e9cb49eb59426e59019d3ab77024ef3", "score": "0.5942864", "text": "function getAllFoodpornsByCategory($cat)\n {\n $stmt = self::$_db->prepare(\"SELECT * FROM foodporn WHERE category=:cat\");\n $stmt->bindParam(\":cat\", $cat);\n $stmt->execute();\n return $stmt->fetchAll(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "bd6cabfb43213c890d3b48c7d2afc151", "score": "0.5937982", "text": "public function all()\n {\n if (!$this->isLogged()) exit;\n\n $this->oUtil->oPosts = $this->oModel->getAll();\n\n $this->oUtil->getView('index');\n }", "title": "" }, { "docid": "9d75d9f50b0ef856e8205f8861c7332a", "score": "0.59366286", "text": "function the_homepage_categories()\n{\n\n $homepage_posts_query = new WP_Query(\n [\n 'category_name' => 'homepage', // articles dans la catégorie homepage\n 'posts_per_page' => 3 // nombre de post à récupérer\n ]\n );\n\n if ($homepage_posts_query->have_posts()) : while ($homepage_posts_query->have_posts()) : $homepage_posts_query->the_post();\n\n get_template_part('template-parts/post-excerpt');\n\n endwhile;\n endif;\n}", "title": "" }, { "docid": "3fff533796cad0ce16d0a09b7ecf686e", "score": "0.59323305", "text": "public function index()\n {\n if(Auth::user()->admin == \"1\"){\n $post = Posts::all(); \n }else{\n $post = Posts::where('user_id', Auth::user()->id)->get();\n }\n // $post = Posts::with('category')->get();\n $category=Categories::all();\n return view('Dashboard.post')->with('post',$post)->with('category',$category);\n }", "title": "" }, { "docid": "bad8182de118228673c419c66596a5f8", "score": "0.5929307", "text": "public function posts()\n {\n // This Category has many posts\n return $this->hasMany(Post::class);\n }", "title": "" }, { "docid": "086b298a44efcefa6006094bb39850ae", "score": "0.5927346", "text": "public function findAllPosts($pageIndex, $category, $pattern);", "title": "" }, { "docid": "2a21f997d9e9dd50d86701960172ee7f", "score": "0.5918608", "text": "public function getCategoryCollection($post)\n {\n $collection = Mage::getResourceModel('tech_blog/post_category_collection')\n ->addPostFilter($post);\n return $collection;\n }", "title": "" }, { "docid": "5df1635bcdfc20524d79929c28baaf6a", "score": "0.5917863", "text": "public function getCategories();", "title": "" }, { "docid": "5df1635bcdfc20524d79929c28baaf6a", "score": "0.5917863", "text": "public function getCategories();", "title": "" }, { "docid": "5df1635bcdfc20524d79929c28baaf6a", "score": "0.5917863", "text": "public function getCategories();", "title": "" }, { "docid": "7d1901d434fe5e781931778dfc9994f3", "score": "0.5909791", "text": "public function categoryAction(){\n // db.catalog_category_entity - default\n // db.catalog_category_entity_varchar - field - value = name (getName // ->addAttributeToSelect(\"name\") )\n // db.catalog_category_entity.level - level (->addFieldToFilter(\"field\", чему_будет_равно) )\n // where \"catalog_category_entity.entity_id = catalog_category_entity_varchar.entity_id\"\n // ->addOrder('name',\"ASC\"); - ORDER BY `name` ASC ()\n\n // for cool check --- if( $collection instanceof Varien_Data_Collection_Db ) { ... }\n $categories = Mage::getResourceModel(\"catalog/category_collection\")\n ->addFieldToFilter('level', 2)\n ->addAttributeToSelect(\"name\")\n ->addOrder('name', Varien_Db_Select::SQL_ASC);\n\n foreach($categories as $category){\n //Zend_Debug::dump($category);\n echo \"<p>\".$category->getId() .\" - \". $category->getName().\"</p>\";\n }\n }", "title": "" }, { "docid": "5818bb02e185325d765a80148edea90f", "score": "0.5901602", "text": "function display_post_categories($post_categories, $parent_id) {\n $ret = \"\";\n \n // Patching ....\n if (in_array($parent_id, array(22,9))) {\n $cat = $parent_id;\n } else {\n // First category\n $cat = post_main_category($post_categories, $parent_id); \n }\n $first_cat_ID = $cat->cat_ID;\n $name = $cat->cat_name;\n $ret = '<li><a href=\"' . get_category_link($cat);\n $ret .='\" title=\"Toate articolele din ' . $name . '\" class=\"category main ' . $cat->category_nicename . '\">' . $name . '</a></li>';\n \n // Getting the other categories\n $i = 0;\n foreach ($post_categories as $c) {\n if (!($c->cat_ID == $first_cat_ID)) {\n $name = $c->cat_name;\n $ret .= '<li><a href=\"' . get_category_link($c);\n $ret .='\" title=\"Toate articolele din ' . $name . '\" class=\"category ' . $c->category_nicename . '\">' . $name . '</a></li>';\n }\n $i += 1;\n if ($i == 5) {\n $ret .= '<li><p> ... </p></li>';\n break;\n }\n }\n \n return $ret;\n}", "title": "" }, { "docid": "1c86ea20ecc9c5f962383574327f0a66", "score": "0.5898812", "text": "public function getPosts($categoryId,$post){\n $this->posts = $post;\n $childCategories = $this->getChildCategory($categoryId);\n\n if($childCategories){\n $posts = array();\n\n foreach($childCategories as $category){\n $grandCategories = $this->getChildCategory($category['CategoryId']);\n\n if($grandCategories){\n foreach($grandCategories as $childCategory){\n $childCategoryPosts = $this->posts->getPostsByCategoryId($childCategory['CategoryId']);\n foreach($childCategoryPosts as $childCategoryPost){\n array_push( $posts, $childCategoryPost );\n } \n }\n }\n else{\n $childCategoryPosts = $this->posts->getPostsByCategoryId($category['CategoryId']);\n foreach($childCategoryPosts as $childCategoryPost){\n array_push( $posts, $childCategoryPost );\n }\n }\n }\n }\n else{\n $posts = $this->posts->getPostsByCategoryId($categoryId);\n }\n return $posts;\n }", "title": "" }, { "docid": "efe57f1d43adf59baef85b778a265bce", "score": "0.589382", "text": "public function categoryAction() {\n $currentCatId = $this->model->getCatId($this->route['id']);\n $currentCatName = $this->model->getCatName($this->route['id']);\n $adminModel = new Admin;\n \n $vars = [\n 'list' => $this->model->listCatPosts($currentCatId),\n 'categories' => $adminModel->listCategories($this->route),\n 'catID' => $currentCatId,\n 'catNAME' => $currentCatName,\n ];\n\n $this->view->render('Category:', $vars);\n }", "title": "" }, { "docid": "0ec77608e22d7eca736c1adb85b79b66", "score": "0.5882849", "text": "public function category() {\n $this->getCategoryArray(null,'sort_order');\n $this->template->content->view('category/index', $this->data);\n $this->template->publish();\n }", "title": "" }, { "docid": "cf26e2360fd24b7282bbc7f6667564d4", "score": "0.5879727", "text": "function get_categories(){\n\tglobal $db;\n\t$select_category_query=\"SELECT * FROM `categories`\";\n\t$select_category = $db->prepare($select_category_query);\n\tif($select_category->execute()){\n\t\twhile($row_category = $select_category->fetch(PDO::FETCH_OBJ)){\n\t\t\techo \"<a href=\\\"category.php?cat_id={$row_category->cat_id}\\\" class=\\\"list-group-item\\\">{$row_category->cat_title}</a>\";\n\t\t}\n\t} //if($select_category->execute())\n}", "title": "" }, { "docid": "4ef407388c2fcf57e9678007cc8c92ee", "score": "0.5878883", "text": "public function listPosts() {\n $posts = $this->post->getExtractPostsWithNumberOfComments();\n $view = new View('listPostsView');\n $view->generate(array('posts' => $posts));\n }", "title": "" }, { "docid": "e246aec9c642d548fe58fc3a69d04497", "score": "0.587488", "text": "static function get_all_categories() {\t\n\t\t\tglobal $wpdb;\n\t\t\t\n\t\t\treturn $wpdb->get_results(\"select $wpdb->terms.* from $wpdb->terms inner join $wpdb->term_taxonomy\n\t\t\t\t\ton ($wpdb->term_taxonomy.term_id = $wpdb->terms.term_id)\n\t\t\t\t where $wpdb->term_taxonomy.taxonomy = 'category'\n\t\t\t\t order by $wpdb->terms.name\n\t\t\t\t \"); \n\t }", "title": "" }, { "docid": "9325a6917003dc50665d7caee38d3f8f", "score": "0.5872893", "text": "function wpcp_get_posts() {\n\textract( $_REQUEST );\n\t$all_posts = get_posts(\n\t\tarray(\n\t\t\t'post_type' => $wpcp_post_type,\n\t\t\t'posts_per_page' => -1,\n\t\t)\n\t);\n\tforeach ( $all_posts as $key => $post_obj ) {\n\t\techo '<option value=\"' . $post_obj->ID . '\">' . $post_obj->post_title . '</option>';\n\t}\n\tdie( 0 );\n}", "title": "" }, { "docid": "435753761fe65dc1008260602607c6f0", "score": "0.5870987", "text": "function blog_cats($id){\n\t$post_id = $id;\n\t$categories = get_the_category($post_id);\n\t$cat_trim = array();\n\t$html = '';\n\n\tforeach ($categories as $key => $value) {\n\t\tif($value->cat_name != 'Blog'){\n\t\t\t$cat_trim[] = $value;\n\t\t}\n\t}\n\tforeach ($cat_trim as $key => $value) {\n\t\t\t$html .= $value->cat_name;\n\t\t\tif(count($cat_trim) > $key + 1){\n\t\t\t\t$html .= \" | \";\n\t\t\t}\n\t}\n\treturn $html;\n}", "title": "" }, { "docid": "2c538b20f722d36ad4a73821d99ce46b", "score": "0.5869733", "text": "public function index()\n {\n $posts = Post::with('user', 'category')->latest()->get();\n return $posts;\n }", "title": "" }, { "docid": "ef0e095c8eeb71b74541ff72e0d672d0", "score": "0.58678687", "text": "function categories(){\n\n global $db;\n \n $cat1 = array();\n $cat2 = array();\n $cat3 = array();\n $allPosts = array(\n \"cat1\" => array(),\n \"cat2\" => array(),\n \"cat3\" => array() \n\n );\n\n\n\n $db->where (\"category\", 1); \n $cat1posts = $db->get(\"posts\");\n\n $timeAgo = new TimeAgo();\n\n foreach ($cat1posts as $u) {\n \n $datee = $timeAgo->inWords($u['createdat']); \n $hashPost = convertHashtags($u['posts']);\n\n $allPosts['cat1'][] = array( \n \"id\" => $u['id'],\n \"username\" => $u['username'],\n \"post\" => $u['posts'] ,\n \"category\" => $u['category'],\n \"spamCount\" => $u['isSpam'],\n \"humantimestamp\" => $datee,\n \"machinetimestamp\" => $u['createdat'] \n );\n\n }\n\n $db->where (\"category\", 2); \n $cat2posts = $db->get(\"posts\");\n foreach ($cat2posts as $x) {\n \n $datee = $timeAgo->inWords($x['createdat']); \n $hashPost = convertHashtags($x['posts']);\n\n $allPosts['cat2'][] = array( \n \"id\" => $x['id'],\n \"username\" => $x['username'],\n \"post\" => $x['posts'] ,\n \"category\" => $x['category'],\n \"spamCount\" => $x['isSpam'],\n \"humantimestamp\" => $datee,\n \"machinetimestamp\" => $x['createdat'] \n );\n\n }\n $db->where (\"category\", 3); \n $cat3posts = $db->get(\"posts\");\n\n foreach ($cat3posts as $w) {\n \n $datee = $timeAgo->inWords($w['createdat']); \n $hashPost = convertHashtags($w['posts']);\n\n $allPosts['cat3'][] = array( \n \"id\" => $w['id'],\n \"username\" => $w['username'],\n \"post\" => $w['posts'] ,\n \"category\" => $w['category'],\n \"spamCount\" => $w['isSpam'],\n \"humantimestamp\" => $datee,\n \"machinetimestamp\" => $w['createdat'] \n );\n\n }\n\n\n return $allPosts;\n\n}", "title": "" }, { "docid": "40d3bbcb2b0ef63f61cd652e67acb43d", "score": "0.5862046", "text": "public function all()\n {\n if (!$this->isLogged()) {\n exit;\n }\n\n $this->util->oPosts = $this->model->getAll();\n $this->util->allPosts = $this->model->getAll();\n\n $this->util->getView('index');\n }", "title": "" }, { "docid": "b3eadf53100317145c960bfd3ebaa8d1", "score": "0.58611864", "text": "function centalpha_centalpha_retreive_post_categories($id){\n\t$ret = '';\n\t$siteURL = get_site_url();\n\t$posttags = get_the_category($id); \n\t$count = count($posttags);\n\t\n\tif ($posttags) {\n\t\tfor ($i=0; $i < $count ; $i++){\n\t\t\tif ($i < $count-1){\n\t\t\t\t$ret .= '<a target=\"_blank\" href=\"'. $siteURL .'/category/'. $posttags[$i]->slug .'\">'. $posttags[$i]->name . '</a>, ';\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$ret .= '<a target=\"_blank\" href=\"'. $siteURL .'/category/'. $posttags[$i]->slug .'\">'. $posttags[$i]->name . '</a>';\n\t\t\t}\n\t\t}\n\t}\n\tunset($posttags);\n\treturn $ret;\n}", "title": "" }, { "docid": "d207991db237e8b19d830c77d7dc88c4", "score": "0.5860157", "text": "public function get_posts_by_category($condition)\n {\n $this->db->order_by('pencil_db_posts.pencil_db_posts_id', 'DESC');\n\n // get posts by category\n $this->db->where_in('pencil_db_categories.pencil_db_categories_id', $condition['category']);\n\n // join both tables to show datas\n // i.e, join the post with the category id in posts table and refer that to the category id in category table\n $this->db->join('pencil_db_categories', 'pencil_db_categories.pencil_db_categories_id = pencil_db_posts.pencil_db_posts_category_id');\n\n \n\n // get the data\n $query = $this->db->get('pencil_db_posts');\n return $query->result_array();\n }", "title": "" }, { "docid": "a1e4617252fa19dad08d61a4cb2f7a58", "score": "0.5848412", "text": "public function index(){\n $post=DB::table('posts')\n ->join('categories','posts.category_id','categories.id')\n ->select('posts.*','categories.name','categories.slug')\n ->paginate(2);\n return view('page.index',compact('post'));\n}", "title": "" }, { "docid": "3ea09b26324a4baef703f46b260aa772", "score": "0.5847863", "text": "function display_all_cfcp_categories($params){\n\t\n\t\tglobal $connection;\n\t\treturn AppModel::grab_db_function_class()->result_to_array_for_few_fields(AppModel::grab_db_function_class()->execute_query(\"SELECT * FROM cfcp__players_categories\"), $params);\t\t\n\t}", "title": "" }, { "docid": "40f2b81c4c93be180ff5754ed430be04", "score": "0.58443844", "text": "public function index()\n {\n $data['title'] = 'List Posts';\n $data['posts'] = DB::table('posts')\n ->select(['posts.*','categories.name as categories_name'])\n ->join('categories','categories.id','=','posts.categories_id')\n ->where([\n ['posts.delete_status',0]\n ])\n ->orderBy('posts.created_at','desc')\n ->get();\n $list_category = Categories::where('delete_status',0)->get();\n $data['list_category'] = ['0'=>'Select category'];\n foreach($list_category as $r){\n $data['list_category'][$r->id] = $r->name;\n }\n $data['sort'] = ['1' => 'Newest to oldest', '2' => 'Oldest to newest'];\n return view('themes.posts.index',$data);\n\n }", "title": "" }, { "docid": "a631a96751e5b1a611d4fb3220acf752", "score": "0.5843516", "text": "function getPostCategories($selector = null, $order = null){\n if(!$selector)\n return;\n\n $CI = get_instance();\n $CI->load->model('frontend/frontend_model');\n if( ! is_int ($selector) ){\n $CI->db->where('post_type_name', $selector);\n $CI->db->limit(1);\n $post_type = $CI->db->get('post_types');\n\n if($post_type->num_rows() > 0){\n $post_type = $post_type->row();\n $selector = $post_type->post_type_id;\n }else{\n return false;\n }\n }\n\n $where = ['post_categories.post_category_post_type' => $selector];\n\n $categories = $CI->frontend_model->getPostCategories($where, $order);\n\n return $categories;\n\n\n\n}", "title": "" }, { "docid": "4b8d2444a6836c64d561b84900af7ccb", "score": "0.5834854", "text": "public function index()\n {\n $posts = Post::orderBy('created_at', 'desc')->paginate(5);\n\n $categories = Category::all();\n\n return view('posts.index')->withPosts($posts)->withCategory($categories);\n }", "title": "" }, { "docid": "7219d475a5b2db50c44dae5fb9e902b3", "score": "0.5830211", "text": "function getCategoriesItems();", "title": "" }, { "docid": "c4a73fd26c2f2e5e870190a149ad1ce9", "score": "0.58284074", "text": "function mcedc_no_child_posts( $query) {\n global $wp_query;\n $id = $wp_query->get_queried_object_id();\n if ( !is_home() && !is_category( genesis_get_option( 'mcedc_blog_cat', MCEDC_SETTINGS_FIELD ) ) ) {\n if ( $query->is_category ) {\n $query->set( 'category__in', array( $id ) );\n $query->set( 'orderby', 'title' );\n $query->set( 'order', 'asc' );\n }\n return $query;\n }\n}", "title": "" }, { "docid": "2f86861a18355a4ff82de588d07a52ab", "score": "0.58272904", "text": "public function queryPosts($postFilter,$categoryFilter,$orderBy,$limit)\n\t{\n\t\t$filter='';\n\t\tif($postFilter!=='')\n\t\t\t$filter.=\" AND $postFilter\";\n\t\tif($categoryFilter!=='')\n\t\t\t$filter.=\" AND a.id IN (SELECT post_id AS id FROM tblPost2Category WHERE $categoryFilter)\";\n\t\t$sql=\"SELECT a.id AS id,\n\t\t\t\t\ta.author_id AS author_id,\n\t\t\t\t\tb.name AS author_name,\n\t\t\t\t\tb.full_name AS author_full_name,\n\t\t\t\t\ta.create_time AS create_time,\n\t\t\t\t\ta.modify_time AS modify_time,\n\t\t\t\t\ta.title AS title,\n\t\t\t\t\ta.content AS content,\n\t\t\t\t\ta.status AS status,\n\t\t\t\t\ta.comment_count AS comment_count\n\t\t\t\tFROM tblPosts a, tblUsers b\n\t\t\t\tWHERE a.author_id=b.id $filter $orderBy $limit\";\n\t\t$rows=$this->query($sql);\n\t\t$posts=array();\n\t\tforeach($rows as $row)\n\t\t\t$posts[]=$this->populatePostRecord($row);\n\t\treturn $posts;\n\t}", "title": "" }, { "docid": "9a563cdfff603966dbc17fc888886f87", "score": "0.58262324", "text": "public function findAll()\n {\n\n return $this->findBy(array(), array('category' => 'ASC'));\n\n }", "title": "" }, { "docid": "0abe3b97796672bcb316837a111a146c", "score": "0.5825417", "text": "function bandq_get_post_categories()\n {\n $cats = array();\n $terms = get_categories();\n foreach ($terms as $term) {\n $cats[ $term->slug ] = $term->name;\n }\n return $cats;\n }", "title": "" }, { "docid": "9698e54b3b0935e26aeb9a8342f53201", "score": "0.58246344", "text": "function tt_the_category_list($cats) {\n echo '<ul class=\"post-categories\">';\n foreach((get_the_category()) as $cat) {\n if (in_array($cat->slug, $cats)) continue;\n $cat_link = get_category_link(get_cat_ID($cat->name));\n echo '<li><a href=\"'.$cat_link.'\">'.$cat->name.'</a></li>';\n }\n echo '</ul>';\n}", "title": "" }, { "docid": "db2f25f0011b6d2618afa92fdaf4635d", "score": "0.5822287", "text": "function selectedCategory($dbConnect)\n{\n if(isset($_GET['cats'])){\n $catsSelected = $_GET['cats'];\n $query = \"SELECT * FROM posts WHERE postcatid = '$catsSelected'\";\n\n $catsResult = mysqli_query($dbConnect, $query);\n if(generalErrorCheck($dbConnect, $catsResult));\n else{\n while ($rows = mysqli_fetch_assoc($catsResult)) {\n $postTitle = $rows['posttitle'];\n $postAuthor = $rows['postauthor'];\n $postDate = $rows['postdate'];\n $postImage = $rows['postimageurl'];\n $postContent = $rows['postcontent'];\n $postid = $rows['postid'];\n\n ?>\n <h2>\n <a href=\"../cmsproject/postdetail.php?getPost=<?php echo $postid; ?>\" > <?php echo $postTitle; ?></a>\n </h2>\n <p class=\"lead\">\n by <a href=\"../cmsproject/postdetail.php?getPost=<?php echo $postid; ?>\"> <?php echo $postAuthor; ?></a>\n </p>\n <p><span class=\"glyphicon glyphicon-time\"></span> <?php echo $postDate; ?></p>\n <hr>\n <img class=\"img-responsive\" src=\"images/<?php echo $postImage; ?>\" alt=\"desires\" width=\"300\" height=\"150\">\n <hr>\n <p><?php echo $postContent; ?></p>\n <a class=\"btn btn-primary\" href=\"../cmsproject/postdetail.php?getPost=<?php echo $postid; ?>\">Read More <span class=\"glyphicon glyphicon-chevron-right\"></span></a>\n <hr>\n <?php\n }\n }\n\n }\n}", "title": "" }, { "docid": "815f5af97d7867ecdfc7a97b23462440", "score": "0.58183736", "text": "public function all(){\n return Post::all()->orderBy('published_at','desc');\n }", "title": "" }, { "docid": "4330e848097abe30e8c513e563933208", "score": "0.5817491", "text": "function printPostsPerCat($category = 'aktuellt', $nbr = 1, $nbrDigits = 100) {\n global $post;\n $args = array('category_name' => $category, 'posts_per_page' => $nbr);\n $loop = new WP_Query($args);\n if ($loop->have_posts()):\n while ($loop->have_posts()) : $loop->the_post();\n //$content = mb_substr(get_the_content(), 0, $nbrDigits) . '...';\n $content = get_the_excerpt();\n $title = get_the_title();\n $guid = get_the_guid();\n $readingbox .= <<<RB\n<div class=\"cat-container\">\n <section>\n <h2>Aktuellt just nu: <span>$title</span></h2>\n <p>$content</p>\n <a href=\"$guid\" target=\"\" class=\"btn btn-default btn-xs\">Läs mer</a>\n </section>\n</div>\nRB;\n endwhile;\n endif;\n wp_reset_query();\n echo $readingbox;\n}", "title": "" }, { "docid": "13ef433cf9c0a84e8b5350e073cdc527", "score": "0.58157396", "text": "public function catePage($category)\n {\n $this->postRepo->loadPopular();\n $cateDb = Category::whereTranslation('slug', $category)->firstOrFail();\n $posts = $cateDb->posts()->orderBy('id', 'desc')->paginate(8);\n //dump($postsByCat);\n return view('Frontend.List', compact('posts', 'cateDb'));\n }", "title": "" }, { "docid": "2db774c8aba18a62e8e1f9f2c84c5a8a", "score": "0.58077466", "text": "function getForumCategoryList() {\n\t\t$conn = Doctrine_Manager::connection(); \n\t\t// count posts in each community forum category\n\t\t$all_categories = $conn->fetchAll(\"SELECT d.id as id, l.lookuptypevalue as `Category ID`, l.lookupvaluedescription as `Category`, COUNT(d.category) as `No of Posts` FROM lookuptypevalue AS l Left Join communityforum AS d ON l.lookuptypevalue = d.category WHERE l.lookuptypeid = 10 GROUP BY l.lookuptypevalue ORDER BY l.lookupvaluedescription ASC\");\n\t\t\n\t\treturn $all_categories;\n\t}", "title": "" }, { "docid": "cb615984c383f6e58ced423d23b3938a", "score": "0.5806447", "text": "public function index()\n {\n $posts = Post::where('status', 'published')->latest()->paginate(10);\n return view('pages.blog.category')->with([\n 'posts' => $posts,\n 'categories' => Category::all()\n ]);\n }", "title": "" }, { "docid": "bcdad7fc075f0b44ee625360f0dc0136", "score": "0.580035", "text": "public function index()\n {\n $posts = BlogPost::with(['user:id,name', 'category'])->paginate(10);\n return view('blog.admin.post.index', compact('posts'));\n }", "title": "" }, { "docid": "f48977c07d658b09ac66cb2d36621069", "score": "0.57973874", "text": "public function index()\n {\n $data = Post::with('image_get')->with('cat_get')->get();\n return view('admin.main.post.index', compact('data'));\n }", "title": "" }, { "docid": "a2d993affe9df1316be688afe921ca70", "score": "0.5797299", "text": "public function getAll()\n\t{\n\t\treturn $this->category->all();\n\t}", "title": "" }, { "docid": "693421eee7c6b6097410b5e8bbb0d993", "score": "0.57890785", "text": "private function DisplayPosts ()\n {\n foreach ($this->posts as $post)\n $post->Display();\n }", "title": "" }, { "docid": "138143f939ccc086323e79e2f44420ce", "score": "0.57852674", "text": "public function getByCategory ($categoryId) {\n\t\t\t//fetch posts from db\n\t\t\t$posts = $this->db->select\n\t\t\t(\n\t\t\t\t\"post\",\n\t\t\t\t\"WHERE categoria_id = :id\",\n\t\t\t\t\"ORDER BY id_post DESC\",\n\t\t\t\t\"\",\n\t\t\t\t$categoryId\n\t\t\t);\n\t\t\treturn($posts);\n\t\t}", "title": "" }, { "docid": "62ad0f77396bde22d3b59b164fc96868", "score": "0.5781895", "text": "public function index(){\n \n \n $categories = $this->Category->all();\n $settingsId = 1;\n $settings = $this->Setting->find($settingsId);\n \n // direction for the order by (ASC or DESC) for the post list.\n $orderSelected = 'DESC';\n\n if (isset($_POST['orderBy'])) {\n $orderSelected = $_POST['orderBy'];\n }\n \n if (isset($_GET['orderBy'])) {\n $orderSelected = $_GET['orderBy'];\n }\n \n if (isset($_GET['page']))\n {\n $page = $_GET['page']; // On récupère le numéro de la page indiqué dans l'adresse\n }\n else // La variable n'existe pas, c'est la première fois qu'on charge la page\n {\n $page = 1; // On se met sur la page 1 (par défaut)\n }\n \n // On place dans une variable le nombre de billet souhaité par page\n $nbrOfPostsPerPage = $settings->nbrPostPerPage;\n \n // On définit la clause de LIMIT\n $limit = ($page - 1) * $nbrOfPostsPerPage;\n \n // On définit la clause de OFFSET\n $offset = $nbrOfPostsPerPage;\n \n $posts = $this->Post->getAllSelectedPost($orderSelected, $limit, $offset);\n \n // On récupère le nombre total de billets\n $totalPost = $this->Post->getAllPost();\n $totalPostsCount = count($totalPost);\n \n // On calcule le nombre de pages à créer\n $nbrOfPages = ceil($totalPostsCount/$nbrOfPostsPerPage) ;\n \n $calledFunction = 'index';\n $locationTitle = 'Administration des Billets';\n \n $this->render('admin.posts.index', compact('posts', 'locationTitle', 'categories', 'calledFunction', 'settings', 'page', 'orderSelected', 'nbrOfPages'));\n }", "title": "" }, { "docid": "06ed3edaa1792c9b405573f97d22c643", "score": "0.5781571", "text": "public function allPost()\n {\n $founds = Post::all();\n return view('post.all', compact('founds'))->with('title',\"All Post\");\n }", "title": "" }, { "docid": "ff5ac76867269c2d5b6d156edd872332", "score": "0.5778951", "text": "public function indexAction($categoryId)\n {\n $em = $this->getDoctrine()->getManager();\n\n $posts = $em->getRepository('AppBundle:Post')->getPosts($categoryId);\n\n return $this->render('post/index.html.twig', array(\n 'categoryId' => $categoryId,\n 'posts' => $posts,\n ));\n }", "title": "" }, { "docid": "3170690a06182ec9156ac05d7280e468", "score": "0.5777247", "text": "function wpw_auto_poster_get_all_categories() {\r\n\r\n $all_types \t= get_post_types(array('public' => true), 'objects');\r\n\r\n $all_types \t= is_array($all_types) ? $all_types : array();\r\n $data \t\t= array();\r\n\r\n // If $_POST for post type value is not empty\r\n if ( !empty($all_types) ) {\r\n\r\n foreach ( $all_types as $type) {\r\n\r\n if ( !is_object($type))\r\n continue;\r\n\r\n $label = @$type->labels->name ? $type->labels->name : $type->name;\r\n $post_type = $type->name;\r\n $categories_array = array();\r\n\r\n if ( $label == 'Media' || $label == 'media')\r\n continue; // skip media\r\n\r\n $all_taxonomies = get_object_taxonomies($post_type, 'objects');\r\n\r\n // Loop on all taxonomies\r\n foreach ( $all_taxonomies as $taxonomy) {\r\n\r\n if ( is_object($taxonomy) && !empty($taxonomy->hierarchical)) {\r\n\r\n $categories = get_terms( $taxonomy->name, array('hide_empty' => false)); // Get categories\r\n\r\n foreach ( $categories as $category) {\r\n\r\n $categories_array[$category->slug] = $category->name;\r\n }\r\n }\r\n }\r\n if ( !empty($categories_array) ) {\r\n\r\n \t$data[$post_type]['label'] = $label;\r\n $data[$post_type]['categories'] = $categories_array;\r\n unset($categories_array);\r\n }\r\n }\r\n }\r\n \r\n return $data;\r\n}", "title": "" }, { "docid": "07a65d33dab4312de0da89bf48b1ade5", "score": "0.57758933", "text": "public function index()\n {\n //$categories = PostCategory::all();\n\n $categories = PostCategory::where('parent_id', '=', 0)->get();\n $allCategories = PostCategory::pluck('name','id')->all();\n\n $params = [\n 'title' => 'DANH MỤC BÀI VIẾT - MIBLOG',\n 'categories' => $categories,\n 'js' => 'js.postcategory-js',\n 'allCategories' => $allCategories\n ];\n //return view('categoryTreeview',compact('categories','allCategories'));\n\n return view('admin.postcategory')->with($params);\n }", "title": "" }, { "docid": "0ae73e6f71f2ea9a8b91929eeffa059a", "score": "0.57715946", "text": "public function category_page_get() {\n\t\t$categories_sql = 'select a.category_id, a.category, a.category_image from categories a where (select count(item_id) from items where a.category_id = items.category_id) > 0';\n\t\t$categories = $this->my_database->passSQLAll($categories_sql);\n\t\t$result = [];\n\t\tif($categories) {\n\t\t\tforeach($categories as $cat) {\n\t\t\t\t$items_sql = 'select a.item_id, a.item_title, a.file_size, a.item_url, a.artiste_str, a.image_url, UNIX_TIMESTAMP(a.uploaded_on) as uploaded_on from items a where a.category_id = '.$cat->category_id.' and approved = 1 order by item_id DESC limit 5';\n\t\t\t\t$count_sql = 'select count(item_id) as items_count from items a where category_id = '.$cat->category_id;\n\t\t\t\t$count = $this->my_database->passSQL($count_sql);\n\t\t\t\t$data = [\n\t\t\t\t\t'category_id' => $cat->category_id,\n\t\t\t\t\t'category_title' => $cat->category,\n\t\t\t\t\t'category_image' => $cat->category_image,\n\t\t\t\t\t'category_items' => $this->my_database->passSQLAll($items_sql),\n\t\t\t\t\t'items_count' => $count->items_count\n\t\t\t\t];\n\t\t\t\tarray_push($result, $data);\n\t\t\t}\n\t\t\t$this->set_response(['status' => \"1\", 'data' => $result]);\n\t\t} else {\n\t\t\t$this->response(['status' => \"0\", 'message' => 'Not Found', 'data' => []], 200);\n\t\t}\n\t}", "title": "" }, { "docid": "4a21939e6d58a6d2f2a991873d79d0c4", "score": "0.57665384", "text": "public function all()\n {\n return Category::all();\n }", "title": "" }, { "docid": "04bd90cba28c99ea385fa4a9e9ed6252", "score": "0.575849", "text": "public function printPosts()\n {\n $query = 'SELECT P.*, C.cat_title, M.mem_login, T.nb_comments '.\n 'FROM ogsmk_blog_posts AS P '.\n 'LEFT JOIN ogsmk_blog_categories AS C '.\n ' ON C.cat_id = P.post_cat '.\n 'LEFT JOIN ogsmk_members AS M '.\n ' ON M.mem_id = P.post_mem '.\n 'LEFT JOIN ( '.\n ' SELECT COUNT(*) AS nb_comments, com_post '.\n ' FROM ogsmk_blog_comments '.\n ' GROUP BY com_post'.\n ') AS T on T.com_post = P.post_id '.\n 'WHERE P.post_draft = FALSE ';\n $values = array();\n\n // Category?\n if (isset($_GET['cat']) && is_numeric($_GET['cat'])) {\n $query .= 'AND p.post_cat = ? ';\n array_push($values, $_GET['cat']);\n }\n\n // Tag?\n if (isset($_GET['tag']) && is_numeric($_GET['tag'])) {\n $query .= 'AND p.post_id IN ('.\n ' SELECT DISTINCT post_id '.\n ' FROM ogsmk_blog_tags_rel '.\n ' WHERE tag_id = ?'.\n ') ';\n array_push($values, $_GET['tag']);\n }\n\n // Specific period?\n if (\n isset($_GET['y'])\n && isset($_GET['m'])\n && is_numeric($_GET['y'])\n && is_numeric($_GET['m'])\n ) {\n // TODO : Dirty! Should be donne by the RDBMS...> Move to DB plugin.\n $dateBeg = date(\n 'Y-m-d H:i:s',\n mktime(0, 0, 0, $_GET['m'], 1, $_GET['y'])\n );\n $dateEnd = date(\n 'Y-m-d H:i:s',\n strtotime($dateBeg.' +1 month')\n );\n\n $query .= 'AND p.post_time BETWEEN ? AND ? ';\n array_push($values, $dateBeg);\n array_push($values, $dateEnd);\n }\n\n // Search?\n if (!empty($_GET['q'])) {\n $cols = 'p.post_body,p.post_more,p.post_title';\n $searchQueryStr = $this->db->getSQLSearchString($cols, $_GET['q']);\n $query .= $searchQueryStr;\n }\n\n $query .= ' ORDER BY P.post_time DESC';\n $this->retrievePosts($query, $values);\n }", "title": "" }, { "docid": "f7885e6784811ec18176919a0e261feb", "score": "0.5752301", "text": "function get_cat_list_for_post($ID) {\n\t$post_categories = wp_get_post_categories($ID);\n\t$cats = array();\n\tforeach($post_categories as $c) {\n\t\t$cat = get_category($c);\n\t\tif($cat->slug !== 'uncategorized') $cats[] = '<a href=\"/category/'.$cat->slug.'\">'.$cat->name.'</a>';\n\t}\n\treturn (count($cats) > 0) ? ' &sdot; Categories: '.implode(', ', $cats): '';\n}", "title": "" } ]
331a3b7346b33660f5b91a08d8534702
Whether the collection contains a value. Will check whether the value is in the collection.
[ { "docid": "cf1e20ddf7f19da4bf58cc4697f4ab6a", "score": "0.7112961", "text": "public function has($value);", "title": "" } ]
[ { "docid": "561e1f7306890d121fb6920f479d2d49", "score": "0.7895438", "text": "public function has($value) {\r\n\t return in_array($value, $this->_container);\r\n\t}", "title": "" }, { "docid": "1c97f5bf02431e43169c1cb5068fe8e3", "score": "0.76556575", "text": "public function has($value)\n {\n return in_array($value, $this->get());\n }", "title": "" }, { "docid": "ec9e82040cc69a62f89295563949e551", "score": "0.7373871", "text": "public function has($value)\n\t{\n\t\treturn in_array($value, $this->values);\n\t}", "title": "" }, { "docid": "2c1a61b452b7969181c432b7706bb1e8", "score": "0.7245718", "text": "public function has($value) : bool;", "title": "" }, { "docid": "6d60643638618b93825f93ea1ae7cf27", "score": "0.7223197", "text": "public function containsValue($value): bool\n\t{\n\t\treturn in_array($value, $this->data, true);\n\t}", "title": "" }, { "docid": "1d05d5527f10af41b2856f64b176c8e2", "score": "0.71922934", "text": "public function hasValueIn($key, $value)\n {\n if ($this->hasKey($key)) {\n $ins = $this->container[$key];\n if ($ins instanceof ListSet) {\n return $ins->contain($value);\n }\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "0b26fa29fa0df80fab67a0fe55290f58", "score": "0.70803994", "text": "public function contains($value) {\n\t\treturn ($this->indexOf($value) >= 0) ? true : false;\n\t}", "title": "" }, { "docid": "fc044dfa9a42b79ae278fd8a7529e943", "score": "0.707509", "text": "public function Contains($value) {\n foreach ($this->Array as $item) {\n if ($value === $item)\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "e6d03fbcde70b1b215c6e228768c6c90", "score": "0.7074913", "text": "public function contains($value) {\n if ($value instanceof Generic) {\n foreach ($this->values as $v) {\n if ($value->equals($v)) return true;\n }\n return false;\n } else if ($value instanceof Value) {\n foreach ($this->values as $v) {\n if (0 === $value->compareTo($v)) return true;\n }\n return false;\n } else {\n return in_array($value, $this->values, true);\n }\n return false;\n }", "title": "" }, { "docid": "ebfc3a958844b4d7f833e0062b3bb8bc", "score": "0.7009293", "text": "public function contains(mixed $value);", "title": "" }, { "docid": "a3a814014707237c1ea9da3dc06b6f60", "score": "0.6937316", "text": "public function containsValue($value){\n return(in_array($value, $this->map));\n }", "title": "" }, { "docid": "a5918e0b14831843dba7a723b7d9df7a", "score": "0.6920045", "text": "function any($collection) { foreach ($collection as $item) { if ($item) { return true; } } return false; }", "title": "" }, { "docid": "bab3ea78e76ddf45fb25038095541d2c", "score": "0.68915606", "text": "function contains($value)\n {\n return (array_search($value, $this->keys) !== false);\n }", "title": "" }, { "docid": "a16539297315725c500880e8ca1b385b", "score": "0.6862526", "text": "public function hasValue($value);", "title": "" }, { "docid": "f73e34f9b5625aa5b2daedb4b9b5e4ee", "score": "0.6852359", "text": "public function valueIs($key, $value)\n {\n if ( ! $this->has($key)) {\n return false;\n }\n\n return $this->collection[$key] == $value;\n }", "title": "" }, { "docid": "68f6047ee349d9b3bec00ba9a7af894e", "score": "0.6833911", "text": "final public function hasItem($value):bool\n {\n return $this->getIndexFromItem($value) !== null;\n }", "title": "" }, { "docid": "00b79e734db2b5a81fcee091d10195bd", "score": "0.6830772", "text": "public function hasValue()\n {\n return isset($this->value);\n }", "title": "" }, { "docid": "556942ffccbbdf9087347a0320fe2c2f", "score": "0.6814762", "text": "public static function hasValue($value)\n {\n return in_array($value, static::getValues(), true);\n }", "title": "" }, { "docid": "5b03343abc344c48ce54a505649d0558", "score": "0.6790659", "text": "public static function hasValue($value)\n {\n return array_key_exists($value, static::getValues());\n }", "title": "" }, { "docid": "2f226a90ee6d5d1e44c22218b18d8499", "score": "0.6732544", "text": "public function hasValue() : bool\n {\n return isset($this->value);\n }", "title": "" }, { "docid": "9523c06b4a6b4a4bd5cb890fc00f21d7", "score": "0.6726563", "text": "public function has($key)\n {\n return array_key_exists($key, $this->collection);\n }", "title": "" }, { "docid": "334251ed86e4efde1afb74a8e3fb1325", "score": "0.67264277", "text": "public function contains($value){\n if($this->root == null) return false;\n else return $this->containsAux($value, $this->root);\n }", "title": "" }, { "docid": "8896e1fcab7a5258b7b18bd23a9c1450", "score": "0.6672576", "text": "public function hasValue();", "title": "" }, { "docid": "8c94115989624b1f3ca5910ee01af72e", "score": "0.6657422", "text": "public function has(int|float|string|object $value): bool\n {\n return $this->ownedList->has($value);\n }", "title": "" }, { "docid": "d3c648c4b1d47562b93c89268ea570d6", "score": "0.6625783", "text": "public function contains(PersistentCollection $collection, $element);", "title": "" }, { "docid": "562a07d8dceadc3345aad52158baff52", "score": "0.65983343", "text": "public function has() {\n return count($this->collections) > 0;\n }", "title": "" }, { "docid": "5952393aff95626d4cb75b018b4c167b", "score": "0.65864307", "text": "public function isContained($value, $keys = true)\n {\n $flag = null;\n if ($this->value instanceof \\ArrayAccess) {\n $flag = $keys\n && isset($this->value[$value])\n && $this->value[$value];\n } elseif (is_array($this->value)) {\n $flag = in_array($value, $this->value)\n || ($keys && (array_key_exists($value, $this->value) && $this->value[$value]));\n } else {\n throw new \\InvalidArgumentException(sprintf(\n \"Field '%s' value is not a set of values so containment cannot be checked.\",\n $this->name\n ));\n }\n\n return $flag;\n }", "title": "" }, { "docid": "b27777fa9656df91401dc013f26f64a9", "score": "0.6582663", "text": "public function exists($value);", "title": "" }, { "docid": "01d20c15a1af55e51ae5f0bd745e8d7b", "score": "0.6520943", "text": "public function hasValue(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "01d20c15a1af55e51ae5f0bd745e8d7b", "score": "0.6520943", "text": "public function hasValue(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "01d20c15a1af55e51ae5f0bd745e8d7b", "score": "0.6520943", "text": "public function hasValue(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "01d20c15a1af55e51ae5f0bd745e8d7b", "score": "0.6520943", "text": "public function hasValue(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "01d20c15a1af55e51ae5f0bd745e8d7b", "score": "0.6520943", "text": "public function hasValue(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "7f937a65ee5e9f6f5939469ae26522e0", "score": "0.6509569", "text": "public function contains($value) {\n return $this->setProperty('contains', $value);\n }", "title": "" }, { "docid": "33eff2ab90ad9fa2af1301c9c912078b", "score": "0.6501492", "text": "public function any()\n {\n foreach ($this->_data as $key => $val)\n if ($val) return true;\n return false;\n }", "title": "" }, { "docid": "49045b85c31a6f2b1e0d581edf19e632", "score": "0.6471788", "text": "public function contains(...$values): bool;", "title": "" }, { "docid": "390ce2fa077c18022c84c761c995bf08", "score": "0.64620733", "text": "public function hasValue($key)\n {\n return array_key_exists($key, $this->_data);\n }", "title": "" }, { "docid": "f0765a69bca80dd0f470e62170710093", "score": "0.6455379", "text": "public function has($value) {\n\t\t//if the given value is comparable, we can use that to find it\n\t\tif(is_object($value) && $value instanceof IComparable) {\n\t\t\tforeach ($this->getAll(\"current\") as $entry) {\n\t\t\t\tif(is_object($entry) && $entry instanceof IComparable && $entry->compareTo($value)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\treturn in_array($value, $this->getAll(\"current\"), true);\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "9a259ecdcd9b47694886c67c74798bbb", "score": "0.6442901", "text": "public static function contains($values, $value){\r\n\t\tif (\\is_array($values) === true){\r\n\t\t\treturn \\in_array($value, $values, true);\r\n\t\t} elseif($values instanceof \\SplObjectStorage){\r\n\t\t\treturn $values->contains($value);\r\n\t\t} else {\r\n\t\t\tforeach($values as $v){\r\n\t\t\t\tif ($v === $value){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "74058c5e5b85bcac95bf470a4dc02a08", "score": "0.6427809", "text": "function is_in_set($value, $set) {\n return in_array($value, $set);\n }", "title": "" }, { "docid": "2894e6241fe6f2097ef4f32b7ac575c8", "score": "0.64222586", "text": "public function HasValues() {\n return (count($this->data) > 0);\n }", "title": "" }, { "docid": "b33848b9ff72c20ef275686ad903d3d2", "score": "0.64166987", "text": "public function exists()\n {\n return $this->value->getAmount() !== 0;\n }", "title": "" }, { "docid": "303af55ffd0c552408dee18a0cffa7ab", "score": "0.63663644", "text": "public function has_value($value) {\n if (!$this->iterinit()) {\n return false;\n }\n while ($tkey = $this->iternext()) {\n $tvalue = $this->get($tkey);\n if (!$tvalue) {\n break;\n }\n if ($value == $tvalue) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "43405a2e13f8416bfbcdb46cb5713f1f", "score": "0.63482493", "text": "public function has($key)\n {\n return array_key_exists($key, $this->values);\n }", "title": "" }, { "docid": "827078246fb8640ebe06fb8dc581a300", "score": "0.63335234", "text": "function contains($item, $value = null) {\n foreach($this->data as $key => $val) {\n if(\\is_callable($item)) {\n $bool = (bool) $item($val, $key);\n if($bool) {\n return true;\n }\n } else {\n if($value !== null) {\n if($key === $item && $val === $value) {\n return true;\n }\n } elseif($val === $item) {\n return true;\n }\n }\n }\n \n return false;\n }", "title": "" }, { "docid": "7db41abe5e1591e5cb42f4c5e6cb3ea0", "score": "0.6331442", "text": "public function hasCollection(string $collection)\n {\n return $this->collectionHandler->has($collection);\n }", "title": "" }, { "docid": "a8bed6bfacdaadb783eb130b8e095aeb", "score": "0.63290316", "text": "function hasInclusionIn($value, $set){\n in_array($value, $set);\n }", "title": "" }, { "docid": "e62fb6ca564a0620c1dc1640d6fd3444", "score": "0.6320925", "text": "public function hasValue($key);", "title": "" }, { "docid": "9d5a02169cb69792f015bb357c11b896", "score": "0.6290958", "text": "public function contains($key)\n\t{\n\t\treturn ! is_null($this->find($key));\n\t}", "title": "" }, { "docid": "fea45140d30c2a72e57e44170ee92f6e", "score": "0.62863564", "text": "public function has_value(): bool {\n\t\treturn ! is_null( $this->value );\n\t}", "title": "" }, { "docid": "397ee3291ab664e1857827769f1b78a0", "score": "0.6264069", "text": "public function hasValue(): bool\n {\n return false;\n }", "title": "" }, { "docid": "a6370113dc8e2cebdf0367c2e2286fd5", "score": "0.62626797", "text": "public function has($values): bool\n {\n return true;\n }", "title": "" }, { "docid": "8f2f4ff37ba4f377d1defad8e2a8f006", "score": "0.6248246", "text": "public function has( $name, $value = '' ) {\n\t\treturn empty( $value ) ? isset( $this->_atts[ $name ] ) : in_array( $value, $this->get( $name, 'array' ) );\n\t}", "title": "" }, { "docid": "d0845ed985e576c6ca75b4d0463430f1", "score": "0.6246551", "text": "public function Exists($name){return array_key_exists($name, $this->values);}", "title": "" }, { "docid": "4a5fe0b9e67292d322b81c707426947a", "score": "0.62422377", "text": "public function contains(mixed $item): bool;", "title": "" }, { "docid": "4a5fe0b9e67292d322b81c707426947a", "score": "0.62422377", "text": "public function contains(mixed $item): bool;", "title": "" }, { "docid": "f791f6a12c76e009a7b5e42cbb8451b6", "score": "0.62343264", "text": "public function has($key)\n\t{\n\t\treturn array_key_exists($key, $this->items);\n\t}", "title": "" }, { "docid": "15933569694ceb170f5359e7dc673fc8", "score": "0.6231603", "text": "public function has($key)\r\n {\r\n return isset($this->items[$key]);\r\n }", "title": "" }, { "docid": "31cdc465ca8b479739ec95d26b0bcce4", "score": "0.6213311", "text": "public function has($key)\n {\n return array_key_exists($key, $this->items);\n }", "title": "" }, { "docid": "31cdc465ca8b479739ec95d26b0bcce4", "score": "0.6213311", "text": "public function has($key)\n {\n return array_key_exists($key, $this->items);\n }", "title": "" }, { "docid": "62f58383e772d8d9f5a43b97f73a389f", "score": "0.6212337", "text": "public function contains($value)\r\n\t{\r\n $this->operator = self::OPERATOR_CONTAINS;\r\n $this->value = $value;\r\n\t}", "title": "" }, { "docid": "edcd1150348612563288ad83cc127e5e", "score": "0.62087214", "text": "public function has($key)\n {\n return isset($this->values[$key]);\n }", "title": "" }, { "docid": "7472f5490bf3ce80e1e3119ebb1d7d50", "score": "0.62024033", "text": "function hasInclusionIn($value, $set) {\r\n\treturn in_array($value, $set);\r\n}", "title": "" }, { "docid": "09a2167df5f9b7f09ad53fb3759e3071", "score": "0.6183797", "text": "public function exists()\n {\n return !empty($this->_data);\n }", "title": "" }, { "docid": "9ccc6ce36d1034c4122ba47321f0215b", "score": "0.618283", "text": "public function exists() \n\t{\n return (!empty($this->_data)) ? true : false;\n }", "title": "" }, { "docid": "f9fd796cbe9a0b0baa3f3fe84d73c847", "score": "0.61817896", "text": "public function contains() : bool\n\t{\n\t\treturn $this->cache->contains($this->key, $this->group);\n\t}", "title": "" }, { "docid": "0080d0c8a9fbadf3b0894a95d21b92da", "score": "0.6174574", "text": "public function has($key)\n {\n return !is_null(Arr::get($this->items, $key));\n }", "title": "" }, { "docid": "09e0058b48ca29ab32bcda8a6bdb2e35", "score": "0.61729664", "text": "public function isValid(Collection $value, bool $ignoreExpired = false): bool;", "title": "" }, { "docid": "0fd0358790945ddb04bcde7c0d44c97d", "score": "0.6168475", "text": "public function has($key) {\n if (!$key || !$this->hasChildren()) { return false; }\n return $this->collection->has($key);\n }", "title": "" }, { "docid": "b3e187ad51d3a68279d1ddfc90651e59", "score": "0.61591077", "text": "public function has();", "title": "" }, { "docid": "e0ef4755deb2c59286112e0ca1d236f5", "score": "0.6136997", "text": "public function has($key)\n {\n return isset($this->items[$key]);\n }", "title": "" }, { "docid": "e48c551f90526702d58442b50b8572e4", "score": "0.61189413", "text": "public function exists() \n {\n return (!empty($this->_data)) ? true : false;\n }", "title": "" }, { "docid": "e4e06d88d80e7a3cd79f48142bb98883", "score": "0.6107363", "text": "public function hasNext() {\n\t\t\tif(isset($this->collection[$this->getCounter()])) {\n\t\t\t\t return TRUE;\n\t\t\t}\n\t\t\treturn FALSE;\n\t\t}", "title": "" }, { "docid": "010856f0446f32d485ea51a33ac259c7", "score": "0.6080819", "text": "public function test_has_value($value) {\n\t\t$return = false;\n\t\tif( isset( $value ) && ! empty( $value ) ) {\n\t\t\t$return = true;\n\t\t}\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "894010051e3b328157fa9f94a9e2acf8", "score": "0.60770404", "text": "public function isCollection($value)\n {\n return $value instanceof BaseCollection;\n }", "title": "" }, { "docid": "0cf05c90a8bd7dbf071bf5562b105ca4", "score": "0.6059492", "text": "public function contains()\n\t{\n\t\t$args = func_get_args();\n\t\t$isValid = false;\n\t\tif ( func_num_args() == 2 ) \n\t\t{\t\t\t \n\t\t\t$search_key = $args[0];\n\t\t\t$search_value = $args[1];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$search_key = '';\n\t\t $search_value = $args[1];\t\t\t\n\t\t}\n\t\t//If search value founds, to stop the iteration using try catch method for faster approach\n\t\ttry {\n\t\t\t array_walk_recursive($this->source, function(&$value, &$key) use(&$search_key, &$search_value){\n\t\t \tif($search_value != ''){\n\t\t \t\tif($search_value == $value && $key == $search_key){\n\t\t \t\t\t$isThere = true;\t\n\t\t \t\t}\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\tif($search_value == $value){\n\t\t \t\t\t$isThere = true;\t\n\t\t \t\t}\n\t\t \t}\n\t\t \t// If Value Exists\n\t\t if ($isThere) {\n\t\t throw new Exception;\n\t\t } \n\t\t });\n\t\t }\n\t\t catch(Exception $exception) {\n\t\t\t $isValid = true;\n\t\t }\n\t\treturn $this->source = $isValid;\n\t}", "title": "" }, { "docid": "1b64930e7eb5c3e2ae7ee77de54b0ee8", "score": "0.6057778", "text": "public function has($key): bool\n {\n return isset($this->items[$key]) || array_key_exists($key, $this->items);\n }", "title": "" }, { "docid": "fc49b68370f4e7bd3abd5f798f654687", "score": "0.605478", "text": "static function hasValue($value): bool\n {\n self::ensureValueToKeyMapLoaded();\n\n return isset(self::$valueToKeyMap[static::class][$value]);\n }", "title": "" }, { "docid": "ba9f8f05f7c34129980aa95a4cbeb0b7", "score": "0.6043183", "text": "public function isCollectionEmpty()\n {\n return empty($this->collection);\n }", "title": "" }, { "docid": "e230c5fc9a442df80a28e7f5b41cd8b0", "score": "0.6039833", "text": "public function hasValue(): bool\n\t{\n\t\treturn $this->isValue;\n\t}", "title": "" }, { "docid": "95d9941bb478e01a40b546fe5f248c79", "score": "0.60381526", "text": "public function has($key)\n {\n return Arr::has($this->items, $key);\n }", "title": "" }, { "docid": "feb948d7f12d65e89e8bbf18a43c54ed", "score": "0.6018709", "text": "public function contains($values): bool {\n $needles = $this->filter->parse($values);\n $exists = false;\n foreach ($needles as $needle) {\n $exists = in_array($needle, $this->value);\n if (!$exists) {\n break;\n }\n }\n return $exists;\n }", "title": "" }, { "docid": "17fcdea5504056c3d4e144fc419d4ac7", "score": "0.6015973", "text": "public function has(string $key)\n {\n return $this->items->has($key);\n }", "title": "" }, { "docid": "32c7f648459d7489a75e2dae951dd2d4", "score": "0.6002897", "text": "public function has($key)\n {\n return isset($this->all()[$key]);\n }", "title": "" }, { "docid": "0cf596d942e6a49623f80714af5f8988", "score": "0.6001868", "text": "public function contains(mixed $element): bool;", "title": "" }, { "docid": "e8515dc554ef1aee46a55aa2d67a1cf6", "score": "0.599879", "text": "public function has($key): bool\n {\n return array_key_exists($key, $this->items);\n }", "title": "" }, { "docid": "c3ef7d38428ac58371f979d56ebee893", "score": "0.59913933", "text": "public function contains($datum)\n {\n foreach ($this->values as $values) {\n if (in_array($datum, $values)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "ddf1119798f24a53c2eb882c63506838", "score": "0.59840643", "text": "public function collectionExists($collection_key)\n {\n\t\treturn array_key_exists($collection_key, $_SESSION[$this->_name]);\n }", "title": "" }, { "docid": "08e9b0a2a312824bb433f2d22e20fe36", "score": "0.59809375", "text": "public function inList($value)\n {\n return in_array($value, $this->list);\n }", "title": "" }, { "docid": "b2eb91e3944e8cd981034c61b59899b9", "score": "0.5973626", "text": "public function has($offset) {\n $offset = $this->prepareOffset($offset);\n return array_key_exists($offset, $this->_items);\n }", "title": "" }, { "docid": "361d0d18225ce849c6362290e77ac3cf", "score": "0.59717584", "text": "public function contains($id)\n {\n return isset($this->data[$id]) || array_key_exists($id, $this->data);\n }", "title": "" }, { "docid": "58fc6f08be6b109eba3acdee0f5f2b14", "score": "0.59673667", "text": "public function isNotEmpty(): bool\n {\n return Collections::isNotEmpty($this->getCollection());\n }", "title": "" }, { "docid": "678f51836c100a7d9081bf85f67f52a7", "score": "0.5959401", "text": "public function has($key)\n {\n return array_key_exists($key, $this->_data);\n }", "title": "" }, { "docid": "a850549dc556e79e468ab2ba8e19faef", "score": "0.5958054", "text": "function contains($element)\n {\n\n //Check if element is valid\n $this->validateElement($element);\n\n //Check elements property\n $contains = in_array($element, $this->elements, true);\n\n if(!$contains){\n\n $key = $this->getElementKey($element);\n\n //If key if valid element exists at list in repository\n $contains = $this->isValidKey($key);\n\n }\n\n return $contains;\n\n }", "title": "" }, { "docid": "104428b9e3549397c96aea72a6a9bab5", "score": "0.59557813", "text": "public function __isset($key) {\n return array_key_exists($key, $this->_values);\n }", "title": "" }, { "docid": "6cc9c67657deb83a8191a0046340e529", "score": "0.59502006", "text": "function has_any_items() {\n\t\tglobal $wpdb;\n\t\t$value = $wpdb->get_var(\n\t\t\t$wpdb->prepare(\n\t\t\t\t\"SELECT exists( SELECT option_name FROM $wpdb->options WHERE option_name LIKE %s )\",\n\t\t\t\t\"jpsq_{$this->id}-%\"\n\t\t\t)\n\t\t);\n\n\t\treturn ( $value === '1' );\n\t}", "title": "" }, { "docid": "9bb9f338532e30d7a6f201ef3e755f6c", "score": "0.59443873", "text": "public function HasKey( $key )\n\t{\n\t\t$keyCount = count( $this->list );\n\t\t$i = 0;\n\t\t$rtn = false;\n\t\t\n\t\tif( $keyCount > 0 )\n\t\t{\n\t\t\t// key count is greater than 0 so we have at least one key, check if it matches the lookup key\n\t\t\tfor( $i = 0; $i < $keyCount; $i++ ) // loop through sets\n\t\t\t{\n\t\t\t\tif($this->list[$i][0] == $key) // key exits\n\t\t\t\t{\n\t\t\t\t\t$rtn = true; // set return variable to true\n\t\t\t\t\tbreak; // stop loop\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$rtn = false; // key not found\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse // no sets\n\t\t{\n\t\t\t$rtn = false; // set return variable to false, no sets\n\t\t}\n\t\t\n\t\treturn $rtn;\n\t}", "title": "" }, { "docid": "974112c5e9d790a172dbf2bef10e3f24", "score": "0.5941475", "text": "public function isContained()\n {\n return isset(self::$store[$this->id]['payload']);\n }", "title": "" }, { "docid": "ba9179e3bfd2c9ee5f8e858ab23bd3f1", "score": "0.5939189", "text": "public function has(): bool;", "title": "" }, { "docid": "f1e79f41430ff967bf9054a2c52675fc", "score": "0.5910554", "text": "function valueExists($key);", "title": "" } ]
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "9bdad359dc98221ea5e055c16eaf32af", "score": "0.0", "text": "public function run()\n {\n $article = new Article();\n $article->title = 'Первая статья';\n $article->slug = 'pervaya-statya';\n $article->text = 'Et duis sit ipsum consectetur anim dolor voluptate. Consequat culpa irure quis aute proident Lorem sit ex elit et adipisicing velit consectetur. Ad occaecat exercitation aliqua aliqua elit enim aliqua non mollit id mollit. Ut consectetur laboris Lorem fugiat do velit ad nisi ad cupidatat commodo eiusmod sint. Magna in ex ullamco consectetur ipsum cupidatat eu cillum do amet. Proident adipisicing excepteur nostrud incididunt laboris.';\n $article->save();\n\n $article = new Article();\n $article->title = 'Распродажа наборов посуды';\n $article->slug = 'rasprodaja-naborov-posudy';\n $article->text = 'Tempor occaecat nisi officia in. Nulla velit ipsum sit sit consequat proident consectetur pariatur anim cupidatat sit et officia. Sit tempor incididunt anim ex irure sunt pariatur. Enim nisi tempor veniam Lorem mollit cillum. Adipisicing consectetur dolore ex non labore. Qui irure velit velit est magna nostrud excepteur velit sunt velit anim nulla pariatur. Lorem adipisicing aliquip irure non quis eu exercitation do ex excepteur minim amet anim.';\n $article->save();\n }", "title": "" } ]
[ { "docid": "520d3a91ddad10619dacf1b7197c5aec", "score": "0.7992128", "text": "public function run()\n {\n DB::table('users')->insert([\n 'id' => 1,\n 'name' => 'Usuário',\n 'email' => 'user@email.com',\n 'password' => bcrypt('secret'),\n ]);\n\n DB::table('empresas')->insert([\n 'nome' => 'Empreendimentos S.A.',\n 'telefone' => '11900001111',\n 'endereco' => 'Rua Qualquer',\n 'cep' => '00000-000',\n 'cnpj' => '00.000.000/0000-00',\n 'user_id' => 1\n ]);\n\n $faker = Faker::create();\n foreach (range(1,5) as $i){\n DB::table('fornecedores')->insert([\n 'nome' => $faker->name,\n 'email' => $faker->email,\n 'mensalidade' => mt_rand( 0, $faker->numberBetween(100, 1000) ) / 10,\n 'user_id' => 1\n ]);\n }\n }", "title": "" }, { "docid": "9d32f8ff8b6ed1c924761b8262ce875e", "score": "0.79787016", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \n\t factory(App\\Models\\Person::class , 10)->create(); \n\t factory(App\\Models\\Company::class , 10)->create(); \n\t factory(App\\Models\\Account::class , 10)->create(); \n factory(App\\Models\\Tag::class , 10)->create();\n factory(App\\Models\\Customer::class , 10)->create();\n factory(App\\Models\\Project::class , 10)->create();\n factory(App\\Models\\Domain::class , 3)->create();\n\n foreach (['Watermark', 'Filter', 'Optimize'] as $index) {\n DB::table('processes')->insert([\n 'name' => $index, \n 'class' => $index,\n ]);\n }\n\n DB::table('process_tag')->insert([\n 'process_id' => 1, \n 'tag_id' => 1,\n ]);\n \n DB::table('process_tag')->insert([\n 'process_id' => 1, \n 'tag_id' => 2,\n ]);\n\n DB::table('process_tag')->insert([\n 'process_id' => 2, \n 'tag_id' => 3,\n ]);\n\n }", "title": "" }, { "docid": "e3f2301106fd912254f1c33890600754", "score": "0.7965562", "text": "public function run()\n {\n //Create faker instance\n $faker = \\Faker\\Factory::create();\n //Flush the table before recreate\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n DB::table('chapters')->truncate();\n \\App\\Chapter::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n foreach (range(1,5) as $number) {\n \\App\\Chapter::create([\n 'chapter' => $faker->word,\n 'subject_id'=> rand(1,3),\n ]);\n }\n }", "title": "" }, { "docid": "9e7127cb6c71143fb79c04b4fee8ad17", "score": "0.7947562", "text": "public function run()\n {\n /**\n * Seed Users Table\n */\n DB::table('users')->insert([\n [\n 'name' => 'admin',\n 'email' => 'admin@gmail.com',\n 'password' => Hash::make('admin'),\n 'role_id' => Config::get('constants.roles.administrator'),\n 'created_at' => Carbon::now()\n ],\n [\n 'name' => 'John Doe',\n 'email' => 'johndoe@example.com',\n 'password' => Hash::make('johndoe'),\n 'role_id' => Config::get('constants.roles.user'),\n 'created_at' => Carbon::now()\n ],\n ]);\n\n /**\n * Seed Roles Table\n */\n DB::table('roles')->insert([\n [\n 'display_name' => 'Administrator',\n 'description' => 'System Admin',\n 'created_at' => Carbon::now()\n ],\n [\n 'display_name' => 'User',\n 'description' => 'Can access expenses',\n 'created_at' => Carbon::now()\n ],\n ]);\n }", "title": "" }, { "docid": "37ee2d6976618f232b9fc479d5b57a06", "score": "0.79213214", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \n \n Post::insert([\n [\n 'id' => 1,\n 'title' => 'post 1',\n 'content' => 'post content 1'\n ], \n [\n 'id' => 2,\n 'title' => 'post 2',\n 'content' => 'post content 2'\n ],\n [\n 'id' => 3,\n 'title' => 'post 3',\n 'content' => 'post content 3'\n ],\n [\n 'id' => 4,\n 'title' => 'post 4',\n 'content' => 'post content 4'\n ],\n [\n 'id' => 5,\n 'title' => 'post 5',\n 'content' => 'post content 5'\n ],\n [\n 'id' => 6,\n 'title' => 'post 6',\n 'content' => 'post content 6'\n ],\n [\n 'id' => 7,\n 'title' => 'post 7',\n 'content' => 'post content 7'\n ]\n ]);\n \n }", "title": "" }, { "docid": "341ec9573f9443b609a2c9e8c0a90413", "score": "0.79124165", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \tfactory(App\\User::class)->create();\n factory(App\\Client::class, 40)->create();\n factory(App\\Driver::class, 20)->create();\n factory(App\\Guide::class, 20)->create();\n factory(App\\Vehicle::class, 30)->create();\n factory(App\\Order::class, 80)->create();\n factory(App\\Invoice::class, 160)->create();\n factory(App\\DriverSchedule::class, 50)->create();\n factory(App\\GuideSchedule::class, 50)->create();\n factory(App\\VehicleSchedule::class, 50)->create();\n\n\n // Seed driver_order table\n\n $orders = App\\Order::all();\n $drivers = App\\Driver::all();\n $guides = App\\Guide::all();\n $vehicles = App\\Vehicle::all();\n\n $this->seedManyToMany($drivers, $orders);\n $this->seedManyToMany($guides, $orders);\n $this->seedManyToMany($vehicles, $orders);\n }", "title": "" }, { "docid": "c455dbfa0c734909206ed15084e64a1d", "score": "0.79038024", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(ArticlesTableSeeder::class);\n\n\n DB::table('categories')->delete();\n //insert some dummy records\n DB::table('categories')->insert(array(\n array('name'=>'groenten','pic'=>'groenten.png'),\n array('name'=>'vlees','pic'=>'vlees.png'),\n array('name'=>'fruit','pic'=>'fruit.png'),\n array('name'=>'snacks','pic'=>'snacks.png'),\n array('name'=>'drinken','pic'=>'drinken.png')\n\n ));\n }", "title": "" }, { "docid": "ec53d7f325471d31c8d4b9ef320da423", "score": "0.78988916", "text": "public function run()\n {\n $this->call(LanguageTableSeeder::class);\n $this->call(SkillsTableSeeder::class);\n\n// factory(\\App\\Skill::class, 1000)->create();\n\n factory(\\App\\User::class, 20)->create()->each(function($user) {\n $user->skills()->saveMany(\\App\\Skill::all()->random(rand(1, 25)));\n $user->languages()->saveMany(\\App\\Language::all()->random(rand(1, 10)));\n $user->save();\n });\n\n factory(\\App\\Question::class, 50)->create()->each(function($question) {\n $question->skills()->saveMany(\\App\\Skill::all()->random(rand(1, 5)));\n $question->save();\n });\n\n factory(\\App\\Answer::class, 50)->create();\n factory(\\App\\Vote::class, 80)->create();\n }", "title": "" }, { "docid": "b29caf34b66d3312d3383baca3e725cf", "score": "0.7895321", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(\\App\\Set::class, 3)->create()->each(function ($set) {\n $setProducts = factory(\\App\\Product::class, 30)->make();\n\n $set->products()->saveMany($setProducts);\n });\n factory(\\App\\Category::class, 3)->create();\n\n }", "title": "" }, { "docid": "88258f9f401554ae03712d5c26de4e86", "score": "0.78949255", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker\\Factory::create();\n\n foreach (range(1,10) as $index) {\n Product::create([\n 'title' => $faker->name ,\n 'description' => $faker->text ,\n 'price' => $faker->numberBetween(10, 100),\n ]);\n }\n }", "title": "" }, { "docid": "c5ca42e038468200777d2f68273e9f74", "score": "0.7888331", "text": "public function run()\n {\n DB::table('users')->insert([\n 'name' => \"Jovan\",\n 'password' => Hash::make(\"12121212\"),\n 'email' => \"name@gmail.com\"\n ]);\n\n DB::table('users')->insert([\n 'name' => \"Pera\",\n 'password' => Hash::make(\"123123123\"),\n 'email' => \"pera@gmail.com\"\n ]);\n\n $faker = Faker::create();\n for ($i = 0; $i < 10; $i++) {\n DB::table('posts')->insert([\n 'title' => $faker->text(40),\n 'content' => $faker->sentence(10),\n 'user_id' => $faker->numberBetween(1, 2)\n ]);\n }\n }", "title": "" }, { "docid": "3b2875053d0fe7dd172affc98ba741cd", "score": "0.7887019", "text": "public function run()\n {\n $faker = Faker::create('lt_LT');\n\n\n\n DB::table('users')->insert([\n 'name' => 'Juste',\n 'email' => 'juste@gmail.com',\n 'password' => Hash::make('123'),\n ]);\n\n foreach (range(0, 10) as $_ ) {\n \n DB::table('posts')->insert([\n 'town' => $faker->city(),\n 'capacity' => 20,\n 'code' =>'P-'.rand(1,99),\n ]);\n }\n\n foreach (range(1, 50) as $_ ) {\n DB::table('parcels')->insert([\n 'weight' => mt_rand(111, 15999)/100,\n 'phone' => '+37069'.rand(100000, 999999),\n 'info' => $faker->text(400),\n 'post_id' => rand(1, 11)\n ]);\n }\n\n\n }", "title": "" }, { "docid": "b07e3ee3c4b1736184933db829b4a9bc", "score": "0.7874933", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n\n App\\Role::create([\n 'name' => 'Administrador',\n 'description' => 'no se'\n ]);\n\n App\\Role::create([\n 'name' => 'Edil',\n 'description' => 'no se'\n ]);\n\n App\\Role::create([\n 'name' => 'Ciudadano',\n 'description' => 'no se'\n ]);\n\n\n App\\Locality::create([\n 'name' => 'Puente Aranda',\n 'city_id' => 495,\n ]);\n\n\n App\\Entity::create([\n 'name' => 'Administracion del sistema',\n 'phone_contact' => '301301301',\n 'email' => 'oscarfamado@email.com',\n 'country_id' => 48\n ]);\n\n App\\Entity::create([\n 'name' => 'Entidad 1',\n 'phone_contact' => '301301301',\n 'email' => 'entidad@email.com',\n 'country_id' => 48\n ]);\n\n App\\User::create([\n 'name' => 'Oscar',\n 'email' => 'oscarfamado@gmail.com',\n 'password' => bcrypt('oscar123'),\n 'last_name' => 'Amado',\n 'entity_id' => 1,\n 'rol_id' => 1,\n 'document' => '1022445546',\n ]);\n\n }", "title": "" }, { "docid": "385bfd731a375a2d4ef0c36d568c50e1", "score": "0.786952", "text": "public function run()\n {\n //Clears database\n DB::table('users')->delete();\n DB::table('settings')->delete();\n\n //Seeds database\n factory(User::class,\"admin\", 1)->create();\n factory(User::class, 10)->create();\n factory(Setting::class, 1)->create();\n }", "title": "" }, { "docid": "6e77cc4bd37ebe82a97b96bf3dec7bab", "score": "0.7860597", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n \tforeach (range(1,10) as $index) {\n\t DB::table('item')->insert([\n 'title' => $faker->name,\n 'description' => $faker->realText($maxNbChars = 200, $indexSize = 2),\n 'id_model' =>$faker->numberBetween(1,69),\n 'id_province' =>$faker->numberBetween(1,96),\n 'id_brand' =>$faker->numberBetween(1,79),\n 'id_user' =>$faker->numberBetween(1,7),\n\t 'created_at' => $faker->dateTimeBetween($startDate = '-1 months', $endDate = 'now'),\n 'status' => $faker->randomElement(array('New', 'Active', 'Inactive')),\n\t ]);\n }\n }", "title": "" }, { "docid": "10380f0624cacc8ec438ce737cd5a23c", "score": "0.785481", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n \\App\\Review::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 50; $i++) {\n \\App\\Review::create([\n 'user_id' => $faker->randomElement(\\App\\User::all()->pluck('id')->toArray()),\n 'restaurant_id' => $faker->randomElement(\\App\\Restaurant::all()->pluck('google_places_id')->toArray()),\n 'review_text' => $faker->paragraph,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "7b08efa0e8b289b221b37a9f42fcbab6", "score": "0.7840935", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n $this->call(VideosTableSeeder::class);\n\n factory(App\\Models\\User::class, 5)->create()->each(function ($i) {\n $i->interests()\n ->saveMany(\n factory(App\\Models\\Interest::class, rand(1, 5))->make()\n );\n });\n }", "title": "" }, { "docid": "4d8a3e194e5213b07ba6e1f01065371a", "score": "0.78395134", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n User::create(array('first_name' => 'George','last_name' => 'Petrou', 'avatar' => 'default.jpg', 'email' => 'admin@admin.com','password' => Hash::make('1234')));\n User::create(array('first_name' => 'Nick','last_name' => 'Jones', 'avatar' => 'default.jpg', 'email' => 'nick@gmail.com','password' => Hash::make('1235')));\n User::create(array('first_name' => 'Ryan','last_name' => 'Giggs', 'avatar' => 'default.jpg', 'email' => 'giggs@gmail.com','password' => Hash::make('1236')));\n Roles::create(array('role' => 'admin','user_id' => 1));\n Roles::create(array('role' => 'user','user_id' => 2));\n Roles::create(array('role' => 'user','user_id' => 3));\n }", "title": "" }, { "docid": "bc912a8c1dddc8fa40444c9031b40718", "score": "0.78330994", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $users = [\n [\n 'name' => 'admin',\n 'email' => 'admin@gmail.com'\n ],\n [\n 'name' => 'jahed',\n 'email' => 'jahed@gmail.com'\n ],\n [\n 'name' => 'hasan',\n 'email' => 'hasan@gmail.com'\n ],\n [\n 'name' => 'jahedhasan',\n 'email' => 'jahedhasan@gmail.com'\n ],\n [\n 'name' => 'jh',\n 'email' => 'jh@gmail.com'\n ],\n \n [\n 'name' => 'jahedd',\n 'email' => 'jahedd@gmail.com'\n ],\n [\n 'name' => 'jb',\n 'email' => 'jb@gmail.com'\n ],\n ];\n foreach ($users as $user) {\n factory(User::class)->create([\n 'name' => $user['name'],\n 'email' => $user['email']\n ]);\n }\n factory(Note::class, 30)->create();\n }", "title": "" }, { "docid": "32f8a9675ac74c00bb4974c472281dba", "score": "0.7821223", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n // Customer::truncate();\n\n $faker = \\Faker\\Factory::create();\n \n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 3; $i++) {\n Customer::create([\n 'full_name' =>$faker->name,\n 'cin' =>$faker->word,\n 'phone' => $faker->e164PhoneNumber ,\n 'email' =>$faker->Email, \n // 'user_id' =>$i+1, \n 'workspace_id' =>1, \n ]);\n }\n }", "title": "" }, { "docid": "7390b50b8fae46f7555e0eaf084fd3ef", "score": "0.7807736", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // DB::table('users')->insert([\n // 'name' => str_random(10),\n // 'email' => str_random(10).'@gmail.com',\n // 'password' => bcrypt('secret'),\n // ]);\n for($count=1;$count<=3; $count++ ){\n\t DB::table('users')->insert([\n\t 'name' => 'admin'.$count,\n\t 'email' => 'admin'.$count.'@gmail.com',\n\t 'password' => bcrypt('admin'),\n\t 'admin'\t=>1,\n\t ]);\n }\n // DB::table('projects')->insert([\n // 'title' => str_random(10),\n // 'description' => str_random(100),\n // 'status' => 'open',\n // 'category' => 'Web',\n // ]); \n // DB::table('tasks')->insert([\n // 'title' => str_random(10),\n // 'description' => str_random(100),\n // 'status' => 'in progress',\n // 'category' => 'Front-End',\n // 'project_id'=>1\n // ]);\n // DB::table('task_user')->insert([\n // \t'task_id' => 1,\n // \t'user_id'\t=> 1,\n\n // \t]);\n }", "title": "" }, { "docid": "4d4c9c609f68448903976a4c7b76bb72", "score": "0.7806386", "text": "public function run() {\n $this->call(CountriesSeeder::class);\n $this->call(CastsTableSeeder::class);\n $this->call(MoviesSeeder::class);\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => 'admin@admin.com',\n 'password' => bcrypt('password'),\n 'user_type' => 'ADMIN'\n ]);\n DB::table('ratings')->insert(\n [\n 'user_id' => 1,\n 'movie_id' => 1,\n 'rating_value' => 5\n ]\n );\n }", "title": "" }, { "docid": "39cab0ab1b75aec77c6b02db375756d1", "score": "0.7804264", "text": "public function run()\n {\n /*$this->call([\n //LanguageTableSeeder::class,\n UsersTableSeeder::class\n ]);*/\n\n //create dummy data for cashflow\n $faker = Faker::create();\n foreach (range(1,100) as $index) {\n\n DB::table('cashflow')->insert([\n 'name' => $faker->sentence(6, true),\n 'description' => $faker->text,\n 'flow_type' => $faker->randomElement(array ('1','2')),\n 'amount' => $faker->numberBetween(1000, 9000),\n 'created_at' => $faker->dateTimeThisYear('now', 'UTC') \n ]);\n }\n }", "title": "" }, { "docid": "249635981f4ce9205eb86a95422d00e1", "score": "0.780369", "text": "public function run()\n {\n $this->call(RoleSeeder::class);\n $this->call(PermissionSeeder::class);\n factory(Tag::class, 20)->create();\n Permission::where('slug', 'manage-users')->first()->roles()\n ->sync([\n Role::where('slug', 'administrator')->first()->id,\n ]);\n Permission::where('slug', 'manage-articles')->first()->roles()\n ->sync([\n Role::where('slug', 'administrator')->first()->id,\n Role::where('slug', 'editor')->first()->id,\n ]);\n $this->call(UserSeeder::class);\n factory(User::class, 2)->create()->each(function($user) {\n $user->articles()->saveMany(factory(Article::class, (int) rand(10, 20))->make());\n $user->news()->saveMany(factory(News::class, (int) rand(10, 20))->make());\n });\n $this->call(EntryTagTableSeeder::class);\n $this->call(CommentTableSeeder::class);\n }", "title": "" }, { "docid": "11218f98139c57a6846510c7c4c15a64", "score": "0.77917063", "text": "public function run()\n {\n $faker = FakerFactory::create();\n\n # php artisan migrate:refresh --seed\n $bob = new App\\User();\n $bob->name = \"Bob\";\n $bob->email = \"bob@gmail.com\";\n $bob->password = bcrypt(\"123456\");\n $bob->save();\n\n $alice = new App\\User();\n $alice->name = \"Alice\";\n $alice->email = \"alice@gmail.com\";\n $alice->password = bcrypt(\"123456\");\n $alice->save();\n\n for($i=0; $i<20; $i++) {\n $comment = new App\\Comment();\n $comment->comment = $faker->paragraph;\n $comment->post_id = rand(1, 10);\n $comment->user_id = rand(1, 2);\n $comment->save();\n }\n\n for($i=0; $i<10; $i++) {\n $post = new App\\Post();\n $post->title = $faker->sentence;\n $post->body = $faker->paragraph;\n $post->category_id = rand(1, 5);\n $post->save();\n }\n\n for($i=0; $i<5; $i++) {\n $category = new App\\Category();\n $category->name = ucwords( $faker->word );\n $category->save();\n }\n\n // $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "0abeef674742d2ee575c2285b0a63e54", "score": "0.7787361", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n //seta = 0\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n\n //Cidades \n DB::table('cidades')->truncate();\n \tDB::table('cidades')->insert([\n \t\t// 'id' => \"1\",\n 'cidade_nome' => \"Cuiabá\",\n ]);\n \tDB::table('cidades')->insert([\n \t\t// 'id' => \"2\",\n 'cidade_nome' => \"Várzea Grande\",\n ]);\n\n\n //Planos \n DB::table('planos')->truncate();\n \tDB::table('planos')->insert([\n \t\t// 'id' => \"1\",\n 'plano_nome' => \"Silver\",\n 'plano_vantagens' => \"Para controle financeiro de quem trabalha sozinho\",\n ]);\n \tDB::table('planos')->insert([\n \t\t// 'id' => \"2\",\n 'plano_nome' => \"Gold\",\n 'plano_vantagens' => \"Melhor opção para quem quer crescer e receber mais rápido.\", \n ]);\n \tDB::table('planos')->insert([\n \t\t// 'id' => \"2\",\n 'plano_nome' => \"Platium\",\n 'plano_vantagens' => \"Mais notas e boletos para sua empresa.\",\n ]);\n\n\n }", "title": "" }, { "docid": "e1d4f0e4e0b4cd624b555f00f69d8386", "score": "0.77770865", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n //----DATOS REALES DE PRUEBA---------\n $this->call(CitySeeder::class);\n $this->call(SucursaleSeeder::class);\n $this->call(StateSeeder::class);\n $this->call(CategorySeeder::class);\n $this->call(RoleSeeder::class);\n\n //-----DATOS FALSOS DE PRUEBA--------\n //User::factory(10)->create();\n Product::factory(5)->create();\n Group::factory(5)->create();\n Modifier::factory(20)->create();\n //Sale::factory(20)->create();\n }", "title": "" }, { "docid": "5636dd7cb3d474c1bf2462b273b361ff", "score": "0.7776088", "text": "public function run()\n {\n\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n DB::table('users')->truncate();\n DB::table('categories')->truncate();\n\n\n //seeding the data\n\n User::factory()->count(1)->create();\n\n Category::factory()->count(10)->create()->each(function($category){\n $category->products()->saveMany(Product::factory(Product::class)->count(5)->create());\n });\n\n // \\App\\Models\\User::factory(10)->create();\n }", "title": "" }, { "docid": "a8dfa675e6ffec96b1dd6192fd68b3a2", "score": "0.77732474", "text": "public function run()\n {\n \t// Crear Seeder\n \t// php artisan make:seeder MiniSkillsTableSeeder\n\n \t// Ejecutar\n \t//php artisan db:seed --class=MiniSkillsTableSeeder\n \t//\n \t/*\n \tDB::table('mini_skills')->insert([\n\t 'title' => 'SEO',\n\t 'progress' => 100, \n\t 'status' => 1,\n\t 'created_at' => now(),\n\t 'updated_at' => now()\n ]);\n */\n \n \n\n \tMiniSkill::create([\n\t 'title' => 'SEO',\n\t 'progress' => 100, \n\t 'status' => 1\n ]);\n }", "title": "" }, { "docid": "e09eb1651561e63be4b2b1e9c41c333c", "score": "0.77729875", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory('App\\Admin', 1)->create();\n factory('App\\Membre', 10)->create();\n factory('App\\Psychologue', 10)->create();\n factory('App\\Blog', 10)->create();\n factory('App\\Statut', 10)->create();\n factory('App\\Discussion', 10)->create();\n }", "title": "" }, { "docid": "fc4ebf94d0a8bf8e90abe65163ca460c", "score": "0.77711946", "text": "public function run()\n {\n $this->call(UsersSeeder::class);\n // factory(App\\User::class, 5)->create()->each(function ($u) {\n // \t$u->laporan()->saveMany(factory(App\\Laporan::class, 5)->make());\n // });\n // factory(App\\Dospem::class, 2)->create();\n // factory(App\\Pemlap::class, 2)->create();\n // factory(App\\Instansi::class, 2)->create();\n }", "title": "" }, { "docid": "afcd93274839927545e6c2a6489c97b4", "score": "0.7769354", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $faker=Faker::create();\n foreach (range(1,100) as $index) {\n DB::table('posts')->insert([\n 'title'=>$faker->text(30),\n 'body'=>$faker->text(300)\n ]);\n }\n }", "title": "" }, { "docid": "b9f891c56a6dcdf4ec65f847082d6389", "score": "0.77666545", "text": "public function run()\n {\n $faker = Faker::create();\n foreach (range(1, 5) as $index) {\n DB::table('articles')->insert(\n [\n 'name' => $faker->unique()->word,\n 'user_id' => 1,\n 'title' => $faker->words(3, true),\n 'text' => $faker->text(1000),\n 'rank' => $faker->randomNumber(),\n 'enabled' => $faker->boolean(true),\n 'created_at' => $faker->date(),\n 'updated_at' => $faker->date(),\n ]\n );\n }\n }", "title": "" }, { "docid": "f908dcf673136d275768a26e1ed8f43d", "score": "0.77663046", "text": "public function run()\n {\n /*\n // Seed with a database querry.\n DB::table('users')->insert([\n 'name' => Person::firstNameMale(),\n 'email' => str_random(10) . '@' . str_random(5) . '.com',\n 'password' => bcrypt('secret'),\n 'date_birth' => DateTime::unixTime(),\n 'telephone' => PhoneNumber::phoneNumber(),\n 'address' => Address::streetSuffix() . $this->delimiter . Address::buildingNumber() . $this->address_delimiter .\n Address::postcode() . $this->delimiter . Address::citySuffix() . $this->address_delimiter .\n Address::country(),\n 'nationality' => Miscellaneous::countryCode(),\n 'work_permit' => str_random(1),\n 'driver_permit' => 'yes',\n ]);\n */\n\n //Seeding with a factory.\n // No relationships are made.\n factory(App\\User::class,5)->create();\n /*\n // Seed and attach relationships to each user;\n factory(App\\User::class,5)->create()->each(function($u){\n $u->templates()->save(factory(App\\Template::class)->make());\n // Cannot continue as the foreign key integrities are not respected afterwards.\n $u->cvs()->save(factory(App\\Cv::class)->make());\n $u->sections()->save(factory(App\\Section::class)->make());\n $u->skills()->save(factory(App\\Skill::class)->make());\n $u->hobbies()->save(factory(App\\Hobby::class)->make());\n $u->jobs()->save(factory(App\\Work::class)->make());\n $u->languages()->save(factory(App\\Language::class)->make());\n $u->educations()->save(factory(App\\Education::class)->make());\n });\n */\n }", "title": "" }, { "docid": "40ca19c7f708ecdfdcd4af8c02d83f2f", "score": "0.7763938", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(AdminTableSeeder::class);\n // factory(App\\Admin::class, 50)->create();]\n factory(App\\Model\\Artist::class, 15)->create();\n factory(App\\Model\\Category::class, 20)->create();\n factory(App\\Model\\Album::class, 20)->create();\n factory(App\\Model\\Song::class, 50)->create();\n }", "title": "" }, { "docid": "78fa4e7ae6998de91422744dcdef4f25", "score": "0.77621245", "text": "public function run()\n { \n \n /* factory(App\\Resource::class, 10000)->create();\n factory(App\\Work::class, 50)->create();\n factory(App\\Cost::class, 500)->create();\n factory(App\\Refwork::class, 50)->create();\n factory(App\\Refresource::class, 200)->create(); */\n\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n \n }", "title": "" }, { "docid": "480eecd886ef3ee8fb2edf36add7a6e6", "score": "0.7761234", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(RoleUserTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n// factory('App\\User', 15)->create();\n factory('App\\Article', 6)->create();\n $this->call(ArticlesTableSeeder::class);\n $this->call(ArticleCategoryTableSeeder::class);\n\n }", "title": "" }, { "docid": "43e31086667a15be4100b3788e32525a", "score": "0.77569884", "text": "public function run()\n {\n $faker = Faker::create('id_ID');\n DB::table('users')->insert([\n [\"role_id\" => 1, \"name\" => 'Admin 1', \"email\" => \"admin1@readandwrite.com\", \"password\" => Hash::make(\"admin12345\")],\n [\"role_id\" => 1, \"name\" => 'Admin 2', \"email\" => \"admin2@readandwrite.com\", \"password\" => Hash::make(\"admin12345\")],\n [\"role_id\" => 2, \"name\" => 'John Doe', \"email\" => \"johndoe@gmail.com\", \"password\" => Hash::make(\"john12345\")],\n [\"role_id\" => 2, \"name\" => 'Ji Eun', \"email\" => \"jieun@gmail.com\", \"password\" => Hash::make(\"jieun12345\")],\n ]);\n }", "title": "" }, { "docid": "c5a55e8cf6dced6dcea94dbb4eb4d4fe", "score": "0.7746075", "text": "public function run()\n {\n $this->seed('EntryTypesTableSeeder');\n\t\t$this->seed('TaxonomyTableSeeder');\n\t\t$this->seed('RolesTableSeeder');\n\t\t$this->seed('SettingsTableSeeder');\n\t\t$this->seed('PagesTableSeeder');\n\t\t$this->seed('MenuTableSeeder');\n }", "title": "" }, { "docid": "84eb153850f1545b5a2f9529a74ca3bb", "score": "0.774333", "text": "public function run()\n {\n Author::factory(10)->create();\n Book::factory(10)->create();\n Relation::factory(10)->create();\n $this->call([\n UserSeeder::class,\n RelationSeeder::class\n ]);\n }", "title": "" }, { "docid": "1159542e19a2f9f8712ba8239cdba0c8", "score": "0.7737675", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Let's truncate our existing records to start from scratch.\n Category::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n $categories = [\n 'Acheter et vendre','Autos et véhicules','Immobilier','Services','Animaux','Locations de vacances','Communauté'\n ];\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 7; $i++) {\n Category::create([\n 'name' => $categories[$i]\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n }", "title": "" }, { "docid": "d2d80f7d460efe018a3f140847e1a279", "score": "0.7736776", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // Dejar nulo las claves foraneas\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n DB::table('category_product')->truncate();\n\n //Me ayudara para que los eventos al comienzo no se activen\n User::flushEventListeners();\n Category::flushEventListeners();\n Product::flushEventListeners();\n Transaction::flushEventListeners();\n\n $catidadUsuarios = 200;\n $cantidadCategorias = 30;\n $cantidadProductos = 500;\n $cantidadTransacciones = 1000;\n\n factory(User::class,$catidadUsuarios)->create();\n factory(Category::class,$cantidadCategorias)->create();\n\n factory(Product::class,$cantidadProductos)->create()->each(\n function($producto){\n //random (colleccion)\n $categorias=Category::all()->random(mt_rand(1,5))->pluck('id');\n $producto->categories()->attach($categorias);\n }\n );\n\n factory(Transaction::class, $cantidadTransacciones)->create();\n }", "title": "" }, { "docid": "b71b6c9d43290ee575ba0a2222937224", "score": "0.7735867", "text": "public function run()\n {\n $faker = Faker\\Factory::create();\n \n $data = [];\n\n $users=App\\User::pluck('id')->toArray();//permet de retourner les id de la table et les stock dans une table\n \n for ($i = 1; $i <= 100 ; $i++) {\n array_push($data, [\n 'name'=>$faker->sentence,\n 'body'=>$faker->realText(2000) ,\n 'user_id'=>$faker->randomElement($users),\n 'published_at'=>$faker->datetime(),\n\n ]);\n }\n Article::insert($data);\n }", "title": "" }, { "docid": "9d2e1f29bfaf34564e90f02a58e8ad3b", "score": "0.77346915", "text": "public function run()\n {\n \t\n \tDB::table('profissao')->insert([\n 'descricao' => 'Professor'\n ]);\n\n DB::table('profissao')->insert([\n 'descricao' => 'Aluno'\n ]);\n\n DB::table('profissao')->insert([\n 'descricao' => 'Engenheiro'\n ]);\n\n DB::table('profissao')->insert([\n 'descricao' => 'Agricultor'\n ]);\n\n DB::table('profissao')->insert([\n 'descricao' => 'Outro'\n ]);\n\n\n DB::table('perfil')->insert([\n 'descricao' => 'Administrador'\n ]);\n\n DB::table('perfil')->insert([\n 'descricao' => 'Registrador'\n ]);\n \n $this->call(ModelosTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(PluviometrosSeeder::class); \n }", "title": "" }, { "docid": "de46177ac0fa0a295c6ae2ab0fba4901", "score": "0.7733467", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(Course::class, 10)->create()->each(function($course){\n $course->episodes()->saveMany(factory(Episode::class,10)->make());\n });\n }", "title": "" }, { "docid": "5c50c6331a8da5e7c37b7e78f795a900", "score": "0.7731594", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n User::create([\n 'name' => 'admin',\n 'email' => 'admin@gmail.com',\n 'password' => '123123'\n ]);\n\n Security::create(['code' => 'helloworld']);\n Security::create(['code' => 'welcomehere']);\n }", "title": "" }, { "docid": "5594e3238793cf289d046986c5f56d58", "score": "0.77295095", "text": "public function run() {\n // \\App\\Models\\User::factory(10)->create();\n// $this->call(ArticlesTableSeeder::class);\n// $this->call(UsersTableSeeder::class);\n $faker = \\Faker\\Factory::create();\n\n // Let's make sure everyone has the same password and\n // let's hash it before the loop, or else our seeder\n // will be too slow.\n $password = Hash::make('netireki');\n\n User::create([\n 'name' => 'Admin',\n 'email' => 'admin@test.com',\n 'password' => $password,\n ]);\n\n // And now let's generate a few dozen users for our app:\n for ($i = 0; $i < 10; $i++) {\n User::create([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'password' => $password,\n ]);\n }\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Article::create([\n 'title' => $faker->sentence,\n 'body' => $faker->paragraph,\n ]);\n }\n }", "title": "" }, { "docid": "b330d291de9fbd392f253311a96f3c6d", "score": "0.7729395", "text": "public function run()\n {\n // \\App\\Models\\User::factory(1)->create();\n // \\App\\Models\\Article::factory(5)->create();\n // \\App\\Models\\Category::factory(5)->create();\n // \\App\\Models\\Topic::factory(5)->create();\n // \\App\\Models\\Tag::factory(5)->create();\n // $this->call(ArticleCategorySeeder::class);\n // $this->call(ArticleTopicSeeder::class);\n $this->call(RegionSeeder::class);\n }", "title": "" }, { "docid": "bad0c06d6cc426f60d248d0caa0771bb", "score": "0.77290624", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(AssessmentSeeder::class);\n DB::table('users')->insert([\n\n [\n 'name' => 'Admin 1',\n 'email' => 'admin@test.com',\n 'password' => bcrypt('test1234'),\n ],\n [\n 'name' => 'Admin 2',\n 'email' => 'admin2@test.com',\n 'password' => bcrypt('test1234'),\n ],\n [\n 'name' => 'Admin 3',\n 'email' => 'admin3@test.com',\n 'password' => bcrypt('test1234'),\n ]\n\n ]);\n }", "title": "" }, { "docid": "2e159f4e54504bdde9f62ecdf35810ee", "score": "0.772654", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory('App\\User',50)->create();\n factory('App\\Post',50)->create();\n factory('App\\Profile',50)->create();\n factory('App\\Category',3)->create();\n \n $posts = factory(App\\Post::class)->create();\n\n factory(Comment::class, 30)->create([\n 'post_id' => $posts->id\n ]);\n\n $comment = Comment::first();\n\n factory(Comment::class, 20)->create([\n 'post_id' => $posts->id,\n 'comment_id' => $comment->id,\n ]);\n\n }", "title": "" }, { "docid": "bad3760d584e717874b4137c76409e6b", "score": "0.7724795", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n DB::table('roles')->insert([\n 'name' => 'SUPERUSER',\n ]);\n\n DB::table('contractors')->insert([\n 'name' => 'MY ENTERPRISE',\n ]);\n\n DB::table('projects')->insert([\n 'name' => 'PROJECT EXAMPLE',\n 'datestart' => now()->format('Y-m-d H:i:s'),\n 'dateFinish' => now()->format('Y-m-d H:i:s'),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'SUPERUSER',\n 'user' => 'superuser',\n 'email' => 'example@email.com',\n 'password' => Hash::make('IdonSoft'),\n 'role_id' => '1',\n 'contractor_id' => '1',\n ]);\n\n DB::table('permits')->insert([\n 'user_id' => '1',\n 'create_folio' => '1',\n 'create_dailyreport' => '1',\n 'create_note' => '1',\n 'create_comment' => '1',\n 'print_dailyreport' => '1',\n 'print_note' => '1',\n 'print_folio' => '1',\n 'edit_sequence' => '1',\n ]);\n \n }", "title": "" }, { "docid": "d6c8622705e47deae5dda1c458f83e8a", "score": "0.7724516", "text": "public function run()\n {\n DB::table('dias')->insert([\n // Para que los tres tipos de roles puedan darse,\n // Poner php artisan migrate:fresh --seed para hacer la migración del seed\n // primero php artisan db:seed --class=RolesTableSeeder\n // y luego php artisan db:seed --class=UsersTableSeeder\n // finalmente php artisan db:seed --class=DiasTableSeeder\n [\n 'nombre' => 'Lunes'\n ],\n [\n 'nombre' => 'Martes'\n ],\n [\n 'nombre' => 'Miercoles'\n ],\n [\n 'nombre' => 'Jueves'\n ],\n [\n 'nombre' => 'Viernes'\n ],\n [\n 'nombre' => 'Sabado'\n ],\n [\n 'nombre' => 'Domingo'\n ]\n ]);\n }", "title": "" }, { "docid": "7c1039e8faa671c62b7faf41b7d53536", "score": "0.77197814", "text": "public function run()\n {\n Model::unguard();\n Category::where('id', '<=', '5')->delete();\n $data = [\n ['name' => '汽车'],\n ['name' => '游戏'],\n ['name' => '影视'],\n ['name' => '社会'],\n ['name' => '政治'],\n ];\n foreach ($data as $d) {\n Category::create($d);\n }\n factory(Content::class, 1000)->create();\n // $this->call(\"OthersTableSeeder\");\n }", "title": "" }, { "docid": "bbdcb34cad1d7381d781f85b5830c22f", "score": "0.77192366", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n// $this->depeartmntTableSeed();\n// $this->designationTableSeed();\n /**\n * Run the database seeds.\n *\n * @return void\n */\n\n }", "title": "" }, { "docid": "7d13b7cccd5ea1d589bdc8b1ce81b63f", "score": "0.7715028", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // factory(App\\User::class)->create();\n\n // factory(Student::class,50)->create()->each(function($student)\n // {\n // $student->educationalQualification()->save(factory(Parents::class)->make());\n // $student->educationalQualification()->save(factory(Payment::class)->make());\n // $student->educationalQualification()->save(factory(Guardian::class)->make());\n // $student->educationalQualification()->save(factory(EQ::class)->make());\n // });\n }", "title": "" }, { "docid": "b84407b90ecd0da0f136c70b54b6b0f0", "score": "0.7710997", "text": "public function run()\n {\n /// Let's truncate our existing records to start from scratch.\n Category::truncate();\n\n $faker = \\Faker\\Factory::create();\n $category_names = array('Category One', 'Category Two');\n foreach($category_names as $name) {\n Category::create([\n 'name' => $name,\n 'price_mod' => $faker->randomFloat($nbMaxDecimals = 2, $min = -2, $max = 10.0),\n ]);\n }\n }", "title": "" }, { "docid": "1506f1139a748a04763396e2ad86ef7a", "score": "0.7710608", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n factory(Category::class,10)->create();\n factory(ProductType::class,20)->create();\n // factory(Product::class,150)->create();\n $this->call(ProductSeeder::class);\n\n }", "title": "" }, { "docid": "510b6a95b0bda8150598fcfcd5e0fa41", "score": "0.77091455", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n \n \\App\\User::truncate();\n \\App\\Category::truncate();\n \\App\\Product::truncate();\n \\App\\Transaction::truncate();\n\n \\App\\User::flushEventListeners();\n \\App\\Category::flushEventListeners();\n \\App\\Product::flushEventListeners();\n \\App\\Transaction::flushEventListeners();\n\n factory(\\App\\User::class,100)->create();\n factory(\\App\\Category::class,10)->create();\n factory(\\App\\Product::class,30)->create()->each(\n function ($product) {\n $categories = \\App\\Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n }\n );\n factory(\\App\\Transaction::class,10)->create();\n\n }", "title": "" }, { "docid": "2f62f5093b8e26beb38831e5bdf29130", "score": "0.7708483", "text": "public function run()\n {\n $faker = Faker::create();\n foreach (range(1,10) as $index) {\n DB::table('employees')->insert([\n 'id' => $index,\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'password' => Hash::make('12345678')\n ]);\n }\n $this->call(UserSeeder::class);\n }", "title": "" }, { "docid": "c31a689ff9ae8523f84c6d76cbc5c3ea", "score": "0.7707085", "text": "public function run()\n {\n $user = [\n 'name' => 'Heru Trijaya',\n 'email' => 'herutrijaya13+1@gmail.com',\n 'email_verified_at' => now(),\n 'password' => bcrypt(\"password\"),\n 'remember_token' => Str::random(10),\n 'created_at' => now(),\n ];\n DB::table('users')->insert($user);\n $user = [\n 'name' => 'John Doe',\n 'email' => 'herutrijaya13+johndoe@gmail.com',\n 'email_verified_at' => now(),\n 'password' => bcrypt(\"password\"),\n 'remember_token' => Str::random(10),\n 'created_at' => now(),\n ];\n DB::table('users')->insert($user);\n \\App\\Models\\Author::factory(10)->create();\n \\App\\Models\\Book::factory(10)->create();\n }", "title": "" }, { "docid": "5b9bc9e211e20662e2eb7209dd7f3c70", "score": "0.7703563", "text": "public function run()\n {\n Student::factory(10)->create();\n Post::factory(10)->create();\n Category::factory(10)->create();\n Category_Post::factory(10)->create();\n Comment::factory(10)->create();\n // $this->call([\n // TableFirst::class,\n // SubjectTableSeeder::class,\n // ThuanSeeder::class,\n // ]);\n }", "title": "" }, { "docid": "134a3a3db82b46df656b48877e3819ce", "score": "0.77008", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n\n // Seed the Time Zones\n //$this->call(TimeZonesTableSeeder::class);\n\n // Seed the Languages\n $this->call(LanguagesTableSeeder::class);\n\n // Seed the countries\n $this->call(CountriesTableSeeder::class);\n\n // Seed the setting table\n $this->call(SettingsTableSeeder::class);\n\n // Seed the company & company translation\n //$this->call(CompanySeeder::class);\n\n // Seed Brand table\n //$this->call(BrandSeeder::class);\n\n // Seed Vehicle table\n //$this->call(VehicleSeeder::class);\n\n // Seed dealership group table\n //$this->call(GroupSeeder::class);\n\n // Seed Dealership table\n //$this->call(DealershipSeeder::class);\n\n // Seed Event type table\n //$this->call(EventTypeSeeder::class);\n\n // Seed Event table\n //$this->call(EventSeeder::class);\n\n // Seed Region table\n //$this->call(RegionSeeder::class);\n\n // Seed Brand Dealership table\n //$this->call(BrandDealershipSeeder::class);\n\n\n // Seed User table\n $this->call(UserSeeder::class);\n\n // Seed Guest table\n// $this->call(GuestSeeder::class);\n }", "title": "" }, { "docid": "c9cd9baaee4f0804b80ef0f6ae5ccbb6", "score": "0.7700753", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n User::create([\n 'email' => 'ceci.jimg@gmail.com',\n 'name' => 'Ceci',\n 'password' => bcrypt('123456'),\n 'role' => 'U'\n ]);\n User::create([\n 'email' => 'practicas106@hotmail.com',\n 'name' => 'Emmanuel',\n 'password' => bcrypt('123456'),\n 'role' => 'U'\n ]);\n User::create([\n 'email' => 'mntr_rdrgz@hotmail.com',\n 'name' => 'Fabián Montero',\n 'password' => bcrypt('123456'),\n 'role' => 'A'\n ]);\n User::create([\n 'email' => 'ssmontero@outlook.com',\n 'name' => 'Santiago Montero',\n 'password' => bcrypt('123456'),\n 'role' => 'U'\n ]);\n }", "title": "" }, { "docid": "cf80c34d1b3a3ce834cad902d96a49ae", "score": "0.7695887", "text": "public function run()\n {\n \\App\\Models\\User::factory(10)->create();\n $this->call(DicRegionsTableSeeder::class);\n $this->call(DicCitiesTableSeeder::class);\n $this->call(AdCategoriesTableSeeder::class);\n Adverts::factory()->count(100)->create();\n }", "title": "" }, { "docid": "8d26d80f703923cebce1f22a4b67618a", "score": "0.76952183", "text": "public function run()\n {\n\n //Make roles and permissions\n\t Role::create(['name' => 'user']); // normal register user\n\t Role::create(['name' => 'owner']); // owner club user\n\t Role::create(['name' => 'manager']); // portal manager\n\t Role::create(['name' => 'admin']); // admin with full permission\n\n //Start other seeders.\n $this->call([\n MusicTypesTableSeeder::class,\n\t VoivodeshipsTableSeeder::class,\n\t CitiesTableSeeder::class,\n UsersTableSeeder::class,\n\t ClubsTableSeeder::class,\n\t EventsTableSeeder::class,\n\t UserSettingsSeeder::class\n ]);\n\n }", "title": "" }, { "docid": "d95416047e958fc5cae8011cf9c8b698", "score": "0.7695155", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker\\Factory::create();\n for ($i=0; $i < 20; $i++) { \n \tPost::create([\n \t\t'title'=> $faker->sentence,\n \t\t'body'=> implode('',$faker->sentences(4))\n \t\t]);\n }\n }", "title": "" }, { "docid": "58e1005fcab19ab4f45f7567ad4fbe32", "score": "0.76921916", "text": "public function run()\n {\n //factory(App\\Category::class, 5)->create();\n $this->call(PageSeeder::class);\n $this->call(TagSeeder::class);\n $this->call([\n CategorySeeder::class,\n ProductCategorySeeder::class,\n ProductTagSeeder::class,\n RelationshipSeeder::class,\n \n ]);\n factory(App\\Comment::class, 200)->create();\n factory(App\\User::class, 25)->create();\n //factory(App\\ProductCategory::class,5)->create();\n factory('App\\Post',50)->create();\n factory('App\\Product',80)->create();\n }", "title": "" }, { "docid": "07d21e2f0b22563e12932cf198047658", "score": "0.7690095", "text": "public function run()\n {\n $faker = Faker::create();\n $products = c2a(Product::lists('id'));\n $users = c2a(User::lists('id'));\n\n foreach (range(1, 20) as $index) {\n Topic::create([\n 'title' => $faker->sentence(6),\n 'slug' => $faker->name,\n 'product_id' => $faker->randomElement($products),\n 'user_id' => $faker->randomElement($users),\n 'keywords' => $faker->sentence,\n 'description' => $faker->sentence(10),\n 'content' => $faker->sentence(100),\n 'page_view_count' => rand(10, 3059),\n 'vote_count' => rand(0, 199),\n 'reply_count' => rand(0, 100)\n ]);\n }\n\n }", "title": "" }, { "docid": "454fbceec11c7288d6d51c17b75dacd8", "score": "0.7688257", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(\\App\\User::class, 1)->create([\n 'email' => 'admin@user.com',\n 'role' => \\App\\User::ROLE_ADMIN\n ]);\n\n factory(\\App\\User::class, 1)-> create([\n 'email' => 'user@user.com'\n ]);\n\n $this->call(PostTableSeeder::class);\n $this->call(TbSinproAdminPermissaoSeeder::class);\n// factory(\\App\\Post::class, 20)->create();\n\n }", "title": "" }, { "docid": "201732e6ba9e0b6eef969d5379841fde", "score": "0.7688141", "text": "public function run()\n {\n //factory(\\App\\Models\\User::class, 10)->create();\n\n $users = \\App\\Models\\Role::all()->pluck('id')->toArray();\n\n /**\n * Creating seeder for every role\n */\n for ($i = 1; $i < (sizeof($users)); $i++) {\n DB::table('users')->insert([\n\n 'name' => 'Janko',\n 'email' => 'janko' . $i . '@gmail.com',\n 'surname' => 'Mrkvicka',\n 'password' => bcrypt('test123'),\n 'email_verified_at' => now(),\n 'id_role' => $users[$i - 1],\n 'created_at' => now(),]);\n }\n\n }", "title": "" }, { "docid": "d0ebc0b2fe28ccfde9a1ac80f9ebf4ad", "score": "0.768708", "text": "public function run()\n {\n $this->call(UserTableSeeder::class);\n // $this->call(MissionTableSeeder::class);\n factory(App\\Models\\Mission::class, 20)->create();\n factory(App\\Models\\Project::class, 20)->create();\n factory(App\\Models\\News::class, 20)->create();\n factory(App\\Models\\Event::class, 20)->create();\n }", "title": "" }, { "docid": "2603f00e40c258c840226bb9122a174d", "score": "0.76867145", "text": "public function run() {\n $this->call(AppConfigSeeder::class);\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n $this->call(TopicTableSeeder::class);\n $this->call(BankTableSeeder::class);\n $this->call(ProvinceTableSeeder::class);\n\n // factory(App\\Product::class, 100)\n // ->create()\n // ->each(function ($product) {\n // $product->fees()->saveMany(factory(App\\ProductFee::class, 3)->create([\n // 'product_id' => $product->id,\n // ]));\n // });\n }", "title": "" }, { "docid": "0e51afc722eeda1b1ce5a397b6fed9ba", "score": "0.76860857", "text": "public function run()\n {\n \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\ItemCondition::factory(10)->create();\n\n $this->call([\n PrimaryCategorySeeder::class,\n SecondaryCategorySeeder::class,\n // ItemConditionSeeder::class,\n ]);\n\n DB::table('users')->insert([\n 'name' => 'root',\n 'email' => 'hogehoge@example.com',\n 'email_verified_at' => now(),\n 'remember_token' => Str::random(10),\n 'password' => Hash::make('11111111'),\n ]);\n }", "title": "" }, { "docid": "869949cd0ca1c0b3e62d490a128b7a0b", "score": "0.76857895", "text": "public function run()\n {\n $this->call(ReputationsTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n $this->call(PublishersTableSeeder::class);\n $this->call(AuthorsTableSeeder::class);\n $this->call(TagsTableSeeder::class);\n $this->call(BooksTableSeeder::class);\n // $this->call(UserImagesTableSeeder::class);\n // $this->call(BookImagesTableSeeder::class);\n // $this->call(AuthorImagesTableSeeder::class);\n // $this->call(ScoresTableSeeder::class);\n\n $this->call(AuthorBookTableSeeder::class);\n $this->call(BookTagTableSeeder::class);\n // $this->call(RoleUserTablerSeeder::class);\n\n // factory(App\\User::class, 35)->create();\n\n // factory(App\\Score::class, 100)->create();\n\n factory(App\\Review::class, 35)->create();\n\n // factory(App\\ReviewResponse::class, 35)->create();\n\n $this->call(SocialMediasTableSeeder::class);\n }", "title": "" }, { "docid": "989db8f23e2aa4fc9b9956c2987e7b19", "score": "0.7683379", "text": "public function run()\n {\n $faker = \\Faker\\Factory::create('en_GB');\n\n \\App\\User::create([\n 'name' => env('ADMIN_NAME', ''),\n 'email' => env('ADMIN_EMAIL', ''),\n 'email_verified_at' => now(),\n 'password' => bcrypt(env('ADMIN_PASSWORD', '')),\n 'role' => 'admin',\n 'created_at' => now(),\n ]);\n\n // Added seed of random UK address data for ease\n for ($i = 0; $i < 10; $i++) \n {\n \\App\\Restaurant::create([\n 'name' => $faker->name,\n 'street' => $faker->streetName,\n 'city' => $faker->city,\n 'postcode' => $faker->postcode\n ]);\n }\n }", "title": "" }, { "docid": "ec07eb0122812cf17ee5e1ceaae51aeb", "score": "0.7680502", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n\n factory(Subscriber::class, 2)->create();\n factory(Shop::class, 10)->create();\n factory(Music::class, 10)->create();\n factory(Video::class, 2)->create();\n\n }", "title": "" }, { "docid": "51a1f86bae6860c0a7c4877c0fefde5c", "score": "0.76785475", "text": "public function run()\n {\n User::create([\n 'name' => 'admin',\n 'email' => 'admin@grtech.com.my',\n 'password' => bcrypt('password')\n ]);\n User::create([\n 'name' => 'user',\n 'email' => 'user@grtech.com.my',\n 'password' => bcrypt('password')\n ]);\n\n Companies::create([\n 'name' => 'Mark Zuckenberg',\n 'email' => 'admin@grtech.com.my',\n 'website' => 'https://www.facebook.com/'\n ]);\n\n Companies::create([\n 'name' => 'Kevin Systrom',\n 'email' => 'admin@grtech.com.my',\n 'website' => 'https://www.instagram.com/'\n ]);\n\n // Companies::factory(5)->create();\n\n Employees::factory(20)->create();\n }", "title": "" }, { "docid": "68c5a5f69b2f6ff14c735017c7d3ac07", "score": "0.76763934", "text": "public function run()\n {\n $this->call([\n ItemSeeder::class,\n PropertySeeder::class,\n ItemPropertiesSeeder::class,\n\n ]);\n /*\n \\App\\Models\\Item::factory(10)->create();\n \\App\\Models\\Property::factory(10)->create();\n \\App\\Models\\ItemProperties::factory(10)->create();\n */\n \\App\\Models\\User::create([\n 'name' => 'simple',\n 'email' => 'simple@simpledelivery.com',\n 'password' =>Hash::make('simple'),\n ]);\n \n\n\n }", "title": "" }, { "docid": "040547254a75eaa4c796f44c64dd6435", "score": "0.76726955", "text": "public function run()\n {\n $user_ids = ['1','2','3','4','5'];\n\n\t\t$faker = app(Faker\\Generator::class);\n\n $posts = factory(Post::class)->times(50)->make()->each(function ($post) use ($faker, $user_ids) {\n $post->user_id = $faker->randomElement($user_ids);\n });\n\n Post::insert($posts->toArray());\n }", "title": "" }, { "docid": "bd269fc9c6211e950f76f57cd2214618", "score": "0.76678604", "text": "public function run()\n {\n\n $data = [\n ['name'=>'Computer Science'],\n ['name'=>'Pharmacy'],\n ['name'=>'Psychology'],\n ['name'=>'Medicine'],\n ['name'=>'Dentistry'],\n\n ];\n $faker = Faker::create();\n foreach($data as $d){\n DB::table('faculties')->insert([\n 'name' => $d['name'],\n 'description' => $faker->sentence,\n ]);\n }\n }", "title": "" }, { "docid": "b8157e614e83d25d500f4d94dffc10e8", "score": "0.76667905", "text": "public function run()\n {\n m_dosens::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n m_dosens::create([\n 'body' => $faker-> paragraph,\n 'id'=> $faker -> rand(),\n 'nama_dosen'=> $faker -> sentence,\n 'matkul'=> $faker -> sentence,\n 'ruang kelas' => $faker -> sentence,\n $table->timestamps(),\n ]);\n }\n }", "title": "" }, { "docid": "f3ec341e6252123b6f3f5aacac2d5793", "score": "0.7664834", "text": "public function run()\n {\n \\App\\Models\\Address::factory(20)->create(); // php artisan db:seed --class=AddressSeeder\n \\App\\Models\\User::factory(15)->create(); // php artisan db:seed --class=UserSeeder\n \\App\\Models\\Admin::factory(4)->create(); // php artisan db:seed --class=AdminSeeder\n \\App\\Models\\Client::factory(16)->create(); // php artisan db:seed --class=ClientSeeder\n \\App\\Models\\Unit::factory(5)->create(); // php artisan db:seed --class=UnitSeeder\n \\App\\Models\\Category::factory(13)->create(); // php artisan db:seed --class=CategorySeeder\n \\App\\Models\\Market::factory(20)->create(); // php artisan db:seed --class=MarketSeeder\n \\App\\Models\\Product::factory(30)->create(); // php artisan db:seed --class=ProductSeeder\n // \\App\\Models\\Rating::factory(10)->create(); // php artisan db:seed --class=RatingSeeder\n // \\App\\Models\\Price::factory(30)->create(50); // php artisan db:seed --class=PriceSeeder\n }", "title": "" }, { "docid": "e6df187fdede5a2fd76c7dced952e9f5", "score": "0.76642543", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n User::create([\n 'username' => 'Admin',\n 'email' => 'admin@email.com',\n 'password' => bcrypt('Admin')\n ]);\n Author::factory(30)->create()->each(function($author){\n $volumes = Volum::factory(10)->make();\n $author->volums()->saveMany($volumes);\n });\n\n }", "title": "" }, { "docid": "c184051466e0849a143a12cd08517914", "score": "0.76604694", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n // DB::table('socios')->insert(['nombre'=>'pepe','dni'=>'12345678','direccion'=>'por ahi 222','nacimiento'=>'2020-10-10','email'=>'pepe@gmail.com','telefono'=>'456798456','url'=>'www.google.com']);\n // DB::table('socios')->insert(['nombre'=>'juan','dni'=>'12332378','direccion'=>'por allk 222','nacimiento'=>'2010-10-10','email'=>'juan@gmail.com','telefono'=>'223242434','url'=>'www.google1.com']);\n \\App\\Models\\Estado::factory(3)->create();\n \\App\\Models\\Socios::factory(10)->create();\n //$this->call(SociosSeeder::class);\n }", "title": "" }, { "docid": "ffe63233202bdd209cfbffd2e2f07ebd", "score": "0.7660093", "text": "public function run()\n {\n Author::factory(50)->create();\n Books::factory(100)->create();\n $this->call(UserTableSeeder::class);\n $this->call(ShelveTableSeeder::class);\n $this->call(ShelveBookSeeder::class);\n }", "title": "" }, { "docid": "bb85cd62424281e6a7862cad3a9b9b5a", "score": "0.7659672", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'luoyinghao',\n 'email' => 'luoyinghao@gmail.com',\n 'group_id' => 1,\n 'status' => 1,\n 'password' => bcrypt('123456'),\n ]);\n\n DB::table('pet')->insert([\n 'name' => 'default',\n 'nick' => '弹幕娘',\n 'user_id' => 1,\n ]);\n\n DB::table('user_pet')->insert([\n 'user_id' => 1,\n 'pet_id' => 1,\n 'exp' => 1,\n ]);\n\n DB::table('event')->insert([\n 'sender' => '系统',\n 'sender_id' => 0,\n 'action' => 7,\n 'target' => 0,\n 'target_type' => 'announce',\n 'content' => '这是通告,通告听到了吗?听到了请回答,听到了请回答',\n 'type' => 'remind',\n 'receiver' => 0,\n 'is_read' => 1,\n 'time' => date('Y-m-d H:i:s')\n ]);\n\n }", "title": "" }, { "docid": "d200dedc6a0dba3a8fcc4d5cb3b5af61", "score": "0.7659325", "text": "public function run()\n {\n /* $this->call(UsersTableSeeder::class);\n $this->call(CollectoinsTableSeeder::class);\n $this->call(Extra_itemsTableSeeder::class);\n $this->call(AdditionalsTableSeeder::class);*/\n\n\n DB::table('roles')-> insert([\n [\n 'name' => 'Admin',\n 'alias' => 'admin',\n 'created_at' => date(\"Y-m-d H:i:s\")\n ],\n [\n 'name' => 'User',\n 'alias' => 'user',\n 'created_at' => date(\"Y-m-d H:i:s\")\n ]\n ]);\n\n\n }", "title": "" }, { "docid": "a5ce77c3e99f12ab19018d9164fdffc8", "score": "0.76591766", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $directors=factory(App\\Director::class)->times(7)->create();\n $movies=Movie::all();\n\n foreach ($movies as $oneMovies) {\n $oneMovies->director()->associate($directors->random(1)->first()->id);\n $oneMovies->save();\n }\n\n }", "title": "" }, { "docid": "d26cbbf9444f51683da0101c8bae9147", "score": "0.7656243", "text": "public function run()\n {\n //create a known demo user\n User::factory()->create([\n 'email' => 'example@mail.com'\n ]);\n\n $this->call([\n UserTableSeeder::class,\n ]);\n\n Quiz::factory()->count(20)->create()->each(function($c) {\n $c->mcqs()->saveMany(\n MCQ::factory()->count(random_int(10,50))->create()\n );\n });\n }", "title": "" }, { "docid": "5340b733c0c35d4a0890dae51ca9f01e", "score": "0.7655571", "text": "public function run()\n {\n $this->truncateUserTables();\n\n \\App\\Models\\User::firstOrCreate([\n 'name' => 'Admin User',\n 'email' => 'admin@gmail.com',\n 'password' => Hash::make('admin1123'),\n ]);\n\n $faker = Faker::create();\n\n foreach (range(1, 25) as $index) {\n \\App\\Models\\Student::create([\n 'fullname' => $faker->firstname,\n 'roll' => $index,\n 'propic' => null,\n ]);\n }\n }", "title": "" }, { "docid": "a48cd5bbd88c4d067c54457c50be726c", "score": "0.7653848", "text": "public function run()\n {\n $this->truncateTables([\n 'users',\n 'images',\n 'likes',\n 'comments'\n ]);\n \n User::factory(10)->create();\n Image::factory(10)->create();\n Like::factory(10)->create();\n Comment::factory(10)->create();\n\n $this->call([\n UserSeeder::class,\n ]);\n }", "title": "" }, { "docid": "786ba8399b50f481be52bd7398718a58", "score": "0.76531196", "text": "public function run()\n {\n //$this->call(CitySeeder::class);\n \n City::factory(12)->create();\n $this->call(VehicleSeeder::class);\n \n //$this->call(TelephoneSeeder::class);\n \n Telephone::factory(50)->create();\n Rental::factory(100)->create();\n\n }", "title": "" }, { "docid": "e6f06365d22e1b28b3bd14b58444dc04", "score": "0.76521194", "text": "public function run()\n {\n\n $faker = Faker::create();\n\n foreach(range(1,10) as $index){\n DB::table('iis_interpret')->insert([\n 'name' => $faker->sentence(3, true),\n 'members' => $faker->sentence(3, true),\n 'genre' => $faker->randomElement($array = array ('pop','rock','rap', 'metal', 'punk')),\n 'publisher' => $faker->word(),\n 'image' => $faker->imageUrl($width = 1280, $height = 720),\n 'description' => $faker->paragraph(2),\n 'formed_at' => $faker->date($format = 'Y-m-d H:i:s', $max = 'now'),\n 'created_at' => $faker->date($format = 'Y-m-d H:i:s', $max = 'now'),\n 'updated_at' => $faker->date($format = 'Y-m-d H:i:s', $max = 'now')\n ]);\n }\n\n }", "title": "" }, { "docid": "c8e097995b44d3b77d7922d45d3e7d18", "score": "0.7651747", "text": "public function run()\n {\n Model::unguard();\n\n // https://gist.github.com/isimmons/8202227\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n User::truncate();\n Category::truncate();\n Post::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $categories = factory(App\\Category::class, 30)->create();\n\n factory(App\\User::class, 10)->create()->each(function($user) use ($categories) {\n $user->posts()->saveMany(factory(App\\Post::class, 50)->create()->each(function($post) use ($categories) {\n $post->categories()->sync($categories->random(3)->pluck('id')->all());\n }));\n });\n\n Model::reguard();\n }", "title": "" }, { "docid": "b95080596763428b065e5fbdb7fdf0c5", "score": "0.7650356", "text": "public function run()\n {\n $faker \t= Factory::create('id_ID');\n \t$data \t= [];\n \tforeach (range(1,50) as $i) {\n \t\t$data[] = [\n \t\t\t'title' \t\t=> 'Beli Deposit',\n \t\t\t'content'\t\t=> 'Membeli deposit sebesar 50000',\n \t\t\t'user_id'\t\t=> '38',\n \t\t\t'created_at'\t=> $faker->datetime,\n \t\t\t'updated_at'\t=> now(),\n \t\t];\n \t}\n \tDB::statement('SET FOREIGN_KEY_CHECKS=0;');\n \tDB::table('activities')->truncate();\n \tDB::table('activities')->insert($data);\n }", "title": "" }, { "docid": "4caecf4e2dbd3c5accb7ad81244e8ae2", "score": "0.76480454", "text": "public function run()\n {\n // seed of perfis\n DB::table('perfis')->insert([\n [\n 'id' => 1,\n 'name' => 'admin',\n 'display_name' => 'Administrador',\n 'description' => 'Perfil de administrador',\n ],\n [\n 'id' => 2,\n 'name' => 'usuario',\n 'display_name' => 'Usuario',\n 'description' => 'Perfil do Usuario que aloca e compra imoveis.',\n ],\n ]);\n\n /**\n * Adicionar a permissao para os usurios da seed\n */\n DB::table('usuarios_perfis')->insert([\n [\n 'usuario_id' => 1,\n 'perfil_id' => 1\n ],\n [\n 'usuario_id' => 2,\n 'perfil_id' => 1\n ],\n [\n 'usuario_id' => 3,\n 'perfil_id' => 1\n ],\n [\n 'usuario_id' => 4,\n 'perfil_id' => 1\n ],\n [\n 'usuario_id' => 5,\n 'perfil_id' => 1\n ],\n [\n 'usuario_id' => 6,\n 'perfil_id' => 2\n ],\n ]);\n }", "title": "" }, { "docid": "4f4496d20543369fd27d03bb58fe3133", "score": "0.76468253", "text": "public function run()\n {\n $faker = app(Faker\\Generator::class);\n $user = User::find(1);\n\n $topics = factory(Topic::class)->times(rand(100, 200))->make()->each(function ($topic) use ($faker, $user) {\n $topic->user_id = 1;\n $topic->category_id = 1;\n $topic->is_excellent = rand(0, 1) ? 'yes' : 'no';\n });\n Topic::insert($topics->toArray());\n }", "title": "" }, { "docid": "4ac022527ef235783677bc6ef115503d", "score": "0.76461226", "text": "public function run()\n {\n $this->call(BlogArticlesCategoriesTableSeeder::class);\n $this->call(ProductsCategoriesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(BlogEventsCategoriesTableSeeder::class);\n $this->call(ProductsTableSeeder::class);\n factory(\\App\\Models\\User::class, 50)->create();\n factory(\\App\\Models\\BlogEvent::class, 50)->create();\n factory(\\App\\Models\\BlogArticle::class, 50)->create();\n\n }", "title": "" }, { "docid": "8945612ec7a49f0f1852938590417f44", "score": "0.7646043", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('items')->insert([\n ['name' => '1 More E1001 Triple Driver IEM'],\n ['name' => '1 More E1001 Triple Driver IEM (Demo)'],\n ['name' => '1 More Piston Fit'],\n ['name' => 'ALO Litz MMCX 2.5'],\n ['name' => 'ATH-AR1iS'],\n ['name' => 'ATH-DSR7BT Black'],\n ['name' => 'ATH-LS50iS Black'],\n ['name' => 'ATH-LS70iS Black'],\n ]);\n }", "title": "" }, { "docid": "68bf7d23d85baec30f2ba67a6fa4e4b6", "score": "0.76455927", "text": "public function run()\n {\n $this->studentSkillsSeeder();\n $this->studentTagsSeeder();\n }", "title": "" }, { "docid": "8494dc0b48ead42c5e9f8183bb5471d3", "score": "0.76453424", "text": "public function run()\n {\n \\App\\User::truncate();\n $faker = Faker\\Factory::create();\n for($i=0;$i<50;$i++){\n DB::table('users')->insert([\n 'name' => $faker->name,\n 'lastName' => $faker->lastName,\n 'email' => $faker->email,\n 'sex' => 'f',\n 'phone' => $faker->phoneNumber,\n 'pesel' => $faker->randomDigit,\n 'role' => 'user',\n 'password' => bcrypt('secret'),\n ]);\n }\n DB::table('users')->insert([\n 'name' => 'Sample',\n 'lastName' => 'Example',\n 'email' => \"admin@gmail.com\",\n 'sex' => 'f',\n 'phone' => $faker->phoneNumber,\n 'pesel' => $faker->randomDigit,\n 'role' => 'admin',\n 'password' => bcrypt('secret'),\n ]);\n }", "title": "" } ]
700694cdf7bf232354511255e5d5df4b
Check is valid IP address
[ { "docid": "ac82ee5386c26f54a4060182c2642f0a", "score": "0.7640115", "text": "public static function isValidIpAddress($ip_address){\n return (filter_var($ip_address, FILTER_VALIDATE_IP)) ? true : false;\n }", "title": "" } ]
[ { "docid": "91d8b326d0f6b40043a41530e2bdaf6f", "score": "0.7999172", "text": "function validate_ip($ip)\n {\n if (strtolower($ip) === 'unknown')\n return false;\n\n // generate ipv4 network address\n $ip = ip2long($ip);\n\n // if the ip is set and not equivalent to 255.255.255.255\n if ($ip !== false && $ip !== -1) {\n // make sure to get unsigned long representation of ip\n // due to discrepancies between 32 and 64 bit OSes and\n // signed numbers (ints default to signed in PHP)\n $ip = sprintf('%u', $ip);\n // do private network range checking\n if ($ip >= 0 && $ip <= 50331647) return false;\n if ($ip >= 167772160 && $ip <= 184549375) return false;\n if ($ip >= 2130706432 && $ip <= 2147483647) return false;\n if ($ip >= 2851995648 && $ip <= 2852061183) return false;\n if ($ip >= 2886729728 && $ip <= 2887778303) return false;\n if ($ip >= 3221225984 && $ip <= 3221226239) return false;\n if ($ip >= 3232235520 && $ip <= 3232301055) return false;\n if ($ip >= 4294967040) return false;\n }\n return true;\n }", "title": "" }, { "docid": "fb6224bde24f68397ab9eeb43c9c95ef", "score": "0.7993726", "text": "function validate_ip($ip) {\n if (strtolower($ip) === 'unknown')\n return false;\n\n // generate ipv4 network address\n $ip = ip2long($ip);\n\n // if the ip is set and not equivalent to 255.255.255.255\n if ($ip !== false && $ip !== -1) {\n // make sure to get unsigned long representation of ip\n // due to discrepancies between 32 and 64 bit OSes and\n // signed numbers (ints default to signed in PHP)\n $ip = sprintf('%u', $ip);\n // do private network range checking\n if ($ip >= 0 && $ip <= 50331647)\n return false;\n if ($ip >= 167772160 && $ip <= 184549375)\n return false;\n if ($ip >= 2130706432 && $ip <= 2147483647)\n return false;\n if ($ip >= 2851995648 && $ip <= 2852061183)\n return false;\n if ($ip >= 2886729728 && $ip <= 2887778303)\n return false;\n if ($ip >= 3221225984 && $ip <= 3221226239)\n return false;\n if ($ip >= 3232235520 && $ip <= 3232301055)\n return false;\n if ($ip >= 4294967040)\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "32fff8fb5c2ec1f71d3339e916a34a44", "score": "0.79397184", "text": "public function validate_ip($ip) {\n\t\tif (strtolower($ip) === 'unknown')\n\t\t\treturn false;\n\n\t\t// generate ipv4 network address\n\t\t$ip = ip2long($ip);\n\n\t\t// if the ip is set and not equivalent to 255.255.255.255\n\t\tif ($ip !== false && $ip !== -1) {\n\t\t\t// make sure to get unsigned long representation of ip\n\t\t\t// due to discrepancies between 32 and 64 bit OSes and\n\t\t\t// signed numbers (ints default to signed in PHP)\n\t\t\t$ip = sprintf('%u', $ip);\n\t\t\t// do private network range checking\n\t\t\tif ($ip >= 0 && $ip <= 50331647) return false;\n\t\t\tif ($ip >= 167772160 && $ip <= 184549375) return false;\n\t\t\tif ($ip >= 2130706432 && $ip <= 2147483647) return false;\n\t\t\tif ($ip >= 2851995648 && $ip <= 2852061183) return false;\n\t\t\tif ($ip >= 2886729728 && $ip <= 2887778303) return false;\n\t\t\tif ($ip >= 3221225984 && $ip <= 3221226239) return false;\n\t\t\tif ($ip >= 3232235520 && $ip <= 3232301055) return false;\n\t\t\tif ($ip >= 4294967040) return false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "fc07e7ae788fac12df8509469e96a820", "score": "0.7880375", "text": "public function validate_ip($ip) {\n if (strtolower($ip) === 'unknown')\n return false;\n\n // generate ipv4 network address\n $ip = ip2long($ip);\n\n // if the ip is set and not equivalent to 255.255.255.255\n if ($ip !== false && $ip !== -1) {\n // make sure to get unsigned long representation of ip\n // due to discrepancies between 32 and 64 bit OSes and\n // signed numbers (ints default to signed in PHP)\n $ip = sprintf('%u', $ip);\n // do private network range checking\n if ($ip >= 0 && $ip <= 50331647) return false;\n if ($ip >= 167772160 && $ip <= 184549375) return false;\n if ($ip >= 2130706432 && $ip <= 2147483647) return false;\n if ($ip >= 2851995648 && $ip <= 2852061183) return false;\n if ($ip >= 2886729728 && $ip <= 2887778303) return false;\n if ($ip >= 3221225984 && $ip <= 3221226239) return false;\n if ($ip >= 3232235520 && $ip <= 3232301055) return false;\n if ($ip >= 4294967040) return false;\n }\n return true;\n }", "title": "" }, { "docid": "e8bf09138edb9b39e1abf74c23d5fe22", "score": "0.78749233", "text": "function valid_ip($ip)\n\t{\n\t\t$ip_segments = explode('.', $ip);\n\n\t\t// Always 4 segments needed\n\t\tif (count($ip_segments) != 4)\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\t// IP can not start with 0\n\t\tif ($ip_segments[0][0] == '0')\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\t// Check each segment\n\t\tforeach ($ip_segments as $segment)\n\t\t{\n\t\t\t// IP segments must be digits and can not be\n\t\t\t// longer than 3 digits or greater then 255\n\t\t\tif ($segment == '' OR preg_match(\"/[^0-9]/\", $segment) OR $segment > 255 OR strlen($segment) > 3)\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "995f3324c6694999964af823b04c8592", "score": "0.786388", "text": "function validIP($ip){\r\n if(preg_match(\"^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}^\", $ip))\r\n return true;\r\n else\r\n return false;\r\n}", "title": "" }, { "docid": "1c35791e3fda3214a230a52697137c21", "score": "0.78566587", "text": "protected function checkIpAddress()\n {\n $allowedIpAddresses = \\XLite\\Core\\Config::getInstance()->CDev->XPaymentsConnector->xpc_allowed_ip_addresses;\n return !$allowedIpAddresses \n || false !== strpos($allowedIpAddresses, $_SERVER['REMOTE_ADDR']);\n }", "title": "" }, { "docid": "b1c4b46675af1381e5d7b5001ed766cb", "score": "0.7851537", "text": "public static function check_ip_address($ip_addr) {\n\t // First of all the format of the ip address is matched\n\t if (preg_match(\"/^(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})$/\", $ip_addr)) {\n\t // Now all the intger values are separated\n\t $parts = explode(\".\", $ip_addr);\n\t // Now we need to check each part can range from 0-255\n\t foreach ($parts as $ip_parts)\n\t {\n\t if (intval($ip_parts) > 255 || intval($ip_parts) < 0)\n\t return false; // If number is not within range of 0-255\n\t }\n\t return true;\n\t }\n\t else\n\t return false; // If format of ip address doesn't matches\n\t}", "title": "" }, { "docid": "9684eccca425e6835526aacdf5a019a3", "score": "0.77691346", "text": "function f_validateIP($ip)\r\n{\r\n if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE) === false) {\r\n return false;\r\n }\r\n return true;\r\n}", "title": "" }, { "docid": "b76ea2f143e7bcb067f2280df59f87cc", "score": "0.7762397", "text": "protected function validateIp($value){\n\t\treturn filter_var($value, FILTER_VALIDATE_IP) !== false;\n\t}", "title": "" }, { "docid": "a44291e3fe6e5814cbc1ea464680dc74", "score": "0.7745773", "text": "public static function validate_ip($value){\n\t\treturn preg_match( \"/^(([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/\", $value);\n\t}", "title": "" }, { "docid": "43795437dc8025e1f6d8fba3d4f5d028", "score": "0.7733722", "text": "public static function isValidAddress($ip_address)\n {\n return filter_var($ip_address, FILTER_VALIDATE_IP) !== false;\n }", "title": "" }, { "docid": "6736cb86e1e11157930bfb2d771c0072", "score": "0.7732725", "text": "function isValidIP($ip_addr){\n //first of all the format of the ip address is matched\n if(preg_match(\"/^(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})$/\",$ip_addr)) {\n //now all the intger values are separated\n $parts=explode(\".\",$ip_addr);\n //now we need to check each part can range from 0-255\n foreach($parts as $ip_parts) {\n if(intval($ip_parts)>255 || intval($ip_parts)<0)\n return false; //if number is not within range of 0-255\n }\n return true;\n }\n else\n return false; //if format of ip address doesn't matches\n}", "title": "" }, { "docid": "29f644868cbfb2622b6ca18a07d1d5a4", "score": "0.7721935", "text": "function validate_ip($ip)\n{\n if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE) === false) {\n return false;\n }\n return true;\n}", "title": "" }, { "docid": "b391d268c4ad419e9c7c83fd5516d707", "score": "0.771583", "text": "public function validate_ip($ip) {\n if (filter_var($ip, FILTER_VALIDATE_IP, \n FILTER_FLAG_IPV4 | \n FILTER_FLAG_IPV6 |\n FILTER_FLAG_NO_PRIV_RANGE | \n FILTER_FLAG_NO_RES_RANGE) === false)\n return false;\n self::$ip = $ip;\n return true;\n }", "title": "" }, { "docid": "a160b0dc51051faaec0449b3be3794b7", "score": "0.7713752", "text": "private function is_from_valid_ip() {\n\t\t$my_ip = getenv( 'REMOTE_ADDR' );\n\t\t\n\t\t// Check if we are in testing mode, and get list of valid IPs\n\t\t//if ( Mage::getStoreConfig( 'payment/fssnet/is_testing' ) )\n\t\t\t$valid_ips = array( '221.134.101.174', '221.134.101.169','198.64.129.10','198.64.133.213' );\n\t\t//else\n\t\t\t//$valid_ips = array( '221.134.101.187', '221.134.101.175', '221.134.101.166','198.64.129.10','198.64.133.213' );\n\t\t\n\t\t// Check if our IP is valid\n\t\tif ( in_array( $my_ip, $valid_ips ) )\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "90e10b9d12417dff2ea4adfeb7acbdde", "score": "0.7695576", "text": "function validateIp($ip) {\n\treturn inet_pton($ip);\n }", "title": "" }, { "docid": "11aa6886dfeb7c2112594d87f248d36e", "score": "0.76924795", "text": "protected function validateIp($value) {\n if (filter_var($value, FILTER_VALIDATE_IP))\n return true;\n $this->setError(t(\"Invalid IP-address\"));\n return false;\n }", "title": "" }, { "docid": "c0fcbf0514fda03c8e844c41c8dbf3cd", "score": "0.76532024", "text": "public static function is_ip_address($maybe_ip)\n {\n }", "title": "" }, { "docid": "22023a3c2e43fb84c0626b500e2f09fa", "score": "0.76072997", "text": "protected function isValidIp($ip)\n{\n $ips = array('IP_ADDRESS');\nreturn in_array($ip, $ips);\n}", "title": "" }, { "docid": "a94f8aa0542cc7e4b24e8d8a75160943", "score": "0.7572234", "text": "function rest_is_ip_address($ip)\n {\n }", "title": "" }, { "docid": "b97d556351ccb92ddd9e6be74b94b612", "score": "0.75569826", "text": "public static function validateIpAddress($ipAddress = '') {\n if (strtolower($ipAddress) === 'unknown') {\n return false;\n }\n // Generate ipv4 network address\n $ipAddress = ip2long($ipAddress);\n // If the ip is set and not equivalent to 255.255.255.255\n if ($ipAddress !== false && $ipAddress !== -1) {\n /**\n * Make sure to get unsigned long representation of ip\n * due to discrepancies between 32 and 64 bit OSes and\n * signed numbers (ints default to signed in PHP)\n */\n $ipAddress = sprintf('%u', $ipAddress);\n // Do private network range checking\n if ($ipAddress >= 0 && $ipAddress <= 50331647) return false;\n if ($ipAddress >= 167772160 && $ipAddress <= 184549375) return false;\n if ($ipAddress >= 2130706432 && $ipAddress <= 2147483647) return false;\n if ($ipAddress >= 2851995648 && $ipAddress <= 2852061183) return false;\n if ($ipAddress >= 2886729728 && $ipAddress <= 2887778303) return false;\n if ($ipAddress >= 3221225984 && $ipAddress <= 3221226239) return false;\n if ($ipAddress >= 3232235520 && $ipAddress <= 3232301055) return false;\n if ($ipAddress >= 4294967040) return false;\n }\n return true;\n }", "title": "" }, { "docid": "03d0b91c342f569f5265ad4e1fc33620", "score": "0.75548923", "text": "function ip_good($ip)\n{\n\t$bad_ip = true;\n\t\n\t# check the ip to see if it is a private ip\n\t# 192.168.x.x\n\t# 172.16-31.x.x\n\t# 10.x.x.x\n\t# 127.x.x.x\n\t$private_ip = '/^(172\\.(1[6-9]|2[0-9]|3[0-1])\\.\\d{1,3}\\.\\d{1,3})|(192\\.168\\.\\d{1,3}.\\d{1,3})|(10\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})|(127\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})$/';\n\tif(preg_match($private_ip, $ip))\n\t{\n\t\t$bad_ip = true;\n\t} else {\n\t\t$bad_ip = false;\n\t}\n\t\n\t# Checks to see if the ip address is correctly formated\n\t# ie. It is between 0 and 255\n\t# exp. 206.13.28.12 would pass but 268.221.2.58 would fail.\n\t$patter = '/^\\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\b/';\n\tif(preg_match($patter, $ip) && $bad_ip === false)\n\t{\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "610c94eac8b20d55184ebd2167f18aab", "score": "0.75442654", "text": "protected function validateIp(): bool\n {\n $meta = $this->getGitHubApiMeta();\n\n $ip = @$_SERVER['REMOTE_ADDR'];\n $ranges = (array) ($meta['hooks'] ?? []);\n\n // Check if IP comes from a GitHub hook.\n foreach ($ranges as $range) {\n if (Utils::cidrMatch($ip, $range)) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "92556a868903a1c56dbb64e9688dcf82", "score": "0.7496213", "text": "function is_ip($ip){\n return (filter_var($ip, FILTER_VALIDATE_IP) !== false);\n}", "title": "" }, { "docid": "03c2d6014b91511dacbd579609cd5e0b", "score": "0.74906355", "text": "function validIP($value)\n {\n return filter_var($value, FILTER_VALIDATE_IP);\n }", "title": "" }, { "docid": "a6eb909d36b943929f0fdd58efac510a", "score": "0.747815", "text": "public static function validIpDataProvider() {}", "title": "" }, { "docid": "3fb1656b25b46281c0c18a1a60a5d9a3", "score": "0.74668396", "text": "public function valid() {\n return filter_var($this->address, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) !== false;\n }", "title": "" }, { "docid": "e26628086dd049f83686030b998765e5", "score": "0.74635834", "text": "function check_ip($ip)\r\n\t{\r\n\t\treturn (!strcmp(long2ip(sprintf('%u',ip2long($ip))),$ip) ? true : false);\r\n\t}", "title": "" }, { "docid": "d486a84efd9edfae8917c07f1764fe59", "score": "0.74064344", "text": "function ipValid($ip) {\n $matches = [];\n $pattern =\"/([1-9]\\.|[1-9]\\d\\.|1\\d\\d\\.|25[0-5]\\.|2[0-4][0-9]\\.)(\\.\\d|[1-9]\\d|1\\d\\d|25[0-5]|2[0-4][0-9]){3}/\";\n preg_match($pattern, $ip, $matches);\n return $matches[0];\n}", "title": "" }, { "docid": "c4331a1775dc166fed8724107a726693", "score": "0.73831654", "text": "private function doIpCheck($ip)\r\n {\r\n $allowedList = array();\r\n $allowedList['85.158.206.17'] = 1;\r\n $allowedList['85.158.206.18'] = 1;\r\n $allowedList['85.158.206.19'] = 1;\r\n $allowedList['85.158.206.20'] = 1;\r\n $allowedList['85.158.206.21'] = 1;\r\n if (!isset($allowedList[$ip]))\r\n {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "5321606109f049880868855acf327306", "score": "0.7356314", "text": "private function _isValidIPAddress($ipAddress)\n {\n return filter_var($ipAddress, FILTER_VALIDATE_IP);\n }", "title": "" }, { "docid": "633c2cacd34a77cc78195e72d2376719", "score": "0.7340997", "text": "public function checkIPs () {\n\n\t\t$validation = true;\n\n\t\tforeach ($this->allow as $key => $ip) {\n\t\t\t\n\t\t\tif ($this->matchIP($ip)) {\n \n return true;\n \n }\n\n\t\t}\n\n\t\treturn false;\n\n\t}", "title": "" }, { "docid": "a19ec38287491d23191b6416379b7553", "score": "0.7285564", "text": "public function isValidIP(string $ip, string $which = null): bool;", "title": "" }, { "docid": "543e210b91e4fdf471c3d41602aa699d", "score": "0.71976733", "text": "public function isUserIPAddressAllowedAccess()\n\t{\n\t\ttry\n {\n $IpBin = new IpBin();\n return $IpBin->isUserIPAddressAllowedAccess($this->getSiteUser()->getId());\n }\n catch(\\Whoops\\Example\\Exception $e)\n {\n Log::error(\"Could not check if ip address is allowed access for user [\" . $this->getSiteUser()->getId() . \"]. \" . $e);\n return FALSE;\n }\n\t}", "title": "" }, { "docid": "4c65f09cfdaea3591103f0fa257fb348", "score": "0.71951896", "text": "public function _validate_ip_address($value, $field) {\n return true;\n $ip = $this->input->ip_address();\n if ($this->input->valid_ip($ip)) {\n return $this->user->is_unique_ip($ip);\n }\n return false;\n }", "title": "" }, { "docid": "2c7e540b8a2db6ab25c402891196d083", "score": "0.7192353", "text": "public static function isValid( $ip ) {\n return ( preg_match( '/^' . RE_IP_ADD . '$/', $ip )\n || preg_match( '/^' . RE_IPV6_ADD . '$/', $ip ) );\n }", "title": "" }, { "docid": "83304d2591cebf28967a8ddb1df59356", "score": "0.71893036", "text": "public function validip($ip) {\n $ips = explode(\",\", $this->get_prop(\"ip\"));\n foreach ($ips as $ip_l) {\n $editedip = str_replace('.', '\\\\.', trim($ip_l));\n $editedip = str_replace('*', '[0-9]{1,3}', $editedip);\n if (preg_match('/^' . $editedip . '$/', $ip)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "085dea32aea7649309d2b065c6671aa3", "score": "0.7179689", "text": "function isValidIP($var) {\n //Returns error message for an invalid IP Address\n \n //Check for unsafe characters\n $msg = isSantizeString($var);\n if ($msg != \"\") {\n return $msg;\n }\n\n if (filter_var($var, FILTER_VALIDATE_IP)) {\n return \"\";\n } else {\n return \"Invalid IP Address\";\n }\n}", "title": "" }, { "docid": "6d1064b2ecc57e2c5186dcc95413487b", "score": "0.717598", "text": "public static function isIPAddress( $ip ) {\n return (bool)preg_match( '/^' . IP_ADDRESS_STRING . '$/', $ip );\n }", "title": "" }, { "docid": "05d6e92ef9912edf85e84c06e9d79629", "score": "0.71705633", "text": "function esip($ip_addr)\n\t{\n\t\t if(preg_match(\"/^(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})$/\",$ip_addr)) \n\t\t {\n\t\t\t //now all the intger values are separated \n\t\t\t $parts=explode(\".\",$ip_addr); \n\t\t\t //now we need to check each part can range from 0-255 \n\t\t\t foreach($parts as $ip_parts) \n\t\t\t {\n\t\t\t\t if(intval($ip_parts)>255 || intval($ip_parts)<0) \n\t\t\t\t return FALSE; //if number is not within range of 0-255\n\t\t\t }\n\t\t\t return TRUE; \n\t\t }\n\t\t else return FALSE; //if format of ip address doesn't matches \n\t}", "title": "" }, { "docid": "9a8e9519b55d53584eb8705a3fa49d11", "score": "0.71545744", "text": "public function checkBackendIpOrDie() {}", "title": "" }, { "docid": "d75aacca1ec157e0bb0696f7179d41f8", "score": "0.7154469", "text": "protected function checkValidIP($ip)\n {\n return long2ip(ip2long($ip)) === $ip;\n }", "title": "" }, { "docid": "85f99126f2b409a8bd3083b6a00ab404", "score": "0.710622", "text": "function _checkIP($ip)\n{\n _log(\"checkIP: Starting.\",\"info\");\n global $caasnode;\n _log(\"checkIP: IP address is $ip.\",\"info\");\n $cIP = ip2long($ip);\n $fIP = long2ip($cIP);\n if($fIP=='0.0.0.0')\n\t{\n\t\t_log(\"-----Failed to process node ($caasnode): IPaddress is not valid.\",\"SUMMARY\");\n\t\t_logProvsionEndToDb(0,\"Failed to process node: IPaddress is not valid.\");\n\t\t_exit1(\"Exiting at checkIP: Invalid ip address, aborting \\n\\n\\n\");\n\t}\n _log(\"checkIP: $ip is a valid ip address.\",\"info\");\n _log(\"checkIP: Exiting.\",\"info\");\n}", "title": "" }, { "docid": "788a56b62d3bd66e369899b352499446", "score": "0.70871013", "text": "function checkIPorRange ($ip_address) {\r\n\t if (ereg(\"-\",$ip_address)) {\r\n\t // Range\r\n\t $ar = explode(\"-\",$ip_address);\r\n\t $your_long_ip = ip2long($_SERVER[\"REMOTE_ADDR\"]);\r\n\t if ( ($your_long_ip >= ip2long($ar[0])) && ($your_long_ip <= ip2long($ar[1])) ) {\r\n\t return TRUE;\r\n\t }\r\n\t } else {\r\n\t // Single IP\r\n\t if ($_SERVER[\"REMOTE_ADDR\"] == $ip_address) {\r\n\t return TRUE;\r\n\t }\r\n\t }\r\n\t return FALSE;\r\n\t}", "title": "" }, { "docid": "703f5e8580903bf2ec9ec7cf68af9689", "score": "0.7079136", "text": "public static function validarIP($ip, $version){\n filter_var($ip, FILTER_VALIDATE_IP, $version) ? $resultado = TRUE : $resultado = FALSE;\n return $resultado;\n }", "title": "" }, { "docid": "d5fe9daf81829440b0b3104ffbd5d609", "score": "0.7074314", "text": "function allow_ip_address()\r\n\t{\r\n\t\t$bad = apply_filters('three_strikes_count', 0, $_SERVER['REMOTE_ADDR']);\r\n\t\treturn ($bad < THREE_STRIKES_LIMIT);\r\n\t}", "title": "" }, { "docid": "9c81d6eb2feaf02e6ee312cf7ef36e97", "score": "0.7040045", "text": "protected function validateIp($attribute, $value)\n {\n return filter_var($value, FILTER_VALIDATE_IP) !== false;\n }", "title": "" }, { "docid": "85437a39b9f8e12f935d2c3f5412e62b", "score": "0.702808", "text": "function verify_address($address) // Colorize: green\n { // Colorize: green\n return isset($address) // Colorize: green\n && // Colorize: green\n is_string($address) // Colorize: green\n && // Colorize: green\n ( // Colorize: green\n filter_var($address, FILTER_VALIDATE_IP) // Colorize: green\n || // Colorize: green\n filter_var($address, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME) // Colorize: green\n ); // Colorize: green\n }", "title": "" }, { "docid": "73af8dfaeb9afb4b5118486339656d52", "score": "0.70125365", "text": "private function validateIp($IpAddress) {\n if(filter_var($IpAddress, FILTER_VALIDATE_IP)) {\n return TRUE;\n }\n return FALSE;\n }", "title": "" }, { "docid": "311194d02c65326b46078711c5c4348d", "score": "0.6935745", "text": "function validate_ip($ip) {\n\t\t\t// Define all IPv6 address types\n\t\t\t$ipv6regexes = array(\n\t\t\t\t\"preferred\" => array(\n\t\t\t\t\t\"/^(?:[a-f0-9]{1,4}:){7}[a-f0-9]{1,4}$/i\"\n\t\t\t\t),\n\t\t\t\t\"compressed\" => array(\n\t\t\t\t\t\"/^[a-f0-9]{0,4}::$/i\",\n\t\t\t\t\t\"/^:(?::[a-f0-9]{1,4}){1,6}$/i\",\n\t\t\t\t\t\"/^(?:[a-f0-9]{1,4}:){1,6}:$/i\",\n\t\t\t\t\t\"/^(?:[a-f0-9]{1,4}:)(?::[a-f0-9]{1,4}){1,6}$/i\",\n\t\t\t\t\t\"/^(?:[a-f0-9]{1,4}:){2}(?::[a-f0-9]{1,4}){1,5}$/i\",\n\t\t\t\t\t\"/^(?:[a-f0-9]{1,4}:){3}(?::[a-f0-9]{1,4}){1,4}$/i\",\n\t\t\t\t\t\"/^(?:[a-f0-9]{1,4}:){4}(?::[a-f0-9]{1,4}){1,3}$/i\",\n\t\t\t\t\t\"/^(?:[a-f0-9]{1,4}:){5}(?::[a-f0-9]{1,4}){1,2}$/i\",\n\t\t\t\t\t\"/^(?:[a-f0-9]{1,4}:){6}(?::[a-f0-9]{1,4})$/i\"\n\t\t\t\t),\n\t\t\t\t\"ipv4\" => array(\n\t\t\t\t\t\"/^::(?:\\d{1,3}\\.){3}\\d{1,3}$/\",\n\t\t\t\t\t\"/^(?:0:){6}(?:\\d{1,3}\\.){3}\\d{1,3}$/i\"\n\t\t\t\t),\n\t\t\t\t\"ipv4_mapped\" => array(\n\t\t\t\t\t\"/^(?:0:){5}ffff:(?:\\d{1,3}\\.){3}\\d{1,3}$/i\",\n\t\t\t\t\t\"/^::ffff:(?:\\d{1,3}\\.){3}\\d{1,3}$/\"\n\t\t\t\t)\n\t\t\t);\n\t\t\t// Search the address types and return the name if it matches\n\t\t\tforeach ($ipv6regexes as $type => $regexes) {\n\t\t\t\tforeach ($regexes as $regex)\n\t\t\t\t\tif (preg_match($regex, $ip)) {\n\t\t\t\t\t\tif (in_array($type, array(\"ipv4\", \"ipv4_mapped\"))) {\n\t\t\t\t\t\t\t$ipparts = explode(\":\", $ip);\n\t\t\t\t\t\t\t$ipv4part = $ipparts[count($ipparts)-1];\n\t\t\t\t\t\t\tif (IPv4::validate_ip($ipv4part))\n\t\t\t\t\t\t\t\treturn $type;\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t\treturn $type;\n\t\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Return false if we didn't match an address type\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "695aec4b736dcd5ee4ca8b1537917941", "score": "0.69327515", "text": "protected function isValidIpRange($ip)\n{\n $ipRanges = env('IP_RANGE');\nreturn IpUtils::checkIp($ip, $ipRanges);\n}", "title": "" }, { "docid": "92e9d7b31376c5efb61a49b50fb8dbc7", "score": "0.69044715", "text": "public static function is_ip6($ip) {\r\n\t\t$ret = false;\r\n\t\tif (function_exists('filter_var')) {\r\n\t\t\t// This regards :: as valid, also ::0 or ::0.0.0.0 as OK, which is wrong\r\n\t\t\t$ret = filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// This regards :: as invalid, but ::0 or ::0.0.0.0 as OK, which is wrong\r\n\t\t\t// Taken from here: http://regexlib.com/REDetails.aspx?regexp_id=1000\r\n\t\t\t$regex = \"@^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b)\\.){3}(\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b))|(([0-9A-Fa-f]{1,4}:){1,5}:((\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b)\\.){3}(\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b))|(([0-9A-Fa-f]{1,4}:){1}:([0-9A-Fa-f]{1,4}:){0,4}((\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b)\\.){3}(\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b))|(([0-9A-Fa-f]{1,4}:){0,2}:([0-9A-Fa-f]{1,4}:){0,3}((\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b)\\.){3}(\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b))|(([0-9A-Fa-f]{1,4}:){0,3}:([0-9A-Fa-f]{1,4}:){0,2}((\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b)\\.){3}(\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b))|(([0-9A-Fa-f]{1,4}:){0,4}:([0-9A-Fa-f]{1,4}:){1}((\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b)\\.){3}(\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b)\\.){3}(\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$@\";\r\n\t\t\t$ret = preg_match($regex, $ip);\r\n\t\t}\t\r\n\t\tif ($ret) {\r\n\t\t\t// :: in any combination (::, ::0, 0::0:0.0.0.0) is invalid!\r\n\t\t\t$regex = '@^[0.:]*$@'; // Contains only ., :, and 0\r\n\t\t\t$ret = !preg_match($regex, $ip);\r\n\t\t}\r\n\t\treturn $ret;\r\n\t}", "title": "" }, { "docid": "a93f458afb140b24f4b9e38a3a0a664a", "score": "0.69041103", "text": "public static function ipaddress_or_cidr(string $input): bool {\r\n return preg_match('/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/(\\d|[1-2]\\d|3[0-2]))?$/', $input) === 1;\r\n }", "title": "" }, { "docid": "c97e6b39e7f14db597030bdd6fe45f4d", "score": "0.6895717", "text": "public function checkIpAllowed()\n {\n $ip_list = $this->options->get('allowed_ips');\n if ($ip_list) {\n $client_ip = $this->request->getClientIp();\n $status = Ip::match($client_ip, explode(',', $ip_list));\n if (!$status) {\n $this->logger->warning('IP Not Allowed');\n $response = Response::create('Access denied for IP: '.$client_ip, 403);\n $response->send();\n exit();\n }\n }\n }", "title": "" }, { "docid": "c4385c6f188f32a03f1acb454a501e1e", "score": "0.68913645", "text": "public function isValidHostAddr($ipAddr) {\r\n /* Check for null address */\r\n if (is_null($ipAddr) || $ipAddr == '') {\r\n $this->debug('isValidHostAddr() has a null IP address.');\r\n $this->setError(self::$NQT_INVALID_ADDR);\r\n return false;\r\n }\r\n \r\n /* Check for valid dotted-quad format */\r\n if (!preg_match('/^[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}$/', $ipAddr)) {\r\n $this->debug('isValidHostAddr() has an invalid IP address (' . $ipAddr . ')');\r\n $this->setError(self::$NQT_INVALID_ADDR);\r\n return false;\r\n }\r\n \r\n return true;\r\n }", "title": "" }, { "docid": "f162435d633c418f4565382ecb6f1853", "score": "0.6875487", "text": "public static function is_valid_public_ip( $ip ) {\n\t\treturn filter_var(\n\t\t\t$ip,\n\t\t\tFILTER_VALIDATE_IP,\n\t\t\tFILTER_FLAG_IPV4 | FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE\n\t\t) !== false;\n\t}", "title": "" }, { "docid": "7beb0a7b99cc9b94c0ae304f52a587ff", "score": "0.684461", "text": "public function testIPIsValid()\n {\n $settings = require(__DIR__ . '/../src/settings.php');\n $geo_ip = new GeoIP($settings['settings']);\n\n $this->assertTrue($geo_ip->validateIP('10.0.0.1'));\n }", "title": "" }, { "docid": "cbe726aa2f0c0312921a5e18702838a4", "score": "0.68191963", "text": "public static function isIPv4Valid(string $ip)\n {\n return filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) !== false;\n }", "title": "" }, { "docid": "ddf39ee0645f962d1398a619df522a0b", "score": "0.6796727", "text": "public function checkIp($ip) {\n $this->db->query('SELECT Ip FROM Ip WHERE Ip=:ip');\n $this->db->bind(':ip', $ip);\n $row = $this->db->single();\n\n if ($row) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "4292f2fc14b5906503aaa667c687a069", "score": "0.6770915", "text": "public static function is_ip(&$ip) {\r\n\t\treturn self::is_ip4($ip) || self::is_ip6($ip);\r\n\t}", "title": "" }, { "docid": "d25369dd43255da63f90c28b38ae83dc", "score": "0.6758667", "text": "public function isValidAddress($address);", "title": "" }, { "docid": "2d9524ea111bc69baf9b4a595df0177c", "score": "0.6716318", "text": "protected static function isIpAddress($maybeIP)\n {\n if (true === function_exists('inet_pton')) {\n // check for IPv4 and IPv6 addresses\n return !!inet_pton($maybeIP);\n }\n\n // just check for IPv4 addresses\n return !!ip2long($maybeIP);\n }", "title": "" }, { "docid": "f6649fe0f699bcf9b766e98ccd886264", "score": "0.6705858", "text": "public static function is_private_ip($ip) { \n\t\treturn ! filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE);\n\t}", "title": "" }, { "docid": "320ea77644f9152c7db4c48d2ca2e335", "score": "0.66808605", "text": "protected function validateIPv4($value)\n {\n if (preg_match('/^([01]{8}\\.){3}[01]{8}\\z/i', $value)) {\n // binary format 00000000.00000000.00000000.00000000\n $value = bindec(substr($value, 0, 8)) . '.' . bindec(substr($value, 9, 8)) . '.'\n . bindec(substr($value, 18, 8)) . '.' . bindec(substr($value, 27, 8));\n } elseif (preg_match('/^([0-9]{3}\\.){3}[0-9]{3}\\z/i', $value)) {\n // octet format 777.777.777.777\n $value = (int) substr($value, 0, 3) . '.' . (int) substr($value, 4, 3) . '.'\n . (int) substr($value, 8, 3) . '.' . (int) substr($value, 12, 3);\n } elseif (preg_match('/^([0-9a-f]{2}\\.){3}[0-9a-f]{2}\\z/i', $value)) {\n // hex format ff.ff.ff.ff\n $value = hexdec(substr($value, 0, 2)) . '.' . hexdec(substr($value, 3, 2)) . '.'\n . hexdec(substr($value, 6, 2)) . '.' . hexdec(substr($value, 9, 2));\n }\n\n $ip2long = ip2long($value);\n if ($ip2long === false) {\n return false;\n }\n\n return ($value == long2ip($ip2long));\n }", "title": "" }, { "docid": "11f3f144559dbf43bb08e396e27967e8", "score": "0.66796", "text": "public static function invalidIpDataProvider() {}", "title": "" }, { "docid": "250ad16f63bf9f8881bccbfe76039d05", "score": "0.6660832", "text": "public function isValid($value)\n {\n if (! is_string($value)) {\n $this->error(self::INVALID);\n return false;\n }\n\n $this->setValue($value);\n\n if ($this->options['allowipv4'] && $this->validateIPv4($value)) {\n return true;\n } else {\n if ((bool) $this->options['allowliteral']) {\n static $regex = '/^\\[(.*)\\]$/';\n if ((bool) preg_match($regex, $value, $matches)) {\n $value = $matches[1];\n }\n }\n\n if (($this->options['allowipv6'] && $this->validateIPv6($value)) ||\n ($this->options['allowipvfuture'] && $this->validateIPvFuture($value))\n ) {\n return true;\n }\n }\n $this->error(self::NOT_IP_ADDRESS);\n return false;\n }", "title": "" }, { "docid": "ea57fd98bcb805339956459875af6d8e", "score": "0.6660781", "text": "function is_internal_IP() {\n if (is_admins())\n return true;\n $ip_prefix = array(\"172.31.\",\n \"172.\",\n \"10.\",\n \"222.200.\",\n \"192.168.\",\n \"202.116.\",\n \"211.66\",\n \"219.222\",\n \"125.217\",\n \"127.0.0.1\"\n );\n foreach ($ip_prefix as $ip) {\n if (!strncmp($_SERVER['REMOTE_ADDR'], $ip, strlen($ip)))\n return true;\n }\n return false;\n}", "title": "" }, { "docid": "af956549671667b7e3b162d6d09eca56", "score": "0.6645661", "text": "public function testIPIsNotValid()\n {\n $settings = require(__DIR__ . '/../src/settings.php');\n $geo_ip = new GeoIP($settings['settings']);\n\n $this->assertFalse($geo_ip->validateIP('10.0.0'));\n }", "title": "" }, { "docid": "c0a125cf9863b0bf4a31e061729d1970", "score": "0.66269857", "text": "public static function isValidIpAddress($sIp = NULL) {\n\t\treturn (filter_var(($sIp ? $sIp : $_SERVER['REMOTE_ADDR']), FILTER_VALIDATE_IP) !== FALSE);\n\t}", "title": "" }, { "docid": "dab3647e184a3580af5fa90581cdcbb6", "score": "0.6621782", "text": "function testIP($a, $allowzero=FALSE) {\r\n $t = explode(\".\", $a);\r\n \r\n if (sizeof($t) != 4)\r\n return 1;\r\n \r\n for ($i = 0; $i < 4; $i++) {\r\n // first octet may not be 0\r\n if ($t[0] == 0 && $allowzero == FALSE)\r\n return 1;\r\n if ($t[$i] < 0 or $t[$i] > 255)\r\n return 1;\r\n if (!is_numeric($t[$i]))\r\n return 1;\r\n };\r\n return 0;\r\n}", "title": "" }, { "docid": "906b1a2d3475b3d3abb511fd494c89fc", "score": "0.6621063", "text": "private function checkFieldIp($postParams): bool\n {\n if (filter_var(explode('/', $postParams['ip'])[0], FILTER_VALIDATE_IP)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "3efc36a22f6782e7dba51baff54e57a0", "score": "0.66198224", "text": "public function checkIp($ip)\n {\n $bannedList = PMF_Configuration::getInstance()->get('security.bannedIPs');\n $bannedIps = explode(' ', $bannedList);\n\n foreach ($bannedIps as $ipAddress) {\n\n if (0 == strlen($ipAddress)) {\n continue;\n }\n\n if (false === filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {\n // Handle IPv4\n if ($this->checkForAddrMatchIpv4($ip, $ipAddress)) {\n return false;\n }\n } else {\n // Handle IPv6\n if ($this->checkForAddrMatchIpv6($ip, $ipAddress)) {\n return false;\n }\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "9753ea91b660a2a2665338c95f3156c3", "score": "0.6598185", "text": "function is_private_ip($iptocheck) {\n\t$isprivate = false;\n\t$ip_private_list = array(\n\t\t\"10.0.0.0/8\",\n\t\t\"100.64.0.0/10\",\n\t\t\"172.16.0.0/12\",\n\t\t\"192.168.0.0/16\",\n\t);\n\tforeach ($ip_private_list as $private) {\n\t\tif (ip_in_subnet($iptocheck, $private) == true) {\n\t\t\t$isprivate = true;\n\t\t}\n\t}\n\treturn $isprivate;\n}", "title": "" }, { "docid": "dd63ff13107f2d38404ad19a2f316de4", "score": "0.65954345", "text": "public static function isPublic( $ip ) {\n if ( self::isIPv6( $ip ) ) {\n return self::isPublic6( $ip );\n }\n $n = self::toUnsigned( $ip );\n if ( !$n ) {\n return false;\n }\n\n // ip2long accepts incomplete addresses, as well as some addresses\n // followed by garbage characters. Check that it's really valid.\n if ( $ip != long2ip( $n ) ) {\n return false;\n }\n\n static $privateRanges = false;\n if ( !$privateRanges ) {\n $privateRanges = array(\n array( '10.0.0.0', '10.255.255.255' ), # RFC 1918 (private)\n array( '172.16.0.0', '172.31.255.255' ), # \"\n array( '192.168.0.0', '192.168.255.255' ), # \"\n array( '0.0.0.0', '0.255.255.255' ), # this network\n array( '127.0.0.0', '127.255.255.255' ), # loopback\n );\n }\n\n foreach ( $privateRanges as $r ) {\n $start = self::toUnsigned( $r[0] );\n $end = self::toUnsigned( $r[1] );\n if ( $n >= $start && $n <= $end ) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "fb0e1ec2f87526677ac9f3aa2acd3616", "score": "0.65877706", "text": "public function validateAddress() {\r\n $leng = mb_strlen($this->data[$this->name]['Address']);\r\n if ($leng > 256) {\r\n return FALSE;\r\n } else if ($leng > 128) {\r\n if (mb_ereg(self::_REGEX_FULLWITH, $this->data[$this->name]['Address']) !== false) {\r\n return FALSE;\r\n }\r\n }\r\n return TRUE;\r\n }", "title": "" }, { "docid": "df68fb44e0b6f88cbae2884930a54e80", "score": "0.65615064", "text": "public function validIp($ip, $type = 'any', $strict = true)\n {\n switch ($type) {\n case 'any':\n return $this->validIpv4($ip, $strict) || $this->validIpv6($ip, $strict);\n break;\n case 'ipv4':\n return $this->validIpv4($ip, $strict);\n break;\n case 'ipv6':\n return $this->validIpv6($ip, $strict);\n break;\n }\n return false;\n }", "title": "" }, { "docid": "d18fce85904b94a2dd58adaa01c636fb", "score": "0.656103", "text": "function ip_is_local($ip){\r\n\t\r\n\t $ipv4array = explode('.',$ip); $ipv6array = explode(':',$ip);\r\n\t $lenipv4 = count($ipv4array) ; $lenipv6 = count($ipv6array); \r\n\t $ipint = array(); \r\n\t if($lenipv4 > 0 ){//We have an ipv4 address\r\n\t\t for ($i = 0 ; $i<$lenipv4 ; $i++){\r\n\t\t\t $ipint[$i] = intval($ipv4array[$i]) ; //Generating integera values for the ips\r\n\t\t }\r\n\t\t \r\n\t\t\t//Let's see if our IP is riv ate\r\n\t\t\tif ($ipint[0] == 10) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else if ($ipint[0] == 172 && $ipint[1] > 15 && $ipint[1] < 32) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else if ($ipint[0] == 192 && $ipint[1] == 168) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else return false ;\r\n\t }else{\r\n\t //Either something went wrong, or we are in IPV6 format.\t \r\n\t\t \r\n\t\t if( $lenipv6 > 0){//We are having a big IPV6 address here !\r\n\t\t\t //We are in IPV4. Haven't implemented IPV6 yet\r\n\t\t\t \r\n\t\t }\r\n\t\t return false ;\r\n\t }\r\n\t \r\n\t \r\n\t return false;\r\n}", "title": "" }, { "docid": "487c461a3a7703bf22e94f6e4a06c27d", "score": "0.6558923", "text": "private function isIPAddressMeetRange() {\n\t\tif(get_option(\"wp_broadbean_iprange\") == \"\") {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn ip_in_range($this->ip_request, get_option(\"wp_broadbean_iprange\"));\n\t\t}\n\t}", "title": "" }, { "docid": "71dd05282fb1435b79e5c9a26130700f", "score": "0.6536002", "text": "function req_is_ipv4() {\n static $is_ipv4 = null;\n if ($is_ipv4 === null) \n $is_ipv4 = \\preg_match('#^\\d{1,3}(\\.\\d{1,3}){3,3}$#', $_SERVER[\"SERVER_ADDR\"]) != 0;\n return $is_ipv4;\n}", "title": "" }, { "docid": "fc96e80caddbff98fb4ae51af97c301c", "score": "0.6533687", "text": "public static function check_ip($ip, $ips) {\n\n if (!Validator::is_ip($ip))\n return false;\n\n $method = substr_count($ip, ':') > 1 ? 'check_ipv6' : 'check_ipv4';\n $ips = is_array($ips) ? $ips : array($ips);\n foreach ($ips as $_ip) {\n if (self::$method($ip, $_ip)) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "00b9fdd2cd80410f33462d11a7289133", "score": "0.652714", "text": "public function validAddresses() {}", "title": "" }, { "docid": "8f9a826636278ae1e9b96501d5ec0916", "score": "0.6525453", "text": "public static function isIPWanAddress($string) {\n $bytes = self::isIPAddress($string, true);\n\n // Die Logik entspricht dem Gegenteil von self:: isIPLanAdress() + zusaetzlicher Tests.\n if ($bytes) {\n if ($bytes[0] == 10) // 10.0.0.0 - 10.255.255.255\n return false;\n\n if ($bytes[0] == 127) // 127.0.0.0 - 127.255.255.255\n return false;\n\n if ($bytes[0]==169) // 169.0.0.0 - 169.255.255.255 !!! wem zugewiesen? niemandem?\n return false;\n\n if ($bytes[0] == 172) // 172.16.0.0 - 172.31.255.255\n return !(15 < $bytes[1] && $bytes[1] < 32);\n\n if ($bytes[0]==192) // 192.168.0.0 - 192.168.255.255\n return ($bytes[1]!=168);\n }\n\n // dieses TRUE ist eher spekulativ\n return true;\n }", "title": "" }, { "docid": "dd7574b8e538297f492830c13f234dff", "score": "0.6522347", "text": "private function checkIp(){\n\t\tif( !$this->isAuth() ){\n\t\t\treturn false;\n\t\t}\n\t\treturn ( $_SESSION['userIp'] == $_SERVER['REMOTE_ADDR'] );\n\t}", "title": "" }, { "docid": "300349e34cb430f3164f9fda3c207614", "score": "0.64926964", "text": "function is_ipaddr($ipaddr) {\n\tif (!is_string($ipaddr))\n\treturn false;\n\n\t$ip_long = ip2long($ipaddr);\n\t$ip_reverse = long2ip($ip_long);\n\n\tif ($ipaddr == $ip_reverse)\n\treturn true;\n\telse\n\treturn false;\n}", "title": "" }, { "docid": "a2a086059c015ad71e5ec3b2988adfa3", "score": "0.64726543", "text": "function check_ip_address($id = 0) {\r\n\r\n\t\t$ipAddressSessionData = $this->get_ip_address_from_throttle_by_user_id($id);\r\n\r\n\t\tif ($ipAddressSessionData == $this->ipAddress) {\r\n\r\n\t\t\t$result = 'match';\r\n\r\n\t\t} else {\r\n\r\n\t\t\t$result = 'not-match';\r\n\r\n\t\t}\r\n\r\n\t\treturn $result;\r\n\r\n\t}", "title": "" }, { "docid": "fc66f35bb45a398e4770399179e6d94f", "score": "0.6470852", "text": "public static function isIpv4($ip){\n\t\t\treturn count('.',explode($ip))==4 && max($ip)<256;\n\t\t}", "title": "" }, { "docid": "da2d0fc7123f0fcc8d3f5b13e801ba61", "score": "0.64561194", "text": "public static function is_ip4(&$ip) {\r\n\t\t// Using filter_var here fails in recognizing 255.255.255.0255 as a valid IP\r\n\t\t// See http://en.wikipedia.org/wiki/IPv4#Address_representations\r\n\t\t$test = explode('.', $ip);\r\n\t\t$ints = array();\r\n\t\t$ret = (count($test) == 4);\r\n\t\tforeach($test as $datum) {\r\n\t\t\t$ret = $ret && self::is_int($datum, 0, 255);\r\n\t\t\tif ($ret) { $ints[] = intval($datum); }\r\n\t\t}\t\r\n\t\t\r\n\t\t$regex = '@^[0.]*$@'; // Contains only ., and 0\r\n\t\t$ret = $ret && !preg_match($regex, $ip);\r\n\t\t\r\n\t\tif ($ret) {\r\n\t\t\t$ip = implode('.', $ints);\r\n\t\t}\r\n\r\n\t\treturn $ret;\r\n\t}", "title": "" }, { "docid": "b67952dd67de4fe97d8c0a8794cf4eeb", "score": "0.6425322", "text": "protected function isAllowedIp($request, $data): bool\n {\n return IpUtils::checkIp($request->ip(), $data->getAllowedAddresses());\n }", "title": "" }, { "docid": "1407549a8f818e4d0daa2157094d05eb", "score": "0.6418446", "text": "static public function checkClientIp(array $allowed_ips = [])\n {\n array_unshift($allowed_ips, '127.0.0.1');\n $ip = static::getClientIp(); \n $check_ip_arr= explode('.',$ip); //要检测的ip拆分成数组\n \n if(!in_array($ip, $allowed_ips)) {\n foreach ($allowed_ips as $val) {\n if(strpos($val,'*')!==false){//发现有*号替代符\n $arr = explode('.', $val);\n $bl = true;//用于记录循环检测中是否有匹配成功的\n for($i=0;$i<4;$i++){\n if($arr[$i]!='*'){//不等于* 就要进来检测,如果为*符号替代符就不检查\n if($arr[$i]!=$check_ip_arr[$i]){\n $bl=false;\n break;//终止检查本个ip 继续检查下一个ip\n }\n }\n }//end for\n if($bl){//如果是true则找到有一个匹配成功的就返回\n return true;\n }\n }\n }\n \n return false;\n }\n \n return true;\n }", "title": "" }, { "docid": "45f92266ba0129c3667a7c82e8177b47", "score": "0.64160615", "text": "public function checkLockToIP() {}", "title": "" }, { "docid": "03138eea3fa476afaadeff4d4d4e5807", "score": "0.6392821", "text": "public function check_ip() {\n if (SESSION_CHECK_IP_ADDRESS == 'True') {\n $ip_address = tep_get_ip_address();\n if (!isset($_SESSION['SESSION_IP_ADDRESS'])) {\n $_SESSION['SESSION_IP_ADDRESS'] = $ip_address;\n }\n\n if ($_SESSION['SESSION_IP_ADDRESS'] != $ip_address) {\n tep_session_destroy();\n tep_redirect(tep_href_link('login.php'));\n }\n }\n }", "title": "" }, { "docid": "f3570377e149a357d09862fe184cb14b", "score": "0.63882655", "text": "function valid_ipv4($var) {\n\treturn filter_var($var, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4);\n}", "title": "" }, { "docid": "7986d68c809b07c922688e70120118c3", "score": "0.6387561", "text": "public function testValidateIpv4()\n {\n $test = array(\n '141.225.185.101',\n '255.0.0.0',\n '0.255.0.0',\n '0.0.255.0',\n '0.0.0.255',\n '127.0.0.1',\n );\n foreach ($test as $val) {\n $this->assertTrue($this->_filter->validateIpv4($val));\n }\n }", "title": "" }, { "docid": "756c5a172c84b4a3de9c6b3d8296c86d", "score": "0.6382744", "text": "function isAddress($input)\n{\n $pattern = \"/^[a-zA-Z0-9]{33,34}$/\";\n return preg_match($pattern, $input);\n}", "title": "" }, { "docid": "4aad3857bedb7571ee9a5709470480a5", "score": "0.63693833", "text": "static function is_ip_blocked($ip_address)\r\n {\r\n global $wpdb;\r\n $blocked_record = $wpdb->get_row($wpdb->prepare('SELECT * FROM '.AIOWPSEC_TBL_PERM_BLOCK.' WHERE blocked_ip=%s', $ip_address));\r\n if(empty($blocked_record)){\r\n return false;\r\n }else{\r\n return true;\r\n }\r\n }", "title": "" }, { "docid": "7a0423d8b7bb0c89f3c19c1e581a0307", "score": "0.6358864", "text": "protected function authorizeIp()\n {\n //In unit test REMOTE_ADDR is not available and will return null\n $request = $this->getRequest();\n\n // E.g. command line user\n if (! $request instanceof \\Zend_Controller_Request_Http) {\n return true;\n }\n\n $remoteIp = $request->getServer('REMOTE_ADDR');\n if ($this->util->isAllowedIP($remoteIp, $this->getAllowedIPRanges())) {\n return true;\n }\n\n return $this->_('You are not allowed to login from this location.');\n }", "title": "" }, { "docid": "7423ce4e482c96ce9d55692c310ef040", "score": "0.6357723", "text": "public static function check_ipv6($ip)\n {\n }", "title": "" }, { "docid": "7423ce4e482c96ce9d55692c310ef040", "score": "0.63576746", "text": "public static function check_ipv6($ip)\n {\n }", "title": "" }, { "docid": "0d35e5a0e7e15ac812a077ea477deeed", "score": "0.6345577", "text": "function vIP( $ip )\r\n\t\t{\r\n\t\t return filter_var( $ip, FILTER_VALIDATE_IP );\r\n\t\t \r\n\t\t}", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "00f7eb68be538f8135c66bcd080f2f44", "score": "0.0", "text": "public function index()\n { \n\n if(!(Gate::denies('read_armazem'))){\n $armazems = Armazem::paginate(40); \n\n //LOG --------------------------------------------------------\n $this->log(\"armazem.index\");\n //------------------------------------------------------------ \n\n return view('armazem.index', array('armazems' => $armazems, 'buscar' => null));\n }\n else{\n return view('errors.403');\n }\n }", "title": "" } ]
[ { "docid": "1d384f4e78f98647387c1b7298b0696a", "score": "0.74723387", "text": "public function index ()\n {\n $this->list();\n }", "title": "" }, { "docid": "4bed8c9cfd05d9666f1acd8791970421", "score": "0.7459176", "text": "public function index()\n {\n /** @var \\Colibri\\Database\\ModelCollection $items */\n $items = new $this->listClass();\n $this->applyListFilters($items);\n $items->load();\n\n $this->template->vars[$this->listTplVar] = $items;\n if ($this->pagedList) {\n $this->template->vars['pagination'] = [\n 'page' => (int)(isset($_GET['page']) ? $_GET['page'] : 0),\n 'recordsPerPage' => $items->recordsPerPage,\n 'recordsCount' => $items->recordsCount,\n 'pagesCount' => $items->pagesCount,\n 'base_url' => '/' . $this->division . '/' . $this->module,\n ];\n }\n }", "title": "" }, { "docid": "fd728130e464c7ca0e936873b067ad9b", "score": "0.74551713", "text": "public function index()\n {\n $resource = $this->resource->with('fields')->where('slug', $this->slug)->first();\n\n $select = ['id'];\n $eagerLoad = [];\n foreach($resource->fields as $field)\n {\n if($field->list) $select[] = $field->slug;\n\n if($field->type == 'relational')\n {\n $eagerLoad[] = $field->data('method');\n }\n }\n\n $model = $this->getModel($resource);\n $entities = $model::with($eagerLoad)->select($select)->get();\n\n $hasObjects = false;\n if(method_exists($model, 'objects')) $hasObjects = true;\n\n return view('laramanager::resource.index', compact('resource', 'entities', 'hasObjects'));\n }", "title": "" }, { "docid": "6126929dc3b0a4f22ee22cc3ad8d6a7b", "score": "0.74231887", "text": "public function index() \n\t{ \n\t\t$this->listing();\t\n\t}", "title": "" }, { "docid": "53e8cdd7001e03b480caa697d00c6da2", "score": "0.7395002", "text": "public function indexAction()\r\n {\r\n $limit = $this->Request()->getParam('limit', 1000);\r\n $offset = $this->Request()->getParam('start', 0);\r\n $sort = $this->Request()->getParam('sort', []);\r\n $filter = $this->Request()->getParam('filter', []);\r\n\r\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\r\n $this->View()->assign(['success' => true, 'data' => $result]);\r\n }", "title": "" }, { "docid": "c66f120116ada3a42cc9932c701e6a9d", "score": "0.73425615", "text": "public function listAction()\n {\n $bookRepository = new BookRepository();\n $books = $bookRepository->getAll();\n\n $argsArray = [\n 'books' => $books\n ];\n $templateName = 'list';\n return $this->app['twig']->render($templateName . '.html.twig', $argsArray);\n }", "title": "" }, { "docid": "f89eac18f2fecb9e12a4e0696258300d", "score": "0.7320085", "text": "public function listing()\n {\n return $this->render(\"listing.html.twig\");\n }", "title": "" }, { "docid": "27e6e4cef6757eab4dd656d684b1f18f", "score": "0.72990584", "text": "public function index()\n {\n if (Input::get('ajax')) {\n return $this->_resourcePersistence->getAll($this->_getListOrder(), $this->_getQueryConditions());\n }\n\n return view('admin.' . $this->resource . '.index')\n ->with('resource', $this->resource);\n }", "title": "" }, { "docid": "223999e9a02d01dc0cad36705dec31b1", "score": "0.7246801", "text": "public function actionList() {\n $this->_getList();\n }", "title": "" }, { "docid": "eb8bf6d357654d40e9f3c6be964ff840", "score": "0.7236675", "text": "public function index()\n {\n $data = $this->model->all();\n return view('admin::resource.index', [\n 'items' => $data,\n 'model_name' => $this->modelName,\n ]);\n }", "title": "" }, { "docid": "1a9358d5e70acc9743aa95c2f18698aa", "score": "0.7216018", "text": "public function listAction()\n {\n $this->View()->assign(\n $this->getList(\n $this->Request()->getParam('start', 0),\n $this->Request()->getParam('limit', 20),\n $this->Request()->getParam('sort', []),\n $this->Request()->getParam('filter', []),\n $this->Request()->getParams()\n )\n );\n }", "title": "" }, { "docid": "09297f1ea9fe181abebbfadcb8142222", "score": "0.7185464", "text": "public function index(){\n $this->listItems();\n }", "title": "" }, { "docid": "ecc2dbc48848a139f5406206edda7fd6", "score": "0.705881", "text": "function seeAll() {\n $results = array();\n $data = Resource::getList();\n $results['resources'] = $data['results'];\n $results['totalRows'] = $data['totalRows'];\n $results['pageTitle'] = \"Resource Archive | Couch To Code\";\n require( $TEMPLATE_PATH . \"/archive.php\" );\n}", "title": "" }, { "docid": "1e170838915eaf18af92a3ce754576f4", "score": "0.70550656", "text": "public function index()\n {\n $this->setResources();\n\n $modelResource = new $this->Model;\n\n $filter = Input::get('filter');\n\n $perPage = Input::get('per_page');\n\n $sort = Input::get('sort');\n\n if ($perPage) $modelResource->setPerPage($perPage);\n\n $filterBy = $modelResource->getFilterBy();\n\n $sortBy = $modelResource->getSortBy() ?: $filterBy;\n\n $sort = $sort ? explode('|', $sort) : [$sortBy, 'asc'];\n\n if (!$filter) {\n return new $this->ResourceCollection(\n $modelResource::orderBy($sort[0], $sort[1])->paginate()\n );\n }\n\n return new $this->ResourceCollection(\n $modelResource::where(\"$filterBy\", 'like', \"%$filter%\")\n ->orderBy($sort[0], $sort[1])\n ->paginate()\n );\n }", "title": "" }, { "docid": "1bc9d0eeecbb5965922934931cecd66c", "score": "0.7042253", "text": "public function index()\n { \n //Get entries\n $entries = Entry::paginate(10);\n \n //Return collection of entries as a resource\n return EntryResource::collection($entries);\n }", "title": "" }, { "docid": "d64ddf4f7bf215d8ac46dc7bbfb1a5eb", "score": "0.7027674", "text": "public function listAction()\n {\n $this->_useAdditionalContent = true;\n \t\n \t$dataType = $this->_request->getParam('dataType');\n if($dataType == 'data'){\n \t// Abstract route\n \tthrow new Lib_Exception(\"dataType 'data' not allowed for listAction\");\n }\n $page = $this->_getParam('page', 1);\n $result = Data_Utils::getList($this->_user, $this->_acl, $dataType, $page);\n $items = $this->_paginateData($result['select'], $page, $result['itemsPerPage']);\n\n if(count($items)){\n \t$item = $items->getIterator()->current();\n } else {\n \t$table = ucfirst($dataType);\n \t$table = new $table();\n \t$item = $table->fetchNew();\n }\n Zend_Registry::set('Category', $item->getCategory());\n Zend_Registry::set('SubCategory', $item->getSubCategory());\n\n $this->_helper->layout->setLayout($item->getLayout(Data::ACTION_LIST));\n\n $this->view->items = $items;\n $this->view->dataType = $dataType;\n $this->view->separateFirstContentCardHeader = true;\n }", "title": "" }, { "docid": "03aab1a3d0f29df3c9c01f676da4d986", "score": "0.6990013", "text": "public function index()\n\t{\n\t\t$this->listing('recent');\n\t}", "title": "" }, { "docid": "42bf79f7c36bcd7921da4ede6d5056e2", "score": "0.6954232", "text": "public function lists()\n\t{\n\t\t$pics = Picture::all();\n\t\treturn view('default.rc.resources.lists')->with('pics', $pics);\n\t}", "title": "" }, { "docid": "673459c7290880615c394e798a3f1a65", "score": "0.6907478", "text": "public function index()\n {\n return ReadingListResource::collection(ReadingList::all());\n }", "title": "" }, { "docid": "11b3547fc126f6093eb0a2e7e0aef2eb", "score": "0.68977934", "text": "public function listAction()\n {\n $pages = \\Page\\Model\\Page::find();\n $filter = new \\Api\\Filter\\PagesList();\n $payload = new \\Api\\Model\\Payload($filter->filter($pages));\n\n return $this->render($payload);\n }", "title": "" }, { "docid": "76af57d44f9f03d2c164c16d1a203b35", "score": "0.68735504", "text": "public function index()\n {\n $resources = Resource::all();\n return view('resources.index')->with('resources', $resources);\n }", "title": "" }, { "docid": "d5424d838a7b9b5f2347c4e6d78a4dae", "score": "0.686626", "text": "public function indexAction()\n\t{\n\t\t$page = $this->getRequest()->getParam('page');\n\n\t\t$resources = Application_Model_Document_Resource::all();\n\t\t// Store the resources in the view so it can render them with partials\n\t\t$this->view->resources = $resources;\n\t\tforeach($resources as $resource) {\n\t\t\t$array[] = $resource;\n\t\t}\n\t\t$paginator = Zend_Paginator::factory($array);\n\t\t$paginator->setCurrentPageNumber(intval($page));\n\t\t$paginator->setItemCountPerPage(8);\n\t\t$this->view->paginator = $paginator;\n\t}", "title": "" }, { "docid": "1a97cf3e4d924e503cce423b0ca0da55", "score": "0.6864376", "text": "public function listAction()\n\t{\t\n\t\tZend_Paginator::setDefaultScrollingStyle('Sliding');\n\n\t\tZend_View_Helper_PaginationControl::setDefaultViewPartial('list.phtml');\n\n\t\t$this->_currentPage = $this->_getParam('page',1);\n\t\t$this->_currentPage = $this->_currentPage < 1 ? 1 : $this->_currentPage;\n\n\t\t/** TODO get total of records for $totalOfItems \n\t\t * @var unknown_type\n\t\t */\n\t\t$totalOfItems = $this->_itemsPerPage;\n\n\t\t$this->_lastPage = (int)(($totalOfItems/$this->_itemsPerPage));\t\t\t\t\n\t\t\n\t\t$paginator = $this->_getPagedData();\n\t\t$records = $this->_getProcessedRecords($paginator->getCurrentItems());\n\t\t\n\t\t$this->_model->setRelationships($records);\t\t\n\n\t\t$html = new Fgsl_Html();\t\t\n\t\t$this->_table = $html->createTable($records);\t\t\n\n\t\t$this->configureViewAssign();\n\t\t$this->view->render('list.phtml');\n\t}", "title": "" }, { "docid": "ae4b114ffb14ab57ea0164b2b2a1e2a9", "score": "0.6856383", "text": "public function listing()\n {\n $mode = Input::get('mode') ?: \"search\";\n\n switch ($mode) {\n case 'roots':\n $roots = $this->listRootNodes();\n return response()->json(['data' => $roots]);\n case 'search':\n $page = Input::get('page')?: 1;\n $pageInfoArray = $this->listPage($page);\n return response()->json($pageInfoArray);\n default:\n return response()->json(['message' => 'Invalid search mode', 'errors' => array()])\n ->setStatusCode(400, '');\n }\n }", "title": "" }, { "docid": "b446e47526e7914ef4bdc3737ae4f077", "score": "0.6843287", "text": "public function list(){\n\t\t$this->load->view('listing');\n\t}", "title": "" }, { "docid": "761494348df8b3750a8a88c51e0b7195", "score": "0.68370765", "text": "public function actionList()\n {\n if(!in_array('list',$this->crudActions))\n throw new CHttpException('404 Not Found');\n\n $this->render(Yii::app()->request->isAjaxRequest ? $this->listPartial : $this->listView);\n }", "title": "" }, { "docid": "87f5741441fb47fe705676a54aca43a4", "score": "0.6831881", "text": "public function actionList()\n {\n $loansearch= new LoanSearch();\n $dataProvider = $loansearch->search(Yii::$app->request->get());\n \n return $this->render('list', [\n 'dataProvider' => $dataProvider,\n 'searchmodel' => $loansearch\n ]);\n }", "title": "" }, { "docid": "87bb478103dde18bab9318d72db00152", "score": "0.68209213", "text": "public function index()\n\t{\n\t\t$items = Item::all();\n\t\treturn \\View::make('Item/list_item',compact('items'));\n\t}", "title": "" }, { "docid": "d6f559efcd790aae0721cec604c5738a", "score": "0.6775565", "text": "public function listAction()\n {\n $frontEndDiscountsService = $this->container->get('dft_foapi.front_end_discounts');\n\n return $this->render('dftFoapiBundle:Common:data.json.twig', array(\n \"data\" => $frontEndDiscountsService->fetchAll($this->getAuthenticatedUserIdAndSubAccountIds())\n ));\n }", "title": "" }, { "docid": "d1b243aa3b9ada5174dcd3dee5386a71", "score": "0.67752934", "text": "public function actionList() {\n\t\t$searchModel = DynamicSearchRecord::forModel ( $this->modelClassname );\n\t\t$dataProvider = $searchModel->search ( \\Yii::$app->request->queryParams );\n\t\t\n\t\treturn $this->owner->render ( 'list.json', [ \n\t\t\t\t'searchModel' => $searchModel,\n\t\t\t\t'dataProvider' => $dataProvider \n\t\t] );\n\t}", "title": "" }, { "docid": "48bfc0bd9a7b31cd041cca86fc310bff", "score": "0.67658204", "text": "public function listing() {\n\n $this->getMapper()->tableExists();\n\n // process any paging params\n $offset = 0;\n $limit = 10;\n $order = $this->getMapper()->getKey();\n $asc = TRUE;\n\n // process any offset requirements\n if ($this->request->getQueryParam('offset') !== NULL && is_numeric($this->request->getQueryParam('offset'))) {\n $offset = $this->request->getQueryParam('offset');\n }\n\n // process any limit requirements\n if ($this->request->getQueryParam('limit') !== NULL && is_numeric($this->request->getQueryParam('limit'))) {\n $limit = $this->request->getQueryParam('limit');\n }\n\n // process any order parameters\n if ($this->request->getQueryParam('order') !== NULL) {\n if (property_exists($this->mapper->getModel(), $this->request->getQueryParam('order'))) {\n $order = $this->request->getQueryParam('order');\n }\n }\n\n // process any asccending/decending requirements\r\n if ($this->request->getQueryParam('desc') !== NULL) {\r\n $asc = FALSE;\r\n }\n\n // ensure we arent passing in keys in query params ?keys=1,2,3,4 etc\n if ($this->request->getQueryParam('keys') !== NULL) {\n // List by id\r\n $result = $this->getMapper()->load_multiple(explode(',', $this->request->getQueryParam('keys')), $offset, $limit, $order, $asc);\n $data = $result['list'];\n $total = $result['total'];\n }\n else {\n // List all\n $result = $this->getMapper()->listing(NULL, $offset, $limit, $order, $asc);\n $data = $result['list'];\r\n $total = $result['total'];\n }\n\n // set the data\n $this->response->setMeta(array(\n 'order' => $order,\n 'offset' => $offset,\n 'limit' => $limit,\n 'direction' => ($asc == TRUE) ? 'ASC' : 'DESC',\n 'count' => count($data),\n 'total' => $total\n ));\n $this->response->setData($data);\n\n // Set response\n if (!empty($data)) {\n $this->response->setHeader('__OK', Http::Response(Http::OK));\n return TRUE;\n }\n $this->response->setHeader('__NOT_FOUND', Http::Response(Http::NOT_FOUND));\n return TRUE;\n }", "title": "" }, { "docid": "4af89c443382295cf45d3e2622ace5f2", "score": "0.67593426", "text": "public function show_list(){\n\t\t$fields\t\t\t = $this->get_fields();\n\t\t$display_fields\t = $fields;\n\t\t$db_fields\t\t = array_keys($fields);\n\t\t$this->set_fields($db_fields);\n\t\t$this->set_filters($this->get_filters_filter());\n\t\t$count\t\t\t = $this->get_count($this->get_filters());\n\t\t$this->set_row_count($count);\n\t\t$rows\t\t\t = $this->get_all($this->get_filters(), true);\n\t\t$this->un_set_fields();\n\t\tif($count == 1){\n\t\t\t$id\t\t\t\t = $rows[0][$this->get_primary_id_col()];\n\t\t\t$params\t\t\t = array();\n\t\t\t$params['id']\t = $id;\n\t\t\tif($this->needs_sub_table()){\n\t\t\t\t$params['sub_id'] = $rows[0][$this->get_sub_id_col()];\n\t\t\t}\n\t\t\t$params['action'] = 'edit';\n\t\t\t$this->redirect('', $params);\n\t\t}\n\t\t$col_count\t = count($fields);\n\t\t$filter_url\t = $this->get_ctrl_url();\n\t\t$this\n\t\t\t\t->assign('rows', $rows)\n\t\t\t\t->assign('fields', $display_fields)\n\t\t\t\t->assign('filter_url', $filter_url)\n\t\t\t\t->assign('col_count', $col_count)\n\t\t\t\t->view('list');\n\t}", "title": "" }, { "docid": "d711cb52a8e6005890b369293af69e7b", "score": "0.6758465", "text": "public function index()\n {\n $Recipes = Recipe::with('ingredients')->orderBy('name', 'asc')->paginate(15);\n return RecipeResource::collection($Recipes);\n }", "title": "" }, { "docid": "ff7b9b0b2610bec017a23bdf07c0fadc", "score": "0.6749252", "text": "public function index()\n {\n\n // SECURITY:\n // if view_table_permission is false, abort\n if (isset($this->crud['view_table_permission']) && !$this->crud['view_table_permission']) {\n abort(403, 'Not allowed.');\n }\n\n // get all results for that entity\n $model = $this->crud['model'];\n\n if (isset($this->crud['is_translate']) && $this->crud['is_translate'] == true) {\n $this->data['entries'] = $model::orderby('id', 'ASC')->get();\n } else {\n $this->data['entries'] = $model::all();\n }\n\n // add the fake fields for each entry\n //dd($this->data['entries']);\n //foreach ($this->data['entries'] as $key => $entry) {\n // $entry->addFakes($this->getFakeColumnsAsArray());\n //}\n\n $this->prepareColumns();\n $this->data['crud'] = $this->crud;\n\n // load the view from /resources/views/vendor/dick/crud/ if it exists, otherwise load the one in the package\n\n return $this->firstViewThatExists('vendor.infinety.crud.list', 'crud::list', $this->data);\n }", "title": "" }, { "docid": "04105211a75ba7457c72346a442bef90", "score": "0.6741068", "text": "function Index()\n\t\t{\n\t\t\t$this->DefaultParameters();\n\t\t\t\r\n\t\t\t$parameters = array('num_rows');\r\n\t\t\t$this->data[$this->name] = $this->controller_model->ListItemsPaged($this->request->get, '', $parameters);\r\n\t\t\t$this->data['num_rows'] = $parameters['num_rows'];\n\t\t}", "title": "" }, { "docid": "d68899c3dabc0c21b0b2be7724f8030d", "score": "0.6737337", "text": "public function index()\n {\n $this->global['pageTitle'] = 'List Part Subtitute - '.APP_NAME;\n $this->global['pageMenu'] = 'List Part Subtitute';\n $this->global['contentHeader'] = 'List Part Subtitute';\n $this->global['contentTitle'] = 'List Part Subtitute';\n $this->global ['role'] = $this->role;\n $this->global ['name'] = $this->name;\n $this->global ['repo'] = $this->repo;\n \n $data['readonly'] = $this->readonly;\n $data['classname'] = $this->cname;\n $data['url_list'] = base_url($this->cname.'/list/json');\n $this->loadViews($this->view_dir.'index', $this->global, $data);\n }", "title": "" }, { "docid": "c71795f30a5bb75ebbd3e292fb5e8a4b", "score": "0.673268", "text": "public function index()\n {\n return ProspectListResource::collection(Prospect::paginate());\n }", "title": "" }, { "docid": "06f27ec9bf146b469adbf2e6705aabe8", "score": "0.6732599", "text": "public function index()\n {\n $pagination = new Pagination();\n $options = array();\n $pagination->setTotal(call_user_func_array([$this->_modelName, 'count'], array($options)));\n $options['limit'] = $pagination->rowsPerPage;\n $options['page'] = $pagination->offset;\n $records = call_user_func_array([$this->_modelName, 'all'], array($options));\n $this->set(compact('records', 'pagination'));\n }", "title": "" }, { "docid": "c455819674d3f353cb9e20703ef52803", "score": "0.6724347", "text": "public function index()\n {\n $this->list_view();\n }", "title": "" }, { "docid": "652313a0e1da74ef567bfde3163208da", "score": "0.6710615", "text": "public function index()\n {\n return Resources::collection(Model::orderBy('id', 'desc')->get());\n }", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67095095", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67095095", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67095095", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "09d6b29a7dfc37d687e4be6b37813ff1", "score": "0.66846997", "text": "private function listing()\n {\n //List partners\n $PartnersLib = new PartnersLib($this->DB);\n $this->responseSetContent($PartnersLib->listing());\n }", "title": "" }, { "docid": "66b2855c608ff83c2186cf3c1df31163", "score": "0.6679333", "text": "public function Index()\n\t{\n\t\t$data = parent::_ListData($this->_getPageTitle($this->method), 1000, \"parent_id = \".$this->db->escape_str($this->parent_id), \"\", $this->parent_id.\"/\", \"sort\", \"asc\");\n\n\t\t$data['tpl_page'] = $this->_getController().'/list';\n\t\tparent::_OnOutput($data);\n\t}", "title": "" }, { "docid": "69c11dee847c7c0490ac6622948612f7", "score": "0.66774035", "text": "public function index()\n {\n return view('resource-collections.index', ['resourceCollections' => ResourceCollection::orderBy('title')->get()]);\n }", "title": "" }, { "docid": "79017f87f771247f39999d976e80538f", "score": "0.667628", "text": "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getViews();\t\n\t\t$page = (int)($this->_request->getParam('page'));\n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t$this->view->page = $page;\n\t }", "title": "" }, { "docid": "d6bd209eea7a909ec1bbf56afae413a6", "score": "0.66748303", "text": "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('AppBundle:Search')->findAll();\n\n return $this->render('AppBundle:Search:list.html.twig', array(\n 'entities' => $entities,\n ));\n }", "title": "" }, { "docid": "8f532ae29d0271e5352287d73bdf275b", "score": "0.66744053", "text": "public function index()\n\t\t{\n\t\t\t// Consolidate data\n\t\t\t$data = array('hello' => 'world');\n\n\t\t\t// Handle request\n\t\t\tswitch (\\Request::format())\n\t\t\t{\n\t\t\t\tcase 'json':\n\t\t\t\t\treturn Response::json($data); // API\n\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\t$this->layout->content = \\View::make('scores::admin.listing', $data); // HTML\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "5b2bfe4741f53980dfae4fe18136b3f9", "score": "0.6665664", "text": "public function consolesListingPage() {\n Auth::redirectToLoginIfNotLoggedIn();\n\n $data['title'] = 'Consoles';\n $data['message'] = 'Here is the entire listing of available consoles.';\n $data['no-consoles'] = \"Sorry, there aren't any consoles available yet.\";\n $data['consoles'] = \\services\\Console::createConsoleObjectArray();\n\n View::rendertemplate('header', $data);\n View::render('consoles/consoles', $data);\n View::rendertemplate('footer', $data);\n }", "title": "" }, { "docid": "26b71fb578321a0935c2ecdff45d3b80", "score": "0.6664456", "text": "public function listAction()\n {\n return $this->render(\n 'AppBundle:employee:list.html.twig',\n [\n 'employees' => $this->get('employee')->loadEmployees(),\n ]\n );\n }", "title": "" }, { "docid": "02a808be513bd750788350c882906a0c", "score": "0.6660696", "text": "public function index() {\n // Get pagination parameters\n $fields = \\Core\\App::getInstance()->request->get(\"fields\");\n $fields = explode(\",\", $fields);\n\n $limit = \\Core\\App::getInstance()->request->get(\"limit\");\n $offset = \\Core\\App::getInstance()->request->get(\"offset\");\n $sort = \\Core\\App::getInstance()->request->get(\"sort\");\n $order = \\Core\\App::getInstance()->request->get(\"order\");\n $search = \\Core\\App::getInstance()->request->get(\"search\");\n $where = \\Core\\App::getInstance()->request->get(\"where\");\n $filter = json_decode(\\Core\\App::getInstance()->request->get(\"filter\"), true);\n\n // Get the data\n $data = \\Helpers\\Database::getObjects($this->_lc_classname, $this->_lc_classname, $fields, $search, $where, $offset, $limit, $sort, $order, $filter);\n $count = \\Helpers\\Database::countObjects($this->_lc_classname, $this->_lc_classname, $fields, $search, $where, $filter);\n\n // Send response\n \\Helpers\\Response::success([\n 'total' => $count,\n 'rows' => $data\n ]);\n }", "title": "" }, { "docid": "a3406c7ff6face6ebd5912a2a062298a", "score": "0.665152", "text": "public function listAction()\n\t{\n\t\t$list = $this->db->select();// recuperation les infomations relatif a la function Select du fichier Database.php.\n\t\techo $this->twig->render('listPost.html',\n\t\t\t[\n\t\t\t\t\"list\" => $list\n\t\t\t]\n\t\t);\n\n\t}", "title": "" }, { "docid": "79f5369358653dfc5bbd4ed88772cc37", "score": "0.6647134", "text": "public function index()\n {\n //method show all Tags\n return TagResource::collection(Tag::paginate());\n }", "title": "" }, { "docid": "3e2f78b81b111995e32d53c1e5113d60", "score": "0.6630601", "text": "public function index()\n {\n return view('resource.row',\n [\n 'resources' => Resources::with('category', 'reservation')\n ->get()\n ]);\n }", "title": "" }, { "docid": "4eecf023369060252d00f8bf4fee5c2b", "score": "0.6628439", "text": "public function index()\n {\n return $this->show(\"All\");\n }", "title": "" }, { "docid": "28aaefde81bffe6c35ee93653410bbe4", "score": "0.6615464", "text": "public function listAction(){\n $this->view->role = Auth_Info::getUser()->user_type;\n Log::infoLog('method='.__FUNCTION__.';user_id='.Auth_Info::getUser()->user_id.';control_number'.';Start action');\n if($this->getRequest()->isGet()&&!isset($this->_input->page)){\n $this->session->removeData(self::SESSION_KEY_SEARCH);\n }\n $this->session->removeData(self::SESSION_KEY_PAGE);\n $this->session->removeData(self::SESSION_KEY_RETURN_DETAIL);\n $page = null;\n if ($this->getRequest()->isPost()) {\n $where = $this->_input->getEscaped();\n\n } else {\n $where = $this->session->getData(self::SESSION_KEY_SEARCH);\n if (is_null($where)) {\n $where = array();\n }\n $page = isset($this->_input->page) ? $this->_input->page : $this->session->getData(self::SESSION_KEY_PAGE);\n }\n $this->getRequest()->setParams($where);\n $this->session->setModuleScope(self::SESSION_KEY_SEARCH, $where);\n $this->session->setModuleScope(self::SESSION_KEY_PAGE, $page);\n\n $select = MInformations::getInstance()->getListSelect($where);\n $this->view->max_display_char = Zynas_Registry::getConfig()->constants->max_display_char;\n $this->view->paginator = Zynas_Paginator::factoryWithOptions($select, $page, $this->view);\n Log::infoLog('method='.__FUNCTION__.';user_id='.Auth_Info::getUser()->user_id.';control_number'.';End action');\n }", "title": "" }, { "docid": "0ce098c670548596cee63a4f7a02e6d6", "score": "0.66103876", "text": "public function list() { \n try {\n $list = $this->listModel->getList($_POST['pageNo']);\n if($list) {\n $this->response($list,200,'Success');\n } else {\n $this->response('',204,'No content');\n } \n } catch(Exception $ex) {\n $this->response('',500,'Error');\n } \n }", "title": "" }, { "docid": "01f5c196228688f47955dc605b965462", "score": "0.660681", "text": "public function index()\n {\n $this->global['pageTitle'] = 'List Engineers - '.APP_NAME;\n $this->global['pageMenu'] = 'List Engineers';\n $this->global['contentHeader'] = 'List Engineers';\n $this->global['contentTitle'] = 'List Engineers';\n $this->global ['role'] = $this->role;\n $this->global ['name'] = $this->name;\n $this->global ['repo'] = $this->repo;\n \n $data['classname'] = $this->cname;\n $data['readonly'] = $this->readonly;\n $data['url_list'] = base_url($this->cname.'/list/json');\n $this->loadViews($this->view_dir.'index', $this->global, $data);\n }", "title": "" }, { "docid": "7f1c8a5ab63c01e02fb3ba65a1e27120", "score": "0.66042405", "text": "public function index()\n {\n return StudentResource::collection($this->studentRepository->list());\n }", "title": "" }, { "docid": "09ff54f3ae80db26f6fde9cf6871ccdc", "score": "0.6595075", "text": "public function index()\n {\n // Get all Intents\n $intents = Intent::paginate(50);\n\n return IntentResource::collection($intents);\n }", "title": "" }, { "docid": "38d10de11fa88686187f73576fe11a7c", "score": "0.65746295", "text": "public function index()\n {\n View::share('resourceUrl', $this->resourceUrl);\n \n $photos = PhotoModel::all()->toArray();\n $babys = \\BabyModel::all()->lists('name', 'id');\n \n $this->layout->with('title', '列表');\n $this->layout->content = View::make( $this->resourceUrl . 'index' )->with(compact('photos', 'babys'));\n }", "title": "" }, { "docid": "f9a0a7fc5de7f0a8c0c42ac168169d27", "score": "0.6573118", "text": "public function index()\n {\n $books = Book::all();\n return BookResource::collection($books);\n }", "title": "" }, { "docid": "218a3bcc6c3ba48283149f8614d45562", "score": "0.65724015", "text": "public function index() {\n\t\t$this->get ();\n\t}", "title": "" }, { "docid": "643e2e525a9956d4f3d154800f2706fb", "score": "0.6567583", "text": "public function index()\n {\n // Get all the resources list.\n\n $contacts = Contact::orderBy('id', 'asc')->paginate(10);\n \n // Check if there is no resource.\n if(is_null($contacts)) {\n return response()->json([\"message\"=>\"No Contact found.\", \"data\"=>[], \"errors\"=>[], \"success\"=>true], 204);\n }\n // Return the list of resources.\n return response()->json([\"message\"=>\"Contacts list.\", \"data\"=>$contacts, \"errors\"=>[], \"success\"=>true], 200);\n }", "title": "" }, { "docid": "c4b3a61da5b12f663884b5e9ad36c7d1", "score": "0.65669703", "text": "public function index()\n {\n $products = Product::paginate(12);\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "98b6312310ec07ad4be1841adb403ce3", "score": "0.6565657", "text": "public function actionList() {\n $data = Yii::app()->db->createCommand('SELECT * from products')->queryAll();\n // or $data = Products::model()->findAll();\n $dataProvider = new CArrayDataProvider($data, array(\n 'pagination' => array('pagesize' => 10),\n ));\n $this->render('list', array(\n 'dataProvider' => $dataProvider,\n ));\n }", "title": "" }, { "docid": "2e6cf3266883ceb02caa28803bff3287", "score": "0.6564624", "text": "public function indexAction()\n {\n return $this->forward()\n ->dispatch(\n $this->params()\n ->fromRoute( 'controller', get_called_class() ),\n array(\n 'action' => 'list',\n 'locale' => (string) $this->locale(),\n )\n );\n }", "title": "" }, { "docid": "131cc08b0e6134cac1d6af3250da5d11", "score": "0.65629196", "text": "public function list()\n {\n //\n return view('admin.onepage.list');\n }", "title": "" }, { "docid": "9ce8b7d31b54ee923c432b4460d8fe38", "score": "0.65626514", "text": "public function index()\n {\n $this->crud->hasAccessOrFail('list');\n\n $this->data['crud'] = $this->crud;\n $this->data['title'] = $this->crud->getTitle() ?? mb_ucfirst($this->crud->entity_name_plural);\n\n // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package\n return view($this->crud->getListView(), $this->data);\n }", "title": "" }, { "docid": "54d7b491cb48bf1dc5aa48e4b70243e8", "score": "0.65606016", "text": "public function index()\n {\n //Get Suppliers\n $suppliers = Supplier::paginate(100);\n\n //Return collection of suppliers as resource\n return SupplierResource::collection($suppliers);\n }", "title": "" }, { "docid": "eab040e429e9d0ed7c49740991e16b6a", "score": "0.6552699", "text": "public function actionList()\r\n {\r\n //All Sites\r\n $allSites = new Site('search');\r\n $allSites->unsetAttributes();\r\n if (isset($_GET['Site']))\r\n $allSites->attributes = $_GET['Site'];\r\n\r\n $this->render('list', array(\r\n 'allSites' => $allSites,\r\n 'gridViewSettings' => Site::gridViewSettings(),\r\n ));\r\n }", "title": "" }, { "docid": "b5dabee7628f504a4f1332387216fe1b", "score": "0.65394664", "text": "public function index()\n\t{\n\n\t\t$this->set(strtolower($this->modelNamePlural), $this->model->getAll());\n\n\t\t$this->render('index');\n\t}", "title": "" }, { "docid": "bce9b2084302b70f248236ecc9038792", "score": "0.6538336", "text": "public function index()\n {\n try {\n $keywords = $this->request->query('keywords');\n $where = $this->request->query('where');\n $category_id = $this->request->query('category_id');\n\n $listings = $this->service\n ->search($keywords, $where, $category_id)\n ->sortByDesc('created_at');\n\n if ($this->paginate !== null) {\n $listings = $listings->paginate($this->paginate);\n }\n\n return new ListingResourceCollection($listings);\n } catch (Exception $ex) {\n return parent::handleException($ex);\n }\n }", "title": "" }, { "docid": "4f95d8e48aed5748b1d47771a5c780ff", "score": "0.65325826", "text": "public function index()\n {\n // Get divisions\n $divisions = Division::latest()->paginate(5);\n\n // Return collection of divisions as a resource\n return DivisionResource::collection($divisions);\n }", "title": "" }, { "docid": "bdc3df82aa2775b984746ad43f1f270d", "score": "0.6527378", "text": "public function listAction() {\n //Render the list twig\n return $this->render('MesdReportDemoBundle:Report:list.html.twig');\n }", "title": "" }, { "docid": "b3239f030ba6e204500bc8512083d8dd", "score": "0.65271014", "text": "public function index()\n {\n return ProgramsResource::collection(Program::paginate(15));\n }", "title": "" }, { "docid": "37171947214224489a9ea88290a99d00", "score": "0.6523575", "text": "public function index()\n {\n return view(self::$prefixView.'list');\n }", "title": "" }, { "docid": "a590bbd0ca49f8f16ccf69ff4c577785", "score": "0.6518505", "text": "public function index()\n {\n $sortieDetails = SortieDetails::all();\n\n // Return collection of sortie_details as a resource\n return SortieDetailsResource::collection($sortieDetails);\n }", "title": "" }, { "docid": "d88f7c52ab4450961acca7bf2dca42d7", "score": "0.65127224", "text": "public function displayList()\n\t{\n\n\t\t$this->lAdmin->DisplayList();\n\t}", "title": "" }, { "docid": "e2c39459334902c7d856712c054793ec", "score": "0.65040326", "text": "public function index()\n {\n return $this->resourceCollection($this->model->with('teams')->get());\n }", "title": "" }, { "docid": "339c0962f54b7e532fa1290f675bd8c4", "score": "0.65032095", "text": "public function action_listing()\n\t{\n\t\t// populate data array\n\t\t$data = Table::get_all_data();\n\n\t\tif ($submit = \\Input::post('submit'))\n\t\t{\n\t\t\t// update table data via post and redirect\n\t\t\tTable::update_data(\\Input::post(null));\n\n\t\t\t// choose redirect action\n\t\t\tif ($submit == 'Back')\n\t\t\t{\n\t\t\t\t$action = self::_breadcrumbs(\\Request::active()->action, 'prev');\n\t\t\t}\n\n\t\t\tif ($submit == 'Next')\n\t\t\t{\n\t\t\t\t$action = self::_breadcrumbs(\\Request::active()->action, 'next');\n\t\t\t}\n\n\t\t\t\\Response::redirect($action);\n\t\t}\n\n\t\t// set common template vars\n\t\tself::_set_template_vars($this->template);\n\t}", "title": "" }, { "docid": "56cb1332aceddef95a5e1453e37d8832", "score": "0.6502062", "text": "public function listAction()\n {\n try {\n $this->collectParameters();\n $this->findAirports();\n \n return $this->listActionResponse();\n } catch (\\Exception $e) { // Log exception and return an error response\n return $this->buildErrorResponse($e);\n }\n }", "title": "" }, { "docid": "b7bae9c804826cdd9b0c94669ad36536", "score": "0.65018433", "text": "public function index()\n {\n $request = $this->makeRequest('index');\n $result = $this->service->getAll();\n\n return $this->maybeMakeResource('collection', $result);\n }", "title": "" }, { "docid": "9574404dd05ce3c2611ce508bd896204", "score": "0.65013176", "text": "public function indexAction() {\n $this->_forward('list');\n }", "title": "" }, { "docid": "cad2135c8b884f5e32721aec5b9bea32", "score": "0.64980537", "text": "public function index()\n {\n return CategoryResource::collection(Category::paginate());\n }", "title": "" }, { "docid": "b806629cb8d4f33084d6c8e3071e3f35", "score": "0.64968216", "text": "public function listAction()\n {\n $params = $this->params();\n $request = $this->getRequest();\n $bodyOnly = $request->isXmlHttpRequest();\n $page = $params->fromRoute( 'page',\n $request->getPost( 'page',\n $request->getQuery( 'page', 1 )\n )\n );\n\n $view = new ViewModel( array(\n 'paginator' => $this->getPaginator(),\n 'page' => ( (int) $page ) ?: 1,\n 'format' => $bodyOnly,\n ) );\n\n if ( $bodyOnly )\n {\n $view->setTerminal( true );\n }\n\n return $view;\n }", "title": "" }, { "docid": "97eab9d51e99c2a53b12711e284a2665", "score": "0.6496821", "text": "function display() {\n\t\t$this->getDefaultView()->setListingId(KRequest::getInt('listing_id'))->display();\n\t}", "title": "" }, { "docid": "47edbc785ea53823a4f3981e16262e11", "score": "0.6495762", "text": "public function index()\n {\n // Get all clubs\n $clubs = Club::all();\n\n // Return club as a collection of resources\n return ClubResource::collection($clubs);\n }", "title": "" }, { "docid": "50b30c3618e535c4e58fcbcaa800b3f9", "score": "0.6493738", "text": "public function index()\n {\n // Get items from CACHE if exists else get items from database and add them CACHE\n $items = Cache::remember(request()->fullUrl(), 60, function() {\n return Item::paginate(10);\n });\n\n return ResourcesItem::collection($items);\n }", "title": "" }, { "docid": "fb449ee6d59076f97a7b455cd49a361a", "score": "0.6493551", "text": "public function index()\n {\n $cate = Category::paginate();\n return CategoryResource::collection($cate);\n }", "title": "" }, { "docid": "a3105ba14523f4d28c0c61f1ae3a4126", "score": "0.64930916", "text": "public function index()\n {\n $doctor = Doctor::paginate(15);\n // Return collection of articles as a resource\n return DoctorResource::collection($doctor);\n }", "title": "" }, { "docid": "2f893b7055407e4ba0e047d0d86b3713", "score": "0.6490115", "text": "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_room->get_all();\n\t\t$this->template->set('title', 'Room List');\n\t\t$this->template->load('template', 'contents', 'room/room_list', $data);\n\t}", "title": "" }, { "docid": "b1b0091e0a8ca9b0c8e1d24b8ccf3dfc", "score": "0.6485231", "text": "public function index()\n {\n $books = Book::all();\n\n return $this->showAll($books);\n }", "title": "" }, { "docid": "b1b0091e0a8ca9b0c8e1d24b8ccf3dfc", "score": "0.6485231", "text": "public function index()\n {\n $books = Book::all();\n\n return $this->showAll($books);\n }", "title": "" }, { "docid": "bcb5195ddfb190dcd7d1cb464966fa39", "score": "0.64818776", "text": "protected function indexAction()\n {\n /* Select all rows request */\n $this->crudHelper->get($this->mapper);\n }", "title": "" }, { "docid": "0db1519c1fe132e8fd9ea16de60ae674", "score": "0.6480331", "text": "public function index()\n {\n return Resource::collection(User::paginate(10));\n }", "title": "" }, { "docid": "bee92afbf5f5543a8639ff7712cc6521", "score": "0.64797384", "text": "public function list()\n\t{\n\t\t$chechPermission = get_controller_and_action();\n\t\tif($chechPermission == FALSE)\n\t\t{\n\t\t\tredirect(base_url('access'));\n\t\t}\n\t\t$data['title'] = 'Po List';\n\t\t$this->load->view('admin/includes/_header', $data);\n\t\t$this->load->view('po/po_list');\n\t\t$this->load->view('admin/includes/_footer');\t\n\t}", "title": "" }, { "docid": "a8c3b4396d681ea7d1b2f1cd417a6d26", "score": "0.64782697", "text": "abstract public function view_list();", "title": "" }, { "docid": "8867deb779456d5ddb47aa51a4b25985", "score": "0.64749306", "text": "public function index() {\n $this->all();\n }", "title": "" }, { "docid": "f71ee6e727b6e6ce48d431df89e195db", "score": "0.6472712", "text": "public function index()\r\n {\r\n $this->retrieve();\r\n }", "title": "" } ]
e365ff899858e88ad3f222e0944d8556
Inserts a record in to user table
[ { "docid": "fb1ed4663fac7d5b6f12f4385050474d", "score": "0.0", "text": "public function insert_user($vals)\n {\n $fields = array_keys($vals);\n $values = array_values($vals);\n $fieldlist = implode(',', $fields);\n\n /* Fixed by @Moz125 */\n for($x = 0; $x < count($values); $x++){\n $values[$x] = \"'{$values[$x]}'\";\n }\n $qs = implode(\", \", $values);\n /* end of fix */\n\n $sql = \"insert into `$this->tbl`($fieldlist) values(${qs}?)\";\n $q = $this->db->prepare($sql);\n return $q->execute($values);\n }", "title": "" } ]
[ { "docid": "b68e1c044f1b6c4fc3b57c987d94633a", "score": "0.7680692", "text": "public function insert($user);", "title": "" }, { "docid": "0d137b8d97ca50544f8e456d4ffbda5e", "score": "0.7603697", "text": "abstract protected function insert(User $user);", "title": "" }, { "docid": "ce06352e0fcfaea9a1acf602a297fe52", "score": "0.71707165", "text": "public function insertNewUser($data){\n $this->insert($data);\n }", "title": "" }, { "docid": "f86bf70ee4d5f7d25d7566a20c8c0060", "score": "0.70801765", "text": "function insert()\r\n\t{\r\n\t\t$this->revision_id = $this->_getNextRevision();\r\n\t\t$this->user = new User($this->db,$_SESSION['user_id']);\r\n\t\t$this->revision_datetime = date('Y-m-d H:i:s');\r\n\t\tparent::insert();\r\n\t}", "title": "" }, { "docid": "3452f9d2297ab19fb41a85f81c81dd12", "score": "0.70781106", "text": "function insert_user($user){\n \n $this->db->insert('user',$user);\n }", "title": "" }, { "docid": "6a35f526635905454d37b8ad3bd4f543", "score": "0.70384574", "text": "public function insert(){\n\n\t\t// baca data dari form insert user\n\t\t$username = $_POST['username'];\n\t\t$password = $_POST['password'];\n\t\t$fullname = $_POST['fullname'];\n\t\t$idrole = $_POST['idrole'];\n\n\t\t// panggil method insertUser() di model 'user_model' untuk menjalankan query insert\n\t\t$this->user_model->insertUser($username, $password, $fullname, $idrole);\n\n\t\t// arahkan ke method 'user' di kontroller user'\n\t\tredirect('dashboard/user');\n\t}", "title": "" }, { "docid": "1a2096ce9fef88de604fab3456426334", "score": "0.70368415", "text": "public function insert($authUser);", "title": "" }, { "docid": "6a446c7057bbdc4ea8e1ef1284894ebe", "score": "0.6975158", "text": "public function insert() {\n\t\t$conn = parent::connect();\n\t\t$sql = \"INSERT INTO \" . TBL_MEMBERS . \" (\n\t\t\tusername, \n\t\t\tpassword,\n\t\t\tfirstName,\n\t\t\tlastName,\n\t\t\tjoinDate,\n\t\t\tgender,\n\t\t\temailAddress\n\n\t\t) VALUES (\n\t\t\t:username,\n\t\t\tpassword(:password),\n\t\t\t:firstName,\n\t\t\t:lastName,\n\t\t\t:joinDate,\n\t\t\t:gender,\n\t\t\t:emailAddress\n\t\t)\";\n\t\t\n\t\ttry {\n\t\t\t$st = $conn->prepare($sql);\n\t\t\t$st->bindValue(\":username\", $this->data[\"username\"], PDO::PARAM_STR);\n\t\t\t$st->bindValue(\":password\", $this->data[\"password\"], PDO::PARAM_STR);\n\t\t\t$st->bindValue(\":firstName\", $this->data[\"firstName\"], PDO::PARAM_STR);\n\t\t\t$st->bindValue(\":lastName\", $this->data[\"lastName\"], PDO::PARAM_STR);\n\t\t\t$st->bindValue(\":joinDate\", $this->data[\"joinDate\"], PDO::PARAM_STR);\n\t\t\t$st->bindValue(\":gender\", $this->data[\"gender\"], PDO::PARAM_STR);\n\t\t\t$st->bindValue(\":emailAddress\", $this->data[\"emailAddress\"], PDO::PARAM_STR);\n\t\t\t$st->execute();\n\t\t\tparent::disconnect($conn);\n\t\t} catch (PDOException $e) {\n\t\t\tparent::disconnect($conn);\n\t\t\tdie(\"Query failed: \" . $e->getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "90de2384eca3fa09327f9d9d89b599ba", "score": "0.6965988", "text": "public function insertUser($data)\n {\n $this->db->insert('users', $data);\n }", "title": "" }, { "docid": "f14fdd61d1c6ba300c52ae983ccf6dfb", "score": "0.69414085", "text": "function insertUser($user) {\n\t\treturn $this->dbInsert(USERS_TABLE, $user);\n\t}", "title": "" }, { "docid": "350c0117c7e07d77edb5e0b664f51187", "score": "0.6939061", "text": "function insert()\r\n\t{\r\n\t\t$this->owner = new User($this->db,$_SESSION['user_id']);\r\n\t\t$this->created = date('Y-m-d H:i:s');\r\n\t\tparent::insert();\r\n\t}", "title": "" }, { "docid": "c35b161922d91bed9eb494854eba92c9", "score": "0.69217694", "text": "public function insert() {\n\t\t// Does the User object already have an ID?\n\t\tif ( !is_null( $this->id_cad ) ) trigger_error ( \"User::insert(): Attempt to insert an User object that already has its ID property set (to $this->id_cad).\", E_USER_ERROR );\n\n\t\t// Hash the password before binding the value to the statement\n\t\t$hashed_password = \"\";\n\t\tif ($this->password != \"\")\n\t\t{\n\t\t\t$hashed_password = password_hash($this->password, PASSWORD_DEFAULT);\n\t\t}\n\n\t\t// Insert the User\n\t\t$conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\n\t\t$sql = \"INSERT INTO cadastro ( nome, email, password ) VALUES ( :nome, :email, :password )\";\n\t\t$st = $conn->prepare ( $sql );\n\t\t$st->bindValue( \":nome\", $this->nome, PDO::PARAM_STR );\n\t\t$st->bindValue( \":email\", $this->email, PDO::PARAM_STR );\n\t\t$st->bindValue( \":password\", $hashed_password, PDO::PARAM_STR );\n\t\t$st->execute();\n\t\t$this->id_cad = $conn->lastInsertId();\n\t\t$conn = null;\n\t}", "title": "" }, { "docid": "5235967e5fdfa56dfe557b8ae3dda0c8", "score": "0.6900933", "text": "public function insert(){\n $this->setRegistered(new DateTime());\n $dbRecord = $this->packDbRecord(false);\n $id = wp_insert_user($dbRecord);\n $this->setId($id);\n return $id;\n }", "title": "" }, { "docid": "95ff0e53a0f372344ed680722bf85176", "score": "0.6864864", "text": "public function insert() {\n\t\t//first make sure no one has the same username...\n\t\t$test_user = new UserModel($this->username);\n\t\tif($test_user->get_id() != null) return false; //we have a user by this name already\n\t\telse {\n\t\t\t\n\nfile_put_contents('insertname.txt', 'entered info');\n\n\n\n\t\t\t$sql = sprintf(\"INSERT INTO users (username, password, firstname, lastname, email) VALUES ('%s', '%s', '%s', '%s', '%s')\",\n\t\t\t\t\t\t$this->username,\n\t\t\t\t\t\tsha1($this->password), //never forget to encrypt the password before storing it in db...\n\t\t\t\t\t\t$this->firstname,\n\t\t\t\t\t\t$this->lastname,\n\t\t\t\t\t\t$this->email);\n\t\t\t\n\t\t\tDBHandler::do_query($sql);\n\t\t\t\n\t\t\treturn new UserModel($this->username);\n\t\t}\n\t}", "title": "" }, { "docid": "822a63a9f5fe1bc3d4f80cee0254b8e2", "score": "0.6833784", "text": "public function insert($user){\r\n\t\t$sql = 'INSERT INTO users (name_users, password_users, email_users, thumb_users) VALUES (?, ?, ?, ?)';\r\n\t\t$sqlQuery = new SqlQuery($sql);\r\n\t\t\n\t\t$sqlQuery->set($user->nameUsers);\n\t\t$sqlQuery->set($user->passwordUsers);\n\t\t$sqlQuery->set($user->emailUsers);\n\t\t$sqlQuery->set($user->thumbUsers);\n\r\n\t\t$id = $this->executeInsert($sqlQuery);\t\r\n\t\t$user->idUsers = $id;\r\n\t\treturn $id;\r\n\t}", "title": "" }, { "docid": "9d0c2de214de5060101cd3ca464b2314", "score": "0.6826507", "text": "public function createUser()\n {\n $query = $this->db->getQuery(true);\n\n $query\n ->insert($this->db->quoteName(\"#__identityproof_users\"))\n ->set($this->db->quoteName(\"id\") . \"=\" . $this->db->quote($this->id))\n ->set($this->db->quoteName(\"state\") . \"=\" . $this->db->quote($this->state));\n\n $this->db->setQuery($query);\n $this->db->execute();\n }", "title": "" }, { "docid": "25032a8d8faaceb0ffcae1eac9db45eb", "score": "0.68074983", "text": "public function insert(){\n\t\t$sql = new Sql();\n\n\t\t//Procedure que insere o usuario pelo login e senha e devolve o id e data do cadastro.\n\t\t$results = $sql->select(\"CALL sp_usuarios_insert(:LOGIN, :PASSWORD)\", array(\n\t\t\t':LOGIN'=>$this->getLogin(),\n\t\t\t':PASSWORD'=>$this->getSenha()\n\t\t));\n\n\t\tif(count($results) > 0){\t//Se ocorreu tudo certo o usuario é retornado\n\t\t\t$this->setDados($results[0]);\t//Chama o método que coloca as informaçoes carregadas nos atributos do obj.\n\t\t}\n\t}", "title": "" }, { "docid": "d6a4fe9b5549444367d3f180d4a580e1", "score": "0.6786194", "text": "public function insert_user()\n {\n $data = array(\n 'username' => 'Juan68',\n 'fname' => 'Juan',\n 'lname' => 'Pérez',\n 'register_date' => '2013-01-19 10:00:00'\n );\n $this->db->insert('users',$data);\n }", "title": "" }, { "docid": "e271bec4ec0a56d9bda623434b777959", "score": "0.6779508", "text": "public function inserter($row){\n if($this->getRowData($row, 'user id')){\n $hub = $this->getRowData($row, 'user id');\n $jde = $this->getRowData($row, 'jde customer number');\n $users = \\craft\\elements\\User::find()->yalumbaCustomerId($hub)->all();\n foreach($users as $user){\n if($user->email == $this->getRowData($row, 'email')){\n $user->setFieldValue('yalumbaCustomerId', $jde);\n $user->setFieldValue('yalumbaHubId', $hub);\n $saved = \\Craft::$app->getElements()->saveElement($user, false);\n }\n }\n }\n }", "title": "" }, { "docid": "c6a25397e26081fdacee865a7874875f", "score": "0.6762242", "text": "public static function insert_user ($data) {\r\n\t\treturn \\DB::table('fap_users')->insertGetId(\r\n\t\t $data\r\n\t\t);\r\n\t}", "title": "" }, { "docid": "29ac38970553187f60d42ed2d5e55efb", "score": "0.6756511", "text": "public function addUser()\n {\n $bdd = Database::getBdd();\n $req = $bdd->prepare(\"INSERT INTO users(prenom, nom, email, psw, date_creation ) values (?, ?, ?, ?, NOW()) \");\n $req->execute(array($this->prenom, $this->nom, $this->email, $this->psw));\n }", "title": "" }, { "docid": "4c3dcd5be600c0fd5aa5b4f312b3a50f", "score": "0.6750672", "text": "public function insert()\n\t{\n\n\t\t\n\t\t$this->denyAccess();\n\t\t\n\t\t$data['mailUser']\t= $_POST['mailUser'];\n\t\t$data['password']\t= md5($_POST['password']);\n $data['nomUser']\t\t= $_POST['nomUser'];\n\t\t$data['prenomUser']\t\t= $_POST['prenomUser'];\n\t\t$data['mailUser']\t\t= $_POST['mailUser'];\n\t\t$data['idTypeUser']\t\t= $_POST['idTypeUser'];\n\n\t\t//verifier si l'utilisateur est deja exsite mailUser='admin'\n\t\tif(UserModel::getInstance()->rowCount(\"mailUser='{$data['mailUser']}'\"))\n\t\t{\n\t\t\t$this->jump(\"nom : {$data['mailUser']}est utlisé\",\"?c=User\");\n\t\t}\n\n\t\t//les 2 mdp soivent coherent\n\t\tif($data['password'] != md5($_POST['confirmpwd']))\n\t\t{\n\t\t\t$this->jump(\"les 2 mot de pass soivent cohérents\",\"?c=User\");\n\t\t}\n\n\t\t//sql exec verifier\n\t\tif(UserModel::getInstance()->insert($data))\n\t\t{\n\t\t\t$this->jump(\"reussi\",\"?c=User\");\n\t\t}else\n\t\t{\n\t\t\t$this->jump(\"pas reussi\",\"?c=User\");\n\t\t}\n\t}", "title": "" }, { "docid": "4c2f6f458148204b7e10d3e7cad6045d", "score": "0.67318743", "text": "public function insert($user)\n {\n $insert = $this->pdo->prepare(\"INSERT INTO $this->table\n (`firstname`, `lastname`, `email`, `status_id`, `password`)\n VALUES (:firstname, :lastname, :email, :status_id, :password)\");\n $insert->bindvalue('firstname', $user['firstname'], \\PDO::PARAM_STR);\n $insert->bindvalue('lastname', $user['lastname'], \\PDO::PARAM_STR);\n $insert->bindvalue('email', $user['email'], \\PDO::PARAM_STR);\n $insert->bindvalue('status_id', $user['status_id'], \\PDO::PARAM_INT);\n $insert->bindvalue('password', $user['password'], \\PDO::PARAM_STR);\n\n $insert->execute();\n }", "title": "" }, { "docid": "173e22149e3ad6292d43aa5e46f804d1", "score": "0.668714", "text": "public function insert_User($postData)\r\n {\r\n $this->db->insert('users', $postData);\r\n }", "title": "" }, { "docid": "b8e1718286b04265dfdab559b64b9087", "score": "0.66851836", "text": "public function insert()\n {\n $sql = new Sql();\n\n //PASSA 2 PARAMETROS O LOGIN E A SENHA\n $result = $sql->select(\"CALL sp_usuarios_insert(:LOGIN, :PASSWORD)\", array(\n 'LOGIN' => $this->getDesLogin(),\n 'PASSWORD' => $this->getDesSenha()\n ));\n\n if (count($result) > 0) {\n $this->setData($result[0]);\n }\n }", "title": "" }, { "docid": "9faae210c6493b318eb863640d33bcf5", "score": "0.6684151", "text": "function addNewUser($userData)\n {\n // create table row\n $row = $this->createRow();\n //fname is the same as the column name is database table.\n $row->fname = $userData['fname'];\n //lname is the same as the column name is database table.\n $row->lname = $userData['lname'];\n //email is the same as the column name is database table.\n $row->email = $userData['email'];\n //photo is the same as the column name is database table.\n $row->photo = $userData['photo'];\n //password is the same as the column name is database table.\n $row->password = $userData['password'];\n \n // save (insert) into the table.\n $row->save();\n }", "title": "" }, { "docid": "f5274953cb7e53580ec828dd0002b792", "score": "0.6663255", "text": "public function insertRecord() {\n }", "title": "" }, { "docid": "af451b5005c11c50b313260af34216ef", "score": "0.66605985", "text": "public function Insertuser(){\n\t\tinclude \"conn.php\";\n\t\t$req=$bdd->prepare(\"INSERT INTO usersfile(username,usermail,userpassword) VALUES(:username,:usermail,:userpassword)\");\n\t\t$req->execute(array(\n\t\t'username'=>$this->getusername(),\n\t\t'usermail'=>$this->getusermail(),\n\t\t'userpassword'=>$this->getuserpassword()\n\t\t));\n\t}", "title": "" }, { "docid": "ed86e2d40275ebd2607c5c0497c3e623", "score": "0.66570383", "text": "public function addUser($data){\n $this->db->insert($this->table,$data);\n }", "title": "" }, { "docid": "2b6121aa0b517a2ac95648e65a51f2af", "score": "0.6646485", "text": "public function insertUser($address){\r\n $db=Database::getInstance();\r\n $conn=$db->getConnection();\r\n $stmt=$conn->prepare(\"INSERT INTO mt_users (tel, lagna, star)\r\n VALUES (?,?,?)\");\r\n $stmt->bind_param(\"sss\",$tel,$lagna,$nekatha);\r\n\r\n $tel=$address;\r\n $lagna= \"Virshba\";\r\n $nekatha= \"Visa\";\r\n\r\n $stmt->execute();\r\n \r\n // if ($conn->query($sql) === TRUE) {\r\n // echo \"New record created successfully\";\r\n // } else {\r\n // echo \"Error: \" . $sql . \"<br>\" . $conn->error;\r\n // } \r\n // $conn->close();\r\n }", "title": "" }, { "docid": "2d50bbaf9f4be4f13d1a173cd192acf5", "score": "0.6645329", "text": "function add_user($user) {\r\n\t\t$this->db->insert('users', $user);\r\n\t}", "title": "" }, { "docid": "1e27a08785aff706f6d4cc49eb529353", "score": "0.6642278", "text": "public function insertNewUser($user) {\n\t\t$contactArray = get_object_vars($user);\n\t\t$this->queryBuilder->insert('users', $contactArray);\n\t}", "title": "" }, { "docid": "2691219f28430b0705c5300207f87aa3", "score": "0.66102415", "text": "function insertUser($data)\n {\n return $this->db->insert('user', $data);\n }", "title": "" }, { "docid": "2691219f28430b0705c5300207f87aa3", "score": "0.66102415", "text": "function insertUser($data)\n {\n return $this->db->insert('user', $data);\n }", "title": "" }, { "docid": "bd1e7160ee04691035b9e14ae478714d", "score": "0.65714955", "text": "function insertUser($data)\n {\n return $this->db->insert('players', $data);\n }", "title": "" }, { "docid": "3076a670a662de5ecd2f7e9308d4d4bc", "score": "0.65655637", "text": "private function insert() {\r\n\t\t\t// insert entry\r\n\t\t\t$this->db->dash->setOptions(array(\r\n\t\t\t\t'user_id' => $this->identity->id,\r\n\t\t\t\t'data' => $this->view->render('autopost/txt.phtml'),\r\n\t\t\t\t'serialized' => serialize(array(\r\n\t\t\t\t\t'args' => $this->args,\r\n\t\t\t\t)),\r\n\t\t\t\t'identity' => \"{$this->args[0]}|{$this->args[2]}|{$this->args[3]}\",\r\n\t\t\t\t'scope' => 'po_dashboard',\r\n\t\t\t\t'entity_id' => new \\Zend_Db_Expr('NULL')\r\n\t\t\t))->save();\r\n\r\n\t\t\t// save owner as subscriber\r\n\t\t\t$this->db->subscriptions->setOptions(array(\r\n\t\t\t\t'user_id' => $this->identity->id,\r\n\t\t\t\t'scope' => 'po_dashboard',\r\n\t\t\t\t'entity_id' => $this->db->dash->getId()\r\n\t\t\t))->save();\r\n\t\t}", "title": "" }, { "docid": "6786d375cb4526c168da4828735177e7", "score": "0.6562079", "text": "public function insert()\n {\n $data = $this->request->getPost();\n $userModel = new UserModel();\n $userModel->insert($data);\n return redirect()->to(base_url()); \n }", "title": "" }, { "docid": "74bbe5d435e4df5ab248f058d3bc0b23", "score": "0.6552801", "text": "function insert_data_users($data_insert)\n {\n $this->db->insert(\"users\", $data_insert);\n }", "title": "" }, { "docid": "b05f34193531a222212110f94ec00603", "score": "0.6548011", "text": "public function adduser(){\n $database = $this->database();\n $request = $database->prepare(\"INSERT INTO users(nickname,pwd,firstname,lastname,birth,mail,role) VALUES (:n,:p,:f,:l,:b,:m,:r)\");\n $result = $request->execute(['n'=>$this->getNickname(),'p'=>'change','f'=>$this->getFirstname(),'l'=>$this->getLastname(),'b'=>$this->getBirth(),'m'=>$this->getMail(),'r'=>'u']);\n header(\"location: $this->ROOT/public/gestion/users/\");\n }", "title": "" }, { "docid": "3ed42d1b7db42461f41b7f27376281e6", "score": "0.6537862", "text": "function insert_user($user)\n\t{\n\t\t$this->db->set($user);\n\t\tif (!$this->db->insert('users'))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn $this->db->insert_id();\n\t}", "title": "" }, { "docid": "b697b732d68782239794037f70b0f3ba", "score": "0.6529226", "text": "public function registerWithCurrentUserId(){\n $this->insertNewFacebookUserRow(array(\"id\" => $this->userId));\n }", "title": "" }, { "docid": "333a8bec7df033b327c548ed39f7d531", "score": "0.6523209", "text": "function registeruser($data){\n $this->db->insert('users',$data);\t\t\t\n\t}", "title": "" }, { "docid": "c37f01cdd9c9aeae2ebf703e50c552a9", "score": "0.65231407", "text": "public function insert(\\Core\\User\\User $user) {\n if (!$this->exists($user)) {\n $this->db->setRow($this->table_name, $user->getEmail(), $user->getData());\n $this->db->save();\n\n return true;\n }\n }", "title": "" }, { "docid": "49414744aec82b1a44079e73820e9742", "score": "0.6508438", "text": "function insert(UserVO &$user)\n {\n global $vgDB, $vgDBPrefix;\n $vgDB->Execute(\"INSERT INTO {$vgDBPrefix}user (isAnon, username, password, smsConfirm) VALUES (?,?,?,?)\",\n array($user->isAnon, $user->username, $user->password, $user->smsConfirm));\n $user->userID = $vgDB->Insert_ID();\n return $user->userID;\n }", "title": "" }, { "docid": "a7a232d83734da72c4807cc3f545ab3f", "score": "0.6504877", "text": "function _record_user($mail, $hash, $bundles) {\n $fields = array(\n 'email' => $mail,\n 'bundles' => $bundles,\n 'hash' => $hash,\n 'confirmed' => 0,\n );\n db_insert('easysignup_users')->fields($fields)->execute();\n}", "title": "" }, { "docid": "a4b8ec4923a6f136160d4c6fdbb62bd3", "score": "0.64972705", "text": "function userInsert($db){\n\n\textract($_REQUEST);\n\t$data\t=\tarray(\n\t\t\t\t\t'uname' => $name,\n\t\t\t\t\t'uemail' => $email,\n\t\t\t\t\t'upassword' => $password,\n\t\t\t\t\t);\n\t// insert($tableName, array $data)\n\t$data\t=\t$db->insert('users',$data);\n\tif($data){\n\t\techoData(array('1','Record has been Insert!...',$data));\n\t}else{\n\t\techoData(array('0','Please try again Insert!...',$data));\n\t}\n}", "title": "" }, { "docid": "c886b73e848ff32c676a9ad9b8d8c1a6", "score": "0.64869064", "text": "public function save() {\n\t\tglobal $wpdb;\n\t\tif ( $this->zwf_user_data['id'] ) {\n\n\t\t\t$wpdb->update(\n\t\t\t\t$this->users_table,\n\t\t\t\t$this->zwf_user_data,\n\t\t\t\tarray(\n\t\t\t\t\t'id' => $this->zwf_user_data['id'],\n\t\t\t\t)\n\t\t\t);\n\n\t\t} else {\n\t\t\t$wpdb->insert( $this->users_table, $this->zwf_user_data );\n\t\t\t$this->zwf_user_data['id'] = $wpdb->insert_id;\n\t\t}\n\t}", "title": "" }, { "docid": "97710347cb0e6fc79c15d82b1ce1b393", "score": "0.6450977", "text": "private function insert()\n\t{\n\t\t$insertMembers = $this->getDataArrayForQueryBuilder('insert');\n\t\t$newId = $this->dataSource->insert(static::$table['name'], $insertMembers, static::$database);\n\t\t$this->dataSourceStatus = 'loaded';\n\n\t\tif(!empty($newId) && count(static::$primaryKey) === 1)\n\t\t{\n\t\t\t$member = static::$primaryKey[0];\n\t\t\t$this->$member = $newId;\n\t\t}\n\n\t\t$this->reset();\n\t}", "title": "" }, { "docid": "0db6a8783b07270f9fbf7b55acc6e55e", "score": "0.64485216", "text": "function insertUser($user, $pathIni){\n //SELECT username, email, hash, name, surname, provincia, address, picture, birthdate, ageinyears, description, banner FROM Credential NATURAL JOIN profiledata WHERE email=:email\n Database::executeQuery(\"INSERT INTO credential (email,username,hash) VALUES (:email,:username,:hash)\", array(new Param(\":email\",$user->getEmail()), new Param(\":username\",$user->getUsername()), new Param(\":hash\",$user->getHash())), $pathIni);\n\n $user_reg = Database::executeQuery(\"SELECT codiceProvincia FROM region WHERE nomeProvincia=:provincia\", array(new Param(\":provincia\",$user->provincia)), $pathIni);\n $user_reg_code = $user_reg[0][\"codiceProvincia\"];\n\n Database::executeQuery(\"INSERT INTO profiledata (username,name,surname,provincia,address,picture,birthdate,description,banner) VALUES (:username,:name,:surname,:provincia,:address,:picture,:birthdate,:description,:banner)\", array(new Param(\":username\",$user->getUsername()),new Param(\":name\",$user->name),new Param(\":surname\",$user->surname),new Param(\":provincia\",$user_reg_code),new Param(\":address\",$user->address),new Param(\":picture\",$user->picture),new Param(\":birthdate\",$user->birthdate),new Param(\":description\",$user->description),new Param(\":banner\",$user->banner) ), $pathIni);\n return true;\n}", "title": "" }, { "docid": "937ff0fea02f2f8e0e720cd9269adda3", "score": "0.6447224", "text": "public function insert($user){\n\t\t$sql = 'INSERT INTO users (name, username, email, password, usertype, block, sendEmail, gid, registerDate, lastvisitDate, activation, params) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\t\n\t\t$sqlQuery->set($user->name);\n\t\t$sqlQuery->set($user->username);\n\t\t$sqlQuery->set($user->email);\n\t\t$sqlQuery->set($user->password);\n\t\t$sqlQuery->set($user->usertype);\n\t\t$sqlQuery->setNumber($user->block);\n\t\t$sqlQuery->setNumber($user->sendEmail);\n\t\t$sqlQuery->setNumber($user->gid);\n\t\t$sqlQuery->set($user->registerDate);\n\t\t$sqlQuery->set($user->lastvisitDate);\n\t\t$sqlQuery->set($user->activation);\n\t\t$sqlQuery->set($user->param);\n\n\t\t$id = $this->executeInsert($sqlQuery);\t\n\t\t$user->id = $id;\n\t\treturn $id;\n\t}", "title": "" }, { "docid": "28c7d843eb59621203c364de356cf054", "score": "0.64312685", "text": "public function insert_user($datos) {\n\t\t$result = $this->db->insert(\"investorgroups_users\", $datos);\n }", "title": "" }, { "docid": "91044f3249ea674d6ddfed7348e6d23c", "score": "0.642501", "text": "public function addUser($user){\n $this->db->insert('users', $user);\n }", "title": "" }, { "docid": "df29657c49301020fdfca219a1b5b83c", "score": "0.64200294", "text": "function upsert_user($id, $user_screen_name, $user_name, $type)\r\n {\r\n $sql = 'UPDATE user_table SET user_screen_name = \\'' . $this->db->sanitize($user_screen_name)\r\n . '\\', user_name = \\'' . $this->db->sanitize($user_name)\r\n . '\\', type = ' . $this->db->sanitize($type)\r\n . ', last_login = current_timestamp' \r\n . ' where id = ' . $this->db->sanitize($id);\r\n $this->db->query($sql);\r\n\r\n // insert user (only user not exists)\r\n $sql = 'INSERT INTO user_table (id, user_screen_name, user_name, type, email, last_login) SELECT '\r\n . $this->db->sanitize($id) . ', \\'' . $this->db->sanitize($user_screen_name)\r\n . '\\', \\'' . $this->db->sanitize($user_name)\r\n . '\\', ' . $this->db->sanitize($type)\r\n . ', \\'\\', current_timestamp WHERE NOT EXISTS (SELECT 1 FROM user_table WHERE id = ' . $this->db->sanitize($id) . ')';\r\n $this->db->query($sql);\r\n }", "title": "" }, { "docid": "3b0d62e1e00b6980d94c20af47efbb82", "score": "0.6409626", "text": "public function insertToUser($data_user){\n \n //check user name alreay taken\n $exist = $this->db->get_where('users',array('userName'=>$data_user['userName']));\n if ($exist->num_rows()>0) {\n return false;\n }\n\n else{\n $this->db->insert('users',$data_user); //insert to user table\n if($this->db->affected_rows() > 0){\n $user_id = $this->db->insert_id();\n return $user_id;\n }\n else{\n return false;\n }\n }\n \n \n \n \n \n }", "title": "" }, { "docid": "e7411bdf9eada6790ea9171bce9913d9", "score": "0.64081615", "text": "public function run()\n\t{\n\t\t$db = DB::connection('seven_ora')->table('userinfo');\n\t\t$db->delete();\n\n\t\t$pass = Hash::make('pass');\n\n\t\t$data = array(\n\t\t\tarray(\n\t\t\t\t'id'\t\t\t=>\t1,\n\t\t\t\t'Account'\t\t=>\t'test',\n\t\t\t\t'Email'\t\t\t=>\t'test@test.com',\n\t\t\t\t'MotherLName'\t=>\t'test',\n\t\t\t\t'MD5PassWord'\t=>\t$pass,\n\t\t\t\t'Right'\t\t\t=>\t768\n\t\t\t)\n\t\t);\n\n\t\t$db->insert($data);\n\t}", "title": "" }, { "docid": "dc4b589ec91a81e61c0914783db24b07", "score": "0.6389765", "text": "protected function signup(){\n\n $sql = \"INSERT INTO users (username, password, fName, lName, number, utype) VALUES (:username, :password, :fName, :lName, :number, :utype)\";\n $stmt = $this->connect()->prepare($sql);\n \n $stmt->bindValue(':username', $this->uid);\n $stmt->bindValue(':password', $this->pwd);\n $stmt->bindValue(':fName', $this->fName);\n $stmt->bindValue(':lName', $this->lName);\n $stmt->bindValue(':number', $this->number);\n $stmt->bindValue(':utype', $this->utype);\n \n $result = $stmt->execute();\n }", "title": "" }, { "docid": "58d8f93368fe29ceadf6ed09f115a449", "score": "0.63799345", "text": "public function insertUser()\n\t{\n\t\t$this->admo->checkRoleIsAdmin('menambahkan pengguna');\n\n\t\t$is_active = $this->input->post('is_active', true);\n\t\tif ($is_active == null) {\n\t\t\t$is_active = 0;\n\t\t}\n\t\t$data = [\n\t\t\t'username' => $this->input->post('username', true),\n\t\t\t'email' => $this->input->post('email', true),\n\t\t\t'password' => password_hash($this->input->post('password', true), PASSWORD_DEFAULT),\n\t\t\t'id_role' => $this->input->post('id_role', true),\n\t\t\t'date_created' => time(),\n\t\t\t'is_active' => $is_active\n\t\t];\n\n\t\t$this->db->insert('user', $data);\n\t\t$this->lomo->insertLog('Pengguna <b>' . $data['username'] . '</b> berhasil ditambahkan');\n\t\t$this->session->set_flashdata('message-success', 'pengguna ' . $data['username'] . ' berhasil ditambahkan');\n\t\tredirect('user/index');\n\t}", "title": "" }, { "docid": "872841b10656a46fd911d34b30030cce", "score": "0.6376187", "text": "public function addUser($data) {\n $statement = $this->connection->prepare(\"INSERT INTO users(user_id, name, password, permission) \n VALUES (:id, :name, :pass, :per)\");\n $statement->execute($data);\n }", "title": "" }, { "docid": "f67fbd3334f5e7920871df35dc35fafa", "score": "0.63656694", "text": "private function insert_tournament()\n {\n // Fetching user id\n $sql = \"SELECT id\n FROM users\n WHERE email = '\" . $_SESSION['email'] . \"';\";\n $result = $this->mysqli->query($sql);\n $tmp_user_id = $result->fetch_assoc();\n $this->user_id = $tmp_user_id['id'];\n\n // Insert tournaments\n $sql = \"INSERT INTO tournaments (name, sport, format, users_id)\n VALUES ('\" . $this->tname . \"','\" . $this->sname . \"','\" . $this->format . \"',\" . $this->user_id . \");\";\n $this->mysqli->query($sql) or die($this->mysqli->error);\n\n // Fetching tournament id\n $this->tournament_id = $this->mysqli->insert_id;\n }", "title": "" }, { "docid": "b9a71354452a246ebe78864ad987b32c", "score": "0.63611513", "text": "private function insert(UserDomainObject $user)\n {\n $users = $this->getAll();\n\n $users->autoincrement++;\n\n $users->users->{$users->autoincrement} = [\n 'id' => $user->getId(),\n 'username' => $user->getUsername(),\n 'email' => $user->getEmail(),\n 'isHellbanned' => $user->isHellbanned(),\n 'isAdmin' => $user->isAdmin(),\n ];\n\n $this->storeAll($users);\n }", "title": "" }, { "docid": "234fb0d2dead18595ee0e3e017a7294f", "score": "0.635354", "text": "function userDbInsert($fields) {\n debug(\"userDbInsert\", $fields); // this will show the parameter array in the log\n $query = sprintf(\"INSERT INTO sotf_users (username,password,language,email, last_visit) VALUES('%s','%s','%s','%s','%s')\",\n\t\t\t\t\t\t\t$fields['username'], $fields['password'], $fields['language'], $fields['email'], $this->sqlDate());\n $this->userdb->query($query);\n // retrieve new id\n $query = sprintf(\"SELECT id FROM sotf_users WHERE username='%s'\", $fields['username']);\n $id = $this->userdb->getOne($query);\n // save e-mail once more: silly thing because of old sadm conventions\n $query = sprintf(\"INSERT INTO sotf_user_prefs (id, username, email) VALUES('%s', '%s', '%s')\",\n\t\t $id, $fields['username'], $fields['email']);\n $this->db->query($query);\n }", "title": "" }, { "docid": "2cc577c9f807c9b7d486825d2993e28c", "score": "0.6343878", "text": "public function insert(){\n $mysql = new banco02();\n $resultado = $mysql -> select(\"CALL sp_usuarios_insert (:LOGIN,:SENHA)\",array(\n ':LOGIN'=> $this->getDesclogin(),\n ':SENHA'=> $this->getDescsenha()\n ));\n if(count($resultado)>0){\n $this->setData($resultado[0]);\n }\n }", "title": "" }, { "docid": "36539767e9e001af0e12149dbfe2946c", "score": "0.6342474", "text": "function insertUser($conn, $username, $password){\n $username= mysql_entities_fix_string($conn, $username);\n $password= mysql_entities_fix_string($conn,$password);\n $salt1 = \"jau&2js\"; $salt2 = \"aow@ues\";\n $token = hash('ripemd128', \"$salt1$password$salt2\");\n $sql = \"INSERT INTO user (username, password, rep_sum, total_reviews))\n VALUES ('$username', '$token', NULL, NULL)\";\n if ($conn->query($sql) === TRUE) {\n echo \"New record created successfully\";\n // Redirect to wherever needed\n // to whatever PAGE\n\n } else {\n echo \"Error: \" . $sql . \"<br>\" . $conn->error;\n }\n $conn -> close();\n }", "title": "" }, { "docid": "6d7fc55724077a9863160b9c947d3621", "score": "0.6342431", "text": "private function insert(User $user)\n {\n $row = $this->translateToArray($user);\n $sql = \"INSERT INTO user (name, email, password) VALUES (?, ?, ?)\";\n $statement = $this->getPdo()->prepare($sql);\n // ... bind parameters from $row\n $statement->bindValue(1,$row['name'], PDO::PARAM_STR);\n $statement->bindValue(2,$row['email'], PDO::PARAM_STR);\n $statement->bindValue(3,$row['password'],PDO::PARAM_STR);\n\n $statement->execute();\n\n }", "title": "" }, { "docid": "13cb05814aaace6c582e1cab787fbf80", "score": "0.633699", "text": "public function insert($infos)\n {\n $this->getDatabase();\n return $this->addUser($infos);\n }", "title": "" }, { "docid": "51d649c645bc54edd34442f2e2f94767", "score": "0.63364625", "text": "public function add_user($input){\r\n\t\t$this->db->insert('login',$input);\r\n }", "title": "" }, { "docid": "9fb520c7a64b25b0a1cb13d69c2534cb", "score": "0.6332538", "text": "function add_record($user_id, $data) \n\t{\n\t\t$this->db->where( 'USER_ID', $user_id);\n\t\t$this->db->insert('tasks', $data);\n\t\treturn;\n\t}", "title": "" }, { "docid": "1d9d99acaaff82d2cf2b0d32aec70ced", "score": "0.63105553", "text": "function add_user($params) {\n $this->db->insert('users', $params);\n return $this->db->insert_id();\n }", "title": "" }, { "docid": "7f24f02f39d7bde8f536f04b1f8725bc", "score": "0.63004035", "text": "function insertUser($user_data){\n\t\tglobal $HULK;\n\n\t\t$user = (array) $user_data;\n\t\t$user['confirmed'] = 1;\n\t\t$user['timemodified'] = time();\n\t\t$user['lang']\t=\t'es_utf8';\n\t\t$user['auth']\t=\t'manual';\n\t\t$user['deleted']\t=\t0;\n\t\t$user['mnethostid']\t=\t1;\n\n\t\tif (empty($user['username']) OR empty($user['email'])) {\n\t\t\t\treturn false;\n\t\t}\n\t\tif($this->record_exists_sql(\"SELECT id FROM mdl_user\n\t\t\t\t\t\t\t\t\t WHERE username LIKE '{$user['username']}' OR email LIKE '{$user['email']}'\n\t\t\t\t\t\t\t\t\t LIMIT 1;\")) return false;\n\t\t$id = $this->insert('mdl_user',$user);\n\t\treturn $id;\n\t}", "title": "" }, { "docid": "9357e9abe74ddd1efe3bdf7a6bac3988", "score": "0.62970215", "text": "public function UserRegister($udata)\n {\n\n $this->db->insert('user_reg',$udata);\n }", "title": "" }, { "docid": "a68c0d2540eb6dcc8c306c515d7f0b22", "score": "0.6275171", "text": "public function createUserAction(){\n $naam = filter_input(INPUT_POST,'naam');\n $wachtwoord = filter_input(INPUT_POST,'wachtwoord');\n $apotheek = filter_input(INPUT_POST,'apotheek');\n $result = $this->model->insertUser($naam,$wachtwoord,$apotheek);\n //$this->view->showPatienten($result);\n }", "title": "" }, { "docid": "d4cfb1aa7d32badbc99493803f059b1f", "score": "0.62702084", "text": "public function insert($data){\n\n\t\t$this->db->insert('user',$data);\n\n\t\tif($this->db->affected_rows() > 0){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "89763c7a7bc8e1a2ac6c98aff0dc9ca0", "score": "0.62620145", "text": "function insertUser($data)\n {\n $this->db->insert($this->table, $data);\n return $this->db->insert_id();\n }", "title": "" }, { "docid": "9453352d3dd9de77c7cd2d1abbd2b394", "score": "0.62615657", "text": "public function insertIntoUser($user_name,$full_name,$email,$address,$mobile_no)\n\t{\t\n\t\t$db = $this->connectToDatabase();\n\t\t$db->insert('user',array(\"user_name\" => $user_name,\n\t\t\t\t\t\t\t\t \"full_name\"=> $full_name,\n\t\t\t\t\t\t\t\t \"email\"=> $email,\n\t\t\t\t\t\t\t\t \"address\"=> $address,\n\t\t\t\t\t\t\t\t \"mobile_no\"=> $mobile_no));\n\t\t$db->closeConnection();\n\t}", "title": "" }, { "docid": "d0abe1a01d08e09afbf7c357d174d629", "score": "0.6257576", "text": "public function setInsertUser($request)\n {\n $_SESSION['menu'] = \"Users\";\n\n if($_SESSION['typeUser'] != 'Admin')\n $request['typeUser'] = \"User\";\n\n\n $request['registered'] = date('Y-m-d');\n $request['pwd'] = md5($request['pwd']);\n\n return $this->insert(\"users\",$request);\n }", "title": "" }, { "docid": "9f4ea5cee201590829d569e0c6eb692f", "score": "0.62573177", "text": "public function insert() {\n $this->observer->idreceiver = $this->connection->insert(\"sus_receiver\", array(\n \"name\" => \"'\" . $this->observer->name . \"'\",\n \"address\" => \"'\" . $this->observer->address . \"'\",\n \"idcity\" => $this->observer->city->idcity,\n \"phone\" => \"'\" . $this->observer->phone . \"'\",\n \"idcustomer\" => $this->observer->customer->idcustomer), $this->user->iduser);\n }", "title": "" }, { "docid": "f381e7605b25aa0d9724a0e6fd9b1723", "score": "0.6257038", "text": "public function insert($attributes)\n {\n \\DB::table('users')->insert($attributes);\n }", "title": "" }, { "docid": "3b509573512de0ecb3284e34fb18aacb", "score": "0.62545735", "text": "function SaveNewProfile($userId,$username,$name,$bday,$gender,$relationship,$phone)\n{\n $conn = new mysqli('localhost', 'root', '', 'socialnetwork');\n\n// Check connection\n if ($conn->connect_error) {\n die(\"Connection failed: \" . $conn->connect_error);\n }\n if ($conn->query(\"insert into userinfo (userId,userName,fullname,birthdate,gender,relationship,phone) values ('$userId','$username','$name','$bday','$gender','$relationship','$phone')\") === TRUE) {\n echo(\"New record created successfully\");\n } else {\n echo \"Table insertion failed: (\" . $conn->errno . \") \" . $conn->error;\n }\n $conn->close();\n}", "title": "" }, { "docid": "95ab2e0ac6b2d3d5a962a21f0555b791", "score": "0.62420607", "text": "public function create()\n {\n // $fname = $_POST['fname'];\n // $lname = $_POST['lname'];\n // $address = $_POST['address'];\n // $postcode = $_POST['postcode'];\n // $contactnum = $_POST['contactnum'];\n // $email = $_POST['email'];\n // $username = $_POST['username'];\n // $password = $_POST['password'];\n\n DB::table('user_account_table')->insert(\n\t\t [\n\t\t \t'fname' => $_POST['fname'],\n\t\t\t\t'lname' => $_POST['lname'],\n\t\t\t\t'address' => $_POST['address'],\n\t\t\t\t'postcode' => $_POST['postcode'],\n\t\t\t\t'contactnum' => $_POST['contactnum'],\n\t\t\t\t'email' => $_POST['email'],\n\t\t\t\t'username' => $_POST['username'],\n\t\t\t\t'password' => $_POST['password']\n\t\t ]\n\t\t);\n }", "title": "" }, { "docid": "bd36f6ddb9356d7608babe9adde5d0c7", "score": "0.6233503", "text": "function insertUser($user){\n if(is_a($user, 'User')){\n //prebroji usere sa username\n try{\n $db = DB::getConnection();\n $st = $db->prepare(\"SELECT EXISTS (SELECT * FROM users WHERE username = '\".$user->username.\"')\");\n $st->execute();\n } catch( PDOException $e ) { exit( 'PDO error ' . $e->getMessage() ); }\n \n //ako ne postoji taj user unesi novi\n $tmo = $st->fetch();\n if($tmo[0] == 0){\n try{\n $db = DB::getConnection();\n $st = $db->prepare(\"INSERT INTO users (id, username, email, money, has_registered) \"\n . \"VALUES (\".$user->id.\",\".$user->username.\",\".$user->email.\",\".$user->money.\", 1)\");\n $st->execute();\n }catch( PDOException $e ) { exit( 'PDO error ' . $e->getMessage() ); }\n } else{ //inace modificiraj postojeci\n try{\n $db = DB::getConnection();\n $st = $db->prepare(\"UPDATE users SET money='\".$user->money.\"', email='\".$user->email.\"'\"\n . \"WHERE username='\".$user->username.\"'\");\n $st->execute();\n }catch( PDOException $e ) { exit( 'PDO error ' . $e->getMessage() ); }\n }\n }else{\n exit('expected variable is not User');\n } \n }", "title": "" }, { "docid": "0278b5597906d4e15070a0ee0986c93f", "score": "0.6212666", "text": "function adduser($user,$passwd,$email,$active,$ip,$nom,$prenom,$sexe,$apartement){\n\tconnect();\n\tmysql_query(\"INSERT INTO `syndic`.`users` VALUES (NULL, '$user', '$passwd', '$email', '$active', '$ip', '$nom', '$prenom','$sexe', CURRENT_TIMESTAMP,$apartement)\");\n}", "title": "" }, { "docid": "5d88a6c138fbc60762faba61d8660578", "score": "0.6212084", "text": "function insert_user($register_data)\n\t{\n\n\t\t// Register time\n\t\t$register_data['u_regdate'] = date('Y-m-d H:i:s');\n\n\t\t// Insert query builder. Build the insert query.\n\t\t$result = $this->db->insert('users', $register_data);\n\n\t\t// Get Last Inserted id\n\t\t$insert_id = $this->db->insert_id();\n\n\t\t// Return that id to the controller from here this model method will be call\n\t\treturn $insert_id;\n\t}", "title": "" }, { "docid": "9d6748542713e7f0e54fcf5c2d75bd61", "score": "0.62097055", "text": "public function CreateNewUser()\n {$data = $this->db->query(\"INSERT INTO usuarios (id,nombre,username,password,rol) VALUES (0,'\".$this->nombre.\"','\".$this->username.\"','\".$this->password.\"','\".$this->rol.\"')\");}", "title": "" }, { "docid": "08cbd584fa71a4c0f2debc3bf4336645", "score": "0.6209234", "text": "function save()\n {\n //Handle apostrophes for MySQL statements first\n $temp_name = str_replace([\"'\"], \"''\", $this->getName());\n $temp_pass = str_replace([\"'\"], \"''\", $this->getPassword());\n\n $GLOBALS['DB']->exec(\"INSERT INTO users (name, password, email, signed_in) VALUES\n ('{$temp_name}',\n '{$temp_pass}',\n '{$this->getEmail()}',\n {$this->getSignedIn()});\n \");\n\n $this->id = $GLOBALS['DB']->lastInsertId();\n }", "title": "" }, { "docid": "192ecfcd51ddf200aa794d908a67c260", "score": "0.619824", "text": "function insert() {\n\t\tif ($this->input->post(\"person_id\")) {\n\t\t\t$person_id = $this->input->post(\"person_id\");\n\t\t\t$address_id = $this->address->insert();\n\t\t\t$this->load->model(\"person_model\", \"person\");\n\t\t\t$values = [\n\t\t\t\t\"address_id\" => $address_id,\n\t\t\t];\n\t\t\t$this->person->update($person_id, $values);\n\t\t\tredirect(\"person/view/$person_id\");\n\t\t}\n\t}", "title": "" }, { "docid": "25f8058c367c953ef73bc1c7a7154491", "score": "0.6193308", "text": "function add_user($data){\n\t\treturn $this->db->insert(\"rsa_user\",$data);\n\t}", "title": "" }, { "docid": "82e9ca45c7c5a104e9a7046f4ede9fb1", "score": "0.6188837", "text": "public function insertuser()\n\t\t{\n\t\t\t$sql = \"insert into tbl_admin(name,username,email,salt,password,phone)values('$this->name','$this->username','$this->email','$this->salt','$this->password','$this->phone') \";\n\t\t\techo $sql;\n\t\t\treturn $this->insert($sql);\n\t\t}", "title": "" }, { "docid": "e28e7f987484a5f77fe25b177451571f", "score": "0.6186363", "text": "function addNewUser($userInfo)\n {\n $this->db->trans_start();\n $this->db->insert('tbl_user', $userInfo);\n $insert_id = $this->db->insert_id();\n $this->db->trans_complete();\n return $insert_id;\n }", "title": "" }, { "docid": "d2e19c2cde4215f83928ff30a85316b5", "score": "0.6168505", "text": "public function run()\n {\n $data = array(\n array('name' => 'Customer One', 'email' => 'one@gmail.com', 'password' => bcrypt('password')),\n array('name' => 'Customer Two', 'email' => 'two@gmail.com', 'password' => bcrypt('password'))\n );\n\n User::insert($data);\n }", "title": "" }, { "docid": "e5e4329caef4977d011b10ec37b94461", "score": "0.61683536", "text": "function push_user_by_reg_data($login,$password,$email,$name,$surname,$birth,$sex1)\r\n{\r\n\tmysqli_query(get_db_connect(),'INSERT INTO `users` (`login`,`password`,`email`,`name`,`surname`,`birthday`,`sex1`) VALUES(\"'.$login.'\",\"'.md5($password).'\",\"'.$email.'\",\"'.$name.'\",\"'.$surname.'\",\"'.$birth.'\",\"'.$sex1.'\")');\r\n\t//return mysqli_fetch_assoc($stmt);\r\n}", "title": "" }, { "docid": "95ff46855e7ab1cca86867dc11712c69", "score": "0.61668086", "text": "protected function _insert(Domain_Abstract $obj)\n {\n $values = array();\n $values[':username'] = $obj->getUsername();\n $values[':emailaddress'] = $obj->getEmailAddress();\n\n $stmt = $this->_db->prepare(\n \"INSERT INTO user (username, emailaddress, created) VALUES (:username, :emailaddress, NOW())\"\n );\n $result = $stmt->execute($values);\n if ($result) {\n $obj->setId($this->_db->lastInsertId());\n }\n }", "title": "" }, { "docid": "564a7f015bf3d4e8025cea18f2dc9040", "score": "0.6166687", "text": "function add_user($connection, $forename, $surname, $username, $token,$mail)\n{\n\t$query = \"INSERT INTO Users.users VALUES('$forename', '$surname', '$username', '$token', '$mail')\";\n\t$result = $connection->query($query);\n\tif (!$result) die($connection->error);\n\n}", "title": "" }, { "docid": "f5f19fce5ad0e0ab28e403b9978cf6fc", "score": "0.61641383", "text": "public function save() {\n $userModel = new UserModel();\n $data = [\n 'fullname' => $this->request->getVar('fullname'),\n 'email' => $this->request->getVar('email'),\n 'phone' => $this->request->getVar('phone'),\n ];\n $userModel->insert($data);\n return $this->response->redirect(site_url('/users'));\n }", "title": "" }, { "docid": "894d69847ff42d8c84d82f795f52626f", "score": "0.6162559", "text": "public function insert(User $item) {\n $query = \"INSERT INTO $this->tableName\n VALUES('\".$this->dbManager->escapeString($item->User_Id).\"', '\".$this->dbManager->escapeString($item->Name).\"', '\".$this->dbManager->escapeString($item->Phone).\"', '\".$this->dbManager->escapeString($item->Password).\"')\";\n return $this->dbManager->queryCustom($query);\n }", "title": "" }, { "docid": "0317e64429524e7b02b496a7ec2e7777", "score": "0.6155746", "text": "function registernew($userInfo)\n {\n $this->db->trans_start();\n $this->db->insert('tbl_user', $userInfo);\n $insert_id = $this->db->insert_id();\n $this->db->trans_complete();\n return $insert_id;\n }", "title": "" }, { "docid": "5865bb88d97baa290b9cd333d67dad1a", "score": "0.6153834", "text": "function add_user($params)\n {\n $this->db->insert('users',$params);\n return $this->db->insert_id();\n }", "title": "" }, { "docid": "e72995da7a1aa26c9d8df8e38f0b19a6", "score": "0.615177", "text": "static function add_user($firstname, $lastname, $email, $username, $password)\r\n {\r\n DB::query_database(\"INSERT into \" . DBConfig::$userTable . \" (firstname,lastname,email,username,password) VALUES ('$firstname','$lastname','$email','$username','$password')\");\r\n \r\n //retrieve the assigned login_id for the newly created user\r\n $result = DB::query_database(\"SELECT * FROM \" . DBConfig::$userTable . \" where username='$username'\");\r\n\r\n //store the result in an assoc array\r\n $info = mysqli_fetch_assoc($result);\r\n\r\n //get the auto-incremented login_id from the array\r\n $login_id = $info['login_id'];\r\n\r\n //define access for the new user\r\n $access = '1';\r\n\r\n //insert the new user in the permissions table\r\n $result = DB::query_database(\"INSERT into \" . DBConfig::$permissionsTable . \" (login_id,access) VALUES ('$login_id','$access')\");\r\n }", "title": "" }, { "docid": "c2b1d92ec3f312a09661db54d0e8c280", "score": "0.6150781", "text": "public function add_user()\n\t{\n\t\t$model = new InstallModel();\n\t\t$data = $this->security->post('data');\n\t\t$model->insert_user($data);\n\t}", "title": "" }, { "docid": "2907aab14bd1c22f67d193fc7decd2e2", "score": "0.6149479", "text": "function AddNewUser($conn, $username, $password, $firstName, $lastName, $phoneNumber, $email, $birthDay)\n{\n ///get date and time of now.\n $dateNow = date(\"yy-m-d h:m:s\");\n ///sql query to insert \"user\" to database.\n $sql = \"INSERT INTO loginproj.users (`id`, `username`, `password`, `firstName`, `lastName`, `phoneNumber`, `email`, `birthDay`, `createdAt`) \n VALUES (NULL, '$username', '$password', '$firstName', '$lastName', '$phoneNumber', '$email', '$birthDay', '$dateNow');\";\n ///execute sql query and if it was \"OK\" then return \"1\".\n if ($conn->query($sql) === true)\n return 1;\n ///if something go wrong then return \"error\"\n else\n return $sql . \" \" . $conn->error;\n}", "title": "" }, { "docid": "7e5708302d63f0a86675bf041c5d8cf8", "score": "0.61449903", "text": "static function insert($data) {\n\t\tif (is_null($data))\n\t\t\treturn FALSE;\n\t\tif (!isset($data['email']))\n\t\t\treturn FALSE;\n\t\tif (!isset($data['name']))\n\t\t\treturn FALSE;\n\t\tif (!isset($data['password']))\n\t\t\treturn FALSE;\n\n\t\t$conn = connect_db();\n\n\t\t//generate a unique random id\n\t\tdo {\n\t\t\t$new_id = create_random_num(USER_ID_LENGTH);\n\t\t} while(UsersTable::select_by_id($new_id));\n\n\t\t$salt = create_random_string(SALT_LENGTH);\n\t\t$pw_md5 = md5($data['password'] . $salt);\n\t\t$statue = 0;\n\n\t\t$sql = \"insert into \" . USERS_TABLE . \" \n\t\t\t(id, email, name, pw_md5, salt, register_datetime, status) values\n\t\t\t(:id, :email, :name, :pw_md5, :salt, CURRENT_TIMESTAMP, :status)\";\n\t\t$stmt = oci_parse($conn, $sql);\n\t\toci_bind_by_name($stmt, \":id\", $new_id);\n\t\toci_bind_by_name($stmt, \":email\", $data['email']);\n\t\toci_bind_by_name($stmt, \":name\", $data['name']);\n\t\toci_bind_by_name($stmt, \":pw_md5\", $pw_md5);\n\t\toci_bind_by_name($stmt, \":salt\", $salt);\n\t\toci_bind_by_name($stmt, \":status\", $statue); //0=good/1=ban\n\t\t$result = oci_execute($stmt);\n\n\t\t$sql = \"insert into \" . ADMINS_TABLE . \" \n\t\t\t(id, senior_id ) values\n\t\t\t(:id, :senior_id )\";\n\t\t$stmt = oci_parse($conn, $sql);\n\t\toci_bind_by_name($stmt, \":id\", $new_id);\n\t\toci_bind_by_name($stmt, \":senior_id\", $data['senior_id']);\n\t\t$result = oci_execute($stmt) && $result;\n\t\toci_close($conn);\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "8d70074bc298dd69f11645d12f17c8da", "score": "0.61361015", "text": "public function create_student($data)\n {\n $this->db->insert('accounts_tbl', $data);\n }", "title": "" } ]
6311f31d5909d44d312f5af61c187979
Set message of response. > set message from response result, if null then will be no any response message.
[ { "docid": "0257d357bdd5792bdddaed0fc60653da", "score": "0.0", "text": "public static function setMessage(string $message = ''): self\n {\n self::$message = $message;\n\n return new self;\n }", "title": "" } ]
[ { "docid": "ddaeaf0bf5612682bb32a940f432edc9", "score": "0.73722374", "text": "public function SetResponse($response, $m = '')\n\t{\n\t\t$this->response = $response;\n\t\t$this->message = $m;\n\n\t\tif(!$response && $m = '') $this->response = 'Error in proccess.';\n\t}", "title": "" }, { "docid": "d97cbd94f88759e39dad97dbe85aaefa", "score": "0.6957265", "text": "public function setResponse($response)\n {\n $xml = simplexml_load_string($response);\n if (!empty($xml->error)) {\n $this->message = (string) $xml->error;\n }\n }", "title": "" }, { "docid": "e20f671d6bd79524d076c003b62e8501", "score": "0.66610575", "text": "abstract protected function addMessagesToResponse();", "title": "" }, { "docid": "976560a2b1c34e06b264be357d5767c3", "score": "0.6652904", "text": "protected function setResponseMessage($responseMessage) {\n $this->responseMessage = $responseMessage;\n }", "title": "" }, { "docid": "70439ef95eeab0a6e89a7806ae7961d1", "score": "0.6627889", "text": "public function setMessage();", "title": "" }, { "docid": "67c0ec5444c8cee4d08c03cb0285d054", "score": "0.6357041", "text": "public function getResponseMessage()\r\n {\r\n return $this->responseMessage; \r\n }", "title": "" }, { "docid": "cbe7bb5739a26bf82c2665c339c99171", "score": "0.6344555", "text": "public function getResponseMessage();", "title": "" }, { "docid": "e5e918cf95ecfb81da35794b5b118746", "score": "0.6291466", "text": "private function setMessageToResponse(DataObject $response, array $messages): DataObject\n {\n $messageKey = $this->getRequest()->getParam('message_key', self::DEFAULT_MESSAGE_KEY);\n if ($messageKey === self::DEFAULT_MESSAGE_KEY) {\n $messages = reset($messages);\n }\n\n return $response->setData($messageKey, $messages);\n }", "title": "" }, { "docid": "96192201ac5d1ede4af49695cd5a7d51", "score": "0.6259964", "text": "public function getResponseMessage() {\n return $this->responseMessage;\n }", "title": "" }, { "docid": "1ff556950f1c7f1214f65ca6f0c92f02", "score": "0.6211573", "text": "public function setResponse()\n {\n $requestData = $this->requestData;\n\n //This is the output that will be sent to Telegram as an array\n $queryArray = [\n [\n 'name' => 'chat_id',\n 'contents' => (string)$requestData['message']['chat']['id'],\n ],\n ];\n\n $rawRequestFromUser = $this->stripOnlyText();\n\n $response = $this->bringMatchingResponse($rawRequestFromUser, $this->getCommandName());\n\n //If no response could be fetched from the database, let's explode the string and check by each word\n if (!$response) {\n $words = array_map('trim', explode(' ', $rawRequestFromUser));\n\n foreach ($words as $word) {\n $response = $this->bringMatchingResponse($word, $this->getCommandName());\n if ($response !== false) {\n break;\n }\n }\n\n //If all fails, let's set the fallback message for text\n if (!$response) {\n if ($this->getCommandName() !== null) {\n if ($this->hasMatchingCommand()) {\n array_push($queryArray, [\n 'name' => 'text',\n 'contents' => $this->defaultResponse,\n ]);\n } else {\n return false;\n }\n } else {\n array_push($queryArray, [\n 'name' => 'text',\n 'contents' => $this->defaultResponse,\n ]);\n }\n }\n }\n\n $botParameters = $this->setParams($response);\n\n // setParams makes a double check, because external plugins can refuse to respond\n if (!$this->canSendMessage() || !$botParameters) {\n return false;\n }\n \n $queryArray = array_merge($queryArray, $botParameters);\n\n return [\n 'type' => (isset($response) && $response) ? $response['response_type'] : 'text',\n 'data' => $queryArray,\n ];\n }", "title": "" }, { "docid": "b5bef1e9674f4f0608d2cd4e99aa5ac3", "score": "0.6117272", "text": "protected function setMessage(string $message)\n {\n $this->setAttribute(self::RESPONSE_MESSAGE_FIELD, $message);\n }", "title": "" }, { "docid": "cd8839db6b51f503ffaad6a817405e80", "score": "0.61078835", "text": "public function reset_response(){\n\t\t$this->success = false;\n\t\t$this->message = '';\n\t\t$this->response_code = null;\n\t\t$this->response_headers = array();\n\t\t$this->response_body = '';\n\t\t$this->has_error = false;\n\t\t$this->errors = array();\n\t\t$this->error = '';\n\t}", "title": "" }, { "docid": "7dadc9ebc1368bfe3ed64550b9bc34e8", "score": "0.6094759", "text": "public function setResponse($response)\n {\n\n $this->response = $response;\n\n }", "title": "" }, { "docid": "65144f8f69c97dc36722ef8421bfe1c1", "score": "0.60713506", "text": "public function setResponse(Response $response);", "title": "" }, { "docid": "65144f8f69c97dc36722ef8421bfe1c1", "score": "0.60713506", "text": "public function setResponse(Response $response);", "title": "" }, { "docid": "75e9c8976fddadbcd39dfaa8b2351452", "score": "0.605974", "text": "private function messageFrom($response)\n {\n return $response['message'];\n }", "title": "" }, { "docid": "b49e3b05e94e59a6ad06a2538f5e0e68", "score": "0.6028705", "text": "function set_response_message($status,$message,$data,$count, $status_code){\n\n return $message = [\n 'status' => $status,\n 'message' => $message,\n 'data' => $data,\n 'data_count' => $count,\n 'status_code' => $status_code\n ];\n\n}", "title": "" }, { "docid": "5a2def0546f35325f4cb3e050a2bd7a8", "score": "0.60265666", "text": "public function setUpdateGroupMailboxResponseMessage(?\\StructType\\EwsResponseMessageType $updateGroupMailboxResponseMessage = null): self\n {\n // validation for constraint: choice(CreateItemResponseMessage, DeleteItemResponseMessage, GetItemResponseMessage, UpdateItemResponseMessage, UpdateItemInRecoverableItemsResponseMessage, SendItemResponseMessage, DeleteFolderResponseMessage, EmptyFolderResponseMessage, CreateFolderResponseMessage, GetFolderResponseMessage, FindFolderResponseMessage, UpdateFolderResponseMessage, MoveFolderResponseMessage, CopyFolderResponseMessage, CreateFolderPathResponseMessage, CreateAttachmentResponseMessage, DeleteAttachmentResponseMessage, GetAttachmentResponseMessage, UploadItemsResponseMessage, ExportItemsResponseMessage, MarkAllItemsAsReadResponseMessage, GetClientAccessTokenResponseMessage, GetAppManifestsResponseMessage, GetClientExtensionResponseMessage, SetClientExtensionResponseMessage, GetEncryptionConfigurationResponseMessage, SetEncryptionConfigurationResponseMessage, GetOMEConfigurationResponseMessage, SetOMEConfigurationResponseMessage, FindItemResponseMessage, MoveItemResponseMessage, ArchiveItemResponseMessage, CopyItemResponseMessage, ResolveNamesResponseMessage, ExpandDLResponseMessage, GetServerTimeZonesResponseMessage, GetEventsResponseMessage, GetStreamingEventsResponseMessage, SubscribeResponseMessage, UnsubscribeResponseMessage, GetChannelEventsResponseMessage, ChannelSubscribeResponseMessage, ChannelUnsubscribeResponseMessage, SendNotificationResponseMessage, SyncFolderHierarchyResponseMessage, SyncFolderItemsResponseMessage, CreateManagedFolderResponseMessage, ConvertIdResponseMessage, GetSharingMetadataResponseMessage, RefreshSharingFolderResponseMessage, GetSharingFolderResponseMessage, CreateUserConfigurationResponseMessage, DeleteUserConfigurationResponseMessage, GetUserConfigurationResponseMessage, UpdateUserConfigurationResponseMessage, GetRoomListsResponse, GetRoomsResponse, GetRemindersResponse, PerformReminderActionResponse, ApplyConversationActionResponseMessage, FindMailboxStatisticsByKeywordsResponseMessage, GetSearchableMailboxesResponseMessage, SearchMailboxesResponseMessage, GetDiscoverySearchConfigurationResponseMessage, GetHoldOnMailboxesResponseMessage, SetHoldOnMailboxesResponseMessage, GetNonIndexableItemStatisticsResponseMessage, GetNonIndexableItemDetailsResponseMessage, FindPeopleResponseMessage, GetPasswordExpirationDateResponse, GetPersonaResponseMessage, GetConversationItemsResponseMessage, GetUserRetentionPolicyTagsResponseMessage, GetUserPhotoResponseMessage, MarkAsJunkResponseMessage, UpdateMailboxAssociationResponseMessage, UpdateGroupMailboxResponseMessage, PostModernGroupItemResponseMessage, GetUnifiedGroupUnseenDataResponseMessage)\n if ('' !== ($updateGroupMailboxResponseMessageChoiceErrorMessage = self::validateUpdateGroupMailboxResponseMessageForChoiceConstraintsFromSetUpdateGroupMailboxResponseMessage($updateGroupMailboxResponseMessage))) {\n throw new InvalidArgumentException($updateGroupMailboxResponseMessageChoiceErrorMessage, __LINE__);\n }\n if (is_null($updateGroupMailboxResponseMessage) || (is_array($updateGroupMailboxResponseMessage) && empty($updateGroupMailboxResponseMessage))) {\n unset($this->UpdateGroupMailboxResponseMessage);\n } else {\n $this->UpdateGroupMailboxResponseMessage = $updateGroupMailboxResponseMessage;\n }\n \n return $this;\n }", "title": "" }, { "docid": "329de517eacde0c098eb9c71a0f1f706", "score": "0.5963165", "text": "public function setResponseStatus( $code, $message )\r\n\t{\r\n\t\t$this->responseCode = (int)$code;\r\n\t\t$this->responseMessage = $message;\r\n\t}", "title": "" }, { "docid": "19ae85d3d5b28a840ef6293400d15b5d", "score": "0.5950936", "text": "private function messageFrom($response)\n {\n return $response['TextResponse'];\n }", "title": "" }, { "docid": "ed3fa643ebc3bce660e585b69ffa8f86", "score": "0.59173536", "text": "private function SetResponse($type){\n $this->response = $this->ReplaceHolded(GetMessage($type));\n }", "title": "" }, { "docid": "d6df01affaddc0da2f806d97491bf795", "score": "0.5911951", "text": "public function setGetAttachmentResponseMessage(?\\StructType\\EwsAttachmentInfoResponseMessageType $getAttachmentResponseMessage = null): self\n {\n // validation for constraint: choice(CreateItemResponseMessage, DeleteItemResponseMessage, GetItemResponseMessage, UpdateItemResponseMessage, UpdateItemInRecoverableItemsResponseMessage, SendItemResponseMessage, DeleteFolderResponseMessage, EmptyFolderResponseMessage, CreateFolderResponseMessage, GetFolderResponseMessage, FindFolderResponseMessage, UpdateFolderResponseMessage, MoveFolderResponseMessage, CopyFolderResponseMessage, CreateFolderPathResponseMessage, CreateAttachmentResponseMessage, DeleteAttachmentResponseMessage, GetAttachmentResponseMessage, UploadItemsResponseMessage, ExportItemsResponseMessage, MarkAllItemsAsReadResponseMessage, GetClientAccessTokenResponseMessage, GetAppManifestsResponseMessage, GetClientExtensionResponseMessage, SetClientExtensionResponseMessage, GetEncryptionConfigurationResponseMessage, SetEncryptionConfigurationResponseMessage, GetOMEConfigurationResponseMessage, SetOMEConfigurationResponseMessage, FindItemResponseMessage, MoveItemResponseMessage, ArchiveItemResponseMessage, CopyItemResponseMessage, ResolveNamesResponseMessage, ExpandDLResponseMessage, GetServerTimeZonesResponseMessage, GetEventsResponseMessage, GetStreamingEventsResponseMessage, SubscribeResponseMessage, UnsubscribeResponseMessage, GetChannelEventsResponseMessage, ChannelSubscribeResponseMessage, ChannelUnsubscribeResponseMessage, SendNotificationResponseMessage, SyncFolderHierarchyResponseMessage, SyncFolderItemsResponseMessage, CreateManagedFolderResponseMessage, ConvertIdResponseMessage, GetSharingMetadataResponseMessage, RefreshSharingFolderResponseMessage, GetSharingFolderResponseMessage, CreateUserConfigurationResponseMessage, DeleteUserConfigurationResponseMessage, GetUserConfigurationResponseMessage, UpdateUserConfigurationResponseMessage, GetRoomListsResponse, GetRoomsResponse, GetRemindersResponse, PerformReminderActionResponse, ApplyConversationActionResponseMessage, FindMailboxStatisticsByKeywordsResponseMessage, GetSearchableMailboxesResponseMessage, SearchMailboxesResponseMessage, GetDiscoverySearchConfigurationResponseMessage, GetHoldOnMailboxesResponseMessage, SetHoldOnMailboxesResponseMessage, GetNonIndexableItemStatisticsResponseMessage, GetNonIndexableItemDetailsResponseMessage, FindPeopleResponseMessage, GetPasswordExpirationDateResponse, GetPersonaResponseMessage, GetConversationItemsResponseMessage, GetUserRetentionPolicyTagsResponseMessage, GetUserPhotoResponseMessage, MarkAsJunkResponseMessage, UpdateMailboxAssociationResponseMessage, UpdateGroupMailboxResponseMessage, PostModernGroupItemResponseMessage, GetUnifiedGroupUnseenDataResponseMessage)\n if ('' !== ($getAttachmentResponseMessageChoiceErrorMessage = self::validateGetAttachmentResponseMessageForChoiceConstraintsFromSetGetAttachmentResponseMessage($getAttachmentResponseMessage))) {\n throw new InvalidArgumentException($getAttachmentResponseMessageChoiceErrorMessage, __LINE__);\n }\n if (is_null($getAttachmentResponseMessage) || (is_array($getAttachmentResponseMessage) && empty($getAttachmentResponseMessage))) {\n unset($this->GetAttachmentResponseMessage);\n } else {\n $this->GetAttachmentResponseMessage = $getAttachmentResponseMessage;\n }\n \n return $this;\n }", "title": "" }, { "docid": "b53c93b7f81e84bf2c941c7d41966914", "score": "0.5888023", "text": "public function setMessage() {\n\t\tif (isset($_SESSION['flashMessage'])) {\n\t\t\t$id = $_SESSION['flashMessage'];\n\t\t\tswitch ($id) {\n\t\t\t\tcase 0:\n\t\t\t\t\tself::$message = '';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tself::$message = self::$loginMessage;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tself::$message = self::$logoutMessage;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tself::$message = self::$wrongCredentials;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tself::$message = self::$missingUserName;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tself::$message = self::$missingPassword;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tself::$message = '';\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t} \n\t\tunset($_SESSION['flashMessage']);\n\t}", "title": "" }, { "docid": "870f509cdac86073868245e4b998a924", "score": "0.5883345", "text": "public function setMessage($message);", "title": "" }, { "docid": "870f509cdac86073868245e4b998a924", "score": "0.5883345", "text": "public function setMessage($message);", "title": "" }, { "docid": "870f509cdac86073868245e4b998a924", "score": "0.5883345", "text": "public function setMessage($message);", "title": "" }, { "docid": "870f509cdac86073868245e4b998a924", "score": "0.5883345", "text": "public function setMessage($message);", "title": "" }, { "docid": "870f509cdac86073868245e4b998a924", "score": "0.5883345", "text": "public function setMessage($message);", "title": "" }, { "docid": "b779f8b59e63d1b879853fee88f853eb", "score": "0.5862465", "text": "protected function addResponseMsgReplacements(Code $code, Response $response) {\n\t\t$response->addMsgReplacement(\"{system}\", $code->system);\n\t\t$response->addMsgReplacement(\"{sysop}\", $code->sysop);\n\t}", "title": "" }, { "docid": "5172d7db2670ea879138a015a60d8b14", "score": "0.58066404", "text": "public function resetResponse($response = null)\n {\n\n if ($response)\n $this->response = $response;\n else\n $this->response = BuizCore::$env->getResponse();\n\n }", "title": "" }, { "docid": "eff6ffe5f2907dad1464af7ee58e06bd", "score": "0.5801994", "text": "public function setResponse(Response $response)\n {\n $this->response = $response;\n }", "title": "" }, { "docid": "8e5309a9880daac999ba7620ecb65f9e", "score": "0.5798711", "text": "public function getMessage()\n {\n return isset($this->data['response_message']) ? $this->data['response_message'] : null;\n }", "title": "" }, { "docid": "5773f8dc5e3ae4d38f730270e471ed0b", "score": "0.5792704", "text": "public function setResponse(Response $response)\n\t\t{\n\t\t\t$this->response = $response;\n\t\t\t$this->stop();\n\t\t}", "title": "" }, { "docid": "ccde9ce3d5f0c0ba1470a63d7c244cd8", "score": "0.57752335", "text": "public function setMessage(string $message): void\n {\n $this->_ruleResultMessage = $message;\n }", "title": "" }, { "docid": "0396a1fd9ae7cdfbcda71fe30fed8113", "score": "0.5770105", "text": "public static function responseMsg()\n {\n //$postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n $postStr=file_get_contents(\"php://input\");\n\n //extract post data\n if (!empty($postStr)){\n\n $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n // header('Location: '.\"./test.php?post=\".json_encode($postObj));\n\n $messageFactory=new CMessageFactory();\n $message=$messageFactory->messageCreate($postObj);\n\n if(empty($message))\n {\n echo \"message is not defined!\";\n }\n $message->responseMsg($postObj);\n\n }else {\n echo \"\";\n exit;\n }\n\n }", "title": "" }, { "docid": "33682e131979f0758aedcf8fdd59d3c5", "score": "0.5742824", "text": "function setMessage($message);", "title": "" }, { "docid": "ebc8091d1defae2d4587c8e952a1286c", "score": "0.5724991", "text": "public function setSetClientExtensionResponseMessage(?\\StructType\\EwsResponseMessageType $setClientExtensionResponseMessage = null): self\n {\n // validation for constraint: choice(CreateItemResponseMessage, DeleteItemResponseMessage, GetItemResponseMessage, UpdateItemResponseMessage, UpdateItemInRecoverableItemsResponseMessage, SendItemResponseMessage, DeleteFolderResponseMessage, EmptyFolderResponseMessage, CreateFolderResponseMessage, GetFolderResponseMessage, FindFolderResponseMessage, UpdateFolderResponseMessage, MoveFolderResponseMessage, CopyFolderResponseMessage, CreateFolderPathResponseMessage, CreateAttachmentResponseMessage, DeleteAttachmentResponseMessage, GetAttachmentResponseMessage, UploadItemsResponseMessage, ExportItemsResponseMessage, MarkAllItemsAsReadResponseMessage, GetClientAccessTokenResponseMessage, GetAppManifestsResponseMessage, GetClientExtensionResponseMessage, SetClientExtensionResponseMessage, GetEncryptionConfigurationResponseMessage, SetEncryptionConfigurationResponseMessage, GetOMEConfigurationResponseMessage, SetOMEConfigurationResponseMessage, FindItemResponseMessage, MoveItemResponseMessage, ArchiveItemResponseMessage, CopyItemResponseMessage, ResolveNamesResponseMessage, ExpandDLResponseMessage, GetServerTimeZonesResponseMessage, GetEventsResponseMessage, GetStreamingEventsResponseMessage, SubscribeResponseMessage, UnsubscribeResponseMessage, GetChannelEventsResponseMessage, ChannelSubscribeResponseMessage, ChannelUnsubscribeResponseMessage, SendNotificationResponseMessage, SyncFolderHierarchyResponseMessage, SyncFolderItemsResponseMessage, CreateManagedFolderResponseMessage, ConvertIdResponseMessage, GetSharingMetadataResponseMessage, RefreshSharingFolderResponseMessage, GetSharingFolderResponseMessage, CreateUserConfigurationResponseMessage, DeleteUserConfigurationResponseMessage, GetUserConfigurationResponseMessage, UpdateUserConfigurationResponseMessage, GetRoomListsResponse, GetRoomsResponse, GetRemindersResponse, PerformReminderActionResponse, ApplyConversationActionResponseMessage, FindMailboxStatisticsByKeywordsResponseMessage, GetSearchableMailboxesResponseMessage, SearchMailboxesResponseMessage, GetDiscoverySearchConfigurationResponseMessage, GetHoldOnMailboxesResponseMessage, SetHoldOnMailboxesResponseMessage, GetNonIndexableItemStatisticsResponseMessage, GetNonIndexableItemDetailsResponseMessage, FindPeopleResponseMessage, GetPasswordExpirationDateResponse, GetPersonaResponseMessage, GetConversationItemsResponseMessage, GetUserRetentionPolicyTagsResponseMessage, GetUserPhotoResponseMessage, MarkAsJunkResponseMessage, UpdateMailboxAssociationResponseMessage, UpdateGroupMailboxResponseMessage, PostModernGroupItemResponseMessage, GetUnifiedGroupUnseenDataResponseMessage)\n if ('' !== ($setClientExtensionResponseMessageChoiceErrorMessage = self::validateSetClientExtensionResponseMessageForChoiceConstraintsFromSetSetClientExtensionResponseMessage($setClientExtensionResponseMessage))) {\n throw new InvalidArgumentException($setClientExtensionResponseMessageChoiceErrorMessage, __LINE__);\n }\n if (is_null($setClientExtensionResponseMessage) || (is_array($setClientExtensionResponseMessage) && empty($setClientExtensionResponseMessage))) {\n unset($this->SetClientExtensionResponseMessage);\n } else {\n $this->SetClientExtensionResponseMessage = $setClientExtensionResponseMessage;\n }\n \n return $this;\n }", "title": "" }, { "docid": "803b8de63df9e6fa07067f864b267e64", "score": "0.5721123", "text": "protected function setMessage( $value ){\n\t\t$this -> message = $value;\n\t}", "title": "" }, { "docid": "c4fcc7e2488a39c374c4bdae1f87856b", "score": "0.5694943", "text": "public function setGetSharingMetadataResponseMessage(?\\StructType\\EwsGetSharingMetadataResponseMessageType $getSharingMetadataResponseMessage = null): self\n {\n // validation for constraint: choice(CreateItemResponseMessage, DeleteItemResponseMessage, GetItemResponseMessage, UpdateItemResponseMessage, UpdateItemInRecoverableItemsResponseMessage, SendItemResponseMessage, DeleteFolderResponseMessage, EmptyFolderResponseMessage, CreateFolderResponseMessage, GetFolderResponseMessage, FindFolderResponseMessage, UpdateFolderResponseMessage, MoveFolderResponseMessage, CopyFolderResponseMessage, CreateFolderPathResponseMessage, CreateAttachmentResponseMessage, DeleteAttachmentResponseMessage, GetAttachmentResponseMessage, UploadItemsResponseMessage, ExportItemsResponseMessage, MarkAllItemsAsReadResponseMessage, GetClientAccessTokenResponseMessage, GetAppManifestsResponseMessage, GetClientExtensionResponseMessage, SetClientExtensionResponseMessage, GetEncryptionConfigurationResponseMessage, SetEncryptionConfigurationResponseMessage, GetOMEConfigurationResponseMessage, SetOMEConfigurationResponseMessage, FindItemResponseMessage, MoveItemResponseMessage, ArchiveItemResponseMessage, CopyItemResponseMessage, ResolveNamesResponseMessage, ExpandDLResponseMessage, GetServerTimeZonesResponseMessage, GetEventsResponseMessage, GetStreamingEventsResponseMessage, SubscribeResponseMessage, UnsubscribeResponseMessage, GetChannelEventsResponseMessage, ChannelSubscribeResponseMessage, ChannelUnsubscribeResponseMessage, SendNotificationResponseMessage, SyncFolderHierarchyResponseMessage, SyncFolderItemsResponseMessage, CreateManagedFolderResponseMessage, ConvertIdResponseMessage, GetSharingMetadataResponseMessage, RefreshSharingFolderResponseMessage, GetSharingFolderResponseMessage, CreateUserConfigurationResponseMessage, DeleteUserConfigurationResponseMessage, GetUserConfigurationResponseMessage, UpdateUserConfigurationResponseMessage, GetRoomListsResponse, GetRoomsResponse, GetRemindersResponse, PerformReminderActionResponse, ApplyConversationActionResponseMessage, FindMailboxStatisticsByKeywordsResponseMessage, GetSearchableMailboxesResponseMessage, SearchMailboxesResponseMessage, GetDiscoverySearchConfigurationResponseMessage, GetHoldOnMailboxesResponseMessage, SetHoldOnMailboxesResponseMessage, GetNonIndexableItemStatisticsResponseMessage, GetNonIndexableItemDetailsResponseMessage, FindPeopleResponseMessage, GetPasswordExpirationDateResponse, GetPersonaResponseMessage, GetConversationItemsResponseMessage, GetUserRetentionPolicyTagsResponseMessage, GetUserPhotoResponseMessage, MarkAsJunkResponseMessage, UpdateMailboxAssociationResponseMessage, UpdateGroupMailboxResponseMessage, PostModernGroupItemResponseMessage, GetUnifiedGroupUnseenDataResponseMessage)\n if ('' !== ($getSharingMetadataResponseMessageChoiceErrorMessage = self::validateGetSharingMetadataResponseMessageForChoiceConstraintsFromSetGetSharingMetadataResponseMessage($getSharingMetadataResponseMessage))) {\n throw new InvalidArgumentException($getSharingMetadataResponseMessageChoiceErrorMessage, __LINE__);\n }\n if (is_null($getSharingMetadataResponseMessage) || (is_array($getSharingMetadataResponseMessage) && empty($getSharingMetadataResponseMessage))) {\n unset($this->GetSharingMetadataResponseMessage);\n } else {\n $this->GetSharingMetadataResponseMessage = $getSharingMetadataResponseMessage;\n }\n \n return $this;\n }", "title": "" }, { "docid": "68d75c335579c9353791823634b07cbb", "score": "0.5691578", "text": "public function setResponse($response)\n {\n if ($response instanceof GuzzleResponse) {\n $contentType = $response->getHeader('Content-Type');\n\n if (array_shift($contentType) === 'application/json; charset=utf-8') {\n $response = $response->getBody();\n $response = json_decode($response, true);\n } else {\n $response = ['raw' => (string) $response->getBody()];\n }\n }\n\n $this->response = $response;\n\n if ($this->response('error') ||\n $this->response('errors') ||\n $this->response('succeeded') === false) {\n $this->status = 'error';\n } else {\n $this->status = 'success';\n }\n\n return $this;\n }", "title": "" }, { "docid": "7c52d961b6e91b7e8426364c3f623da1", "score": "0.56879026", "text": "public function manuallySetResponse(TSS_DataX_IResponse $response)\n {\n $this->response = $response;\n }", "title": "" }, { "docid": "2463b103f548315dd53d6de6477eb47e", "score": "0.56844205", "text": "public function respond ()\n {\n echo $this->themessage;\n }", "title": "" }, { "docid": "8dc6ecab2c74ef16580e703f4da1f789", "score": "0.5682927", "text": "public function setResponse($response)\n\t{\n\t\tif ($response instanceof GuzzleResponse)\n\t\t{\n\t\t\tif ($response->getHeader('Content-Type') === 'application/xml; charset=utf-8')\n\t\t\t{\n\t\t\t\t$response = $response->xml();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$response = ['raw' => (string) $response->getBody()];\n\t\t\t}\n\t\t}\n\n\t\t$response = json_decode(json_encode((array) $response), true);\n\n\t\t$this->response = $this->cleanArray($response);\n\t}", "title": "" }, { "docid": "7472207369e6701987938604c2bcf8b2", "score": "0.56637996", "text": "public function setResponse(Response $obj);", "title": "" }, { "docid": "d3d5c19a96c53e248375993a589ea0af", "score": "0.5659386", "text": "public function setPostModernGroupItemResponseMessage(?\\StructType\\EwsResponseMessageType $postModernGroupItemResponseMessage = null): self\n {\n // validation for constraint: choice(CreateItemResponseMessage, DeleteItemResponseMessage, GetItemResponseMessage, UpdateItemResponseMessage, UpdateItemInRecoverableItemsResponseMessage, SendItemResponseMessage, DeleteFolderResponseMessage, EmptyFolderResponseMessage, CreateFolderResponseMessage, GetFolderResponseMessage, FindFolderResponseMessage, UpdateFolderResponseMessage, MoveFolderResponseMessage, CopyFolderResponseMessage, CreateFolderPathResponseMessage, CreateAttachmentResponseMessage, DeleteAttachmentResponseMessage, GetAttachmentResponseMessage, UploadItemsResponseMessage, ExportItemsResponseMessage, MarkAllItemsAsReadResponseMessage, GetClientAccessTokenResponseMessage, GetAppManifestsResponseMessage, GetClientExtensionResponseMessage, SetClientExtensionResponseMessage, GetEncryptionConfigurationResponseMessage, SetEncryptionConfigurationResponseMessage, GetOMEConfigurationResponseMessage, SetOMEConfigurationResponseMessage, FindItemResponseMessage, MoveItemResponseMessage, ArchiveItemResponseMessage, CopyItemResponseMessage, ResolveNamesResponseMessage, ExpandDLResponseMessage, GetServerTimeZonesResponseMessage, GetEventsResponseMessage, GetStreamingEventsResponseMessage, SubscribeResponseMessage, UnsubscribeResponseMessage, GetChannelEventsResponseMessage, ChannelSubscribeResponseMessage, ChannelUnsubscribeResponseMessage, SendNotificationResponseMessage, SyncFolderHierarchyResponseMessage, SyncFolderItemsResponseMessage, CreateManagedFolderResponseMessage, ConvertIdResponseMessage, GetSharingMetadataResponseMessage, RefreshSharingFolderResponseMessage, GetSharingFolderResponseMessage, CreateUserConfigurationResponseMessage, DeleteUserConfigurationResponseMessage, GetUserConfigurationResponseMessage, UpdateUserConfigurationResponseMessage, GetRoomListsResponse, GetRoomsResponse, GetRemindersResponse, PerformReminderActionResponse, ApplyConversationActionResponseMessage, FindMailboxStatisticsByKeywordsResponseMessage, GetSearchableMailboxesResponseMessage, SearchMailboxesResponseMessage, GetDiscoverySearchConfigurationResponseMessage, GetHoldOnMailboxesResponseMessage, SetHoldOnMailboxesResponseMessage, GetNonIndexableItemStatisticsResponseMessage, GetNonIndexableItemDetailsResponseMessage, FindPeopleResponseMessage, GetPasswordExpirationDateResponse, GetPersonaResponseMessage, GetConversationItemsResponseMessage, GetUserRetentionPolicyTagsResponseMessage, GetUserPhotoResponseMessage, MarkAsJunkResponseMessage, UpdateMailboxAssociationResponseMessage, UpdateGroupMailboxResponseMessage, PostModernGroupItemResponseMessage, GetUnifiedGroupUnseenDataResponseMessage)\n if ('' !== ($postModernGroupItemResponseMessageChoiceErrorMessage = self::validatePostModernGroupItemResponseMessageForChoiceConstraintsFromSetPostModernGroupItemResponseMessage($postModernGroupItemResponseMessage))) {\n throw new InvalidArgumentException($postModernGroupItemResponseMessageChoiceErrorMessage, __LINE__);\n }\n if (is_null($postModernGroupItemResponseMessage) || (is_array($postModernGroupItemResponseMessage) && empty($postModernGroupItemResponseMessage))) {\n unset($this->PostModernGroupItemResponseMessage);\n } else {\n $this->PostModernGroupItemResponseMessage = $postModernGroupItemResponseMessage;\n }\n \n return $this;\n }", "title": "" }, { "docid": "d2bae932590f324314c835e1d59b2c33", "score": "0.56501186", "text": "private function setResponse($response)\n\t{\n\t\t// remove previous response data\n\t\tunset($this->response);\n\t\t// set new response data\n\t\tif (! isset($response[0]) || !is_array($response[0]))\n\t\t{\n\t\t\t$this->response['response'][0] = array(\n\t\t\t\t'code' => $response['status'],\n\t\t\t\t'text' => $this->getResponseText($response['status']),\n\t\t\t\t'error' => (isset($response['error']) ? $response['error'] : '')\n\t\t\t);\n\t\t\t$this->response['data'][0] = $response['data'];\n\t\t\t$this->response['token'][0] = $response['token'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// loop through each response\n\t\t\tforeach($response as $num => $data)\n\t\t\t{\n\n\t\t\t\t$this->response['response'][$num] = array(\n\t\t\t\t\t'code' => $data['status'],\n\t\t\t\t\t'text' => $this->getResponseText($data['status']),\n\t\t\t\t\t'error' => (isset($data['error']) ? $data['error'] : '')\n\t\t\t\t);\n\t\t\t\t$tmp = array();\n\t\t\t\t$id = 0;\n\n\t\t\t\t// is there an array returned\n\t\t\t\tif (is_array($data['data']))\n\t\t\t\t{\n\t\t\t\t\tforeach($data['data'] as $n => $v)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (is_array($v))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tforeach($v as $key => $val)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$tmp[$n][$key] = $val;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$tmp[$n] = $v;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$id++;\n\t\t\t\t\t$this->response['data'][$num] = $tmp;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// the data response is text\n\t\t\t\t\t$this->response['data'][$num] = $data['data'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2bdc634d474feaff5fa899b25da04c5c", "score": "0.56497633", "text": "public function setErrorFromResponse(Response $response)\n {\n $this->setErrorId($response->getErrorId());\n $this->setErrorName($response->getErrorName());\n $this->setErrorType($response->getErrorType());\n $this->setErrorInfo($response->getErrorInfo());\n $this->setErrorMessage($response->getErrorMessage());\n $this->setPerunException($response->isPerunException());\n \n $this->message = sprintf(\"Perun %s [%s]: [%s] %s (%s)\", ($this->isPerunException()) ? 'exception' : 'error', \n $this->getErrorId(), $this->getErrorName(), $this->getErrorMessage(), $this->getErrorInfo());\n }", "title": "" }, { "docid": "20d47b2404fe00d91fd61f8b983acd12", "score": "0.56386", "text": "public function setUpdateItemResponseMessage(?\\StructType\\EwsUpdateItemResponseMessageType $updateItemResponseMessage = null): self\n {\n // validation for constraint: choice(CreateItemResponseMessage, DeleteItemResponseMessage, GetItemResponseMessage, UpdateItemResponseMessage, UpdateItemInRecoverableItemsResponseMessage, SendItemResponseMessage, DeleteFolderResponseMessage, EmptyFolderResponseMessage, CreateFolderResponseMessage, GetFolderResponseMessage, FindFolderResponseMessage, UpdateFolderResponseMessage, MoveFolderResponseMessage, CopyFolderResponseMessage, CreateFolderPathResponseMessage, CreateAttachmentResponseMessage, DeleteAttachmentResponseMessage, GetAttachmentResponseMessage, UploadItemsResponseMessage, ExportItemsResponseMessage, MarkAllItemsAsReadResponseMessage, GetClientAccessTokenResponseMessage, GetAppManifestsResponseMessage, GetClientExtensionResponseMessage, SetClientExtensionResponseMessage, GetEncryptionConfigurationResponseMessage, SetEncryptionConfigurationResponseMessage, GetOMEConfigurationResponseMessage, SetOMEConfigurationResponseMessage, FindItemResponseMessage, MoveItemResponseMessage, ArchiveItemResponseMessage, CopyItemResponseMessage, ResolveNamesResponseMessage, ExpandDLResponseMessage, GetServerTimeZonesResponseMessage, GetEventsResponseMessage, GetStreamingEventsResponseMessage, SubscribeResponseMessage, UnsubscribeResponseMessage, GetChannelEventsResponseMessage, ChannelSubscribeResponseMessage, ChannelUnsubscribeResponseMessage, SendNotificationResponseMessage, SyncFolderHierarchyResponseMessage, SyncFolderItemsResponseMessage, CreateManagedFolderResponseMessage, ConvertIdResponseMessage, GetSharingMetadataResponseMessage, RefreshSharingFolderResponseMessage, GetSharingFolderResponseMessage, CreateUserConfigurationResponseMessage, DeleteUserConfigurationResponseMessage, GetUserConfigurationResponseMessage, UpdateUserConfigurationResponseMessage, GetRoomListsResponse, GetRoomsResponse, GetRemindersResponse, PerformReminderActionResponse, ApplyConversationActionResponseMessage, FindMailboxStatisticsByKeywordsResponseMessage, GetSearchableMailboxesResponseMessage, SearchMailboxesResponseMessage, GetDiscoverySearchConfigurationResponseMessage, GetHoldOnMailboxesResponseMessage, SetHoldOnMailboxesResponseMessage, GetNonIndexableItemStatisticsResponseMessage, GetNonIndexableItemDetailsResponseMessage, FindPeopleResponseMessage, GetPasswordExpirationDateResponse, GetPersonaResponseMessage, GetConversationItemsResponseMessage, GetUserRetentionPolicyTagsResponseMessage, GetUserPhotoResponseMessage, MarkAsJunkResponseMessage, UpdateMailboxAssociationResponseMessage, UpdateGroupMailboxResponseMessage, PostModernGroupItemResponseMessage, GetUnifiedGroupUnseenDataResponseMessage)\n if ('' !== ($updateItemResponseMessageChoiceErrorMessage = self::validateUpdateItemResponseMessageForChoiceConstraintsFromSetUpdateItemResponseMessage($updateItemResponseMessage))) {\n throw new InvalidArgumentException($updateItemResponseMessageChoiceErrorMessage, __LINE__);\n }\n if (is_null($updateItemResponseMessage) || (is_array($updateItemResponseMessage) && empty($updateItemResponseMessage))) {\n unset($this->UpdateItemResponseMessage);\n } else {\n $this->UpdateItemResponseMessage = $updateItemResponseMessage;\n }\n \n return $this;\n }", "title": "" }, { "docid": "85f33191ed6b0f2986a428385a3b5b6d", "score": "0.5637354", "text": "private function setResponse(&$data)\n {\n http_response_code(200);\n $data['response'] = http_response_code();\n }", "title": "" }, { "docid": "488f6813ac0d56199da3938fb7715a74", "score": "0.5624462", "text": "public function setMessageResponse(Request $request)\n {\n $response = $this->commentRespository->setMessageResponse($request);\n return response()->json($response, $response['code']);\n }", "title": "" }, { "docid": "6b83e8107f9504d40c6050c19197065f", "score": "0.56066895", "text": "public function message()\n {\n return $this->response('message');\n }", "title": "" }, { "docid": "dda3720caaea09a53054fa6f491730f6", "score": "0.56033814", "text": "public function setResponse($response)\n {\n $class = \"ECash_DataX_Responses_\".$response;\n $this->response = new $class();\n }", "title": "" }, { "docid": "58882b50ba5abc50ef3c182ec4be52e9", "score": "0.5602696", "text": "public function setCreateAttachmentResponseMessage(?\\StructType\\EwsAttachmentInfoResponseMessageType $createAttachmentResponseMessage = null): self\n {\n // validation for constraint: choice(CreateItemResponseMessage, DeleteItemResponseMessage, GetItemResponseMessage, UpdateItemResponseMessage, UpdateItemInRecoverableItemsResponseMessage, SendItemResponseMessage, DeleteFolderResponseMessage, EmptyFolderResponseMessage, CreateFolderResponseMessage, GetFolderResponseMessage, FindFolderResponseMessage, UpdateFolderResponseMessage, MoveFolderResponseMessage, CopyFolderResponseMessage, CreateFolderPathResponseMessage, CreateAttachmentResponseMessage, DeleteAttachmentResponseMessage, GetAttachmentResponseMessage, UploadItemsResponseMessage, ExportItemsResponseMessage, MarkAllItemsAsReadResponseMessage, GetClientAccessTokenResponseMessage, GetAppManifestsResponseMessage, GetClientExtensionResponseMessage, SetClientExtensionResponseMessage, GetEncryptionConfigurationResponseMessage, SetEncryptionConfigurationResponseMessage, GetOMEConfigurationResponseMessage, SetOMEConfigurationResponseMessage, FindItemResponseMessage, MoveItemResponseMessage, ArchiveItemResponseMessage, CopyItemResponseMessage, ResolveNamesResponseMessage, ExpandDLResponseMessage, GetServerTimeZonesResponseMessage, GetEventsResponseMessage, GetStreamingEventsResponseMessage, SubscribeResponseMessage, UnsubscribeResponseMessage, GetChannelEventsResponseMessage, ChannelSubscribeResponseMessage, ChannelUnsubscribeResponseMessage, SendNotificationResponseMessage, SyncFolderHierarchyResponseMessage, SyncFolderItemsResponseMessage, CreateManagedFolderResponseMessage, ConvertIdResponseMessage, GetSharingMetadataResponseMessage, RefreshSharingFolderResponseMessage, GetSharingFolderResponseMessage, CreateUserConfigurationResponseMessage, DeleteUserConfigurationResponseMessage, GetUserConfigurationResponseMessage, UpdateUserConfigurationResponseMessage, GetRoomListsResponse, GetRoomsResponse, GetRemindersResponse, PerformReminderActionResponse, ApplyConversationActionResponseMessage, FindMailboxStatisticsByKeywordsResponseMessage, GetSearchableMailboxesResponseMessage, SearchMailboxesResponseMessage, GetDiscoverySearchConfigurationResponseMessage, GetHoldOnMailboxesResponseMessage, SetHoldOnMailboxesResponseMessage, GetNonIndexableItemStatisticsResponseMessage, GetNonIndexableItemDetailsResponseMessage, FindPeopleResponseMessage, GetPasswordExpirationDateResponse, GetPersonaResponseMessage, GetConversationItemsResponseMessage, GetUserRetentionPolicyTagsResponseMessage, GetUserPhotoResponseMessage, MarkAsJunkResponseMessage, UpdateMailboxAssociationResponseMessage, UpdateGroupMailboxResponseMessage, PostModernGroupItemResponseMessage, GetUnifiedGroupUnseenDataResponseMessage)\n if ('' !== ($createAttachmentResponseMessageChoiceErrorMessage = self::validateCreateAttachmentResponseMessageForChoiceConstraintsFromSetCreateAttachmentResponseMessage($createAttachmentResponseMessage))) {\n throw new InvalidArgumentException($createAttachmentResponseMessageChoiceErrorMessage, __LINE__);\n }\n if (is_null($createAttachmentResponseMessage) || (is_array($createAttachmentResponseMessage) && empty($createAttachmentResponseMessage))) {\n unset($this->CreateAttachmentResponseMessage);\n } else {\n $this->CreateAttachmentResponseMessage = $createAttachmentResponseMessage;\n }\n \n return $this;\n }", "title": "" }, { "docid": "01066177ee21a4b20d133fe27e6bca47", "score": "0.5599776", "text": "public function setGetItemResponseMessage(?\\StructType\\EwsItemInfoResponseMessageType $getItemResponseMessage = null): self\n {\n // validation for constraint: choice(CreateItemResponseMessage, DeleteItemResponseMessage, GetItemResponseMessage, UpdateItemResponseMessage, UpdateItemInRecoverableItemsResponseMessage, SendItemResponseMessage, DeleteFolderResponseMessage, EmptyFolderResponseMessage, CreateFolderResponseMessage, GetFolderResponseMessage, FindFolderResponseMessage, UpdateFolderResponseMessage, MoveFolderResponseMessage, CopyFolderResponseMessage, CreateFolderPathResponseMessage, CreateAttachmentResponseMessage, DeleteAttachmentResponseMessage, GetAttachmentResponseMessage, UploadItemsResponseMessage, ExportItemsResponseMessage, MarkAllItemsAsReadResponseMessage, GetClientAccessTokenResponseMessage, GetAppManifestsResponseMessage, GetClientExtensionResponseMessage, SetClientExtensionResponseMessage, GetEncryptionConfigurationResponseMessage, SetEncryptionConfigurationResponseMessage, GetOMEConfigurationResponseMessage, SetOMEConfigurationResponseMessage, FindItemResponseMessage, MoveItemResponseMessage, ArchiveItemResponseMessage, CopyItemResponseMessage, ResolveNamesResponseMessage, ExpandDLResponseMessage, GetServerTimeZonesResponseMessage, GetEventsResponseMessage, GetStreamingEventsResponseMessage, SubscribeResponseMessage, UnsubscribeResponseMessage, GetChannelEventsResponseMessage, ChannelSubscribeResponseMessage, ChannelUnsubscribeResponseMessage, SendNotificationResponseMessage, SyncFolderHierarchyResponseMessage, SyncFolderItemsResponseMessage, CreateManagedFolderResponseMessage, ConvertIdResponseMessage, GetSharingMetadataResponseMessage, RefreshSharingFolderResponseMessage, GetSharingFolderResponseMessage, CreateUserConfigurationResponseMessage, DeleteUserConfigurationResponseMessage, GetUserConfigurationResponseMessage, UpdateUserConfigurationResponseMessage, GetRoomListsResponse, GetRoomsResponse, GetRemindersResponse, PerformReminderActionResponse, ApplyConversationActionResponseMessage, FindMailboxStatisticsByKeywordsResponseMessage, GetSearchableMailboxesResponseMessage, SearchMailboxesResponseMessage, GetDiscoverySearchConfigurationResponseMessage, GetHoldOnMailboxesResponseMessage, SetHoldOnMailboxesResponseMessage, GetNonIndexableItemStatisticsResponseMessage, GetNonIndexableItemDetailsResponseMessage, FindPeopleResponseMessage, GetPasswordExpirationDateResponse, GetPersonaResponseMessage, GetConversationItemsResponseMessage, GetUserRetentionPolicyTagsResponseMessage, GetUserPhotoResponseMessage, MarkAsJunkResponseMessage, UpdateMailboxAssociationResponseMessage, UpdateGroupMailboxResponseMessage, PostModernGroupItemResponseMessage, GetUnifiedGroupUnseenDataResponseMessage)\n if ('' !== ($getItemResponseMessageChoiceErrorMessage = self::validateGetItemResponseMessageForChoiceConstraintsFromSetGetItemResponseMessage($getItemResponseMessage))) {\n throw new InvalidArgumentException($getItemResponseMessageChoiceErrorMessage, __LINE__);\n }\n if (is_null($getItemResponseMessage) || (is_array($getItemResponseMessage) && empty($getItemResponseMessage))) {\n unset($this->GetItemResponseMessage);\n } else {\n $this->GetItemResponseMessage = $getItemResponseMessage;\n }\n \n return $this;\n }", "title": "" }, { "docid": "e0f4a848edefe29cfcbd00685c0314f2", "score": "0.5589349", "text": "public function responseMsg() {\n //$GLOBALS is the super global variables array\n //HTTP_RAW_POST_DATA can get the post data\n //libxml_disable_entity_loader prevent loading external entities to be safer\n libxml_disable_entity_loader(true);\n $postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n Utils::logger($postStr);\n if(!empty($postStr)) {\n //analyze the data as xml into xml obj\n //simplexml_load_string(string data, string class_name, option) -> simplexmlelement \n //LIBXML_NOCDATA flag merge CDATA as text nodes\n /*\n \n text format is as followed:\n <xml> <ToUserName>< ![CDATA[toUser] ]></ToUserName> <FromUserName>< ![CDATA[fromUser] ]></FromUserName> <CreateTime>1348831860</CreateTime> <MsgType>< ![CDATA[text] ]></MsgType> <Content>< ![CDATA[this is a test] ]></Content> <MsgId>1234567890123456</MsgId> </xml>\n \n this is sent when user sends text\n \n we have 3 chances to respond and 5 second for each chance\n \n empty string can be recognized as respond and wechat server will not send anything back\n \n */\n \n /*\n \n but here, in the test example here, we only care about user subscribe or not\n \n */\n \n \n $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n //trim = strip, MsgType is one textnode\n $RX_TYPE = trim($postObj -> MsgType);\n switch($RX_TYPE) {\n case \"event\":\n $result = $this->receiveEvent($postObj);\n break;\n default:\n $result = \"Unknown message type: \".$RX_TYPE\n break;\n }\n Utils::logger($result, \"Official account\");\n \n // seems like echo is the response back to the server\n echo $result;\n } else {\n echo \"\";\n exit;\n }\n }", "title": "" }, { "docid": "018cc6ded23d3a25f567a3e00d3fbbf8", "score": "0.5586321", "text": "public function setSendNotificationResponseMessage(?\\StructType\\EwsSendNotificationResponseMessageType $sendNotificationResponseMessage = null): self\n {\n // validation for constraint: choice(CreateItemResponseMessage, DeleteItemResponseMessage, GetItemResponseMessage, UpdateItemResponseMessage, UpdateItemInRecoverableItemsResponseMessage, SendItemResponseMessage, DeleteFolderResponseMessage, EmptyFolderResponseMessage, CreateFolderResponseMessage, GetFolderResponseMessage, FindFolderResponseMessage, UpdateFolderResponseMessage, MoveFolderResponseMessage, CopyFolderResponseMessage, CreateFolderPathResponseMessage, CreateAttachmentResponseMessage, DeleteAttachmentResponseMessage, GetAttachmentResponseMessage, UploadItemsResponseMessage, ExportItemsResponseMessage, MarkAllItemsAsReadResponseMessage, GetClientAccessTokenResponseMessage, GetAppManifestsResponseMessage, GetClientExtensionResponseMessage, SetClientExtensionResponseMessage, GetEncryptionConfigurationResponseMessage, SetEncryptionConfigurationResponseMessage, GetOMEConfigurationResponseMessage, SetOMEConfigurationResponseMessage, FindItemResponseMessage, MoveItemResponseMessage, ArchiveItemResponseMessage, CopyItemResponseMessage, ResolveNamesResponseMessage, ExpandDLResponseMessage, GetServerTimeZonesResponseMessage, GetEventsResponseMessage, GetStreamingEventsResponseMessage, SubscribeResponseMessage, UnsubscribeResponseMessage, GetChannelEventsResponseMessage, ChannelSubscribeResponseMessage, ChannelUnsubscribeResponseMessage, SendNotificationResponseMessage, SyncFolderHierarchyResponseMessage, SyncFolderItemsResponseMessage, CreateManagedFolderResponseMessage, ConvertIdResponseMessage, GetSharingMetadataResponseMessage, RefreshSharingFolderResponseMessage, GetSharingFolderResponseMessage, CreateUserConfigurationResponseMessage, DeleteUserConfigurationResponseMessage, GetUserConfigurationResponseMessage, UpdateUserConfigurationResponseMessage, GetRoomListsResponse, GetRoomsResponse, GetRemindersResponse, PerformReminderActionResponse, ApplyConversationActionResponseMessage, FindMailboxStatisticsByKeywordsResponseMessage, GetSearchableMailboxesResponseMessage, SearchMailboxesResponseMessage, GetDiscoverySearchConfigurationResponseMessage, GetHoldOnMailboxesResponseMessage, SetHoldOnMailboxesResponseMessage, GetNonIndexableItemStatisticsResponseMessage, GetNonIndexableItemDetailsResponseMessage, FindPeopleResponseMessage, GetPasswordExpirationDateResponse, GetPersonaResponseMessage, GetConversationItemsResponseMessage, GetUserRetentionPolicyTagsResponseMessage, GetUserPhotoResponseMessage, MarkAsJunkResponseMessage, UpdateMailboxAssociationResponseMessage, UpdateGroupMailboxResponseMessage, PostModernGroupItemResponseMessage, GetUnifiedGroupUnseenDataResponseMessage)\n if ('' !== ($sendNotificationResponseMessageChoiceErrorMessage = self::validateSendNotificationResponseMessageForChoiceConstraintsFromSetSendNotificationResponseMessage($sendNotificationResponseMessage))) {\n throw new InvalidArgumentException($sendNotificationResponseMessageChoiceErrorMessage, __LINE__);\n }\n if (is_null($sendNotificationResponseMessage) || (is_array($sendNotificationResponseMessage) && empty($sendNotificationResponseMessage))) {\n unset($this->SendNotificationResponseMessage);\n } else {\n $this->SendNotificationResponseMessage = $sendNotificationResponseMessage;\n }\n \n return $this;\n }", "title": "" }, { "docid": "e4d3b116368d5653d7b8143455fb9cad", "score": "0.558372", "text": "private function setResponse( $key, $value )\r\n\t{\r\n\t\t$this->response->$key = $value;\r\n\t}", "title": "" }, { "docid": "1a3b015e45b6e3a4c970e3707f340ac8", "score": "0.55673605", "text": "public function setSubscribeResponseMessage(?\\StructType\\EwsSubscribeResponseMessageType $subscribeResponseMessage = null): self\n {\n // validation for constraint: choice(CreateItemResponseMessage, DeleteItemResponseMessage, GetItemResponseMessage, UpdateItemResponseMessage, UpdateItemInRecoverableItemsResponseMessage, SendItemResponseMessage, DeleteFolderResponseMessage, EmptyFolderResponseMessage, CreateFolderResponseMessage, GetFolderResponseMessage, FindFolderResponseMessage, UpdateFolderResponseMessage, MoveFolderResponseMessage, CopyFolderResponseMessage, CreateFolderPathResponseMessage, CreateAttachmentResponseMessage, DeleteAttachmentResponseMessage, GetAttachmentResponseMessage, UploadItemsResponseMessage, ExportItemsResponseMessage, MarkAllItemsAsReadResponseMessage, GetClientAccessTokenResponseMessage, GetAppManifestsResponseMessage, GetClientExtensionResponseMessage, SetClientExtensionResponseMessage, GetEncryptionConfigurationResponseMessage, SetEncryptionConfigurationResponseMessage, GetOMEConfigurationResponseMessage, SetOMEConfigurationResponseMessage, FindItemResponseMessage, MoveItemResponseMessage, ArchiveItemResponseMessage, CopyItemResponseMessage, ResolveNamesResponseMessage, ExpandDLResponseMessage, GetServerTimeZonesResponseMessage, GetEventsResponseMessage, GetStreamingEventsResponseMessage, SubscribeResponseMessage, UnsubscribeResponseMessage, GetChannelEventsResponseMessage, ChannelSubscribeResponseMessage, ChannelUnsubscribeResponseMessage, SendNotificationResponseMessage, SyncFolderHierarchyResponseMessage, SyncFolderItemsResponseMessage, CreateManagedFolderResponseMessage, ConvertIdResponseMessage, GetSharingMetadataResponseMessage, RefreshSharingFolderResponseMessage, GetSharingFolderResponseMessage, CreateUserConfigurationResponseMessage, DeleteUserConfigurationResponseMessage, GetUserConfigurationResponseMessage, UpdateUserConfigurationResponseMessage, GetRoomListsResponse, GetRoomsResponse, GetRemindersResponse, PerformReminderActionResponse, ApplyConversationActionResponseMessage, FindMailboxStatisticsByKeywordsResponseMessage, GetSearchableMailboxesResponseMessage, SearchMailboxesResponseMessage, GetDiscoverySearchConfigurationResponseMessage, GetHoldOnMailboxesResponseMessage, SetHoldOnMailboxesResponseMessage, GetNonIndexableItemStatisticsResponseMessage, GetNonIndexableItemDetailsResponseMessage, FindPeopleResponseMessage, GetPasswordExpirationDateResponse, GetPersonaResponseMessage, GetConversationItemsResponseMessage, GetUserRetentionPolicyTagsResponseMessage, GetUserPhotoResponseMessage, MarkAsJunkResponseMessage, UpdateMailboxAssociationResponseMessage, UpdateGroupMailboxResponseMessage, PostModernGroupItemResponseMessage, GetUnifiedGroupUnseenDataResponseMessage)\n if ('' !== ($subscribeResponseMessageChoiceErrorMessage = self::validateSubscribeResponseMessageForChoiceConstraintsFromSetSubscribeResponseMessage($subscribeResponseMessage))) {\n throw new InvalidArgumentException($subscribeResponseMessageChoiceErrorMessage, __LINE__);\n }\n if (is_null($subscribeResponseMessage) || (is_array($subscribeResponseMessage) && empty($subscribeResponseMessage))) {\n unset($this->SubscribeResponseMessage);\n } else {\n $this->SubscribeResponseMessage = $subscribeResponseMessage;\n }\n \n return $this;\n }", "title": "" }, { "docid": "a1fc372c70e2ac9d6c6138c53000372b", "score": "0.55505544", "text": "public function __construct(Response $response, $message = null)\n {\n parent::__construct($message);\n $this->response = $response;\n }", "title": "" }, { "docid": "6dceb5fd1dcaa83a4e54006c3c2a9863", "score": "0.5549555", "text": "public function responseMsg() {\n $postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n //extract post data\n if (!empty($postStr)) {\n $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n $RX_TYPE = trim($postObj->MsgType);\n switch ($RX_TYPE) {\n case \"text\":\n $resultStr = $this->handleText($postObj);\n break;\n\n case \"event\":\n $resultStr = $this->handleEvent($postObj);\n break;\n\n default:\n $resultStr = \"Unknow msg type: \" . $RX_TYPE;\n break;\n }\n echo $resultStr;\n } else {\n echo \"\";\n exit;\n }\n }", "title": "" }, { "docid": "423b7ecd5e0f6ea3233834b61e1dbee6", "score": "0.5548936", "text": "public function setGetEventsResponseMessage(?\\StructType\\EwsGetEventsResponseMessageType $getEventsResponseMessage = null): self\n {\n // validation for constraint: choice(CreateItemResponseMessage, DeleteItemResponseMessage, GetItemResponseMessage, UpdateItemResponseMessage, UpdateItemInRecoverableItemsResponseMessage, SendItemResponseMessage, DeleteFolderResponseMessage, EmptyFolderResponseMessage, CreateFolderResponseMessage, GetFolderResponseMessage, FindFolderResponseMessage, UpdateFolderResponseMessage, MoveFolderResponseMessage, CopyFolderResponseMessage, CreateFolderPathResponseMessage, CreateAttachmentResponseMessage, DeleteAttachmentResponseMessage, GetAttachmentResponseMessage, UploadItemsResponseMessage, ExportItemsResponseMessage, MarkAllItemsAsReadResponseMessage, GetClientAccessTokenResponseMessage, GetAppManifestsResponseMessage, GetClientExtensionResponseMessage, SetClientExtensionResponseMessage, GetEncryptionConfigurationResponseMessage, SetEncryptionConfigurationResponseMessage, GetOMEConfigurationResponseMessage, SetOMEConfigurationResponseMessage, FindItemResponseMessage, MoveItemResponseMessage, ArchiveItemResponseMessage, CopyItemResponseMessage, ResolveNamesResponseMessage, ExpandDLResponseMessage, GetServerTimeZonesResponseMessage, GetEventsResponseMessage, GetStreamingEventsResponseMessage, SubscribeResponseMessage, UnsubscribeResponseMessage, GetChannelEventsResponseMessage, ChannelSubscribeResponseMessage, ChannelUnsubscribeResponseMessage, SendNotificationResponseMessage, SyncFolderHierarchyResponseMessage, SyncFolderItemsResponseMessage, CreateManagedFolderResponseMessage, ConvertIdResponseMessage, GetSharingMetadataResponseMessage, RefreshSharingFolderResponseMessage, GetSharingFolderResponseMessage, CreateUserConfigurationResponseMessage, DeleteUserConfigurationResponseMessage, GetUserConfigurationResponseMessage, UpdateUserConfigurationResponseMessage, GetRoomListsResponse, GetRoomsResponse, GetRemindersResponse, PerformReminderActionResponse, ApplyConversationActionResponseMessage, FindMailboxStatisticsByKeywordsResponseMessage, GetSearchableMailboxesResponseMessage, SearchMailboxesResponseMessage, GetDiscoverySearchConfigurationResponseMessage, GetHoldOnMailboxesResponseMessage, SetHoldOnMailboxesResponseMessage, GetNonIndexableItemStatisticsResponseMessage, GetNonIndexableItemDetailsResponseMessage, FindPeopleResponseMessage, GetPasswordExpirationDateResponse, GetPersonaResponseMessage, GetConversationItemsResponseMessage, GetUserRetentionPolicyTagsResponseMessage, GetUserPhotoResponseMessage, MarkAsJunkResponseMessage, UpdateMailboxAssociationResponseMessage, UpdateGroupMailboxResponseMessage, PostModernGroupItemResponseMessage, GetUnifiedGroupUnseenDataResponseMessage)\n if ('' !== ($getEventsResponseMessageChoiceErrorMessage = self::validateGetEventsResponseMessageForChoiceConstraintsFromSetGetEventsResponseMessage($getEventsResponseMessage))) {\n throw new InvalidArgumentException($getEventsResponseMessageChoiceErrorMessage, __LINE__);\n }\n if (is_null($getEventsResponseMessage) || (is_array($getEventsResponseMessage) && empty($getEventsResponseMessage))) {\n unset($this->GetEventsResponseMessage);\n } else {\n $this->GetEventsResponseMessage = $getEventsResponseMessage;\n }\n \n return $this;\n }", "title": "" }, { "docid": "c358ecbf074fe865f685bf4c1914ab0d", "score": "0.55474854", "text": "public function setConvertIdResponseMessage(?\\StructType\\EwsConvertIdResponseMessageType $convertIdResponseMessage = null): self\n {\n // validation for constraint: choice(CreateItemResponseMessage, DeleteItemResponseMessage, GetItemResponseMessage, UpdateItemResponseMessage, UpdateItemInRecoverableItemsResponseMessage, SendItemResponseMessage, DeleteFolderResponseMessage, EmptyFolderResponseMessage, CreateFolderResponseMessage, GetFolderResponseMessage, FindFolderResponseMessage, UpdateFolderResponseMessage, MoveFolderResponseMessage, CopyFolderResponseMessage, CreateFolderPathResponseMessage, CreateAttachmentResponseMessage, DeleteAttachmentResponseMessage, GetAttachmentResponseMessage, UploadItemsResponseMessage, ExportItemsResponseMessage, MarkAllItemsAsReadResponseMessage, GetClientAccessTokenResponseMessage, GetAppManifestsResponseMessage, GetClientExtensionResponseMessage, SetClientExtensionResponseMessage, GetEncryptionConfigurationResponseMessage, SetEncryptionConfigurationResponseMessage, GetOMEConfigurationResponseMessage, SetOMEConfigurationResponseMessage, FindItemResponseMessage, MoveItemResponseMessage, ArchiveItemResponseMessage, CopyItemResponseMessage, ResolveNamesResponseMessage, ExpandDLResponseMessage, GetServerTimeZonesResponseMessage, GetEventsResponseMessage, GetStreamingEventsResponseMessage, SubscribeResponseMessage, UnsubscribeResponseMessage, GetChannelEventsResponseMessage, ChannelSubscribeResponseMessage, ChannelUnsubscribeResponseMessage, SendNotificationResponseMessage, SyncFolderHierarchyResponseMessage, SyncFolderItemsResponseMessage, CreateManagedFolderResponseMessage, ConvertIdResponseMessage, GetSharingMetadataResponseMessage, RefreshSharingFolderResponseMessage, GetSharingFolderResponseMessage, CreateUserConfigurationResponseMessage, DeleteUserConfigurationResponseMessage, GetUserConfigurationResponseMessage, UpdateUserConfigurationResponseMessage, GetRoomListsResponse, GetRoomsResponse, GetRemindersResponse, PerformReminderActionResponse, ApplyConversationActionResponseMessage, FindMailboxStatisticsByKeywordsResponseMessage, GetSearchableMailboxesResponseMessage, SearchMailboxesResponseMessage, GetDiscoverySearchConfigurationResponseMessage, GetHoldOnMailboxesResponseMessage, SetHoldOnMailboxesResponseMessage, GetNonIndexableItemStatisticsResponseMessage, GetNonIndexableItemDetailsResponseMessage, FindPeopleResponseMessage, GetPasswordExpirationDateResponse, GetPersonaResponseMessage, GetConversationItemsResponseMessage, GetUserRetentionPolicyTagsResponseMessage, GetUserPhotoResponseMessage, MarkAsJunkResponseMessage, UpdateMailboxAssociationResponseMessage, UpdateGroupMailboxResponseMessage, PostModernGroupItemResponseMessage, GetUnifiedGroupUnseenDataResponseMessage)\n if ('' !== ($convertIdResponseMessageChoiceErrorMessage = self::validateConvertIdResponseMessageForChoiceConstraintsFromSetConvertIdResponseMessage($convertIdResponseMessage))) {\n throw new InvalidArgumentException($convertIdResponseMessageChoiceErrorMessage, __LINE__);\n }\n if (is_null($convertIdResponseMessage) || (is_array($convertIdResponseMessage) && empty($convertIdResponseMessage))) {\n unset($this->ConvertIdResponseMessage);\n } else {\n $this->ConvertIdResponseMessage = $convertIdResponseMessage;\n }\n \n return $this;\n }", "title": "" }, { "docid": "0fa967fb3195018a1e800fe6d28ae311", "score": "0.554356", "text": "public function setMessage($message = null)\n {\n $this->message = $message;\n }", "title": "" }, { "docid": "ff5c8c053554991a3baf3d69249df373", "score": "0.5539965", "text": "public function setFormResponse(Response $response)\n\t{\n\t\t$this->formResponse = $response;\n\t}", "title": "" }, { "docid": "7da9b8bf351eb6ed15c336e75ca50cf5", "score": "0.55379504", "text": "public function responseMsg(){\n\t\t$postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n\n//extract post data\n\t\tif (!empty($postStr)){\n\n\t\t\t$postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n\t\t\t$RX_TYPE = trim($postObj->MsgType);\n\n\t\t\tswitch($RX_TYPE){\n\t\t\t\tcase \"text\":\n\t\t\t\t$resultStr = $this->handleText($postObj);\n\t\t\t\tbreak;\n\t\t\t\tcase \"event\":\n\t\t\t\t$resultStr = $this->handleEvent($postObj);\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t$resultStr = \"Unknow msg type: \".$RX_TYPE;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\techo $resultStr;\n\t\t}else{\n\t\t\techo \"\";\n\t\t\texit;\n\t\t}\n\t}", "title": "" }, { "docid": "9d9ccc05db0313dcc2a6dab4aebac44e", "score": "0.5535168", "text": "public function setGetPersonaResponseMessage(?\\StructType\\EwsGetPersonaResponseMessageType $getPersonaResponseMessage = null): self\n {\n // validation for constraint: choice(CreateItemResponseMessage, DeleteItemResponseMessage, GetItemResponseMessage, UpdateItemResponseMessage, UpdateItemInRecoverableItemsResponseMessage, SendItemResponseMessage, DeleteFolderResponseMessage, EmptyFolderResponseMessage, CreateFolderResponseMessage, GetFolderResponseMessage, FindFolderResponseMessage, UpdateFolderResponseMessage, MoveFolderResponseMessage, CopyFolderResponseMessage, CreateFolderPathResponseMessage, CreateAttachmentResponseMessage, DeleteAttachmentResponseMessage, GetAttachmentResponseMessage, UploadItemsResponseMessage, ExportItemsResponseMessage, MarkAllItemsAsReadResponseMessage, GetClientAccessTokenResponseMessage, GetAppManifestsResponseMessage, GetClientExtensionResponseMessage, SetClientExtensionResponseMessage, GetEncryptionConfigurationResponseMessage, SetEncryptionConfigurationResponseMessage, GetOMEConfigurationResponseMessage, SetOMEConfigurationResponseMessage, FindItemResponseMessage, MoveItemResponseMessage, ArchiveItemResponseMessage, CopyItemResponseMessage, ResolveNamesResponseMessage, ExpandDLResponseMessage, GetServerTimeZonesResponseMessage, GetEventsResponseMessage, GetStreamingEventsResponseMessage, SubscribeResponseMessage, UnsubscribeResponseMessage, GetChannelEventsResponseMessage, ChannelSubscribeResponseMessage, ChannelUnsubscribeResponseMessage, SendNotificationResponseMessage, SyncFolderHierarchyResponseMessage, SyncFolderItemsResponseMessage, CreateManagedFolderResponseMessage, ConvertIdResponseMessage, GetSharingMetadataResponseMessage, RefreshSharingFolderResponseMessage, GetSharingFolderResponseMessage, CreateUserConfigurationResponseMessage, DeleteUserConfigurationResponseMessage, GetUserConfigurationResponseMessage, UpdateUserConfigurationResponseMessage, GetRoomListsResponse, GetRoomsResponse, GetRemindersResponse, PerformReminderActionResponse, ApplyConversationActionResponseMessage, FindMailboxStatisticsByKeywordsResponseMessage, GetSearchableMailboxesResponseMessage, SearchMailboxesResponseMessage, GetDiscoverySearchConfigurationResponseMessage, GetHoldOnMailboxesResponseMessage, SetHoldOnMailboxesResponseMessage, GetNonIndexableItemStatisticsResponseMessage, GetNonIndexableItemDetailsResponseMessage, FindPeopleResponseMessage, GetPasswordExpirationDateResponse, GetPersonaResponseMessage, GetConversationItemsResponseMessage, GetUserRetentionPolicyTagsResponseMessage, GetUserPhotoResponseMessage, MarkAsJunkResponseMessage, UpdateMailboxAssociationResponseMessage, UpdateGroupMailboxResponseMessage, PostModernGroupItemResponseMessage, GetUnifiedGroupUnseenDataResponseMessage)\n if ('' !== ($getPersonaResponseMessageChoiceErrorMessage = self::validateGetPersonaResponseMessageForChoiceConstraintsFromSetGetPersonaResponseMessage($getPersonaResponseMessage))) {\n throw new InvalidArgumentException($getPersonaResponseMessageChoiceErrorMessage, __LINE__);\n }\n if (is_null($getPersonaResponseMessage) || (is_array($getPersonaResponseMessage) && empty($getPersonaResponseMessage))) {\n unset($this->GetPersonaResponseMessage);\n } else {\n $this->GetPersonaResponseMessage = $getPersonaResponseMessage;\n }\n \n return $this;\n }", "title": "" }, { "docid": "43fd38c56fb83e838c70b96560e7f9b3", "score": "0.55350375", "text": "protected function response()\r\n {\r\n return Message::className();\r\n }", "title": "" }, { "docid": "43fd38c56fb83e838c70b96560e7f9b3", "score": "0.55350375", "text": "protected function response()\r\n {\r\n return Message::className();\r\n }", "title": "" }, { "docid": "06ddbe882de02d43f0d06cd74d072bc6", "score": "0.5533996", "text": "public function setGetFolderResponseMessage(?\\StructType\\EwsFolderInfoResponseMessageType $getFolderResponseMessage = null): self\n {\n // validation for constraint: choice(CreateItemResponseMessage, DeleteItemResponseMessage, GetItemResponseMessage, UpdateItemResponseMessage, UpdateItemInRecoverableItemsResponseMessage, SendItemResponseMessage, DeleteFolderResponseMessage, EmptyFolderResponseMessage, CreateFolderResponseMessage, GetFolderResponseMessage, FindFolderResponseMessage, UpdateFolderResponseMessage, MoveFolderResponseMessage, CopyFolderResponseMessage, CreateFolderPathResponseMessage, CreateAttachmentResponseMessage, DeleteAttachmentResponseMessage, GetAttachmentResponseMessage, UploadItemsResponseMessage, ExportItemsResponseMessage, MarkAllItemsAsReadResponseMessage, GetClientAccessTokenResponseMessage, GetAppManifestsResponseMessage, GetClientExtensionResponseMessage, SetClientExtensionResponseMessage, GetEncryptionConfigurationResponseMessage, SetEncryptionConfigurationResponseMessage, GetOMEConfigurationResponseMessage, SetOMEConfigurationResponseMessage, FindItemResponseMessage, MoveItemResponseMessage, ArchiveItemResponseMessage, CopyItemResponseMessage, ResolveNamesResponseMessage, ExpandDLResponseMessage, GetServerTimeZonesResponseMessage, GetEventsResponseMessage, GetStreamingEventsResponseMessage, SubscribeResponseMessage, UnsubscribeResponseMessage, GetChannelEventsResponseMessage, ChannelSubscribeResponseMessage, ChannelUnsubscribeResponseMessage, SendNotificationResponseMessage, SyncFolderHierarchyResponseMessage, SyncFolderItemsResponseMessage, CreateManagedFolderResponseMessage, ConvertIdResponseMessage, GetSharingMetadataResponseMessage, RefreshSharingFolderResponseMessage, GetSharingFolderResponseMessage, CreateUserConfigurationResponseMessage, DeleteUserConfigurationResponseMessage, GetUserConfigurationResponseMessage, UpdateUserConfigurationResponseMessage, GetRoomListsResponse, GetRoomsResponse, GetRemindersResponse, PerformReminderActionResponse, ApplyConversationActionResponseMessage, FindMailboxStatisticsByKeywordsResponseMessage, GetSearchableMailboxesResponseMessage, SearchMailboxesResponseMessage, GetDiscoverySearchConfigurationResponseMessage, GetHoldOnMailboxesResponseMessage, SetHoldOnMailboxesResponseMessage, GetNonIndexableItemStatisticsResponseMessage, GetNonIndexableItemDetailsResponseMessage, FindPeopleResponseMessage, GetPasswordExpirationDateResponse, GetPersonaResponseMessage, GetConversationItemsResponseMessage, GetUserRetentionPolicyTagsResponseMessage, GetUserPhotoResponseMessage, MarkAsJunkResponseMessage, UpdateMailboxAssociationResponseMessage, UpdateGroupMailboxResponseMessage, PostModernGroupItemResponseMessage, GetUnifiedGroupUnseenDataResponseMessage)\n if ('' !== ($getFolderResponseMessageChoiceErrorMessage = self::validateGetFolderResponseMessageForChoiceConstraintsFromSetGetFolderResponseMessage($getFolderResponseMessage))) {\n throw new InvalidArgumentException($getFolderResponseMessageChoiceErrorMessage, __LINE__);\n }\n if (is_null($getFolderResponseMessage) || (is_array($getFolderResponseMessage) && empty($getFolderResponseMessage))) {\n unset($this->GetFolderResponseMessage);\n } else {\n $this->GetFolderResponseMessage = $getFolderResponseMessage;\n }\n \n return $this;\n }", "title": "" }, { "docid": "b81944d0cb37cad7b8515e1eb7c6005d", "score": "0.55229753", "text": "protected function setResponse(string $msg, int $status=400){\n $this->response = array(\"status\"=>$status, \"msg\"=>$msg);\n }", "title": "" }, { "docid": "d88ec4edd3a9b6efe0802f3fb6db85cd", "score": "0.5519497", "text": "public function setUnsubscribeResponseMessage(?\\StructType\\EwsResponseMessageType $unsubscribeResponseMessage = null): self\n {\n // validation for constraint: choice(CreateItemResponseMessage, DeleteItemResponseMessage, GetItemResponseMessage, UpdateItemResponseMessage, UpdateItemInRecoverableItemsResponseMessage, SendItemResponseMessage, DeleteFolderResponseMessage, EmptyFolderResponseMessage, CreateFolderResponseMessage, GetFolderResponseMessage, FindFolderResponseMessage, UpdateFolderResponseMessage, MoveFolderResponseMessage, CopyFolderResponseMessage, CreateFolderPathResponseMessage, CreateAttachmentResponseMessage, DeleteAttachmentResponseMessage, GetAttachmentResponseMessage, UploadItemsResponseMessage, ExportItemsResponseMessage, MarkAllItemsAsReadResponseMessage, GetClientAccessTokenResponseMessage, GetAppManifestsResponseMessage, GetClientExtensionResponseMessage, SetClientExtensionResponseMessage, GetEncryptionConfigurationResponseMessage, SetEncryptionConfigurationResponseMessage, GetOMEConfigurationResponseMessage, SetOMEConfigurationResponseMessage, FindItemResponseMessage, MoveItemResponseMessage, ArchiveItemResponseMessage, CopyItemResponseMessage, ResolveNamesResponseMessage, ExpandDLResponseMessage, GetServerTimeZonesResponseMessage, GetEventsResponseMessage, GetStreamingEventsResponseMessage, SubscribeResponseMessage, UnsubscribeResponseMessage, GetChannelEventsResponseMessage, ChannelSubscribeResponseMessage, ChannelUnsubscribeResponseMessage, SendNotificationResponseMessage, SyncFolderHierarchyResponseMessage, SyncFolderItemsResponseMessage, CreateManagedFolderResponseMessage, ConvertIdResponseMessage, GetSharingMetadataResponseMessage, RefreshSharingFolderResponseMessage, GetSharingFolderResponseMessage, CreateUserConfigurationResponseMessage, DeleteUserConfigurationResponseMessage, GetUserConfigurationResponseMessage, UpdateUserConfigurationResponseMessage, GetRoomListsResponse, GetRoomsResponse, GetRemindersResponse, PerformReminderActionResponse, ApplyConversationActionResponseMessage, FindMailboxStatisticsByKeywordsResponseMessage, GetSearchableMailboxesResponseMessage, SearchMailboxesResponseMessage, GetDiscoverySearchConfigurationResponseMessage, GetHoldOnMailboxesResponseMessage, SetHoldOnMailboxesResponseMessage, GetNonIndexableItemStatisticsResponseMessage, GetNonIndexableItemDetailsResponseMessage, FindPeopleResponseMessage, GetPasswordExpirationDateResponse, GetPersonaResponseMessage, GetConversationItemsResponseMessage, GetUserRetentionPolicyTagsResponseMessage, GetUserPhotoResponseMessage, MarkAsJunkResponseMessage, UpdateMailboxAssociationResponseMessage, UpdateGroupMailboxResponseMessage, PostModernGroupItemResponseMessage, GetUnifiedGroupUnseenDataResponseMessage)\n if ('' !== ($unsubscribeResponseMessageChoiceErrorMessage = self::validateUnsubscribeResponseMessageForChoiceConstraintsFromSetUnsubscribeResponseMessage($unsubscribeResponseMessage))) {\n throw new InvalidArgumentException($unsubscribeResponseMessageChoiceErrorMessage, __LINE__);\n }\n if (is_null($unsubscribeResponseMessage) || (is_array($unsubscribeResponseMessage) && empty($unsubscribeResponseMessage))) {\n unset($this->UnsubscribeResponseMessage);\n } else {\n $this->UnsubscribeResponseMessage = $unsubscribeResponseMessage;\n }\n \n return $this;\n }", "title": "" }, { "docid": "81dcbfdf8b0e129e08ce482589851c09", "score": "0.551081", "text": "public function testSuccess_ApiCode_CustomMessage()\n\t{\n\t\t$this->response = ResponseBuilder::success(null, $this->random_api_code);\n\t\t$j = $this->getResponseSuccessObject($this->random_api_code);\n\n\t\t$this->assertNull($j->data);\n\t}", "title": "" }, { "docid": "d492ab5989ece268802eac4777ba8e6a", "score": "0.55064386", "text": "function __construct($message, $code, $response = NULL, $previous = NULL) {\n parent::__construct($message, $code, $previous);\n $this->response = $response;\n }", "title": "" }, { "docid": "dd21ec533e7fa9a1f707708afcfa461e", "score": "0.55046576", "text": "public function saveMessage(Core_Sijax_Response $objResponse, $message) {\n\n\t\tif (trim($message) === '') {\n\t\t\treturn $objResponse->alert('Empty messages are not allowed!');\n\t\t}\n\n\t\t$timeNow = microtime(true);\n\t\t$messageId = md5($message . $timeNow);\n\t\t$messageContainerId = 'message_' . $messageId;\n\n\t\t//The message will be invisible at first, and we'll show it using a jquery effect\n\t\t$messageFormatted = '\n\t\t<div id=\"' . $messageContainerId . '\" style=\"opacity: 0;\">\n\t\t\t[<strong>' . date('H:i:s', (int) $timeNow) . '</strong>] ' . $message . '\n\t\t</div>';\n\n\t\t//Append the rendered message at the end\n\t\t$objResponse->htmlAppend('#messages', $messageFormatted);\n\n\t\t//Clear the textbox and give it focus in case it has lost it\n\t\t$objResponse->attr('#message', 'value', '');\n\t\t$objResponse->script(\"$('#message').focus();\");\n\n\t\t//Scroll down the messages area\n\t\t$objResponse->script(\"$('#messages').attr('scrollTop', $('#messages').attr('scrollHeight'));\");\n\n\t\t//Make the new message appear in 400ms\n\t\t$objResponse->script(\"$('#$messageContainerId').animate({opacity: 1}, 400);\");\n\t}", "title": "" }, { "docid": "d3f61d6fbe4feb01ce8be9f8b44e4f40", "score": "0.5503794", "text": "public function setMessage($message)\n {\n $this->message = $message;\n }", "title": "" }, { "docid": "26da2279fcb7f5900914a8fc9c831279", "score": "0.54934984", "text": "function setMessage($message) {\n\t\t$this->message = $message;\n\t}", "title": "" }, { "docid": "a2c8047f2f1610b815e2ef770c221e47", "score": "0.54934406", "text": "public function setResponseText($res)\r\n {\r\n $this->responseText = $res;\r\n \r\n return $this;\r\n }", "title": "" }, { "docid": "43df33ee1b0cca995947b2468966ff5b", "score": "0.54910266", "text": "public function getResponse(): ?SendingSmsMessageResponse {\n return parent::getResponse();\n }", "title": "" }, { "docid": "74daede4c67fd13d645958729b71210e", "score": "0.54853415", "text": "public function setMessage($message) {\n $this->message = $message;\n }", "title": "" }, { "docid": "b657309dd4881c66701b90380c25bf10", "score": "0.5481281", "text": "public function setUpdateMailboxAssociationResponseMessage(?\\StructType\\EwsResponseMessageType $updateMailboxAssociationResponseMessage = null): self\n {\n // validation for constraint: choice(CreateItemResponseMessage, DeleteItemResponseMessage, GetItemResponseMessage, UpdateItemResponseMessage, UpdateItemInRecoverableItemsResponseMessage, SendItemResponseMessage, DeleteFolderResponseMessage, EmptyFolderResponseMessage, CreateFolderResponseMessage, GetFolderResponseMessage, FindFolderResponseMessage, UpdateFolderResponseMessage, MoveFolderResponseMessage, CopyFolderResponseMessage, CreateFolderPathResponseMessage, CreateAttachmentResponseMessage, DeleteAttachmentResponseMessage, GetAttachmentResponseMessage, UploadItemsResponseMessage, ExportItemsResponseMessage, MarkAllItemsAsReadResponseMessage, GetClientAccessTokenResponseMessage, GetAppManifestsResponseMessage, GetClientExtensionResponseMessage, SetClientExtensionResponseMessage, GetEncryptionConfigurationResponseMessage, SetEncryptionConfigurationResponseMessage, GetOMEConfigurationResponseMessage, SetOMEConfigurationResponseMessage, FindItemResponseMessage, MoveItemResponseMessage, ArchiveItemResponseMessage, CopyItemResponseMessage, ResolveNamesResponseMessage, ExpandDLResponseMessage, GetServerTimeZonesResponseMessage, GetEventsResponseMessage, GetStreamingEventsResponseMessage, SubscribeResponseMessage, UnsubscribeResponseMessage, GetChannelEventsResponseMessage, ChannelSubscribeResponseMessage, ChannelUnsubscribeResponseMessage, SendNotificationResponseMessage, SyncFolderHierarchyResponseMessage, SyncFolderItemsResponseMessage, CreateManagedFolderResponseMessage, ConvertIdResponseMessage, GetSharingMetadataResponseMessage, RefreshSharingFolderResponseMessage, GetSharingFolderResponseMessage, CreateUserConfigurationResponseMessage, DeleteUserConfigurationResponseMessage, GetUserConfigurationResponseMessage, UpdateUserConfigurationResponseMessage, GetRoomListsResponse, GetRoomsResponse, GetRemindersResponse, PerformReminderActionResponse, ApplyConversationActionResponseMessage, FindMailboxStatisticsByKeywordsResponseMessage, GetSearchableMailboxesResponseMessage, SearchMailboxesResponseMessage, GetDiscoverySearchConfigurationResponseMessage, GetHoldOnMailboxesResponseMessage, SetHoldOnMailboxesResponseMessage, GetNonIndexableItemStatisticsResponseMessage, GetNonIndexableItemDetailsResponseMessage, FindPeopleResponseMessage, GetPasswordExpirationDateResponse, GetPersonaResponseMessage, GetConversationItemsResponseMessage, GetUserRetentionPolicyTagsResponseMessage, GetUserPhotoResponseMessage, MarkAsJunkResponseMessage, UpdateMailboxAssociationResponseMessage, UpdateGroupMailboxResponseMessage, PostModernGroupItemResponseMessage, GetUnifiedGroupUnseenDataResponseMessage)\n if ('' !== ($updateMailboxAssociationResponseMessageChoiceErrorMessage = self::validateUpdateMailboxAssociationResponseMessageForChoiceConstraintsFromSetUpdateMailboxAssociationResponseMessage($updateMailboxAssociationResponseMessage))) {\n throw new InvalidArgumentException($updateMailboxAssociationResponseMessageChoiceErrorMessage, __LINE__);\n }\n if (is_null($updateMailboxAssociationResponseMessage) || (is_array($updateMailboxAssociationResponseMessage) && empty($updateMailboxAssociationResponseMessage))) {\n unset($this->UpdateMailboxAssociationResponseMessage);\n } else {\n $this->UpdateMailboxAssociationResponseMessage = $updateMailboxAssociationResponseMessage;\n }\n \n return $this;\n }", "title": "" }, { "docid": "5d3e5e27c72fd09e9bac361828184c94", "score": "0.54809326", "text": "public function successResponse($message){\n\n return parent::respond([\n\n 'resultCode'=>$this->getResultCode(),\n 'resultTitle'=>$this->getResultTitle(),\n 'resultMessage'=>$message,\n\n ]);\n }", "title": "" }, { "docid": "87e9b48d275a734e649ab98ade8da7f2", "score": "0.54790056", "text": "public function setUpdateFolderResponseMessage(?\\StructType\\EwsFolderInfoResponseMessageType $updateFolderResponseMessage = null): self\n {\n // validation for constraint: choice(CreateItemResponseMessage, DeleteItemResponseMessage, GetItemResponseMessage, UpdateItemResponseMessage, UpdateItemInRecoverableItemsResponseMessage, SendItemResponseMessage, DeleteFolderResponseMessage, EmptyFolderResponseMessage, CreateFolderResponseMessage, GetFolderResponseMessage, FindFolderResponseMessage, UpdateFolderResponseMessage, MoveFolderResponseMessage, CopyFolderResponseMessage, CreateFolderPathResponseMessage, CreateAttachmentResponseMessage, DeleteAttachmentResponseMessage, GetAttachmentResponseMessage, UploadItemsResponseMessage, ExportItemsResponseMessage, MarkAllItemsAsReadResponseMessage, GetClientAccessTokenResponseMessage, GetAppManifestsResponseMessage, GetClientExtensionResponseMessage, SetClientExtensionResponseMessage, GetEncryptionConfigurationResponseMessage, SetEncryptionConfigurationResponseMessage, GetOMEConfigurationResponseMessage, SetOMEConfigurationResponseMessage, FindItemResponseMessage, MoveItemResponseMessage, ArchiveItemResponseMessage, CopyItemResponseMessage, ResolveNamesResponseMessage, ExpandDLResponseMessage, GetServerTimeZonesResponseMessage, GetEventsResponseMessage, GetStreamingEventsResponseMessage, SubscribeResponseMessage, UnsubscribeResponseMessage, GetChannelEventsResponseMessage, ChannelSubscribeResponseMessage, ChannelUnsubscribeResponseMessage, SendNotificationResponseMessage, SyncFolderHierarchyResponseMessage, SyncFolderItemsResponseMessage, CreateManagedFolderResponseMessage, ConvertIdResponseMessage, GetSharingMetadataResponseMessage, RefreshSharingFolderResponseMessage, GetSharingFolderResponseMessage, CreateUserConfigurationResponseMessage, DeleteUserConfigurationResponseMessage, GetUserConfigurationResponseMessage, UpdateUserConfigurationResponseMessage, GetRoomListsResponse, GetRoomsResponse, GetRemindersResponse, PerformReminderActionResponse, ApplyConversationActionResponseMessage, FindMailboxStatisticsByKeywordsResponseMessage, GetSearchableMailboxesResponseMessage, SearchMailboxesResponseMessage, GetDiscoverySearchConfigurationResponseMessage, GetHoldOnMailboxesResponseMessage, SetHoldOnMailboxesResponseMessage, GetNonIndexableItemStatisticsResponseMessage, GetNonIndexableItemDetailsResponseMessage, FindPeopleResponseMessage, GetPasswordExpirationDateResponse, GetPersonaResponseMessage, GetConversationItemsResponseMessage, GetUserRetentionPolicyTagsResponseMessage, GetUserPhotoResponseMessage, MarkAsJunkResponseMessage, UpdateMailboxAssociationResponseMessage, UpdateGroupMailboxResponseMessage, PostModernGroupItemResponseMessage, GetUnifiedGroupUnseenDataResponseMessage)\n if ('' !== ($updateFolderResponseMessageChoiceErrorMessage = self::validateUpdateFolderResponseMessageForChoiceConstraintsFromSetUpdateFolderResponseMessage($updateFolderResponseMessage))) {\n throw new InvalidArgumentException($updateFolderResponseMessageChoiceErrorMessage, __LINE__);\n }\n if (is_null($updateFolderResponseMessage) || (is_array($updateFolderResponseMessage) && empty($updateFolderResponseMessage))) {\n unset($this->UpdateFolderResponseMessage);\n } else {\n $this->UpdateFolderResponseMessage = $updateFolderResponseMessage;\n }\n \n return $this;\n }", "title": "" }, { "docid": "33d674a540a4251f80a1a4380abd24a6", "score": "0.5467163", "text": "public function setResponse(?Response $response): self\n {\n return $this->setArgument(static::RESPONSE_ARGUMENT_KEY, $response);\n }", "title": "" }, { "docid": "fb0da47fed644985194bff8b14ac26f4", "score": "0.5456859", "text": "public function initializeResponse()\r\n {\r\n $this->responseHeaders = array();\r\n $this->responseCode = '';\r\n $this->responseText = '';\r\n $this->responseDom = null;\r\n $this->responseDomCssSelector = null;\r\n $this->responseXml = null;\r\n $this->fields = array();\r\n }", "title": "" }, { "docid": "2ebabf6e4a0e514c0e0646f964613804", "score": "0.5453534", "text": "protected function setAjaxResponse($mResponse) {\r\n\r\n\t\t$this->_helper->viewRenderer->setNoRender(); //stop rendering the view\r\n\t\t$this->_helper->layout()->disableLayout(); //disable the layout\r\n\r\n\t\t//if response is a form object, process form\r\n\t\tif ($mResponse instanceof Kwgl_Form) {\r\n\r\n\t\t\t$aResp = array();\r\n\t\t\t//if form is valid pass true, else pass the error messages\r\n\r\n\t\t\tif ($mResponse->hasBeenValidated()) {\r\n\t\t\t\tif ($mResponse->isErrors()) {\r\n\t\t\t\t\t$aResp = array('__FormResponse' => $mResponse->getMessages());\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$aResp = array('__FormResponse' => true);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->setAjaxError(\"Your form has not been processed.\");\r\n\t\t\t}\r\n\r\n\t\t\t//pass custom errors\r\n\t\t\t$aCustomErrors = $mResponse->getErrorMessages();\r\n\t\t\tif(count($aCustomErrors)>0){\r\n\t\t\t\t$this->setAjaxError($aCustomErrors);\r\n\t\t\t}\r\n\t\t\t//send form values back\r\n\t\t\t$aResp['__FormResponseValues'] = array();\r\n\t\t\t$aEls = $mResponse->getElements();\r\n\t\t\tforeach ($aEls as $aEl) {\r\n\t\t\t\t//if element is hash type, then change value to saved one\r\n\t\t\t\tif($aEl instanceof Zend_Form_Element_Hash){\r\n\t\t\t\t\t//overwrite with value in session\r\n\t\t\t\t\t$aEl->initCsrfToken();\r\n\t\t\t\t\t$sNewHash = $aEl->getHash();\r\n\t\t\t\t\t$aResp['__FormResponseValues'][$aEl->getName()] = $sNewHash;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$aResp['__FormResponseValues'][$aEl->getName()] = $aEl->getValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t$mResponse = $aResp;\r\n\t\t}\r\n\t\t//set response\r\n\t\tKwgl_Ajax::setResponse($mResponse);\r\n\t}", "title": "" }, { "docid": "ca3fb9787ebd65959e309fb793c2725d", "score": "0.5448865", "text": "public function ManufactorMsg()\n {\n switch ($this->_method)\n {\n case 'post':\n $manufactor_id = $_POST['manufactor_id'];\n $manufactor = new ManufactorModel();\n $result = $manufactor->get_msg($manufactor_id);\n $this->response($result,'json');\n break;\n case 'get':\n $manufactor = D('Manufactor');\n $result = $manufactor->where('id='.$_GET['manufactor_id'])->select();\n $this->response($result,'json');\n break;\n }\n }", "title": "" }, { "docid": "2bf8169ce84fc6df17572a8fbe9d634d", "score": "0.5446249", "text": "public function setGetUserPhotoResponseMessage(?\\StructType\\EwsGetUserPhotoResponseMessageType $getUserPhotoResponseMessage = null): self\n {\n // validation for constraint: choice(CreateItemResponseMessage, DeleteItemResponseMessage, GetItemResponseMessage, UpdateItemResponseMessage, UpdateItemInRecoverableItemsResponseMessage, SendItemResponseMessage, DeleteFolderResponseMessage, EmptyFolderResponseMessage, CreateFolderResponseMessage, GetFolderResponseMessage, FindFolderResponseMessage, UpdateFolderResponseMessage, MoveFolderResponseMessage, CopyFolderResponseMessage, CreateFolderPathResponseMessage, CreateAttachmentResponseMessage, DeleteAttachmentResponseMessage, GetAttachmentResponseMessage, UploadItemsResponseMessage, ExportItemsResponseMessage, MarkAllItemsAsReadResponseMessage, GetClientAccessTokenResponseMessage, GetAppManifestsResponseMessage, GetClientExtensionResponseMessage, SetClientExtensionResponseMessage, GetEncryptionConfigurationResponseMessage, SetEncryptionConfigurationResponseMessage, GetOMEConfigurationResponseMessage, SetOMEConfigurationResponseMessage, FindItemResponseMessage, MoveItemResponseMessage, ArchiveItemResponseMessage, CopyItemResponseMessage, ResolveNamesResponseMessage, ExpandDLResponseMessage, GetServerTimeZonesResponseMessage, GetEventsResponseMessage, GetStreamingEventsResponseMessage, SubscribeResponseMessage, UnsubscribeResponseMessage, GetChannelEventsResponseMessage, ChannelSubscribeResponseMessage, ChannelUnsubscribeResponseMessage, SendNotificationResponseMessage, SyncFolderHierarchyResponseMessage, SyncFolderItemsResponseMessage, CreateManagedFolderResponseMessage, ConvertIdResponseMessage, GetSharingMetadataResponseMessage, RefreshSharingFolderResponseMessage, GetSharingFolderResponseMessage, CreateUserConfigurationResponseMessage, DeleteUserConfigurationResponseMessage, GetUserConfigurationResponseMessage, UpdateUserConfigurationResponseMessage, GetRoomListsResponse, GetRoomsResponse, GetRemindersResponse, PerformReminderActionResponse, ApplyConversationActionResponseMessage, FindMailboxStatisticsByKeywordsResponseMessage, GetSearchableMailboxesResponseMessage, SearchMailboxesResponseMessage, GetDiscoverySearchConfigurationResponseMessage, GetHoldOnMailboxesResponseMessage, SetHoldOnMailboxesResponseMessage, GetNonIndexableItemStatisticsResponseMessage, GetNonIndexableItemDetailsResponseMessage, FindPeopleResponseMessage, GetPasswordExpirationDateResponse, GetPersonaResponseMessage, GetConversationItemsResponseMessage, GetUserRetentionPolicyTagsResponseMessage, GetUserPhotoResponseMessage, MarkAsJunkResponseMessage, UpdateMailboxAssociationResponseMessage, UpdateGroupMailboxResponseMessage, PostModernGroupItemResponseMessage, GetUnifiedGroupUnseenDataResponseMessage)\n if ('' !== ($getUserPhotoResponseMessageChoiceErrorMessage = self::validateGetUserPhotoResponseMessageForChoiceConstraintsFromSetGetUserPhotoResponseMessage($getUserPhotoResponseMessage))) {\n throw new InvalidArgumentException($getUserPhotoResponseMessageChoiceErrorMessage, __LINE__);\n }\n if (is_null($getUserPhotoResponseMessage) || (is_array($getUserPhotoResponseMessage) && empty($getUserPhotoResponseMessage))) {\n unset($this->GetUserPhotoResponseMessage);\n } else {\n $this->GetUserPhotoResponseMessage = $getUserPhotoResponseMessage;\n }\n \n return $this;\n }", "title": "" }, { "docid": "e732a649609a60581f997ea6bfc01491", "score": "0.54382896", "text": "public function setResponse(Horde_Http_Response_Base $response)\n {\n $this->_responses = array($response);\n }", "title": "" }, { "docid": "d903a295b49ad087e2d05b620c929708", "score": "0.543737", "text": "public function responseMsg()\n {\n\t\t$postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n\n \t//extract post data\n\t\tif (!empty($postStr)){\n \n \t$postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n \n // handle various MsgType\n switch($postObj->MsgType){\n case \"text\":\n $resultStr = $this->handleText($postObj);\n break;\n case \"event\":\n $resultStr = $this->handleEvent($postObj);\n break;\n }\n echo $resultStr;\n\n }else {\n \techo \"\";\n \texit;\n }\n }", "title": "" }, { "docid": "e62800a7b6fc530dafbbee1a306f1494", "score": "0.5435994", "text": "public function setGetClientExtensionResponseMessage(?\\StructType\\EwsResponseMessageType $getClientExtensionResponseMessage = null): self\n {\n // validation for constraint: choice(CreateItemResponseMessage, DeleteItemResponseMessage, GetItemResponseMessage, UpdateItemResponseMessage, UpdateItemInRecoverableItemsResponseMessage, SendItemResponseMessage, DeleteFolderResponseMessage, EmptyFolderResponseMessage, CreateFolderResponseMessage, GetFolderResponseMessage, FindFolderResponseMessage, UpdateFolderResponseMessage, MoveFolderResponseMessage, CopyFolderResponseMessage, CreateFolderPathResponseMessage, CreateAttachmentResponseMessage, DeleteAttachmentResponseMessage, GetAttachmentResponseMessage, UploadItemsResponseMessage, ExportItemsResponseMessage, MarkAllItemsAsReadResponseMessage, GetClientAccessTokenResponseMessage, GetAppManifestsResponseMessage, GetClientExtensionResponseMessage, SetClientExtensionResponseMessage, GetEncryptionConfigurationResponseMessage, SetEncryptionConfigurationResponseMessage, GetOMEConfigurationResponseMessage, SetOMEConfigurationResponseMessage, FindItemResponseMessage, MoveItemResponseMessage, ArchiveItemResponseMessage, CopyItemResponseMessage, ResolveNamesResponseMessage, ExpandDLResponseMessage, GetServerTimeZonesResponseMessage, GetEventsResponseMessage, GetStreamingEventsResponseMessage, SubscribeResponseMessage, UnsubscribeResponseMessage, GetChannelEventsResponseMessage, ChannelSubscribeResponseMessage, ChannelUnsubscribeResponseMessage, SendNotificationResponseMessage, SyncFolderHierarchyResponseMessage, SyncFolderItemsResponseMessage, CreateManagedFolderResponseMessage, ConvertIdResponseMessage, GetSharingMetadataResponseMessage, RefreshSharingFolderResponseMessage, GetSharingFolderResponseMessage, CreateUserConfigurationResponseMessage, DeleteUserConfigurationResponseMessage, GetUserConfigurationResponseMessage, UpdateUserConfigurationResponseMessage, GetRoomListsResponse, GetRoomsResponse, GetRemindersResponse, PerformReminderActionResponse, ApplyConversationActionResponseMessage, FindMailboxStatisticsByKeywordsResponseMessage, GetSearchableMailboxesResponseMessage, SearchMailboxesResponseMessage, GetDiscoverySearchConfigurationResponseMessage, GetHoldOnMailboxesResponseMessage, SetHoldOnMailboxesResponseMessage, GetNonIndexableItemStatisticsResponseMessage, GetNonIndexableItemDetailsResponseMessage, FindPeopleResponseMessage, GetPasswordExpirationDateResponse, GetPersonaResponseMessage, GetConversationItemsResponseMessage, GetUserRetentionPolicyTagsResponseMessage, GetUserPhotoResponseMessage, MarkAsJunkResponseMessage, UpdateMailboxAssociationResponseMessage, UpdateGroupMailboxResponseMessage, PostModernGroupItemResponseMessage, GetUnifiedGroupUnseenDataResponseMessage)\n if ('' !== ($getClientExtensionResponseMessageChoiceErrorMessage = self::validateGetClientExtensionResponseMessageForChoiceConstraintsFromSetGetClientExtensionResponseMessage($getClientExtensionResponseMessage))) {\n throw new InvalidArgumentException($getClientExtensionResponseMessageChoiceErrorMessage, __LINE__);\n }\n if (is_null($getClientExtensionResponseMessage) || (is_array($getClientExtensionResponseMessage) && empty($getClientExtensionResponseMessage))) {\n unset($this->GetClientExtensionResponseMessage);\n } else {\n $this->GetClientExtensionResponseMessage = $getClientExtensionResponseMessage;\n }\n \n return $this;\n }", "title": "" }, { "docid": "97c65a30ec8832da7f34d63b48a32dd7", "score": "0.5431629", "text": "public function setResponseData() { return; }", "title": "" }, { "docid": "a3b9503318b48ee5b5a46029b953c236", "score": "0.54309505", "text": "public function setMessage(String $message) {\n $this->message = $message ?? null;\n }", "title": "" }, { "docid": "58a266e3764300d1e247a6725d84b386", "score": "0.5429388", "text": "public function setMarkAsJunkResponseMessage(?\\StructType\\EwsMarkAsJunkResponseMessageType $markAsJunkResponseMessage = null): self\n {\n // validation for constraint: choice(CreateItemResponseMessage, DeleteItemResponseMessage, GetItemResponseMessage, UpdateItemResponseMessage, UpdateItemInRecoverableItemsResponseMessage, SendItemResponseMessage, DeleteFolderResponseMessage, EmptyFolderResponseMessage, CreateFolderResponseMessage, GetFolderResponseMessage, FindFolderResponseMessage, UpdateFolderResponseMessage, MoveFolderResponseMessage, CopyFolderResponseMessage, CreateFolderPathResponseMessage, CreateAttachmentResponseMessage, DeleteAttachmentResponseMessage, GetAttachmentResponseMessage, UploadItemsResponseMessage, ExportItemsResponseMessage, MarkAllItemsAsReadResponseMessage, GetClientAccessTokenResponseMessage, GetAppManifestsResponseMessage, GetClientExtensionResponseMessage, SetClientExtensionResponseMessage, GetEncryptionConfigurationResponseMessage, SetEncryptionConfigurationResponseMessage, GetOMEConfigurationResponseMessage, SetOMEConfigurationResponseMessage, FindItemResponseMessage, MoveItemResponseMessage, ArchiveItemResponseMessage, CopyItemResponseMessage, ResolveNamesResponseMessage, ExpandDLResponseMessage, GetServerTimeZonesResponseMessage, GetEventsResponseMessage, GetStreamingEventsResponseMessage, SubscribeResponseMessage, UnsubscribeResponseMessage, GetChannelEventsResponseMessage, ChannelSubscribeResponseMessage, ChannelUnsubscribeResponseMessage, SendNotificationResponseMessage, SyncFolderHierarchyResponseMessage, SyncFolderItemsResponseMessage, CreateManagedFolderResponseMessage, ConvertIdResponseMessage, GetSharingMetadataResponseMessage, RefreshSharingFolderResponseMessage, GetSharingFolderResponseMessage, CreateUserConfigurationResponseMessage, DeleteUserConfigurationResponseMessage, GetUserConfigurationResponseMessage, UpdateUserConfigurationResponseMessage, GetRoomListsResponse, GetRoomsResponse, GetRemindersResponse, PerformReminderActionResponse, ApplyConversationActionResponseMessage, FindMailboxStatisticsByKeywordsResponseMessage, GetSearchableMailboxesResponseMessage, SearchMailboxesResponseMessage, GetDiscoverySearchConfigurationResponseMessage, GetHoldOnMailboxesResponseMessage, SetHoldOnMailboxesResponseMessage, GetNonIndexableItemStatisticsResponseMessage, GetNonIndexableItemDetailsResponseMessage, FindPeopleResponseMessage, GetPasswordExpirationDateResponse, GetPersonaResponseMessage, GetConversationItemsResponseMessage, GetUserRetentionPolicyTagsResponseMessage, GetUserPhotoResponseMessage, MarkAsJunkResponseMessage, UpdateMailboxAssociationResponseMessage, UpdateGroupMailboxResponseMessage, PostModernGroupItemResponseMessage, GetUnifiedGroupUnseenDataResponseMessage)\n if ('' !== ($markAsJunkResponseMessageChoiceErrorMessage = self::validateMarkAsJunkResponseMessageForChoiceConstraintsFromSetMarkAsJunkResponseMessage($markAsJunkResponseMessage))) {\n throw new InvalidArgumentException($markAsJunkResponseMessageChoiceErrorMessage, __LINE__);\n }\n if (is_null($markAsJunkResponseMessage) || (is_array($markAsJunkResponseMessage) && empty($markAsJunkResponseMessage))) {\n unset($this->MarkAsJunkResponseMessage);\n } else {\n $this->MarkAsJunkResponseMessage = $markAsJunkResponseMessage;\n }\n \n return $this;\n }", "title": "" }, { "docid": "4d2a509634ee0aec83cb4e977c00944f", "score": "0.5423713", "text": "public function setMessage( $message ){\r\n\t\t$this->message = $message;\r\n\t\t$this->assign( 'message', $this->message );\r\n\t}", "title": "" }, { "docid": "f1db13884bd22b03209062b21948f22b", "score": "0.541572", "text": "public function setMessage($message)\n {\n return $this->message = $message;\n }", "title": "" }, { "docid": "0f559465baa917e78c064c08805eee55", "score": "0.5413374", "text": "public function setMessage($val)\n {\n $this->_propDict[\"message\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "fd7442e86128bc1b44b76618f8ebba77", "score": "0.54121697", "text": "public function setMessage( Message $message ){\n $this->message = $message;\n }", "title": "" }, { "docid": "24ebba1a9dd08aeedbd161a4c6372eb4", "score": "0.54109186", "text": "public function __construct($message = null, $code = 0, ResponseInterface $response = null, array $result = null)\n {\n // Override message and code with $response and $result.\n if ( ! is_null($result)) {\n $message = (isset($result['message']) ? $result['message'] : null);\n $code = $response->getStatusCode();\n\n $this->response = $response;\n $this->httpStatusCode = (isset($result['httpStatusCode']) ? $result['httpStatusCode'] : null);\n $this->customCode = (isset($result['customCode']) ? $result['customCode'] : null);\n\n $this->description = (isset($result['description']) ? $result['description'] : null);\n $this->originalRequest = (isset($result['originalRequest']) ? $result['originalRequest'] : null);\n $this->errorHelpUrl = (isset($result['errorHelpUrl']) ? $result['errorHelpUrl'] : null);\n }\n\n parent::__construct($message, $code);\n }", "title": "" }, { "docid": "60ab225d094332b6bae6fb816dd6d983", "score": "0.54084", "text": "public function setGetClientAccessTokenResponseMessage(?\\StructType\\EwsGetClientAccessTokenResponseMessageType $getClientAccessTokenResponseMessage = null): self\n {\n // validation for constraint: choice(CreateItemResponseMessage, DeleteItemResponseMessage, GetItemResponseMessage, UpdateItemResponseMessage, UpdateItemInRecoverableItemsResponseMessage, SendItemResponseMessage, DeleteFolderResponseMessage, EmptyFolderResponseMessage, CreateFolderResponseMessage, GetFolderResponseMessage, FindFolderResponseMessage, UpdateFolderResponseMessage, MoveFolderResponseMessage, CopyFolderResponseMessage, CreateFolderPathResponseMessage, CreateAttachmentResponseMessage, DeleteAttachmentResponseMessage, GetAttachmentResponseMessage, UploadItemsResponseMessage, ExportItemsResponseMessage, MarkAllItemsAsReadResponseMessage, GetClientAccessTokenResponseMessage, GetAppManifestsResponseMessage, GetClientExtensionResponseMessage, SetClientExtensionResponseMessage, GetEncryptionConfigurationResponseMessage, SetEncryptionConfigurationResponseMessage, GetOMEConfigurationResponseMessage, SetOMEConfigurationResponseMessage, FindItemResponseMessage, MoveItemResponseMessage, ArchiveItemResponseMessage, CopyItemResponseMessage, ResolveNamesResponseMessage, ExpandDLResponseMessage, GetServerTimeZonesResponseMessage, GetEventsResponseMessage, GetStreamingEventsResponseMessage, SubscribeResponseMessage, UnsubscribeResponseMessage, GetChannelEventsResponseMessage, ChannelSubscribeResponseMessage, ChannelUnsubscribeResponseMessage, SendNotificationResponseMessage, SyncFolderHierarchyResponseMessage, SyncFolderItemsResponseMessage, CreateManagedFolderResponseMessage, ConvertIdResponseMessage, GetSharingMetadataResponseMessage, RefreshSharingFolderResponseMessage, GetSharingFolderResponseMessage, CreateUserConfigurationResponseMessage, DeleteUserConfigurationResponseMessage, GetUserConfigurationResponseMessage, UpdateUserConfigurationResponseMessage, GetRoomListsResponse, GetRoomsResponse, GetRemindersResponse, PerformReminderActionResponse, ApplyConversationActionResponseMessage, FindMailboxStatisticsByKeywordsResponseMessage, GetSearchableMailboxesResponseMessage, SearchMailboxesResponseMessage, GetDiscoverySearchConfigurationResponseMessage, GetHoldOnMailboxesResponseMessage, SetHoldOnMailboxesResponseMessage, GetNonIndexableItemStatisticsResponseMessage, GetNonIndexableItemDetailsResponseMessage, FindPeopleResponseMessage, GetPasswordExpirationDateResponse, GetPersonaResponseMessage, GetConversationItemsResponseMessage, GetUserRetentionPolicyTagsResponseMessage, GetUserPhotoResponseMessage, MarkAsJunkResponseMessage, UpdateMailboxAssociationResponseMessage, UpdateGroupMailboxResponseMessage, PostModernGroupItemResponseMessage, GetUnifiedGroupUnseenDataResponseMessage)\n if ('' !== ($getClientAccessTokenResponseMessageChoiceErrorMessage = self::validateGetClientAccessTokenResponseMessageForChoiceConstraintsFromSetGetClientAccessTokenResponseMessage($getClientAccessTokenResponseMessage))) {\n throw new InvalidArgumentException($getClientAccessTokenResponseMessageChoiceErrorMessage, __LINE__);\n }\n if (is_null($getClientAccessTokenResponseMessage) || (is_array($getClientAccessTokenResponseMessage) && empty($getClientAccessTokenResponseMessage))) {\n unset($this->GetClientAccessTokenResponseMessage);\n } else {\n $this->GetClientAccessTokenResponseMessage = $getClientAccessTokenResponseMessage;\n }\n \n return $this;\n }", "title": "" }, { "docid": "694ce7d0b79612e69b4a370783d6dce5", "score": "0.5405713", "text": "public function setSendItemResponseMessage(?\\StructType\\EwsResponseMessageType $sendItemResponseMessage = null): self\n {\n // validation for constraint: choice(CreateItemResponseMessage, DeleteItemResponseMessage, GetItemResponseMessage, UpdateItemResponseMessage, UpdateItemInRecoverableItemsResponseMessage, SendItemResponseMessage, DeleteFolderResponseMessage, EmptyFolderResponseMessage, CreateFolderResponseMessage, GetFolderResponseMessage, FindFolderResponseMessage, UpdateFolderResponseMessage, MoveFolderResponseMessage, CopyFolderResponseMessage, CreateFolderPathResponseMessage, CreateAttachmentResponseMessage, DeleteAttachmentResponseMessage, GetAttachmentResponseMessage, UploadItemsResponseMessage, ExportItemsResponseMessage, MarkAllItemsAsReadResponseMessage, GetClientAccessTokenResponseMessage, GetAppManifestsResponseMessage, GetClientExtensionResponseMessage, SetClientExtensionResponseMessage, GetEncryptionConfigurationResponseMessage, SetEncryptionConfigurationResponseMessage, GetOMEConfigurationResponseMessage, SetOMEConfigurationResponseMessage, FindItemResponseMessage, MoveItemResponseMessage, ArchiveItemResponseMessage, CopyItemResponseMessage, ResolveNamesResponseMessage, ExpandDLResponseMessage, GetServerTimeZonesResponseMessage, GetEventsResponseMessage, GetStreamingEventsResponseMessage, SubscribeResponseMessage, UnsubscribeResponseMessage, GetChannelEventsResponseMessage, ChannelSubscribeResponseMessage, ChannelUnsubscribeResponseMessage, SendNotificationResponseMessage, SyncFolderHierarchyResponseMessage, SyncFolderItemsResponseMessage, CreateManagedFolderResponseMessage, ConvertIdResponseMessage, GetSharingMetadataResponseMessage, RefreshSharingFolderResponseMessage, GetSharingFolderResponseMessage, CreateUserConfigurationResponseMessage, DeleteUserConfigurationResponseMessage, GetUserConfigurationResponseMessage, UpdateUserConfigurationResponseMessage, GetRoomListsResponse, GetRoomsResponse, GetRemindersResponse, PerformReminderActionResponse, ApplyConversationActionResponseMessage, FindMailboxStatisticsByKeywordsResponseMessage, GetSearchableMailboxesResponseMessage, SearchMailboxesResponseMessage, GetDiscoverySearchConfigurationResponseMessage, GetHoldOnMailboxesResponseMessage, SetHoldOnMailboxesResponseMessage, GetNonIndexableItemStatisticsResponseMessage, GetNonIndexableItemDetailsResponseMessage, FindPeopleResponseMessage, GetPasswordExpirationDateResponse, GetPersonaResponseMessage, GetConversationItemsResponseMessage, GetUserRetentionPolicyTagsResponseMessage, GetUserPhotoResponseMessage, MarkAsJunkResponseMessage, UpdateMailboxAssociationResponseMessage, UpdateGroupMailboxResponseMessage, PostModernGroupItemResponseMessage, GetUnifiedGroupUnseenDataResponseMessage)\n if ('' !== ($sendItemResponseMessageChoiceErrorMessage = self::validateSendItemResponseMessageForChoiceConstraintsFromSetSendItemResponseMessage($sendItemResponseMessage))) {\n throw new InvalidArgumentException($sendItemResponseMessageChoiceErrorMessage, __LINE__);\n }\n if (is_null($sendItemResponseMessage) || (is_array($sendItemResponseMessage) && empty($sendItemResponseMessage))) {\n unset($this->SendItemResponseMessage);\n } else {\n $this->SendItemResponseMessage = $sendItemResponseMessage;\n }\n \n return $this;\n }", "title": "" }, { "docid": "0eb53e5dc866a0403695b2a273285929", "score": "0.5393132", "text": "public function updateOutOfResponse($response)\n {\n if (isset($response->newRoomNotification)) {\n $this->setNewRoomNotification($response->newRoomNotification);\n }\n if (isset($response->newMessageNotification)) {\n $this->setNewMessageNotification($response->newMessageNotification);\n }\n if (isset($response->useEmojis)) {\n $this->setUseEmojis($response->useEmojis);\n }\n if (isset($response->convertAsciiEmoji)) {\n $this->setConvertAsciiEmoji($response->convertAsciiEmoji);\n }\n if (isset($response->saveMobileBandwidth)) {\n $this->setSaveMobileBandwidth($response->saveMobileBandwidth);\n }\n if (isset($response->collapseMediaByDefault)) {\n $this->setCollapseMediaByDefault($response->collapseMediaByDefault);\n }\n if (isset($response->autoImageLoad)) {\n $this->setAutoImageLoad($response->autoImageLoad);\n }\n if (isset($response->emailNotificationMode)) {\n $this->setEmailNotificationMode($response->emailNotificationMode);\n }\n if (isset($response->roomsListExhibitionMode)) {\n $this->setRoomsListExhibitionMode($response->roomsListExhibitionMode);\n }\n if (isset($response->unreadAlert)) {\n $this->setUnreadAlert($response->unreadAlert);\n }\n if (isset($response->notificationsSoundVolume)) {\n $this->setNotificationsSoundVolume($response->notificationsSoundVolume);\n }\n if (isset($response->desktopNotifications)) {\n $this->setDesktopNotifications($response->desktopNotifications);\n }\n if (isset($response->mobileNotifications)) {\n $this->setMobileNotifications($response->mobileNotifications);\n }\n if (isset($response->enableAutoAway)) {\n $this->setEnableAutoAway($response->enableAutoAway);\n }\n if (isset($response->highlights)) {\n $this->setHighlights($response->highlights);\n }\n if (isset($response->desktopNotificationDuration)) {\n $this->setDesktopNotificationDuration($response->desktopNotificationDuration);\n }\n if (isset($response->desktopNotificationRequireInteraction)) {\n $this->setDesktopNotificationRequireInteraction($response->desktopNotificationRequireInteraction);\n }\n if (isset($response->viewMode)) {\n $this->setViewMode($response->viewMode);\n }\n if (isset($response->hideUsernames)) {\n $this->setHideUsernames($response->hideUsernames);\n }\n if (isset($response->hideRoles)) {\n $this->setHideRoles($response->hideRoles);\n }\n if (isset($response->hideAvatars)) {\n $this->setHideAvatars($response->hideAvatars);\n }\n if (isset($response->sendOnEnter)) {\n $this->setSendOnEnter($response->sendOnEnter);\n }\n if (isset($response->roomCounterSidebar)) {\n $this->setRoomCounterSidebar($response->roomCounterSidebar);\n }\n if (isset($response->language)) {\n $this->setLanguage($response->language);\n }\n if (isset($response->sidebarShowFavorites)) {\n $this->setSidebarShowFavorites($response->sidebarShowFavorites);\n }\n if (isset($response->sidebarShowUnread)) {\n $this->setSidebarShowUnread($response->sidebarShowUnread);\n }\n if (isset($response->sidebarSortby)) {\n $this->setSidebarSortby($response->sidebarSortby);\n }\n if (isset($response->sidebarViewMode)) {\n $this->setSidebarViewMode($response->sidebarViewMode);\n }\n if (isset($response->sidebarHideAvatar)) {\n $this->setSidebarHideAvatar($response->sidebarHideAvatar);\n }\n if (isset($response->groupByType)) {\n $this->setGroupByType($response->groupByType);\n }\n if (isset($response->muteFocusedConversations)) {\n $this->setMuteFocusedConversations($response->muteFocusedConversations);\n }\n\n return $this;\n }", "title": "" } ]
8343a1bce9656335d67f3a626b3b3724
Factorytype method for creating a new ActiveRecord_Connection (this must be used instead of constructing a new instance).
[ { "docid": "343c305421acc759f89998fe57fb6291", "score": "0.6959496", "text": "public static function create($dsn, $username = NULL, $password = NULL, $options = NULL) {\n $pos = strpos($dsn, ':');\n $driver = 'Default';\n if ($pos)\n $driver = ucfirst(substr($dsn, 0, $pos));\n\n $class = \"ActiveRecord_Connection_${driver}\";\n if (!class_exists($class))\n $class = \"ActiveRecord_Connection_Default\";\n\n return new $class($dsn, $username, $password, $options);\n }", "title": "" } ]
[ { "docid": "bf84b650953ecf32bf6d60e1176b7ed3", "score": "0.7470233", "text": "abstract protected function createConnection();", "title": "" }, { "docid": "dd2adeb0008f579947936bc245029436", "score": "0.73402745", "text": "public abstract function new_connection();", "title": "" }, { "docid": "844e013b2b46b3ee20390ad9cbd8f2c4", "score": "0.7320436", "text": "protected function createObject()\n {\n $conf = Config::getInstance()->getConf('MYSQL');\n $dbConf = new \\EasySwoole\\Mysqli\\Config($conf);\n return new MysqlConnection($dbConf);\n }", "title": "" }, { "docid": "1463d1d665a03a80638388625d88d27e", "score": "0.73165435", "text": "abstract protected function createConnectionAdapter();", "title": "" }, { "docid": "a99f0e3429a6bf0b57a8344b8c3aff96", "score": "0.7096821", "text": "public function connection_factory_returns_connection_instance()\n {\n $result = $this->connection_factory->build(new ConsoleOutput(), false);\n\n $this->assertInstanceOf('Petrol\\Core\\Database\\Connection', $result);\n }", "title": "" }, { "docid": "94149d8dd31be45bd18463aea6901607", "score": "0.68604034", "text": "public static function getNewConn() {\n require_once(ROOT.self::$configFile);\n\n $arrayConn = $dbConfig[$connType];\n\n return new PDOConnection($arrayConn[\"engine\"],\n $arrayConn[\"host\"],\n $arrayConn[\"database\"],\n $arrayConn[\"user\"],\n $arrayConn[\"password\"],\n $arrayConn[\"port\"]);\n }", "title": "" }, { "docid": "8130cd7208b4323df515b7b5b68fd002", "score": "0.6782767", "text": "public static function getNewConnection()\n {\n $conn = null;\n\n try \n {\n $conn = new Connection(self::getHost(), self::getUsername(), self::getPassword());\n } \n catch (PDOException $exc) \n {\n echo $exc->getMessage();\n }\n\n return $conn;\n }", "title": "" }, { "docid": "34606daadb7521b294004faa7ce4debc", "score": "0.67338127", "text": "protected function createDbConnection()\n\t{\n\t\tif($this->_connID!=='')\n\t\t{\n\t\t\t$config=$this->getApplication()->getModule($this->_connID);\n\t\t\tif($config instanceof TDataSourceConfig)\n\t\t\t\treturn $config->getDbConnection();\n\t\t\telse\n\t\t\t\tthrow new TConfigurationException('dbcache_connectionid_invalid',$this->_connID);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$db=new TDbConnection;\n\t\t\tif($this->_connectionString!=='')\n\t\t\t{\n\t\t\t\t$db->setConnectionString($this->_connectionString);\n\t\t\t\tif($this->_username!=='')\n\t\t\t\t\t$db->setUsername($this->_username);\n\t\t\t\tif($this->_password!=='')\n\t\t\t\t\t$db->setPassword($this->_password);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// default to SQLite3 database\n\t\t\t\t$dbFile=$this->getApplication()->getRuntimePath().'/sqlite3.cache';\n\t\t\t\t$db->setConnectionString('sqlite:'.$dbFile);\n\t\t\t}\n\t\t\treturn $db;\n\t\t}\n\t}", "title": "" }, { "docid": "4aa16615b8c863d7be47ef92574efebf", "score": "0.67132694", "text": "public function getConnection()\n {\n return new Connection($this->config);\n }", "title": "" }, { "docid": "fb7edd825554de8a83811dfdc8b98f58", "score": "0.6698818", "text": "public function getConnection()\n {\n $this->pdo = new PDO('sqlite::memory:');\n\n $dbConfig = new DatabaseConfiguration($this->rawDbConfig);\n\n // mock the authenticator in order to stub the pdoHandle() method\n $pdoHandleMock = 'pdoHandle';\n $this->authenticator = $this->getMockBuilder('Om\\Pdo\\Authenticator\\PdoAuthenticator')\n ->enableOriginalConstructor()\n ->setConstructorArgs(array($dbConfig))\n ->setMethods(array($pdoHandleMock))\n ->getMock();\n\n // authenticator shall use the provided database connection and shall not create a new one\n $this->authenticator->method($pdoHandleMock)\n ->willReturn($this->pdo);\n\n // create the database table\n $this->pdo->exec(\"CREATE TABLE \" . $dbConfig->getTableName() . \" (\" \n . $dbConfig->getUsernameColumnName() . \" varchar(50), \" \n . $dbConfig->getPasswordColumnName() . \" varchar(50))\");\n\n return $this->createDefaultDBConnection($this->pdo, ':memory:');\n }", "title": "" }, { "docid": "dc0d549bb552bcc9d21776e4413efee6", "score": "0.66902494", "text": "protected function getConnection()\n\t{\n\t\treturn $this->createDefaultDBConnection(TEST_DB_PDO(), TEST_GET_DB_INFO()->name);\n\t}", "title": "" }, { "docid": "dc0d549bb552bcc9d21776e4413efee6", "score": "0.66902494", "text": "protected function getConnection()\n\t{\n\t\treturn $this->createDefaultDBConnection(TEST_DB_PDO(), TEST_GET_DB_INFO()->name);\n\t}", "title": "" }, { "docid": "8e29389508b774af3dc418d5269fab4d", "score": "0.66644853", "text": "public function createDatabaseConnection(): Database\n {\n $this->framework->initialize();\n\n return $this->framework->createInstance(Database::class);\n }", "title": "" }, { "docid": "648e32be52cdd915c38d1ebc6c757fad", "score": "0.6620062", "text": "public function createConnection()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$this->PDO = new \\PDO($this->dsn,$this->username,$this->password,$this->options);\n\t\t\t$this->PDO->setAttribute(\\PDO::ATTR_ERRMODE, \\PDO::ERRMODE_EXCEPTION);\n\t\t\t$this->active = true;\n\t\t}catch(\\PDOException $e){\n\t\t\tthrow new \\PDOException($e->getMessage());\n\t\t}\n\t\treturn $this->PDO;\n\t}", "title": "" }, { "docid": "24e11e3a5e55b6733bece9818b33aba4", "score": "0.66011614", "text": "protected function createDatabaseConnection()\n\t{\n\t\t$this->dbConnectionPool = new \\Bitrix\\Main\\Data\\ConnectionPool();\n\t}", "title": "" }, { "docid": "3acb1d017e9c014e23dfa6239156c233", "score": "0.65779775", "text": "abstract protected function createConnection(): ApplicationEnabledConnectionInterface;", "title": "" }, { "docid": "ca3e738b9713c04bf6e281733f3dc876", "score": "0.65774655", "text": "private static function createConnection(){\n $dsn = sprintf('%s:host=%s;dbname=%s',\n self::$config['driver'],\n self::$config['host'],\n self::$config['dbname']);\n \n self::$connection = new \\PDO($dsn, self::$config['dbuser'], self::$config['dbpass']); \n }", "title": "" }, { "docid": "68e57546ca00e8f9388144ed06400d43", "score": "0.6576452", "text": "public static function getConnectionInstance($dbConfig);", "title": "" }, { "docid": "d902463656dfeca845bab7f9287b426a", "score": "0.6560642", "text": "private function createConnection(){\n return new PDO(\"mysql:host=$this->host;dbname=$this->database\",$this->user,$this->password);\n }", "title": "" }, { "docid": "fa3e817aed8fcf47ca0cf907abee15d7", "score": "0.65174156", "text": "protected abstract function getConnection();", "title": "" }, { "docid": "1392104b766ad84bdea4dceb9b3a68f4", "score": "0.6485887", "text": "private function newConnection()\n {\n syslog(LOG_DEBUG, \"New PDO: \" . $this->dsn . \", \" . $this->user . \", \" . $this->password);\n $pdo = new PDO($this->dsn, $this->user, $this->password);\n syslog(LOG_DEBUG, \"Connected. Setting attribute\");\n $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n return $pdo;\n }", "title": "" }, { "docid": "64961f7188c059610ab2c689dd20a185", "score": "0.648307", "text": "protected function connection()\n {\n if (null === $this->connection) {\n $this->connection = $this->connectionFactory()->create(\n $this->username(),\n $this->password(),\n $this->host(),\n $this->port()\n );\n }\n\n return $this->connection;\n }", "title": "" }, { "docid": "5ec6b906345f4dd75b83a732c63dc5ae", "score": "0.64776266", "text": "protected function getConnection()\n {\n $pdo = new \\PDO(\"mysql:host=localhost;dbname=test\", \"test\", \"test\");\n return $this->createDefaultDBConnection($pdo);\n }", "title": "" }, { "docid": "14dc4ed89bf371d18e45b219e70c1edd", "score": "0.646345", "text": "public static function getConnection()\n {\n\n //Guarantees single instance, if no connection object exists then create one.\n if (!self::$db) {\n //new connection object.\n new dbConn();\n }\n\n //return connection.\n return self::$db;\n }", "title": "" }, { "docid": "5006c5e66c0926915585957c228674b4", "score": "0.6438124", "text": "public function getConnection()\n {\n $pdo = Manager::getPdo();\n\n return $this->createDefaultDBConnection($pdo, ':memory:');\n }", "title": "" }, { "docid": "2109f74ff61e286078b7f39b74bfc075", "score": "0.6430699", "text": "public function getConnection()\n {\n return $this->createDefaultDBConnection($this->_pdo, Zend_Registry::get('config')->database->params->dbname);\n }", "title": "" }, { "docid": "90ad59cf0a7f9420ca1f8e53367af0c1", "score": "0.6424047", "text": "public static function connect(): self\n {\n if (null === self::$dbInstance) {\n self::$dbInstance = new self();\n }\n\n return self::$dbInstance;\n }", "title": "" }, { "docid": "8cf397b5da0c25cc9a87f61390a3bb59", "score": "0.6418958", "text": "private function connect(): Adapter {\n // connect\n if (isset($this->connectionParams['dbType']) && isset($this->connectionParams['dbHostName']) &&\n isset($this->connectionParams['dbUserName']) && isset($this->connectionParams['dbPassword']) &&\n isset($this->connectionParams['dbName'])) {\n\n $dbType = strtolower($this->connectionParams['dbType']);\n $this->isFileDB = $dbType == 'sqlite' && strtolower($this->connectionParams['dbName']) != ':memory:';\n\n $this->connId = join(',', [$this->connectionParams['dbType'], $this->connectionParams['dbHostName'],\n $this->connectionParams['dbUserName'], $this->connectionParams['dbPassword'], $this->connectionParams['dbName'],\n // make sure that the sequence mapper uses it's own connection for separate transaction management\n (!$this->isFileDB && $this->getType() == $this->getSequenceMapper()->getType())\n ]);\n\n // reuse an existing adapter if possible\n if (isset(self::$adapters[$this->connId])) {\n $this->adapter = self::$adapters[$this->connId];\n }\n else {\n try {\n $charSet = isset($this->connectionParams['dbCharSet']) ?\n $this->connectionParams['dbCharSet'] : 'utf8';\n\n // create new connection\n $pdoParams = [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION];\n // driver specific\n switch ($dbType) {\n case 'mysql':\n $pdoParams[PDO::MYSQL_ATTR_USE_BUFFERED_QUERY] = true;\n $pdoParams[PDO::MYSQL_ATTR_INIT_COMMAND] = \"SET NAMES \".$charSet;\n break;\n case 'sqlite':\n if (!$this->isFileDB) {\n $pdoParams[PDO::ATTR_PERSISTENT] = true;\n }\n else {\n $this->connectionParams['dbName'] = FileUtil::realpath(WCMF_BASE.$this->connectionParams['dbName']);\n }\n break;\n }\n\n $params = [\n 'hostname' => $this->connectionParams['dbHostName'],\n 'username' => $this->connectionParams['dbUserName'],\n 'password' => $this->connectionParams['dbPassword'],\n 'database' => $this->connectionParams['dbName'],\n 'driver' => 'Pdo_'.ucfirst($this->connectionParams['dbType']),\n 'driver_options' => $pdoParams\n ];\n\n if (!empty($this->connectionParams['dbPort'])) {\n $params['port'] = $this->connectionParams['dbPort'];\n }\n $this->adapter = new Adapter($params);\n\n // store the connection for reuse\n self::$adapters[$this->connId] = $this->adapter;\n }\n catch(\\Exception $ex) {\n throw new PersistenceException(\"Connection to \".$this->connectionParams['dbHostName'].\".\".\n $this->connectionParams['dbName'].\" failed: \".$ex->getMessage());\n }\n }\n // get database prefix if defined\n if (isset($this->connectionParams['dbPrefix'])) {\n $this->dbPrefix = $this->connectionParams['dbPrefix'];\n }\n }\n else {\n throw new IllegalArgumentException(\"Wrong parameters for constructor.\");\n }\n assert(!is_null($this->adapter));\n return $this->adapter;\n }", "title": "" }, { "docid": "88118e6de7a56967d31b2276bba68194", "score": "0.64151233", "text": "public static function getConnection() {\n\n //Guarantees single instance, if no connection object exists then create one.\n if (!self::$db) {\n //new connection object.\n new dbConn();\n }\n\n //return connection.\n return self::$db;\n }", "title": "" }, { "docid": "02f9c0c0095af000225fd89260514942", "score": "0.64075226", "text": "public function getConnection()\n {\n return $this->createDefaultDBConnection($this->_pdo, Zend_Registry::get('config')->database->dbname);\n }", "title": "" }, { "docid": "02f9c0c0095af000225fd89260514942", "score": "0.64075226", "text": "public function getConnection()\n {\n return $this->createDefaultDBConnection($this->_pdo, Zend_Registry::get('config')->database->dbname);\n }", "title": "" }, { "docid": "733d7d192d4df02da63f2e5ac44a2882", "score": "0.64018565", "text": "abstract public function getConnection();", "title": "" }, { "docid": "c088f1000d3c77e8ade8ff43244b5a7d", "score": "0.6401602", "text": "public static function getConnection() {\n //Guarantees single instance, if no connection object exists then create one.\n if (!self::$db) {\n //new connection object.\n new dbConn();\n }\n //return connection.\n return self::$db;\n }", "title": "" }, { "docid": "5165a19ee3c2ccb9917cccc406a29dd6", "score": "0.64015514", "text": "function __construct() {\n $connector = new DbConnection();\n $conn = $connector->connect(); \n }", "title": "" }, { "docid": "558540dbb2081df6d4cf9ed45fa9ce80", "score": "0.6389011", "text": "public static function getConnection($dsn)\n {\n if (!is_array($dsn)) {\n $dsn = self::parseDsn($dsn);\n }\n if (!isset($dsn['adapter'])) {\n throw new Exception(\"database adapter is missing for \" . json_encode($dsn));\n }\n $class = 'Phalcon\\Db\\Adapter\\Pdo\\\\' . ucfirst($dsn['adapter']);\n $conn = new $class($dsn);\n return Mixin::create($conn, new self);\n }", "title": "" }, { "docid": "3fde0af11c3ec4cf7555384599f68a80", "score": "0.6385487", "text": "abstract protected function initConnection() : AbstractConnection;", "title": "" }, { "docid": "f99ff68ec85b23fb9213ee457f40903e", "score": "0.6385144", "text": "public static function getConnection()\n\t\t\t\t{\n \n\t\t\t\t//Guarantees single instance, if no connection object exists then create one.\n\t\t\t\tif (!self::$db)\n\t\t\t\t\t{\n\t\t\t\t\t//new connection object.\n\t\t\t\t\tnew dbConn();\n\t\t\t\t\t}\n \n\t\t\t\t//return connection.\n\t\t\t\treturn self::$db;\n\t\t\t\t}", "title": "" }, { "docid": "f1eef24caff0ce31448605ba2159fd96", "score": "0.63741624", "text": "public static function getConnection() {\n if (self::$instance === null) {\n self::$instance = new Database();\n }\n // return while class by its instance\n return self::$instance;\n }", "title": "" }, { "docid": "74281bb2a4f294869968b320ddbacca0", "score": "0.6368262", "text": "public function getConnection()\n {\n if (!$this->conn) {\n $this->conn = DBManagerFactory::createConnection($this);\n }\n\n return $this->conn;\n }", "title": "" }, { "docid": "0ddee75839eb0ad688d18003e98f64e3", "score": "0.6364683", "text": "public final function getConnection(): Connection {\n\t\t// if the connection hasn't been established, create it\n\t\tif($this->connection === null) {\n\t\t\t// connect to mySQL and provide the interface to PHPUnit\n\n\n\t\t\t$secrets = new Secrets(\"/etc/apache2/capstone-mysql/cohert28testing.ini\");\n\t\t\t$pdo = $secrets->getPdoObject();\n\t\t\t$this->connection = $this->createDefaultDBConnection($pdo, $secrets->getDatabase());\n\t\t}\n\t\treturn ($this->connection);\n\t}", "title": "" }, { "docid": "7b87848abc2f695489b385aefa5c6a8c", "score": "0.6323113", "text": "private function getConnection()\n {\n try {\n $connection = new PDO(\"mysql:host={$this->host};dbname={$this->db}\", $this->user, $this->password);\n $connection->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);\n $this->logger->LogDebug(\"Got a connection\");\n } catch (PDOException $e) {\n $error = 'Connection failed ' . $e->getMessage();\n $this->logger->LogError($error);\n }\n return $connection;\n }", "title": "" }, { "docid": "ad1a74e117bbb65d707cf882b9f9ffaa", "score": "0.6322871", "text": "final public function getConnection()\n {\n if (!$this->connection instanceof \\PHPUnit_Extensions_Database_DB_IDatabaseConnection) {\n if (!self::$pdo instanceof \\PHPUnit_Extensions_Database_DB_IDatabaseConnection) {\n self::$pdo = new \\PDO($GLOBALS['DB_DSN'], $GLOBALS['DB_USER'], $GLOBALS['DB_PASS']);\n }\n $this->connection = $this->createDefaultDBConnection(self::$pdo, $GLOBALS['DB_DB']);\n }\n\n return $this->connection;\n }", "title": "" }, { "docid": "2ac815304e236b2bd46686ed3d797bc8", "score": "0.63213587", "text": "public function connectionFactory()\n {\n return $this->connectionFactory;\n }", "title": "" }, { "docid": "af0bb25496bb870a475b0f53abdfad86", "score": "0.6303309", "text": "public static function getConnection() : ConnectionInterface\n {\n static::$instance = static::$instance ?: new static();\n\n return self::$connection;\n }", "title": "" }, { "docid": "7f2b119bf23693fbaa8a76491e3029cf", "score": "0.6296416", "text": "public function newConnection( $type='mysql',$host='localhost', $user, $password, $database, $char_set='utf8' )\r\n {\r\n global $config_urls;\r\n \t/* Inclusión de la clase de la base de datos. */\r\n\t\trequire_once($config_urls['BASE_PATH'].'application/model/adodb5/adodb.inc.php');\r\n\t\t/* Creación del objeto de base de datos. */\t\r\n\t\t$this->connections = ADONewConnection($type);\r\n\t\t$this->connections->debug = DEBUG_SQL;\t\r\n\t\t$this->connections->Connect($host, $user, $password, $database);\r\n\t\t$this->connections->Execute(\"SET NAMES '\".$char_set.\"'\");\r\n \t\r\n \r\n \t\r\n \tif( mysql_errno() )\r\n \t{\r\n \t\ttrigger_error('Error connecting to host. ', E_USER_ERROR);\r\n\t\t} \t\r\n\r\n \treturn $this->connections;\r\n }", "title": "" }, { "docid": "3119e2295c154bc07c02af6aaed9c38e", "score": "0.629281", "text": "public static function get_connection() {\n if (empty(self::$db) === true) {\n new self();\n }\n return self::$db;\n }", "title": "" }, { "docid": "f3356dbb052e18bbb4ea5be62807aed5", "score": "0.62880915", "text": "public function newResourceConnection(): AdapterInterface\n {\n return $this->_resourceConnectionFactory\n ->create()\n ->getConnection();\n }", "title": "" }, { "docid": "f534d5c85db4ef28e7a5934cac109f40", "score": "0.6278537", "text": "public function getConnection () {\n return\n new PDO(\"mysql:host={$this->host};dbname={$this->db}\", $this->user,\n $this->pass);\n }", "title": "" }, { "docid": "1b04066feabf686d941b62819b09149c", "score": "0.62774384", "text": "protected function initDb()\n {\n $config = $this->get('config')->get('database')->toArray();\n\n $dbClass = 'Phalcon\\Db\\Adapter\\Pdo\\\\' . $config['adapter'];\n unset($config['adapter']);\n\n return new $dbClass($config);\n }", "title": "" }, { "docid": "651d593b7c89bd32084744e232db3167", "score": "0.6251527", "text": "public final function getConnection() : Connection {\n\t\t// if the connection hasn't been established, create it\n\t\tif($this->connection === null) {\n\t\t\t// connect to mySQL and provide the interface to PHPUnit\n\t\t\t$config = readConfig(\"/etc/apache2/capstone-mysql/abqreport.ini\");\n\t\t\t$pdo = connectToEncryptedMySQL(\"/etc/apache2/capstone-mysql/abqreport.ini\");\n\t\t\t$this->connection = $this->createDefaultDBConnection($pdo, $config[\"database\"]);\n\t\t}\n\t\treturn($this->connection);\n\t}", "title": "" }, { "docid": "0c1f708b531b15ca70990631fad06e26", "score": "0.6241078", "text": "protected function createPdoInstance()\n\t{\n\t\t$pdoClass=$this->pdoClass;\n\t\tif(($driver=$this->getDriverName())!==null)\n\t\t{\n\t\t\tif($driver==='mssql' || $driver==='dblib')\n\t\t\t\t$pdoClass='CMssqlPdoAdapter';\n\t\t\telseif($driver==='sqlsrv')\n\t\t\t\t$pdoClass='CMssqlSqlsrvPdoAdapter';\n\t\t}\n\n\t\tif(!class_exists($pdoClass))\n\t\t\tthrow new CDbException(Yii::t('yii','CDbConnection is unable to find PDO class \"{className}\". Make sure PDO is installed correctly.',\n\t\t\t\tarray('{className}'=>$pdoClass)));\n\n\t\t@$instance=new $pdoClass($this->connectionString,$this->username,$this->password,$this->_attributes);\n\n\t\tif(!$instance)\n\t\t\tthrow new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection.'));\n\n\t\treturn $instance;\n\t}", "title": "" }, { "docid": "413d66cf42ddac2c3ea302c11e2dff60", "score": "0.62108713", "text": "public function getConnection();", "title": "" }, { "docid": "413d66cf42ddac2c3ea302c11e2dff60", "score": "0.62108713", "text": "public function getConnection();", "title": "" }, { "docid": "413d66cf42ddac2c3ea302c11e2dff60", "score": "0.62108713", "text": "public function getConnection();", "title": "" }, { "docid": "413d66cf42ddac2c3ea302c11e2dff60", "score": "0.62108713", "text": "public function getConnection();", "title": "" }, { "docid": "413d66cf42ddac2c3ea302c11e2dff60", "score": "0.62108713", "text": "public function getConnection();", "title": "" }, { "docid": "e860058242f64f7e2bb99a7ced44adcc", "score": "0.61968476", "text": "public static function getConnection() {\n\n\n // Garantiert eine einzige Instanz des PDO, wenn kein Connection Objekt existiert\n // wird eins erstellt\n if (!self::$db) {\n //neues DBConnection Object.\n new DBConnection();\n }\n\n //Das Objekt zurückgeben.\n return self::$db;\n }", "title": "" }, { "docid": "e88bd3a08aa4ed7bd40810cf9faf9d15", "score": "0.6181378", "text": "public function getConnection(){\n if(null === $this->_connection){\n //Build the connection in first call\n\n //get DB Resource to get the DB adapter for this instance\n $_front = Zend_Controller_Front::getInstance();\n $_dbResource = $_front->getParam('bootstrap')\n ->getPluginResource('db');\n $_dbAdapter = $_dbResource->getDbAdapter();\n\n //Get the db config for this instance to retrieve the name of the db to use\n $_dbConfig = $_dbAdapter->getConfig();\n\n $_dbAdapter->getProfiler()->setEnabled(true);\n\n //Create the Zend_Test_PHPUnit_Db_Connection to use in these tests\n $this->_connection = $this->createZendDbConnection(\n $_dbAdapter,\n $_dbConfig['dbname']\n );\n\n //Set a default the adapter in model to tests thems\n Zend_Db_Table_Abstract::setDefaultAdapter($_dbAdapter);\n }\n\n return $this->_connection;\n }", "title": "" }, { "docid": "90ae79ac3629af847de215982396d792", "score": "0.617551", "text": "protected function getMockConnection()\n {\n /** @var Driver|MockObject $driver */\n $driver = $this->getMockBuilder('Doctrine\\DBAL\\Driver\\PDOSqlite\\Driver')\n ->onlyMethods(['getDatabasePlatform'])\n ->getMock()\n ;\n $platform = $this->getMockBuilder('Doctrine\\DBAL\\Platforms\\SqlitePlatform')\n ->onlyMethods(['getName'])\n ->getMock()\n ;\n\n $platform->method('getName')\n ->willReturn('YourSQL')\n ;\n $driver->method('getDatabasePlatform')\n ->willReturn($platform)\n ;\n\n return new Connection([], $driver);\n }", "title": "" }, { "docid": "7834a4b7bfdc87547d5870b7d365807a", "score": "0.6171432", "text": "public function getDatabaseConnection();", "title": "" }, { "docid": "0afb7f8667f21bf75326268e39a97bc7", "score": "0.6157418", "text": "public static function initialize()\n\t{\n\t\tif (!self::$initialized)\n\t\t{\n\t\t\treturn self::init();\n\t\t}else{\n\t\t return self::getDbConnection();\n }\n\t}", "title": "" }, { "docid": "7d3774ebb86abc2f04270e2e82f631d8", "score": "0.6154837", "text": "private function getConnectionInstant(){\r\n\t\tif(!$this->connection){\r\n\t\t\t$pdo=new PDO('mysql:host=localhost;dbname=news_db;charset=utf8mb4','root','root');\r\n\t\t\t$this->connection=$pdo;\r\n\t\t}\r\n\t\treturn $this->connection;\r\n\t}", "title": "" }, { "docid": "202fe2b585e9924bac1ad4885b51a783", "score": "0.6141993", "text": "protected function getConnection()\n\t{\n\t\tif (empty($this->_pdoConnection))\n\t\t{\n\t\t\t$result = $this->initConnection();\n\t\t\t\n\t\t\tif (is_string($result))\n\t\t\t{\n\t\t\t\tthrow new Connection($result);\n\t\t\t}\n\t\t\t\n\t\t\t// If reach here, everything was fine\n\t\t\t$this->_pdoConnection = $result;\n\t\t}\n\t\t\n\t\treturn $this->_pdoConnection;\n\t}", "title": "" }, { "docid": "1ad007d8bddc6eb06047ef176aed75f7", "score": "0.61402786", "text": "public function getConnection(): ConnectionInterface;", "title": "" }, { "docid": "9b01444ba436f5b987c2fb8624d40795", "score": "0.6129653", "text": "private static function getConnection() : \\PDO {\r\n if (!isset(self::$__connection)) {\r\n self::$__connection = new \\PDO(Configuration::getDbtype() . ':host=' . Configuration::getHost() . ';dbname='. Configuration::getDbName() . ';charset=utf8', Configuration::getUser() , Configuration::getPass());\r\n }\r\n return self::$__connection;\r\n }", "title": "" }, { "docid": "2ff0e333c3f6ea70bbc17adcccfdccb7", "score": "0.61194557", "text": "protected function newActiveRecord() {\n\t\t$className = self::getTestTableName();\n\t\t$activeRecord = new $className();\n\t\treturn $activeRecord;\n\t}", "title": "" }, { "docid": "ea6a8783076a36d9b25f033978348695", "score": "0.61182564", "text": "public function getConnection()\n {\n\n $this->connection = null;\n\n try {\n $this->connection = new PDO(\"mysql:host=\" . $this->host . \";dbname=\" . $this->database, $this->username, $this->password);\n $this->connection->exec(\"set names utf8\");\n } catch (PDOException $exception) {\n echo \"Error: \" . $exception->getMessage();\n }\n\n return $this->connection;\n }", "title": "" }, { "docid": "8262b0d1aa1a764fb6101cc41e1f3d40", "score": "0.6112478", "text": "function __construct(){\n $connectionDb = new Connection;\n $this->conn = $connectionDb->connect();\n }", "title": "" }, { "docid": "7a6a609b4e87ca1e872d5c15708f606d", "score": "0.6105111", "text": "public function db() : Connection { return $this->conn; }", "title": "" }, { "docid": "88b418885f242f7476ed804ce3320eb9", "score": "0.6098831", "text": "public function getConnection() : \\PDO;", "title": "" }, { "docid": "a1cbe4452b5a880ad6f7595b158169e0", "score": "0.60924274", "text": "static function getInstace()\n\t{\n\t\tif (self::$connection == NULL)\n\t\t{\n\t\t\tinclude_once('helpers/dbconnector.php');\n\t\t\tself::$connection = connect(); //LOLWOOT\n\t\t}\n\t\treturn self::$connection;\n\t}", "title": "" }, { "docid": "3b5c0777fd91faff5335f3e14d4b8580", "score": "0.6091657", "text": "public function connect()\n {\n // Allows chained calls.\n if (is_object(self::$_resource)) {\n self::$_attempts += 1;\n return $this;\n }\n\n $this->_dns = \"{$this->_driver}:host={$this->_host};port={$this->_port};dbname={$this->_base};charset={$this->_charset}\";\n self::$_resource = new PDO($this->_dns, $this->_user, $this->_pass, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);\n self::$_attempts += 1;\n\n return $this;\n }", "title": "" }, { "docid": "440874df14880733e6787a7ce37a8d7c", "score": "0.60904694", "text": "protected function newConnectionMock()\n {\n return $this->mock('Adldap\\Connections\\ConnectionInterface');\n }", "title": "" }, { "docid": "0472e5cbc645e357c5264186cf5127f4", "score": "0.6088761", "text": "public function createConnection(\n\t\tarray $params,\n\t\t?Configuration $config = null,\n\t\t?EventManager $eventManager = null,\n\t): Connection {\n\t\tif (!$this->initialized) {\n\t\t\t$this->initializeTypes();\n\t\t}\n\n\t\t/** @phpstan-ignore-next-line */\n\t\t$connection = DriverManager::getConnection($params, $config, $eventManager);\n\t\tif ($this->typesMapping !== []) {\n\t\t\t$platform = $this->getDatabasePlatform($connection);\n\t\t\tforeach ($this->typesMapping as $dbType => $doctrineType) {\n\t\t\t\t$platform->registerDoctrineTypeMapping($dbType, $doctrineType);\n\t\t\t}\n\t\t}\n\t\tif ($this->commentedTypes !== []) {\n\t\t\t$platform = $this->getDatabasePlatform($connection);\n\t\t\tforeach ($this->commentedTypes as $type) {\n\t\t\t\t$platform->markDoctrineTypeCommented(Type::getType($type));\n\t\t\t}\n\t\t}\n\n\t\treturn $connection;\n\t}", "title": "" }, { "docid": "591d5df2fcb61e59c748762a91f47751", "score": "0.60867107", "text": "static function create() {\n\t\t$config = Core::cadenzaConfig();\n\t\t$dsn = 'mysql:host='.$config['mysql_host'].';dbname='.$config['mysql_database'].';charset=utf8';\n\t\t$username = $config['mysql_username'];\n\t\t$password = $config['mysql_password'];\n\t\ttry {\n\t\t\tstatic::$dbh = new PDO($dsn, $username, $password);\n\t\t}\n\t\tcatch (PDOException $e) {\n\t\t\tdie('Connection failed: '.$e->getMessage());\n\t\t}\n\t\tstatic::$connected = true;\n\t\treturn static::$dbh;\n\t}", "title": "" }, { "docid": "e3fa2e836c7929d64c6aa118c7618032", "score": "0.60853255", "text": "function __construct() {\r\n $db_connection = new db();\r\n $this->link = $db_connection->connect();\r\n return $this->link;\r\n }", "title": "" }, { "docid": "9643c0bc4d14463977bdff62466c2f91", "score": "0.60822445", "text": "protected static function getConnection()\n {\n if (isset(static::$connection)) {\n return static::$connection;\n }\n\n $connection = DriverManager::getConnection(static::getConnectionParameters());\n\n switch ($connection->getDatabasePlatform()->getName()) {\n case 'postgresql':\n $connection->exec('CREATE EXTENSION postgis');\n break;\n case 'mysql':\n break;\n default:\n throw new UnsupportedPlatformException(sprintf(\n 'DBAL platform \"%s\" is not currently supported.',\n $connection->getDatabasePlatform()->getName()\n ));\n }\n\n return $connection;\n }", "title": "" }, { "docid": "c2faef908a3f14db313e3b34f4f954fd", "score": "0.60814726", "text": "final public function getConnection()\n {\n static $conn = null;\n if($conn == null) {\n if(self::$pdo == null) {\n self::$pdo = new PDO(\n $this->config['dsn'],\n $this->config['username'],\n $this->config['password']\n );\n }\n $conn = $this->createDefaultDBConnection(self::$pdo, $this->dbName);\n }\n return $conn;\n }", "title": "" }, { "docid": "65c4b11db9566208a49ce83b446390b7", "score": "0.6076409", "text": "protected static function _get_connection(){\n\n\t\tif(!isset(self::$_instance)){\n\t\t\ttry{\n\t\t\t\tself::$_instance = new Database();\n\t\t\t}catch(DatabaseException $e){\n\t\t\t\tthrow new DatabaseException($e->getMessage());\n\t\t\t}\n\t\t}\n\t\treturn self::$_instance;\n\t\n\t}", "title": "" }, { "docid": "2bc6e9c1f4ae5b1d43ee3059cf5191e6", "score": "0.60748565", "text": "public function establishConnection()\n {\n try {\n $connection = new PDO(\"mysql:host={$this->host};dbname={$this->dbname}\", $this->dbusername, $this->dbpass);\n } catch (\\PDOException $e) {\n\n }\n\n return $connection;\n }", "title": "" }, { "docid": "c4e33f1966d97f18c633f5aab1296304", "score": "0.6065539", "text": "public function getConnection()\n {\n return DB::connection($this->connection);\n }", "title": "" }, { "docid": "5e85ff9da028c05a145ad9b9880dda35", "score": "0.60647315", "text": "protected function connection(): ConnectionInterface\n {\n return Eloquent::getConnectionResolver()->connection();\n }", "title": "" }, { "docid": "aa3c81ebb4212b1b3e886f41021cdd76", "score": "0.60641783", "text": "protected function connection($selected_adapter)\n {\n $conn = new $this->adapters[$selected_adapter]['class'](\n config()\n ->database\n ->adapters\n ->{$selected_adapter}\n ->toArray()\n );\n\n $conn->setEventsManager($this->getEventLogger());\n\n return $conn;\n }", "title": "" }, { "docid": "a255766ea4d02283ffd7cd51892bf38e", "score": "0.6058781", "text": "private function createPDOInstance()\n {\n if (isset(self::$pdo)) {\n return self::$pdo;\n }\n return new PDOConnection(array(\n \"host\" => \"127.0.0.1\",\n \"dataBaseName\" => \"pencilco_immunize\",\n \"username\" => \"pencilco_admin\",\n \"password\" => \"macgrenor2015\"\n ));\n\n /*return new PDOConnection(array(\n \"host\" => \"localhost\",\n \"dataBaseName\" => \"immunize\",\n \"username\" => \"root2\",\n \"password\" => \"123456789\"\n ));*/\n\n }", "title": "" }, { "docid": "60d790fe2b7524c7979f5cff067dc5e1", "score": "0.605671", "text": "protected function getConnection(): Connection\n {\n return $this->getHelper('db')->getConnection();\n }", "title": "" }, { "docid": "a6cc9b2d710cb842ad90eb9d31653116", "score": "0.60552305", "text": "function __construct(){\n\t\t$this->conn_obj = new Connection();\n\t}", "title": "" }, { "docid": "4bd94cccd32ef868bbedbcc6c75c285a", "score": "0.6053844", "text": "public function getConnection() {\n\t\t$constants = new ConnectionConstants();\n\t\t$DB = NewADOConnection('mysql');\n\t\t$DB->Connect($constants->URL, \n\t\t\t$constants->USER, \n\t\t\t$constants->PWD, \n\t\t\t$constants->DB_NAME);\n\t\treturn $DB;\n\t}", "title": "" }, { "docid": "0ec5ec46c452bdec1c40868e324c29bf", "score": "0.6051579", "text": "public static function getNewConnector() {\n return new MysqliDb(DbConfig::HOST, DbConfig::USERNAME, DbConfig::PASSWORD, DbConfig::DATABASE);\n }", "title": "" }, { "docid": "46bfce6845e1083ea3b1b1d9716b860b", "score": "0.605136", "text": "public function __construct() {\n $this->_connection = new \\mysqli($this->host, $this->user, $this->password, $this->dbname) or die(\"Unable to connect: \".mysqli_error($this->_connection));\n return $this;\n }", "title": "" }, { "docid": "f09cfd02a35ad8eb3209e632c5d2457b", "score": "0.60503745", "text": "public static function make()\n {\n return new self(Config::DATABASE_HOST, Config::DATABASE_USER, Config::DATABASE_PASSWORD, Config::DATABASE_NAME);\n }", "title": "" }, { "docid": "4a561b2f9590fb6e64e0340700ba15d9", "score": "0.6047849", "text": "public static function getConnection() {\n\t\tif(self::$instance == NULL) {\n\t\t\tself::$instance = new DBCnf();\n\t\t}\n\t\t\n\t\treturn self::$instance->conn;\n\t}", "title": "" }, { "docid": "dd89fd424365cc04a67fdc3e9fd946b2", "score": "0.60421973", "text": "public function __construct()\n {\n $this->connection = $this->createConnection();\n }", "title": "" }, { "docid": "83c60ad607dbef7417dfd1e2bd19836f", "score": "0.60418904", "text": "public function getConnection()\n {\n return DatabaseManager::connection($this->connection);\n }", "title": "" }, { "docid": "31c77bd45565534c9ab8237075651139", "score": "0.60319865", "text": "private static function obj () {\n\t\treturn self::$instance ?? (self::$instance = new DBConnection ());\n\t}", "title": "" }, { "docid": "c28508389eb6bcaa8b5193d5fd077dfa", "score": "0.6017731", "text": "public function __construct()\n {\n $this->conn = DBConn::getConnection();\n }", "title": "" }, { "docid": "c701866aadec510ca8595274a01577b7", "score": "0.6017092", "text": "protected function createConnection(array $config)\n {\n return $this->factory->make($config);\n }", "title": "" }, { "docid": "924c6dcac613f8fbdc9f29de218c5368", "score": "0.6016387", "text": "private function makeConnection($db_info = null) {\n\t\t\n\t\tif ($db_info === null)\n\t\t\t$db_info = Configure::get(\"Database.profile\");\n\t\t\n\t\t// Attempt to reuse an existing connection if one exists that matches this connection\n\t\tif (Configure::get(\"Database.reuse_connection\") !== false && ($key = array_search($db_info, self::$db_infos)) !== false)\n\t\t\t$this->connection =& self::$connections[$key];\n\t\t\t\n\t\t// Only attempt to set up a new connection if none exists\n\t\tif (!($this->connection instanceof PDO)) {\n\t\t\t\n\t\t\t// Override any default settings with those provided\n\t\t\t$options = (array)(isset($db_info['options']) ? $db_info['options'] : null) + $this->default_pdo_options;\n\t\t\t// Ensure persistence is set to either true or false\n\t\t\t$options[PDO::ATTR_PERSISTENT] = (isset($db_info['persistent']) ? $db_info['persistent'] : false);\n\t\t\t\n\t\t\ttry {\n\t\t\t\t$this->connection = new PDO(self::makeDSN($db_info), (isset($db_info['user']) ? $db_info['user'] : null), (isset($db_info['pass']) ? $db_info['pass'] : null), $options);\n\t\t\t\t\n\t\t\t\t// Record the connection\n\t\t\t\tself::$connections[] =& $this->connection;\n\t\t\t\tself::$db_infos[] = $db_info;\n\t\t\t\t\n\t\t\t\t// Run a character set query to override the database server's default character set\n\t\t\t\tif (isset($db_info['charset_query']) && $db_info['charset_query'] != \"\")\n\t\t\t\t\t$this->query($db_info['charset_query']);\n\t\t\t}\n\t\t\tcatch (PDOException $e) {\n\t\t\t\tthrow new Exception($e->getMessage());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "cbe13c140c07caf071086bbbc1849ff9", "score": "0.60151935", "text": "public static function getConnection() {\n\t\tif (!self::$con) {\n\t\t\tnew DB();\n\t\t}\n\t\treturn self::$con;\n\t}", "title": "" }, { "docid": "4a7ad61fc0484aec1f15b22457d79d09", "score": "0.6013907", "text": "private static function getConnection()\n {\n if (! self::$connection) {\n $accessData = require_once(__DIR__ . '/../Config/Database.php');\n\n $dsn = \"{$accessData['driver']}:host={$accessData['host']};dbname={$accessData['dbname']}\";\n\n $pdo = new \\PDO($dsn, $accessData['username'], $accessData['password']);\n $pdo->setAttribute(\\PDO::ATTR_ERRMODE, \\PDO::ERRMODE_EXCEPTION);\n\n self::$connection = $pdo;\n } else {\n return self::$connection;\n }\n }", "title": "" }, { "docid": "9826be3917e062c9be3bdd66a8ab8ab2", "score": "0.60110694", "text": "public static function getConnection(){\n\n if(static::$conn == null){\n \t\ttry{\n \t\t\t$opt = array(\n \t\t PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,\n \t\t PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,\n \t\t PDO::ATTR_EMULATE_PREPARES => FALSE,\n \t\t );\n \t\t $dsn = 'mysql:host='.DB_HOST.';dbname='.DB_NAME.';charset='.DB_CHAR;\n \t\t static::$conn = new PDO($dsn, DB_USER, DB_PASS, $opt);\n \t\t}catch(PDOException $exception){\n \t\t die(\"Connection error: \" . $exception->getMessage());\n \t\t}\n \t }\n return static::$conn;\n }", "title": "" } ]
99aa24ef37b502f651c1deac11bbacb7
Get the numero employe.
[ { "docid": "0d87130e98ca759b3c8bb9f50bef3fac", "score": "0.8667935", "text": "public function getNumeroEmploye() {\n return $this->numeroEmploye;\n }", "title": "" } ]
[ { "docid": "f1db4028fb48ac3138e6325e5b602da1", "score": "0.7984639", "text": "public function getNumeroEmploye(): ?string {\n return $this->numeroEmploye;\n }", "title": "" }, { "docid": "f1db4028fb48ac3138e6325e5b602da1", "score": "0.7984639", "text": "public function getNumeroEmploye(): ?string {\n return $this->numeroEmploye;\n }", "title": "" }, { "docid": "f1db4028fb48ac3138e6325e5b602da1", "score": "0.7984639", "text": "public function getNumeroEmploye(): ?string {\n return $this->numeroEmploye;\n }", "title": "" }, { "docid": "3a58ee1002a5747bcf8b6e11c0c99785", "score": "0.76232415", "text": "public function getNumExercicioEmpenho()\n {\n return $this->numExercicioEmpenho;\n }", "title": "" }, { "docid": "ba20a95c2765f14fb96b5f4c16870801", "score": "0.7492206", "text": "public function getEmpresa_numero()\n {\n return $this->empresa_numero;\n }", "title": "" }, { "docid": "9583c6e4b81008595d56bb327726be5a", "score": "0.720419", "text": "public function getNomEmploye() {\n return $this->nomEmploye;\n }", "title": "" }, { "docid": "9583c6e4b81008595d56bb327726be5a", "score": "0.720419", "text": "public function getNomEmploye() {\n return $this->nomEmploye;\n }", "title": "" }, { "docid": "c80fb6182286f2444d4da525fa319598", "score": "0.7196468", "text": "public function getNumeroEmploye2() {\n return $this->numeroEmploye2;\n }", "title": "" }, { "docid": "2a770c2639ffa482c5ca71c96ccb1b9b", "score": "0.7186788", "text": "public function getEmployeeID() {\n\t\treturn ($this->employee) ? $this->employee : 0;\n\t}", "title": "" }, { "docid": "1e84dbf2fc1b6eb7146d3fd6bf63897e", "score": "0.7131882", "text": "public function getPrenomEmploye() {\n return $this->prenomEmploye;\n }", "title": "" }, { "docid": "99688037d7e05acf9c43b11423f99e13", "score": "0.7020196", "text": "public function GetIdEmpleado()\n\t{\n\t\treturn $this->id_empleado;\n\t}", "title": "" }, { "docid": "28a824c759628c9f5f1e7c0b2cfd84c5", "score": "0.70096266", "text": "public function getCodigoEmpresa(): int\n {\n return $this->codigoEmpresa;\n }", "title": "" }, { "docid": "d682320cb6ecb340dc5e6f592637f477", "score": "0.69487554", "text": "public function getEmployCompanyNo()\n {\n return $this->employCompanyNo;\n }", "title": "" }, { "docid": "a2151f483165ebc36bd666bb542a83a3", "score": "0.6935839", "text": "public function getEmpid()\r\n {\r\n if ($this->_empid === false) {\r\n $this->_empid = Employe::find()->where(['EMP_ID' => Yii::$app->user->identity->EMP_ID])->one();\r\n }\r\n return $this->_empid;\r\n }", "title": "" }, { "docid": "52e96aea2218b768755df8723aa49a3c", "score": "0.6932206", "text": "public function getNumero()\n {\n return $this->numero;\n }", "title": "" }, { "docid": "52e96aea2218b768755df8723aa49a3c", "score": "0.6932206", "text": "public function getNumero()\n {\n return $this->numero;\n }", "title": "" }, { "docid": "52e96aea2218b768755df8723aa49a3c", "score": "0.6932206", "text": "public function getNumero()\n {\n return $this->numero;\n }", "title": "" }, { "docid": "52e96aea2218b768755df8723aa49a3c", "score": "0.6932206", "text": "public function getNumero()\n {\n return $this->numero;\n }", "title": "" }, { "docid": "52e96aea2218b768755df8723aa49a3c", "score": "0.6932206", "text": "public function getNumero()\n {\n return $this->numero;\n }", "title": "" }, { "docid": "52e96aea2218b768755df8723aa49a3c", "score": "0.6932206", "text": "public function getNumero()\n {\n return $this->numero;\n }", "title": "" }, { "docid": "52e96aea2218b768755df8723aa49a3c", "score": "0.6932206", "text": "public function getNumero()\n {\n return $this->numero;\n }", "title": "" }, { "docid": "52e96aea2218b768755df8723aa49a3c", "score": "0.6932206", "text": "public function getNumero()\n {\n return $this->numero;\n }", "title": "" }, { "docid": "52e96aea2218b768755df8723aa49a3c", "score": "0.6932206", "text": "public function getNumero()\n {\n return $this->numero;\n }", "title": "" }, { "docid": "3989feac5a727be54b60140ae23caa6f", "score": "0.69281155", "text": "public function getNumero(){\n\t\treturn $this->numero;\n\t}", "title": "" }, { "docid": "3989feac5a727be54b60140ae23caa6f", "score": "0.69281155", "text": "public function getNumero(){\n\t\treturn $this->numero;\n\t}", "title": "" }, { "docid": "c8135a72100bd5382bd506215b8b3e52", "score": "0.6897573", "text": "function getNumero() {\n return $this->numero;\n }", "title": "" }, { "docid": "adf8adf67584109d52925c69c81b7715", "score": "0.68903977", "text": "public function getNumero()\n {\n return $this->numero;\n }", "title": "" }, { "docid": "812c9190b311a35bf25e3a1829fdd522", "score": "0.687456", "text": "public function getEmployeeId(): int\n {\n return $this->employeeId;\n }", "title": "" }, { "docid": "3110f97e0bfcd70a117664fa2af7fab6", "score": "0.6870454", "text": "public function getEmploiEvo() {\n return $this->emploiEvo;\n }", "title": "" }, { "docid": "3dcaa5b6051e19f3f057f3f14bb98194", "score": "0.6855622", "text": "public function numero()\n {\n return $this->numero;\n }", "title": "" }, { "docid": "fcf5d7504e21fd0acd5bb426fbe17cdf", "score": "0.6836048", "text": "public function getIdEmpleado()\n {\n return $this->idEmpleado;\n }", "title": "" }, { "docid": "fafd5a11e18b4056ba3ec2d743a6bb4e", "score": "0.6835492", "text": "public function numero()\n {\n return $this->numero;\n }", "title": "" }, { "docid": "6e1b601fc0f8586d2ba2d3b6d295a76a", "score": "0.68224806", "text": "public function numero() {\n return $this->numero;\n }", "title": "" }, { "docid": "387f78a295f0ce6056aa598f495daed6", "score": "0.6808814", "text": "public function getNotaEmpenho()\n {\n return $this->notaEmpenho;\n }", "title": "" }, { "docid": "ad449c494252d4a7098ef198a8b6769e", "score": "0.6716532", "text": "function getNumero(){\t\n\t\treturn $this->numero;\n\t}", "title": "" }, { "docid": "cffc98a26bbb62b2b3ee6234b28dc374", "score": "0.6713029", "text": "public function getEvoEmploi() {\n return $this->evoEmploi;\n }", "title": "" }, { "docid": "e6c4b7e8d0e58245facefd6b23889103", "score": "0.6678479", "text": "public function get_empresa_id(): int {\n return $this->empresa_id;\n }", "title": "" }, { "docid": "5898c6f03b517d9b5b50e5875835caea", "score": "0.66079706", "text": "public function getNumeroDeEixos()\n {\n return $this->numeroDeEixos;\n }", "title": "" }, { "docid": "1a99dbe0fb90df7e181821345a711d2c", "score": "0.65514535", "text": "function getEmpleado_id() {\r\n\t\treturn $this->empleado_id;\r\n }", "title": "" }, { "docid": "839b18720816a944165ae405ebf5008c", "score": "0.65499884", "text": "public function getEmployeeID()\n {\n return $this->employeeID;\n }", "title": "" }, { "docid": "6bd13d034db7746af3630411f060cd1e", "score": "0.65491694", "text": "public function getNumeroInsee() {\n return $this->numeroInsee;\n }", "title": "" }, { "docid": "6bd13d034db7746af3630411f060cd1e", "score": "0.65491694", "text": "public function getNumeroInsee() {\n return $this->numeroInsee;\n }", "title": "" }, { "docid": "aa53411b23a0b1c6554f4507e5d908e4", "score": "0.64990014", "text": "public function getNombreEmployes() {\n return $this->nombreEmployes;\n }", "title": "" }, { "docid": "fe628dc059a6160318cb388755126977", "score": "0.6487815", "text": "public function getNumEcrEco(): ?int {\n return $this->numEcrEco;\n }", "title": "" }, { "docid": "18f270b0a7165c021229435014c6438f", "score": "0.6473597", "text": "public function getExercicioEmpenho()\n {\n return $this->exercicioEmpenho;\n }", "title": "" }, { "docid": "8336a114e36049f3df774df624999d41", "score": "0.644973", "text": "public function getEmployeeId()\n {\n return $this->employee_id;\n }", "title": "" }, { "docid": "a1a2ede7ee6bebf712ac91584d3c6f56", "score": "0.64423853", "text": "function getIdEstEmployee($estName) {\n\n $getId = \"SELECT `id_Establecimiento` \"\n . \"FROM `establecimiento`\"\n . \"WHERE `Est_Nombre`='$estName'\";\n\n $success = mysql_query($getId) or die(mysql_error());\n\n if ($success) {\n $fArr = mysql_fetch_array($success);\n return $fArr['id_Establecimiento'];\n } else {\n return -1;\n }\n }", "title": "" }, { "docid": "d68041949b0fe358644b2d4f79a1aaf5", "score": "0.64421326", "text": "public function getNumeroDocumento( ){\n\t\treturn $this->numeroDocumento;\n\t}", "title": "" }, { "docid": "447dcf95d5c6f44f4269b2b6019d9b8b", "score": "0.6423141", "text": "public function getDernierEmploi() {\n return $this->dernierEmploi;\n }", "title": "" }, { "docid": "8f0b9e66194f14f9cc3d49c9428e4395", "score": "0.6399649", "text": "function nombreEmpleado()\n\t{\n\t\t// las funciones se deben llamar desde la página original\n\t\t$this->Empleado = dado_Id($this->idprofesor,\"Empleado\",\"tb_profesores\",\"idprofesor\");\n\t\treturn $this->Empleado;\n\t}", "title": "" }, { "docid": "fcd245aa2b2f9c3c8bad07158b887625", "score": "0.63911617", "text": "public function getEvenement(): int\n {\n return $this->evenement;\n }", "title": "" }, { "docid": "f87b80cb031a264976218773d31ec343", "score": "0.63762534", "text": "public function getNumberOfEmployees();", "title": "" }, { "docid": "a0cdb5ce57bf96bf8849630de7750d8b", "score": "0.6348004", "text": "public function getCodeEmploye(): ?string {\n return $this->codeEmploye;\n }", "title": "" }, { "docid": "a0cdb5ce57bf96bf8849630de7750d8b", "score": "0.6348004", "text": "public function getCodeEmploye(): ?string {\n return $this->codeEmploye;\n }", "title": "" }, { "docid": "b3328f0ce9cd1cfd75c930465fddad25", "score": "0.6346977", "text": "public function getOfficeNumber()\n {\n return $this->officeNumber;\n }", "title": "" }, { "docid": "cd992f03380823f195e9fb0c78e7625c", "score": "0.63338715", "text": "public function getWorkerNumber();", "title": "" }, { "docid": "03b121f43e33477e85717924c73c7d51", "score": "0.6320369", "text": "public function getEduId(){\n $sql = \"SELECT `edu_id` FROM `education_master` ORDER BY `edu_id` DESC LIMIT 1\";\n $res = mysqli_query($this->conn,$sql);\n if(mysqli_num_rows($res)>0){\n $rows = mysqli_fetch_array($res);\n $currentId = $rows[0]; //(int) substr($rows[0],3);\n return ++$currentId;\n }\n return 1;\n }", "title": "" }, { "docid": "6bfa7fd1908efe771160348147661040", "score": "0.6312908", "text": "public function setNumeroEmploye($numeroEmploye) {\n $this->numeroEmploye = $numeroEmploye;\n return $this;\n }", "title": "" }, { "docid": "6bfa7fd1908efe771160348147661040", "score": "0.6312908", "text": "public function setNumeroEmploye($numeroEmploye) {\n $this->numeroEmploye = $numeroEmploye;\n return $this;\n }", "title": "" }, { "docid": "6bfa7fd1908efe771160348147661040", "score": "0.6312908", "text": "public function setNumeroEmploye($numeroEmploye) {\n $this->numeroEmploye = $numeroEmploye;\n return $this;\n }", "title": "" }, { "docid": "6bfa7fd1908efe771160348147661040", "score": "0.6312908", "text": "public function setNumeroEmploye($numeroEmploye) {\n $this->numeroEmploye = $numeroEmploye;\n return $this;\n }", "title": "" }, { "docid": "4df0d8a4f580b2e6d4d6cae44dcee14c", "score": "0.62234056", "text": "public function getEmpleado_idempleado(){\n return $this->empleado_idempleado;\n }", "title": "" }, { "docid": "d226add74e062c104afec95df6e2e15b", "score": "0.6214495", "text": "public function getNumeroPj() {\n return $this->numeroPj;\n }", "title": "" }, { "docid": "8387d9a481211197e8b82c2bc40ada34", "score": "0.6200977", "text": "public function getNumeroLigne() {\n return $this->numeroLigne;\n }", "title": "" }, { "docid": "e8a02bc4b46ee8dc67f195f86bb60fa8", "score": "0.61875486", "text": "public function getNumber() : int\n {\n return $this->number;\n }", "title": "" }, { "docid": "e2f3147a99fccf3329f11f4c218fd9f9", "score": "0.61766756", "text": "public function getNumeroEmpleadoUsuarioLdap() {\n\t\n\t\tif(is_object($this->resultadoLdap))\n\t\t\treturn $this->resultadoLdap->numeroEmpleado;\n\t\telse\n\t\t\treturn 'Informacion No Disponible: Debe utilizar previamente el metodo obtenerInfoUsuario()';\n\t}", "title": "" }, { "docid": "7476dca2ffa7b27e9d484918e610cb54", "score": "0.6175636", "text": "public function getNumber(): int {\n return $this->number;\n }", "title": "" }, { "docid": "7ad30958f6a4143adc77fb056d1d53b4", "score": "0.6157554", "text": "public function getEcritureNum(): ?string {\n return $this->ecritureNum;\n }", "title": "" }, { "docid": "b0b014c724d10270dc7f4bfc3041cbb4", "score": "0.6155937", "text": "function getEstablishmentName($idEmployee) {\n\n $nombreEst = \"SELECT `empl_Establecimiento` \"\n . \"FROM `empleado` \"\n . \"WHERE `id_Doc_Identidad`='$idEmployee'\";\n\n $success = mysql_query($nombreEst) or die(mysql_error());\n\n if ($success) {\n $fArr = mysql_fetch_array($success);\n return $fArr['empl_Establecimiento'];\n } else {\n return -1;\n }\n }", "title": "" }, { "docid": "d00fb791b80f7066555118d53b584a3c", "score": "0.6115595", "text": "public function getIdEmpresa()\n {\n return $this->id_empresa;\n }", "title": "" }, { "docid": "800a1e17b7526b1ee7ce95eba6bcf023", "score": "0.6106554", "text": "public function getIdPessoa()\n {\n return $this->id_pessoa;\n }", "title": "" }, { "docid": "6f0a3515da33ebba386096264b9d7c86", "score": "0.6094093", "text": "public function ultimoNumeroFactura(){\n $pdo = Database::connect();\n $sql = \"select max(COD_REGISTRO) numero from produccion_cab\";\n $consulta = $pdo->prepare($sql);\n $consulta->execute();\n //obtenemos el registro especifico:\n $res=$consulta->fetch(PDO::FETCH_ASSOC);\n $numero=$res['numero'];\n Database::disconnect();\n //retornamos el numero encontrado:\n if(!isset($numero))\n return 0;\n return $numero;\n }", "title": "" }, { "docid": "e984b67b653b54127f8e5afb8d6ee10f", "score": "0.60902226", "text": "public function testSetNumeroEmploye() {\n\n $obj = new LignesBulletin();\n\n $obj->setNumeroEmploye(\"numeroEmploye\");\n $this->assertEquals(\"numeroEmploye\", $obj->getNumeroEmploye());\n }", "title": "" }, { "docid": "bad61ccfc3653ef4bd2cbcdf74592f3a", "score": "0.6087604", "text": "public function getNumLigne() {\n return $this->numLigne;\n }", "title": "" }, { "docid": "86f54beb54b2c0d71b6220b4f7007016", "score": "0.6085156", "text": "public function getCompNum()\n {\n return $this->compartimento->numero;\n }", "title": "" }, { "docid": "92ffa8ba93d7b657c483de63acddeb2c", "score": "0.6073455", "text": "public function setNumeroEmploye(?string $numeroEmploye): TranchesSiBul {\n $this->numeroEmploye = $numeroEmploye;\n return $this;\n }", "title": "" }, { "docid": "ded0d196f94970d19010b1c25362a412", "score": "0.6071686", "text": "public function getNum()\n {\n return $this->num;\n }", "title": "" }, { "docid": "5812de16028d418fa474e9f41184d7f6", "score": "0.6069914", "text": "public function getNum() {\n return $this->num;\n }", "title": "" }, { "docid": "48f30836053cdc6a4831afed8459729a", "score": "0.60535246", "text": "public function get_numero_rue()\r\n {\r\n return $this->_numero_rue;\r\n }", "title": "" }, { "docid": "693fcaa638a995fce185a3398964d6fc", "score": "0.6038756", "text": "public function getIdEstudiante( ){\n\t\treturn $this->idEstudiante;\n\t}", "title": "" }, { "docid": "d0731900a3f13fdaf66175326e4e2841", "score": "0.60351324", "text": "public function selecionarNumeroProfessores() {\r\n $this->criarConexao();\r\n\r\n $sql = \"SELECT COUNT( idProfessor ) NumeroProfessores FROM professor;\";\r\n $resultadoPesquisa = mysql_query($sql);\r\n $resultado = 0;\r\n\r\n while ($aux = mysql_fetch_array($resultadoPesquisa)) {\r\n $resultado = $aux['NumeroProfessores'];\r\n }\r\n if (mysql_num_rows($resultadoPesquisa) == 0) {\r\n $resultado = 0;\r\n }\r\n return $resultado;\r\n }", "title": "" }, { "docid": "edd6af0b4cc16ecfa1004983b8c885d0", "score": "0.6018107", "text": "public function getArticleNumber()\n {\n return $this->articleNumber;\n }", "title": "" }, { "docid": "111077d440b978c2d1d592d65933fe3b", "score": "0.6012823", "text": "public function getNumId()\n {\n return $this->numId;\n }", "title": "" }, { "docid": "be536172f87e9c7a3a7e2c35325a0be7", "score": "0.60022795", "text": "public function getNumeroEndereco(): string\n {\n return $this->numeroEndereco;\n }", "title": "" }, { "docid": "dad04456359cd5cefa3478dfd6ff7e94", "score": "0.6001228", "text": "public function getNumber()\n {\n return $this->number;\n }", "title": "" }, { "docid": "dad04456359cd5cefa3478dfd6ff7e94", "score": "0.6001228", "text": "public function getNumber()\n {\n return $this->number;\n }", "title": "" }, { "docid": "dad04456359cd5cefa3478dfd6ff7e94", "score": "0.6001228", "text": "public function getNumber()\n {\n return $this->number;\n }", "title": "" }, { "docid": "dad04456359cd5cefa3478dfd6ff7e94", "score": "0.6001228", "text": "public function getNumber()\n {\n return $this->number;\n }", "title": "" }, { "docid": "dad04456359cd5cefa3478dfd6ff7e94", "score": "0.6001228", "text": "public function getNumber()\n {\n return $this->number;\n }", "title": "" }, { "docid": "dad04456359cd5cefa3478dfd6ff7e94", "score": "0.6001228", "text": "public function getNumber()\n {\n return $this->number;\n }", "title": "" }, { "docid": "ddecf8b7d0507ce07e8b1ab7cfc2aef7", "score": "0.59899664", "text": "private function getID(){\r\n\t\treturn $this->ultimoID;\r\n\t}", "title": "" }, { "docid": "9ab17f62f156f5b66cd7feffaf447de1", "score": "0.5985292", "text": "public function getNumeroPregao()\n {\n return $this->numeroPregao;\n }", "title": "" }, { "docid": "494dcf7c3e40de2267deb62d0f4d158b", "score": "0.59768254", "text": "public function employeeIdNextNumber(){\n \ttry {\n \t$next_employee_id_number = array();\n \t$next_employee_id_number = employee_type::max('empId')+1;\n\t \treturn response()->json([\n\t \t\t'success'=>true,\n\t \t\t'error'=>null,\n\t \t\t'code'=>200,\n\t \t\t'data'=>$next_employee_id_number\n\t \t], 200);\n \t\t\n \t} catch (Exception $e) {\n \t\treturn response()->json([\n \t\t\t'success'=>false,\n \t\t\t'error'=>($e->getMessage()),\n \t\t\t'code'=>500\n \t\t], 500);\n \t}\n }", "title": "" }, { "docid": "04b9e5700628c4558bfe90ea2a18d080", "score": "0.5962494", "text": "public function getNumber() {\n\t\treturn $this->number;\n\t}", "title": "" }, { "docid": "c8799f3b1af40e001acfa51ba130ba95", "score": "0.59589815", "text": "public function setNumeroEmploye(?string $numeroEmploye): HeuresAbsence {\n $this->numeroEmploye = $numeroEmploye;\n return $this;\n }", "title": "" }, { "docid": "f8bd465ad9faa9df35c5244384d4049c", "score": "0.59432197", "text": "public function getNumidentf()\n {\n return $this->numidentf;\n }", "title": "" }, { "docid": "5d4d9a44d8b6fd992e3de30001aaafd0", "score": "0.5942198", "text": "public function get_empleado_id(Request $request){\n $employee = Employee::find($request->id);\n return $employee;\n }", "title": "" } ]
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "a0d77ec540149b636f4ac94b3bb963a8", "score": "0.0", "text": "public function edit($id)\n {\n if(session()->get('user.tipo') != 1)\n return redirect()->route('home');\n\n $curso = $this->cursoRepository->find($id);\n return view('curso.editar', compact('curso'));\n }", "title": "" } ]
[ { "docid": "d752fd3972b546ef194ae14ab221ca30", "score": "0.78548634", "text": "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.7693446", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "12344b4793bc2e378f8fdd2f04320aeb", "score": "0.72737956", "text": "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "title": "" }, { "docid": "4d5d18dc7cabac2506b6086630c9acb9", "score": "0.72415876", "text": "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "title": "" }, { "docid": "a3a195b464d234c71899dfdebe78664c", "score": "0.71732706", "text": "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "title": "" }, { "docid": "735e1e8b4f110a9df09910db5ed28525", "score": "0.7064379", "text": "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "title": "" }, { "docid": "df9ef4b827a35145a7d49229d8d654e6", "score": "0.70547634", "text": "public function edit()\n {\n return view('hirmvc::edit');\n }", "title": "" }, { "docid": "2700b4584dcb331a456886a0b54f1cac", "score": "0.6985193", "text": "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "title": "" }, { "docid": "7015d85230c410c83e5c3b96459d2488", "score": "0.6948865", "text": "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "title": "" }, { "docid": "38b4c2bcc5d6f933f82442e502068ae3", "score": "0.6946892", "text": "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "title": "" }, { "docid": "c965649a7ba5f0e8f2fd7cd5676199ff", "score": "0.69416964", "text": "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "title": "" }, { "docid": "0b802a8c6fbeff606ae9845125b51b1f", "score": "0.6929201", "text": "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "title": "" }, { "docid": "7a650e1d62608ea65e940ca06f689f99", "score": "0.69028485", "text": "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "title": "" }, { "docid": "f60e724dc93ad65b7bd2e7142b16eabc", "score": "0.6899143", "text": "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "title": "" }, { "docid": "f60e724dc93ad65b7bd2e7142b16eabc", "score": "0.6899143", "text": "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "title": "" }, { "docid": "8305d0cebc3fd201d190bc1ff4575a6f", "score": "0.68794435", "text": "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "title": "" }, { "docid": "f95123f624fcac74c93244c3dcd7923c", "score": "0.6864862", "text": "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "title": "" }, { "docid": "029c40433076476698bab79003ba1eac", "score": "0.6860578", "text": "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "title": "" }, { "docid": "0f6e23876619bd02375dcf677873df5a", "score": "0.68581015", "text": "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "title": "" }, { "docid": "58f182fa72be87d030c1b48e925f743d", "score": "0.6845792", "text": "public function edit($model, $form);", "title": "" }, { "docid": "40fdf360e2a2fe9a039cdea2bf794a48", "score": "0.6836835", "text": "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "title": "" }, { "docid": "e87e3665ac283ab07f5b91b9cb754a1f", "score": "0.681191", "text": "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "title": "" }, { "docid": "72e898b8c2d147e0531320a9f99a3e5c", "score": "0.6808133", "text": "public function edit()\n { \n return view('admin.control.edit');\n }", "title": "" }, { "docid": "a66e6ee3bd0d4fa614c8f657ecc1c30e", "score": "0.6806856", "text": "public function edit(Form $form)\n {\n //\n }", "title": "" }, { "docid": "873a08d0f357fca631ccc7259052d9ce", "score": "0.68035305", "text": "public function edit()\n {\n return view('common::edit');\n }", "title": "" }, { "docid": "56f882f09bfc4c18dddc6ba2d8e29555", "score": "0.6796193", "text": "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "title": "" }, { "docid": "231882e93a58215aa3b11a974a66292d", "score": "0.67936623", "text": "public function edit()\n {\n return view('admin::edit');\n }", "title": "" }, { "docid": "231882e93a58215aa3b11a974a66292d", "score": "0.67936623", "text": "public function edit()\n {\n return view('admin::edit');\n }", "title": "" }, { "docid": "a73ca49bf4104fffbbb3887f1d83346f", "score": "0.67895305", "text": "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "title": "" }, { "docid": "9167ed1c94ca05e3aa0a462771337864", "score": "0.6785768", "text": "public function edit($id)\n {\n // show form edit user info\n }", "title": "" }, { "docid": "d44ef601c5e9f7e942e5a68e74ecc457", "score": "0.678106", "text": "public function edit()\n {\n return view('escrow::edit');\n }", "title": "" }, { "docid": "b93606e8c8e9ed17a06d96c4b3b11fc2", "score": "0.67773324", "text": "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "title": "" }, { "docid": "12bdbc0881bdb0537af82ab982da6faa", "score": "0.67697626", "text": "public function edit()\n {\n return view('commonmodule::edit');\n }", "title": "" }, { "docid": "05f57ca78e160cfe2110eccf7f3a10ea", "score": "0.6762823", "text": "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "title": "" }, { "docid": "af1ae147b46a5dbc0c8b9ec58527eeb0", "score": "0.6747543", "text": "public function edit()\n {\n return view('catalog::edit');\n }", "title": "" }, { "docid": "af1ae147b46a5dbc0c8b9ec58527eeb0", "score": "0.6747543", "text": "public function edit()\n {\n return view('catalog::edit');\n }", "title": "" }, { "docid": "057b48bb7cf2107466c426e2c9e428fe", "score": "0.67463523", "text": "public function edit(form $form)\n {\n //\n }", "title": "" }, { "docid": "f9e5424b4794ef21c15b578cbc28a1d4", "score": "0.67444044", "text": "public function actionEdit($id) { }", "title": "" }, { "docid": "8b27a5d0d56573cd0526956c4be2a450", "score": "0.6741766", "text": "public function edit()\n {\n return view('admincp::edit');\n }", "title": "" }, { "docid": "420751bbdaa6a3e9ce74ca98cfc852ff", "score": "0.6737379", "text": "public function edit()\n {\n return view('scaffold::edit');\n }", "title": "" }, { "docid": "0c03561e0ce1cb5632190d2eb5636b81", "score": "0.6726827", "text": "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "title": "" }, { "docid": "59b6b275f7f7bdc3e6848165ec89de06", "score": "0.6714104", "text": "public function edit()\n {\n return view('Person.edit');\n }", "title": "" }, { "docid": "cc9a7c5c0bba9badc64824e64ad66ec7", "score": "0.66950524", "text": "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "title": "" }, { "docid": "08fdc9a6d2cb6c51ef14f944a771fea4", "score": "0.66935307", "text": "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "title": "" }, { "docid": "985a86faecdde4f47bba95d71e646057", "score": "0.6689272", "text": "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "title": "" }, { "docid": "2842c83192ad21ca42ea8be34a5324f1", "score": "0.6689106", "text": "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "title": "" }, { "docid": "530ff07fca3d2cdb52201dd4570056f6", "score": "0.66872644", "text": "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "title": "" }, { "docid": "4f3dccb85a68cbb954df9ad9a4d0c25d", "score": "0.6686648", "text": "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "title": "" }, { "docid": "b53d80e937efeb059b69199175992b44", "score": "0.6684393", "text": "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "title": "" }, { "docid": "772ff40e86b6072150a529eefbe46c86", "score": "0.6670288", "text": "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "title": "" }, { "docid": "a866851a953591797ad217ce1686028b", "score": "0.6669616", "text": "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "title": "" }, { "docid": "98c3057a696eb14943e7e5fea5851c0b", "score": "0.66668564", "text": "public function edit($id)\n {\n return $this->showForm($id);\n }", "title": "" }, { "docid": "98c3057a696eb14943e7e5fea5851c0b", "score": "0.66668564", "text": "public function edit($id)\n {\n return $this->showForm($id);\n }", "title": "" }, { "docid": "e79377a38e4c0fdd514a4167f11b8442", "score": "0.666409", "text": "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "title": "" }, { "docid": "0cf3ddf2600f6d70303c0ca4aa94aa89", "score": "0.6662514", "text": "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "title": "" }, { "docid": "fdab95c905028bb144a7c323dab4884b", "score": "0.66599286", "text": "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "title": "" }, { "docid": "080eb7499f3bccf04762f81a141f1e34", "score": "0.66590035", "text": "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "title": "" }, { "docid": "f61beedf1cb6c464918dfa2ec389b88b", "score": "0.6655965", "text": "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "title": "" }, { "docid": "f5568b3447ac8c8c12f9bc6a8de66b3c", "score": "0.6653906", "text": "public function edit($id)\n {\n return view('models::edit');\n }", "title": "" }, { "docid": "56e8e9b08c0406905beb3036122cd7af", "score": "0.6644097", "text": "public function edit()\n {\n return view('home::edit');\n }", "title": "" }, { "docid": "7ca622cf6dbeec972ce3ab725ada0358", "score": "0.66327673", "text": "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "title": "" }, { "docid": "05d5ea89da5bc76e1a1148ffdc9d5801", "score": "0.66314846", "text": "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.6629497", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.6629497", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "ccaf467c5fc185957b7bbec44b0dddcf", "score": "0.6620671", "text": "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "title": "" }, { "docid": "ec626b485a600d64d167d3b54d2af93f", "score": "0.66204685", "text": "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "title": "" }, { "docid": "b5f11e2c797c5ed655b45c6b0df67626", "score": "0.66168797", "text": "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "d6c2c7e0ddbac0b65be0ee74a7fcd796", "score": "0.66163945", "text": "public function edit($id)\n {\n return view('consultas::edit');\n }", "title": "" }, { "docid": "bec91377e793a1e58fadee263ea69b6e", "score": "0.66112244", "text": "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "title": "" }, { "docid": "035eb13b2ca5fd52c8005c0d17b6d221", "score": "0.6610172", "text": "public function edit()\n {\n return view('dashboard::edit');\n }", "title": "" }, { "docid": "f705c05684e4a60636265036a98fcf09", "score": "0.66072273", "text": "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "title": "" }, { "docid": "73169648ddd0200192761e17f4dfed05", "score": "0.65975267", "text": "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "title": "" }, { "docid": "e7be58945b899b23f7cc223134375494", "score": "0.6596347", "text": "public function edit() {\n return view('routes::edit');\n }", "title": "" }, { "docid": "b3cc35921277d5c959b0d4b0de6d3d0f", "score": "0.6595878", "text": "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "title": "" }, { "docid": "6b57f743c86e1cb53617211701b2f779", "score": "0.65914613", "text": "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "title": "" }, { "docid": "4d4834770663719d1d6fa92e65878895", "score": "0.65904135", "text": "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "title": "" }, { "docid": "1c60b7ff7cd4005ccd1de1562140d086", "score": "0.65880567", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "95e99992e10680bf999526cf4d94a731", "score": "0.658147", "text": "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "title": "" }, { "docid": "81d1f6f06bfcdaa0b1c2aa0910b87036", "score": "0.6581434", "text": "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "title": "" }, { "docid": "a6c6b148776a004b9feea4845a365f72", "score": "0.6581035", "text": "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "title": "" }, { "docid": "fc385869569abe1127cb801f92e4d8a2", "score": "0.65780395", "text": "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "title": "" }, { "docid": "c1518fb861e052fa4f53eaaa8fcf65df", "score": "0.65776944", "text": "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "title": "" }, { "docid": "1458051dfc97d0a20c103d39be5d2324", "score": "0.6576013", "text": "public function edit()\n {\n return view('website::edit');\n }", "title": "" }, { "docid": "87f80527ccf944a69125ffa41418e52d", "score": "0.6570687", "text": "public function edit()\n {\n return view('inventory::edit');\n }", "title": "" }, { "docid": "7a2a16aa982fa32e1bbf88f19cbc245d", "score": "0.6569499", "text": "public function edit()\n {\n return view('initializer::edit');\n }", "title": "" }, { "docid": "ce8838daca364c19746373e3d442ca46", "score": "0.6568776", "text": "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "title": "" }, { "docid": "ab321968ce813a175af5fb95680495f5", "score": "0.6567722", "text": "public function edit($id)\n {\n return view('backend::edit');\n }", "title": "" }, { "docid": "f5e66e76e12762a9390e895ff8b010a1", "score": "0.6562973", "text": "public function edit($id)\n {\n return view('crm::edit');\n }", "title": "" }, { "docid": "f5e66e76e12762a9390e895ff8b010a1", "score": "0.6562973", "text": "public function edit($id)\n {\n return view('crm::edit');\n }", "title": "" }, { "docid": "dafb67bfcec13ce7ccc2d28dc5d02dc8", "score": "0.6561691", "text": "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "title": "" }, { "docid": "6523d6126b9b35352d6e67eca4d76647", "score": "0.655929", "text": "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "title": "" }, { "docid": "9032cc93e2789bb98c62248bccbec226", "score": "0.6557889", "text": "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "title": "" }, { "docid": "3fa16587d81f6f3170fd8d7c55fc57c9", "score": "0.65571314", "text": "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "title": "" }, { "docid": "f0635c3926f56ba925042e937788c12f", "score": "0.65565974", "text": "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "title": "" }, { "docid": "f02b43ff1accd9cadee724fad05480c8", "score": "0.65564924", "text": "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "title": "" }, { "docid": "abfaba17709e0fd3b8f201341ba593da", "score": "0.65558827", "text": "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "title": "" }, { "docid": "5ae1d13c46c87141909390a24f3cd093", "score": "0.65556073", "text": "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "title": "" }, { "docid": "61c9cefa779d8688643cb83ba73b2c77", "score": "0.6555524", "text": "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "title": "" }, { "docid": "131a66068bf3a29035ad63b0b9508d37", "score": "0.6549151", "text": "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "title": "" }, { "docid": "0888eb9ecf2df4527b7e452af133b163", "score": "0.6548339", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "7baf494547bacaa08c51d0b12666cfb3", "score": "0.65460944", "text": "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}", "title": "" } ]
44f68f26bd283a4a1555efaa05d5a721
/ Only load the component if BuddyPress is loaded and initialized.
[ { "docid": "791dcb3672cd3444274686709194c282", "score": "0.0", "text": "function bp_gifts_init() {\r\n\r\n\r\n\r\n\trequire( dirname( __FILE__ ) . '/includes/bp-gifts-core.php' );\r\n\r\n\r\n\r\n}", "title": "" } ]
[ { "docid": "029ded4fe43044ffdfcabd575e6638c0", "score": "0.666829", "text": "public static function before_init() {\n\t\tglobal $wp;\n\t\t//if dependent plugin is not active\n\t\tif (!class_exists( 'ManagementGadget' ) ) {\n\t\t\t//$wp->deactivate_plugins(plugin_basename(__FILE__));die('ManagementGadget Must Be Instlled and Activated');\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "c2033711339cbbb8da2676dea2dd90d5", "score": "0.6585414", "text": "protected function load_components()\n {\n return true;\n }", "title": "" }, { "docid": "f7d37012eec4b0cc7113cfb90846f7e2", "score": "0.6407788", "text": "function should_load() {\n\t\tinclude_once( ABSPATH . 'wp-admin/includes/plugin.php' );\n\n\t\treturn is_plugin_active( 'elementor/elementor.php' );\n\t}", "title": "" }, { "docid": "5206b808fa55ca9a69c63a3ae1518a34", "score": "0.62239885", "text": "public function wp_loaded()\n\t\t{\n\t\t\tif (is_admin() && !class_exists('WPSiteSyncContent', FALSE) && current_user_can('activate_plugins')) {\n\t\t\t\tadd_action('admin_notices', array($this, 'notice_requires_wpss'));\n\t\t\t\tadd_action('admin_init', array($this, 'disable_plugin'));\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "ba1056632384e5768e37c320d69198e9", "score": "0.6099065", "text": "function gantry_bp_loader() {\n\tglobal $gantry_bp_path;\n\t\n\tif(is_gantry_active() && is_gantry_theme())\n\t\tinclude($gantry_bp_path . '/gantry_bp.php');\n}", "title": "" }, { "docid": "6c31ec96f89e626a676862bb8ae51dc5", "score": "0.60785633", "text": "public function isLoaded()\n\t{\n\t\treturn ExtensionManagementUtility::isLoaded('captcha');\n\t}", "title": "" }, { "docid": "cf8dc248d95f635f563baf9f4a0ddc60", "score": "0.60690045", "text": "public function loadElementor()\n {\n Loader::addAction('elementor/widgets/widgets_registered', $this, 'registerCustomEleWidgets');\n }", "title": "" }, { "docid": "a1b05734cf5b8744a6cd18883851e7e6", "score": "0.6061529", "text": "function load ()\n {\n\n if ($this->container !== NULL)\n {\n\n parent::load();\n\n }\n\n }", "title": "" }, { "docid": "dce699ef4cf0deca66bbd8a3312a8271", "score": "0.60359114", "text": "public function init() {\n\n\t\t\t// Check if Elementor installed and activated\n\t\t\tif ( ! did_action( 'elementor/loaded' ) ) {\n\t\t\t\tadd_action( 'admin_notices', array( $this, 'admin_notice_missing_main_plugin' ) );\n\t\t\t\treturn;\n\t\t\t}\n\n\n\t\t\t// Check for required Elementor version\n\t\t\tif ( ! version_compare( ELEMENTOR_VERSION, self::MINIMUM_ELEMENTOR_VERSION, '>=' ) ) {\n\t\t\t\tadd_action( 'admin_notices', array( $this, 'admin_notice_minimum_elementor_version' ) );\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Check for required PHP version\n\t\t\tif ( version_compare( PHP_VERSION, self::MINIMUM_PHP_VERSION, '<' ) ) {\n\t\t\t\tadd_action( 'admin_notices', array( $this, 'admin_notice_minimum_php_version' ) );\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Once we get here, We have passed all validation checks so we can safely include our plugin\n\t\t\trequire_once( 'plugin.php' );\n\t\t}", "title": "" }, { "docid": "4a938b3f4f2152840f0d4fe43076bc0a", "score": "0.5995282", "text": "public function plugins_loaded() {\n\t\t\tadd_action( 'wp_ajax_nopriv_wporg_handle_association', array( $this, 'handle_association' ) );\n\n\t\t\t// Disable activity reporting related to groups\n\t\t\tadd_filter( 'bp_activity_component_before_save', array( $this, 'disable_group_activity_reporting' ) );\n\t\t\tremove_action( 'bp_register_activity_actions', 'groups_register_activity_actions' );\n\n\t\t\t// Workaround (temp?) for wp-admin being considered the current user\n\t\t\tadd_filter( 'bp_displayed_user_id', array( $this, 'wp_admin_is_not_a_user' ) );\n\t\t}", "title": "" }, { "docid": "8feb014172af6d4f7f3f547a71607f81", "score": "0.5993606", "text": "function rppw_plugin_loaded() {\n\t\n\t//check Woocommerce is activated or not\n\tif( class_exists( 'Woocommerce' ) ) {\n\t\t\n\t\t// load first plugin text domain\n\t\trppw_load_text_domain();\n\n\t\t// Delclare global variable to make it customizable without making changes in plugin\n\t\tglobal $rppw_public, $rppw_scripts;\n\n\t\tinclude_once( RPPW_INC_DIR.'/class-rppw-public.php' );\n\t\t$rppw_public = new RPPW_Public();\n\t\t$rppw_public->add_hooks();\n\n\t\t/* \n\t\t* Widget Script and Style Class \n\t\t*/\n\t\tinclude_once( RPPW_INC_DIR.'/class-rppw-scripts.php' );\n\t\t$rppw_scripts = new RPPW_Scripts();\n\t\t$rppw_scripts->add_hooks();\n\n\t\t/* \n\t\t* Widget class\n\t\t*/\n\t\tinclude_once( RPPW_INC_DIR.'/widget/class-rppw-widget.php' );\t\n\n\t} else {\n\t\tadd_action( 'admin_notices', 'rppw_woocommerce_required_error' );\n\t}\n}", "title": "" }, { "docid": "6cd7e884787b9d38d4612ce531309b70", "score": "0.59870297", "text": "private function __construct() {\n\t\tadd_action( 'bbp_loaded', array( $this, 'bbp_loaded' ) );\n\t}", "title": "" }, { "docid": "97396427f85a8caaedf8803701430578", "score": "0.596768", "text": "public function ink_elementor_init() {\n\n // Check if Elementor installed and activated\n if (!did_action('elementor/loaded')) {\n add_action('admin_notices', array($this, 'admin_notice_missing_main_plugin'));\n return;\n } else {\n // Once we get here, We have passed all validation checks so we can safely include our plugin\n require_once( plugin_dir_path(__FILE__) . 'ink-admin/elementor/plugin.php' );\n }\n }", "title": "" }, { "docid": "6ab2d2bc564b5bc372057fb54b297ef9", "score": "0.5926665", "text": "function total_users_lite_plugin_loaded() {\n\n\t// Set constant\n\tdefine( 'TOTAL_USERS_LITE_VERSION', '1.0' );\n\tdefine( 'TOTAL_USERS_LITE_DIR', plugin_dir_path( __FILE__ ) );\n\tdefine( 'TOTAL_USERS_LITE_URL', plugin_dir_url( __FILE__ ) );\n\t\n\t// Load require file\n\trequire_once( TOTAL_USERS_LITE_DIR . 'total-users-lite.php' );\n\n\t// Loads and registers the widgets\n\tadd_action( 'widgets_init', 'total_users_lite_load_widgets' );\t\n}", "title": "" }, { "docid": "e795834621840f54fce1104a80d43f74", "score": "0.5924417", "text": "public function init() {\n\n //Checks if Elementor is installed and activated.\n if ( ! did_action ('elementor/loaded' ) ) {\n add_action( 'admin_notices', array( $this, 'admin_notice_missing_main_plugin' ) );\n return;\n }\n\n //Checks for required Elementor version\n if ( ! version_compare( ELEMENTOR_VERSION, self::MINIMUM_ELEMENTOR_VERSION, '>=' ) ) {\n add_action( 'admin_notices', array( $this, 'admin_notice_minimum_elementor_version' ) );\n return;\n }\n\n if ( version_compare( PHP_VERSION, self::MINIMUM_PHP_VERSION, '<' ) ) {\n add_action( 'admin_notices', array( $this, 'admin_notice_minimum_php_version' ) );\n return;\n }\n\n require_once 'class-widgets.php';\n }", "title": "" }, { "docid": "a2fee2a39c337519460fdf9c1a941813", "score": "0.59167975", "text": "function block_lab_pokemon_init() {\n\tif ( ! function_exists( 'block_lab' ) ) {\n\t\tadd_action( 'admin_notices', 'block_lab_pokemon_requirements_error' );\n\t\treturn;\n\t}\n\n\tblock_lab_pokemon()->plugin_loaded();\n}", "title": "" }, { "docid": "ce9fe864d737ad1074ba74ea228692b3", "score": "0.5916085", "text": "public function init()\n {\n parent::init();\n self::$plugin = $this;\n\n $this->setComponents([\n 'listener' => EventListener::class\n ]);\n\n // Add in our Twig extensions\n // Craft::$app->view->registerTwigExtension(new RevisjonssporTwigExtension());\n\n // Check request.\n $request = Craft::$app->getRequest();\n // @todo: Consider what to do with preview / live preview requests as well.\n\n $settings = $this->getSettings();\n /* @var $settings Settings */\n\n $logIfBackend = ($request->isCpRequest === true && $settings->backend === true) ? true : false;\n $logIfFrontend = ($request->isSiteRequest === true && $settings->frontend === true) ? true : false;\n\n if ($settings->enabled === true &&\n $request->isConsoleRequest === false &&\n ($logIfBackend || $logIfFrontend)\n ) {\n Event::on(\n Plugins::class,\n Plugins::EVENT_AFTER_LOAD_PLUGINS,\n function () {\n // All plugins loaded. Party time!\n $this->listener->addEventListeners();\n }\n );\n }\n\n Craft::debug(\n Craft::t(\n 'revisjonsspor',\n '{name} plugin loaded',\n ['name' => $this->name]\n ),\n __METHOD__\n );\n }", "title": "" }, { "docid": "a82bb6761c5c17ff72116a60180435f2", "score": "0.5891812", "text": "function bpga_loader() {\n\tif ( bp_is_active( 'groups' ) && bp_is_active( 'activity' ) ) {\n\t\trequire( dirname(__FILE__) . '/bp-group-announcements.php' );\n\t}\n}", "title": "" }, { "docid": "34cb5ab316155d37fb5e6f64e5491a0c", "score": "0.58746815", "text": "function acrony_plugins_loaded() {\n require_once( dirname(__FILE__) . '/metabox/init.php'); \n if ( class_exists('KingComposer') ){\n /*-- Used For KingComposer Extra Addons --*/\n require_once( dirname(__FILE__) . '/addons/addons.php');\n }\n require_once( dirname(__FILE__) . '/post-share/index.php');\n require_once( dirname(__FILE__) . '/widget/populer-post.php');\n require_once( dirname(__FILE__) . '/widget/instagram.php');\n require_once( dirname(__FILE__) . '/widget/address-info.php');\n /*-- Support Plugin TextDomain --*/\n load_plugin_textdomain( 'acrony-core', false, basename(dirname(__FILE__)) . '/language/' );\n }", "title": "" }, { "docid": "e7681a542a2118eda4435d502761a2ce", "score": "0.5869267", "text": "function grid_system_shortcodes_plugins_loaded() {\n\n\t/* Set constant path to the members plugin directory. */\n\tdefine( 'GRID_SYSTEM_SHORTCODES_DIR', plugin_dir_path( __FILE__ ) );\n\n\t/* Set constant path to the members plugin directory. */\n\tdefine( 'GRID_SYSTEM_SHORTCODES_URL', plugin_dir_url( __FILE__ ) );\n\t\n\t/* Load widget file. */\n\trequire_once( GRID_SYSTEM_SHORTCODES_DIR . 'grid-system-shortcodes.php' );\n\t\n\trequire_once( GRID_SYSTEM_SHORTCODES_DIR . 'shortcode/sc-function.php' );\n}", "title": "" }, { "docid": "00fa10f5cae0690723affbcf79d757ff", "score": "0.5868694", "text": "public function init() {\n\n\t\t// Check if Elementor installed and activated.\n\t\tif ( ! did_action( 'elementor/loaded' ) ) {\n\t\t\tadd_action( 'admin_notices', array( $this, 'admin_notice_missing_main_plugin' ) );\n\t\t\treturn;\n\t\t}\n\n\t\t// Check for required Elementor version.\n\t\tif ( ! version_compare( ELEMENTOR_VERSION, self::MINIMUM_ELEMENTOR_VERSION, '>=' ) ) {\n\t\t\tadd_action( 'admin_notices', array( $this, 'admin_notice_minimum_elementor_version' ) );\n\t\t\treturn;\n\t\t}\n\n\t\t// Check for required PHP version.\n\t\tif ( version_compare( PHP_VERSION, self::MINIMUM_PHP_VERSION, '<' ) ) {\n\t\t\tadd_action( 'admin_notices', array( $this, 'admin_notice_minimum_php_version' ) );\n\t\t\treturn;\n\t\t}\n\n\n\t\tadd_action( 'add_meta_boxes', 'wslider_add_meta_boxes' );\n\t\tadd_action( 'save_post_car', 'wslider_save_meta_box_data' );\n\n\t\t// Once we get here, We have passed all validation checks so we can safely include our widgets.\n\t\trequire_once 'class-widgets.php';\n\t}", "title": "" }, { "docid": "8349024e89f896f4e63330dcfe01a1f3", "score": "0.5860198", "text": "public function load(){\n add_action( 'admin_init', array(__CLASS__,'add_meta_box'));\n\n // javascript for the meta box\n add_action( 'admin_enqueue_scripts', array(__CLASS__,'metabox_script') );\n\n\n //callback to create menu item and add it to menu\n add_action('wp_ajax_my-add-post-type-buddypress-links', array( __CLASS__, 'ajax_add_post_type'));\n\n //add menu item the appropriate url\n add_filter( 'wp_setup_nav_menu_item', array(__CLASS__,'setup_buddypress_item') );\n }", "title": "" }, { "docid": "b6677cd0da7081aeed9f418bdcbd3199", "score": "0.58407617", "text": "protected function after_load()\n\t{\n\t}", "title": "" }, { "docid": "d771cbab29d80d727aa67178bcd3cf31", "score": "0.5835678", "text": "public function plugins_loaded() {\n // Initialize Paid Memberships Pro module, or give a warning\n if ( !defined('WPCF7_PLUGIN_DIR') ) {\n add_action( 'admin_notices', array( &$this, 'admin_warning_no_plugin_cf7' ) );\n }else{\n require_once( CSCore_PATH . '/classes/caseswap-cf7.php' );\n\n $this->CF7 = new CSCore_CF7();\n }\n\n\n // Initialize Paid Memberships Pro module, or give a warning\n if ( !function_exists('set_membership_url') ) {\n add_action( 'admin_notices', array( &$this, 'admin_warning_no_plugin_membership_premium' ) );\n }else{\n require_once( CSCore_PATH . '/classes/caseswap-membership-premium.php' );\n\n $this->Membership = new CSCore_Members();\n }\n\n // Core modules. No dependencies.\n require_once(CSCore_PATH . '/classes/caseswap-options.php');\n $this->Options = new CSCore_Options();\n\n require_once(CSCore_PATH . '/classes/caseswap-case.php');\n $this->Cases = new CSCore_Case();\n\n require_once(CSCore_PATH . '/classes/caseswap-email.php');\n $this->Email = new CSCore_Email();\n\n require_once(CSCore_PATH . '/classes/caseswap-users.php');\n $this->Users = new CSCore_Users();\n\n do_action( 'caseswap_modules_loaded', $this );\n }", "title": "" }, { "docid": "50f863edbafd61583df4aa6db5cc9fb5", "score": "0.5830952", "text": "public function init_plugin() {\n\n\n\n\t\tif ( class_exists( 'WC_Product_Subscription' ) ) {\n\t\tinclude( 'paid-listings/class-listeo-core-paid-subscriptions.php' );\t\t\t\n\t\t\tinclude_once( 'paid-listings/class-listeo-core-paid-subscriptions-product.php' );\n\t\t\tinclude_once( 'paid-listings/class-wc-product-listing-package-subscription.php' );\n\n\t\t}\n\n\n\t}", "title": "" }, { "docid": "f67d7045e3759813f2c389e5a0183a13", "score": "0.58138114", "text": "public static function initialize() {\n\t\n\t\t\t// Do nothing if the BP COURSE REST API is not enabled\n\t\t\tif ( false == bp_course_get_setting( 'api', 'api','bool' ) || false == self::is_wp_api_active() ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tself::includes();\n\t\t\tself::hooks();\n\t\t}", "title": "" }, { "docid": "527011810e39b2804bf4c6283e48b694", "score": "0.5813018", "text": "public function onAfterInit() {\n // sets 'All products' tab to be active on page load.\n Requirements::javascript('swipestreak/js/cms.js');\n }", "title": "" }, { "docid": "6ae9bd88ab388c2842cc290699fe2e52", "score": "0.58091706", "text": "function wpb_load_widget() {\n /**$$register$$*/\n}", "title": "" }, { "docid": "c34bf4f9882e7b3f056752f658cc9ad3", "score": "0.5798342", "text": "public function load() {\n\n\t\tif ( ! method_exists( 'GFForms', 'include_feed_addon_framework' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\trequire_once( 'class-gf-flexmail.php' );\n\n\t\t\\GFAddOn::register( 'GFFlexmail' );\n\t}", "title": "" }, { "docid": "d189ce1aae1aa62811cbafd8c5274bde", "score": "0.57905173", "text": "public function init() {\n\t\tif ( ! did_action( 'elementor/loaded' ) ) {\n\t\t\tadd_action( 'admin_notices', [ $this, 'admin_notice_missing_main_plugin' ] );\n\t\t\treturn;\n\t\t}\n\t\t// Check for required Elementor version\n\t\tif ( ! version_compare( ELEMENTOR_VERSION, self::MINIMUM_ELEMENTOR_VERSION, '>=' ) ) {\n\t\t\tadd_action( 'admin_notices', [ $this, 'admin_notice_minimum_elementor_version' ] );\n\t\t\treturn;\n\t\t}\n\n\t\t// Check for required PHP version\n\t\tif ( version_compare( PHP_VERSION, self::MINIMUM_PHP_VERSION, '<' ) ) {\n\t\t\tadd_action( 'admin_notices', [ $this, 'admin_notice_minimum_php_version' ] );\n\t\t\treturn;\n\t\t}\n\n\t\t//add_action( 'elementor/editor/after_enqueue_styles', array ( $this, 'pawelements_editor_styles' ) );\n\t\tadd_action( 'elementor/widgets/widgets_registered', [ $this, 'init_widgets' ] );\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'mc_register_frontend_styles' ), 10 );\n\t\tadd_action( 'elementor/elements/categories_registered',[$this,'register_new_category']);\n\t\t\n\t}", "title": "" }, { "docid": "6d6522c78828fcd944be7e10842bdff3", "score": "0.5769685", "text": "public function init() {\n\t\tif ( ! did_action( 'elementor/loaded' ) ) {\n\t\t\tadd_action( 'admin_notices', [ $this, 'admin_notice_missing_main_plugin' ] );\n\t\t\treturn;\n\t\t}\n\n\t\t// Check for required Elementor version\n\t\tif ( ! version_compare( ELEMENTOR_VERSION, self::MINIMUM_ELEMENTOR_VERSION, '>=' ) ) {\n\t\t\tadd_action( 'admin_notices', [ $this, 'admin_notice_minimum_elementor_version' ] );\n\t\t\treturn;\n\t\t}\n\n\t\t// Check for required PHP version\n\t\tif ( version_compare( PHP_VERSION, self::MINIMUM_PHP_VERSION, '<' ) ) {\n\t\t\tadd_action( 'admin_notices', [ $this, 'admin_notice_minimum_php_version' ] );\n\t\t\treturn;\n\t\t}\n\n\t\t// Add Plugin actions\n\t\tadd_action( 'elementor/widgets/widgets_registered', [ $this, 'init_widgets' ] );\n\t\tadd_action( 'elementor/elements/categories_registered',[$this,'register_new_category']);\n\t\tadd_action( 'elementor/frontend/after_register_scripts', array( $this, 'ihcoderdov_register_frontend_scripts'),10);\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'ihcoderdov_register_frontend_styles' ), 10 );\n\n\t\t\n\t}", "title": "" }, { "docid": "93ad54363dfc586c2cfa23a59d87f26d", "score": "0.57581156", "text": "function loaded() {\n\t\tdo_action( 'bp_docs_loaded' );\n\t}", "title": "" }, { "docid": "f2aa744e1635705c93893cedfd39d94d", "score": "0.5742047", "text": "public function initialize() {\n parent::initialize();\n $this->loadComponent('BullhornConnection');\n $this->loadComponent('BullhornCurl');\n }", "title": "" }, { "docid": "4dd1f9fb91dd75ad99b67dddbb661f2f", "score": "0.57408786", "text": "protected function _afterLoad() {}", "title": "" }, { "docid": "6a7c2cc4477be44a9dd6affdf051d39f", "score": "0.5736949", "text": "function Boilerplate_load() {\n if( !class_exists( 'WPeMatico' ) ) {\n if( !class_exists( 'WPeMatico_Extension_Activation' ) ) {\n require_once 'includes/class.extension-activation.php';\n }\n\n $activation = new WPeMatico_Extension_Activation( plugin_dir_path( __FILE__ ), basename( __FILE__ ) );\n $activation = $activation->run();\n } else {\n return Boilerplate::instance();\n }\n}", "title": "" }, { "docid": "23bccff1291abe237f459fd37059ac96", "score": "0.57228523", "text": "public function load()\n {\n // Register initialization method.\n add_action('init', [$this, 'init'], 10, 0);\n }", "title": "" }, { "docid": "379087558a5894f0c6f97df3d1ef9e74", "score": "0.5717809", "text": "function _manually_load_plugin() {\n\t// Make sure BP is installed and loaded first.\n\trequire BP_TESTS_DIR . '/includes/loader.php';\n\n\trequire dirname( dirname( __FILE__ ) ) . '/bp-rest.php';\n}", "title": "" }, { "docid": "dad707939270ddfeb83b9caac54094e8", "score": "0.57138526", "text": "public function load() {\n\n\t\tadd_filter( 'mexp_tabs', array( $this, 'tabs' ), 10, 1 );\n\t\tadd_filter( 'mexp_labels', array( $this, 'labels' ), 10, 1 );\n\t\tadd_action( 'mexp_enqueue', array( $this, 'enqueue_statics' ) );\n\n\t}", "title": "" }, { "docid": "0b9e94c7ad529e957ec32eb59c339199", "score": "0.5711344", "text": "function wpb_load_widget() {\n register_widget( 'doctor_widget' );\n register_widget( 'sharing_widget' );\n register_widget( 'video_widget' );\n register_widget( 'cta_widget' );\n register_widget( 'address_widget' );\n register_widget( 'hours_widget' );\n register_widget( 'slidecontact_widget' );\n}", "title": "" }, { "docid": "a7f8b5c26a8e4013409cc32b922fa295", "score": "0.57106197", "text": "function cmb_initialize_cmb_meta_boxes() {\n\n\tif ( ! class_exists( 'cmb_Meta_Box' ) )\n\t\trequire_once 'init.php';\n\n}", "title": "" }, { "docid": "a7f8b5c26a8e4013409cc32b922fa295", "score": "0.57106197", "text": "function cmb_initialize_cmb_meta_boxes() {\n\n\tif ( ! class_exists( 'cmb_Meta_Box' ) )\n\t\trequire_once 'init.php';\n\n}", "title": "" }, { "docid": "67db0857adef7884c93baf29572f22a9", "score": "0.5710093", "text": "function cmb_initialize_cmb_meta_boxes() {\r\n\r\n\tif ( ! class_exists( 'cmb_Meta_Box' ) )\r\n\t\trequire_once 'template-options.php';\r\n\r\n}", "title": "" }, { "docid": "e64710474dc389ba80b60e0a09ac3913", "score": "0.570913", "text": "function cmb_initialize_cmb_meta_boxes() {\n\n if ( ! class_exists( 'cmb_Meta_Box' ) )\n require_once 'cmb/init.php';\n\n}", "title": "" }, { "docid": "6a303b95b5ed5d60bf3660c1d2f1141a", "score": "0.5702739", "text": "public function late_load() {\n /**\n * Late loading event for LaterPay.\n *\n * @param LaterPay_Core_Bootstrap $this\n */\n do_action( 'laterpay_and_wp_loaded', $this );\n }", "title": "" }, { "docid": "eb734947094da1e90793bb27c8c0f365", "score": "0.57001483", "text": "public function initializeComponent(): bool;", "title": "" }, { "docid": "f27058cac13bd9595b2c90527ce63e2c", "score": "0.56899744", "text": "function bbg_cpbv_loader() {\n\tinclude( dirname(__FILE__) . '/bbg-custom-bp-field-visibility.php' );\n}", "title": "" }, { "docid": "744cfded0fa0af8f33040b4ce4c18ac8", "score": "0.5676878", "text": "public function loadPlugin()\n {\n $registry = apply_filters(\n 'wp_symfony_form_wrappers',\n new \\LIN3S\\WPSymfonyForm\\Registry\\FormWrapperRegistry()\n );\n\n new \\LIN3S\\WPSymfonyForm\\Ajax\\FormSubmitAjax($registry);\n\n wp_enqueue_script(\n 'wp-symfony-form',\n plugin_dir_url(__FILE__) . '/src/LIN3S/WPSymfonyForm/Resources/js/wp-symfony-form.js',\n ['jquery'],\n self::VERSION,\n true\n );\n\n wp_localize_script('wp-symfony-form', 'WPSymfonyFormSettings', [\n 'ajaxUrl' => admin_url('admin-ajax.php'),\n ]);\n }", "title": "" }, { "docid": "968dbcd7e09d429739bd6d59dea291cd", "score": "0.5669111", "text": "public function init() {\n \t/*// This approach is needed when you need one OR another plugin active. \n\t\tif ( function_exists('is_plugin_active') ) {\n\t\t // Only run this add-on if the free or pro version of the Yoast plugin is active.\n\t\t if ( is_plugin_active( 'wordpress-seo/wp-seo.php' ) || is_plugin_active( 'wordpress-seo-premium/wp-seo-premium.php' ) ) {\n\t\t $this->add_on->run();\n\t\t }\n\t\t}*/\n\t\t// https://www.wpallimport.com/documentation/addon-dev/best-practices/\n $this->add_on->run(array(\n \t\"post_types\" => array( \"post\", \"page\" )\n \t));\n }", "title": "" }, { "docid": "b60245463d266fc0d289e4d997982190", "score": "0.56651527", "text": "public function load()\n {\n $this->settings = get_option('LbwpNewsletter');\n // Make sure it is an array\n if (!is_array($this->settings)) {\n $this->settings = array();\n }\n }", "title": "" }, { "docid": "ff1ce9885250de1a21570bf20b4add95", "score": "0.56614506", "text": "protected function _ensureComponent(Controller $controller) {\n\t\tif ($controller->Components->loaded('Prg')) {\n\t\t\treturn;\n\t\t}\n\n\t\t$controller->Prg = $controller->Components->load('Search.Prg', $this->config('component'));\n\t\t$controller->Prg->initialize($controller);\n\t\t$controller->Prg->startup($controller);\n\t}", "title": "" }, { "docid": "3c0c2e987515589bc7927c0faba41204", "score": "0.5637665", "text": "public function init() {\n\t\t\t// Delete content.\n\t\t\t$this->delete();\n\n\t\t\t// Only if demo content exists.\n\t\t\tif ( $this->check() ) {\n\t\t\t\tadd_meta_box( 'wc-demo-cleaner', esc_html__( 'WooCart Turnkey Store', 'woocart-defaults' ), array( &$this, 'widget' ), 'dashboard', 'normal', 'high' );\n\t\t\t\tadd_action( 'admin_enqueue_scripts', array( &$this, 'scripts' ) );\n\t\t\t}\n\n\t\t\t// Add to notices.\n\t\t\tadd_action( 'admin_notices', array( &$this, 'notices' ) );\n\t\t}", "title": "" }, { "docid": "e214a8a54ad5cdce57f65d6e2f4b8ad7", "score": "0.56344587", "text": "public function __construct() {\n\t\tadd_action( 'plugins_loaded', array( new Plugin_Controller(), 'check_addons' ) );\n\t}", "title": "" }, { "docid": "1736831321f410b9e709ff5b11d702ff", "score": "0.5634372", "text": "public function initialize()\n {\n // Load the components\n foreach ($this->components as $class => $null) {\n $this->components[$class] = new $class($this);\n $this->components[$class]->load();\n }\n }", "title": "" }, { "docid": "2c20d22fc44a1528754ce60105fa471f", "score": "0.5627559", "text": "public function plugins_loaded(){\n if ( ! did_action( 'elementor/loaded' ) ) {\n add_action( 'admin_notices', [ $this, 'admin_notice_missing_main_plugin' ] );\n return;\n }\n }", "title": "" }, { "docid": "0afc22601012a7cde3b493efdbf4a8f0", "score": "0.5626279", "text": "public function init()\n\t{\n\t\tparent::init();\n\n craft()->social->requireDependencies();\n\t}", "title": "" }, { "docid": "8fb97138a2065c77bb0731c8b9e69af3", "score": "0.5624502", "text": "private function should_load() {\n\t\tif ( ! defined( 'ELEMENTOR_VERSION' ) ) {\n\t\t\treturn false;\n\t\t}\n\t\tif ( ! class_exists( 'Header_Footer_Elementor', false ) ) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3f54871f5ba604fe0f4e70d6281e46c8", "score": "0.56224805", "text": "private function __construct()\n {\n Plugins::init();\n }", "title": "" }, { "docid": "4f8f1a3ad602ad1a8e4bce40660ba11a", "score": "0.56194043", "text": "public function on_load() {\n\t\t\tif ( $this->post_type_check() ) {\n\n\t\t\t\tif ( ! apply_filters( 'learndash_settings_metaboxes_legacy_quiz', LEARNDASH_SETTINGS_METABOXES_LEGACY_QUIZ, $this->post_type ) ) {\n\t\t\t\t\trequire_once LEARNDASH_LMS_PLUGIN_DIR . '/includes/settings/settings-metaboxes/class-ld-settings-metabox-quiz-access-settings.php';\n\n\t\t\t\t\trequire_once LEARNDASH_LMS_PLUGIN_DIR . '/includes/settings/settings-metaboxes/class-ld-settings-metabox-quiz-progress-settings.php';\n\n\t\t\t\t\trequire_once LEARNDASH_LMS_PLUGIN_DIR . '/includes/settings/settings-metaboxes/class-ld-settings-metabox-quiz-display-content.php';\n\n\t\t\t\t\trequire_once LEARNDASH_LMS_PLUGIN_DIR . '/includes/settings/settings-metaboxes/class-ld-settings-metabox-quiz-results-display-content-options.php';\n\n\t\t\t\t\trequire_once LEARNDASH_LMS_PLUGIN_DIR . '/includes/settings/settings-metaboxes/class-ld-settings-metabox-quiz-admin-data-handling-settings.php';\n\t\t\t\t}\n\n\t\t\t\tparent::on_load();\n\n\t\t\t\tif ( LearnDash_Settings_Section::get_section_setting( 'LearnDash_Settings_Quizzes_Builder', 'enabled' ) == 'yes' ) {\n\t\t\t\t\t$this->use_quiz_builder = true;\n\n\t\t\t\t\tif ( apply_filters( 'learndash_show_quiz_builder', $this->use_quiz_builder ) === true ) {\n\t\t\t\t\t\t$this->quiz_builder = Learndash_Admin_Metabox_Quiz_Builder::add_instance();\n\t\t\t\t\t\t$this->quiz_builder->builder_on_load();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tadd_filter( 'learndash_header_data', 'LearnDash\\Admin\\QuizBuilderHelpers\\get_quiz_data', 100 );\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "c9026303a6cf2ef3de49e2b1d6bc79e2", "score": "0.5591652", "text": "public function init(): void\n {\n updateDatabase();\n foreach ($this->pages as $page) {\n $page->init();\n }\n \\add_shortcode('bookclub', array($this, 'render'));\n }", "title": "" }, { "docid": "1ebebbae9d8c43e956d3ff3403c67cef", "score": "0.55890876", "text": "function __construct() {\n\t\t// For now, reviews are pegged to activity. Todo: move to cpts\n\t\tif ( !bp_is_active( 'groups' ) || !bp_is_active( 'activity' ) )\n\t\t\treturn false;\n\t\n\t\t$this->includes();\n\t\t\n\t\tadd_action( 'bp_init', array( $this, 'maybe_update' ) );\n\t\t\n\t\tadd_action( 'bp_setup_globals', array( $this, 'setup_globals' ) );\n\t\tadd_action( 'groups_setup_nav', array( $this, 'current_group_set_available' ) );\n\t\tadd_action( 'groups_setup_nav', array( $this, 'setup_current_group_globals' ) );\n\t\tadd_action( 'wp_print_scripts', array( $this, 'load_js' ) );\n\t\tadd_action( 'wp_head', array( $this, 'maybe_previous_data' ), 999 );\t\t\n\t\tadd_action( 'wp_print_styles', array( $this, 'load_styles' ) );\n\t\tadd_action( 'wp', array( $this, 'grab_cookie' ) );\n\t\tadd_filter( 'bp_has_activities', array( $this, 'activities_template_data' ) );\n\t\tadd_filter( 'bp_has_groups', array( $this, 'groups_template_data' ) );\n\t\tadd_action( 'bp_activity_action_delete_activity', array( $this, 'delete_activity' ), 10, 2 );\n\t}", "title": "" }, { "docid": "0181dbebafb4546e1cb72e06f6b46031", "score": "0.55858535", "text": "protected function onInit()\n\t{\n\t}", "title": "" }, { "docid": "0181dbebafb4546e1cb72e06f6b46031", "score": "0.55858535", "text": "protected function onInit()\n\t{\n\t}", "title": "" }, { "docid": "09b40d56bced36161590ba93c5662ade", "score": "0.5561269", "text": "public function preload_component() {\n\t\t\n\t\t$content_hook = array (\n\t\t'page_build_content_callback' => 'Pagination::paginate_components'\n\t\t);\n\n\t\treturn $content_hook;\n\n\t}", "title": "" }, { "docid": "50c365134047fd5021e4c959ac7e698c", "score": "0.5555184", "text": "function tc_lern_coach_widget_load() {\n\tregister_widget( 'tc_lern_coach_widget' );\n}", "title": "" }, { "docid": "8650a4343175441564d125e4a9f6a987", "score": "0.55501133", "text": "function init() {\n\t\tif ( function_exists( 'LLMS' ) && version_compare( '<%= plugin_min_lifterlms_version %>', LLMS()->version, '<=' ) ) {\n\t\t\t<% if ( 'integration' === plugin_type ) { %>\n\t\t\t// require integration class.\n\t\t\trequire_once <%= plugin_constant_prefix %>PLUGIN_DIR . 'includes/class-llms-integration-<%= plugin_name_unprefixed_lower_slugged.replace( '_', '-' ) %>.php';\n\n\t\t\t// register the integration.\n\t\t\tadd_filter( 'lifterlms_integrations', array( $this, 'register_integration' ), 10, 1 );\n\n\t\t\t<% } %>\n\t\t\t// load includes.\n\t\t\tadd_action( 'plugins_loaded', array( $this, 'includes' ), 100 );\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "7a1a61612a8911b231b8a917d3654cfe", "score": "0.5544923", "text": "protected function loadComponents() {\n $this->ch = new \\Cx\\Core\\Core\\Controller\\ComponentHandler($this->license, $this->mode == self::MODE_FRONTEND, $this->db->getEntityManager());\n }", "title": "" }, { "docid": "28e9b40a6cb9dc174a58600041e4168a", "score": "0.5542976", "text": "function wpuf_pro_load_plugin() {\n WP_User_Frontend_Pro::init();\n}", "title": "" }, { "docid": "98d66855ed1c83152d7847d0f1a6b090", "score": "0.55402195", "text": "public function initialize()\n {\n parent::initialize();\n// $this->loadComponent('Paginator');\n $this->loadComponent('Paginator');\n }", "title": "" }, { "docid": "8e0f1864d1d4d383a48b1bb5973e38b5", "score": "0.5538611", "text": "public static function init() {\n\t\tadd_filter('gb_addons', array(get_class(),'gb_membership_layalty_addon'), 10, 1);\n\t}", "title": "" }, { "docid": "c11ebca3932ec553a4cc4c2671ca971c", "score": "0.5538319", "text": "public function initDebugBarPanel() {\r\n\t\tif ( class_exists('Debug_Bar') ) {\r\n\t\t\trequire_once dirname(__FILE__) . '/debug-bar-plugin.php';\r\n\t\t\t$this->debugBarPlugin = new PucDebugBarPlugin($this);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e8a788218feee583336bf7ea32a4f745", "score": "0.55352247", "text": "public function init() {\n\t\t// Setup vars for the front end widget.\n\t\tadd_filter( 'beehive_google_popular_widget_localize_vars', [ $this, 'script_vars' ] );\n\t}", "title": "" }, { "docid": "69c870003b134bbd99e1d0b870fff283", "score": "0.5528403", "text": "public function init() {\n\t\tif ( ! $this->has_rights() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Load core plugin.php if not exists\n\t\tif ( ! function_exists( 'is_plugin_active' ) ) {\n\t\t\tinclude_once ABSPATH . 'wp-admin/includes/plugin.php';\n\t\t}\n\n\t\t// Apply filters to extends the $this->plugins property\n\t\t$this->plugins = apply_filters( 'yoast_plugin_toggler_extend', $this->plugins );\n\n\t\t// First check if both versions of plugin do exist\n\t\t$this->check_plugin_versions_available();\n\n\t\t// Check which version is active\n\t\t$this->check_which_is_active();\n\n\t\t// Adding the hooks\n\t\t$this->add_hooks();\n\t}", "title": "" }, { "docid": "1bf735d2ef81715361aa4c09c5c7ce53", "score": "0.5527798", "text": "public function woocommerce_loaded() {\n \n }", "title": "" }, { "docid": "48b47788421f8b483f5ccbf43883728b", "score": "0.55267406", "text": "public function autoloader()\n {\n\n if (did_action('webt/loaded')) {\n $this->includes();\n $this->core();\n $this->modules();\n }\n\n if (did_action('elementor/loaded')) {\n self::$elementor_instance;\n }\n }", "title": "" }, { "docid": "0db96f2c80a9622204082b2c36c6f710", "score": "0.55189663", "text": "private function loadComponents()\n {\n if (!$this->componentsloaded) {\n foreach ($this->getSettings()->getComponents() as $componentClass) {\n $component = new $componentClass();\n if ($component instanceof ComponentInterface) {\n $this->addComponent($component);\n }\n }\n $this->componentsloaded = true;\n }\n }", "title": "" }, { "docid": "45a7e3d638ba2fa3473a26960de7bfad", "score": "0.5516037", "text": "public function isLoaded(): bool\n {\n return true;\n }", "title": "" }, { "docid": "a7cbe9c2934544d847a4a3cc18e5e92f", "score": "0.5515261", "text": "public function init()\n {\n if (!$this->link_components()) {\n return false;\n }\n if (!$this->init_components()) {\n return false;\n }\n return $this->setup();\n }", "title": "" }, { "docid": "f25453b686aa81ecea97241b9738ff53", "score": "0.55115503", "text": "function _load_bbpress() {\n\techo \"Loading bbPress via `/src/bbpress.php`...\\n\";\n\trequire dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) . '/src/bbpress.php';\n}", "title": "" }, { "docid": "0aad94c9eb43a4a10d680f59f7a83ca4", "score": "0.55087537", "text": "private function init(){\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'enqueue_frontend_scripts' ) );\n\t\tadd_filter( 'body_class', array( $this, 'body_class' ) );\n\n\t\tif ( is_admin() ) {\n\t\t\t$settings_args = array(\n\t\t\t\t'plugin_id' => $this->config['plugin_id'],\n\t\t\t\t'plugin_slug' => $this->config['plugin_slug'],\n\t\t\t\t'title' => $this->config['plugin_name'],\n\t\t\t\t'fields' => $this->settings_fields(),\n\t\t\t);\n\n\t\t\tnew Divi_100_Settings( $settings_args );\n\t\t}\n\t}", "title": "" }, { "docid": "c1a3e2f5d207305a1cbb5d98bfc1be39", "score": "0.5506783", "text": "protected function initialize() {\n $container = Container::getInstance();\n $this->view = $container->make('Melody\\Core\\ViewInterface');\n $this->setStacks($container);\n add_action('elementor/frontend/after_enqueue_scripts', [$this, 'enqueueApp']);\n }", "title": "" }, { "docid": "d584f947532f9510a8ae1848081226fd", "score": "0.55024874", "text": "public static function _init() {\n // this is called upon loading the class\n }", "title": "" }, { "docid": "4d7b8292ed56f6a5a84843e0119c417b", "score": "0.5500409", "text": "public function plugins_loaded() {\n\t\t\t \n\t\t\t}", "title": "" }, { "docid": "b6f43fa858fedc49422e4b4dd99351cf", "score": "0.5500215", "text": "public function load_admin() {\n\n\t\tif ( ! function_exists( 'buddypress' ) || ! is_admin() || wp_doing_ajax() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$path = plugin_dir_path( __FILE__ );\n\n\t\trequire_once $path . 'admin/pt-settings/pt-settings-loader.php';\n\t\trequire_once $path . 'admin/class-bp-confirm-actions-admin-settings-helper.php';\n\n\t\tBP_Confirm_Actions_Admin_Settings_Helper::boot();\n\t}", "title": "" }, { "docid": "05cae427fb89f1892b9872a10f39698d", "score": "0.54893494", "text": "public function postLoad()\n {\n }", "title": "" }, { "docid": "5c3568e3f6e23bd68df31818cef3522c", "score": "0.5474183", "text": "public function maybe_initialize_hooks() {\n\t\tif ( ! $this->can_be_displayed() ) {\n\t\t\treturn;\n\t\t}\n\n\t\tadd_action( 'admin_print_styles', array( $this, 'admin_banner_styles' ) );\n\t\tadd_action( 'admin_notices', array( $this, 'render_banner' ) );\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'enqueue_banner_scripts' ) );\n\t}", "title": "" }, { "docid": "991c1f06bf3bed50ca85ac019e666c70", "score": "0.5472396", "text": "private function componentsReady()\n {\n $this->getRegistryCache()->isAppReady();\n\n if ($this->componentsloaded) {\n foreach ($this->components as $component) {\n $component->ready($this);\n }\n }\n }", "title": "" }, { "docid": "56101ee7aabed90512fed2c7b950f808", "score": "0.5466912", "text": "function tabber_tabs_load_widget() {\n\t// Register widget.\n\tregister_widget( 'Slipfire_Widget_Tabber' );\n}", "title": "" }, { "docid": "13176fbc85fd9252a4bfdd3cb1b1a208", "score": "0.5464545", "text": "public function plugins_loaded() {\r\n\t\tif ( true !== $this->plugin_dependencies_met() ) {\r\n\t\t\treturn ;\r\n\t\t}\r\n\r\n\t\t$this->include_files() ;\r\n\t\t$this->init_hooks() ;\r\n\t\t$this->load_plugin_textdomain() ;\r\n\r\n\t\tdo_action( 'enr_loaded' ) ;\r\n\t}", "title": "" }, { "docid": "405f179fb2f06004c372353814e7d1e6", "score": "0.5460647", "text": "public function initialize()\n {\n $this->loadHelper('Asset', ['className' => 'FrankFoerster/Asset.Asset']);\n $this->loadHelper('Email');\n }", "title": "" }, { "docid": "4ad3792018f0c621eecb8ee951e3e5b1", "score": "0.5456356", "text": "public function init() {\n\n\t\t\tadd_filter( 'wapu_core/general_setting', array( $this, 'add_banners_settings' ) );\n\t\t\tadd_action( 'wapu_after_post', array( $this, 'add_banner' ) );\n\n\t\t}", "title": "" }, { "docid": "fe48e79e1581360f17c6f44ee2af621a", "score": "0.545504", "text": "function woocommerce_loaded() {\n\t\t\tif ( ! class_exists( 'WooCommerce' ) ) {\n\t\t\t\tadd_action( 'admin_notices', [ $this, 'admin_notice_missing_woocommerce_plugin' ] );\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "76449f9c67ccb18b11be60fe3879bd28", "score": "0.5451363", "text": "function on_load_page() {\n wp_enqueue_script('common');\n wp_enqueue_script('wp-lists');\n wp_enqueue_script('postbox');\n\n // sidebar\n //add_meta_box('bp-gtm-admin-debug', __('Dev print_var(bp_gtm & actions)', 'bp_gtm'), array(&$this, 'on_bp_gtm_admin_debug'), $this->pagehook, 'side', 'core');\n add_meta_box('bp-gtm-admin-misc', __('Display/Hide Some Features', 'bp_gtm'), array(&$this, 'on_bp_gtm_admin_misc'), $this->pagehook, 'side', 'core');\n add_meta_box('bp-gtm-admin-actions', __('Extra Actions for Admin', 'bp_gtm'), array(&$this, 'on_bp_gtm_admin_actions'), $this->pagehook, 'side', 'core');\n add_meta_box('bp-gtm-admin-themes', __('GTM Themes for Front-end', 'bp_gtm'), array(&$this, 'on_bp_gtm_admin_themes'), $this->pagehook, 'side', 'core');\n //add_meta_box('bp-gtm-admin-move-data', __('Export/Import GTM Data', 'bp_gtm'), array(&$this, 'on_bp_gtm_admin_move_data'), $this->pagehook, 'side', 'core');\n add_meta_box('bp-gtm-admin-deactivate', __('Deactivation Options', 'bp_gtm'), array(&$this, 'on_bp_gtm_admin_deactivate'), $this->pagehook, 'side', 'core');\n // main content - normal\n add_meta_box('bp-gtm-admin-groups', __('Groups Selection', 'bp_gtm'), array(&$this, 'on_bp_gtm_admin_groups'), $this->pagehook, 'normal', 'core');\n add_meta_box('bp-gtm-admin-roles', __('Default Global GTM Roles', 'bp_gtm'), array(&$this, 'on_bp_gtm_admin_roles'), $this->pagehook, 'normal', 'core');\n //add_meta_box('bp-gtm-admin-files', __('Tasks/Projects/Discussion Posts Files Management', 'bp_gtm'), array(&$this, 'on_bp_gtm_admin_files'), $this->pagehook, 'normal', 'core');\n add_meta_box('bp-gtm-admin-labes', __('Change Labels Names', 'bp_gtm'), array(&$this, 'on_bp_gtm_admin_labels'), $this->pagehook, 'normal', 'core');\n add_meta_box('bp-gtm-admin-import', __('Import All Groups Users', 'bp_gtm'), array(&$this, 'on_bp_gtm_admin_import'), $this->pagehook, 'normal', 'core');\n }", "title": "" }, { "docid": "e286a7f9ee07bae1a7c20b3f28d7681d", "score": "0.54428965", "text": "private function load_3rd_party() {\n\t\tif ( ! function_exists( 'is_plugin_active' ) ) {\n\t\t\trequire_once ABSPATH . 'wp-admin/includes/plugin.php';\n\t\t}\n\n\t\tif ( is_plugin_active( 'elementor/elementor.php' ) ) {\n\t\t\tnew \\RankMath\\Elementor\\Elementor();\n\t\t}\n\t}", "title": "" }, { "docid": "2ca3a770156e45007cd74b2745cdfb30", "score": "0.54384947", "text": "public function on_plugin_loaded() {\n\t\t// Action hook callbacks.\n\t\t$this->add_action( 'init', 'init_post_types' );\n\t\t$this->add_action( 'init', 'init_taxonomies' );\n\t\t$this->add_action( 'widgets_init', 'init_widgets' );\n\t}", "title": "" }, { "docid": "7d21d546a38fcee3ba439063906882f2", "score": "0.5437574", "text": "public function loaded() {\n\n\t\t\t// Set up localisation.\n\t\t\t$this->load_plugin_textdomain();\n\n\t\t\tadd_filter(\n\t\t\t\t'woocommerce_payment_gateways',\n\t\t\t\tarray(\n\t\t\t\t\t$this,\n\t\t\t\t\t'add_gateways',\n\t\t\t\t)\n\t\t\t);\n\t\t\tadd_filter(\n\t\t\t\t'wc_order_statuses',\n\t\t\t\tarray(\n\t\t\t\t\t$this,\n\t\t\t\t\t'add_order_statuses',\n\t\t\t\t)\n\t\t\t);\n\t\t\tadd_filter(\n\t\t\t\t'wc_order_is_editable',\n\t\t\t\tarray(\n\t\t\t\t\t$this,\n\t\t\t\t\t'order_editable_check',\n\t\t\t\t),\n\t\t\t\t10,\n\t\t\t\t2\n\t\t\t);\n\t\t\tadd_filter(\n\t\t\t\t'woocommerce_before_calculate_totals',\n\t\t\t\tarray(\n\t\t\t\t\t$this,\n\t\t\t\t\t'before_calculate_totals',\n\t\t\t\t),\n\t\t\t\t10\n\t\t\t);\n\t\t\tadd_filter(\n\t\t\t\t'woocommerce_after_calculate_totals',\n\t\t\t\tarray(\n\t\t\t\t\t$this,\n\t\t\t\t\t'after_calculate_totals',\n\t\t\t\t),\n\t\t\t\t10\n\t\t\t);\n\t\t\tadd_filter(\n\t\t\t\t'woocommerce_valid_order_statuses_for_payment_complete',\n\t\t\t\tarray(\n\t\t\t\t\t$this,\n\t\t\t\t\t'valid_order_status_for_completion',\n\t\t\t\t),\n\t\t\t\t10,\n\t\t\t\t2\n\t\t\t);\n\t\t\tadd_filter(\n\t\t\t\t'woocommerce_form_field_args',\n\t\t\t\tarray(\n\t\t\t\t\t$this,\n\t\t\t\t\t'modify_form_fields_args',\n\t\t\t\t),\n\t\t\t\t10,\n\t\t\t\t3\n\t\t\t);\n\t\t\tadd_action(\n\t\t\t\t'woocommerce_checkout_update_order_review',\n\t\t\t\tarray(\n\t\t\t\t\t$this,\n\t\t\t\t\t'update_additional_customer_data',\n\t\t\t\t)\n\t\t\t);\n\t\t\tadd_action(\n\t\t\t\t'woocommerce_before_checkout_form',\n\t\t\t\tarray(\n\t\t\t\t\t$this,\n\t\t\t\t\t'register_checkout_error_msg',\n\t\t\t\t),\n\t\t\t\t5,\n\t\t\t\t0\n\t\t\t);\n\n\t\t\tadd_action(\n\t\t\t\t'before_woocommerce_pay',\n\t\t\t\tarray(\n\t\t\t\t\t$this,\n\t\t\t\t\t'show_checkout_error_msg',\n\t\t\t\t),\n\t\t\t\t5,\n\t\t\t\t0\n\t\t\t);\n\n\t\t\tadd_action(\n\t\t\t\t'woocommerce_attribute_added',\n\t\t\t\tarray(\n\t\t\t\t\t$this,\n\t\t\t\t\t'woocommerce_attribute_added',\n\t\t\t\t),\n\t\t\t\t10,\n\t\t\t\t2\n\t\t\t);\n\n\t\t\tadd_action(\n\t\t\t\t'woocommerce_attribute_updated',\n\t\t\t\tarray(\n\t\t\t\t\t$this,\n\t\t\t\t\t'woocommerce_attribute_updated',\n\t\t\t\t),\n\t\t\t\t10,\n\t\t\t\t3\n\t\t\t);\n\n\t\t\tadd_action(\n\t\t\t\t'woocommerce_attribute_deleted',\n\t\t\t\tarray(\n\t\t\t\t\t$this,\n\t\t\t\t\t'woocommerce_attribute_deleted',\n\t\t\t\t),\n\t\t\t\t10,\n\t\t\t\t3\n\t\t\t);\n\n\t\t\tadd_action(\n\t\t\t\t'woocommerce_rest_insert_product_attribute',\n\t\t\t\tarray(\n\t\t\t\t\t$this,\n\t\t\t\t\t'woocommerce_rest_insert_product_attribute',\n\t\t\t\t),\n\t\t\t\t10,\n\t\t\t\t3\n\t\t\t);\n\n\t\t\tadd_action(\n\t\t\t\t'woocommerce_cart_item_removed',\n\t\t\t\tarray(\n\t\t\t\t\t$this,\n\t\t\t\t\t'after_remove_product_from_cart',\n\t\t\t\t),\n\t\t\t\t10,\n\t\t\t\t2\n\t\t\t);\n\n\t\t\tadd_filter(\n\t\t\t\t'woocommerce_rest_prepare_product_attribute',\n\t\t\t\tarray(\n\t\t\t\t\t$this,\n\t\t\t\t\t'woocommerce_rest_prepare_product_attribute',\n\t\t\t\t),\n\t\t\t\t10,\n\t\t\t\t3\n\t\t\t);\n\n\t\t\tadd_filter(\n\t\t\t\t'nocache_headers',\n\t\t\t\tarray(\n\t\t\t\t\t$this,\n\t\t\t\t\t'add_cache_no_store',\n\t\t\t\t),\n\t\t\t\t10,\n\t\t\t\t1\n\t\t\t);\n\n\t\t\tadd_filter(\n\t\t\t\t'woocommerce_valid_order_statuses_for_payment',\n\t\t\t\tarray(\n\t\t\t\t\t$this,\n\t\t\t\t\t'valid_order_statuses_for_payment',\n\t\t\t\t),\n\t\t\t\t10,\n\t\t\t\t2\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "4564d1762e07c8a014118a056e407e05", "score": "0.5436398", "text": "function BrightkitePlaceInit() {\n\t\tregister_widget('BrightkitePlaceWidget');\n\t}", "title": "" }, { "docid": "c0d25bd146ce1fdef101447d80067ca0", "score": "0.54315114", "text": "function onLoad() {\n $this->enableDedicatedEvents();\n\t\n }", "title": "" }, { "docid": "bff97c49d0036f1ec38b244b0b141137", "score": "0.54276204", "text": "public function init(){\n\n\t\t//Customizer fields renderer\n\t\t$this->customizer = new WooCommerce_18_Tags_Customizer_Fields( $this->token, $this->plugin_path, $this->plugin_url );\n\t\t//Customize register\n\t\tadd_action( 'customize_register', array( $this->customizer, 'etp_customize_register' ), 999 );\n\t\t//Filter section arguments\n\t\tadd_action( $this->token . '-sections-filter-args', array( $this, 'filter_sections' ) );\n\t\t//Register the panel\n\t\tadd_action( $this->token . '-customize-register', array( $this, 'create_panel' ) );\n\t}", "title": "" }, { "docid": "e28b525c45c91bf1dc8f81a95d345a21", "score": "0.5427319", "text": "protected function __construct()\n {\n $autoload = __DIR__.DS.'vendor'.DS.'autoload.php';\n\n // Check for autoload file in dev mode (vendor loaded into the theme)\n if (file_exists($autoload))\n {\n require($autoload);\n }\n\n \t// Check if framework is loaded.\n $this->check();\n }", "title": "" }, { "docid": "8ae37aac292b554ca27e428c6aa9aef3", "score": "0.5420715", "text": "public function initWidget()\n {\n }", "title": "" }, { "docid": "8dd9f0237b961cb73710cd2b0f27520d", "score": "0.5418553", "text": "public function load_plugins()\n\t{\n\t\trequire_once( $this->template_directory . 'framework/classes/class.tgmpa.php' );\t\t\n\t\trequire_once( $this->template_directory . 'framework/classes/class.plugins.php' );\t\t\n\t}", "title": "" } ]
beaeb090d3d974c945e2c6e7f17c14f4
List all Simple Encoding VOD Jobs
[ { "docid": "622e935dc3839c9b36357593510d93da", "score": "0.0", "text": "public function list(SimpleEncodingVodJobResponseListQueryParams $queryParams = null) : SimpleEncodingVodJobResponsePaginationResponse\n {\n $response = $this->httpWrapper->request('GET', '/encoding/simple/jobs/vod', [], $queryParams, null, true);\n\n return ObjectMapper::map($response, SimpleEncodingVodJobResponsePaginationResponse::class);\n }", "title": "" } ]
[ { "docid": "13f971c90b2b2dcb489146d60cc4dd0b", "score": "0.55461276", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getEntityManager();\n\n $entities = $em->getRepository('RestooMainBundle:Job')->findAll();\n\n return array('entities' => $entities);\n }", "title": "" }, { "docid": "ecae986fdb015e9792b213f4b733b620", "score": "0.5474292", "text": "function jobs() {\n $this->view->title = 'එක්සත් අවමංගල්‍යාධාර සමිතිය';\n $this->view->jobsList = $this->model->searchJobs(0);\n $this->view->funJobsList = $this->model->searchJobsFunaral(0);\n $this->view->render('awamangala/jobs'); //sending paramiters to View() at lib/view.php\n }", "title": "" }, { "docid": "205e4f1b64033217a01ce759746d325e", "score": "0.54652935", "text": "public function index()\n {\n return $this->jobChoiceRepository->note()->all();\n }", "title": "" }, { "docid": "7e17e1bd6fc318ead9429ecf89318a4c", "score": "0.54524654", "text": "public function listAllJobs()\n {\n $jobList = \"\\nAvailable jobs:\\n\";\n\n foreach (glob('App/Jobs/*.php') as $jobFile)\n {\n $pattern = '/App\\/Jobs\\/([a-zA-Z]+).php/i';\n $replacement = '$1';\n $jobList .= '* ' . preg_replace($pattern, $replacement, $jobFile) . \"\\n\";\n }\n\n return $jobList . \"\\n\";\n }", "title": "" }, { "docid": "c920530212954f1dacf008eeb0d087c6", "score": "0.54442245", "text": "public function viewJobs() {\n\t\t$stmt = $this->pdo->query(\"select * from job where deleted = 0 order by id\");\n\n\t\treturn $stmt->fetchAll(\\PDO::FETCH_ASSOC);\n\t}", "title": "" }, { "docid": "cc3f6ffcac389352fd24e755e713c0b0", "score": "0.53502804", "text": "private function getJobTitleList() {\n $jobTitleList = $this->getJobTitleService()->getJobTitleList();\n $list = array(\"\" => \"-- \" . __('Select') . \" --\");\n foreach ($jobTitleList as $jobTitle) {\n $list[$jobTitle->getId()] = $jobTitle->getJobTitleName();\n }\n return $list;\n }", "title": "" }, { "docid": "3c1f9cc7bc23d6f296a8420e84c353b5", "score": "0.5326821", "text": "public function index()\n {\n return Job::all();\n }", "title": "" }, { "docid": "69ff0da29eed4253505b07b969c66fa9", "score": "0.51966035", "text": "public function getJobList(){\n $sql = 'select * from '.$this->table1.' where vic_job_status =\"active\"';\n $result_set = $this->db->query($sql);\n return $result_set->result();\n }", "title": "" }, { "docid": "ebe876ef59ad14be2db5e7578ae3bee9", "score": "0.5173209", "text": "public function index()\n {\n $titles = Job::All();\n\n\treturn view('backend.setup.job.index', compact('titles'));\n }", "title": "" }, { "docid": "318ceebc1b83cbd36e7c58fe2e0aab5a", "score": "0.5142312", "text": "function joblist() {\n\t\t$this->load->database();\n\t\t$this->load->model('script');\n\t\t$this->load->model('mark');\n\t\t\n\t\t$query = $this->mark->getScriptsBeingMarkedBy($this->_getUser());\n\t\tif($query->num_rows() > 0) {\n\t\t\t$scripts = $query->result_array();\n\t\t\t$script = $scripts[0]['ID'];\n\t\t\t$lastPage = count(unserialize($scripts[0]['pageKeys']));\n\t\t\t$this->load->view('flex/json_result',array('result'=>'{\"result\":\"'.I_FlexJobs::MARKER_HAS_JOB.'\",\"script\":'.$script.',\"lastPage\":'.$lastPage.'}'));\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$script = new Script();\n\t\t// load 10 oldest jobs still active\n\t\t$results = $script->getScriptsForMarking(10);\n\t\tif($results->num_rows() !== 0 ) {\n\t\t\tforeach($results->result_array() as $script) {\n\t\t\t\t$explodeAroundPipe = explode('|',$script['pageKeys']);\n\t\t\t\t$script['pages'] = count($explodeAroundPipe);\n\t\t\t\tunset($script['pageKeys']);\n\t\t\t\t$jobs[] = $script;\n\t\t\t}\n\t\t} else {\n\t\t$jobs = 'jobs=false';\n\t\t}\n\t\t$this->load->library('json');\n\t\t$jobs = $this->json->encode($jobs);\n\t\t$this->load->view('marker/job_list',array('jobs'=>$jobs));\n\t}", "title": "" }, { "docid": "923b7f05df50988edf1a78d91e18e94d", "score": "0.5130735", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $jobs = $em->getRepository('CareerBundle:Job')->findAll();\n $jobTypes = $em->getRepository('CareerBundle:JobType')->findAll();\n $companies = $em->getRepository('CareerBundle:Company')->findBy([], [], 7);\n $topics = $em->getRepository('CareerBundle:Tag')->findBy([], [], 7);\n\n return $this->render('job/index.html.twig', array(\n 'jobs' => $jobs,\n 'jobTypes' => $jobTypes,\n 'companies' => $companies,\n 'topics' => $topics\n ));\n }", "title": "" }, { "docid": "19599047ffa7ff4aabfc660709394a63", "score": "0.51127315", "text": "public function getJobs() {\n $this->markTestIncomplete(\n 'This test has not been implemented yet.'\n );\n }", "title": "" }, { "docid": "69dc289ebf88eef936da08246a554d3e", "score": "0.5102603", "text": "function getJobListing() {\n\n\tif (($this->user_agent != \"\") && ($this->authorization_key != \"\")) {\n // establish our options (headers, etc.)\n $opts = array(\n 'http'=>array(\n 'method'=>\"GET\",\n 'header'=>\"Host: $this->host\\r\\n\" .\n \"User-Agent: $this->user_agent\\r\\n\" .\n \"Authorization-Key: $this->authorization_key\\r\\n\"\n )\n );\n\n // convert our options into a context\n $context = stream_context_create($opts);\n \n // build our search URL\n // Note: using search API w/o any parameters seems to cause it to 503/Service Unavailable. Too many results returned, perhaps?\n // so use at least one parameter (e.g. \"organization=TR\") to reduce/filter results to avoid this.\n $searchURL = $this->baseURL . $this->createURLParams();\n\n // retrieve JSON of jobs listing with our options/context\n $file = file_get_contents($searchURL, false, $context);\n \n return $file;\n }\n else {\n \techo \"Your user_agent and/or api key are missing!\";\n \t// TODO: throw an error?\n }\n\n }", "title": "" }, { "docid": "4cf949216fc3e6e696243ee832844b0c", "score": "0.5082661", "text": "public function index()\n {\n $elements = Job::with(['translations'])\n ->where('company_id',im('company')->id)\n ->get();\n\n return view('Company.jobs.index',compact('elements'));\n }", "title": "" }, { "docid": "76bc5e9b12e77ea5e1dff3e9818e7111", "score": "0.508144", "text": "public function getAllJobs_description() {\r\n $stmt = $this->conn->prepare(\"SELECT * FROM job_description\");\r\n $stmt->execute();\r\n $job_description= $stmt->get_result();\r\n $stmt->close();\r\n return $job_description;\r\n }", "title": "" }, { "docid": "d049472734424741d9dfeb9f99c64f77", "score": "0.50534135", "text": "public function get(string $simpleEncodingJobId) : \\BitmovinApiSdk\\Models\\SimpleEncodingVodJobResponse\n {\n $pathParams = [\n 'simple_encoding_job_id' => $simpleEncodingJobId,\n ];\n\n $response = $this->httpWrapper->request('GET', '/encoding/simple/jobs/vod/{simple_encoding_job_id}', $pathParams, null, null, true);\n\n return ObjectMapper::map($response, \\BitmovinApiSdk\\Models\\SimpleEncodingVodJobResponse::class);\n }", "title": "" }, { "docid": "0a405daa2cd2e0c67ebe066e1e78524f", "score": "0.50323254", "text": "public static function listJobsByStatus($status){\n\t\treturn Job::model()->findAllByAttributes(array('STATUS'=>$status));\n\t}", "title": "" }, { "docid": "4725d3314336165185d2f0fdda2aae3e", "score": "0.5026399", "text": "public function getAll()\n {\n return $this->job->all();\n }", "title": "" }, { "docid": "432e297fead7ceb0b6febc7b72f5fac5", "score": "0.500086", "text": "public function actionIndex(){\n $tpls = [];\n\n $searchModel = new JobItemSearch();\n if(isset(Yii::$app->user->id) && Yii::$app->user->identity->isDirector() ){\n //$searchModel->user_id = Yii::$app->user->id;\n $tpls = $this->_ownerButtons();\n }\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n $modelJobField = new JobField();\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n 'modelJobFields' => $modelJobField,\n 'tpls' => $tpls\n ]);\n\n }", "title": "" }, { "docid": "43554c81175bc90526f5ebcfed34f7db", "score": "0.49589595", "text": "public function getAllJobs(): array\n {\n return $this->getAllJobsByPrefix(\"*\");\n }", "title": "" }, { "docid": "e48920afc531c832c98ee6b8198f9af7", "score": "0.49409822", "text": "public function index()\n {\n $jobs = Joborder::where('status', 0)->get();\n return view('back.job.list')->with(compact('jobs'));\n }", "title": "" }, { "docid": "1d84e05e5a6aead38aba7f0bff972a38", "score": "0.49301657", "text": "public function show(Jobs $jobs)\n {\n //\n }", "title": "" }, { "docid": "1e46363078232f0dd4e3319a5741faa3", "score": "0.49253446", "text": "public function run()\n {\n $list = [\n 'A persistência é o caminho do êxito',\n 'O que não provoca minha morte faz com que eu fique mais forte',\n 'Pedras no caminho? Eu guardo todas. Um dia vou construir um castelo',\n 'O que me preocupa não é o grito dos maus. É o silêncio dos bons',\n 'O insucesso é apenas uma oportunidade para recomeçar com mais inteligência',\n 'No meio da dificuldade encontra-se a oportunidade',\n 'O sucesso é ir de fracasso em fracasso sem perder entusiasmo',\n 'É parte da cura o desejo de ser curado',\n 'O verdadeiro homem mede a sua força quando se defronta com o obstáculo',\n 'Você precisa fazer aquilo que pensa que não é capaz de fazer',\n 'Um bom começo é a metade',\n 'Faço da dificuldade a minha motivação',\n 'Inspiração vem dos outros. Motivação vem de dentro de nós',\n 'Muitas vezes não é a motivação que precisa mudar, e sim, o foco',\n 'A Minha Motivação de todos os dias, é você',\n 'Motivação é a impulsão para realizações de sonhos',\n 'A motivação é uma decisão, depende de si mesmo',\n 'As críticas são a motivação para o sucesso',\n 'Motivação, parceria, trabalho em equipe',\n 'Motivação e Esperança uma combinação poderosa',\n 'Não deixe que as pessoas te façam desistir daquilo que você mais quer na vida. Acredite. Lute. Conquiste. E acima de tudo, seja feliz',\n 'Algumas vezes coisas ruins acontecem em nossas vidas para nos colocar na direção das melhores coisas que poderíamos viver. Se a vida não ficar mais fácil, trate de ficar mais forte',\n 'Não importa o que você decidiu . O que importa é que isso te faça feliz',\n 'Se a caminhada está difícil, é porque você está no caminho certo',\n 'Toda conquista começa com a decisão de tentar',\n 'Insista, persista e nunca desista',\n 'Vai . E se der medo, vai com medo mesmo',\n ' Quando algo ruim acontece você tem três escolhas: deixar isso definir você, deixar isso destruir você ou fazer isso te deixar mais forte',\n 'Você é mais forte do que imagina . Acredite',\n 'Imagine uma nova história para sua vida e acredite nela',\n 'Todo esforço tem a sua recompensa',\n 'Se não puder fazer tudo, faça tudo que puder',\n 'O importante não é vencer todos os dias, mas lutar sempre',\n 'Por maior que seja, não há obstáculo que não possa ser superado',\n ];\n\n foreach ($list as $phase) {\n \\App\\Models\\Frase::create([\n 'text' => $phase\n ]);\n }\n\n }", "title": "" }, { "docid": "658e39e37a1ecbfbacace16ce8dcc52f", "score": "0.49093604", "text": "public function getAll(): array\n {\n return $this->get($this->buildQuery('job/all'));\n }", "title": "" }, { "docid": "5dfd34ef558af51e3010be6974c7c716", "score": "0.49020016", "text": "function printGetResultTypes($jobId) {\n $this->printDebugMessage('PrintGetResultTypes', 'Begin', 1);\n $resultTypes = $this->getResultTypes($jobId);\n foreach($resultTypes as $resultType) {\n print $resultType->identifier . \"\\n\";\n print \"\\t\" . $resultType->label . \"\\n\";\n if($resultType->description) {\n\tprint \"\\t\" . $resultType->description . \"\\n\";\n }\n print \"\\t\" . $resultType->mediaType . \"\\n\";\n print \"\\t\" . $resultType->fileSuffix . \"\\n\";\n }\n $this->printDebugMessage('PrintGetResultTypes', 'End', 1);\n }", "title": "" }, { "docid": "64292ced80f35b873746cb1ca64912c2", "score": "0.48807362", "text": "static public function __hx__list () {\n\t\treturn [\n\t\t\t1 => 'Finished',\n\t\t\t0 => 'InProgress',\n\t\t];\n\t}", "title": "" }, { "docid": "40a05451c45ed0a7998633c920ec8246", "score": "0.48618636", "text": "function executeViewTagsWithStatus()\n {\n // Get all the tags\n $this->tagStatusArray = $this->artwork->getTags(true, true);\n }", "title": "" }, { "docid": "f6b625bbbf8c5c34da11ac78655d0a6e", "score": "0.48467788", "text": "public function c_job_list(){\n\t\t$sql=\"select a.id,a.type,a.custome_no,a.close_note,a.flag,a.updated_at,b.user_name,b.user_role from job_master a, users b where a.updated_by=b.id and a.job_status=1 order by a.updated_at desc\";\n\t\t$result=$this->db->query($sql);\n\n\t\treturn $result->result();\n\t}", "title": "" }, { "docid": "f773bc29a33064ff88674c8fb851b0dc", "score": "0.48353246", "text": "public function findAllComercializador();", "title": "" }, { "docid": "9fc15b2d11cc52ccfe113e72def89eac", "score": "0.4835317", "text": "public function index()\n {\n $jobs = Job::approved();\n\n return view('jobs.index')->with(compact('jobs'));\n }", "title": "" }, { "docid": "40eb7c72d6c461a68a1c1c8dbd9da7f8", "score": "0.48217964", "text": "public function actionGetStages()\n {\n $vTaskRun = $this->loadModel('VTaskRun');\n $this->layout = false;\n $this->render('jobruns', array('vTaskRun' => $vTaskRun));\n }", "title": "" }, { "docid": "8d5782900e71cbfe0dbb24574a9fd5f9", "score": "0.4812161", "text": "public function index()\n {\n $jobs = Job::all();\n\n return $this->sendResponse($jobs->toArray(), 'Jobs retrieved successfully.');\n }", "title": "" }, { "docid": "16731dc7f9ca2a3aa7258dba0eccc0ec", "score": "0.48095042", "text": "public function index(){\n\t \n\t \t$jobs = Jobs::orderBy('order', 'asc')->get();\n\n\t \treturn view('jobs.index', ['jobs' => $jobs]); \n\t}", "title": "" }, { "docid": "8179673637392ba33b171bda1571c0c7", "score": "0.48029587", "text": "function getAllJobsOfLinkAction( )\n {\n \t\t$user_id = $this->getRequest()->getParam('user_id');\n \t\t$user_obj = \\Extended\\ilook_user::getRowObject($user_id);\n \t\t$user_type = $user_obj->getUser_type();\n \t\t$result = array();\n \t\tif ($user_type == \\Extended\\ilook_user::USER_TYPE_STUDENT)\n \t\t{\n\t\t\t$result['student'] = 1;\n \t\t}\n\t if ( $user_type == \\Extended\\ilook_user::USER_TYPE_HOME_MAKER )\n\t {\n\t\t $result['home_maker']= 1;\n\t }\n \t\t\n \t\t$All_exp = \\Extended\\experience::getAllExperiences($user_id);\n \t\tif($All_exp)\n \t\t{\n\t \t\t$job_title = array();\n\t \t\tforeach ( $All_exp as $exp )\n\t \t\t{\n\t \t\t\t$job_title[] = $exp->getJob_title();\n\t \t\t\t\n\t \t\t}\n\t \t\t$result['jobs'] = $job_title;\n\t \t\techo Zend_Json::encode( $result );\n \t\t}\n \t\telse\n \t\t{\n \t\t\t$result['jobs'] = \"\";\n \t\t\techo Zend_Json::encode( $result );\n \t\t}\n \t\tdie;\n \t\t\n }", "title": "" }, { "docid": "044faf6eef5d4e006fd9fd3d6dbaa3c3", "score": "0.48009732", "text": "public function index()\n {\n $jobs = Job::all();\n \n return view('jobs.index', compact('jobs'));\n }", "title": "" }, { "docid": "8e7946104dc8a98c634cafb8cb42e237", "score": "0.48008466", "text": "public function jobTitleList()\n {\n try {\n $jobtitles = JobTitles::SELECT('jobtitle_name', 'is_active', 'id')->orderBy('id', 'asc');\n return Datatables::of($jobtitles)\n ->make(true);\n } catch (\\Exception $e) {\n Log::error($e);\n }\n\n }", "title": "" }, { "docid": "0f3ff569966704d8ed99954953763a0a", "score": "0.47913858", "text": "public function actionIndex() {\n $searchModel = new ServiceBinSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "eaed34203ab2e94fa5dad86d5f720bb9", "score": "0.47788408", "text": "public function index()\n {\n $datalist = Jobs::all();\n return view('admin.jobs', ['datalist' => $datalist]);\n }", "title": "" }, { "docid": "3a70f6684edabd1f3c41c3828b6972a5", "score": "0.4778759", "text": "public function index()\n {\n $jobs = Job::orderBy('created_at', 'DESC')->get();\n return view('jobs.index', compact('jobs'));\n }", "title": "" }, { "docid": "8d689d2f3d62a1eb10e875b7f254d432", "score": "0.47786596", "text": "public function listAll();", "title": "" }, { "docid": "8d689d2f3d62a1eb10e875b7f254d432", "score": "0.47786596", "text": "public function listAll();", "title": "" }, { "docid": "8d689d2f3d62a1eb10e875b7f254d432", "score": "0.47786596", "text": "public function listAll();", "title": "" }, { "docid": "8d689d2f3d62a1eb10e875b7f254d432", "score": "0.47786596", "text": "public function listAll();", "title": "" }, { "docid": "8d689d2f3d62a1eb10e875b7f254d432", "score": "0.47786596", "text": "public function listAll();", "title": "" }, { "docid": "8cda9aa16c933761001d827764a99656", "score": "0.4777529", "text": "public function getAllJobs(){\n return $this->securityDAO->getAllJobsDAO();\n }", "title": "" }, { "docid": "15c87d32a1229682ea24004967a40e11", "score": "0.47765937", "text": "public function index()\n {\n $jobs = Job::all();\n return view('job.index', compact('jobs'));\n }", "title": "" }, { "docid": "38dc576d09dda267969dcfd362034ee7", "score": "0.47749463", "text": "public function index()\n {\n $lists = $this->lists;\n\n $jobs = Job::orderBy('priority','ASC')->paginate(18);\n return view('admin.job.index',compact('jobs','lists'));\n }", "title": "" }, { "docid": "61d415a27ded355c3b9c77a237b0b48f", "score": "0.47624537", "text": "public function index()\n {\n $jobs = $this->job_repository->getAllPaginate();\n return view('admin.jobs.index', compact('jobs'));\n }", "title": "" }, { "docid": "259fb13e9c5021216654e83af3144f3c", "score": "0.4759564", "text": "public function index()\n {\n //\n $jobs = Job::orderBy(\"created_at\", \"DESC\")->paginate(10);\n\n return view(\"admin.jobs.index\", compact('jobs'));\n }", "title": "" }, { "docid": "a17e4b69ebdbe8ca0bc82254b9533a25", "score": "0.47578534", "text": "public function all() {\n\t\t\tlist($xmlData, $code) = $this->_request('GET', 'ffmpeg_processes.xml');\n\t\t\t\n\t\t\tif ($code == 200) {\n\t\t\t\ttry {\n\t\t\t\t\t$objects = $this->_createObjectsFromXml($xmlData);\n\t\t\t\t\t\n\t\t\t\t\treturn $objects;\n\t\t\t\t} catch (Exception $exception) {\n\t\t\t\t\tthrow new CloudFfmpegProcessException('Resource not found: ' . $exception->getMessage(), 500);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new CloudFfmpegProcessException('Resource not found.', $code);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "da43a97ca632225b0cb212f751040001", "score": "0.4748813", "text": "public function index()\n {\n $problem_descs = $this->problem_desc->findByCancelFlag('N');\n $countProblemDescs = $this->problem_desc->countProblemDescs();\n $types = $this->type->findByCancelFlag('N');\n return compact('problem_descs', 'types', 'countProblemDescs');\n }", "title": "" }, { "docid": "26af3ca856e67c16987a1551a72ed494", "score": "0.47478762", "text": "function careerfy_vc_simple_jobs_listing()\n{\n global $jobsearch_gdapi_allocation;\n $jobsearch__options = get_option('jobsearch_plugin_options');\n\n $categories = get_terms(array(\n 'taxonomy' => 'sector',\n 'hide_empty' => false,\n ));\n\n $all_locations_type = isset($jobsearch__options['all_locations_type']) ? $jobsearch__options['all_locations_type'] : '';\n $cate_array = array(esc_html__(\"Select Sector\", \"careerfy-frame\") => '');\n if (is_array($categories) && sizeof($categories) > 0) {\n foreach ($categories as $category) {\n $cate_array[$category->name] = $category->slug;\n }\n }\n\n $job_listsh_parms = array();\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"View\", \"careerfy-frame\"),\n 'param_name' => 'job_list_style',\n 'value' => array(\n esc_html__(\"Style 1\", \"careerfy-frame\") => 'style1',\n esc_html__(\"Style 2\", \"careerfy-frame\") => 'style2',\n esc_html__(\"Style 3\", \"careerfy-frame\") => 'style3',\n esc_html__(\"Style 4\", \"careerfy-frame\") => 'style4',\n esc_html__(\"Style 5\", \"careerfy-frame\") => 'style5',\n esc_html__(\"Style 6\", \"careerfy-frame\") => 'style6',\n esc_html__(\"Style 7\", \"careerfy-frame\") => 'style7',\n esc_html__(\"Style 8\", \"careerfy-frame\") => 'style8',\n esc_html__(\"Style 9\", \"careerfy-frame\") => 'style9',\n ),\n );\n\n $job_listsh_parms[] = array(\n 'type' => 'careerfy_browse_img',\n 'heading' => esc_html__(\"Image\", \"careerfy-frame\"),\n 'param_name' => 'title_img',\n 'value' => '',\n 'description' => esc_html__(\"Image will show above title\", \"careerfy-frame\"),\n 'dependency' => array(\n 'element' => 'job_list_style',\n 'value' => 'style4'\n ),\n );\n\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Title\", \"careerfy-frame\"),\n 'param_name' => 'job_list_title',\n 'value' => '',\n 'description' => '',\n 'dependency' => array(\n 'element' => 'job_list_style',\n 'value' => array('style1', 'style2', 'style3', 'style4')\n ),\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Description\", \"careerfy-frame\"),\n 'param_name' => 'job_list_description',\n 'value' => '',\n 'description' => '',\n 'dependency' => array(\n 'element' => 'job_list_style',\n 'value' => array('style2', 'style4')\n ),\n );\n $job_listsh_parms[] = array(\n 'type' => 'checkbox',\n 'heading' => esc_html__(\"Locations in listing\", \"careerfy-frame\"),\n 'param_name' => 'job_list_loc_listing',\n 'value' => array(\n esc_html__(\"Country\", \"careerfy-frame\") => 'country',\n esc_html__(\"State\", \"careerfy-frame\") => 'state',\n esc_html__(\"City\", \"careerfy-frame\") => 'city',\n ),\n 'std' => 'country,city',\n 'description' => esc_html__(\"Select which type of location in listing. If nothing select then full address will display.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sector\", \"careerfy-frame\"),\n 'param_name' => 'job_cat',\n 'value' => $cate_array,\n 'description' => esc_html__(\"Select Sector.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Featured Only\", \"careerfy-frame\"),\n 'param_name' => 'featured_only',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"If you set Featured Only 'Yes' then only Featured jobs will show.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Order\", \"careerfy-frame\"),\n 'param_name' => 'job_order',\n 'value' => array(\n esc_html__(\"Descending\", \"careerfy-frame\") => 'DESC',\n esc_html__(\"Ascending\", \"careerfy-frame\") => 'ASC',\n ),\n 'description' => esc_html__(\"Choose job list items order.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Orderby\", \"careerfy-frame\"),\n 'param_name' => 'job_orderby',\n 'value' => array(\n esc_html__(\"Date\", \"careerfy-frame\") => 'date',\n esc_html__(\"Title\", \"careerfy-frame\") => 'title',\n ),\n 'description' => esc_html__(\"Choose job list items orderby.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Number of Jobs\", \"careerfy-frame\"),\n 'param_name' => 'job_per_page',\n 'value' => '10',\n 'description' => esc_html__(\"Set number that how many jobs you want to show.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Load More Jobs\", \"careerfy-frame\"),\n 'param_name' => 'job_load_more',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Choose yes if you want to show more job items.\", \"careerfy-frame\"),\n 'dependency' => array(\n 'element' => 'job_list_style',\n 'value' => array('style1', 'style2', 'style7', 'style8', 'style4', 'style5', 'style6', 'style9')\n ),\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Link text\", \"careerfy-frame\"),\n 'param_name' => 'job_link_text',\n 'value' => '',\n 'description' => '',\n 'dependency' => array(\n 'element' => 'job_list_style',\n 'value' => array('style3')\n ),\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Link text URL\", \"careerfy-frame\"),\n 'param_name' => 'job_link_text_url',\n 'value' => '',\n 'description' => '',\n 'dependency' => array(\n 'element' => 'job_list_style',\n 'value' => array('style3')\n ),\n );\n $attributes = array(\n \"name\" => esc_html__(\"Simple Jobs Listing\", \"careerfy-frame\"),\n \"base\" => \"jobsearch_simple_jobs_listing\",\n \"class\" => \"\",\n \"category\" => esc_html__(\"Wp JobSearch\", \"careerfy-frame\"),\n \"params\" => $job_listsh_parms,\n );\n if (function_exists('vc_map') && class_exists('JobSearch_plugin')) {\n vc_map($attributes);\n }\n}", "title": "" }, { "docid": "d358f750a8e03742d4d468be127062e6", "score": "0.4735495", "text": "public function actionIndex()\n {\n /** @var Job[] $jobs */\n $jobs = Job::find()->all();\n\n foreach ($jobs as $job) {\n if ($job->needRun()) {\n $this->outputSuccess(\"Starting job {$job->fullName}\");\n\n try {\n $job->run();\n $this->outputSuccess(\"Finished job {$job->fullName}\");\n } catch (\\Throwable $ex) {\n $this->outputError(\"Job {$job->name} failed: \" . $ex->__toString());\n }\n } else {\n $this->output(\"Next schedule for job {$job->id} - {$job->name} ({$job->class}) is {$job->next}\");\n }\n }\n }", "title": "" }, { "docid": "9255df15362be8bf325154e847473039", "score": "0.47345573", "text": "public function run() \n\n { \n\n $data = [ \n\n1,'EC','マーケティング','マネージャー','2014','2017','最初に配属されたのは、楽天市場の顧客戦略を担う部署です。ここは楽天のキャラクターである「お買いものパンダ」を用いたブランディングも行っていますが、私は楽天市場をより使いやすくするためのナビゲーション、特にカテゴリー構造を最適化するためのプロジェクトに1年ほど携わっていました。',\n1,'EC','営業・コンサルタント',null,'2012','2014',null,\n2,'EC','営業・コンサルタント','ディレクター','2010','2018','楽天の主力事業「楽天市場」のECコンサルタントとして、フード&ドリンク事業課に所属し、過去には東京と北日本、関西、東海エリアの店舗様に足を運び、売上を伸ばすお手伝いをしていました。',\n3,'EC','営業・コンサルタント','マネージャー','2014','2018','西日本エリアの統括',\n3,'その他','戦略・経営企画',null,'2012','2014','数名のECCとテストプロジェクトを立ち上げました。彼らの日常的なタレントマネジメントや仕事の進め方を学び、改善を見込める点についていくつかのアイデアを試しました。',\n3,'EC','営業・コンサルタント',null,'2008','2012',null,\n4,'EC','物流・SCM','リーダー','2000','2001',null,\n5,'EC','アプリケーションエンジニア',null,'2011','2018','一つはユーザーが求める商品をより見つけやすくするためのUIやUXの改善、もう一つは「楽天市場」に出店している店舗向けのマーティングツールおよびサービスの開発',\n6,'EC','データサイエンティスト・リサーチャー','マネージャー','2005','2015',null,\n7,'EC','その他','ディレクター','2003','2004','「楽天市場」など当社が所有するメディア資産を活用し、一般企業(クライアント)に広告ソリューションを提供',\n8,'その他','営業・コンサルタント','プロデューサー','2013','2018',null,\n8,'EC','マーケティング',null,'2009','2013',null,\n9,'EC','営業・コンサルタント','リーダー','2005','2006',null,\n10,'EC','戦略・経営企画','リーダー','2010','2018','数名のECCとテストプロジェクトを立ち上げました。彼らの日常的なタレントマネジメントや仕事の進め方を学び、改善を見込める点についていくつかのアイデアを試しました。',\n10,'EC','戦略・経営企画',null,'2006','2010',null,\n11,'EC','物流・SCM','マネージャー','2007','2008',null,\n12,'その他','アプリケーションエンジニア','ディレクター','2007','2009',null,\n13,'EC','データサイエンティスト・リサーチャー','プロデューサー','2009','2010',null,\n14,'EC','その他','リーダー','2010','2011',null,\n15,'トラベル','マーケティング','リーダー','2015','2018','トラベルコやトラベルjp、トリップアドバイザー、大きい所ではJALやANAなどのパートナーサイトと一緒に 共同キャンペーンを組んだり、アフィリエイト連携',\n15,'トラベル','マーケティング',null,'2013','2015','航空系サイトやメタサーチサイト、福利厚生サイトなどの外部パートナーや媒体と連携し「楽天トラベル」へ集客',\n15,'トラベル','営業・コンサルタント','マネージャー','2008','2013','旅行サービスの手配・運用、システムやウェブサイトなどのマネジメント業務全般',\n16,'その他','営業・コンサルタント','マネージャー','2013','2015','西日本エリアの統括',\n17,'トラベル','戦略・経営企画','ディレクター','2013','2014','事業のマネージャーとして仕入れやプロダクト開発、システム改善、ウェブマーケティングなどをリード',\n17,'その他','営業・コンサルタント','null','2008','2013',null,\n18,'トラベル','アプリケーションエンジニア','プロデューサー','2014','2015','一つはユーザーが求める商品をより見つけやすくするためのUIやUXの改善、もう一つは「楽天トラベル」に出店しているホテル様向けのマーティングツールおよびサービスの開発',\n19,'トラベル','アプリケーションエンジニア','リーダー','2015','2016','一つはユーザーが求める商品をより見つけやすくするためのUIやUXの改善、もう一つは「楽天トラベル」に出店しているホテル様向けのマーティングツールおよびサービスの開発',\n20,'トラベル','戦略・経営企画','リーダー','2015','2018','数名のメンバーとテストプロジェクトを立ち上げました。彼らの日常的なタレントマネジメントや仕事の進め方を学び、改善を見込める点についていくつかのアイデアを試しました。',\n20,'トラベル','データサイエンティスト・リサーチャー',null,'2012','2015','データサイエンスの視点から、楽天における膨大な「データ」というツールを最大限に活用し、様々な方法でより良いサービスを実現するためのソリューションを提供',\n21,'トラベル','その他','マネージャー','2010','2018',null,\n22,'その他','マーケティング','ディレクター','1997','1998','トラベルコやトラベルjp、トリップアドバイザー、大きい所ではJALやANAなどのパートナーサイトと一緒に 共同キャンペーンを組んだり、アフィリエイト連携',\n23,'トラベル','営業・コンサルタント','マネージャー','1998','1999',null,\n24,'トラベル','戦略・経営企画','リーダー','1999','2000','旅行会社向けに、手配オペレーションや業務プロセス設計などを担当',\n25,'その他','物流・SCM',null,'2000','2001',null,\n26,'トラベル','アプリケーションエンジニア','プロデューサー','2009','2018',null,\n27,'トラベル','データサイエンティスト・リサーチャー','ディレクター','2007','2018',null,\n28,'トラベル','その他','プロデューサー','2003','2004',null,\n29,'FinTech','マーケティング','リーダー','2004','2005','楽天スーパーポイントをフックにしたユーザー参加型のキャンペーンを展開',\n30,'FinTech','営業・コンサルタント',null,'2005','2006','多くの中小企業に向けて、投資関連の営業を、中部地方を中心に担当',\n30,'FinTech','マーケティング','リーダー','2006','2006','バナー広告を使用したwebマーケを中心に、トラベルページへの集客を担当',\n31,'FinTech','マーケティング','マネージャー','2006','2007','マネージャーとして、50人規模のマーケティングチームのマネジメントを担当',\n31,'FinTech','戦略・経営企画','マネージャー','2008','2012','会社の幹部レベルの数名と、FinTech事業の拡大に向けたプロジェクトを推進した',\n32,'その他','戦略・経営企画','ディレクター','2007','2008','FinTech関連の大幅な戦略変更に伴ったプロジェクトで、買収後の金融会社の戦略・方向性の決定を担当した',\n32,'FinTech','営業・コンサルタント','プロデューサー','2009','2015','主に九州地方の営業部隊の統括を担当。非効率な電話営業での勧誘を、システムを導入することで、自動化に成功した',\n33,'FinTech','アプリケーションエンジニア','プロデューサー','2008','2009','社内向けシステムのサーバーサイドのエンジニアとして、アプリ作成を担当',\n33,'その他','アプリケーションエンジニア','マネージャー','2010','2017','社内向けシステムを作るエンジニアの統括を主に担当',\n34,'FinTech','データサイエンティスト・リサーチャー','リーダー','2009','2010','ユーザーにはより使いやすいUIやUXを、店舗には売上増につながる有意義なソリューション・サービスの提供など、楽天の未来を創造していくために欠かせない業務を担当',\n34,'FinTech','戦略・経営企画','マネージャー','2011','2013','データ解析を用いた企業戦略の方向性決定を担当',\n35,'その他','その他',null,'2010','2011','経理部門として、日々の支出計算の管理を担当。また、決算前後の期間では、決算報告資料の元データの編集も行った。',\n35,'FinTech','マーケティング','リーダー','2012','2014','最初に配属されたのは、楽天銀行の顧客戦略を担う部署です。ここは楽天のキャラクターである「お買いものパンダ」を用いたブランディングも行っていますが、私はをより楽天銀行を使いやすくするためのナビゲーション、特にカテゴリー構造を最適化するためのプロジェクトに1年ほど携わっていました。',\n36,'FinTech','マーケティング','マネージャー','2011','2012','楽天Payのバナー広告・アフィリエイト広告の運営を主に担当していました。また、オフライン広告の運営を行うチームの統括も行っていました。',\n36,'FinTech','営業・コンサルタント','リーダー','2013','2018','関東地方の営業リーダーとして、主に大企業に向けた営業部門の統括を担当',\n37,'FinTech','営業・コンサルタント','ディレクター','2012','2013','主に、中小企業に向けた投資関連のGET業務を担当',\n37,'FinTech','マーケティング','プロデューサー','2014','2017','マーケティング部は、楽天いPayに興味を持っていただけるよう、オンラインメディアを通じて様々な情報発信をする部署を担当',\n38,'FinTech','戦略・経営企画','プロデューサー','2013','2014','顧客満足度や従業員満足度、品質管理(バックオフィス、コールセンター)などの情報を総合的に判断し、サービス運用の課題を解決する、というこれまで培ってきたスキルを楽天のために役立てたいと考え、具体的なKaizenプランを提案することにしました。',\n38,'FinTech','戦略・経営企画','マネージャー','2015','2018','顧客満足の向上を目的とした、FinTech事業を横断したブランディング戦略を担当しました',\n39,'FinTech','物流・SCM','リーダー','2014','2015',null,\n39,'FinTech','営業・コンサルタント','プロデューサー','2016','2018',null,\n40,'FinTech','アプリケーションエンジニア',null,'2015','2016',null,\n40,'FinTech','アプリケーションエンジニア','リーダー','2017','2018',null,\n41,'FinTech','データサイエンティスト・リサーチャー','マネージャー','2016','2017','リコメンドロジック等のデータサイエンスソリューションの開発に従事',\n41,'FinTech','営業・コンサルタント','マネージャー','2017','2018',null,\n42,'FinTech','その他','ディレクター','2017','2018',null,\n43,'新サービス','マーケティング','プロデューサー','2005','2015','マリッジ事業部では、楽天オーネットという結婚情報サービスのマーケティングを担当しています。楽天オーネットでは、お客様が良いお相手を見つけ、ご結婚いただくことを目指しています。',\n44,'その他','営業・コンサルタント','リーダー','1998','1999',null,\n45,'新サービス','戦略・経営企画',null,'1999','2003','大まかに2つの役割を担っていました。1つはMCO(メディア&コミュニケーションズカンパニー)における事業開発と、もう1つはCEO戦略・イノベーション室(CEIO)の一員としての業務です。',\n45,'EC','アプリケーションエンジニア','マネージャー','2003','2018','一つはユーザーが求める商品をより見つけやすくするためのUIやUXの改善、もう一つは「楽天市場」に出店している店舗向けのマーティングツールおよびサービスの開発',\n46,'新サービス','物流・SCM','マネージャー','2000','2001',null,\n47,'新サービス','アプリケーションエンジニア','ディレクター','2001','2002','結婚式場探しのサービス「楽天ウェディング」と、フォトウェディングサービス「Picmarry」の開発に関わり、プロダクトマネジメントとプロジェクトマネジメントの両方を担当しています。',\n47,'FinTech','物流・SCM','プロデューサー','1999','2001','顧客満足度や従業員満足度、生産性、品質管理(バックオフィス、コールセンター、小売店舗)などの情報を総合的に判断し、サービス運用の課題を解決する、というこれまで培ってきたスキルを楽天のために役立てたいと考え、具体的なKaizenプランを提案することにしました。',\n48,'その他','データサイエンティスト・リサーチャー','プロデューサー','2002','2003',null,\n49,'新サービス','その他','リーダー','2003','2004',null,\n50,'新サービス','マーケティング','ディレクター','2010','2018','マーケティング部は、楽天オーネットに興味を持っていただけるよう、オンラインメディアを通じて様々な情報発信をする部署です。',\n50,'トラベル','マーケティング','リーダー','2005','2010','トラベルコやトラベルjp、トリップアドバイザー、大きい所ではJALやANAなどのパートナーサイトと一緒に 共同キャンペーンを組んだり、アフィリエイト連携',\n51,'新サービス','営業・コンサルタント','マネージャー','2005','2006',null,\n52,'その他','戦略・経営企画','ディレクター','2006','2007','結婚式の前撮りに関するサービスを立案する機会をいただき、実現させることができました。イチから画面の仕様や機能、必要な特徴を洗い出し、約3カ月でサービスの立ち上げを行いました。',\n53,'新サービス','物流・SCM','プロデューサー','2007','2008',null,\n53,'RIT','戦略・経営企画','プロデューサー','2008','2015','顧客満足度や従業員満足度、生産性、品質管理(バックオフィス、コールセンター、小売店舗)などの情報を総合的に判断し、サービス運用の課題を解決する、というこれまで培ってきたスキルを楽天のために役立てたいと考え、具体的なKaizenプランを提案することにしました。',\n54,'新サービス','アプリケーションエンジニア','リーダー','2015','2018',null,\n55,'新サービス','データサイエンティスト・リサーチャー',null,'2009','2010',null,\n56,'新サービス','その他','マネージャー','2010','2011',null,\n57,'RIT','マーケティング','ディレクター','2011','2012',null,\n58,'RIT','営業・コンサルタント','プロデューサー','2012','2013','研究案件のビジネス連携に注力する新規組織であるPMOグループに所属',\n59,'RIT','戦略・経営企画','リーダー','2013','2014','エンドユーザー向けサービスのプロダクトマネジメントなどを経験後、人材・予算管理業務などを行う',\n60,'その他','物流・SCM',null,'2014','2015',null,\n61,'RIT','アプリケーションエンジニア','マネージャー','2015','2016','「楽天市場」の分析システムや、「楽天コミュニケーションズ」のネットワークをより快適に利用するための仕組み作りに加え、ハイパフォーマンスコンピューティングやロボット関連など、広範囲に渡る研究活動を行っています',\n61,'コーポレート','戦略・経営企画','プロデューサー','2016','2018','企画部のミッションは、3年後の成長に向けて、経営課題を構想から実行までドライブすること。三木谷社長やECカンパニー経営陣と経営課題や解決策について議論させて頂き、その実現まで責任を持ってリードしていきます。',\n61,'コーポレート','データサイエンティスト・リサーチャー','リーダー','2006','2015','リコメンドロジック等のデータサイエンスソリューションの開発に従事',\n62,'その他','データサイエンティスト・リサーチャー','ディレクター','2016','2017',null,\n63,'RIT','その他','プロデューサー','2010','2018','ビジネスと研究を連携させるコーディネート、個別のプロジェクトおよびプロダクトの管理、技術営業や実験のサポート、実験パートナーとの折衝など',\n63,'新サービス','営業・コンサルタント','リーダー','2006','2010','西日本エリアの統括',\n64,'その他','マーケティング','リーダー','1997','1998',null,\n65,'RIT','営業・コンサルタント',null,'1998','1999',null,\n66,'RIT','戦略・経営企画','マネージャー','2008','2016',null,\n67,'RIT','物流・SCM','ディレクター','2012','2017',null,\n68,'RIT','アプリケーションエンジニア','プロデューサー','2001','2002','音声入力やAR/VRに関するHCI(ヒューマンコンピューターインストラクション)や、AI(人工知能)やデザイン',\n68,'トラベル','アプリケーションエンジニア','マネージャー','2002','2007','一つはユーザーが求める商品をより見つけやすくするためのUIやUXの改善、もう一つは「楽天トラベル」に出店しているホテル様向けのマーティングツールおよびサービスの開発',\n69,'RIT','データサイエンティスト・リサーチャー','リーダー','2002','2003',null,\n70,'RIT','その他',null,'2003','2004',null,\n71,'コーポレート','マーケティング','マネージャー','2004','2005',null,\n72,'その他','営業・コンサルタント','ディレクター','2005','2008',null,\n73,'コーポレート','戦略・経営企画','プロデューサー','2006','2007','事業開発部は、企業の買収(M&A)やジョイントベンチャー投資、アライアンスを通じた楽天の成長戦略の立案・遂行を主なミッションとしています。',\n73,'コーポレート','マーケティング','マネージャー','2002','2006','リサーチ統括部 総合調査グループにリサーチャーとして配属され、日本国内と海外の各種マーケティング調査を担当',\n73,'RIT','マーケティング','ディレクター','2007','2011','事業部の戦略と照らし合わせながらセグメントに合わせたターゲティングや、リコメンドロジックの開発・改善など最もビジネス価値が高いソリューションを開発し、それを仕組み化するためシステムの実装まで行います。',\n74,'コーポレート','物流・SCM','リーダー','2007','2008','顧客満足度や従業員満足度、生産性、品質管理(バックオフィス、コールセンター、小売店舗)などの情報を総合的に判断し、サービス運用の課題を解決する、というこれまで培ってきたスキルを楽天のために役立てたいと考え、具体的なKaizenプランを提案することにしました。',\n75,'コーポレート','アプリケーションエンジニア',null,'2008','2009',null,\n76,'コーポレート','データサイエンティスト・リサーチャー','マネージャー','2009','2010','楽天グループの多くのサービスによる「楽天経済圏」で得られる膨大なデータを活用したログデータの解析',\n76,'FinTech','データサイエンティスト・リサーチャー','リーダー','2001','2010','ユーザーにはより使いやすいUIやUXを、店舗には売上増につながる有意義なソリューション・サービスの提供など、楽天の未来を創造していくために欠かせない業務を担当',\n77,'コーポレート','その他','ディレクター','2010','2011','リサーチ統括部 総合調査グループにリサーチャーとして配属され、日本国内と海外の各種マーケティング調査を担当',\n78,'その他','マーケティング','プロデューサー','2011','2012','リサーチ統括部 総合調査グループにリサーチャーとして配属され、日本国内と海外の各種マーケティング調査を担当',\n79,'コーポレート','営業・コンサルタント','リーダー','2012','2013','ドローンを使用した宅配サービスの設置個所のハンティングや、新規参入店舗の獲得',\n80,'その他','戦略・経営企画',null,'2013','2014','企画部のミッションは、3年後の成長に向けて、経営課題を構想から実行までドライブすること。三木谷社長やECカンパニー経営陣と経営課題や解決策について議論させて頂き、その実現まで責任を持ってリードしていきます。',\n81,'コーポレート','物流・SCM','マネージャー','2014','2015',null,\n81,'EC','物流・SCM','ディレクター','2015','2017','数名のECCとテストプロジェクトを立ち上げました。彼らの日常的なタレントマネジメントや仕事の進め方を学び、改善を見込める点についていくつかのアイデアを試しました。',\n81,'EC','データサイエンティスト・リサーチャー','ディレクター','2017','2018','リコメンドロジック等のデータサイエンスソリューションの開発に従事',\n82,'コーポレート','アプリケーションエンジニア','ディレクター','2015','2016',null,\n83,'コーポレート','データサイエンティスト・リサーチャー','プロデューサー','2016','2017','事業部の戦略と照らし合わせながらセグメントに合わせたターゲティングや、リコメンドロジックの開発・改善など最もビジネス価値が高いソリューションを開発し、それを仕組み化するためシステムの実装まで行います。',\n84,'コーポレート','その他','リーダー','2010','2018','新規事業における改善策と、社内の業務効率化に取り組んでいました',\n85,'FinTech','戦略・経営企画','リーダー','1988','1991','名古屋支店を経て、本店外国為替部配属。後に企業金融開発部で国際的なM&Aの斡旋を担当し、孫正義(ソフトバンク)、増田宗昭(TSUTAYA)などが顧客であった',\n85,'コーポレート','戦略・経営企画','CEO','1997','2018','In Rakuten, Mikitani sought to create an e-commerce platform characterized by Empowerment and Omotenashi.'\n\n\n]; \n\n \n\n \n\n// 8をカラム数に変更 \n\n $i = 0; \n\n $data[7*$i+0]; //user_id \n\n $data[7*$i+1]; //service \n\n $data[7*$i+2]; // career \n\n $data[7*$i+3]; // position \n\n $data[7*$i+4]; // start \n\n $data[7*$i+5]; // end \n\n $data[7*$i+6]; // project detail \n\n \n\n for($i=0; $i<120; $i++) { \n\n DB::table('user_careers')->insert([ \n\n 'user_id' => $data[7*$i+0], \n\n 'service' => $data[7*$i+1], \n\n 'career' => $data[7*$i+2], \n\n 'position' => $data[7*$i+3], \n\n 'start' => $data[7*$i+4], \n\n 'end' => $data[7*$i+5], \n\n 'project_detail' => $data[7*$i+6], \n\n ]); \n }\n\n }", "title": "" }, { "docid": "805aaf75fc1fdc396af9273db3676793", "score": "0.47000638", "text": "public function index()\n {\n $job = Job::orderBy('id', 'desc')->paginate(10);\n //dd($job);\n return view('job.index', compact('job'));\n }", "title": "" }, { "docid": "999b4d5da649642d6071a842300d47c4", "score": "0.4697974", "text": "public function index()\n {\n $jobs = Job::all();\n return response()->json(['data' => $jobs], 200);\n }", "title": "" }, { "docid": "c09d764a6bb693f4e9635a1c6d2fdc4d", "score": "0.46956742", "text": "public function index() {\n if (!$this->checkPerms('viewAny', Job::class)) {\n abort(403);\n }\n \n return Job::all();\n }", "title": "" }, { "docid": "99cec2649c736482f78b65ed862f8e18", "score": "0.46955928", "text": "public final function start() {\n // only call once\n if (isset($this->jobs)) return count($this->jobs) ? TRUE : FALSE;\n \n $this->jobs = array();\n EncodingUtil::log(sprintf('Starting tests'), 'EncodingController::run', __LINE__);\n $outputs = array();\n // define job settings\n if ($this->hls) {\n $hls_settings = parse_ini_file(dirname(__FILE__) . '/hls.ini', TRUE);\n foreach(array_keys($hls_settings) as $key) {\n if (preg_match('/^hls([0-9]+)$/', $key, $m)) {\n $bit = $m[1]*1;\n if ($bit & $this->hls) {\n if ($audio_bitrate = $hls_settings[$key]['audio_bitrate']) {\n $frame_rate = isset($hls_settings[$key]['frame_rate']) ? $hls_settings[$key]['frame_rate'] : NULL;\n $h264_profile = isset($hls_settings[$key]['profile']) ? $hls_settings[$key]['profile'] : NULL;\n $keyframe = isset($hls_settings[$key]['keyframe']) ? $hls_settings[$key]['keyframe'] : NULL;\n $video_bitrate = isset($hls_settings[$key]['video_bitrate']) ? $hls_settings[$key]['video_bitrate'] : NULL;\n $res = isset($hls_settings[$key]['res16:9']) ? $hls_settings[$key]['res16:9'] : NULL;\n if ($res) {\n $pieces = explode('x', $res);\n $width = $pieces[0];\n }\n else $width = NULL;\n EncodingUtil::log(sprintf('Adding hls key %s to output jobs with audio_bitrate: %d; h264_profile: %s; keyframe: %d; video_bitrate: %d; frame_rate: %s; width %d', $key, $audio_bitrate, $h264_profile, $keyframe, $video_bitrate, $frame_rate, $width), 'EncodingController::run', __LINE__);\n $output = array('audio_bitrate' => $audio_bitrate);\n \n if ($video_bitrate) {\n $output['video_bitrate'] = $video_bitrate;\n if ($frame_rate) $output['frame_rate'] = $frame_rate;\n if ($h264_profile) $output['h264_profile'] = $h264_profile;\n if ($keyframe) $output['keyframe'] = $keyframe;\n if ($width) $output['width'] = $width; \n }\n else $output['audio_only'] = TRUE;\n $outputs[] = $output;\n }\n else EncodingUtil::log(sprintf('Skipping hls ini key %s because no audio_bitrate has been defined (required)', $key), 'EncodingController::run', __LINE__, TRUE);\n }\n else EncodingUtil::log(sprintf('Skipping hls key %s because %d is not in the hls setting parameter %d', $key, $bit, $this->hls), 'EncodingController::run', __LINE__);\n }\n else EncodingUtil::log(sprintf('Invalid hls ini key %s', $key), 'EncodingController::run', __LINE__, TRUE);\n }\n }\n else {\n $output = array();\n if ($this->audio_bitrate) $output['audio_bitrate'] = $this->audio_bitrate;\n if ($this->frame_rate) $output['frame_rate'] = $this->frame_rate;\n if ($this->profile) $output['h264_profile'] = $this->profile;\n if ($this->keyframe) $output['keyframe'] = $this->keyframe;\n if ($this->video_bitrate) $output['video_bitrate'] = $this->video_bitrate;\n if ($this->width) $output['width'] = $this->width;\n $outputs[] = $output;\n }\n foreach($this->input_objects as $i => $object) {\n $oformat = $this->formats[$i];\n $audio_only = EncodingUtil::isAudio($object) || EncodingUtil::isAudio($oformat);\n \n $iformat = $this->input_formats[$i];\n $audio_codec = $this->audio_codecs[$i];\n $video_codec = $audio_only ? NULL : $this->video_codecs[$i];\n $size = $this->input_sizes[$i];\n $size_mb = round(($size/1024)/1024, 4);\n $output_prefix = sprintf('ch%d', rand());\n \n EncodingUtil::log(sprintf('Initiating encoding for input object %s, input format %s, input size %s MB, output format %s; audio_codec %s; video_codec %s. %d output files will be encoded', $object, $iformat, $size_mb, $oformat, $audio_codec, $video_codec, count($outputs)), 'EncodingController::run', __LINE__);\n // set output files\n $job_outputs = array();\n $output_num = 0;\n foreach($outputs as $i => $output) {\n // audio only\n if (!isset($output['audio_only'])) $output['audio_only'] = $audio_only;\n // incompatible video output\n if ($output['audio_only'] && isset($output['video_bitrate'])) {\n // HLS - remove output\n if (count($outputs) > 1) {\n EncodingUtil::log('Removed video output for audio only job', 'EncodingController::run', __LINE__);\n continue;\n }\n // Non-HLS - remove video settings\n else {\n EncodingUtil::log('Removing video settings for audio only job', 'EncodingController::run', __LINE__);\n unset($output['video_bitrate']);\n if (isset($output['frame_rate'])) unset($output['frame_rate']);\n if (isset($output['h264_profile'])) unset($output['h264_profile']);\n if (isset($output['keyframe'])) unset($output['keyframe']);\n if (isset($output['width'])) unset($output['width']);\n }\n }\n $ofile = sprintf('%s/%s_a%s%s_%d.%s', $output_prefix, str_replace('.' . strtoupper($iformat), '', str_replace('.' . $iformat, '', basename($object))), isset($output['audio_bitrate']) ? $output['audio_bitrate'] : '-def', $output['audio_only'] ? '' : '_v' . (isset($output['video_bitrate']) ? $output['video_bitrate'] : '-def'), ++$output_num, $this->hls ? 'm3u8' : $oformat);\n $output['output'] = $ofile;\n $debug = 'Adding output file with settings: ';\n foreach($output as $key => $val) $debug .= $key . '=' . $val . '; ';\n EncodingUtil::log($debug, 'EncodingController::run', __LINE__);\n $job_outputs[] = $output;\n }\n \n if (!count($job_outputs)) EncodingUtil::log('Unable to start encoding job - there are no outputs', 'EncodingController::run', __LINE__, TRUE);\n else if ($jobId = $this->encode($this->storage_controller, $object, $iformat, $size, $oformat, $this->audio_aac_profile, $audio_codec, $this->audio_sample_rate, $video_codec, $this->bframes, $this->reference_frames, $this->two_pass, $this->hls ? TRUE : FALSE, $this->hls_segment, $job_outputs)) {\n EncodingUtil::log(sprintf('Encoding job started successfully - job ID %s', $jobId), 'EncodingController::run', __LINE__);\n $status = $this->initialStatusDownload() ? 'download' : 'queue';\n $log = array();\n $log[$status] = microtime(TRUE);\n $this->jobs[$jobId] = array('input' => $object, 'input_format' => $iformat, 'input_size' => $size, 'output_prefix' => $output_prefix, 'outputs' => $job_outputs, 'log' => $log, 'start' => microtime(TRUE), 'status' => $status, 'times' => array());\n }\n else EncodingUtil::log('Unable to start encoding job', 'EncodingController::run', __LINE__, TRUE);\n }\n return count($this->jobs) ? TRUE : FALSE;\n }", "title": "" }, { "docid": "ca71fdd9f1819b74e0e89d5dffbc4dfc", "score": "0.4685687", "text": "public function run()\n {\n $arr = array(\n \tarray(\n \t\t\"va_code\" => \"001\",\n \t\t\"unit_code\" => \"A01\",\n \t\t\"name\" => \"KANTOR YPL PERWAKILAN AMBARAWA\"),\n \tarray(\n \t\t\"va_code\" => \"002\",\n \t\t\"unit_code\" => \"A02\",\n \t\t\"name\" => \"SD PL AMBARAWA\"),\n \tarray(\n \t\t\"va_code\" => \"003\",\n \t\t\"unit_code\" => \"A03\",\n \t\t\"name\" => \"SMP PL AMBARAWA\"),\n \tarray(\n \t\t\"va_code\" => \"004\",\n \t\t\"unit_code\" => \"A04\",\n \t\t\"name\" => \"ASRAMA ST. LOUIS AMB\"),\n \tarray(\n \t\t\"va_code\" => \"005\",\n \t\t\"unit_code\" => \"G02\",\n \t\t\"name\" => \"SMP PL SALATIGA\"),\n \tarray(\n \t\t\"va_code\" => \"006\",\n \t\t\"unit_code\" => \"G03\",\n \t\t\"name\" => \"SMP PL TLOGO\"),\n \tarray(\n \t\t\"va_code\" => \"007\",\n \t\t\"unit_code\" => \"B01\",\n \t\t\"name\" => \"KANTOR YPL PERWAKILAN YOGYAKARTA\"),\n \tarray(\n \t\t\"va_code\" => \"008\",\n \t\t\"unit_code\" => \"B04\",\n \t\t\"name\" => \"TK PL YOGYAKARTA\"),\n \tarray(\n \t\t\"va_code\" => \"009\",\n \t\t\"unit_code\" => \"B05\",\n \t\t\"name\" => \"SD PL YOGYAKARTA\"),\n \tarray(\n \t\t\"va_code\" => \"010\",\n \t\t\"unit_code\" => \"B09\",\n \t\t\"name\" => \"SMP PL YOGYAKARTA\"),\n \tarray(\n \t\t\"va_code\" => \"011\",\n \t\t\"unit_code\" => \"B10\",\n \t\t\"name\" => \"SMA PL YOGYAKARTA\"),\n \tarray(\n \t\t\"va_code\" => \"012\",\n \t\t\"unit_code\" => \"C02\",\n \t\t\"name\" => \"SD PL SEDAYU\"),\n \tarray(\n \t\t\"va_code\" => \"013\",\n \t\t\"unit_code\" => \"C03\",\n \t\t\"name\" => \"SMP PL SEDAYU\"),\n \tarray(\n \t\t\"va_code\" => \"014\",\n \t\t\"unit_code\" => \"C04\",\n \t\t\"name\" => \"SMP PL MOYUDAN\"),\n \tarray(\n \t\t\"va_code\" => \"015\",\n \t\t\"unit_code\" => \"C05\",\n \t\t\"name\" => \"SMA PL SEDAYU\"),\n \tarray(\n \t\t\"va_code\" => \"016\",\n \t\t\"unit_code\" => \"C06\",\n \t\t\"name\" => \"ASRAMA PUTRI ANGELA\"),\n \tarray(\n \t\t\"va_code\" => \"017\",\n \t\t\"unit_code\" => \"C07\",\n \t\t\"name\" => \"ASRAMA PUTRA RUTTEN\"),\n \tarray(\n \t\t\"va_code\" => \"018\",\n \t\t\"unit_code\" => \"F04\",\n \t\t\"name\" => \"SD PL 3 BORO\"),\n \tarray(\n \t\t\"va_code\" => \"019\",\n \t\t\"unit_code\" => \"F06\",\n \t\t\"name\" => \"SMP PL BORO\"),\n \tarray(\n \t\t\"va_code\" => \"020\",\n \t\t\"unit_code\" => \"D01\",\n \t\t\"name\" => \"KANTOR YPL PERWAKILAN KLATEN\"),\n \tarray(\n \t\t\"va_code\" => \"021\",\n \t\t\"unit_code\" => \"D02\",\n \t\t\"name\" => \"SD PL KLATEN\"),\n \tarray(\n \t\t\"va_code\" => \"022\",\n \t\t\"unit_code\" => \"D03\",\n \t\t\"name\" => \"SMK PL LEONARDO\"),\n \tarray(\n \t\t\"va_code\" => \"023\",\n \t\t\"unit_code\" => \"D04\",\n \t\t\"name\" => \"SMP PL KLATEN\"),\n \tarray(\n \t\t\"va_code\" => \"024\",\n \t\t\"unit_code\" => \"D05\",\n \t\t\"name\" => \"SMP PL WEDI\"),\n \tarray(\n \t\t\"va_code\" => \"025\",\n \t\t\"unit_code\" => \"D06\",\n \t\t\"name\" => \"SMP PL BAYAT\"),\n \tarray(\n \t\t\"va_code\" => \"026\",\n \t\t\"unit_code\" => \"D07\",\n \t\t\"name\" => \"SMP PL GANTIWARNO\"),\n \tarray(\n \t\t\"va_code\" => \"027\",\n \t\t\"unit_code\" => \"D08\",\n \t\t\"name\" => \"SMP PL CAWAS\"),\n \tarray(\n \t\t\"va_code\" => \"028\",\n \t\t\"unit_code\" => \"D10\",\n \t\t\"name\" => \"PG-TK PL KLATEN\"),\n \tarray(\n \t\t\"va_code\" => \"029\",\n \t\t\"unit_code\" => \"E01\",\n \t\t\"name\" => \"KANTOR YPL PERWAKILAN MUNTILAN\"),\n \tarray(\n \t\t\"va_code\" => \"030\",\n \t\t\"unit_code\" => \"E02\",\n \t\t\"name\" => \"KB/TK PL MUNTILAN\"),\n \tarray(\n \t\t\"va_code\" => \"031\",\n \t\t\"unit_code\" => \"E03\",\n \t\t\"name\" => \"SD PL MUNTILAN\"),\n \tarray(\n \t\t\"va_code\" => \"032\",\n \t\t\"unit_code\" => \"E05\",\n \t\t\"name\" => \"SMP PL MANDUNGAN\"),\n \tarray(\n \t\t\"va_code\" => \"033\",\n \t\t\"unit_code\" => \"E06\",\n \t\t\"name\" => \"SMK PL MUNTILAN\"),\n \tarray(\n \t\t\"va_code\" => \"034\",\n \t\t\"unit_code\" => \"E07\",\n \t\t\"name\" => \"SMA PL VAN LITH\"),\n \tarray(\n \t\t\"va_code\" => \"035\",\n \t\t\"unit_code\" => \"E10\",\n \t\t\"name\" => \"ASRAMA PL VAN LITH\"),\n \tarray(\n \t\t\"va_code\" => \"036\",\n \t\t\"unit_code\" => \"I01\",\n \t\t\"name\" => \"KANTOR YPL PERWAKILAN SURAKARTA\"),\n \tarray(\n \t\t\"va_code\" => \"037\",\n \t\t\"unit_code\" => \"I02\",\n \t\t\"name\" => \"SD PL TIMOTIUS\"),\n \tarray(\n \t\t\"va_code\" => \"038\",\n \t\t\"unit_code\" => \"I04\",\n \t\t\"name\" => \"SMP PL BINTANG LAUT\"),\n \tarray(\n \t\t\"va_code\" => \"039\",\n \t\t\"unit_code\" => \"I05\",\n \t\t\"name\" => \"SMA PL YOSEF\"),\n \tarray(\n \t\t\"va_code\" => \"040\",\n \t\t\"unit_code\" => \"I06\",\n \t\t\"name\" => \"KB TK PL VALENTINUS SURAKARTA\"),\n \tarray(\n \t\t\"va_code\" => \"041\",\n \t\t\"unit_code\" => \"I07\",\n \t\t\"name\" => \"SD PL VALENTINUS SURAKARTA\"),\n \tarray(\n \t\t\"va_code\" => \"042\",\n \t\t\"unit_code\" => \"I08\",\n \t\t\"name\" => \"SMP PL VINCENTIUS\"),\n \tarray(\n \t\t\"va_code\" => \"043\",\n \t\t\"unit_code\" => \"I09\",\n \t\t\"name\" => \"SMA PL VINCENTIUS\"),\n \tarray(\n \t\t\"va_code\" => \"044\",\n \t\t\"unit_code\" => \"H02\",\n \t\t\"name\" => \"TK PL DON BOSKO\"),\n \tarray(\n \t\t\"va_code\" => \"045\",\n \t\t\"unit_code\" => \"H03\",\n \t\t\"name\" => \"SD PL DON BOSKO\"),\n \tarray(\n \t\t\"va_code\" => \"046\",\n \t\t\"unit_code\" => \"H04\",\n \t\t\"name\" => \"SMA PL DON BOSKO\"),\n \tarray(\n \t\t\"va_code\" => \"047\",\n \t\t\"unit_code\" => \"J02\",\n \t\t\"name\" => \"TK PL ST. YUSUP\"),\n \tarray(\n \t\t\"va_code\" => \"048\",\n \t\t\"unit_code\" => \"J03\",\n \t\t\"name\" => \"SD PL ST. YUSUP\"),\n \tarray(\n \t\t\"va_code\" => \"049\",\n \t\t\"unit_code\" => \"J04\",\n \t\t\"name\" => \"TK PL XAVERIUS\"),\n \tarray(\n \t\t\"va_code\" => \"050\",\n \t\t\"unit_code\" => \"J05\",\n \t\t\"name\" => \"SD PL XAVERIUS\"),\n \tarray(\n \t\t\"va_code\" => \"051\",\n \t\t\"unit_code\" => \"J09\",\n \t\t\"name\" => \"TK PL TARCISIUS\"),\n \tarray(\n \t\t\"va_code\" => \"052\",\n \t\t\"unit_code\" => \"J10\",\n \t\t\"name\" => \"SD PL TARCISIUS\"),\n \tarray(\n \t\t\"va_code\" => \"053\",\n \t\t\"unit_code\" => \"J12\",\n \t\t\"name\" => \"TK PL BERNARDUS\"),\n \tarray(\n \t\t\"va_code\" => \"054\",\n \t\t\"unit_code\" => \"J13\",\n \t\t\"name\" => \"SD PL BERNARDUS\"),\n \tarray(\n \t\t\"va_code\" => \"055\",\n \t\t\"unit_code\" => \"J18\",\n \t\t\"name\" => \"TK SD PL VINCENTIUS\"),\n \tarray(\n \t\t\"va_code\" => \"056\",\n \t\t\"unit_code\" => \"J20\",\n \t\t\"name\" => \"TK SD PL SERVATIUS\"),\n \tarray(\n \t\t\"va_code\" => \"057\",\n \t\t\"unit_code\" => \"J21\",\n \t\t\"name\" => \"SMP PL DOMENICO SAVIO\"),\n \tarray(\n \t\t\"va_code\" => \"058\",\n \t\t\"unit_code\" => \"J22\",\n \t\t\"name\" => \"SMP PL BONIFASIO\"),\n \tarray(\n \t\t\"va_code\" => \"059\",\n \t\t\"unit_code\" => \"J24\",\n \t\t\"name\" => \"SMA PL ST. LUKAS PEMALANG\"),\n \tarray(\n \t\t\"va_code\" => \"060\",\n \t\t\"unit_code\" => \"J25\",\n \t\t\"name\" => \"TK PL ST. PIUS KARTINI\"),\n \tarray(\n \t\t\"va_code\" => \"061\",\n \t\t\"unit_code\" => \"J26\",\n \t\t\"name\" => \"SMP PL ST. YUSUP MIJEN\"),\n \tarray(\n \t\t\"va_code\" => \"062\",\n \t\t\"unit_code\" => \"J27\",\n \t\t\"name\" => \"SMK PL TARCISIUS 1\"),\n \tarray(\n \t\t\"va_code\" => \"063\",\n \t\t\"unit_code\" => \"K01\",\n \t\t\"name\" => \"KANTOR YPL PERWAKILAN JAKARTA\"),\n \tarray(\n \t\t\"va_code\" => \"064\",\n \t\t\"unit_code\" => \"K02\",\n \t\t\"name\" => \"TK PANGUDI LUHUR JAKARTA\"),\n \tarray(\n \t\t\"va_code\" => \"065\",\n \t\t\"unit_code\" => \"K03\",\n \t\t\"name\" => \"SD PANGUDI LUHUR JAKARTA\"),\n \tarray(\n \t\t\"va_code\" => \"066\",\n \t\t\"unit_code\" => \"K04\",\n \t\t\"name\" => \"SMP PANGUDI LUHUR JAKARTA\"),\n \tarray(\n \t\t\"va_code\" => \"067\",\n \t\t\"unit_code\" => \"K05\",\n \t\t\"name\" => \"SMA PANGUDI LUHUR JAKARTA\"),\n \tarray(\n \t\t\"va_code\" => \"068\",\n \t\t\"unit_code\" => \"K06\",\n \t\t\"name\" => \"SLB/B PANGUDI LUHUR JAKARTA\"),\n \tarray(\n \t\t\"va_code\" => \"069\",\n \t\t\"unit_code\" => \"K08\",\n \t\t\"name\" => \"SMA PANGUDI LUHUR SERVASIUS\"),\n \tarray(\n \t\t\"va_code\" => \"070\",\n \t\t\"unit_code\" => \"K09\",\n \t\t\"name\" => \"TK PANGUDI LUHUR BERNARDUS DELTAMAS\"),\n \tarray(\n \t\t\"va_code\" => \"071\",\n \t\t\"unit_code\" => \"K10\",\n \t\t\"name\" => \"SD PANGUDI LUHUR BERNARDUS DELTAMAS\"),\n \tarray(\n \t\t\"va_code\" => \"072\",\n \t\t\"unit_code\" => \"K11\",\n \t\t\"name\" => \"SMP PANGUDI LUHUR BERNARDUS DELTAMAS\"),\n \tarray(\n \t\t\"va_code\" => \"073\",\n \t\t\"unit_code\" => \"K12\",\n \t\t\"name\" => \"SMA PANGUDI LUHUR BERNARDUS DELTAMAS\"),\n \tarray(\n \t\t\"va_code\" => \"074\",\n \t\t\"unit_code\" => \"L01\",\n \t\t\"name\" => \"KANTOR YPL PERWAKILAN KETAPANG\"),\n \tarray(\n \t\t\"va_code\" => \"075\",\n \t\t\"unit_code\" => \"L02\",\n \t\t\"name\" => \"SD PL YOSEF\"),\n \tarray(\n \t\t\"va_code\" => \"076\",\n \t\t\"unit_code\" => \"L03\",\n \t\t\"name\" => \"SMP PL ALBERTUS\"),\n \tarray(\n \t\t\"va_code\" => \"077\",\n \t\t\"unit_code\" => \"L04\",\n \t\t\"name\" => \"SMA PL YOHANES\"),\n \tarray(\n \t\t\"va_code\" => \"078\",\n \t\t\"unit_code\" => \"L05\",\n \t\t\"name\" => \"PG TK PL ST. MARIA\"),\n \tarray(\n \t\t\"va_code\" => \"079\",\n \t\t\"unit_code\" => \"M02\",\n \t\t\"name\" => \"SD PL JUNGKAL\"),\n \tarray(\n \t\t\"va_code\" => \"080\",\n \t\t\"unit_code\" => \"M03\",\n \t\t\"name\" => \"SD PL SERENGKAH\"),\n \tarray(\n \t\t\"va_code\" => \"081\",\n \t\t\"unit_code\" => \"M04\",\n \t\t\"name\" => \"SD PL PS. MAYANG\"),\n \tarray(\n \t\t\"va_code\" => \"082\",\n \t\t\"unit_code\" => \"M05\",\n \t\t\"name\" => \"SD PL NT PANJANG\"),\n \tarray(\n \t\t\"va_code\" => \"083\",\n \t\t\"unit_code\" => \"M06\",\n \t\t\"name\" => \"SD PL SETIPAYAN\"),\n \tarray(\n \t\t\"va_code\" => \"084\",\n \t\t\"unit_code\" => \"M07\",\n \t\t\"name\" => \"SMP PL TUMBANG TITI\"),\n \tarray(\n \t\t\"va_code\" => \"085\",\n \t\t\"unit_code\" => \"N02\",\n \t\t\"name\" => \"SMP PL TANJUNG\"),\n \tarray(\n \t\t\"va_code\" => \"086\",\n \t\t\"unit_code\" => \"O03\",\n \t\t\"name\" => \"KANTOR YPL PERWAKILAN SUKARAJA\"),\n \tarray(\n \t\t\"va_code\" => \"087\",\n \t\t\"unit_code\" => \"O02\",\n \t\t\"name\" => \"SMA PL SUKARAJA\"),\n \tarray(\n \t\t\"va_code\" => \"088\",\n \t\t\"unit_code\" => \"O01\",\n \t\t\"name\" => \"SMP PL SUKARAJA\"),\n \tarray(\n \t\t\"va_code\" => \"089\",\n \t\t\"unit_code\" => \"P01\",\n \t\t\"name\" => \"KANTOR YPL PUSAT\"),\n \tarray(\n \t\t\"va_code\" => \"090\",\n \t\t\"unit_code\" => \"Q01\",\n \t\t\"name\" => \"KANTOR PENGEMBANGAN SDM\"),\n \tarray(\n \t\t\"va_code\" => \"091\",\n \t\t\"unit_code\" => \"R01\",\n \t\t\"name\" => \"ILP\"),\n \tarray(\n \t\t\"va_code\" => \"092\",\n \t\t\"unit_code\" => \"L06\",\n \t\t\"name\" => \"Asrama WPK\"),\n \tarray(\n \t\t\"va_code\" => \"093\",\n \t\t\"unit_code\" => \"M08\",\n \t\t\"name\" => \"Asrama Vincentius Tanjung\"),\n \tarray(\n \t\t\"va_code\" => \"094\",\n \t\t\"unit_code\" => \"N03\",\n \t\t\"name\" => \"Asrama Sebastianus Tanjung\"),\n \tarray(\n \t\t\"va_code\" => \"095\",\n \t\t\"unit_code\" => \"O04\",\n \t\t\"name\" => \"Asrama Pangudi Luhur Sukaraja\")\n );\n\n SchoolUnits::insert($arr);\n }", "title": "" }, { "docid": "7e7b0f739ae965e181a4e815115d0350", "score": "0.46853834", "text": "function careerfy_vc_jobs_listing()\n{\n global $jobsearch_gdapi_allocation, $jobsearch_plugin_options;\n $jobsearch__options = get_option('jobsearch_plugin_options');\n $sectors_enable_switch = isset($jobsearch_plugin_options['sectors_onoff_switch']) ? $jobsearch_plugin_options['sectors_onoff_switch'] : 500;\n\n $categories = get_terms(array(\n 'taxonomy' => 'sector',\n 'hide_empty' => false,\n ));\n\n $all_locations_type = isset($jobsearch__options['all_locations_type']) ? $jobsearch__options['all_locations_type'] : '';\n\n $cate_array = array(esc_html__(\"Select Sector\", \"careerfy-frame\") => '');\n if (is_array($categories) && sizeof($categories) > 0) {\n foreach ($categories as $category) {\n $cate_array[$category->name] = $category->slug;\n }\n }\n\n $jobsearch_job_cus_fields = get_option(\"jobsearch_custom_field_job\");\n $job_cus_field_arr = array();\n if (isset($jobsearch_job_cus_fields) && !empty($jobsearch_job_cus_fields) && sizeof($jobsearch_job_cus_fields) > 0) {\n foreach ($jobsearch_job_cus_fields as $key => $value) {\n $job_cus_field_arr[$value['label']] = $key;\n }\n }\n\n $job_listsh_parms = array();\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"View\", \"careerfy-frame\"),\n 'param_name' => 'job_view',\n 'value' => array(\n esc_html__(\"Style 1\", \"careerfy-frame\") => 'view-default',\n esc_html__(\"Style 2\", \"careerfy-frame\") => 'view-medium',\n esc_html__(\"Style 3\", \"careerfy-frame\") => 'view-listing2',\n esc_html__(\"Style 4\", \"careerfy-frame\") => 'view-grid2',\n esc_html__(\"Style 5\", \"careerfy-frame\") => 'view-medium2',\n esc_html__(\"Style 6\", \"careerfy-frame\") => 'view-grid',\n esc_html__(\"Style 7\", \"careerfy-frame\") => 'view-medium3',\n esc_html__(\"Style 8\", \"careerfy-frame\") => 'view-grid3',\n esc_html__(\"Style 9\", \"careerfy-frame\") => 'view-grid-4',\n ),\n 'description' => esc_html__(\"Select jobs listing view.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sector\", \"careerfy-frame\"),\n 'param_name' => 'job_cat',\n 'value' => $cate_array,\n 'description' => esc_html__(\"Select Sector.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Job Founds with display counts\", \"careerfy-frame\"),\n 'param_name' => 'display_per_page',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Display the per page jobs count at top of the listing.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Featured Only\", \"careerfy-frame\"),\n 'param_name' => 'featured_only',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"If you set Featured Only 'Yes' then only Featured jobs will show.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Employer Base Jobs\", \"careerfy-frame\"),\n 'param_name' => 'jobs_emp_base',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Show only Selected Employer Jobs.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Employer Base Jobs\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Employer ID\", \"careerfy-frame\"),\n 'param_name' => 'jobs_emp_base_id',\n 'value' => '',\n 'description' => esc_html__(\"Put employer ID here.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Employer Base Jobs\", \"careerfy-frame\"),\n );\n if ($all_locations_type == 'api') {\n\n $api_contries_list = array();\n if (class_exists('JobSearch_plugin')) {\n $api_contries_list = $jobsearch_gdapi_allocation::get_countries();\n }\n if (!empty($api_contries_list)) {\n foreach ($api_contries_list as $api_cntry_key => $api_cntry_val) {\n if (isset($api_cntry_val->code)) {\n $contry_arr_list[$api_cntry_val->code] = $api_cntry_val->name;\n }\n }\n }\n\n// $contry_arr_list = array('' => esc_html__(\"Select Country\", \"careerfy-frame\"));\n// if (!empty($api_contries_list)) {\n// foreach ($api_contries_list as $api_cntry_key => $api_cntry_val) {\n// if (isset($api_cntry_val['code'])) {\n// $contry_arr_list[$api_cntry_val['code']] = $api_cntry_val['name'];\n// }\n// }\n// }\n\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Selected Location Jobs\", \"careerfy-frame\"),\n 'param_name' => 'selct_loc_jobs',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Show only Selected Location Jobs.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Location Based Jobs\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'jobsearch_gapi_locs',\n 'heading' => esc_html__(\"Select Location\", \"careerfy-frame\"),\n 'param_name' => 'selct_gapiloc_str',\n 'api_contry_list' => $contry_arr_list,\n 'value' => '',\n 'description' => '',\n 'group' => esc_html__(\"Location Based Jobs\", \"careerfy-frame\"),\n );\n }\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Filters\", \"careerfy-frame\"),\n 'param_name' => 'job_filters',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Jobs searching filters switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Filters Count\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_count',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Show result counts in front of every filter.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Filters Sort by\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_sortby',\n 'value' => array(\n esc_html__(\"Default\", \"careerfy-frame\") => 'default',\n esc_html__(\"Ascending\", \"careerfy-frame\") => 'asc',\n esc_html__(\"Descending\", \"careerfy-frame\") => 'desc',\n esc_html__(\"Alphabetical\", \"careerfy-frame\") => 'alpha',\n esc_html__(\"Highest Count\", \"careerfy-frame\") => 'count',\n ),\n 'description' => esc_html__(\"Show result counts in front of every filter.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Keyword Search\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_keyword',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Jobs filters 'Keyword Search' switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Locations\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_loc',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Jobs searching filters 'Location' switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Locations Filter Collapse\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_loc_collapse',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => '',\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Locations Filter Style\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_loc_view',\n 'value' => array(\n esc_html__(\"Checkbox List\", \"careerfy-frame\") => 'checkboxes',\n esc_html__(\"Dropdown Fields\", \"careerfy-frame\") => 'dropdowns',\n esc_html__(\"Input Field\", \"careerfy-frame\") => 'input',\n ),\n 'description' => '',\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Date Posted\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_date',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Jobs searching filters 'Date Posted' switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Date Posted Filter Collapse\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_date_collapse',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => '',\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Job Type\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_type',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Jobs searching filters 'Job Type' switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Job Type Filter Collapse\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_type_collapse',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => '',\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sector\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_sector',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Jobs searching filters 'Sector' switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sector Filter Collapse\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_sector_collapse',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => '',\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Top Map\", \"careerfy-frame\"),\n 'param_name' => 'job_top_map',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Jobs top map switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Map Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Map Height\", \"careerfy-frame\"),\n 'param_name' => 'job_top_map_height',\n 'value' => '450',\n 'description' => esc_html__(\"Jobs top map height.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Map Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Map Zoom\", \"careerfy-frame\"),\n 'param_name' => 'job_top_map_zoom',\n 'value' => '8',\n 'description' => esc_html__(\"Jobs top map zoom.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Map Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Featured Jobs on Top\", \"careerfy-frame\"),\n 'param_name' => 'job_feat_jobs_top',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Featured jobs will display on top of listing.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Featured Jobs\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Number of Featured jobs\", \"careerfy-frame\"),\n 'param_name' => 'num_of_feat_jobs',\n 'value' => '5',\n 'description' => '',\n 'group' => esc_html__(\"Featured Jobs\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Top Search Bar\", \"careerfy-frame\"),\n 'param_name' => 'job_top_search',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Jobs top search bar switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Top Search Style\", \"careerfy-frame\"),\n 'param_name' => 'job_top_search_view',\n 'value' => array(\n esc_html__(\"Simple\", \"careerfy-frame\") => 'simple',\n esc_html__(\"Advance Search\", \"careerfy-frame\") => 'advance',\n ),\n 'description' => esc_html__(\"Jobs top search style.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Top Search Radius\", \"careerfy-frame\"),\n 'param_name' => 'job_top_search_radius',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'default' => 'yes',\n 'description' => esc_html__(\"Enable/Disable top search radius.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Job Title, Keywords, or Phrase\", \"careerfy-frame\"),\n 'param_name' => 'top_search_title',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Enable/Disable search keyword field.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Location\", \"careerfy-frame\"),\n 'param_name' => 'top_search_location',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Enable/Disable location field.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n if ($sectors_enable_switch == 'on') {\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sector\", \"careerfy-frame\"),\n 'param_name' => 'top_search_sector',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Enable/Disable Sector Dropdown field.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n }\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"AutoFill Search Box\", \"careerfy-frame\"),\n 'param_name' => 'top_search_autofill',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Enable/Disable autofill in search keyword field.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sort by Fields\", \"careerfy-frame\"),\n 'param_name' => 'job_sort_by',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Results search sorting section switch. When choosing option yes then jobs display counts will show.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'checkbox',\n 'heading' => esc_html__(\"Locations in listing\", \"careerfy-frame\"),\n 'param_name' => 'job_loc_listing',\n 'value' => array(\n esc_html__(\"Country\", \"careerfy-frame\") => 'country',\n esc_html__(\"State\", \"careerfy-frame\") => 'state',\n esc_html__(\"City\", \"careerfy-frame\") => 'city',\n ),\n 'std' => 'country,city',\n 'description' => esc_html__(\"Select which type of location in listing. If nothing select then full address will display.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"RSS Feed\", \"careerfy-frame\"),\n 'param_name' => 'job_rss_feed',\n 'dependency' => array(\n 'element' => 'job_sort_by',\n 'value' => 'yes',\n ),\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => ''\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Excerpt Length\", \"careerfy-frame\"),\n 'param_name' => 'job_excerpt',\n 'value' => '20',\n 'description' => esc_html__(\"Set the number of words you want to show for excerpt.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Order\", \"careerfy-frame\"),\n 'param_name' => 'job_order',\n 'value' => array(\n esc_html__(\"Descending\", \"careerfy-frame\") => 'DESC',\n esc_html__(\"Ascending\", \"careerfy-frame\") => 'ASC',\n ),\n 'description' => esc_html__(\"Choose job list items order.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Orderby\", \"careerfy-frame\"),\n 'param_name' => 'job_orderby',\n 'value' => array(\n esc_html__(\"Date\", \"careerfy-frame\") => 'date',\n esc_html__(\"Title\", \"careerfy-frame\") => 'title',\n ),\n 'description' => esc_html__(\"Choose job list items orderby.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Pagination\", \"careerfy-frame\"),\n 'param_name' => 'job_pagination',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Choose yes if you want to show pagination for job items.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Jobs per Page\", \"careerfy-frame\"),\n 'param_name' => 'job_per_page',\n 'value' => '10',\n 'description' => esc_html__(\"Set number that how much jobs you want to show per page. Leave it blank for all jobs on a single page.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Quick Apply job\", \"careerfy-frame\"),\n 'param_name' => 'quick_apply_job',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'off',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'on',\n ),\n 'description' => esc_html__(\"By setting this option to yes, when user will click on job title or image, pop-up will be appear from the side.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Custom Fields\", \"careerfy-frame\"),\n 'param_name' => 'job_custom_fields_switch',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Enable / Disable job custom fields\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Custom Fields\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'checkbox',\n 'heading' => esc_html__(\"Select Fields\", \"careerfy-frame\"),\n 'param_name' => 'job_elem_custom_fields',\n 'value' => $job_cus_field_arr,\n 'description' => '',\n 'group' => esc_html__(\"Custom Fields\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Job Deadline\", \"careerfy-frame\"),\n 'param_name' => 'job_deadline_switch',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'Yes',\n ),\n 'description' => esc_html__(\"Enable / Disable jobs deadline date in listings\", \"careerfy-frame\"),\n );\n\n //\n $attributes = array(\n \"name\" => esc_html__(\"Jobs Listing\", \"careerfy-frame\"),\n \"base\" => \"jobsearch_job_shortcode\",\n \"class\" => \"\",\n \"category\" => esc_html__(\"Wp JobSearch\", \"careerfy-frame\"),\n \"params\" => apply_filters('jobsearch_job_listings_vcsh_params', $job_listsh_parms)\n );\n\n if (function_exists('vc_map') && class_exists('JobSearch_plugin')) {\n vc_map($attributes);\n }\n}", "title": "" }, { "docid": "67d62cd1aceea42aa34200005e3a0d32", "score": "0.4678443", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('AlmaBundle:Ospite')->findAll();\n $formOspiteVoceSpesa = $this->createOspiteVoceSpesaForm(new OspiteVoceSpesa());\n\n $tipiVociSpesa = $em->getRepository('AlmaBundle:TipoVoceSpesa')->findAll();\n $serializer = $this->container->get('jms_serializer');\n $tipiVociSpesaJson = $serializer->serialize($tipiVociSpesa, 'json');\n\n return array(\n 'entities' => $entities,\n 'voce_spesa_form'=>$formOspiteVoceSpesa->createView(),\n 'tipi_voci_spesa' =>$tipiVociSpesaJson\n );\n }", "title": "" }, { "docid": "aa1d9bb0cc236e709c035f2ff4659f7c", "score": "0.4678297", "text": "public function index()\n {\n $categories = JobCategory::all();\n }", "title": "" }, { "docid": "699b0d8d9c6bc558dbf16d87948f25a1", "score": "0.4670323", "text": "public function jobs() {\n\n\t\t$validator = Validator::make(Input::all(), array(\n\t\t\t'keyword' => 'required|min:3|alpha_dash'\n\t\t));\n\n\n\t\tif ($validator->fails()) {\n\t\t\t\n\t\t\treturn View::make('jobs', array(\n\t\t\t\t'jobs' => DB::select(\"EXEC spJobSearch_Select ''\"),\n\t\t\t\t'recommended' => self::getRecommendedJobs()\n\t\t\t));\t\n\t\t}\n\n\t\treturn View::make('jobs', array(\n\t\t\t// Keyword shouldn't be able to perform SQL injection, as ' and ; are not in the alpha_dash set.\n\t\t\t'jobs' => DB::select(\"EXEC spJobSearch_Select ?\", array(Input::get('keyword'))),\n\t\t\t'recommended' => self::getRecommendedJobs()\n\t\t));\n\t}", "title": "" }, { "docid": "553b78525bf6219c19d738fcd27d890c", "score": "0.46634766", "text": "public static function getAll() {\n $buildings = current(RoomUsageResourceCategory::findByName('Gebäude'))->objects;\n return $buildings->orderBy('priority');\n }", "title": "" }, { "docid": "0af61c5f42913534c536b5d1a3fc7d02", "score": "0.46628788", "text": "public function show(Job $job)\n {\n //\n }", "title": "" }, { "docid": "0af61c5f42913534c536b5d1a3fc7d02", "score": "0.46628788", "text": "public function show(Job $job)\n {\n //\n }", "title": "" }, { "docid": "6b3fa18ae66011124a1f2a1e38cb5ff4", "score": "0.46571678", "text": "public function listAction(){\n\n\t\t$jobRepo\t= $this->getDoctrine()->getRepository('AppBundle:Job');\n\t\t$jobs = $jobRepo->findAllSince(new \\DateTime('1 month ago'));\n\t\t\n\t\tdump($jobs);\n\n\t\t\n\t\treturn $this->render('jobs/list.html.twig', array('jobs' => $jobs));\t\n\n\t}", "title": "" }, { "docid": "2ac915b2b7c8e408992605336fe1d994", "score": "0.46563333", "text": "public function actionIndex()\n {\n $model = new KitchenBinRequest();\n $searchModel = new KitchenBinRequestSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "f6128aa9f043250fa42d29e5f1171255", "score": "0.46549037", "text": "public function listServiceEngines() { \n $params = array ();\n $params ['param'] = 'all'; \n \n $resXML = $this->makeRequest('com.cisco.unicorn.ui.ListApiServlet', 'getSEs', $params);\n $attribs = $resXML->record->attributes();\n \n $res=array();\n foreach ($attribs as $a => $b) {\n $res[$a]=(string)$b;\n } \n \n return $res;\n }", "title": "" }, { "docid": "1360ca6305321466efee9155ab637633", "score": "0.46541673", "text": "function job_basics($ht,$job,$vdn=NULL){\n $ht->open('dl',array('class'=>'user','style'=>'float: left;'));\n foreach($this->job_cols as $ck){\n if(is_null($job[$ck])) continue;\n\n if(preg_match('/^(dig_|chk_)/',$ck) and !is_null($vdn)){\n\tif($job[substr($ck,0,4) . 'user'] != $vdn) continue;\n }\n $ht->open('dt');\n if(preg_match('/^(dig_|chk_)/',$ck)){\n\t$ht->add($this->txp->t('col-' . substr($ck,0,3))\n\t\t . ' ' . $this->txp->t('col-' . substr($ck,4)));\n } else $ht->add($this->txp->t('col-' . $ck));\n $ht->close();\n \n $ht->open('dd');\n if(substr($ck,0,3)=='key'){\n\t$ht->add($this->keys[(int)substr($ck,3)][$job[$ck]]);\n } else if($ck=='status'){\n\t$ht->add($this->txp->t('st-' . $job[$ck]));\n } else if(substr($ck,-4)=='user'){\n\t$ht->a($this->users[$job[$ck]],array('site'=>'users','vdn'=>$job[$ck]));\n } else if(substr($ck,-4)=='file'){\n\t$ht->page($this->dir_upload . $job[$ck],$job[$ck]);\n } else $ht->add($job[$ck]);\n $ht->close();\n }\n $ht->close();\n }", "title": "" }, { "docid": "5167a23774f425dbeed76c3e306b9eb2", "score": "0.46505007", "text": "public function show(Job $job)\n {\n //\n }", "title": "" }, { "docid": "a4ed52e8904a3d0f50b1011ba65af675", "score": "0.46498144", "text": "public function list()\n {\n return \\App\\Compromisso::all();\n }", "title": "" }, { "docid": "1fd31b40979eebf7084f5ea1c9425ef2", "score": "0.46482146", "text": "public function getJobResults(TripalRemoteJob $job) {\n self::pullFiles($job);\n }", "title": "" }, { "docid": "8d9ec2e99e4569ef59cf64a31bf87ea1", "score": "0.46445084", "text": "public function index()\n {\n $job_list = JobType::select('id','name')->orderByDesc('id')->get();\n\n if(is_null($job_list)){\n return response()->json(['msg' => 'faild'],400);\n }\n return response()->json($job_list,200);\n }", "title": "" }, { "docid": "ad6e31ef8ac72b1015a7189a04918671", "score": "0.4643317", "text": "public function run()\n {\n \\memento\\Job::create([\n 'name' => 'Kiné'\n ]);\n \\memento\\Job::create([\n 'name' => 'Ostéo'\n ]);\n \\memento\\Job::create([\n 'name' => 'Coiffeur'\n ]);\n \\memento\\Job::create([\n 'name' => 'Médecin'\n ]);\n }", "title": "" }, { "docid": "c5bea5187899d79d41b1ff38ccd265a3", "score": "0.46431515", "text": "public function index()\n {\n $query=WelfareStage::all([\"name\", \"abbreviation\",\"id\"]);\n return response($query->toJson(),200);\n }", "title": "" }, { "docid": "826aa3c8509a8e9586f411f19519d2a3", "score": "0.4641752", "text": "public function showAlgorithms()\n {\n if ($this->argv[1] == '--help') {\n echo '====================' . PHP_EOL\n . 'The List of Algorithms: ' . PHP_EOL;\n\n foreach ($this->availableAlgorithms() as $key => $val) {\n echo $key . ' => ' . $val . PHP_EOL;\n }\n\n die('====================');\n }\n }", "title": "" }, { "docid": "975119aa0dc020e75101e2982c6b5d2a", "score": "0.4640703", "text": "public function actionIndex()\n {\n $searchModel = new TblonSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\t\t // لم يتم تصفية العهده\n $dataProvider->query->andWhere(['or', ['Finish'=> '0'],]) ->orderBy(['ID' => SORT_DESC ]);\n \n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "8ca6927a6fdd7a5bb144c6c0d81a4726", "score": "0.46325344", "text": "public function actionIndex()\n {\n $searchModel = new JobItemSearch();\n $searchModel->user_id = Yii::$app->request->get('user_id');\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "ef40a20e636339c719976a2012938796", "score": "0.46294928", "text": "public function listSV() {\n $role = $this->ssInit();\n $orderby = isset($_GET['orderby'])?$_GET['orderby']:NULL;\n $totalRecord = $this->SVService->totalRecord();\n $Pagination = new Pagination();\n $limit = $Pagination->limit;\n $start = $Pagination->start();\n $totalPages = $Pagination->totalPages($totalRecord);\n $data = $this->SVService->getAll($orderby, $start, $limit);\n $KHList = $this->khoahocService->getAll('id',0,300);\n $CTList = $this->chuongtrinhService->getAll('id',0,300);\n include 'view/sinhvien/list.php';\n }", "title": "" }, { "docid": "f3d5babe04dbf4d053b3bc4a6d72c7ad", "score": "0.46266216", "text": "public function all_active_jobs()\n {\n $sql = General_model::view_jobs();\n \n $count['count'] = count($sql); \n \n return view('adminpanel.jobs.all_active_jobs',$count,compact('sql')); \n }", "title": "" }, { "docid": "df9a36b9d161a592b26f2716df2a00a4", "score": "0.46254578", "text": "public function index() {\n // get jobs\n $jobs = Job::all();\n return ApiResource::collection($jobs);\n }", "title": "" }, { "docid": "04b1e1359b5521e6b3976d35b1fb26a7", "score": "0.46214196", "text": "function get_job_names() { \n try {\n //create or open the database\n $dbh = new PDO('sqlite:sql/union_wage.sqlite');\n \t}\n catch(Exception $e) {\n die($e->GetMessage());\n }\n \n $sql = \"SELECT uid,job_title_normalized FROM job_title\";\n\n\t$html_output = \"<select id=\\\"job_title\\\">\\n\";\n\t//to prevent duplicate positions\n\t//instead of searching against the whole array, use last job_title\n\t$last_job_title = \"\";\n\tforeach ($dbh->query($sql) as $row) {\n\t if (!strcmp($last_job_title, $row['job_title_normalized'])) {\n\t \tcontinue;\n\t }\n\t $last_job_title = $row['job_title_normalized'];\n \t$html_output .= sprintf(\"<option value=\\\"%d\\\">%s</option>\\n\", \n\t\t\t\t\t\t$row['uid'], $row['job_title_normalized']);\n }\n $html_output .= \"</select>\";\n\techo $html_output; \n }", "title": "" }, { "docid": "4bdfb6e5ab5dfd797a3aaa616d1d1ab2", "score": "0.4620505", "text": "public function index(Job $job)\n {\n return $this->showAll($job->users);\n }", "title": "" }, { "docid": "6eb53440ab518d0586778271364d4ca1", "score": "0.46159342", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n $entities = $em->getRepository('CiviCoopVragenboomBundle:Ruimte')->findAllOrderByNaam();\n\n return array(\n 'entities' => $entities,\n );\n }", "title": "" }, { "docid": "848bfdf19b5994a1c228bbd6e9576d36", "score": "0.461479", "text": "public function frozen_jobs()\r\n {\r\n \t\ttry\r\n\t\t{\r\n\t\t\t\r\n\t\t\t$this->left_menu\t=\t12;\r\n\t\t\t$this->data['breadcrumb'] = array(t('Job You Got')=>'');\t\r\n\t\t\t$this->data['pathtoclass']=$this->pathtoclass;\r\n\t\t\t\r\n\t\t\t$this->data['i_tradesman_id'] = $this->user_id;\r\n\t\t\tob_start();\r\n\t\t\t$this->frozen_jobs_pagination_ajax();\r\n\t\t\t$job_contents = ob_get_contents();\r\n\t\t\tob_end_clean();\r\n\t\t\t//var_dump($job_contents);exit;\r\n\t\t\t$this->data['job_contents'] = $job_contents;\r\n\t\t\t$this->render();\r\n\t\t}\r\n\t\tcatch(Exception $err_obj)\r\n\t\t{\r\n\t\t\tshow_error($err_obj->getMessage());\r\n\t\t}\t\r\n }", "title": "" }, { "docid": "95a8e4072f8525eee09dbf5232db049c", "score": "0.46143734", "text": "private function getJobsHeader()\n\t{\n\t\treturn($this->getAscDescHeader(CClientLister::ORDERBY_JOBS, 'I18N_jobs'));\n\t}", "title": "" }, { "docid": "d03c3e41f732555cb82fcee4f5c74f8b", "score": "0.46142232", "text": "public function getEncodings(): array;", "title": "" }, { "docid": "5481b0aefe5f3ce5fc7b87d99b6e34e5", "score": "0.46075702", "text": "public function getRunningJobs() {\n $jobs = array();\n // TODO: impelement this function.\n return $jobs;\n }", "title": "" }, { "docid": "410603a569020fece14a380486d1c13a", "score": "0.46064603", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $commands = $em->getRepository('mi11VitrineBundle:Command')->findAll();\n\n return $this->render('command/index.html.twig', array(\n 'commands' => $commands,\n ));\n }", "title": "" }, { "docid": "dbcd73f20c448e149efd23d2f828acb8", "score": "0.46044147", "text": "public function actionJob()\n {\n // echo $token;\n $jobParams = [\n 'kindergartenIds' => 1,\n 'startDate' => '2015-12-28',\n 'endDate' => '2015-12-31'\n ];\n Yii::$app->resque->enqueueJob('app\\jobs\\statistics\\ChildPropertyJob', $jobParams);\n }", "title": "" }, { "docid": "d47f2a8ac1cdd790beeb651ad0bedeb1", "score": "0.46020094", "text": "function selectJobs(){\n\tglobal $db;\n\tglobal $database_name;\n\tglobal $database_table;\n\t$sql = \"SELECT * FROM `$database_name`.`$database_table`\";\n\n\t$query = $db->query($sql);\n\t$r = $query->fetchAll(PDO::FETCH_OBJ); //fetch(PDO::FETCH_BOTH);\n\t//return $r[\"job_title\"];\n\t//print_r(count($r));\n\n\t$counter = 0;\n\n\tforeach ($r as $value){\n\t\t$job_picture = $value->job_picture;\n\t\t$job_title = $value->job_title;//\"Praktikum Fahrwerk\";\n\t\t$job_type = $value->job_type;\n\t\t$job_description = $value->job_description;\n\t\t$job_profile = $value->job_profile;\n\t\t$job_ref = $value->V_ID;\n\t\t$job_start = $value->job_start;\n\t\t$job_duration = $value->job_duration;\n\n\t\t$counter++;\n\n\n\t\tdesignJob($job_picture, $job_title, $job_type, $job_description, $job_profile, $job_ref, $job_start, $job_duration, $counter);\n\t\tif ($counter==3) {\n\t\t\t$counter=0;\n\t\t}\n\t}\n}", "title": "" }, { "docid": "0f59d33ec323e206cd7399a8e3fff185", "score": "0.46011198", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DocBundle:Job')->findBy([], array('dateStart' => 'desc'));\n\n dump($entities);\n\n $_SESSION['jobIdsDetailNavigation'] = $this->get('doc.navigation')->getOnlyIds($entities);\n\n $isAdmin = $this->get('doc.utils')->isAdmin($this->container->get('request'));\n\n return $this->render('DocBundle:Job:index.html.twig', array(\n 'entities' => $entities,\n \"isAdmin\" => $isAdmin\n ));\n }", "title": "" }, { "docid": "7ccfa551d124293bc81764dec8dbabb0", "score": "0.45993772", "text": "public function index()\n {\n $data = Job::first()->paginate(10);\n return view('jobs.index', compact('data'))\n ->with('i', (request()->input('page', 1) - 1) * 10);\n }", "title": "" }, { "docid": "8119f32d928e613cfa00aeff48e09477", "score": "0.4596398", "text": "public function listAll() {\r\n\t }", "title": "" }, { "docid": "490ceaa9a40006c5156ab54d5c75a3e8", "score": "0.45923072", "text": "function careerfy_vc_simple_jobs_listing_multi()\n{\n global $jobsearch_gdapi_allocation;\n\n $jobsearch__options = get_option('jobsearch_plugin_options');\n $categories = get_terms(array(\n 'taxonomy' => 'sector',\n 'hide_empty' => false,\n ));\n $all_locations_type = isset($jobsearch__options['all_locations_type']) ? $jobsearch__options['all_locations_type'] : '';\n $cate_array = array(esc_html__(\"Select Sector\", \"careerfy-frame\") => '');\n if (is_array($categories) && sizeof($categories) > 0) {\n foreach ($categories as $category) {\n $cate_array[$category->name] = $category->slug;\n }\n }\n\n $job_listsh_parms = array();\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sector\", \"careerfy-frame\"),\n 'param_name' => 'job_cat',\n 'value' => $cate_array,\n 'description' => esc_html__(\"Select Sector.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Order\", \"careerfy-frame\"),\n 'param_name' => 'job_order',\n 'value' => array(\n esc_html__(\"Descending\", \"careerfy-frame\") => 'DESC',\n esc_html__(\"Ascending\", \"careerfy-frame\") => 'ASC',\n ),\n 'description' => esc_html__(\"Order dropdown will work for featured jobs only\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Orderby\", \"careerfy-frame\"),\n 'param_name' => 'job_orderby',\n 'value' => array(\n esc_html__(\"Date\", \"careerfy-frame\") => 'date',\n esc_html__(\"Title\", \"careerfy-frame\") => 'title',\n ),\n 'description' => esc_html__(\"Choose job list items orderby.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Number of Jobs\", \"careerfy-frame\"),\n 'param_name' => 'job_per_page',\n 'value' => '10',\n 'description' => esc_html__(\"Set number that how many jobs you want to show.\", \"careerfy-frame\")\n );\n\n //\n $attributes = array(\n \"name\" => esc_html__(\"Simple Jobs Listing Multi\", \"careerfy-frame\"),\n \"base\" => \"jobsearch_simple_jobs_listing_multi\",\n \"class\" => \"\",\n \"category\" => esc_html__(\"Wp JobSearch\", \"careerfy-frame\"),\n \"params\" => $job_listsh_parms,\n );\n\n if (function_exists('vc_map') && class_exists('JobSearch_plugin')) {\n vc_map($attributes);\n }\n}", "title": "" }, { "docid": "aa6da9dcecf7094a7f490a987574c6e0", "score": "0.45906758", "text": "public function status()\n\t{\n\t\t$files = array();\n\n\t\t$output = $this->run('status --porcelain');\n\t\tif(empty($output))\n\t\t{\n\t\t\treturn $files;\n\t\t}\n\n\t\tforeach(explode('\\n', $output) as $n => $line)\n\t\t{\n\t\t\tlist($status, $file) = explode(' ', trim($line), 2);\n\t\t\t$status = trim($status);\n\t\t\t$file = trim($file);\n\t\t\tif($file != '')\n\t\t\t{\n\t\t\t\t$files[$file] = $status;\n\t\t\t}\n\t\t}\n\t\treturn $files;\n\t}", "title": "" }, { "docid": "ac59a388095385c557823c21a9b5418e", "score": "0.45892137", "text": "function getMechanicalJobs() {\n\n $this->db->select('*');\n $this->db->from('s_jobreferencemanual');\n $this->db->where('isActive',1);\n $this->db->order_by('JobTask');\n $mechanicalJobs = $this->db->get();\n return $mechanicalJobs->result_array();\n }", "title": "" }, { "docid": "23ae4e857e8d56bdba5d8a39b5253b41", "score": "0.45888776", "text": "function resetJobsList() {\n $this->view->title = 'එක්සත් අවමංගල්‍යාධාර සමිතිය';\n $this->model->resetTempReleased();\n $this->view->jobsList = $this->model->searchJobs(0);\n $this->view->funJobsList = $this->model->searchJobsFunaral(0);\n $this->view->render('awamangala/jobs'); //sending paramiters to View() at lib/view.php\n }", "title": "" }, { "docid": "50c150a8e89ab993b80043c3bb612d0f", "score": "0.4587569", "text": "public function getJobs() {\n return $this->_getJobs();\n }", "title": "" }, { "docid": "b9b1dff121837a6442b6ecde0c116fb9", "score": "0.45815822", "text": "public function run()\n {\n $activity_branches = [\n 'Alimentos e Bebidas',\n 'Arte e Antiguidades',\n 'Artigos Religiosos',\n 'Assinaturas e Revistas',\n 'Automóveis e Veículos',\n 'Bebês e Cia',\n 'Blu-Ray',\n 'Brindes / Materiais Promocionais',\n 'Brinquedos e Games',\n 'Casa e Decoração',\n 'CDs',\n 'Colecionáveis',\n 'Compras Coletivas',\n 'Construção e Ferramentas',\n 'Cosméticos e Perfumaria',\n 'Cursos e Educação',\n 'Discos de Vinil',\n 'DVDs',\n 'Eletrodomésticos',\n 'Eletrônicos',\n 'Emissoras de Rádio',\n 'Emissoras de Televisão',\n 'Empregos',\n 'Empresas de Telemarketing',\n 'Esporte e Lazer',\n 'Fitas K7 Gravadas',\n 'Flores, Cestas e Presentes',\n 'Fotografia',\n 'HD-DVD',\n 'Igrejas / Templos / Instituições Religiosas',\n 'Indústria, Comércio e Negócios',\n 'Infláveis Promocionais',\n 'Informática',\n 'Ingressos',\n 'Instrumentos Musicais',\n 'Joalheria',\n 'Lazer',\n 'LD',\n 'Livros',\n 'MD',\n 'Moda e Acessórios',\n 'Motéis',\n 'Música Digital',\n 'Natal',\n 'Negócios e Oportunidades',\n 'Outros Serviços',\n 'Outros Serviços de Avaliação',\n 'Papelaria e Escritório',\n 'Páscoa',\n 'Pet Shop',\n 'Saúde',\n 'Serviço Advocaticios',\n 'Serviço de Distribuição de Jornais / Revistas',\n 'Serviços Administrativos',\n 'Serviços Artísticos',\n 'Serviços de Abatedouros / Matadouros',\n 'Serviços de Aeroportos',\n 'Serviços de Agências',\n 'Serviços de Aluguel / Locação',\n 'Serviços de Armazenagem',\n 'Serviços de Assessorias',\n 'Serviços de Assistência Técnica / Instalações',\n 'Serviços de Associações',\n 'Serviços de Bancos de Sangue',\n 'Serviços de Bibliotecas',\n 'Serviços de Cartórios',\n 'Serviços de Casas Lotéricas',\n 'Serviços de Confecções',\n 'Serviços de Consórcios',\n 'Serviços de Consultorias',\n 'Serviços de Cooperativas',\n 'Serviços de Despachante',\n 'Serviços de Engenharia',\n 'Serviços de Estacionamentos',\n 'Serviços de Estaleiros',\n 'Serviços de Exportação / Importação',\n 'Serviços de Geólogos',\n 'Serviços de joalheiros',\n 'Serviços de Leiloeiros',\n 'Serviços de limpeza',\n 'Serviços de Loja de Conveniência',\n 'Serviços de Mão de Obra',\n 'Serviços de Órgão Públicos',\n 'Serviços de Pesquisas',\n 'Serviços de Portos',\n 'Serviços de Saúde / Bem Estar',\n 'Serviços de Seguradoras',\n 'Serviços de Segurança',\n 'Serviços de Sinalização',\n 'Serviços de Sindicatos / Federações',\n 'Serviços de Traduções',\n 'Serviços de Transporte',\n 'Serviços de Utilidade Pública',\n 'Serviços em Agricultura / Pecuária / Piscicultura',\n 'Serviços em Alimentação',\n 'Serviços em Arte',\n 'Serviços em Cine / Foto / Som',\n 'Serviços em Comunicação',\n 'Serviços em Construção',\n 'Serviços em Ecologia / Meio Ambiente',\n 'Serviços em Eletroeletrônica / Metal Mecânica',\n 'Serviços em Festas / Eventos',\n 'Serviços em Informática',\n 'Serviços em Internet',\n 'Serviços em Jóias / Relógios / Óticas',\n 'Serviços em Telefonia',\n 'Serviços em Veículos',\n 'Serviços Esotéricos / Místicos',\n 'Serviços Financeiros',\n 'Serviços Funerários',\n 'Serviços Gerais',\n 'Serviços Gráficos / Editoriais',\n 'Serviços para Animais',\n 'Serviços para Deficientes',\n 'Serviços para Escritórios',\n 'Serviços para Roupas',\n 'Serviços Socias / Assistenciais',\n 'Sex Shop',\n 'Shopping Centers',\n 'Tabacaria',\n 'Tarifas Bancárias',\n 'Tarifas Telefônicas',\n 'Telefonia',\n 'Turismo',\n ];\n\n foreach($activity_branches as $activity_branch):\n $this->command->info('Inserindo ramo de atividade: '. $activity_branch);\n \\Urameshibr\\Models\\ActivityBranch::create(['name' => $activity_branch]);\n endforeach;\n }", "title": "" } ]
182f8f89f03ca13569de1c1f81862b93
A method to determine whether or not an IP address is valid. For our purposes, valid means a dotted quad as [0255].[0255].[0255].[0255] We are not checking ARIN to determine whether or not the IP is actually allocated.
[ { "docid": "c4385c6f188f32a03f1acb454a501e1e", "score": "0.6435771", "text": "public function isValidHostAddr($ipAddr) {\r\n /* Check for null address */\r\n if (is_null($ipAddr) || $ipAddr == '') {\r\n $this->debug('isValidHostAddr() has a null IP address.');\r\n $this->setError(self::$NQT_INVALID_ADDR);\r\n return false;\r\n }\r\n \r\n /* Check for valid dotted-quad format */\r\n if (!preg_match('/^[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}$/', $ipAddr)) {\r\n $this->debug('isValidHostAddr() has an invalid IP address (' . $ipAddr . ')');\r\n $this->setError(self::$NQT_INVALID_ADDR);\r\n return false;\r\n }\r\n \r\n return true;\r\n }", "title": "" } ]
[ { "docid": "e8bf09138edb9b39e1abf74c23d5fe22", "score": "0.7697185", "text": "function valid_ip($ip)\n\t{\n\t\t$ip_segments = explode('.', $ip);\n\n\t\t// Always 4 segments needed\n\t\tif (count($ip_segments) != 4)\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\t// IP can not start with 0\n\t\tif ($ip_segments[0][0] == '0')\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\t// Check each segment\n\t\tforeach ($ip_segments as $segment)\n\t\t{\n\t\t\t// IP segments must be digits and can not be\n\t\t\t// longer than 3 digits or greater then 255\n\t\t\tif ($segment == '' OR preg_match(\"/[^0-9]/\", $segment) OR $segment > 255 OR strlen($segment) > 3)\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "3fb1656b25b46281c0c18a1a60a5d9a3", "score": "0.745716", "text": "public function valid() {\n return filter_var($this->address, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) !== false;\n }", "title": "" }, { "docid": "a160b0dc51051faaec0449b3be3794b7", "score": "0.74172086", "text": "private function is_from_valid_ip() {\n\t\t$my_ip = getenv( 'REMOTE_ADDR' );\n\t\t\n\t\t// Check if we are in testing mode, and get list of valid IPs\n\t\t//if ( Mage::getStoreConfig( 'payment/fssnet/is_testing' ) )\n\t\t\t$valid_ips = array( '221.134.101.174', '221.134.101.169','198.64.129.10','198.64.133.213' );\n\t\t//else\n\t\t\t//$valid_ips = array( '221.134.101.187', '221.134.101.175', '221.134.101.166','198.64.129.10','198.64.133.213' );\n\t\t\n\t\t// Check if our IP is valid\n\t\tif ( in_array( $my_ip, $valid_ips ) )\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "03d0b91c342f569f5265ad4e1fc33620", "score": "0.73286724", "text": "function ip_good($ip)\n{\n\t$bad_ip = true;\n\t\n\t# check the ip to see if it is a private ip\n\t# 192.168.x.x\n\t# 172.16-31.x.x\n\t# 10.x.x.x\n\t# 127.x.x.x\n\t$private_ip = '/^(172\\.(1[6-9]|2[0-9]|3[0-1])\\.\\d{1,3}\\.\\d{1,3})|(192\\.168\\.\\d{1,3}.\\d{1,3})|(10\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})|(127\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})$/';\n\tif(preg_match($private_ip, $ip))\n\t{\n\t\t$bad_ip = true;\n\t} else {\n\t\t$bad_ip = false;\n\t}\n\t\n\t# Checks to see if the ip address is correctly formated\n\t# ie. It is between 0 and 255\n\t# exp. 206.13.28.12 would pass but 268.221.2.58 would fail.\n\t$patter = '/^\\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\b/';\n\tif(preg_match($patter, $ip) && $bad_ip === false)\n\t{\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "fb6224bde24f68397ab9eeb43c9c95ef", "score": "0.72625047", "text": "function validate_ip($ip) {\n if (strtolower($ip) === 'unknown')\n return false;\n\n // generate ipv4 network address\n $ip = ip2long($ip);\n\n // if the ip is set and not equivalent to 255.255.255.255\n if ($ip !== false && $ip !== -1) {\n // make sure to get unsigned long representation of ip\n // due to discrepancies between 32 and 64 bit OSes and\n // signed numbers (ints default to signed in PHP)\n $ip = sprintf('%u', $ip);\n // do private network range checking\n if ($ip >= 0 && $ip <= 50331647)\n return false;\n if ($ip >= 167772160 && $ip <= 184549375)\n return false;\n if ($ip >= 2130706432 && $ip <= 2147483647)\n return false;\n if ($ip >= 2851995648 && $ip <= 2852061183)\n return false;\n if ($ip >= 2886729728 && $ip <= 2887778303)\n return false;\n if ($ip >= 3221225984 && $ip <= 3221226239)\n return false;\n if ($ip >= 3232235520 && $ip <= 3232301055)\n return false;\n if ($ip >= 4294967040)\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "91d8b326d0f6b40043a41530e2bdaf6f", "score": "0.7260315", "text": "function validate_ip($ip)\n {\n if (strtolower($ip) === 'unknown')\n return false;\n\n // generate ipv4 network address\n $ip = ip2long($ip);\n\n // if the ip is set and not equivalent to 255.255.255.255\n if ($ip !== false && $ip !== -1) {\n // make sure to get unsigned long representation of ip\n // due to discrepancies between 32 and 64 bit OSes and\n // signed numbers (ints default to signed in PHP)\n $ip = sprintf('%u', $ip);\n // do private network range checking\n if ($ip >= 0 && $ip <= 50331647) return false;\n if ($ip >= 167772160 && $ip <= 184549375) return false;\n if ($ip >= 2130706432 && $ip <= 2147483647) return false;\n if ($ip >= 2851995648 && $ip <= 2852061183) return false;\n if ($ip >= 2886729728 && $ip <= 2887778303) return false;\n if ($ip >= 3221225984 && $ip <= 3221226239) return false;\n if ($ip >= 3232235520 && $ip <= 3232301055) return false;\n if ($ip >= 4294967040) return false;\n }\n return true;\n }", "title": "" }, { "docid": "6736cb86e1e11157930bfb2d771c0072", "score": "0.72492373", "text": "function isValidIP($ip_addr){\n //first of all the format of the ip address is matched\n if(preg_match(\"/^(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})$/\",$ip_addr)) {\n //now all the intger values are separated\n $parts=explode(\".\",$ip_addr);\n //now we need to check each part can range from 0-255\n foreach($parts as $ip_parts) {\n if(intval($ip_parts)>255 || intval($ip_parts)<0)\n return false; //if number is not within range of 0-255\n }\n return true;\n }\n else\n return false; //if format of ip address doesn't matches\n}", "title": "" }, { "docid": "32fff8fb5c2ec1f71d3339e916a34a44", "score": "0.720201", "text": "public function validate_ip($ip) {\n\t\tif (strtolower($ip) === 'unknown')\n\t\t\treturn false;\n\n\t\t// generate ipv4 network address\n\t\t$ip = ip2long($ip);\n\n\t\t// if the ip is set and not equivalent to 255.255.255.255\n\t\tif ($ip !== false && $ip !== -1) {\n\t\t\t// make sure to get unsigned long representation of ip\n\t\t\t// due to discrepancies between 32 and 64 bit OSes and\n\t\t\t// signed numbers (ints default to signed in PHP)\n\t\t\t$ip = sprintf('%u', $ip);\n\t\t\t// do private network range checking\n\t\t\tif ($ip >= 0 && $ip <= 50331647) return false;\n\t\t\tif ($ip >= 167772160 && $ip <= 184549375) return false;\n\t\t\tif ($ip >= 2130706432 && $ip <= 2147483647) return false;\n\t\t\tif ($ip >= 2851995648 && $ip <= 2852061183) return false;\n\t\t\tif ($ip >= 2886729728 && $ip <= 2887778303) return false;\n\t\t\tif ($ip >= 3221225984 && $ip <= 3221226239) return false;\n\t\t\tif ($ip >= 3232235520 && $ip <= 3232301055) return false;\n\t\t\tif ($ip >= 4294967040) return false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "995f3324c6694999964af823b04c8592", "score": "0.7168164", "text": "function validIP($ip){\r\n if(preg_match(\"^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}^\", $ip))\r\n return true;\r\n else\r\n return false;\r\n}", "title": "" }, { "docid": "fc07e7ae788fac12df8509469e96a820", "score": "0.71429825", "text": "public function validate_ip($ip) {\n if (strtolower($ip) === 'unknown')\n return false;\n\n // generate ipv4 network address\n $ip = ip2long($ip);\n\n // if the ip is set and not equivalent to 255.255.255.255\n if ($ip !== false && $ip !== -1) {\n // make sure to get unsigned long representation of ip\n // due to discrepancies between 32 and 64 bit OSes and\n // signed numbers (ints default to signed in PHP)\n $ip = sprintf('%u', $ip);\n // do private network range checking\n if ($ip >= 0 && $ip <= 50331647) return false;\n if ($ip >= 167772160 && $ip <= 184549375) return false;\n if ($ip >= 2130706432 && $ip <= 2147483647) return false;\n if ($ip >= 2851995648 && $ip <= 2852061183) return false;\n if ($ip >= 2886729728 && $ip <= 2887778303) return false;\n if ($ip >= 3221225984 && $ip <= 3221226239) return false;\n if ($ip >= 3232235520 && $ip <= 3232301055) return false;\n if ($ip >= 4294967040) return false;\n }\n return true;\n }", "title": "" }, { "docid": "633c2cacd34a77cc78195e72d2376719", "score": "0.69877994", "text": "public function checkIPs () {\n\n\t\t$validation = true;\n\n\t\tforeach ($this->allow as $key => $ip) {\n\t\t\t\n\t\t\tif ($this->matchIP($ip)) {\n \n return true;\n \n }\n\n\t\t}\n\n\t\treturn false;\n\n\t}", "title": "" }, { "docid": "b1c4b46675af1381e5d7b5001ed766cb", "score": "0.6947591", "text": "public static function check_ip_address($ip_addr) {\n\t // First of all the format of the ip address is matched\n\t if (preg_match(\"/^(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})$/\", $ip_addr)) {\n\t // Now all the intger values are separated\n\t $parts = explode(\".\", $ip_addr);\n\t // Now we need to check each part can range from 0-255\n\t foreach ($parts as $ip_parts)\n\t {\n\t if (intval($ip_parts) > 255 || intval($ip_parts) < 0)\n\t return false; // If number is not within range of 0-255\n\t }\n\t return true;\n\t }\n\t else\n\t return false; // If format of ip address doesn't matches\n\t}", "title": "" }, { "docid": "a6eb909d36b943929f0fdd58efac510a", "score": "0.6919761", "text": "public static function validIpDataProvider() {}", "title": "" }, { "docid": "a93f458afb140b24f4b9e38a3a0a664a", "score": "0.69097334", "text": "public static function ipaddress_or_cidr(string $input): bool {\r\n return preg_match('/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/(\\d|[1-2]\\d|3[0-2]))?$/', $input) === 1;\r\n }", "title": "" }, { "docid": "1c35791e3fda3214a230a52697137c21", "score": "0.6899862", "text": "protected function checkIpAddress()\n {\n $allowedIpAddresses = \\XLite\\Core\\Config::getInstance()->CDev->XPaymentsConnector->xpc_allowed_ip_addresses;\n return !$allowedIpAddresses \n || false !== strpos($allowedIpAddresses, $_SERVER['REMOTE_ADDR']);\n }", "title": "" }, { "docid": "b97d556351ccb92ddd9e6be74b94b612", "score": "0.6866963", "text": "public static function validateIpAddress($ipAddress = '') {\n if (strtolower($ipAddress) === 'unknown') {\n return false;\n }\n // Generate ipv4 network address\n $ipAddress = ip2long($ipAddress);\n // If the ip is set and not equivalent to 255.255.255.255\n if ($ipAddress !== false && $ipAddress !== -1) {\n /**\n * Make sure to get unsigned long representation of ip\n * due to discrepancies between 32 and 64 bit OSes and\n * signed numbers (ints default to signed in PHP)\n */\n $ipAddress = sprintf('%u', $ipAddress);\n // Do private network range checking\n if ($ipAddress >= 0 && $ipAddress <= 50331647) return false;\n if ($ipAddress >= 167772160 && $ipAddress <= 184549375) return false;\n if ($ipAddress >= 2130706432 && $ipAddress <= 2147483647) return false;\n if ($ipAddress >= 2851995648 && $ipAddress <= 2852061183) return false;\n if ($ipAddress >= 2886729728 && $ipAddress <= 2887778303) return false;\n if ($ipAddress >= 3221225984 && $ipAddress <= 3221226239) return false;\n if ($ipAddress >= 3232235520 && $ipAddress <= 3232301055) return false;\n if ($ipAddress >= 4294967040) return false;\n }\n return true;\n }", "title": "" }, { "docid": "a94f8aa0542cc7e4b24e8d8a75160943", "score": "0.68237674", "text": "function rest_is_ip_address($ip)\n {\n }", "title": "" }, { "docid": "9684eccca425e6835526aacdf5a019a3", "score": "0.68223965", "text": "function f_validateIP($ip)\r\n{\r\n if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE) === false) {\r\n return false;\r\n }\r\n return true;\r\n}", "title": "" }, { "docid": "a44291e3fe6e5814cbc1ea464680dc74", "score": "0.68092114", "text": "public static function validate_ip($value){\n\t\treturn preg_match( \"/^(([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/\", $value);\n\t}", "title": "" }, { "docid": "2c7e540b8a2db6ab25c402891196d083", "score": "0.6797038", "text": "public static function isValid( $ip ) {\n return ( preg_match( '/^' . RE_IP_ADD . '$/', $ip )\n || preg_match( '/^' . RE_IPV6_ADD . '$/', $ip ) );\n }", "title": "" }, { "docid": "ea57fd98bcb805339956459875af6d8e", "score": "0.6791431", "text": "function is_internal_IP() {\n if (is_admins())\n return true;\n $ip_prefix = array(\"172.31.\",\n \"172.\",\n \"10.\",\n \"222.200.\",\n \"192.168.\",\n \"202.116.\",\n \"211.66\",\n \"219.222\",\n \"125.217\",\n \"127.0.0.1\"\n );\n foreach ($ip_prefix as $ip) {\n if (!strncmp($_SERVER['REMOTE_ADDR'], $ip, strlen($ip)))\n return true;\n }\n return false;\n}", "title": "" }, { "docid": "22023a3c2e43fb84c0626b500e2f09fa", "score": "0.67659837", "text": "protected function isValidIp($ip)\n{\n $ips = array('IP_ADDRESS');\nreturn in_array($ip, $ips);\n}", "title": "" }, { "docid": "d486a84efd9edfae8917c07f1764fe59", "score": "0.67460734", "text": "function ipValid($ip) {\n $matches = [];\n $pattern =\"/([1-9]\\.|[1-9]\\d\\.|1\\d\\d\\.|25[0-5]\\.|2[0-4][0-9]\\.)(\\.\\d|[1-9]\\d|1\\d\\d|25[0-5]|2[0-4][0-9]){3}/\";\n preg_match($pattern, $ip, $matches);\n return $matches[0];\n}", "title": "" }, { "docid": "543e210b91e4fdf471c3d41602aa699d", "score": "0.6740224", "text": "public function isUserIPAddressAllowedAccess()\n\t{\n\t\ttry\n {\n $IpBin = new IpBin();\n return $IpBin->isUserIPAddressAllowedAccess($this->getSiteUser()->getId());\n }\n catch(\\Whoops\\Example\\Exception $e)\n {\n Log::error(\"Could not check if ip address is allowed access for user [\" . $this->getSiteUser()->getId() . \"]. \" . $e);\n return FALSE;\n }\n\t}", "title": "" }, { "docid": "83304d2591cebf28967a8ddb1df59356", "score": "0.6720715", "text": "public function validip($ip) {\n $ips = explode(\",\", $this->get_prop(\"ip\"));\n foreach ($ips as $ip_l) {\n $editedip = str_replace('.', '\\\\.', trim($ip_l));\n $editedip = str_replace('*', '[0-9]{1,3}', $editedip);\n if (preg_match('/^' . $editedip . '$/', $ip)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "90e10b9d12417dff2ea4adfeb7acbdde", "score": "0.6700064", "text": "function validateIp($ip) {\n\treturn inet_pton($ip);\n }", "title": "" }, { "docid": "610c94eac8b20d55184ebd2167f18aab", "score": "0.6692951", "text": "protected function validateIp(): bool\n {\n $meta = $this->getGitHubApiMeta();\n\n $ip = @$_SERVER['REMOTE_ADDR'];\n $ranges = (array) ($meta['hooks'] ?? []);\n\n // Check if IP comes from a GitHub hook.\n foreach ($ranges as $range) {\n if (Utils::cidrMatch($ip, $range)) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "d18fce85904b94a2dd58adaa01c636fb", "score": "0.6662615", "text": "function ip_is_local($ip){\r\n\t\r\n\t $ipv4array = explode('.',$ip); $ipv6array = explode(':',$ip);\r\n\t $lenipv4 = count($ipv4array) ; $lenipv6 = count($ipv6array); \r\n\t $ipint = array(); \r\n\t if($lenipv4 > 0 ){//We have an ipv4 address\r\n\t\t for ($i = 0 ; $i<$lenipv4 ; $i++){\r\n\t\t\t $ipint[$i] = intval($ipv4array[$i]) ; //Generating integera values for the ips\r\n\t\t }\r\n\t\t \r\n\t\t\t//Let's see if our IP is riv ate\r\n\t\t\tif ($ipint[0] == 10) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else if ($ipint[0] == 172 && $ipint[1] > 15 && $ipint[1] < 32) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else if ($ipint[0] == 192 && $ipint[1] == 168) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else return false ;\r\n\t }else{\r\n\t //Either something went wrong, or we are in IPV6 format.\t \r\n\t\t \r\n\t\t if( $lenipv6 > 0){//We are having a big IPV6 address here !\r\n\t\t\t //We are in IPV4. Haven't implemented IPV6 yet\r\n\t\t\t \r\n\t\t }\r\n\t\t return false ;\r\n\t }\r\n\t \r\n\t \r\n\t return false;\r\n}", "title": "" }, { "docid": "29f644868cbfb2622b6ca18a07d1d5a4", "score": "0.6655741", "text": "function validate_ip($ip)\n{\n if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE) === false) {\n return false;\n }\n return true;\n}", "title": "" }, { "docid": "c0fcbf0514fda03c8e844c41c8dbf3cd", "score": "0.665545", "text": "public static function is_ip_address($maybe_ip)\n {\n }", "title": "" }, { "docid": "a19ec38287491d23191b6416379b7553", "score": "0.6629519", "text": "public function isValidIP(string $ip, string $which = null): bool;", "title": "" }, { "docid": "fb0e1ec2f87526677ac9f3aa2acd3616", "score": "0.6627783", "text": "public function validateAddress() {\r\n $leng = mb_strlen($this->data[$this->name]['Address']);\r\n if ($leng > 256) {\r\n return FALSE;\r\n } else if ($leng > 128) {\r\n if (mb_ereg(self::_REGEX_FULLWITH, $this->data[$this->name]['Address']) !== false) {\r\n return FALSE;\r\n }\r\n }\r\n return TRUE;\r\n }", "title": "" }, { "docid": "250ad16f63bf9f8881bccbfe76039d05", "score": "0.6625302", "text": "public function isValid($value)\n {\n if (! is_string($value)) {\n $this->error(self::INVALID);\n return false;\n }\n\n $this->setValue($value);\n\n if ($this->options['allowipv4'] && $this->validateIPv4($value)) {\n return true;\n } else {\n if ((bool) $this->options['allowliteral']) {\n static $regex = '/^\\[(.*)\\]$/';\n if ((bool) preg_match($regex, $value, $matches)) {\n $value = $matches[1];\n }\n }\n\n if (($this->options['allowipv6'] && $this->validateIPv6($value)) ||\n ($this->options['allowipvfuture'] && $this->validateIPvFuture($value))\n ) {\n return true;\n }\n }\n $this->error(self::NOT_IP_ADDRESS);\n return false;\n }", "title": "" }, { "docid": "da2d0fc7123f0fcc8d3f5b13e801ba61", "score": "0.6610099", "text": "public static function is_ip4(&$ip) {\r\n\t\t// Using filter_var here fails in recognizing 255.255.255.0255 as a valid IP\r\n\t\t// See http://en.wikipedia.org/wiki/IPv4#Address_representations\r\n\t\t$test = explode('.', $ip);\r\n\t\t$ints = array();\r\n\t\t$ret = (count($test) == 4);\r\n\t\tforeach($test as $datum) {\r\n\t\t\t$ret = $ret && self::is_int($datum, 0, 255);\r\n\t\t\tif ($ret) { $ints[] = intval($datum); }\r\n\t\t}\t\r\n\t\t\r\n\t\t$regex = '@^[0.]*$@'; // Contains only ., and 0\r\n\t\t$ret = $ret && !preg_match($regex, $ip);\r\n\t\t\r\n\t\tif ($ret) {\r\n\t\t\t$ip = implode('.', $ints);\r\n\t\t}\r\n\r\n\t\treturn $ret;\r\n\t}", "title": "" }, { "docid": "c4331a1775dc166fed8724107a726693", "score": "0.6600548", "text": "private function doIpCheck($ip)\r\n {\r\n $allowedList = array();\r\n $allowedList['85.158.206.17'] = 1;\r\n $allowedList['85.158.206.18'] = 1;\r\n $allowedList['85.158.206.19'] = 1;\r\n $allowedList['85.158.206.20'] = 1;\r\n $allowedList['85.158.206.21'] = 1;\r\n if (!isset($allowedList[$ip]))\r\n {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "dd63ff13107f2d38404ad19a2f316de4", "score": "0.6592411", "text": "public static function isPublic( $ip ) {\n if ( self::isIPv6( $ip ) ) {\n return self::isPublic6( $ip );\n }\n $n = self::toUnsigned( $ip );\n if ( !$n ) {\n return false;\n }\n\n // ip2long accepts incomplete addresses, as well as some addresses\n // followed by garbage characters. Check that it's really valid.\n if ( $ip != long2ip( $n ) ) {\n return false;\n }\n\n static $privateRanges = false;\n if ( !$privateRanges ) {\n $privateRanges = array(\n array( '10.0.0.0', '10.255.255.255' ), # RFC 1918 (private)\n array( '172.16.0.0', '172.31.255.255' ), # \"\n array( '192.168.0.0', '192.168.255.255' ), # \"\n array( '0.0.0.0', '0.255.255.255' ), # this network\n array( '127.0.0.0', '127.255.255.255' ), # loopback\n );\n }\n\n foreach ( $privateRanges as $r ) {\n $start = self::toUnsigned( $r[0] );\n $end = self::toUnsigned( $r[1] );\n if ( $n >= $start && $n <= $end ) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "b76ea2f143e7bcb067f2280df59f87cc", "score": "0.6574985", "text": "protected function validateIp($value){\n\t\treturn filter_var($value, FILTER_VALIDATE_IP) !== false;\n\t}", "title": "" }, { "docid": "6d1064b2ecc57e2c5186dcc95413487b", "score": "0.65544087", "text": "public static function isIPAddress( $ip ) {\n return (bool)preg_match( '/^' . IP_ADDRESS_STRING . '$/', $ip );\n }", "title": "" }, { "docid": "e26628086dd049f83686030b998765e5", "score": "0.6545333", "text": "function check_ip($ip)\r\n\t{\r\n\t\treturn (!strcmp(long2ip(sprintf('%u',ip2long($ip))),$ip) ? true : false);\r\n\t}", "title": "" }, { "docid": "05d6e92ef9912edf85e84c06e9d79629", "score": "0.6544718", "text": "function esip($ip_addr)\n\t{\n\t\t if(preg_match(\"/^(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})$/\",$ip_addr)) \n\t\t {\n\t\t\t //now all the intger values are separated \n\t\t\t $parts=explode(\".\",$ip_addr); \n\t\t\t //now we need to check each part can range from 0-255 \n\t\t\t foreach($parts as $ip_parts) \n\t\t\t {\n\t\t\t\t if(intval($ip_parts)>255 || intval($ip_parts)<0) \n\t\t\t\t return FALSE; //if number is not within range of 0-255\n\t\t\t }\n\t\t\t return TRUE; \n\t\t }\n\t\t else return FALSE; //if format of ip address doesn't matches \n\t}", "title": "" }, { "docid": "dab3647e184a3580af5fa90581cdcbb6", "score": "0.65435255", "text": "function testIP($a, $allowzero=FALSE) {\r\n $t = explode(\".\", $a);\r\n \r\n if (sizeof($t) != 4)\r\n return 1;\r\n \r\n for ($i = 0; $i < 4; $i++) {\r\n // first octet may not be 0\r\n if ($t[0] == 0 && $allowzero == FALSE)\r\n return 1;\r\n if ($t[$i] < 0 or $t[$i] > 255)\r\n return 1;\r\n if (!is_numeric($t[$i]))\r\n return 1;\r\n };\r\n return 0;\r\n}", "title": "" }, { "docid": "00b9fdd2cd80410f33462d11a7289133", "score": "0.6528275", "text": "public function validAddresses() {}", "title": "" }, { "docid": "2b6c145edc691a9be8e0c43638b033e2", "score": "0.651404", "text": "private static function isPublic6( $ip ) {\n static $privateRanges = false;\n if ( !$privateRanges ) {\n $privateRanges = array(\n array( 'fc00::', 'fdff:ffff:ffff:ffff:ffff:ffff:ffff:ffff' ), # RFC 4193 (local)\n array( '0:0:0:0:0:0:0:1', '0:0:0:0:0:0:0:1' ), # loopback\n );\n }\n $n = self::toHex( $ip );\n foreach ( $privateRanges as $r ) {\n $start = self::toHex( $r[0] );\n $end = self::toHex( $r[1] );\n if ( $n >= $start && $n <= $end ) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "43795437dc8025e1f6d8fba3d4f5d028", "score": "0.647936", "text": "public static function isValidAddress($ip_address)\n {\n return filter_var($ip_address, FILTER_VALIDATE_IP) !== false;\n }", "title": "" }, { "docid": "311194d02c65326b46078711c5c4348d", "score": "0.6476362", "text": "function validate_ip($ip) {\n\t\t\t// Define all IPv6 address types\n\t\t\t$ipv6regexes = array(\n\t\t\t\t\"preferred\" => array(\n\t\t\t\t\t\"/^(?:[a-f0-9]{1,4}:){7}[a-f0-9]{1,4}$/i\"\n\t\t\t\t),\n\t\t\t\t\"compressed\" => array(\n\t\t\t\t\t\"/^[a-f0-9]{0,4}::$/i\",\n\t\t\t\t\t\"/^:(?::[a-f0-9]{1,4}){1,6}$/i\",\n\t\t\t\t\t\"/^(?:[a-f0-9]{1,4}:){1,6}:$/i\",\n\t\t\t\t\t\"/^(?:[a-f0-9]{1,4}:)(?::[a-f0-9]{1,4}){1,6}$/i\",\n\t\t\t\t\t\"/^(?:[a-f0-9]{1,4}:){2}(?::[a-f0-9]{1,4}){1,5}$/i\",\n\t\t\t\t\t\"/^(?:[a-f0-9]{1,4}:){3}(?::[a-f0-9]{1,4}){1,4}$/i\",\n\t\t\t\t\t\"/^(?:[a-f0-9]{1,4}:){4}(?::[a-f0-9]{1,4}){1,3}$/i\",\n\t\t\t\t\t\"/^(?:[a-f0-9]{1,4}:){5}(?::[a-f0-9]{1,4}){1,2}$/i\",\n\t\t\t\t\t\"/^(?:[a-f0-9]{1,4}:){6}(?::[a-f0-9]{1,4})$/i\"\n\t\t\t\t),\n\t\t\t\t\"ipv4\" => array(\n\t\t\t\t\t\"/^::(?:\\d{1,3}\\.){3}\\d{1,3}$/\",\n\t\t\t\t\t\"/^(?:0:){6}(?:\\d{1,3}\\.){3}\\d{1,3}$/i\"\n\t\t\t\t),\n\t\t\t\t\"ipv4_mapped\" => array(\n\t\t\t\t\t\"/^(?:0:){5}ffff:(?:\\d{1,3}\\.){3}\\d{1,3}$/i\",\n\t\t\t\t\t\"/^::ffff:(?:\\d{1,3}\\.){3}\\d{1,3}$/\"\n\t\t\t\t)\n\t\t\t);\n\t\t\t// Search the address types and return the name if it matches\n\t\t\tforeach ($ipv6regexes as $type => $regexes) {\n\t\t\t\tforeach ($regexes as $regex)\n\t\t\t\t\tif (preg_match($regex, $ip)) {\n\t\t\t\t\t\tif (in_array($type, array(\"ipv4\", \"ipv4_mapped\"))) {\n\t\t\t\t\t\t\t$ipparts = explode(\":\", $ip);\n\t\t\t\t\t\t\t$ipv4part = $ipparts[count($ipparts)-1];\n\t\t\t\t\t\t\tif (IPv4::validate_ip($ipv4part))\n\t\t\t\t\t\t\t\treturn $type;\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t\treturn $type;\n\t\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Return false if we didn't match an address type\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "b391d268c4ad419e9c7c83fd5516d707", "score": "0.64728576", "text": "public function validate_ip($ip) {\n if (filter_var($ip, FILTER_VALIDATE_IP, \n FILTER_FLAG_IPV4 | \n FILTER_FLAG_IPV6 |\n FILTER_FLAG_NO_PRIV_RANGE | \n FILTER_FLAG_NO_RES_RANGE) === false)\n return false;\n self::$ip = $ip;\n return true;\n }", "title": "" }, { "docid": "d5fe9daf81829440b0b3104ffbd5d609", "score": "0.6451204", "text": "function allow_ip_address()\r\n\t{\r\n\t\t$bad = apply_filters('three_strikes_count', 0, $_SERVER['REMOTE_ADDR']);\r\n\t\treturn ($bad < THREE_STRIKES_LIMIT);\r\n\t}", "title": "" }, { "docid": "03c2d6014b91511dacbd579609cd5e0b", "score": "0.6440756", "text": "function validIP($value)\n {\n return filter_var($value, FILTER_VALIDATE_IP);\n }", "title": "" }, { "docid": "71dd05282fb1435b79e5c9a26130700f", "score": "0.64287764", "text": "function req_is_ipv4() {\n static $is_ipv4 = null;\n if ($is_ipv4 === null) \n $is_ipv4 = \\preg_match('#^\\d{1,3}(\\.\\d{1,3}){3,3}$#', $_SERVER[\"SERVER_ADDR\"]) != 0;\n return $is_ipv4;\n}", "title": "" }, { "docid": "320ea77644f9152c7db4c48d2ca2e335", "score": "0.6413092", "text": "protected function validateIPv4($value)\n {\n if (preg_match('/^([01]{8}\\.){3}[01]{8}\\z/i', $value)) {\n // binary format 00000000.00000000.00000000.00000000\n $value = bindec(substr($value, 0, 8)) . '.' . bindec(substr($value, 9, 8)) . '.'\n . bindec(substr($value, 18, 8)) . '.' . bindec(substr($value, 27, 8));\n } elseif (preg_match('/^([0-9]{3}\\.){3}[0-9]{3}\\z/i', $value)) {\n // octet format 777.777.777.777\n $value = (int) substr($value, 0, 3) . '.' . (int) substr($value, 4, 3) . '.'\n . (int) substr($value, 8, 3) . '.' . (int) substr($value, 12, 3);\n } elseif (preg_match('/^([0-9a-f]{2}\\.){3}[0-9a-f]{2}\\z/i', $value)) {\n // hex format ff.ff.ff.ff\n $value = hexdec(substr($value, 0, 2)) . '.' . hexdec(substr($value, 3, 2)) . '.'\n . hexdec(substr($value, 6, 2)) . '.' . hexdec(substr($value, 9, 2));\n }\n\n $ip2long = ip2long($value);\n if ($ip2long === false) {\n return false;\n }\n\n return ($value == long2ip($ip2long));\n }", "title": "" }, { "docid": "92e9d7b31376c5efb61a49b50fb8dbc7", "score": "0.64001536", "text": "public static function is_ip6($ip) {\r\n\t\t$ret = false;\r\n\t\tif (function_exists('filter_var')) {\r\n\t\t\t// This regards :: as valid, also ::0 or ::0.0.0.0 as OK, which is wrong\r\n\t\t\t$ret = filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// This regards :: as invalid, but ::0 or ::0.0.0.0 as OK, which is wrong\r\n\t\t\t// Taken from here: http://regexlib.com/REDetails.aspx?regexp_id=1000\r\n\t\t\t$regex = \"@^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b)\\.){3}(\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b))|(([0-9A-Fa-f]{1,4}:){1,5}:((\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b)\\.){3}(\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b))|(([0-9A-Fa-f]{1,4}:){1}:([0-9A-Fa-f]{1,4}:){0,4}((\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b)\\.){3}(\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b))|(([0-9A-Fa-f]{1,4}:){0,2}:([0-9A-Fa-f]{1,4}:){0,3}((\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b)\\.){3}(\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b))|(([0-9A-Fa-f]{1,4}:){0,3}:([0-9A-Fa-f]{1,4}:){0,2}((\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b)\\.){3}(\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b))|(([0-9A-Fa-f]{1,4}:){0,4}:([0-9A-Fa-f]{1,4}:){1}((\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b)\\.){3}(\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b)\\.){3}(\\b((25[0-5])|(1\\d{2})|(2[0-4]\\d)|(\\d{1,2}))\\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$@\";\r\n\t\t\t$ret = preg_match($regex, $ip);\r\n\t\t}\t\r\n\t\tif ($ret) {\r\n\t\t\t// :: in any combination (::, ::0, 0::0:0.0.0.0) is invalid!\r\n\t\t\t$regex = '@^[0.:]*$@'; // Contains only ., :, and 0\r\n\t\t\t$ret = !preg_match($regex, $ip);\r\n\t\t}\r\n\t\treturn $ret;\r\n\t}", "title": "" }, { "docid": "92475d1c15d6c890222a484703254aa3", "score": "0.63984704", "text": "function is_ip_banned($ip, $banned_ips)\n {\n foreach($banned_ips as $banned_ip) // go through every $banned_ip\n {\n if(strpos($banned_ip,'*')!==false) // $banned_ip contains \"*\" = > IP range\n {\n $ip_range = substr($banned_ip, 0, strpos($banned_ip, '*')); // fetch part before \"*\"\n if(strpos($ip, $ip_range)===0) // check if IP begins with part before \"*\"\n {\n return true;\n }\n }\n elseif(strpos($banned_ip,'/')!==false && preg_match(\"/(([0-9]{1,3}\\.){3}[0-9]{1,3})\\/([0-9]{1,2})/\", $banned_ip, $regs)) // $banned_ip contains \"/\" => CIDR notation (the regular expression is only used if $banned_ip contains \"/\")\n {\n // convert IP into bit pattern:\n $n_user_leiste = '00000000000000000000000000000000'; // 32 bits\n $n_user_ip = explode('.',trim($ip));\n for ($i = 0; $i <= 3; $i++) // go through every byte\n {\n for ($n_j = 0; $n_j < 8; $n_j++) // ... check every bit\n {\n if($n_user_ip[$i] >= pow(2, 7-$n_j)) // set to 1 if necessary\n {\n $n_user_ip[$i] = $n_user_ip[$i] - pow(2, 7-$n_j);\n $n_user_leiste[$n_j + $i*8] = '1';\n }\n }\n }\n // analyze prefix length:\n $n_byte_array = explode('.',trim($regs[1])); // IP -> 4 Byte\n $n_cidr_bereich = $regs[3]; // prefix length\n // bit pattern:\n $n_bitleiste = '00000000000000000000000000000000';\n for ($i = 0; $i <= 3; $i++) // go through every byte\n {\n if ($n_byte_array[$i] > 255) // invalid\n {\n $n_cidr_bereich = 0;\n }\n for ($n_j = 0; $n_j < 8; $n_j++) // ... check every bit\n {\n if($n_byte_array[$i] >= pow(2, 7-$n_j)) // set to 1 if necessary\n {\n $n_byte_array[$i] = $n_byte_array[$i] - pow(2, 7-$n_j);\n $n_bitleiste[$n_j + $i*8] = '1';\n }\n }\n }\n // check if bit patterns match on the first n chracters:\n if (strncmp($n_bitleiste, $n_user_leiste, $n_cidr_bereich) == 0 && $n_cidr_bereich > 0)\n {\n return true;\n }\n }\n else // neither \"*\" nor \"/\" => simple comparison:\n {\n if($ip == $banned_ip)\n {\n return true;\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "cbe726aa2f0c0312921a5e18702838a4", "score": "0.6398157", "text": "public static function isIPv4Valid(string $ip)\n {\n return filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) !== false;\n }", "title": "" }, { "docid": "5321606109f049880868855acf327306", "score": "0.6395801", "text": "private function _isValidIPAddress($ipAddress)\n {\n return filter_var($ipAddress, FILTER_VALIDATE_IP);\n }", "title": "" }, { "docid": "ac82ee5386c26f54a4060182c2642f0a", "score": "0.6395172", "text": "public static function isValidIpAddress($ip_address){\n return (filter_var($ip_address, FILTER_VALIDATE_IP)) ? true : false;\n }", "title": "" }, { "docid": "bb03d961a665f42bab425f13eb3101b7", "score": "0.63681597", "text": "public function isAddressValid()\n {\n //TODO: consider does it make sense to have a special validation by country? how does the app handle different country addresses ?\n $addressValid = trim($this->Streetname1) != '' && trim($this->PostalCode) != '' && trim($this->City) != '' && trim($this->Country) != '' ;\n\n if (!$addressValid) {\n $this->errors[] = 'Invalid Shipping Address';\n }\n\n return $addressValid;\n }", "title": "" }, { "docid": "11aa6886dfeb7c2112594d87f248d36e", "score": "0.6365072", "text": "protected function validateIp($value) {\n if (filter_var($value, FILTER_VALIDATE_IP))\n return true;\n $this->setError(t(\"Invalid IP-address\"));\n return false;\n }", "title": "" }, { "docid": "695aec4b736dcd5ee4ca8b1537917941", "score": "0.63646877", "text": "protected function isValidIpRange($ip)\n{\n $ipRanges = env('IP_RANGE');\nreturn IpUtils::checkIp($ip, $ipRanges);\n}", "title": "" }, { "docid": "487c461a3a7703bf22e94f6e4a06c27d", "score": "0.6360338", "text": "private function isIPAddressMeetRange() {\n\t\tif(get_option(\"wp_broadbean_iprange\") == \"\") {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn ip_in_range($this->ip_request, get_option(\"wp_broadbean_iprange\"));\n\t\t}\n\t}", "title": "" }, { "docid": "2f386c95186ee9c1dd32cd4f820ddb14", "score": "0.634974", "text": "public static function isLocalIpv4($ip)\n {\n // @codingStandardsIgnoreEnd\n $ret = false;\n\n foreach (self::$PRIVATE_IPV4_RANGES as $range) {\n list($start, $end) = $range;\n\n $parts = array_map('intval', explode('.', $ip));\n\n $matchc = 0;\n foreach ($parts as $idx => $part) {\n if ($part >= $start[$idx] && $part <= $end[$idx]) {\n $matchc++;\n continue;\n } else {\n continue 2;\n }\n }\n\n return 4 === $matchc;\n }\n return $ret;\n }", "title": "" }, { "docid": "788a56b62d3bd66e369899b352499446", "score": "0.63336724", "text": "function checkIPorRange ($ip_address) {\r\n\t if (ereg(\"-\",$ip_address)) {\r\n\t // Range\r\n\t $ar = explode(\"-\",$ip_address);\r\n\t $your_long_ip = ip2long($_SERVER[\"REMOTE_ADDR\"]);\r\n\t if ( ($your_long_ip >= ip2long($ar[0])) && ($your_long_ip <= ip2long($ar[1])) ) {\r\n\t return TRUE;\r\n\t }\r\n\t } else {\r\n\t // Single IP\r\n\t if ($_SERVER[\"REMOTE_ADDR\"] == $ip_address) {\r\n\t return TRUE;\r\n\t }\r\n\t }\r\n\t return FALSE;\r\n\t}", "title": "" }, { "docid": "fc66f35bb45a398e4770399179e6d94f", "score": "0.63258684", "text": "public static function isIpv4($ip){\n\t\t\treturn count('.',explode($ip))==4 && max($ip)<256;\n\t\t}", "title": "" }, { "docid": "2d9524ea111bc69baf9b4a595df0177c", "score": "0.6293275", "text": "protected static function isIpAddress($maybeIP)\n {\n if (true === function_exists('inet_pton')) {\n // check for IPv4 and IPv6 addresses\n return !!inet_pton($maybeIP);\n }\n\n // just check for IPv4 addresses\n return !!ip2long($maybeIP);\n }", "title": "" }, { "docid": "92556a868903a1c56dbb64e9688dcf82", "score": "0.62918824", "text": "function is_ip($ip){\n return (filter_var($ip, FILTER_VALIDATE_IP) !== false);\n}", "title": "" }, { "docid": "e34f1fcdb2e30c3e0d3d06a4fd395250", "score": "0.6272593", "text": "function check_cidr($ip, $cidr) {\n\t$ip_arr = explode('/', $cidr);\n\t// Fill in any missing \".0\" parts, and turn the address into a long.\n\t$cidr_long = ip2long($ip_arr[0].str_repeat('.0', 3 - substr_count($ip_arr[0], '.')));\n\t$cidr_bits = (int) $ip_arr[1];\n\t// Turn the IP into a long.\n\t$ip_long = ip2long($ip);\n\n\t// Get the network part of the CIDR and the IP.\n\t$cidr_network = $cidr_long >> (32 - $cidr_bits);\n\t$ip_network = $ip_long >> (32 - $cidr_bits);\n\n\t// If the network parts are equal, return true.\n\treturn ($cidr_network === $ip_network);\n}", "title": "" }, { "docid": "d75aacca1ec157e0bb0696f7179d41f8", "score": "0.6270697", "text": "protected function checkValidIP($ip)\n {\n return long2ip(ip2long($ip)) === $ip;\n }", "title": "" }, { "docid": "8f9a826636278ae1e9b96501d5ec0916", "score": "0.62699974", "text": "public static function isIPWanAddress($string) {\n $bytes = self::isIPAddress($string, true);\n\n // Die Logik entspricht dem Gegenteil von self:: isIPLanAdress() + zusaetzlicher Tests.\n if ($bytes) {\n if ($bytes[0] == 10) // 10.0.0.0 - 10.255.255.255\n return false;\n\n if ($bytes[0] == 127) // 127.0.0.0 - 127.255.255.255\n return false;\n\n if ($bytes[0]==169) // 169.0.0.0 - 169.255.255.255 !!! wem zugewiesen? niemandem?\n return false;\n\n if ($bytes[0] == 172) // 172.16.0.0 - 172.31.255.255\n return !(15 < $bytes[1] && $bytes[1] < 32);\n\n if ($bytes[0]==192) // 192.168.0.0 - 192.168.255.255\n return ($bytes[1]!=168);\n }\n\n // dieses TRUE ist eher spekulativ\n return true;\n }", "title": "" }, { "docid": "d6df5d3571dfd5d4f1249ec352f950dc", "score": "0.62681234", "text": "protected static function isValidIpAddress($host, $allowed)\n {\n $validatorParams = [\n 'allowipv4' => (bool) ($allowed & self::HOST_IPV4),\n 'allowipv6' => false,\n 'allowipvfuture' => false,\n 'allowliteral' => false,\n ];\n\n // Test only IPv4\n $validator = new Validator\\Ip($validatorParams);\n $return = $validator->isValid($host);\n if ($return) {\n return true;\n }\n\n // IPv6 & IPvLiteral must be in literal format\n $validatorParams = [\n 'allowipv4' => false,\n 'allowipv6' => (bool) ($allowed & self::HOST_IPV6),\n 'allowipvfuture' => (bool) ($allowed & self::HOST_IPVFUTURE),\n 'allowliteral' => true,\n ];\n static $regex = '/^\\[.*\\]$/';\n $validator->setOptions($validatorParams);\n return (preg_match($regex, $host) && $validator->isValid($host));\n }", "title": "" }, { "docid": "49a55bd6ac9277c87320a8ee0f017022", "score": "0.62677675", "text": "Function ip_in_range($ip, $range) {\r\n if (strpos($range, '/') !== false) {\r\n // $range is in IP/NETMASK format\r\n list($range, $netmask) = explode('/', $range, 2);\r\n if (strpos($netmask, '.') !== false) {\r\n // $netmask is a 255.255.0.0 format\r\n $netmask = str_replace('*', '0', $netmask);\r\n $netmask_dec = ip2long($netmask);\r\n return ( (ip2long($ip) & $netmask_dec) == (ip2long($range) & $netmask_dec) );\r\n } else {\r\n // $netmask is a CIDR size block\r\n // fix the range argument\r\n $x = explode('.', $range);\r\n while(count($x)<4) $x[] = '0';\r\n list($a,$b,$c,$d) = $x;\r\n $range = sprintf(\"%u.%u.%u.%u\", empty($a)?'0':$a, empty($b)?'0':$b,empty($c)?'0':$c,empty($d)?'0':$d);\r\n $range_dec = ip2long($range);\r\n $ip_dec = ip2long($ip);\r\n\r\n # Strategy 1 - Create the netmask with 'netmask' 1s and then fill it to 32 with 0s\r\n #$netmask_dec = bindec(str_pad('', $netmask, '1') . str_pad('', 32-$netmask, '0'));\r\n\r\n # Strategy 2 - Use math to create it\r\n $wildcard_dec = pow(2, (32-$netmask)) - 1;\r\n $netmask_dec = ~ $wildcard_dec;\r\n\r\n return (($ip_dec & $netmask_dec) == ($range_dec & $netmask_dec));\r\n }\r\n } else {\r\n // range might be 255.255.*.* or 1.2.3.0-1.2.3.255\r\n if (strpos($range, '*') !==false) { // a.b.*.* format\r\n // Just convert to A-B format by setting * to 0 for A and 255 for B\r\n $lower = str_replace('*', '0', $range);\r\n $upper = str_replace('*', '255', $range);\r\n $range = \"$lower-$upper\";\r\n }\r\n\r\n if (strpos($range, '-')!==false) { // A-B format\r\n list($lower, $upper) = explode('-', $range, 2);\r\n $lower_dec = (float)sprintf(\"%u\",ip2long($lower));\r\n $upper_dec = (float)sprintf(\"%u\",ip2long($upper));\r\n $ip_dec = (float)sprintf(\"%u\",ip2long($ip));\r\n return ( ($ip_dec>=$lower_dec) && ($ip_dec<=$upper_dec) );\r\n }\r\n\r\n echo 'Range argument is not in 1.2.3.4/24 or 1.2.3.4/255.255.255.0 format';\r\n return false;\r\n }\r\n\r\n}", "title": "" }, { "docid": "085dea32aea7649309d2b065c6671aa3", "score": "0.6263884", "text": "function isValidIP($var) {\n //Returns error message for an invalid IP Address\n \n //Check for unsafe characters\n $msg = isSantizeString($var);\n if ($msg != \"\") {\n return $msg;\n }\n\n if (filter_var($var, FILTER_VALIDATE_IP)) {\n return \"\";\n } else {\n return \"Invalid IP Address\";\n }\n}", "title": "" }, { "docid": "9753ea91b660a2a2665338c95f3156c3", "score": "0.6240547", "text": "function is_private_ip($iptocheck) {\n\t$isprivate = false;\n\t$ip_private_list = array(\n\t\t\"10.0.0.0/8\",\n\t\t\"100.64.0.0/10\",\n\t\t\"172.16.0.0/12\",\n\t\t\"192.168.0.0/16\",\n\t);\n\tforeach ($ip_private_list as $private) {\n\t\tif (ip_in_subnet($iptocheck, $private) == true) {\n\t\t\t$isprivate = true;\n\t\t}\n\t}\n\treturn $isprivate;\n}", "title": "" }, { "docid": "636131c99a51bdce93e1d6149763b7eb", "score": "0.62288797", "text": "Function ip_in_range($ip, $range) {\n if (strpos($range, '/') !== false) {\n // $range is in IP/NETMASK format\n list($range, $netmask) = explode('/', $range, 2);\n if (strpos($netmask, '.') !== false) {\n // $netmask is a 255.255.0.0 format\n $netmask = str_replace('*', '0', $netmask);\n $netmask_dec = ip2long($netmask);\n return ( (ip2long($ip) & $netmask_dec) == (ip2long($range) & $netmask_dec) );\n } else {\n // $netmask is a CIDR size block\n // fix the range argument\n $x = explode('.', $range);\n while(count($x)<4) $x[] = '0';\n list($a,$b,$c,$d) = $x;\n $range = sprintf(\"%u.%u.%u.%u\", empty($a)?'0':$a, empty($b)?'0':$b,empty($c)?'0':$c,empty($d)?'0':$d);\n $range_dec = ip2long($range);\n $ip_dec = ip2long($ip);\n\n # Strategy 1 - Create the netmask with 'netmask' 1s and then fill it to 32 with 0s\n #$netmask_dec = bindec(str_pad('', $netmask, '1') . str_pad('', 32-$netmask, '0'));\n\n # Strategy 2 - Use math to create it\n $wildcard_dec = pow(2, (32-$netmask)) - 1;\n $netmask_dec = ~ $wildcard_dec;\n\n return (($ip_dec & $netmask_dec) == ($range_dec & $netmask_dec));\n }\n } else {\n // range might be 255.255.*.* or 1.2.3.0-1.2.3.255\n if (strpos($range, '*') !==false) { // a.b.*.* format\n // Just convert to A-B format by setting * to 0 for A and 255 for B\n $lower = str_replace('*', '0', $range);\n $upper = str_replace('*', '255', $range);\n $range = \"$lower-$upper\";\n }\n\n if (strpos($range, '-')!==false) { // A-B format\n list($lower, $upper) = explode('-', $range, 2);\n $lower_dec = (float)sprintf(\"%u\",ip2long($lower));\n $upper_dec = (float)sprintf(\"%u\",ip2long($upper));\n $ip_dec = (float)sprintf(\"%u\",ip2long($ip));\n return ( ($ip_dec>=$lower_dec) && ($ip_dec<=$upper_dec) );\n }\n\n //echo 'Range argument is not in 1.2.3.4/24 or 1.2.3.4/255.255.255.0 format';\n return false;\n }\n\n}", "title": "" }, { "docid": "a756fc3e464fb2c1b1b25f01228e010f", "score": "0.6221458", "text": "protected function __get_is_local()\n\t{\n\t\tstatic $patterns = array('::1', '/^127\\.0\\.0\\.\\d{1,3}$/', '/^0:0:0:0:0:0:0:1(%.*)?$/');\n\n\t\t$ip = $this->ip;\n\n\t\tforeach ($patterns as $pattern)\n\t\t{\n\t\t\tif ($pattern{0} == '/')\n\t\t\t{\n\t\t\t\tif (preg_match($pattern, $ip))\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ($pattern == $ip)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "0605d2ffac98c0eb73b2f71ac2b0bbef", "score": "0.62119967", "text": "static function cidr_check($ip, $cidr)\n\t{\n\t\tlist ($net, $mask) = explode(\"/\", $cidr);\n\n\t\t// Allow non-standard /0 syntax\n\t\tif ($mask == 0)\n\t\t{\n\t\t\tif (ip2long($ip) == ip2long($net))\n\t\t\t{\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\n\t\t$ip_net = ip2long ($net);\n\t\t$ip_mask = ~((1 << (32 - $mask)) - 1);\n\n\t\t$ip_ip = ip2long ($ip);\n\n\t\t$ip_ip_net = $ip_ip & $ip_mask;\n\n\t\treturn ($ip_ip_net == $ip_net);\n\t}", "title": "" }, { "docid": "add7de91e1f5946ad97becbe43d6f909", "score": "0.621094", "text": "public static function isIPLanAddress($string) {\n $bytes = self::isIPAddress($string, true);\n\n if ($bytes) {\n if ($bytes[0] == 10) // 10.0.0.0 - 10.255.255.255\n return true;\n\n if ($bytes[0] == 172) // 172.16.0.0 - 172.31.255.255\n return (15 < $bytes[1] && $bytes[1] < 32);\n\n if ($bytes[0]==192 && $bytes[1]==168) // 192.168.0.0 - 192.168.255.255\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "2b5150a1a4bac38b94842a372b12c640", "score": "0.6209951", "text": "private function matchIP($allowed) {\n\n\t\t$remote_parts = explode('.', $this->remote);\n\n\t\t$allowed_parts = explode('.', $allowed);\n\n\t\tforeach ($allowed_parts as $key => $value) {\n\t\t\t\n\t\t\tif ($value !== $remote_parts[$key]) \n {\n \n return false;\n \n }\n\n }\n \n\t\treturn true;\n\n\t}", "title": "" }, { "docid": "b224f97f8ff700b07f2555953fdd52ea", "score": "0.62044656", "text": "function verifyAndCleanAddresses($data, $subnets_allowed = 'subnets-allowed') {\n\t/** Remove extra spaces */\n\t$data = preg_replace('/\\s\\s+/', ' ', $data);\n\t\n\t/** Swap delimiters for ; */\n\t$data = str_replace(array(\"\\n\", ';', ' ', ','), ',', $data);\n\t$data = str_replace(',,', ',', $data);\n\t$data = trim($data, ',');\n\t\n\t$addresses = explode(',', $data);\n\tforeach ($addresses as $ip_address) {\n\t\t$cidr = null;\n\n\t\t$ip_address = rtrim(trim($ip_address), '.');\n\t\tif (!strlen($ip_address)) continue;\n\t\t\n\t\t/** Handle negated addresses */\n\t\tif (strpos($ip_address, '!') === 0) {\n\t\t\t$ip_address = substr($ip_address, 1);\n\t\t}\n\t\t\n\t\tif (strpos($ip_address, '/') !== false && $subnets_allowed == 'subnets-allowed') {\n\t\t\t$cidr_array = explode('/', $ip_address);\n\t\t\tlist($ip_address, $cidr) = $cidr_array;\n\t\t}\n\t\t\n\t\t/** IPv4 checks */\n\t\tif (strpos($ip_address, ':') === false) {\n\t\t\t/** Valid CIDR? */\n\t\t\tif ($cidr && !checkCIDR($cidr, 32)) return sprintf(__('%s is not valid.'), \"$ip_address/$cidr\");\n\t\t\t\n\t\t\t/** Create full IP */\n\t\t\t$ip_octets = explode('.', $ip_address);\n\t\t\tif (count($ip_octets) < 4) {\n\t\t\t\t$ip_octets = array_merge($ip_octets, array_fill(count($ip_octets), 4 - count($ip_octets), 0));\n\t\t\t}\n\t\t\t$ip_address = implode('.', $ip_octets);\n\t\t} else {\n\t\t\t/** IPv6 checks */\n\t\t\tif ($cidr && !checkCIDR($cidr, 128)) return sprintf(__('%s is not valid.'), \"$ip_address/$cidr\");\n\t\t}\n\t\t\n\t\tif (verifyIPAddress($ip_address) === false) return sprintf(__('%s is not valid.'), $ip_address);\n\t}\n\t\n\treturn $data;\n}", "title": "" }, { "docid": "f6649fe0f699bcf9b766e98ccd886264", "score": "0.62010336", "text": "public static function is_private_ip($ip) { \n\t\treturn ! filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE);\n\t}", "title": "" }, { "docid": "85437a39b9f8e12f935d2c3f5412e62b", "score": "0.61954415", "text": "function verify_address($address) // Colorize: green\n { // Colorize: green\n return isset($address) // Colorize: green\n && // Colorize: green\n is_string($address) // Colorize: green\n && // Colorize: green\n ( // Colorize: green\n filter_var($address, FILTER_VALIDATE_IP) // Colorize: green\n || // Colorize: green\n filter_var($address, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME) // Colorize: green\n ); // Colorize: green\n }", "title": "" }, { "docid": "d25369dd43255da63f90c28b38ae83dc", "score": "0.6189367", "text": "public function isValidAddress($address);", "title": "" }, { "docid": "4292f2fc14b5906503aaa667c687a069", "score": "0.6179572", "text": "public static function is_ip(&$ip) {\r\n\t\treturn self::is_ip4($ip) || self::is_ip6($ip);\r\n\t}", "title": "" }, { "docid": "24ce0d88eb9d7fd4cc2e13095a2f0e69", "score": "0.6145775", "text": "private function isValidIPN($data)\n\t{\n\t\t// 1. Check valid host\n\t\t$validIps = array();\n\n\t\tforeach ($this->validHosts as $validHost)\n\t\t{\n\t\t\t// Returns a list of IPv4 addresses to which the Internet host specified by hostname resolves.\n\t\t\t$ips = gethostbynamel($validHost);\n\n\t\t\tif ($ips !== false)\n\t\t\t{\n\t\t\t\t$validIps = array_merge($validIps, $ips);\n\t\t\t}\n\t\t}\n\n\t\t$validIps = array_unique($validIps);\n\n\t\tif (!in_array($_SERVER['REMOTE_ADDR'], $validIps))\n\t\t{\n\t\t\t// Return false;\n\t\t}\n\n\t\t// 2. Check signature\n\t\t// Build returnString from 'm_payment_id' onwards and exclude 'signature'\n\t\tforeach ($data as $key => $val)\n\t\t{\n\t\t\tif ($key == 'm_payment_id')\n\t\t\t{\n\t\t\t\t$returnString = '';\n\t\t\t}\n\n\t\t\tif (!isset($returnString))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif ($key == 'signature')\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$returnString .= $key . '=' . urlencode($val) . '&';\n\t\t}\n\n\t\t$returnString = substr($returnString, 0, -1);\n\n\t\tif (md5($returnString) != $data['signature'])\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t// 3. Call PayFast server for validity check\n\t\t$header = \"POST /eng/query/validate HTTP/1.0\\r\\n\";\n\t\t$header .= \"Content-Type: application/x-www-form-urlencoded\\r\\n\";\n\t\t$header .= \"Content-Length: \" . strlen($returnString) . \"\\r\\n\\r\\n\";\n\n\t\t// Connect to server\n\t\t$fp = fsockopen($this->getCallbackURL(), 443, $errno, $errstr, 10);\n\n\t\tif (!$fp)\n\t\t{\n\t\t\t// HTTP ERROR\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Send command to server\n\t\t\tfputs($fp, $header . $returnString);\n\n\t\t\t// Read the response from the server\n\t\t\twhile (! feof($fp))\n\t\t\t{\n\t\t\t\t$res = fgets($fp, 1024);\n\n\t\t\t\tif (strcmp($res, \"VALID\") == 0)\n\t\t\t\t{\n\t\t\t\t\tfclose($fp);\n\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfclose($fp);\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "5f7347f8d71836701cb0a983093bf3e4", "score": "0.61377615", "text": "function validate_cidr($cidr) {\n\t\t\tif (preg_match(\"/^(?:12[0-8]|1[0-1]\\d|\\d\\d|\\d)$/\", $cidr))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "04b3e24ff3046013875f642c908cd683", "score": "0.61349416", "text": "function ip_in_range($ip, $range) {\n if ( is_string($range) ) $ranges = explode(',',$range);\n else $ranges = $range;\n if (strpos($ip,':') !== false) {\n return in_array($ip,$ranges);\n } else {\n $in = false;\n foreach($ranges as $range) {\n if ($in) return $in;\n if (strpos($range,':') !== false) continue;\n # If IP has the 4 blocks is a host, but we need the prefix, so put it\n if (strpos($range,'/') === false && strpos($range,'-') === false && strpos($range,'*') === false) $range .= '/32';\n if (strpos($range, '/') !== false) {\n // $range is in IP/NETMASK format\n list($range, $netmask) = explode('/', $range, 2);\n if (strpos($netmask, '.') !== false) {\n // $netmask is a 255.255.0.0 format\n $netmask = str_replace('*', '0', $netmask);\n $netmask_dec = ip2long($netmask);\n return ( (ip2long($ip) & $netmask_dec) == (ip2long($range) & $netmask_dec) );\n } else {\n // $netmask is a CIDR size block\n // fix the range argument\n $x = explode('.', $range);\n while(count($x)<4) $x[] = '0';\n list($a,$b,$c,$d) = $x;\n $range = sprintf(\"%u.%u.%u.%u\", empty($a)?'0':$a, empty($b)?'0':$b,empty($c)?'0':$c,empty($d)?'0':$d);\n $range_dec = ip2long($range);\n $ip_dec = ip2long($ip);\n # Strategy 1 - Create the netmask with 'netmask' 1s and then fill it to 32 with 0s\n #$netmask_dec = bindec(str_pad('', $netmask, '1') . str_pad('', 32-$netmask, '0'));\n # Strategy 2 - Use math to create it\n $wildcard_dec = pow(2, (32-$netmask)) - 1;\n $netmask_dec = ~ $wildcard_dec;\n $in = (($ip_dec & $netmask_dec) == ($range_dec & $netmask_dec));\n }\n } else {\n // range might be 255.255.*.* or 1.2.3.0-1.2.3.255\n if (strpos($range, '*') !==false) { // a.b.*.* format\n // Just convert to A-B format by setting * to 0 for A and 255 for B\n $lower = str_replace('*', '0', $range);\n $upper = str_replace('*', '255', $range);\n $range = \"$lower-$upper\";\n }\n if (strpos($range, '-')!==false) { // A-B format\n list($lower, $upper) = explode('-', $range, 2);\n $lower_dec = (float)sprintf(\"%u\",ip2long($lower));\n $upper_dec = (float)sprintf(\"%u\",ip2long($upper));\n $ip_dec = (float)sprintf(\"%u\",ip2long($ip));\n $in = ( ($ip_dec>=$lower_dec) && ($ip_dec<=$upper_dec) );\n }\n }\n }\n return $in;\n }\n}", "title": "" }, { "docid": "7f22e291a5f5311a7288fafa55338814", "score": "0.6134635", "text": "public function contains( $ip )\n\t{\n\t\tif( !$this->valid ) return false;\n\t\tif( $this->isIPv4( $ip ))\n\t\t{\n\t\t\t$ip = '::'.$ip;\n\t\t}\n\t\t$addr = @inet_pton( $ip );\n\t\tif( $addr === false ) return false;\n\t\t$gmp = $this->inet_ntogmp( $addr );\n\t\treturn( \\gmp_cmp( $this->net_addr_long, $gmp ) <= 0 && \\gmp_cmp( $gmp, $this->net_broadcast_long ) <= 0 );\t\t\n\t}", "title": "" }, { "docid": "756c5a172c84b4a3de9c6b3d8296c86d", "score": "0.61180115", "text": "function isAddress($input)\n{\n $pattern = \"/^[a-zA-Z0-9]{33,34}$/\";\n return preg_match($pattern, $input);\n}", "title": "" }, { "docid": "fa5aee860672ad9b7125ca65f0387857", "score": "0.61158645", "text": "public function valid()\n {\n\n if (strlen($this->container['addressType']) > 255) {\n return false;\n }\n if (strlen($this->container['applicableRegion']) > 255) {\n return false;\n }\n if (strlen($this->container['errorCode']) > 255) {\n return false;\n }\n if (strlen($this->container['statusCode']) > 255) {\n return false;\n }\n if (strlen($this->container['careOf']) > 255) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "a30aab56faf0afd325ce448a3e8c34e4", "score": "0.60975474", "text": "private function inIPAdressRange($packedAddress, $range)\n {\n if ($range === 'private') { // RFC 6890, RFC 4193\n return ($this->inIPAdressRange($packedAddress, \"10.0.0.0-10.255.255.255\")\n || $this->inIPAdressRange($packedAddress, \"172.16.0.0-172.31.255.255\")\n || $this->inIPAdressRange($packedAddress, \"192.168.0.0-192.168.255.255\")\n || $this->inIPAdressRange($packedAddress, \"fc00::-fdff:ffff:ffff:ffff:ffff:ffff:ffff:ffff\"));\n } elseif ($range === 'loopback') { // RFC 6890\n return ($this->inIPAdressRange($packedAddress, \"127.0.0.1-127.255.255.255\")\n || $this->inIPAdressRange($packedAddress, \"::1-::1\"));\n } elseif ($range === 'link-local') { // RFC 6890, RFC 4291\n return ($this->inIPAdressRange($packedAddress, \"169.254.0.0-169.254.255.255\")\n || $this->inIPAdressRange($packedAddress, \"fe80::-febf:ffff:ffff:ffff:ffff:ffff:ffff:ffff\"));\n } else {\n $rangeLimits = explode('-', $range);\n if (count($rangeLimits) == 2) {\n $lowerLimit = $this->packedIPAddress($rangeLimits[0]);\n $upperLimit = $this->packedIPAddress($rangeLimits[1]);\n return $lowerLimit <= $packedAddress && $packedAddress <= $upperLimit;\n }\n }\n\n return FALSE;\n }", "title": "" }, { "docid": "f6142770fc62f655342d870500ec86d0", "score": "0.60915333", "text": "public function hasIp()\n {\n return (bool) $this->_getIp();\n }", "title": "" }, { "docid": "c97e6b39e7f14db597030bdd6fe45f4d", "score": "0.60812813", "text": "public function checkIpAllowed()\n {\n $ip_list = $this->options->get('allowed_ips');\n if ($ip_list) {\n $client_ip = $this->request->getClientIp();\n $status = Ip::match($client_ip, explode(',', $ip_list));\n if (!$status) {\n $this->logger->warning('IP Not Allowed');\n $response = Response::create('Access denied for IP: '.$client_ip, 403);\n $response->send();\n exit();\n }\n }\n }", "title": "" }, { "docid": "2a70901744bc9046704931085570e4ae", "score": "0.6072629", "text": "protected function verifyNetwork($input): bool\n {\n if ($this->networkRange === null) {\n return true;\n }\n\n if (isset($this->networkRange['mask'])) {\n return $this->belongsToSubnet($input);\n }\n\n $input = sprintf('%u', ip2long($input));\n\n $min = sprintf('%u', ip2long($this->networkRange['min']));\n $max = sprintf('%u', ip2long($this->networkRange['max']));\n\n return ($input >= $min) && ($input <= $max);\n }", "title": "" }, { "docid": "f162435d633c418f4565382ecb6f1853", "score": "0.606303", "text": "public static function is_valid_public_ip( $ip ) {\n\t\treturn filter_var(\n\t\t\t$ip,\n\t\t\tFILTER_VALIDATE_IP,\n\t\t\tFILTER_FLAG_IPV4 | FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE\n\t\t) !== false;\n\t}", "title": "" }, { "docid": "5243b8c5d6cee16a8fb110bf77c1ffc5", "score": "0.604821", "text": "public static function isIpBlock()\n {\n if(is_file(self::BAN_IP_FULL_PATH))\n {\n $aIpBans = file(self::BAN_IP_FULL_PATH);\n\n foreach($aIpBans as $sIp)\n {\n $sIp = trim($sIp);\n if(0 == strcmp(self::getIp(), $sIp)) return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "4c65f09cfdaea3591103f0fa257fb348", "score": "0.6044707", "text": "public function _validate_ip_address($value, $field) {\n return true;\n $ip = $this->input->ip_address();\n if ($this->input->valid_ip($ip)) {\n return $this->user->is_unique_ip($ip);\n }\n return false;\n }", "title": "" }, { "docid": "85f99126f2b409a8bd3083b6a00ab404", "score": "0.60385025", "text": "function _checkIP($ip)\n{\n _log(\"checkIP: Starting.\",\"info\");\n global $caasnode;\n _log(\"checkIP: IP address is $ip.\",\"info\");\n $cIP = ip2long($ip);\n $fIP = long2ip($cIP);\n if($fIP=='0.0.0.0')\n\t{\n\t\t_log(\"-----Failed to process node ($caasnode): IPaddress is not valid.\",\"SUMMARY\");\n\t\t_logProvsionEndToDb(0,\"Failed to process node: IPaddress is not valid.\");\n\t\t_exit1(\"Exiting at checkIP: Invalid ip address, aborting \\n\\n\\n\");\n\t}\n _log(\"checkIP: $ip is a valid ip address.\",\"info\");\n _log(\"checkIP: Exiting.\",\"info\");\n}", "title": "" }, { "docid": "7beb0a7b99cc9b94c0ae304f52a587ff", "score": "0.60373485", "text": "public function testIPIsValid()\n {\n $settings = require(__DIR__ . '/../src/settings.php');\n $geo_ip = new GeoIP($settings['settings']);\n\n $this->assertTrue($geo_ip->validateIP('10.0.0.1'));\n }", "title": "" }, { "docid": "2200d6ed271bc7b86d783e86e0d19cee", "score": "0.60257655", "text": "public static function ipInRange (string $ip, string $range): bool {\n if (!str_contains($range, '/')) {\n $range .= '/32';\n }\n $range_full = explode('/', $range, 2);\n $netmask_decimal = ~(pow(2, (32 - $range_full[1])) - 1);\n return (ip2long($ip) & $netmask_decimal) == (ip2long($range_full[0]) & $netmask_decimal);\n }", "title": "" }, { "docid": "9a8e9519b55d53584eb8705a3fa49d11", "score": "0.60241723", "text": "public function checkBackendIpOrDie() {}", "title": "" }, { "docid": "11f3f144559dbf43bb08e396e27967e8", "score": "0.60107327", "text": "public static function invalidIpDataProvider() {}", "title": "" }, { "docid": "300349e34cb430f3164f9fda3c207614", "score": "0.5998471", "text": "function is_ipaddr($ipaddr) {\n\tif (!is_string($ipaddr))\n\treturn false;\n\n\t$ip_long = ip2long($ipaddr);\n\t$ip_reverse = long2ip($ip_long);\n\n\tif ($ipaddr == $ip_reverse)\n\treturn true;\n\telse\n\treturn false;\n}", "title": "" } ]
a01d61feb5d76e7677347e6dc6075290
Get the PDO driver name.
[ { "docid": "214ce7b196ea47a9ca9e86fd10697fac", "score": "0.71602905", "text": "public function getDriverName()\n\t{\n\t\treturn $this->neoeloquent->getDriverName();\n\t}", "title": "" } ]
[ { "docid": "c5b53794942d7e7f0e73d6bc740e7c2a", "score": "0.86766", "text": "public function getDriverName()\n {\n return $this->pdo->getAttribute ( \\PDO::ATTR_DRIVER_NAME );\n }", "title": "" }, { "docid": "f12256906c8567e350b5b9eedea8bb5e", "score": "0.86722803", "text": "public function getDriverName() {\n return $this->pdoObj->getAttribute( \\PDO::ATTR_DRIVER_NAME );\n }", "title": "" }, { "docid": "5636a9ad1160fd022183e067a6c84457", "score": "0.85715747", "text": "protected function getDriver(): string\n {\n return $this->pdo->getAttribute(\\PDO::ATTR_DRIVER_NAME);\n }", "title": "" }, { "docid": "bf5b7a05e4d8c20fb7d224d315a2c2a3", "score": "0.7771297", "text": "public function getDriverName()\n {\n return $this->db->get_dbfamily();\n }", "title": "" }, { "docid": "480d31d70a4bf496c7f5f9bb0d386dd6", "score": "0.7768294", "text": "public function getDriver()\n {\n if ($this->driver === null) {\n $this->driver = $this->getPDO()->getAttribute(PDO::ATTR_DRIVER_NAME);\n }\n\n return $this->driver;\n }", "title": "" }, { "docid": "8b598ba816ab567d207b85f4b7f5bbf0", "score": "0.772186", "text": "public function getDriverName()\n {\n return $this->getConfig('driver');\n }", "title": "" }, { "docid": "7ff8f74fd6609e94f8d51994f56f8a22", "score": "0.76810646", "text": "function sql_driver() {\n\t$sql = sql_connect();\n\treturn $sql->getAttribute(PDO::ATTR_DRIVER_NAME);\n}", "title": "" }, { "docid": "0f066363f9a0f788734afb469a263386", "score": "0.7635424", "text": "public function getDriverName()\n {\n return isset($this->driverName) ? $this->driverName : null;\n }", "title": "" }, { "docid": "d57e66fa764625b8c1c3d17779aa69cd", "score": "0.75597346", "text": "private static function _dbDriver(): string\n {\n $db = Craft::$app->getDb();\n\n if ($db->getIsMysql()) {\n $driverName = 'MySQL';\n } else {\n $driverName = 'PostgreSQL';\n }\n\n return $driverName . ' ' . App::normalizeVersion($db->getSchema()->getServerVersion());\n }", "title": "" }, { "docid": "88364e00cc29fabcfa54df50ce20d65c", "score": "0.7396705", "text": "final public function getDriverName(): string\n {\n return $this->driver;\n }", "title": "" }, { "docid": "bdf32f1f299a6a3b1398a45946b87639", "score": "0.7391016", "text": "public function getDriverName()\r\n {\r\n $reflect = new \\ReflectionClass($this);\r\n $namespace = $reflect->getNamespaceName();\r\n\r\n return substr(strrchr($namespace, \"\\\\\"), 1);\r\n }", "title": "" }, { "docid": "ceeb14b26bd8e2a47d20aca13a65f745", "score": "0.73583823", "text": "public function getDriverName()\n {\n return $this->driverName;\n }", "title": "" }, { "docid": "fe731db3d7161917aa5cb5c627a5bceb", "score": "0.73365223", "text": "public function getDriverName() {\n return $this->driverName;\n }", "title": "" }, { "docid": "fa571f24d22450637941c6980beb1700", "score": "0.6997343", "text": "public static function getDriverName()\n {\n }", "title": "" }, { "docid": "c4e58c08b84d8710e84158aa812744eb", "score": "0.6926595", "text": "public function driver()\n {\n return strtolower($this->driver);\n }", "title": "" }, { "docid": "bc56cee71119b3d91feff98ca2b9b095", "score": "0.6828638", "text": "public function getDriverIdentifier()\n {\n return $this->driver;\n }", "title": "" }, { "docid": "eaf971bd205c103deb71f3e46b77b77e", "score": "0.67275256", "text": "public function getDriver(): ?string\n {\n \\Logger::getLogger(\\get_class($this))\n ->info(\\sprintf(\n __METHOD__ . \" get '%s'\",\n $this->driver === null\n ? \"null\"\n : $this->driver\n ));\n return $this->driver;\n }", "title": "" }, { "docid": "9abd227f270e2a91f1cda6df3a5af581", "score": "0.6710707", "text": "Public Function getDSN() {\n\t\tIf($this->driver == 'sqlite' || $this->driver == 'sqlite2')\n\t\t\tReturn $this->driver.':'.$this->getDatabaseName();\n\t\tElseIf($this->driver == 'pgsql')\n\t\t\tReturn sprintf ( \"pgsql:dbname=%s;user=%s;password=%s;host=%s\",\n\t\t\t\t$this->getDatabaseName(), $this->getUsername(), $this->getPassword(), $this->getHostname() );\n\t\tElse Return $this->driver.':host='.$this->getHostname().';dbname='.$this->getDatabaseName();\n\t}", "title": "" }, { "docid": "6f414895b25c8b089f0c4291f096c6c5", "score": "0.66960454", "text": "public function driver(): ?string\n {\n return $this->driver;\n }", "title": "" }, { "docid": "9e4cd0ec0d1768de2f6955bb3e8b1aa2", "score": "0.66804385", "text": "public function getDriver()\n {\n return $this->config['driver'];\n }", "title": "" }, { "docid": "e0d922cd44903c29bfcfb4fc5b859271", "score": "0.6669475", "text": "public function getDefaultDriver(): string\n {\n return $this->app['config'][$this->driverKey()];\n }", "title": "" }, { "docid": "961a5a609733bd41f7ec723957a8f1a2", "score": "0.6634578", "text": "public function getDriver()\r\n\t{\r\n\t\treturn $this->dbDriver;\r\n\t}", "title": "" }, { "docid": "c80b1a3d3f39079f536d5b036db5675b", "score": "0.6587846", "text": "public function getDriver(): PDODriverInterface;", "title": "" }, { "docid": "b587d2e5aafd59eda555120090bf8d39", "score": "0.6496545", "text": "public function getDefaultDriver(): string\n {\n return $this->config('version');\n }", "title": "" }, { "docid": "0b05d1c0a04b1d014d1c0542f135f6fc", "score": "0.64941746", "text": "function dbName()\n\t{\n\t\t$dsn = $this->dsnArray();\n\t\tif (empty($dsn))\n\t\t\treturn null;\n\t\treturn $dsn['dbname'];\n\t}", "title": "" }, { "docid": "541e6e980109bf27490db3837aa89a68", "score": "0.6447731", "text": "public function get_dsn() {\n\t\tswitch ( $this->db_info['driver'] ) {\n\t\t\tdefault :\n\t\t\t\t$dsn = \"mysql:host=\" . $this->db_info['host'] . \";\";\n\t\t\t\t$dsn.= empty($this->db_info['port']) ? \"\" : $this->db_info['port'] . \";\";\n\t\t\t\t$dsn.= \"dbname=\" . $this->db_info['name'] . \";\";\n\t\t}\n\t\treturn $dsn;\n\t}", "title": "" }, { "docid": "6f6df7af306121cba442331a1b3da81c", "score": "0.64282906", "text": "public function getDriver()\n {\n return $this->driver;\n }", "title": "" }, { "docid": "a2dfbc7c34b45110c0e497534aef0881", "score": "0.6406325", "text": "public function getDriverName(): string;", "title": "" }, { "docid": "c87b8b0bf801b6074d0dfff14752f962", "score": "0.6395841", "text": "public static function driverClass($driver) {\n if ($driver instanceof PDO) {\n $name = $driver->getAttribute(PDO::ATTR_DRIVER_NAME);\n } else {\n $name = (string)$driver;\n }\n\n $name = strtolower($name);\n return isset(self::$drivers[$name]) ? self::$drivers[$name] : null;\n }", "title": "" }, { "docid": "73f01b88aeffa9ea22e83566821cc42e", "score": "0.6390542", "text": "public function getDriver()\n {\n return $this->_driver;\n }", "title": "" }, { "docid": "73f01b88aeffa9ea22e83566821cc42e", "score": "0.6390542", "text": "public function getDriver()\n {\n return $this->_driver;\n }", "title": "" }, { "docid": "89a7c6a2cfa21b4903aa859afa8f38db", "score": "0.6385588", "text": "public function getDriver()\n\t{\n\t\treturn $this->driver;\n\t}", "title": "" }, { "docid": "a58c1fad758b965bb9d5143e16efcbf5", "score": "0.63848275", "text": "protected function dsn()\r\n {\r\n $dsn = $this->config;\r\n\r\n// don't pass the username, password, charset, persistent and driver_options in the DSN\r\n unset($dsn['username']);\r\n unset($dsn['password']);\r\n unset($dsn['options']);\r\n unset($dsn['charset']);\r\n unset($dsn['persistent']);\r\n unset($dsn['driver_options']);\r\n\r\n// use all remaining parts in the DSN\r\n foreach ($dsn as $key => $val) {\r\n $dsn[$key] = \"$key=$val\";\r\n }\r\n\r\n return $this->pdoType . ':' . implode(';', $dsn);\r\n }", "title": "" }, { "docid": "68122ff2126485ab2765c62faedf4db2", "score": "0.63788927", "text": "protected function getSelectedDbalDriver() {}", "title": "" }, { "docid": "0f4e796476e85e495081eb5f471a22a6", "score": "0.6363499", "text": "public static function getDatabase() {\n return self::$PDO;\n }", "title": "" }, { "docid": "c7cc580fdfe3b158b9270beb325bed4d", "score": "0.6359927", "text": "public static function getDriverClass(): string\n {\n return static::$sDriverClass;\n }", "title": "" }, { "docid": "1917d82b6914abdc947ce16a4fa932c5", "score": "0.6352542", "text": "public function get_driver()\n\t{\n\t\treturn $this->driver;\n\t}", "title": "" }, { "docid": "9c3f91a090afcff80a2af1363bc728e2", "score": "0.632747", "text": "public function getTranslationDriver()\n {\n return \\XLite\\Core\\Translation::getInstance()->getDriver()->getName();\n }", "title": "" }, { "docid": "d30642f21574554ebb0345f6681eef09", "score": "0.62986374", "text": "public function getPDOConnectionString() {\n if ($this->type==self::TYPE_MYSQL){\n return 'mysql:host='.$this->dbServer.';'.(!empty($this->port)?'port='.$this->port.';':'').(!empty($this->dbName)?'dbname='.$this->dbName.';':'').'charset=utf8';\n }else{\n throw new NotSupportedException('PDO connection is not available for DB type '.$this->type);\n }\n }", "title": "" }, { "docid": "65b5a008787aa4c0a818b97cc1431033", "score": "0.6283158", "text": "function get_driver_class_name()\n {\n return get_called_class();\n }", "title": "" }, { "docid": "a513a1de2ca511671de12e015fa88aa3", "score": "0.6279477", "text": "function dbName()\n{\n\treturn $this->drv->dbName();\n}", "title": "" }, { "docid": "496fad4ad6b0bc2340f48b85d34240ce", "score": "0.62732893", "text": "public function pdo() {\n \treturn $this->config->pdo();\n }", "title": "" }, { "docid": "7ab156fc463c32a86717960d46e07f13", "score": "0.62682945", "text": "public function getName($connection = null)\n {\n return $connection ?: $this->getDefaultDriver();\n }", "title": "" }, { "docid": "7ab156fc463c32a86717960d46e07f13", "score": "0.62682945", "text": "public function getName($connection = null)\n {\n return $connection ?: $this->getDefaultDriver();\n }", "title": "" }, { "docid": "7ab156fc463c32a86717960d46e07f13", "score": "0.62682945", "text": "public function getName($connection = null)\n {\n return $connection ?: $this->getDefaultDriver();\n }", "title": "" }, { "docid": "fc69826350261344e5799db628ec4ac2", "score": "0.6234088", "text": "public function driver()\n {\n return $this->driver;\n }", "title": "" }, { "docid": "b2a2adc847495aba76f58d7aefe418c0", "score": "0.62222403", "text": "public function getdriver()\n {\n return $this->driver;\n }", "title": "" }, { "docid": "e00e18e6bce24396e6ab5b0c79f7606f", "score": "0.6220304", "text": "public function getConnectionName()\n {\n return config('yotpo.database.connection') ?? $this->connection;\n }", "title": "" }, { "docid": "71a9fe93d05b003922746e893e9033ba", "score": "0.62093985", "text": "public function getDefaultDriver()\n {\n $driver = $this->config[self::$packageName.'::driver'];\n return $driver;\n }", "title": "" }, { "docid": "0ddcda027d365c4e44f326bf3a143d3b", "score": "0.6177697", "text": "final public function getDriver() {\n return $this->driver;\n }", "title": "" }, { "docid": "7217117d750d2291be2fe987d5c17763", "score": "0.61712515", "text": "public function getConnectionName()\n {\n return config('profiler.storage.database.connection');\n }", "title": "" }, { "docid": "fdf190d9af1c00fc733d9de1733b1728", "score": "0.61664206", "text": "public function getConnectionName()\n\t{\n\t\treturn empty($this->db_conn) ? $this->db_conn_name : $this->getConnection()->getName();\n\t}", "title": "" }, { "docid": "e33a843afe9f5f53eefba3c59edd99f4", "score": "0.6128032", "text": "public function getDbName()\n\t{\n\t\treturn $this->db_name;\n\t}", "title": "" }, { "docid": "ab42de1fa7203b10c533216acbd7f2a8", "score": "0.61031944", "text": "public function getAdapterName()\n {\n return 'Db';\n }", "title": "" }, { "docid": "ed71332a76ec0a1de30b9a44ad9f2240", "score": "0.6085582", "text": "public function dbname() {\n return $this->db['dbname'];\n }", "title": "" }, { "docid": "e4c3a4453ea6a723ae8ae52bcd180b87", "score": "0.60808605", "text": "public function getDriver()\n {\n return $this->_list->getDriver();\n }", "title": "" }, { "docid": "0d8cfafd0158023c80557ca7a36e5937", "score": "0.6062016", "text": "public function getDriver() {\n return $this->_driver;\n }", "title": "" }, { "docid": "0d8cfafd0158023c80557ca7a36e5937", "score": "0.6062016", "text": "public function getDriver() {\n return $this->_driver;\n }", "title": "" }, { "docid": "fff80ff51f39756fffd8aa8cb15b7b57", "score": "0.6049386", "text": "public function getAdapter()\n {\n return $this->_pdo;\n }", "title": "" }, { "docid": "ac03eb35216a6c91568ab2b33eabd1ea", "score": "0.6046923", "text": "final public function getDBname() {\n \t\treturn $this->dbase;\n }", "title": "" }, { "docid": "15ee6e0d5a65c9c9641c6cef8676d8ed", "score": "0.6024256", "text": "public function getDefaultDriver(): string\n {\n return $this->config->get(\"auth.default.password\");\n }", "title": "" }, { "docid": "4dd37a9e4aba293b64ba7c1e57f37ddd", "score": "0.6012145", "text": "public function getDbName():string {\n $database = $this->db->database;\n if($database) {\n return $database;\n }\n return $this->db->db->database;\n }", "title": "" }, { "docid": "6cefdc4fef625af7d9356f2d8bd97570", "score": "0.6000621", "text": "public static function getDSN(): string\n {\n if (IS_WINDOWS) {\n\t\t\treturn \"sqlsrv:server=\" . self::HOST . \"; Database=\" . self::DATABASE;\n\t\t}\n \n return \"dblib:host=\" . self::HOST . \";dbname=\" . self::DATABASE;\n }", "title": "" }, { "docid": "51e66e65731a1664d235cd5e8652f88b", "score": "0.5997709", "text": "public function getDbName(): string\n {\n $parts = pathinfo($this->dbPath);\n\n return $parts['filename'];\n }", "title": "" }, { "docid": "4d40405a38a6105c3c0791e3a8ccf334", "score": "0.59922457", "text": "public function getCacheDriver()\n {\n return (string)$this->cacheDriver;\n }", "title": "" }, { "docid": "3298b8409a00c91c5dbe531a939299b0", "score": "0.59667385", "text": "public function getDefaultDriver()\n {\n $driver = $this->app['config']['localize-middleware']['driver'];\n\n return is_array($driver) ? 'stack' : $driver;\n }", "title": "" }, { "docid": "dd159c1080aef37c206d6e25c604283c", "score": "0.59655344", "text": "public function getDriver( $dbquery )\n\t{\n\t\t$lc_driver = strtolower( $dbquery->database->settings['driver'] );\n\t\t\n\t\tif( $lc_driver === 'mysql' )\n\t\t\t$adapter = 'MySQL';\n\t\telse\n\t\t\t$adapter = null;\n\n\t\treturn $adapter;\n\t}", "title": "" }, { "docid": "01712d57b1489a92bb5a716369ed70ac", "score": "0.59542197", "text": "private function get_DB_name() {\n global $CFG;\n return $CFG->dbname;\n }", "title": "" }, { "docid": "3c9f99c4c8ca8a3cd1a9ca78f9c9a398", "score": "0.5942915", "text": "public function getConnectionName()\n {\n return config('google-ads-api.database.connection') ?? $this->connection;\n }", "title": "" }, { "docid": "41abcfc4ace4d75a654c1e8f3bda8987", "score": "0.59385175", "text": "function strGetDriverType() {\n return $this->strDriverType;\n }", "title": "" }, { "docid": "01756dcd4369c5f9ce959277395bbe44", "score": "0.59361583", "text": "public function getConnectionName()\n {\n return config('telescope.storage.database.connection');\n }", "title": "" }, { "docid": "3c2e666795e77659b1787287045a67db", "score": "0.59361583", "text": "private static function _imageDriver(): string\n {\n $imagesService = Craft::$app->getImages();\n\n if ($imagesService->getIsGd()) {\n $driverName = 'GD';\n } else {\n $driverName = 'Imagick';\n }\n\n return $driverName . ' ' . $imagesService->getVersion();\n }", "title": "" }, { "docid": "7351dbf81053015f650aae61aa01af8f", "score": "0.59313655", "text": "public function getPDO()\n\t{\n\t\treturn $this->pdo;\n\t}", "title": "" }, { "docid": "c5d21f8ba66b724a8ff84504ad9f2871", "score": "0.5924018", "text": "public function getDatabaseName(): string\n {\n if (isset($this->database)) {\n return $this->database;\n }\n\n $connection = $this->getConnection();\n $db = $connection->getSelectDb() ?: $connection->getDb();\n // release\n $connection->release();\n\n return $db;\n }", "title": "" }, { "docid": "4d2b29b83e83b9300a58572325f525be", "score": "0.591577", "text": "public function getPDO()\n {\n return $this->pdo;\n }", "title": "" }, { "docid": "bc583b9d141ff68480d2fdd1e45ae308", "score": "0.59150875", "text": "public static function pdo()\n {\n return static::mapper()->pdo();\n }", "title": "" }, { "docid": "a6a6f884564b0749b1bcf82334317a13", "score": "0.59069216", "text": "public function getDefaultDriver(): ?string\n {\n return $this->config['default'];\n }", "title": "" }, { "docid": "0b8617347875e29984d9b64cbb12c4d2", "score": "0.5900241", "text": "function getDriver($name = null);", "title": "" }, { "docid": "a6002a038b4455a18763700d4d383b5e", "score": "0.5886355", "text": "function getAdapterName();", "title": "" }, { "docid": "52e7392719764800b4523fc7732fb1f8", "score": "0.5877326", "text": "public function getConnectionName();", "title": "" }, { "docid": "52e7392719764800b4523fc7732fb1f8", "score": "0.5877326", "text": "public function getConnectionName();", "title": "" }, { "docid": "52e7392719764800b4523fc7732fb1f8", "score": "0.5877326", "text": "public function getConnectionName();", "title": "" }, { "docid": "b5d8c97af67b49c9b2b5bb1fdb571590", "score": "0.5864332", "text": "public function connectionDb(): PDO\n {\n return static::$connectionDb;\n }", "title": "" }, { "docid": "5fe1b15c7634d73ad7b6514ecd73bdd1", "score": "0.58567303", "text": "public function getDBName()\n {\n return $this->db_name;\n }", "title": "" }, { "docid": "0bd8d2cf470878757fe3e15f6326fede", "score": "0.58410114", "text": "public function getPdoConnectionString(): string;", "title": "" }, { "docid": "01e318c65ff881bdf1393ccec23f212c", "score": "0.58368915", "text": "public function getDBname() {\n return $this->dbname;\n }", "title": "" }, { "docid": "4f15246ddf04996346316814a07eaa24", "score": "0.583239", "text": "public function getPDOType()\n {\n return PropelTypes::getPDOType($this->getType());\n }", "title": "" }, { "docid": "11061c28d9bd5869b5ca7dfbe0f8a89d", "score": "0.583214", "text": "protected static function getAvailableDriver()\n {\n $serverDiagnostic = new ServerDiagnostic();\n $candidates = [\n [\n \"name\" => \"gd\",\n \"type\" => \"extension\",\n ],\n [\n \"name\" => \"imagick\",\n \"type\" => \"extension\",\n ],\n ];\n $diagnostic = $serverDiagnostic->checkRequirements($candidates);\n\n if ($diagnostic[\"imagick\"][\"passed\"]) {\n return \"imagick\";\n } else if ($diagnostic[\"gd\"][\"passed\"]) {\n return \"gd\";\n }\n\n // Return gd by default\n return \"gd\";\n }", "title": "" }, { "docid": "ec5e1ea993bb61386ae8054b1822e971", "score": "0.5825979", "text": "Public Function getDriver() { Return $this->driver; }", "title": "" }, { "docid": "ae74ae26665620c7e5ea16188d075ecf", "score": "0.5822146", "text": "public function getPDO() {\n return $this->db;\n }", "title": "" }, { "docid": "924b6aa1aa1c2eadbdf04e1d86f11b1a", "score": "0.5816859", "text": "protected function getPDO()\n {\n return $this->pdo;\n }", "title": "" }, { "docid": "0a0917cbac7db48203c81fd0e17c2b4f", "score": "0.5813381", "text": "public function getClassName()\n {\n $adapter = $this->getAdapter();\n\n if ($adapter) {\n return $adapter;\n }\n\n $scheme = $this->dsn->scheme;\n\n return 'Cake\\Log\\Engine\\\\' . ucfirst($scheme) . 'Log';\n }", "title": "" }, { "docid": "b0a8ca0406d67ff9d03e56281e4749ac", "score": "0.5801778", "text": "protected function getCurrentDatabase()\n {\n // http://stackoverflow.com/questions/9322302/how-to-get-database-name-in-pdo\n return $this->query(\"select database()\")->fetchColumn();\n }", "title": "" }, { "docid": "052dffe4a055c598bd64d1229b878862", "score": "0.5797164", "text": "public function getDefaultDriver()\n {\n return $this->configurations['driver'] ?? 'gd';\n }", "title": "" }, { "docid": "8bebf50d9e0af35baa91898f94fddb48", "score": "0.5785773", "text": "public static function get_pdo() {\n if (static::$pdo == null) {\n static::init();\n }\n\n return static::$pdo;\n }", "title": "" }, { "docid": "c8cfd1e2788d83b086ca8a05257ea4d9", "score": "0.5784262", "text": "public function getPDO()\n {\n $pdo = $this->provider->getPDO();\n\n $pdo->setAttribute(PDO::ATTR_ORACLE_NULLS, PDO::NULL_TO_STRING);\n\n $pdo->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, TRUE);\n\n return $pdo;\n\n\n }", "title": "" }, { "docid": "a51a9b40e4bd4efb0f10fead89405786", "score": "0.5781739", "text": "public static function getDatabasePlatform(): string;", "title": "" }, { "docid": "b61199591d18820490a4fec3df3c64cf", "score": "0.5781002", "text": "public final function getPDO() {\n\t\treturn($this->getConnection()->getConnection());\n\t}", "title": "" }, { "docid": "b61199591d18820490a4fec3df3c64cf", "score": "0.5781002", "text": "public final function getPDO() {\n\t\treturn($this->getConnection()->getConnection());\n\t}", "title": "" }, { "docid": "f2d7a7b7c497f9a4ef6c48aab8f6e9c3", "score": "0.57692116", "text": "public static function getConnection()\n {\n return self::$pdo;\n }", "title": "" } ]
96f764919632735fc705c3c3d4b7e103
Sorts two Article from new to old.
[ { "docid": "c4aaf8d51d1fd5dc13f50a7dd49e3ab0", "score": "0.55214334", "text": "public static function articleDesc($a, $b) {\n\t\tif($a->getDate() == $b->getDate())\n\t\t\treturn 0;\n\t\treturn $a->getDate() < $b->getDate() ? 1 : -1;\n\t}", "title": "" } ]
[ { "docid": "0e4ccf7567c4ca6a0d07e98c964b45c0", "score": "0.63978225", "text": "public static function articleAsc($a, $b) {\n\t\tif($a->getDate() == $b->getDate())\n\t\t\treturn 0;\n\t\treturn $a->getDate() > $b->getDate() ? 1 : -1;\n\t}", "title": "" }, { "docid": "90ddf9842adc9b42ca451518fa9fa9cf", "score": "0.61485296", "text": "function sorteer($a, $b){\n if($a->klasse == $b->klasse){return 0;}\n elseif($a->klasse < $b->klasse){return -1;}\n else{return 1;}\n }", "title": "" }, { "docid": "d06fc956b9b0ea9ee47a9ab242f79184", "score": "0.61080384", "text": "function cmp($a, $b)\n {\n if($a->date == $b->date) \n {\n return 0;\n }\n return ($a->date < $b->date) ? 1 : -1;\n }", "title": "" }, { "docid": "e2e00444a556849ea797ec886544c607", "score": "0.60787827", "text": "private static function sortArticles(array $articles) {\n\n $temp_articles = array();\n\n foreach ($articles as $i => $article) {\n if (array_key_exists('offset', $article)) $offset_key = 'offset';\n else $offset_key = 1;\n $scaled_offset = $article[$offset_key]*(1+self::EPSILON);\n $new_index = $i-$scaled_offset;\n $temp_articles[\"$new_index\"] = $article;\n }\n\n ksort($temp_articles);\n\n $new_articles = array();\n foreach($temp_articles as $article) $new_articles[] = $article;\n\n return $new_articles;\n }", "title": "" }, { "docid": "e054a530307b43f3e53a04382cdf75fb", "score": "0.60700816", "text": "function sortByDate ($a, $b) {\n\t return strtotime($a['publishedDate']) < strtotime($b['publishedDate']);\n}", "title": "" }, { "docid": "5714b2987151b656a867f1264e39fb5e", "score": "0.59914947", "text": "public function doSort();", "title": "" }, { "docid": "751f593dee159874b7c5ef5e2df63ed7", "score": "0.5975095", "text": "function _release_sort($a, $b) {\n // This array maps fields in the release node to the sort order, where -1\n // means to sort like Drupal weights, and +1 means the bigger numbers are\n // higher in the listing.\n $fields = array(\n 'weight' => -1,\n 'version_major' => 1,\n 'rebuild' => -1,\n 'version_minor' => 1,\n 'version_patch' => 1,\n 'timestamp' => 1,\n );\n foreach ($fields as $field => $sign) {\n if (!isset($a->$field) && !isset($b->$field)) {\n continue;\n }\n if ($a->$field == $b->$field) {\n continue;\n }\n return ($a->$field < $b->$field) ? $sign : (-1 * $sign);\n }\n}", "title": "" }, { "docid": "300512a2e957d67b449a292155b011a1", "score": "0.59668595", "text": "public function sort();", "title": "" }, { "docid": "73edcf2f78f45627fcdb5eb17e7b53b0", "score": "0.5940068", "text": "function sortTestimonials($a, $b)\n{\n return strcmp($a->siteTestimonialId, $b->siteTestimonialId);\n}", "title": "" }, { "docid": "de84bdc4e0a2e595bb7e5df67833b753", "score": "0.5924215", "text": "function sort() {\n usort($this->feeds,array(\"RssMerger\",\"feeds_cmp\"));\n }", "title": "" }, { "docid": "8646edf299839845527d41701b89e606", "score": "0.5920667", "text": "function boj_multisite_sort_posts_array( $a, $b ) {\n\n\t//if dates are the same return 0\n\tif ($a->post_date == $b->post_date)\n\t\treturn 0;\n\t\n\t//ternary operator to determine which date is newer\n\treturn $a->post_date < $b->post_date ? 1 : -1;\n\n}", "title": "" }, { "docid": "0a0c3edef1da400876a0e2459375c4f2", "score": "0.5868895", "text": "function sort_ordering( &$a, &$b) {\r\n\t\tif( $a->ordering == $b->ordering ) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn $a->ordering < $b->ordering ? -1 : 1;\r\n\t}", "title": "" }, { "docid": "1cd2a2033f968f5bd3bede26b3bb7f47", "score": "0.586059", "text": "function date_sort_modif($d1, $d2) {\n\t$date1 = date('j.n.Y H:i', (int) $d1->timestamp); //On récupère la date de publication de l'item\n\t$date2 = date('j.n.Y H:i', (int) $d2->timestamp);\n return strtotime($date2) - strtotime($date1);\n}", "title": "" }, { "docid": "60508af5cd6e571a40bfd09efaae96c4", "score": "0.58588976", "text": "function sortFunction( $a, $b ) {\n return strtotime($a[\"date\"]) - strtotime($b[\"date\"]);\n }", "title": "" }, { "docid": "9957f859fb03dad2c3e8a5626f673455", "score": "0.5857895", "text": "function ldap_sort_entries_swap(&$ldap_entries,$entry1,$entry2)\n{\n\t$temp = $ldap_entries[$entry1];\n\t$ldap_entries[$entry1] = $ldap_entries[$entry2];\n\t$ldap_entries[$entry2] = $temp;\n}", "title": "" }, { "docid": "5886fe438f2acae04b8b5729eb0f66ab", "score": "0.58331454", "text": "public function resort(array $old_order, tx_newspaper_Articlelist_Operation $operation) {\n\n $timer = tx_newspaper_ExecutionTimer::create();\n\n try {\n $index = self::indexOfArticle($operation->getUid(), $old_order);\n } catch (tx_newspaper_Exception $e) {\n // article not in list; do nothing.\n return;\n }\n\n if ($operation->shuffleValue()) {\n $this->resortArticle($operation->getUid(), $operation->shuffleValue(), $old_order);\n } else if ($operation->isToTop()) {\n $this->sortArticleToTop($index, $old_order);\n } else if ($operation->isToBottom()) {\n $this->dropArticle($index, $old_order);\n } else {\n throw new tx_newspaper_IllegalUsageException('WTF is that: ' . $operation);\n }\n\n return $old_order;\n }", "title": "" }, { "docid": "1f9f5a74f5626a654c135292c75dfe60", "score": "0.5761665", "text": "function usort_reorder($a,$b){\r\n $orderby = (!empty($_REQUEST['orderby'])) ? $_REQUEST['orderby'] : 'blog_title'; //If no sort, default to title\r\n $order = (!empty($_REQUEST['order'])) ? $_REQUEST['order'] : 'asc'; //If no order, default to asc\r\n $result = strcmp($a[$orderby], $b[$orderby]); //Determine sort order\r\n return ($order==='asc') ? $result : -$result; //Send final sort direction to usort\r\n }", "title": "" }, { "docid": "4d31d93793c9d9ac3380df57cbc05b0e", "score": "0.57341343", "text": "function reorder($a, $b) {\n\t\t// Sanifications etc are done manually\n\t\t// If no orderby or wrong orderby, default to plugin or theme name.\n\t\t$orderby = (!empty($_GET['orderby']) && in_array($_GET['orderby'], ['name', 'downloaded', 'minimum', 'compatible'], true)) ? $_GET['orderby'] : 'downloaded'; // phpcs:ignore WordPress.Security.NonceVerification.Recommended,WordPress.Security.ValidatedSanitizedInput.MissingUnslash,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized\n\t\t// If no order or wrong order, default to asc.\n\t\t$order = (!empty($_GET['order']) && $_GET['order'] !== 'desc') ? 'asc' : 'desc'; // phpcs:ignore WordPress.Security.NonceVerification.Recommended,WordPress.Security.ValidatedSanitizedInput.MissingUnslash\n\n\t\t// Properly order numeric values or reorder text case-insensitive.\n\t\tif ($orderby === 'downloaded') {\n\t\t\t$result = $a[$orderby] - $b[$orderby];\n\t\t} elseif ($orderby === 'minimum') {\n\t\t\t$result = version_compare($a[$orderby], $b[$orderby]);\n\t\t} else {\n\t\t\t$result = strcasecmp($a[$orderby], $b[$orderby]);\n\t\t}\n\t\tif ($result === 0) {\n\t\t\t$result = $a['downloaded'] - $b['downloaded'];\n\t\t}\n\t\treturn ( $order === 'asc' ) ? $result : -$result;\n\t}", "title": "" }, { "docid": "46659538a188f4cc5f9e4ed2071198e1", "score": "0.5719361", "text": "public function asort();", "title": "" }, { "docid": "3ed38948a027facb62b729348277fa87", "score": "0.57035995", "text": "protected function sortEntities($a, $b)\n {\n if ($a['indices'][0] === $b['indices'][0]) {\n return 0;\n }\n return ($a['indices'][0] < $b['indices'][0]) ? -1 : 1;\n }", "title": "" }, { "docid": "14201a6acbf2ac6fdd335f344d71b7d2", "score": "0.5692032", "text": "function _sort_entry_date($a, $b)\n {\n if ($a['timestamp'] == $b['timestamp'] ) {\n return 0;\n }\n\n return ($a['timestamp'] > $b['timestamp']) ? -1 : 1;\n }", "title": "" }, { "docid": "72a17755d8eef958a2c933aff4ae83f2", "score": "0.5687314", "text": "function _time_tracker_sort_entries_asc($a, $b) {\n return strcmp($b->timestamp, $a->timestamp);\n}", "title": "" }, { "docid": "4ecf201f9a451fcdb09768301b52ea14", "score": "0.5661044", "text": "static function cmp($a, $b){\n\t\tif($a->getTopicName() > $b->getTopicName()){\n\t\t\treturn 1;\n\t\t} else if($a->getTopicName() < $b->getTopicName()){\n\t\t\treturn -1;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "9067dff38a489bd6205ccbe227557f3a", "score": "0.5659584", "text": "function _rsort_entry_date($a, $b)\n {\n if ($a['timestamp'] == $b['timestamp']) {\n return 0;\n }\n\n return ($a['timestamp'] < $b['timestamp']) ? -1 : 1;\n }", "title": "" }, { "docid": "b59823f513a7227613d9b9ad82156fd8", "score": "0.56472427", "text": "function sortArray ($a, $b) { \n\t$return = strcmp($a[sortauthor],$b[sortauthor]);\n\tif ($return == 0) {\n\t\t$return = strcmp($a[sortyear],$b[sortyear]);\n\t\t$return = -$return;\n\t\tif ($return == 0) {\n\t\t\t$return = strcmp($a[sorttitle],$b[sorttitle]);\n\t\t\treturn $return;\n\t\t}\n\t\telse { return $return; }\n\t} \n\telse { return $return; }\n}", "title": "" }, { "docid": "155c9a8f8c3d56952e9ee7bcfaecb86b", "score": "0.5646435", "text": "function _sort($obj_1, $obj_2) {\n\t\tif ($obj_1['StartDate'] == $obj_2['StartDate']) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn ($obj_1['StartDate'] < $obj_2['StartDate']) ? -1 : 1;\n\t}", "title": "" }, { "docid": "e5cdfb573fc4b1b8ad1280646d8cfa6f", "score": "0.56439453", "text": "function cmp($a, $b) {\n if ($a['startdate'] == $b['startdate']) return 0;\n return ($a['startdate'] < $b['startdate']) ? -1 : 1;\n }", "title": "" }, { "docid": "dc6756b2ad4acf9b4a0d6e00244a1a78", "score": "0.5635856", "text": "private function sortDate($a, $b)\n\t{\n\t if ($a['date'] == $b['date']) {\n\t return 0;\n\t }\n\t return ($a['date'] > $b['date']) ? -1 : 1;\n\t}", "title": "" }, { "docid": "8c77bc848daf945a3a6e976597a7fc30", "score": "0.5611462", "text": "function cmp($a, $b) {\n return $b[1] - $a[1];\n }", "title": "" }, { "docid": "de2d233a44f7617f5397c0b4434968a1", "score": "0.5591893", "text": "function usort_reorder( $a, $b ) {\n\t $orderby = ( ! empty( $_GET['orderby'] ) ) ? $_GET['orderby'] : 'note_ID';\n\t // If no order, default to asc\n\t $order = ( ! empty($_GET['order'] ) ) ? $_GET['order'] : 'asc';\n\t // Determine sort order\n\t $result = strcmp( $a[$orderby], $b[$orderby] );\n\t // Send final sort direction to usort\n\t return ( $order === 'asc' ) ? $result : -$result;\n\t}", "title": "" }, { "docid": "6988d6c0a788577bcffb4b2a2249eec9", "score": "0.5571973", "text": "static public function _sortByIdentity($a, $b)\n {\n return strcmp($a->id, $b->id);\n }", "title": "" }, { "docid": "daf09011bda5bdcad3aef8d705f8cbc5", "score": "0.55432844", "text": "function productsort($products){\n \n function mysort($a, $b){\n if($a->product_id == $b->product_id){\n return (strtotime($a->selling_date) < strtotime($b->selling_date)) ? -1 : 1;\n }else\n return ($a->product_id < $b->product_id) ? -1 : 1; \n }\n usort($products,\"mysort\");\n return $products;\n }", "title": "" }, { "docid": "18bdac3d94603ff81ef9e68954e9a197", "score": "0.55415183", "text": "function usort_reorder($a, $b)\n {\n $orderby = (!empty($_GET['orderby'])) ? $_GET['orderby'] : 'ID';\n // If no order, default to desc\n $order = (!empty($_GET['order'])) ? $_GET['order'] : 'desc';\n // Determine sort order\n if ($orderby == 'order_value') {\n $result = $a[$orderby] - $b[$orderby];\n } else {\n $result = strcmp($a[$orderby], $b[$orderby]);\n }\n // Send final sort direction to usort\n return ($order === 'asc') ? $result : -$result;\n }", "title": "" }, { "docid": "e03050bcf9af18574a1f2f23835d6607", "score": "0.5533013", "text": "function usort_reorder($a, $b)\n {\n $orderby = (!empty($_GET['orderby'])) ? $_GET['orderby'] : 'id';\n // If no order, default to asc\n $order = (!empty($_GET['order'])) ? $_GET['order'] : 'desc';\n // Determine sort order\n $result = strcmp($a[$orderby], $b[$orderby]);\n // Send final sort direction to usort\n return ($order === 'asc') ? $result : -$result;\n }", "title": "" }, { "docid": "672fc7ed90bad33411077c985976651a", "score": "0.55325055", "text": "function sortByOrder($a, $b) {\n\t\treturn strtotime($a['DEPTime']) - strtotime($b['DEPTime']);\n\t}", "title": "" }, { "docid": "813533d98c065b2bde69fdbad88f067c", "score": "0.5532444", "text": "protected function sortEntriesByDate( $a, $b )\n\t{\n\t\tif ( $a['entry_date'] == $b['entry_date'] )\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\treturn ( $a['entry_date'] > $b['entry_date'] ) ? -1 : 1;\n }", "title": "" }, { "docid": "07ec2435e699c105c4850b10d893dbf6", "score": "0.5529693", "text": "function report_editidnumber_sort_array_by_sortorder($item1, $item2) {\n if (!$item1->sortorder || !$item2->sortorder) {\n return 0;\n }\n if ($item1->sortorder == $item2->sortorder) {\n return 0;\n }\n return ($item1->sortorder > $item2->sortorder) ? 1 : -1;\n}", "title": "" }, { "docid": "268a4dcfae5ccd25a67886fb05886f83", "score": "0.55252534", "text": "function usort_reorder( $a, $b ) {\n $orderby = ( ! empty( $_GET['orderby'] ) ) ? $_GET['orderby'] : 'Date';\n // If no order, default to asc\n $order = ( ! empty($_GET['order'] ) ) ? $_GET['order'] : 'asc';\n // Determine sort order\n $result = strcmp( $a[$orderby], $b[$orderby] );\n // Send final sort direction to usort\n return ( $order === 'asc' ) ? $result : -$result;\n}", "title": "" }, { "docid": "5fae171e84d75d15cbe5d223d72b2413", "score": "0.5520048", "text": "private function sort_data( $a, $b )\n\t\t{\n\t\t\t// Set defaults\n\t\t\t$orderby = 'ID';\n\t\t\t$order = 'asc';\n\t \n\t\t\t// If orderby is set, use this as the sort column\n\t\t\tif(!empty($_GET['orderby']))\n\t\t\t{\n\t\t\t\t$orderby = $_GET['orderby'];\n\t\t\t}\n\t \n\t\t\t// If order is set use this as the order\n\t\t\tif(!empty($_GET['order']))\n\t\t\t{\n\t\t\t\t$order = $_GET['order'];\n\t\t\t}\n\t \n\t \n\t\t\t$result = strnatcmp( $a[$orderby], $b[$orderby] );\n\t \n\t\t\tif($order === 'asc')\n\t\t\t{\n\t\t\t\treturn $result;\n\t\t\t}\n\t \n\t\t\treturn -$result;\n\t\t}", "title": "" }, { "docid": "654c68080d446301e9e04599051ed273", "score": "0.55112255", "text": "function usort_reorder($a,$b){\n $orderby = (!empty($_REQUEST['orderby'])) ? $_REQUEST['orderby'] : 'title'; //If no sort, default to title\n $order = (!empty($_REQUEST['order'])) ? $_REQUEST['order'] : 'asc'; //If no order, default to asc\n $result = strcmp($a[$orderby], $b[$orderby]); //Determine sort order\n return ($order==='asc') ? $result : -$result; //Send final sort direction to usort\n }", "title": "" }, { "docid": "9b9c89031ea4fa21998b1fec41b77de8", "score": "0.5502631", "text": "function _time_tracker_sort_entries_desc($a, $b) {\n return strcmp($a->timestamp, $b->timestamp);\n}", "title": "" }, { "docid": "cb9ddb32c5b21bc2c7c2404a09313549", "score": "0.55011207", "text": "function usort_reorder($a,$b)\r\n\t\t{\r\n $orderby = (!empty($_REQUEST['orderby'])) ? $_REQUEST['orderby'] : ''; /*If no sort, default to title*/\r\n $order = (!empty($_REQUEST['order'])) ? $_REQUEST['order'] : ''; /*If no order, default to asc*/\r\n $result = strcmp($a[$orderby], $b[$orderby]); /*Determine sort order*/\r\n return ($order==='desc') ? $result : -$result; /*Send final sort direction to usort*/\r\n }", "title": "" }, { "docid": "9b11fc4b741bf8bd7f3d514bc14cd238", "score": "0.549633", "text": "function script_embeder_sort_function($a, $b){\n\tif($a['order']<$b['order']){\n\t\treturn -1;\n\t}else{\n\t\treturn ($a['order']>$b['order'])? 1 : 0;\n\t}\n}", "title": "" }, { "docid": "36a8234548abc8639e9fffd9ed90677e", "score": "0.54671305", "text": "public function testSorting() {\n // create\n self::$instance->begin();\n $id1 = self::$instance->create('first');\n $id2 = self::$instance->create('middle');\n $id3 = self::$instance->create('last');\n self::$instance->commit();\n // get first\n $first = self::$instance->first();\n // test\n $this->assertEquals('first', $first->property);\n // get last\n $last = self::$instance->last();\n // test\n $this->assertEquals('last', $last->property);\n }", "title": "" }, { "docid": "2e47ba1d99ba178c6c1f74cc95a934f5", "score": "0.54602504", "text": "private function sort_data($a, $b){\n\t\t// Set defaults\n\t\t$orderby = 'title';\n\t\t$order = 'asc';\n\n\t\t// If orderby is set, use this as the sort column\n\t\tif(!empty($_GET['orderby'])){\n\t\t\t$orderby = $_GET['orderby'];\n\t\t}\n\n\t\t// If order is set use this as the order\n\t\tif(!empty($_GET['order'])){\n\t\t\t$order = $_GET['order'];\n\t\t}\n\n\t\t$result = strcmp($a[$orderby], $b[$orderby]);\n\n\t\tif($order === 'asc'){\n\t\t\treturn $result;\n\t\t}\n\n\t\treturn -$result;\n\t}", "title": "" }, { "docid": "2dae2ad514c45351cf9ad9362c869285", "score": "0.5435657", "text": "public function testSorting(): void\n {\n $articles = $this->getTableLocator()->get('Articles');\n $assoc = $articles->belongsToMany('Tags');\n\n $field = 'Tags.id';\n $driver = $articles->getConnection()->getDriver();\n if ($driver->isAutoQuotingEnabled()) {\n $field = $driver->quoteIdentifier($field);\n }\n\n $assoc->setSort(\"$field DESC\");\n $result = $articles->get(1, ...['contain' => 'Tags']);\n $this->assertSame([2, 1], array_column($result['tags'], 'id'));\n\n $assoc->setSort(['Tags.id' => 'DESC']);\n $result = $articles->get(1, ...['contain' => 'Tags']);\n $this->assertSame([2, 1], array_column($result['tags'], 'id'));\n\n $assoc->setSort(function () {\n return ['Tags.id' => 'DESC'];\n });\n $result = $articles->get(1, ...['contain' => 'Tags']);\n $this->assertSame([2, 1], array_column($result['tags'], 'id'));\n\n $assoc->setSort(new OrderClauseExpression('Tags.id', 'DESC'));\n $result = $articles->get(1, ...['contain' => 'Tags']);\n $this->assertSame([2, 1], array_column($result['tags'], 'id'));\n }", "title": "" }, { "docid": "6cb88a0ff3513c2d737e58bf35f86566", "score": "0.5429484", "text": "function _sort_entry_student($a, $b)\n {\n if ($a['student'] == $b['student'] ) {\n return Skoli::_sort_entry_date($a, $b);\n }\n\n return ($a['student'] > $b['student']) ? 1 : -1;\n }", "title": "" }, { "docid": "c9a9ae1a42a819c2c1b0f99ce7fa7d24", "score": "0.5423377", "text": "function cmp($a,$b)\n\t\t\t{\n\t\t\t\t$a = json_decode($a,true);\n\t\t\t\t$b = json_decode($b,true);\n\n\t\t\t\t$a = $a['sequence'];\n\t\t\t\t$b = $b['sequence'];\n\t\t\t\t\n\t\t\t\tif($a == $b){ return 0; }\n\t\t\t\treturn ($a < $b) ? -1 : 1;\n\t\t\t}", "title": "" }, { "docid": "4fa2836c7891a9ffd90ce78070fd4e50", "score": "0.5390086", "text": "function mySort($a, $b) {\n $a = $a[2];\n $b = $b[2];\n if (strtotime($a) == strtotime($b))return 0;\n return (strtotime($a) < strtotime($b)) ? -1 : 1;\n}", "title": "" }, { "docid": "0a299830cb0cb39a792dddbfb560a997", "score": "0.5384195", "text": "function sort_by_order( $a, $b ) {\n return $a['order'] - $b['order'];\n}", "title": "" }, { "docid": "5805e2df456bcc920b776fbf5e6c576d", "score": "0.5373294", "text": "protected function sort_events( $a, $b ) {\n\t\tif ( $a->start_timestamp == $b->start_timestamp ) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\treturn $a->start_timestamp > $b->start_timestamp ? 1 : -1;\n\t\t}\n\t}", "title": "" }, { "docid": "2bbcb5293d47524eb388887108468b4a", "score": "0.53655887", "text": "private function sort_data( $a, $b )\r\n {\r\n // Set defaults\r\n $orderby = 'title';\r\n $order = 'asc';\r\n\r\n // If orderby is set, use this as the sort column\r\n if(!empty($_GET['orderby']))\r\n {\r\n $orderby = $_GET['orderby'];\r\n }\r\n\r\n // If order is set use this as the order\r\n if(!empty($_GET['order']))\r\n {\r\n $order = $_GET['order'];\r\n }\r\n\r\n\r\n $result = strcmp( $a[$orderby], $b[$orderby] );\r\n\r\n if($order === 'asc')\r\n {\r\n return $result;\r\n }\r\n\r\n return -$result;\r\n }", "title": "" }, { "docid": "0ab004285aa48b64e2a1a76385f2de36", "score": "0.5349714", "text": "function custom_sort_year($a, $b) {\n return $a['publYear'] < $b['publYear'];\n }", "title": "" }, { "docid": "66b11755556ab352cffbedd0cb5af9d5", "score": "0.53439015", "text": "private function sort_data( $a, $b )\n {\n // Set defaults\n $orderby = 'id';\n $order = 'asc';\n // If orderby is set, use this as the sort column\n if(!empty($_GET['orderby']))\n {\n $orderby = $_GET['orderby'];\n }\n // If order is set use this as the order\n if(!empty($_GET['order']))\n {\n $order = $_GET['order'];\n }\n $result = strnatcmp( $a[$orderby], $b[$orderby] );\n if($order === 'asc')\n {\n return $result;\n }\n return -$result;\n }", "title": "" }, { "docid": "66b11755556ab352cffbedd0cb5af9d5", "score": "0.53439015", "text": "private function sort_data( $a, $b )\n {\n // Set defaults\n $orderby = 'id';\n $order = 'asc';\n // If orderby is set, use this as the sort column\n if(!empty($_GET['orderby']))\n {\n $orderby = $_GET['orderby'];\n }\n // If order is set use this as the order\n if(!empty($_GET['order']))\n {\n $order = $_GET['order'];\n }\n $result = strnatcmp( $a[$orderby], $b[$orderby] );\n if($order === 'asc')\n {\n return $result;\n }\n return -$result;\n }", "title": "" }, { "docid": "352e1191fd018f4af02941494c022a7f", "score": "0.53397375", "text": "function sorteer(){\n\t\tglobal $conn, $laag_hoog, $jokers, $vijven;\n\t\t$sql = \"SELECT laag_hoog, jokers, vijven FROM spelers WHERE speler_id=\".$this->speler;\n\t\t$result = $conn->query($sql);\n\t\tif(!$result){\n\t\t\techo $conn->error.\"<br>\".$sql.\"<br>\";\n\t\t}\n\t\t$row = $result->fetch_assoc();\n\t\t$laag_hoog = $row['laag_hoog'];\n\t\t$jokers = $row['jokers'];\n\t\t$vijven = $row['vijven'];\n\t\tusort($this->kaarten, \"vergelijk\");\n\t}", "title": "" }, { "docid": "bb231c67b4b05d2070267e5f8973d54f", "score": "0.532828", "text": "public function testSortInsert() {\n\n // $left = new Add('g');\n // $left->next = new Add('e');\n // $left->next->next = new Add('e');\n // $left->next->next->next = new Add('k');\n // $left->next->next->next->next = new Add('s');\n // $left->next->next->next->next->next = new Add('a');\n\n // $right = new Add('g');\n // $right->next = new Add('e');\n // $right->next->next = new Add('e');\n // $right->next->next->next = new Add('k');\n // $right->next->next->next->next = new Add('s');\n // $right->next->next->next->next->next = new Add('b');\n \n // $this->assertTrue($sll->compare($left, $right) == -1);\n }", "title": "" }, { "docid": "40fccbfd8d184957d33e0437a4c1e586", "score": "0.531898", "text": "function sortEvents($event1,$event2){\r\n if ($event1['seq'] == $event2['seq']) {\r\n if ($event1['startdate'] == $event2['startdate']) {\r\n return 0;\r\n }\r\n return ($event1['startdate'] > $event2['startdate']) ? 1 : -1;\r\n }\r\n return (intval($event1['seq']) > intval($event2['seq'])) ? 1 : -1;\r\n}", "title": "" }, { "docid": "305d86734bf0ceac2d53ebcddc910bf4", "score": "0.5318764", "text": "static public function _sortByDue($a, $b)\n {\n if ($a->due == $b->due) {\n return self::_sortByIdentity($a, $b);\n }\n\n // Treat empty due dates as farthest into the future.\n if ($a->due == 0) {\n return 1;\n }\n if ($b->due == 0) {\n return -1;\n }\n\n return ($a->due > $b->due) ? 1 : -1;\n }", "title": "" }, { "docid": "847f99446f437af0f9a0db9fd9bd4cb6", "score": "0.5318258", "text": "public function dateSort($first, $second)\n {\n return strtotime($first->created) - strtotime($second->created);\n }", "title": "" }, { "docid": "b33bea7ab9f71b42207a23cb9c07a572", "score": "0.5314295", "text": "function rate_sort($a, $b) {\n return ($a->rate_discount < $b->rate_discount) ? -1 : 1;\n}", "title": "" }, { "docid": "1bcd224c3477e1a57ad0715b91ed78c5", "score": "0.5313598", "text": "function sortMeetings($a, $b)\n{\n return $a->startTime > $b->startTime ? 1: -1;\n}", "title": "" }, { "docid": "b7c65144addc4454db021cff3f28c555", "score": "0.53134453", "text": "function _rsort_entry_student($a, $b)\n {\n if ($a['student'] == $b['student']) {\n return Skoli::_rsort_entry_date($a, $b);\n }\n\n return ($a['student'] < $b['student']) ? 1 : -1;\n }", "title": "" }, { "docid": "b30328e1588bc57e3a772f1ad29ff76e", "score": "0.53134066", "text": "function cmp_refined($a, $b) {\n\tif ($a['price_info']['value_raw'] > $b['price_info']['value_raw']) {\n\t\treturn -1;\n\t} elseif ($a['price_info']['value_raw'] < $b['price_info']['value_raw']) {\n\t\treturn 1;\n\t}\n\n\treturn 0;\n}", "title": "" }, { "docid": "2cfe0301ca2e71073bbe84d62481e7e0", "score": "0.52982575", "text": "function _sort_student_lastentry($a, $b)\n {\n // Treat empty dates as farthest into the past.\n if (!isset($a['_lastentry']) || $a['_lastentry'] == 0) {\n return -1;\n }\n if (!isset($b['_lastentry']) || $b['_lastentry'] == 0) {\n return 1;\n }\n\n if ($a['_lastentry'] == $b['_lastentry'] ) {\n return 0;\n }\n\n return ($a['_lastentry'] > $b['_lastentry']) ? 1 : -1;\n }", "title": "" }, { "docid": "8ad107c2838450cb17010cd340d83144", "score": "0.52811164", "text": "private function sort_data($a, $b) {\n //set defaults\n $orderby = 'last_name';\n $order = 'asc';\n\n if (!empty($_GET['orderby'])){\n $orderby = $_GET['orderby'];\n }\n\n if (!empty($_GET['order'])) {\n $order = $_GET['order'];\n }\n\n $result = strcmp( $a[$orderby], $b[$orderby] );\n\n if($order === 'asc') {\n return $result;\n }\n\n return -$result;\n }", "title": "" }, { "docid": "a699d17ac10c66522545da958cfe1c78", "score": "0.5268191", "text": "function cmp($a, $b) {\n\t\t\t\t\tif ($a == $b) {\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t}\n\t\t\t\t\treturn ($a < $b) ? -1 : 1;\n\t\t\t\t}", "title": "" }, { "docid": "37814d4bba263ecc7f02ca97f17384a5", "score": "0.52672946", "text": "public static function sortSources($a, $b) {\n if(isset($a['order']) && isset($b['order'])) {\n if($a['order'] == $b['order']) {\n return 0;\n }\n\n return ($a['order'] < $b['order']) ? -1 : 1;\n }\n\n return 0;\n }", "title": "" }, { "docid": "e3eccd0bd97d30904300ab30538e9c9d", "score": "0.526439", "text": "protected function usort ($a, $b) {\n\t\tif (isset($a['key']) && isset($b['key'])) {\n\t\t\treturn $a['key'] > $b['key'];\n\t\t}\n\t\telse if (isset($a['info']) && isset($b['info'])) {\n\t\t\treturn $a['info'] > $b['info'];\n\t\t}\n\t}", "title": "" }, { "docid": "1d5a90029c3f1efb86803b0b1fb8ac3b", "score": "0.5255232", "text": "private function sortCount($a, $b) {\n return $b['count'] <=> $a['count'];\n }", "title": "" }, { "docid": "3ea7c0013965dc44c379cee0ba4180af", "score": "0.5251369", "text": "function cmp($a,$b){\n if ($a['date_found'] == $b['date_found']){\n if (strcmp($a['genus'],$b['genus']) == 0){\n return strcmp($a['species'],$b['species']);\n }else{\n return strcmp($a['genus'],$b['genus']);\n }\n }\n return ($a['date_found'] < $b['date_found'])?-1:1;\n }", "title": "" }, { "docid": "8c124db6ebdcb1f9bc776734cc1f40ae", "score": "0.5249619", "text": "public function getSort();", "title": "" }, { "docid": "748c8afc86aec1af9e193469e105dfa6", "score": "0.52455753", "text": "public function order_releases($a, $b) {\r\n\r\n $a = strtotime($a->created_at);\r\n $b = strtotime($b->created_at);\r\n\r\n if ($a == $b) {\r\n return 0;\r\n }\r\n else {\r\n if ($a > $b) {\r\n return -1;\r\n }\r\n else {\r\n return 1;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "e45a5a4e81a84db969686abdae047bba", "score": "0.5240337", "text": "function sortiere($a,$b) {\n if(isset($a['points']) && isset($b['points'])) {\n if ($a['points'] == $b['points']) {\n return ( $a['rates'] > $b['rates'] ) ? -1 : 1;\n }\n return ( $a['points'] > $b['points'] ) ? -1 : 1;\n }\n }", "title": "" }, { "docid": "a9a490ce002fc426bec41180a4ad2ac0", "score": "0.52222705", "text": "function tagsort($a, $b)\n{\n $returnval = 0;\n $o = getTagRanking($a);\n $p = getTagRanking($b);\n if ($o == $p) return 0;\n if ($o < $p) return -1;\n if ($o > $p) return 1;\n}", "title": "" }, { "docid": "7a37c5a0348db319e6839afb42e85efb", "score": "0.5221351", "text": "private static function sortByOriginalKey(DtGalleryItemBase $a, DtGalleryItemBase $b) {\n return $a->getOriginalKey() < $b->getOriginalKey() ? -1 : 1;\n }", "title": "" }, { "docid": "60ec3d1c4ce38e19d362d56a7404bfad", "score": "0.5220854", "text": "function sortByTime($a, $b)\n{\n $a = strtotime($a->time);\n $b = strtotime($b->time);\n return $a - $b;\n}", "title": "" }, { "docid": "c2680e6455ea400bc902bbd6969ecde0", "score": "0.52083", "text": "protected function cmp($a, $b) {\n foreach($this->sort as $field => $order) {\n\t\t\t// Get values of $field :\n\t\t\t$vala = $a->glue_get($field);\n\t\t\t$valb = $b->glue_get($field);\n\n\t\t\t// Compare field for $a with $b :\n\t\t\tif ($vala < $valb)\n\t\t\t\t$cmp = -1;\n\t\t\telseif ($vala > $valb)\n\t\t\t\t$cmp = +1;\n\t\t\telse\n\t\t\t\t$cmp = 0;\n\n\t\t\t// Change sign according to $order :\n\t\t\t$cmp *= $order;\n\n\t\t\t// $a <> $b ? It's over.\n if ($cmp !== 0) return $cmp;\n }\n\t\t\n return 0;\n }", "title": "" }, { "docid": "8b44e34f1ba364e55477522133f6cd82", "score": "0.52076423", "text": "function cmp($a, $b) {\n $posA = -1;\n $posB = -1;\n\n if (isset($a::$page))\n $posA = array_search($a::$page, Installer::$menuItems);\n if (isset($b::$page))\n $posB = array_search($b::$page, Installer::$menuItems);\n\n $rankA = 100;\n $rankB = 100;\n\n if (isset($a::$rank))\n $rankA = $a::$rank;\n if (isset($b::$rank))\n $rankB = $b::$rank;\n\n if ($posA === false)\n return -1;\n if ($posB === false)\n return 1;\n\n if ($posA == $posB) {\n if ($rankA == $rankB)\n return 0;\n return ($rankA < $rankB) ? -1 : 1;\n }\n return ($posA < $posB) ? -1 : 1;\n }", "title": "" }, { "docid": "5a6cd3668d95501094954d97b20d9dcd", "score": "0.52061933", "text": "public static function sort_graded($left, $right)\n {\n if (empty($left->closetime)) {\n $lefttime = $left->opentime;\n } else {\n $lefttime = $left->closetime;\n }\n\n if (empty($right->closetime)) {\n $righttime = $right->opentime;\n } else {\n $righttime = $right->closetime;\n }\n\n if ($lefttime === $righttime) {\n if ($left->coursemoduleid === $right->coursemoduleid) {\n return 0;\n } elseif ($left->coursemoduleid < $right->coursemoduleid) {\n return -1;\n } else {\n return 1;\n }\n } elseif ($lefttime < $righttime) {\n return -1;\n } else {\n return 1;\n }\n }", "title": "" }, { "docid": "0aaf29faaf9335c0f588bc9330b0112f", "score": "0.5205134", "text": "function sort_project_by_date($a,$b)\n{\n\n\tif (strtotime($a[1])==strtotime($b[1])) return 0;\n\treturn (strtotime($a[1])<strtotime($b[1]))?-1:1;\n}", "title": "" }, { "docid": "6f377a708b6a7c8c8f4db684e5152db8", "score": "0.52046585", "text": "protected static function sort( array $a, array $b ) {\n\t\treturn $a['interval'] - $b['interval'];\n\t}", "title": "" }, { "docid": "171d52f05fd987666c819d7b0e331358", "score": "0.5203997", "text": "public function sortDESC() {\n $this->addOrder('e.EventDate', 'DESC');\n }", "title": "" }, { "docid": "92a6b74d49bcb7a83d6b582fbed15c76", "score": "0.5200015", "text": "protected function genericFieldSorter(tx_tcaobjects_object $a, tx_tcaobjects_object $b) {\r\n\t\t$res = ($a[self::$_sortingField] > $b[self::$_sortingField]) ? + 1 : - 1;\r\n\t\tif (self::$_sortingDirection == 'desc') {\r\n\t\t\t$res *= - 1;\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "title": "" }, { "docid": "76c821bf048da30b7665c375fbe7db60", "score": "0.5193522", "text": "function _rsort_student_lastentry($a, $b)\n {\n // Treat empty dates as farthest into the past.\n if (!isset($a['_lastentry']) || $a['_lastentry'] == 0) {\n return 1;\n }\n if (!isset($b['_lastentry']) || $b['_lastentry'] == 0) {\n return -1;\n }\n\n if ($a['_lastentry'] == $b['_lastentry']) {\n return 0;\n }\n\n return ($a['_lastentry'] < $b['_lastentry']) ? 1 : -1;\n }", "title": "" }, { "docid": "c96620b13a13416708579ec706fcb112", "score": "0.5191198", "text": "function usort_reorder( $a, $b ) {\n $orderby = ( !empty( $_GET['orderby'] ) ) ? $_GET['orderby'] : 'name';\n // If no order, default to desc\n $order = ( !empty( $_GET['order'] ) ) ? $_GET['order'] : 'desc';\n // Determine sort order\n if ( $orderby == 'order_value' ) {\n $result = $a[$orderby] - $b[$orderby];\n } else {\n $result = strcmp( $a[$orderby], $b[$orderby] );\n }\n // Send final sort direction to usort\n return ( $order === 'asc' ) ? $result : -$result;\n }", "title": "" }, { "docid": "6951d52928212fa83b252ec286b5e7c9", "score": "0.5186874", "text": "private function sortArticleToTop($index, array &$old_order) {\n $distance = $this->distance($old_order[0], $old_order[$index]);\n self::moveArticleTemporarily($index, $old_order, $distance);\n }", "title": "" }, { "docid": "82b86d866043af91638573919faacfb0", "score": "0.51833713", "text": "public function sort($query)\n {\n\n }", "title": "" }, { "docid": "024d429d4e9624a7261fdde80e8cea85", "score": "0.51713365", "text": "function usort_reorder( $a, $b ) {\n\t\t$orderby = ( !empty( $_GET['orderby'] ) ) ? $_GET['orderby'] : 'last_purchase';\n\t\t// If no order, default to desc\n\t\t$order = ( !empty( $_GET['order'] ) ) ? $_GET['order'] : 'desc';\n\t\t// Determine sort order\n\t\tif ( $orderby == 'order_value' ) {\n\t\t\t$result = $a[$orderby] - $b[$orderby];\n\t\t} else {\n\t\t\t$result = strcmp( $a[$orderby], $b[$orderby] );\n\t\t}\n\t\t// Send final sort direction to usort\n\t\treturn ( $order === 'asc' ) ? $result : -$result;\n\t}", "title": "" }, { "docid": "9ca049d569fb54b19fe25035b418bcdd", "score": "0.517007", "text": "private function compare(SortLinkInterface $firstLink, SortLinkInterface $secondLink): int\n {\n return $secondLink->getSortOrder() <=> $firstLink->getSortOrder();\n }", "title": "" }, { "docid": "09143cffafc80707f5770ddac96acc37", "score": "0.5168062", "text": "function cmp($a, $b) {\n $numA = explode(\".\",$a['title']);\n $numB = explode(\".\",$b['title']);\n if ($numA[0] == $numB[0]) return 0;\n return ($numA[0] < $numB[0]) ? -1 : 1;\n }", "title": "" }, { "docid": "28371c868f0732f6b95c653b8b0bfc01", "score": "0.5166697", "text": "static public function _rsortByDue($a, $b)\n {\n return self::_sortByDue($b, $a);\n }", "title": "" }, { "docid": "cd9357dcdc71745d32723f36e791452d", "score": "0.51621306", "text": "function usort_reorder( $a, $b ) {\n\t\t$orderby = ( !empty( $_GET['orderby'] ) ) ? $_GET['orderby'] : 'name';\n\t\t// If no order, default to desc\n\t\t$order = ( !empty( $_GET['order'] ) ) ? $_GET['order'] : 'desc';\n\t\t// Determine sort order\n\t\tif ( $orderby == 'order_value' ) {\n\t\t\t$result = $a[$orderby] - $b[$orderby];\n\t\t} else {\n\t\t\t$result = strcmp( $a[$orderby], $b[$orderby] );\n\t\t}\n\t\t// Send final sort direction to usort\n\t\treturn ( $order === 'asc' ) ? $result : -$result;\n\t}", "title": "" }, { "docid": "ec9cdbe2228f12e2056775cdac9ef351", "score": "0.51613283", "text": "function sortiereTermine($Termine)\n{\n $sortarray = array();\n global $id;\n global $document;\n foreach ($Termine as $key => $value)\n {\n $okey = $key;\n if ( strpos($key, '&') !== false ) $okey = substr($key, 0, strpos($key, '&'));\n if ( $value['parent_id'] == $id || $document['AlleAnzeigen'] == '1') {\n // Prüfen, ob Betroffen\n if ( isset($_REQUEST['Gruppe']) )\n {\n // nur Gruppe anzeigen\n $da = false;\n if ( $_REQUEST['Gruppe'] != '' )\n {\n $Gruppen = explode(',',$_REQUEST['Gruppe']);\n while ( list($nr, $gruppe) = each($Gruppen))\n {\n if ( in_array($gruppe, explode(',',$value['Gruppe'])) ||\n in_array(-1, explode(',',$value['Gruppe'])) )\n {\n // Gruppe vorhanden: Termin anzeigen\n $sortarray[$key] = $value['Datum'];\n $Termine[$key]['id'] = $okey;\n $da = true;\n }\n }\n }\n if ( ! $da )\n {\n if ( InPerson($value['Person'], $value['author_id'] )) {\n $sortarray[] = $value['Datum'];\n $Termine[$key]['id'] = $okey;\n }\n else\n unset($Termine[$key]);\n }\n }\n else if ( isset($_REQUEST['Betroffen']) )\n {\n // nur von Einzelbetroffenen anzeigen\n $Gruppen = explode(',',$_REQUEST['Betroffen']);\n while ( list($nr, $gruppe) = each($Gruppen))\n {\n // Person ist klar, nun noch die Gruppen, in denen die Person ist\n $prof = get_profile($gruppe, false);\n if ( in_array(-1, explode(',',$value['Person'])) ||\n in_array($gruppe, explode(',',$value['Person'])) ||\n InGruppe($value['Gruppe'], $prof))\n {\n // Person betroffen: Termin anzeigen\n $sortarray[$key] = $value['Datum'];\n $Termine[$key]['id'] = $okey;\n }\n else\n unset($Termine[$key]);\n }\n }\n else if ( isset($_REQUEST['Selbst']) )\n {\n // nur von Einzelbetroffenen anzeigen\n $Gruppen = explode(',',$_REQUEST['Selbst']);\n while ( list($nr, $gruppe) = each($Gruppen))\n {\n if ( $gruppe == -1 || in_array($gruppe, explode(',',$value['Person'])) )\n {\n // Person betroffen: Termin anzeigen\n $sortarray[$key] = $value['Datum'];\n $Termine[$key]['id'] = $okey;\n }\n else\n unset($Termine[$key]);\n }\n }\n elseif ( InGruppe($value['Gruppe']) || InPerson($value['Person'], $value['author_id'] )) {\n $sortarray[] = $value['Datum'];\n $Termine[$key]['id'] = $key;\n }\n else\n unset($Termine[$key]);\n }\n else\n unset($Termine[$key]);\n }\n array_multisort($sortarray, SORT_ASC, SORT_NUMERIC, $Termine);\n //array_multisort($Termine, $Termine['Datum'], SORT_ASC, SORT_NUMERIC);\n return $Termine;\n}", "title": "" }, { "docid": "3aacb95fd268d8faefb913305ec550e9", "score": "0.5158858", "text": "private function sort()\n {\n usort(\n $this->intervals,\n function (Interval $a, Interval $b) {\n if (0 == $this->cmpV($a->low(), $b->low())) {\n if ($a->low()->isIncluded() != $b->low()->isIncluded()) {\n return $a->low()->isIncluded() && !$b->low()->isIncluded() ? -1 : 1;\n } else {\n if (0 == $this->cmpV($a->high(), $b->high())) {\n if ($a->high()->isIncluded() != $b->high()->isIncluded()) {\n return $a->high()->isIncluded() && !$b->high()->isIncluded() ? 1 : -1;\n } else {\n return 0;\n }\n } else {\n return $this->cmpV($a->high(), $b->high());\n }\n }\n } else {\n return $this->cmpV($a->low(), $b->low());\n }\n }\n );\n }", "title": "" }, { "docid": "b9b6f2b9cd58ac288d6e6d5a7dbd46ea", "score": "0.51539624", "text": "function cmp_obj($a, $b)\n {\n $al = strtolower($a->trackNo);\n $bl = strtolower($b->trackNo);\n if ($al == $bl) {\n return 0;\n }\n return ($al > $bl) ? +1 : -1;\n }", "title": "" }, { "docid": "d42ba12411176172336fcc9cad97db95", "score": "0.51522076", "text": "private function sortUsers($a, $b){\n return $a->getPoints() - $b->getPoints();\n }", "title": "" }, { "docid": "d551aa3fbb8f8f7965b49b66268c9e4a", "score": "0.51484257", "text": "static public function _sortByOwner($a, $b)\n {\n $diff = strcasecmp(self::_getOwner($a), self::_getOwner($b));\n if ($diff == 0) {\n return self::_sortByIdentity($a, $b);\n } else {\n return $diff;\n }\n }", "title": "" }, { "docid": "c03422bef157c40e3fd911c14cda51fb", "score": "0.5147772", "text": "public function getChapterSort();", "title": "" }, { "docid": "2738fe1de01df541509efd4585159dd5", "score": "0.5146352", "text": "function custom_sort_virtualdate($a, $b) {\n return $a['virtualdate'] < $b['virtualdate'];\n }", "title": "" } ]
22c378a55f5981ab695d704703ba5203
Sets a collection of User objects related by a onetomany relationship to the current object. It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
[ { "docid": "887c6c18f98b01172d14f95e410756b7", "score": "0.64863", "text": "public function setUsers(PropelCollection $users, PropelPDO $con = null)\n {\n $usersToDelete = $this->getUsers(new Criteria(), $con)->diff($users);\n\n $this->usersScheduledForDeletion = unserialize(serialize($usersToDelete));\n\n foreach ($usersToDelete as $userRemoved) {\n $userRemoved->setAvatar(null);\n }\n\n $this->collUsers = null;\n foreach ($users as $user) {\n $this->addUser($user);\n }\n\n $this->collUsers = $users;\n $this->collUsersPartial = false;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "9ee1efad66f7e4e2182dbeebedc1b523", "score": "0.66467005", "text": "public function touchOwners()\n {\n foreach ($this->getTouchedRelations() as $relation) {\n $this->$relation()->touch();\n\n if ($this->$relation instanceof self) {\n $this->$relation->fireModelEvent('saved', false);\n\n $this->$relation->touchOwners();\n } elseif ($this->$relation instanceof Collection) {\n $this->$relation->each->touchOwners();\n }\n }\n }", "title": "" }, { "docid": "651ea9bd48e86f82c755ae006ac1ae6d", "score": "0.61168605", "text": "public function setOOEntrys(PropelCollection $oOEntrys, PropelPDO $con = null)\n\t{\n\t\t$this->oOEntrysScheduledForDeletion = $this->getOOEntrys(new Criteria(), $con)->diff($oOEntrys);\n\n\t\tforeach ($oOEntrys as $oOEntry) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($oOEntry->isNew()) {\n\t\t\t\t$oOEntry->setUser($this);\n\t\t\t}\n\t\t\t$this->addOOEntry($oOEntry);\n\t\t}\n\n\t\t$this->collOOEntrys = $oOEntrys;\n\t}", "title": "" }, { "docid": "5ba84b425ff875dabe187d0367bc0988", "score": "0.60571533", "text": "public function setTeamUsers(PropelCollection $teamUsers, PropelPDO $con = null)\n\t{\n\t\t$this->teamUsersScheduledForDeletion = $this->getTeamUsers(new Criteria(), $con)->diff($teamUsers);\n\n\t\tforeach ($teamUsers as $teamUser) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($teamUser->isNew()) {\n\t\t\t\t$teamUser->setUser($this);\n\t\t\t}\n\t\t\t$this->addTeamUser($teamUser);\n\t\t}\n\n\t\t$this->collTeamUsers = $teamUsers;\n\t}", "title": "" }, { "docid": "0a7124c9b98476aaae9165d8414e12f9", "score": "0.5629812", "text": "public function setEntrys(PropelCollection $entrys, PropelPDO $con = null)\n\t{\n\t\t$this->entrysScheduledForDeletion = $this->getEntrys(new Criteria(), $con)->diff($entrys);\n\n\t\tforeach ($entrys as $entry) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($entry->isNew()) {\n\t\t\t\t$entry->setUser($this);\n\t\t\t}\n\t\t\t$this->addEntry($entry);\n\t\t}\n\n\t\t$this->collEntrys = $entrys;\n\t}", "title": "" }, { "docid": "ceb857a0fcf2b94a127519c96b19d2bb", "score": "0.54986316", "text": "private function update_users() {\n\t\t\t$users_connection = $this->connection->selectCollection( 'users' );\n\t\t\t$users = get_users();\n\t\t\tforeach ( $users as $user ) {\n\t\t\t\t$users_connection->updateOne(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'source_user_id' => get_current_blog_id() . '_' . $user->ID,\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'$set' => array(\n\t\t\t\t\t\t\t'user_id' => $user->ID,\n\t\t\t\t\t\t\t'source_user_id' => get_current_blog_id() . '_' . $user->ID,\n\t\t\t\t\t\t\t'login' => $user->data->user_login,\n\t\t\t\t\t\t\t'display_name' => $user->data->display_name,\n\t\t\t\t\t\t\t'email' => $user->data->user_email,\n\t\t\t\t\t\t\t'roles' => $user->roles,\n\t\t\t\t\t\t\t'caps' => $user->caps,\n\t\t\t\t\t\t\t'password' => $user->user_pass,\n\t\t\t\t\t\t\t'user_registered' => $user->data->user_registered,\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t\tarray( 'upsert' => true )\n\t\t\t\t);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "7e308672c4fa6fe45b8d9a1c30c60405", "score": "0.54178065", "text": "public function set_associated_users( $users = array() ) {\n\t\t$this->clear_associated_users();\n\t\t$this->save_post_meta( array(\n\t\t\tself::$meta_keys['associated_users'] => $users,\n\t\t) );\n\t\treturn $users;\n\t}", "title": "" }, { "docid": "21990fd6da12ac2f5f511f850262f672", "score": "0.53899574", "text": "public function setUserProfiles(PropelCollection $userProfiles, PropelPDO $con = null)\n {\n $userProfilesToDelete = $this->getUserProfiles(new Criteria(), $con)->diff($userProfiles);\n\n\n $this->userProfilesScheduledForDeletion = $userProfilesToDelete;\n\n foreach ($userProfilesToDelete as $userProfileRemoved) {\n $userProfileRemoved->setPrincipal(null);\n }\n\n $this->collUserProfiles = null;\n foreach ($userProfiles as $userProfile) {\n $this->addUserProfile($userProfile);\n }\n\n $this->collUserProfiles = $userProfiles;\n $this->collUserProfilesPartial = false;\n\n return $this;\n }", "title": "" }, { "docid": "d7d87216765fceabcac11b01de238ed4", "score": "0.53759843", "text": "public function updateTaskUserTable(){\n foreach($this->taskAndUsers as $taskID => $owners){\n\n $task = Task::where('zoho_id', $taskID)->first();\n if($task == null){\n continue;\n }\n $ownerArray = array();\n foreach($owners as $ownerID){\n $ownerArray[] = $ownerID;\n }\n $owners = User::whereIn('zoho_id', $ownerArray)->select('id')->get();\n\n $ownerIDs = array();\n foreach($owners as $owner){\n $ownerIDs[] = $owner->id;\n }\n\n $task->users()->sync($ownerIDs);\n }\n }", "title": "" }, { "docid": "cc2c1d745dbd6bd6004545e4b9291d75", "score": "0.5364117", "text": "public function syncUsers(array $users): void\n {\n // Sync the given ids.\n $ids = Arr::pluck($users, 'id');\n\n $this->users()->sync($ids);\n\n // Get all the pivot models.\n $pivotKey = $this->users()->getForeignPivotKeyName();\n\n $pivot = $this->getUsersPivotClass();\n\n $pivots = $pivot::where($pivotKey, $this->id)->get();\n\n // Loop the pivot models and sync the roles.\n foreach ($pivots as $pivot) {\n // Find the user.\n $user = Arr::first($users, function ($user) use ($pivot) {\n return $user['id'] === $pivot['user_id'];\n });\n\n $roles = Arr::wrap(data_get($user, 'roles', []));\n\n $pivot->syncRoles($roles);\n }\n }", "title": "" }, { "docid": "1b43062702e43c125efaa8191c0d4bc4", "score": "0.5355596", "text": "public function owner_set_multi($user_ids, $id, $options = [])\n {\n foreach ($user_ids as $user_id) {\n $this->owner_set($user_id, $id, $options);\n }\n }", "title": "" }, { "docid": "18dd435dfed57b5f833f311eb0ab5e46", "score": "0.5342514", "text": "public function setTouchedRelations(Model $model, array $touches = []);", "title": "" }, { "docid": "7e6d2133f35583113f09c03e3cbc5aef", "score": "0.5256682", "text": "public function setTouchedRelations(array $touches);", "title": "" }, { "docid": "404fa3e54923a324cda8159bd3750ba8", "score": "0.52399284", "text": "public function updateOwnerCollectionWithReferencedCollection(\n RecordCollection $ownerCollection,\n RecordCollection $referencedCollection\n )\n {\n $owningField = $this->relation->getOwningField();\n $isOneToMany = $this->relation->isOneToMany();\n foreach ($ownerCollection as $refRecord) {\n $refId = $refRecord->get($owningField);\n $owningId = $refRecord->getInternalId();\n $this->assignReference($refId, $owningId);\n }\n foreach ($referencedCollection as $refRecord) {\n $id = $refRecord->getInternalId();\n if (!$this->isReferenced($id) && !$this->hasNullReference($id)) {\n $reference = $isOneToMany ? array() : null;\n $this->setReference($id, $reference);\n }\n }\n }", "title": "" }, { "docid": "1327d4a364e9d0487a97ace85477cad7", "score": "0.5227397", "text": "public function setOOBookings(PropelCollection $oOBookings, PropelPDO $con = null)\n\t{\n\t\t$this->oOBookingsScheduledForDeletion = $this->getOOBookings(new Criteria(), $con)->diff($oOBookings);\n\n\t\tforeach ($oOBookings as $oOBooking) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($oOBooking->isNew()) {\n\t\t\t\t$oOBooking->setUser($this);\n\t\t\t}\n\t\t\t$this->addOOBooking($oOBooking);\n\t\t}\n\n\t\t$this->collOOBookings = $oOBookings;\n\t}", "title": "" }, { "docid": "c54d3b3ee947dd9123c175f0710c9389", "score": "0.5193653", "text": "public function setUserProjects(PropelCollection $userProjects, PropelPDO $con = null)\n\t{\n\t\t$this->userProjectsScheduledForDeletion = $this->getUserProjects(new Criteria(), $con)->diff($userProjects);\n\n\t\tforeach ($userProjects as $userProject) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($userProject->isNew()) {\n\t\t\t\t$userProject->setUser($this);\n\t\t\t}\n\t\t\t$this->addUserProject($userProject);\n\t\t}\n\n\t\t$this->collUserProjects = $userProjects;\n\t}", "title": "" }, { "docid": "c7c68eb9064d9f1fe2a8ad6f46fc97d8", "score": "0.515978", "text": "public function setProjectEntrys(PropelCollection $projectEntrys, PropelPDO $con = null)\n\t{\n\t\t$this->projectEntrysScheduledForDeletion = $this->getProjectEntrys(new Criteria(), $con)->diff($projectEntrys);\n\n\t\tforeach ($projectEntrys as $projectEntry) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($projectEntry->isNew()) {\n\t\t\t\t$projectEntry->setUser($this);\n\t\t\t}\n\t\t\t$this->addProjectEntry($projectEntry);\n\t\t}\n\n\t\t$this->collProjectEntrys = $projectEntrys;\n\t}", "title": "" }, { "docid": "b2ff703ecef1646670cb23964f57d4c8", "score": "0.51517457", "text": "public function setUsers() {\n $users = $this->monday('{users (kind: non_guests) {id email}}');\n foreach ($users['data']['users'] as $user) {\n $this->users[$user['email']] = $user['id'];\n }\n }", "title": "" }, { "docid": "5dc222b82e7134404e4b1d381911c4f8", "score": "0.51207006", "text": "public function setRuangsRelatedByIdRuang(PropelCollection $ruangsRelatedByIdRuang, PropelPDO $con = null)\n {\n $ruangsRelatedByIdRuangToDelete = $this->getRuangsRelatedByIdRuang(new Criteria(), $con)->diff($ruangsRelatedByIdRuang);\n\n $this->ruangsRelatedByIdRuangScheduledForDeletion = unserialize(serialize($ruangsRelatedByIdRuangToDelete));\n\n foreach ($ruangsRelatedByIdRuangToDelete as $ruangRelatedByIdRuangRemoved) {\n $ruangRelatedByIdRuangRemoved->setRuangRelatedByParentIdRuang(null);\n }\n\n $this->collRuangsRelatedByIdRuang = null;\n foreach ($ruangsRelatedByIdRuang as $ruangRelatedByIdRuang) {\n $this->addRuangRelatedByIdRuang($ruangRelatedByIdRuang);\n }\n\n $this->collRuangsRelatedByIdRuang = $ruangsRelatedByIdRuang;\n $this->collRuangsRelatedByIdRuangPartial = false;\n\n return $this;\n }", "title": "" }, { "docid": "0dc8ef1888c2329796bb8ba977b3024a", "score": "0.51112574", "text": "public function setTags(PropelCollection $tags, PropelPDO $con = null)\n\t{\n\t\t$this->tagsScheduledForDeletion = $this->getTags(new Criteria(), $con)->diff($tags);\n\n\t\tforeach ($tags as $tag) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($tag->isNew()) {\n\t\t\t\t$tag->setUser($this);\n\t\t\t}\n\t\t\t$this->addTag($tag);\n\t\t}\n\n\t\t$this->collTags = $tags;\n\t}", "title": "" }, { "docid": "9325bab604060777a0bdd3c404374c26", "score": "0.50918627", "text": "public function setAuditEvents(PropelCollection $auditEvents, PropelPDO $con = null)\n\t{\n\t\t$this->auditEventsScheduledForDeletion = $this->getAuditEvents(new Criteria(), $con)->diff($auditEvents);\n\n\t\tforeach ($auditEvents as $auditEvent) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($auditEvent->isNew()) {\n\t\t\t\t$auditEvent->setUser($this);\n\t\t\t}\n\t\t\t$this->addAuditEvent($auditEvent);\n\t\t}\n\n\t\t$this->collAuditEvents = $auditEvents;\n\t}", "title": "" }, { "docid": "955a698e92ac2f1d4785cb3a75a8deff", "score": "0.5061238", "text": "public function setRegularEntrys(PropelCollection $regularEntrys, PropelPDO $con = null)\n\t{\n\t\t$this->regularEntrysScheduledForDeletion = $this->getRegularEntrys(new Criteria(), $con)->diff($regularEntrys);\n\n\t\tforeach ($regularEntrys as $regularEntry) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($regularEntry->isNew()) {\n\t\t\t\t$regularEntry->setUser($this);\n\t\t\t}\n\t\t\t$this->addRegularEntry($regularEntry);\n\t\t}\n\n\t\t$this->collRegularEntrys = $regularEntrys;\n\t}", "title": "" }, { "docid": "45d82e8982c058af3a5cfb40e4f4dbe7", "score": "0.502528", "text": "public function updateProjectUserTable(){\n foreach($this->projectAndUsers as $ownerID => $projects){\n\n $owner = User::where('zoho_id', $ownerID)->first();\n if($owner == null){\n continue;\n }\n $projectArray = array();\n foreach($projects as $projectID){\n $projectArray[] = $projectID;\n }\n\n $projects = Project::whereIn('zoho_id', $projectArray)->select('id')->get();\n\n $projectIDs = array();\n foreach($projects as $project){\n $projectIDs[] = $project->id;\n }\n\n $owner->projects()->sync($projectIDs);\n }\n }", "title": "" }, { "docid": "2650578899dc230411ae3162d1f307c4", "score": "0.50215304", "text": "public function setUsers($users)\n {\n $this->users = $users;\n }", "title": "" }, { "docid": "2650578899dc230411ae3162d1f307c4", "score": "0.50215304", "text": "public function setUsers($users)\n {\n $this->users = $users;\n }", "title": "" }, { "docid": "c80b0557d9cb23f513998049d350db5e", "score": "0.50127447", "text": "public function updateProxies()\n {\n if (!$this->exists())\n {\n throw new RuntimeException('Object must be saved first!');\n }\n\n $this->updateParticipantsApplied();\n $this->updateParticipantsPaid();\n $this->updateFreeSpots();\n $this->updateTurnover();\n \n $this->save();\n \n }", "title": "" }, { "docid": "fa5ebe6f91508516b4249edf1596e215", "score": "0.50028104", "text": "public function updateAllUserVenues()\n {\n $user = User::where(['company_id' => config('constant.COMPANY_ID'), 'user_type' => 'app'])->get();\n foreach ($user as $users) {\n $users->subscribed_venues = NULL;\n $users->save();\n $this->registerUserToElasticSearch($users);\n }\n }", "title": "" }, { "docid": "5ac7097aa0ecc563b6c7ecd4d04394ab", "score": "0.5002527", "text": "public function setCriteriaCollection(CriteriaCollection $collection);", "title": "" }, { "docid": "eb687a33d61929c7d22dd02b6a4c40dc", "score": "0.50023586", "text": "public function attachStudentsToTutor(User $tutor, Collection $students)\n {\n $students = $students->diff($tutor->students);\n\n foreach ($students as $student) {\n $relationship = new Relationship();\n\n $relationship->tutor_id = $tutor->id;\n $relationship->student_id = $student->id;\n\n $relationship->save();\n }\n }", "title": "" }, { "docid": "cfc915ad0a20701890225d653d7a19ab", "score": "0.50006825", "text": "public function users(): MorphToMany\n {\n return $this->morphedByMany(\n TenantUser::class,\n 'model',\n config('permission.table_names.model_has_roles'),\n 'role_id',\n config('permission.column_names.model_morph_key')\n );\n }", "title": "" }, { "docid": "5ac8fe4fad14cdbfe5ad2d33094b89e4", "score": "0.49693555", "text": "public function associations() {\n\t\t\t\t\t$this->belongs_to('user');\n\t\t\t}", "title": "" }, { "docid": "7431a351103b344caca9294750871cd0", "score": "0.49530837", "text": "public function attendees()\n\t{\n\t\t// Start a new collection\n\t\t$collection = $this->newCollection();\n\t\t\n\t\tif ($this->userAppointments->count() > 0)\n\t\t{\n\t\t\tforeach ($this->userAppointments as $a)\n\t\t\t{\n\t\t\t\tif ( ! $collection->has($a->user->id))\n\t\t\t\t\t$collection->put($a->user->id, $a->user);\n\t\t\t}\n\t\t}\n\n\t\treturn $collection;\n\t}", "title": "" }, { "docid": "0b6e0e713f9ea6a3285c8abd31b55623", "score": "0.4934909", "text": "public function run()\n {\n $users = User::all();\n\n $matches = Match::all();\n\n foreach($matches as $match){\n for($i = 0; $i < 2; $i++)\n $match->users()->attach($users->random()->id);\n }\n }", "title": "" }, { "docid": "713bc3de0bf27ca423375a7999fb7d81", "score": "0.49321476", "text": "protected function hydratePivotRelation(array $models): void\n {\n foreach ($models as $model) {\n $model->setRelation('pivot', $this->newExistingPivot(\n $this->migratePivotAttributes($model)\n ));\n }\n }", "title": "" }, { "docid": "7c1bb09b7a2e1d319969ba44ecc47e17", "score": "0.49270996", "text": "public function setAlats(PropelCollection $alats, PropelPDO $con = null)\n {\n $alatsToDelete = $this->getAlats(new Criteria(), $con)->diff($alats);\n\n $this->alatsScheduledForDeletion = unserialize(serialize($alatsToDelete));\n\n foreach ($alatsToDelete as $alatRemoved) {\n $alatRemoved->setRuang(null);\n }\n\n $this->collAlats = null;\n foreach ($alats as $alat) {\n $this->addAlat($alat);\n }\n\n $this->collAlats = $alats;\n $this->collAlatsPartial = false;\n\n return $this;\n }", "title": "" }, { "docid": "4d48c79a74662d6eb2e2c166bb94ee08", "score": "0.49032062", "text": "public function setRequiredData() {\n foreach ($this->getEducations() as $education) {\n $education->setUser($this);\n }\n foreach ($this->getEmploymentHistories() as $employmentHistory) {\n $employmentHistory->setUser($this);\n }\n }", "title": "" }, { "docid": "69f0fe756f0e0503136c3532ed1a08a6", "score": "0.48845562", "text": "public function removeAll()\n {\n foreach ($this->_associated_objects as $parent_property => $object) {\n /**\n * @var Model\n */\n $object->setDirty($parent_property);\n }\n $this->exchangeArray([]);\n }", "title": "" }, { "docid": "bd400ec887e5393d6fdd9b93375f6388", "score": "0.4883498", "text": "public function initUsers($overrideExisting = true)\n {\n if (null !== $this->collUsers && !$overrideExisting) {\n return;\n }\n $this->collUsers = new PropelObjectCollection();\n $this->collUsers->setModel('User');\n }", "title": "" }, { "docid": "f091784cc5494d86dbb8ec23765bfd4b", "score": "0.48834014", "text": "public function userRelatedModels()\n {\n return $this->hasManyThrough(UserRelatedModel::class, UserModel::class);\n }", "title": "" }, { "docid": "e7529081a21ca03c4ae7d544f211d56f", "score": "0.488115", "text": "public function setAdjustmentEntrys(PropelCollection $adjustmentEntrys, PropelPDO $con = null)\n\t{\n\t\t$this->adjustmentEntrysScheduledForDeletion = $this->getAdjustmentEntrys(new Criteria(), $con)->diff($adjustmentEntrys);\n\n\t\tforeach ($adjustmentEntrys as $adjustmentEntry) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($adjustmentEntry->isNew()) {\n\t\t\t\t$adjustmentEntry->setUser($this);\n\t\t\t}\n\t\t\t$this->addAdjustmentEntry($adjustmentEntry);\n\t\t}\n\n\t\t$this->collAdjustmentEntrys = $adjustmentEntrys;\n\t}", "title": "" }, { "docid": "602ff129152d4c47d2b71205cf17e9f6", "score": "0.4874453", "text": "public function setSubordinates($array_of_ids)\n {\n\n $table = (new Employee())->table;\n DB::table($table)\n ->where('belongs_to_manager', $this->id)\n ->update(['belongs_to_manager' => null]);\n DB::table($table)\n ->whereIn('id', $array_of_ids)\n ->update(['belongs_to_manager' => $this->id]);\n }", "title": "" }, { "docid": "49eabedbe0b178bb03fe42db4a95658f", "score": "0.48633906", "text": "public function setRelations(array $relations);", "title": "" }, { "docid": "88d02b045e56678f97f1fba911cd8c00", "score": "0.48546103", "text": "public function run()\n {\n $tags = Tag::get();\n $users = User::get();\n foreach($users as $user){\n $numberOfTags = rand(0,10);\n $user->admins()->saveMany($tags->random($numberOfTags));\n }\n }", "title": "" }, { "docid": "45b510dbf4ddcf8542ff4c792d237836", "score": "0.484395", "text": "public function setRelationships(array $relationships);", "title": "" }, { "docid": "52e36c4b2c65d5f706f43317aa319e1f", "score": "0.4841486", "text": "public function RestrictUsers($users)\n {\n $this->mUsers = $this->intersect($this->mUsers,\n $this->getArray($users));\n }", "title": "" }, { "docid": "f354f81355c14d7418a15d7aef9afc8c", "score": "0.483212", "text": "public function assigned_users(){\n return $this->belongsToMany('App\\User')->withTimestamps();\n }", "title": "" }, { "docid": "fcf5f602199600f3f871bebb111c8a12", "score": "0.4828444", "text": "public function populate_associations() {\r\n\t\t$this->loadModel('User');\r\n\t\t$users = $this->User->find('all');\r\n\t\tforeach ($users as $user) {\r\n\t\t\tswitch ($user['User']['role']) {\r\n\t\t\t\tcase 'admin':\r\n\t\t\t\t\t$role_id = 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'instructor':\r\n\t\t\t\t\t$role_id = 2;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'trainee':\r\n\t\t\t\t\t$role_id = 3;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'student':\r\n\t\t\t\t\t$role_id = 4;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase '':\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\techo \"User {$user['User']['id']} has weirdo role {$user['User']['role']}<br />\";\r\n\t\t\t}\r\n\t\t\t$this->User->saveAll(array(\r\n\t\t\t\t'User' => array(\r\n\t\t\t\t\t'id' => $user['User']['id']\r\n\t\t\t\t),\r\n\t\t\t\t'Role' => array(\r\n\t\t\t\t\t$role_id\r\n\t\t\t\t)\r\n\t\t\t));\r\n\t\t}\r\n\t\t$this->render('/Pages/home');\r\n\t}", "title": "" }, { "docid": "fb74d509805cce4ddac70ef66e8bff4e", "score": "0.48279282", "text": "public function setTeams(PropelCollection $teams, PropelPDO $con = null)\n\t{\n\t\t$teamUsers = TeamUserQuery::create()\n\t\t\t->filterByTeam($teams)\n\t\t\t->filterByUser($this)\n\t\t\t->find($con);\n\n\t\t$currentTeamUsers = $this->getTeamUsers();\n\n\t\t$this->teamsScheduledForDeletion = $currentTeamUsers->diff($teamUsers);\n\t\t$this->collTeamUsers = $teamUsers;\n\n\t\tforeach ($teams as $team) {\n\t\t\t// Skip objects that are already in the current collection.\n\t\t\t$isInCurrent = false;\n\t\t\tforeach ($currentTeamUsers as $teamUser) {\n\t\t\t\tif ($teamUser->getTeam() == $team) {\n\t\t\t\t\t$isInCurrent = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($isInCurrent) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($team->isNew()) {\n\t\t\t\t$this->doAddTeam($team);\n\t\t\t} else {\n\t\t\t\t$this->addTeam($team);\n\t\t\t}\n\t\t}\n\n\t\t$this->collTeams = $teams;\n\t}", "title": "" }, { "docid": "6f48089fd3740248f88594b926f9c779", "score": "0.48143855", "text": "public static function update_all_collections(){\n session_write_close();\n $model = new HelpersModel;\n ini_set('max_execution_time', '0');\n $collections = $model->get_all_collections();\n if($collections && is_array($collections)){\n foreach ($collections as $collection) {\n self::update_commom_field_collection($collection->ID);\n }\n }\n }", "title": "" }, { "docid": "2fda750eacfac8d729776e780fba97aa", "score": "0.48141688", "text": "public function setRecentPlanReferences(?PlannerRecentPlanReferenceCollection $value): void {\n $this->getBackingStore()->set('recentPlanReferences', $value);\n }", "title": "" }, { "docid": "4623a59d494941b38afe0f0f690688db", "score": "0.48000994", "text": "public function setAssignations($contactIds)\n {\n foreach ($contactIds as $key => $value)\n {\n //finds contact instance\n $contactIds[$key] = \\App\\Contact::find($value)->getUserId();\n }\n $this->assigned_to()->sync($contactIds);\n }", "title": "" }, { "docid": "707bc9e9c4a85e41772323fd7142f069", "score": "0.47857684", "text": "public function user_collection(array $order_by=null, $offset=null, $limit=null) {\n return $this->_preload_many_to_many(\n 'user_collection',\n 'Neoform\\User\\Site',\n 'by_site',\n 'Neoform\\User',\n $order_by,\n $offset,\n $limit\n );\n }", "title": "" }, { "docid": "c7d2e7152d697a04f945f53f6ec78d6f", "score": "0.4782822", "text": "public function hydrateRelations() {}", "title": "" }, { "docid": "c52ba8af01f2a6c3863e0b234cb92e1b", "score": "0.4761153", "text": "public function vSetUsers($aUserNos){\n\t\tif(!is_array($aUserNos))\n\t\t\treturn;\n\t\t$this->__aCUser = null;\t//clear all user\n\t\tforeach ($aUserNos as $iUserNo) {\n\t\t\t$this->__aCUser[$iUserNo] = CUser::oGetUser($iUserNo);\n\t\t}\n\t}", "title": "" }, { "docid": "f9da699b5ab27c380aec11b416af5be8", "score": "0.4759258", "text": "public function insert_relations_into_trip_collection($trips)\n {\n foreach($trips as $trip){\n $trip->tour_id = $this->create('Tour')->id;\n $trip->save();\n\n // create 2 teams, link them to trip\n $team = $this->create('Team', ['trip_id' => $trip->id]);\n \n // create 4 users, link them to trip and team\n $this->create('User', ['trip_id' => $trip->id, 'team_id' => $team->id]);\n $this->create('User', ['trip_id' => $trip->id, 'team_id' => $team->id]);\n }\n }", "title": "" }, { "docid": "37d86197c56fd4e2483abcf7191c7e7c", "score": "0.47582668", "text": "public function associateMany(Model $model, $relations);", "title": "" }, { "docid": "20bdaf63c9f6e1104a2164fc5a0b5590", "score": "0.4755218", "text": "private function updateAssociations()\n {\n /** @var \\Shopware\\Models\\Article\\Image $article */\n foreach ($this->articles as $article) {\n $article->setPath($this->getName());\n Shopware()->Models()->persist($article);\n }\n Shopware()->Models()->flush();\n }", "title": "" }, { "docid": "671592336d08882b641ca36856eba505", "score": "0.4754838", "text": "public function setUserGroups(ObjectStorage $userGroups): void\n {\n $this->userGroups = $userGroups;\n }", "title": "" }, { "docid": "8d37dd17570421f01c4168d1722a184b", "score": "0.4746107", "text": "public function setObjects(array $objects);", "title": "" }, { "docid": "4de352305ffd6a2bcbf52347d56d4a8a", "score": "0.47256583", "text": "public function users(): BelongsToMany\n {\n return $this->belongsToMany($this->getUserClass())\n ->withTimestamps()\n ->using($this->getUsersPivotClass())\n ->withPivot('id');\n }", "title": "" }, { "docid": "74c9088adb982a710946723e88b37a83", "score": "0.47235635", "text": "public function touchOwners();", "title": "" }, { "docid": "e5a15720ca887d61c6d4bd5890cfcb90", "score": "0.4722249", "text": "public function load(ObjectManager $manager) {\n // $manager->persist($product);\n //$users = new ArrayCollection();\n for ($i = 0; $i < 50; $i++) {\n\n $user = new User();\n //$user->setName('product ' . $i);\n $password = $this->encoder->encodePassword($user, 'pass_1234');\n $user->setEmail('user_' . mt_rand(10, 10000) . '@google.pl');\n $user->setUsername('user_' . mt_rand(10, 10000));\n// $this->addReference($user->setUsername(), $users);\n $user->setPassword($password);\n //$users->add($user);\n $manager->persist($user);\n $this->addReference(self::ADMIN_USER_REFERENCE . $i, $user);\n }\n\n\n\n $user = new User();\n $password = $this->encoder->encodePassword($user, 'przemek');\n $user->setEmail('przemek@localhos.st');\n $user->setUsername('przemek');\n $user->setPassword($password);\n $user->setEnabled(true);\n $manager->persist($user);\n \n $user = new User();\n $password = $this->encoder->encodePassword($user, 'admin');\n $user->setEmail('admin@localhos.st');\n $user->setUsername('admin');\n $user->setPassword($password);\n $user->setEnabled(true);\n $user->addRole('ROLE_ADMIN');\n $manager->persist($user);\n \n \n $manager->flush();\n }", "title": "" }, { "docid": "debcc08447c31fba91b05677b4c29092", "score": "0.4714239", "text": "public static function forge($users = array())\n\t{\n\t\tstatic::$users = $users;\n\t}", "title": "" }, { "docid": "afddc523702ad97bdd0bbcc523dcab30", "score": "0.47139186", "text": "public function setRelations(Model $model, array $relations);", "title": "" }, { "docid": "aff8f28464b4c7f9fea3ab22b7a44b66", "score": "0.4701751", "text": "public function _assignUsersToGroup() {\n $this->out('Assigning \"Speaker\" group to all current users ...');\n \n $group = $this->Group->findByName('Speakers');\n if ( empty($group) || count($group) <= 0 ) {\n $this->err('Could not find \"Speakers\" group ...');\n }\n $group_id = $group['Group']['id'];\n \n if ( empty($group_id) ) {\n $this->err('Unknown error finding \"Speakers\" group ...');\n }\n \n $users = $this->User->find('all');\n foreach ($users as $user) {\n $user['User']['group_id'] = $group_id;\n if ( ! $this->User->save($user) ) {\n $this->err('Error saving user ...');\n }\n $this->out('.', 0);\n }\n $this->out('done.');\n }", "title": "" }, { "docid": "75c55668d14188f41f4eea3b26fc32f4", "score": "0.46859902", "text": "public function setRelations($relations)\n {\n $updated = new ArrayCollection();\n foreach ($relations as $relation) {\n if (! $relation instanceof Relation) {\n continue;\n }\n\n $relation->setTag($this);\n $updated->add($relation);\n }\n\n foreach ($this->relations as $relation) {\n if (! $updated->contains($relation)) {\n $this->relations->removeElement($relation);\n Shopware()->Container()->get('models')->remove($relation);\n }\n }\n\n $this->relations = $relations;\n }", "title": "" }, { "docid": "654c54fd9afebabd7a8fcac4bd3f782d", "score": "0.4681272", "text": "public function assign_all_users_to_all_blogs() {\n\n\t\t$users = get_users( [ 'fields' => 'id' ] );\n\t\tif ( empty( $users ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tforeach ( $users as $user_id ) {\n\t\t\t$this->assign_user_to_all_blogs( $user_id );\n\t\t}\n\t}", "title": "" }, { "docid": "7b4a7f0f74087bc815b1e0de6a6ea7f7", "score": "0.4675832", "text": "public function users()\n {\n return $this->morphedByMany('App\\User', 'mealable');\n }", "title": "" }, { "docid": "37712c279e5840c5fb5243435a394942", "score": "0.46657065", "text": "public function setPrincipalI18ns(PropelCollection $principalI18ns, PropelPDO $con = null)\n {\n $principalI18nsToDelete = $this->getPrincipalI18ns(new Criteria(), $con)->diff($principalI18ns);\n\n\n //since at least one column in the foreign key is at the same time a PK\n //we can not just set a PK to NULL in the lines below. We have to store\n //a backup of all values, so we are able to manipulate these items based on the onDelete value later.\n $this->principalI18nsScheduledForDeletion = clone $principalI18nsToDelete;\n\n foreach ($principalI18nsToDelete as $principalI18nRemoved) {\n $principalI18nRemoved->setPrincipal(null);\n }\n\n $this->collPrincipalI18ns = null;\n foreach ($principalI18ns as $principalI18n) {\n $this->addPrincipalI18n($principalI18n);\n }\n\n $this->collPrincipalI18ns = $principalI18ns;\n $this->collPrincipalI18nsPartial = false;\n\n return $this;\n }", "title": "" }, { "docid": "bdf659cbdf52627d1e911d796d3c7c21", "score": "0.46631995", "text": "public function setLnkUsersOrganisationss(PropelCollection $lnkUsersOrganisationss, PropelPDO $con = null)\n {\n $lnkUsersOrganisationssToDelete = $this->getLnkUsersOrganisationss(new Criteria(), $con)->diff($lnkUsersOrganisationss);\n\n\n //since at least one column in the foreign key is at the same time a PK\n //we can not just set a PK to NULL in the lines below. We have to store\n //a backup of all values, so we are able to manipulate these items based on the onDelete value later.\n $this->lnkUsersOrganisationssScheduledForDeletion = clone $lnkUsersOrganisationssToDelete;\n\n foreach ($lnkUsersOrganisationssToDelete as $lnkUsersOrganisationsRemoved) {\n $lnkUsersOrganisationsRemoved->setOrganisations(null);\n }\n\n $this->collLnkUsersOrganisationss = null;\n foreach ($lnkUsersOrganisationss as $lnkUsersOrganisations) {\n $this->addLnkUsersOrganisations($lnkUsersOrganisations);\n }\n\n $this->collLnkUsersOrganisationss = $lnkUsersOrganisationss;\n $this->collLnkUsersOrganisationssPartial = false;\n\n return $this;\n }", "title": "" }, { "docid": "8ac66ab7c542c86f465e7e39c2c8e0fd", "score": "0.466002", "text": "public function delete_data_for_users_in_context(\\core_privacy\\local\\request\\userlist_collection $collection) {\n $progress = static::get_log_tracer();\n\n $a = (object) [\n 'contextid' => $collection->get_context()->id,\n 'total' => count($collection),\n 'progress' => 0,\n 'component' => '',\n 'datetime' => userdate(time()),\n ];\n\n // Delete the data.\n $progress->output(get_string('trace:deletingapprovedusers', 'core_privacy', $a), 1);\n foreach ($collection as $userlist) {\n if (!$userlist instanceof \\core_privacy\\local\\request\\approved_userlist) {\n throw new \\moodle_exception('The supplied userlist must be an approved_userlist');\n }\n\n $component = $userlist->get_component();\n $a->component = $component;\n $a->progress++;\n $a->datetime = userdate(time());\n\n if (empty($userlist)) {\n // This really shouldn't happen!\n continue;\n }\n\n $progress->output(get_string('trace:processingcomponent', 'core_privacy', $a), 2);\n\n $this->handled_component_class_callback($component, core_userlist_provider::class,\n 'delete_data_for_users', [$userlist]);\n }\n\n $progress->output(get_string('trace:done', 'core_privacy'), 1);\n }", "title": "" }, { "docid": "2698371c20b37f99e8a1e6db31d510d4", "score": "0.46541616", "text": "public function getAssociatedUsers(): Collection\n\t{\n\t\t$users = $this->account->managedBy;\n\n\t\tif(!empty($this->email)) {\n\t\t\t$email_users = Users::where('email', $this->email)->get();\n\t\t\t$users = $users->merge($email_users);\n\t\t\t$users = $users->unique();\n\t\t}\n\n\t\treturn $users;\n\t}", "title": "" }, { "docid": "65e0f9e1dd668afcccc8c03810bdc47e", "score": "0.46371317", "text": "public function reload($deep = false, PropelPDO $con = null)\n\t{\n\t\tif ($this->isDeleted()) {\n\t\t\tthrow new PropelException(\"Cannot reload a deleted object.\");\n\t\t}\n\n\t\tif ($this->isNew()) {\n\t\t\tthrow new PropelException(\"Cannot reload an unsaved object.\");\n\t\t}\n\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(UserPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\n\t\t// We don't need to alter the object instance pool; we're just modifying this instance\n\t\t// already in the pool.\n\n\t\t$stmt = UserPeer::doSelectStmt($this->buildPkeyCriteria(), $con);\n\t\t$row = $stmt->fetch(PDO::FETCH_NUM);\n\t\t$stmt->closeCursor();\n\t\tif (!$row) {\n\t\t\tthrow new PropelException('Cannot find matching row in the database to reload object values.');\n\t\t}\n\t\t$this->hydrate($row, 0, true); // rehydrate\n\n\t\tif ($deep) { // also de-associate any related objects?\n\n\t\t\t$this->collTeamUsers = null;\n\n\t\t\t$this->collUserProjects = null;\n\n\t\t\t$this->collTags = null;\n\n\t\t\t$this->collEntrys = null;\n\n\t\t\t$this->collAuditEvents = null;\n\n\t\t\t$this->collOOBookings = null;\n\n\t\t\t$this->collRegularEntrys = null;\n\n\t\t\t$this->collProjectEntrys = null;\n\n\t\t\t$this->collOOEntrys = null;\n\n\t\t\t$this->collAdjustmentEntrys = null;\n\n\t\t\t$this->collTeams = null;\n\t\t\t$this->collProjects = null;\n\t\t} // if (deep)\n\t}", "title": "" }, { "docid": "5533c1642785cdb45378ed4c9e614e42", "score": "0.46342552", "text": "public function sync_relationships($userid, $verbose) {\n\n // Get relationships we want to work on from external source.\n $externaldata = $this->get_external_relationships_in_scope($userid);\n\n if ($verbose) {\n mtrace(count($externaldata) .\" entries in the external table\");\n }\n\n // Only continue syn process if there are externally defined relationships.\n // This behaviour can vary from sync strategy to sync strategy.\n if (count($externaldata)) {\n\n // Get relationships that already exist in Moodle.\n $existing = $this->internaldataport->get_relationships_in_scope($userid, $userid);\n\n if ($verbose) {\n mtrace(get_string('info_existingrelcount', 'enrol_dbuserrel', count($existing)));\n }\n\n // Get all existing Moodle roles (doing this once here for efficiency).\n $roles = $this->internaldataport->get_all_roles();\n\n if ($verbose) {\n mtrace(get_string('info_existingrolescount', 'enrol_dbuserrel', count($roles)));\n }\n\n $subjectusers = array(); // Cache mapping of localsubjectuserfield to mdl_user.id.\n $objectusers = array(); // Cache mapping of localsubjectuserfield to mdl_user.id.\n\n // Since there is data to process, get details of remote fields in preparation.\n $remoterolefield = $this->externaldataport->get_role_fieldname();\n $remotesubjectfield = $this->externaldataport->get_subject_fieldname();\n $remoteobjectfield = $this->externaldataport->get_object_fieldname();\n\n foreach ($externaldata as $key => $row) {\n\n // TODO: Handle coma seperated values in remoteobject field.\n\n // First translate remote subject and object values into equivalent Moodle user IDs (and cache them).\n $remotesubjectvalue = $row[$remotesubjectfield];\n $remoteobjectvalue = $row[$remoteobjectfield];\n\n $remotesubjectuserid = clean_param($this->internaldataport->get_equivalent_moodle_id($remotesubjectvalue, 'subject'),PARAM_INT);\n $remoteobjectuserid = clean_param($this->internaldataport->get_equivalent_moodle_id($remoteobjectvalue, 'object'),PARAM_INT);\n\n $localkeyvalue = $row[$remoterolefield] . '|' . $remotesubjectuserid . '|' . $remoteobjectuserid;\n\n // Check if the role is already assigned.\n if (array_key_exists($localkeyvalue, $existing)) {\n // Relationship already exists in moodle db, so unset it (so we can delete everything left).\n unset($existing[$localkeyvalue]);\n\n if ($verbose) {\n \tmtrace(get_string('warn_duplicaterel', 'enrol_dbuserrel', $localkeyvalue));\n }\n\n continue;\n }\n\n // Ensure the remote role exists in Moodle.\n if (!array_key_exists($row[$remoterolefield], $roles)) {\n // Role doesn't exist in moodle. skip.\n if ($verbose) {\n\t mtrace(get_string('warn_unknownrole', 'enrol_dbuserrel',\n\t ['k' => $key, 'f' => $row[$remoterolefield]]));\n\t }\n\n continue;\n }\n\n // Ensure remote subject exists as a user in Moodle.\n if (!array_key_exists($row[$remotesubjectfield], $subjectusers)) {\n if (empty($remotesubjectuserid) || !$remotesubjectuserid) {\n \tif ($verbose) {\n \t mtrace(get_string('warn_unknownsub', 'enrol_dbuserrel',\n \t ['k' => $key, 'f' => $row[$remotesubjectfield]]));\n \t}\n\n // Couldn't find Moodle user record for remote subject, skip.\n continue;\n } else {\n $subjectusers[$row[$remotesubjectfield]] = $remotesubjectuserid;\n }\n }\n\n // Ensure remote object exists as a user in Moodle.\n if (!array_key_exists($row[$remoteobjectfield], $objectusers)) {\n if (empty($remoteobjectuserid) || !$remoteobjectuserid) {\n\n \tif ($verbose) {\n \t\t mtrace(get_string('warn_unknownobj', 'enrol_dbuserrel',\n \t\t ['k' => $key, 'f' => $row[$remoteobjectfield]]));\n \t\t}\n\n // Couldn't find Moodle user record for remote object, skip.\n continue;\n } else {\n $objectusers[$row[$remoteobjectfield]] = $remoteobjectuserid;\n }\n }\n\n // Get the relevant context object.\n $context = \\context_user::instance($objectusers[$row[$remoteobjectfield]]);\n\n\t\t\t\tif ($verbose) {\n\t mtrace(get_string('info_relcreated', 'enrol_dbuserrel',\n\t ['o' => $row[$remoteobjectfield], 's' => $row[$remotesubjectfield], 'r' => $row[$remoteobjectfield]]));\n\t\t\t\t}\n\n // Assign the role!\n role_assign(\n $roles[$row[$remoterolefield]]->id,\n $subjectusers[$row[$remotesubjectfield]],\n $context->id,\n 'enrol_dbuserrel',\n 0,\n ''\n );\n\n } // End foreach external record.\n\n\t\t\tif ($verbose) {\n\t mtrace(get_string('info_deletingrels', 'enrol_dbuserrel'));\n\t }\n\n // Delete existing roles that are no longer present in remote data source.\n foreach ($existing as $key => $assignment) {\n if ($assignment['component'] == 'enrol_dbuserrel') {\n\n \tif ($verbose) {\n \tmtrace(\"Information: [$key] unassigning $key\");\n }\n\n role_unassign(\n $assignment['roleid'],\n $assignment['userid'],\n $assignment['contextid'],\n 'enrol_dbuserrel',\n 0\n );\n }\n }\n\n } // End check on existence of external data.\n\n $this->externaldataport->shutdown();\n }", "title": "" }, { "docid": "1487e6f16472015a5ad937359cc0495a", "score": "0.46256554", "text": "public function getUserDoneExamsWithRelations($userId, $paginate = false, array $relations = []);", "title": "" }, { "docid": "0fd458d701cbf9cbfd3d3c3e881f1769", "score": "0.46255443", "text": "protected function _prepareCollection()\n {\n $collection = Mage::getModel('incentivize/users')->getCollection();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "title": "" }, { "docid": "f1913ab2434069ccce3cb844a4695da1", "score": "0.46208894", "text": "public function initAdminUsers()\n\t{\n\t\t$this->collAdminUsers = array();\n\t}", "title": "" }, { "docid": "3ba4c5534527abd46043bb9b84e73d47", "score": "0.46207622", "text": "public function run()\n {\n User::get()->each(function ($user) {\n $user->lessons()->attach(\n factory(Lesson::class)->create()\n );\n });\n }", "title": "" }, { "docid": "eef23a4e4db8408782cec05b89e672ef", "score": "0.4619263", "text": "public function clearUsers() {\n $this->to = array();\n $this->merge_vars = array();\n }", "title": "" }, { "docid": "3c552d48b399b62aab825d315c8f8fed", "score": "0.46117106", "text": "public function saveAffiliatedUsers($results,$status) {\n $dm = $this->container->get('doctrine.odm.mongodb.document_manager');\n $time = new \\DateTime('now');\n foreach($results as $result) {\n if($result['from_id'] != '' && $result['email'] != ''){\n $invite_mail = new InvitationSend();\n $invite_mail->setAffiliationType(1);\n $invite_mail->setCount(1);\n $invite_mail->setFromId($result['from_id']);\n $invite_mail->setEmail($result['email']);\n $invite_mail->setStatus(1);\n $invite_mail->setCreatedAt($time);\n $invite_mail->setUpdatedAt($time);\n $dm->persist($invite_mail);\n } \n }\n \n try{\n $dm->flush(); \n } catch (\\Exception $ex) {\n echo \"Exception Occured while saving :\".$ex->getMessage();\n }\n }", "title": "" }, { "docid": "184addd9aec2cbbdaa12298837d71652", "score": "0.46111488", "text": "public function users() {\r\n return $this\r\n ->belongsToMany('App\\User')\r\n ->withTimestamps()\r\n ->using('App\\Model\\UserWord');\r\n }", "title": "" }, { "docid": "72b7781b3b7a966eca9d1b18ee632491", "score": "0.46055508", "text": "public function setAllRelatedTransactions()\n {\n $result = $this->getAllRelatedTransactionsModels()->all();\n $this->all_related_transactions = ArrayHelper::getColumn($result, 'transacties_id');\n }", "title": "" }, { "docid": "9d9dbcd2bace4393b670031491140cfe", "score": "0.4601612", "text": "public function setTouchedRelations(array $touches)\n {\n $this->touches = $touches;\n\n return $this;\n }", "title": "" }, { "docid": "0d8dd2a7921e537a9447342168b37383", "score": "0.46006864", "text": "public function users()\n {\n return $this->morphMany(User::class, 'userable');\n }", "title": "" }, { "docid": "9092c09f46946294595f78f7108df20f", "score": "0.45955113", "text": "public function run()\n {\n User::factory(10)->create();\n Events::factory(10)->create();\n User::factory(1)->create([\n 'name'=>'root',\n 'email'=>'123@mail.com',\n 'isAdmin'=>true]);\n User::factory(1)->create([\n 'name'=>'user',\n 'email'=>'user@mail.com',\n 'isAdmin'=>false]);\n\n Foreach (Events::all() as $event){\n $users= User::inRandomOrder()->take(rand(1,10))->pluck('id');\n $event->BookedInUsers()->attach($users);\n }\n\n\n \n\n }", "title": "" }, { "docid": "34a873e301c77c71e8db21de8012d355", "score": "0.45866096", "text": "public function setMuloks(PropelCollection $muloks, PropelPDO $con = null)\n {\n $muloksToDelete = $this->getMuloks(new Criteria(), $con)->diff($muloks);\n\n $this->muloksScheduledForDeletion = unserialize(serialize($muloksToDelete));\n\n foreach ($muloksToDelete as $mulokRemoved) {\n $mulokRemoved->setMstWilayah(null);\n }\n\n $this->collMuloks = null;\n foreach ($muloks as $mulok) {\n $this->addMulok($mulok);\n }\n\n $this->collMuloks = $muloks;\n $this->collMuloksPartial = false;\n\n return $this;\n }", "title": "" }, { "docid": "852c0c38c41f8045dbb9b1f7d7c42066", "score": "0.45849362", "text": "public function attachUsersToConv($users, Conversation $conversation)\n {\n foreach ($users as $user)\n {\n $conversation->users()->attach($user);\n }\n\n return $conversation;\n }", "title": "" }, { "docid": "55e9477c4958b67b6611ad624ad936e8", "score": "0.45835274", "text": "public function updateActiveUsers() {\r\n \t$this->setLoggedInUser($this->dataHelper->getUser($this->loggedInUser->getId()));\r\n \t$this->setViewingUser($this->dataHelper->getUser($this->viewingUser->getId()));\r\n }", "title": "" }, { "docid": "c64d7ece24d731f407ccc0bdfc757372", "score": "0.45747808", "text": "public function setCollection(CollectionInterface $collection): void;", "title": "" }, { "docid": "677ba0d7af7850c978fc9ea45ad57714", "score": "0.4574", "text": "public function AddUsers($users)\n {\n foreach($users as $user)\n {\n $this->AddUser($user);\n }\n }", "title": "" }, { "docid": "80fa944ab0d3da85c1c4178db17d1ec7", "score": "0.45737734", "text": "public function buildRelations()\n {\n $this->addRelation('Client', 'FOS\\\\UserBundle\\\\Propel\\\\User', RelationMap::MANY_TO_ONE, array('client_user_id' => 'id', ), null, null);\n $this->addRelation('ServiceProvider', 'FOS\\\\UserBundle\\\\Propel\\\\User', RelationMap::MANY_TO_ONE, array('service_provider_user_id' => 'id', ), null, null);\n $this->addRelation('Day', 'RMT\\\\TimeScheduling\\\\Model\\\\Day', RelationMap::MANY_TO_ONE, array('day_id' => 'id', ), null, null);\n }", "title": "" }, { "docid": "7bec665146552d9bc54671c999fdaee2", "score": "0.45681438", "text": "public function run()\n {\n Client::inRandomOrder()\n ->limit(25)\n ->each(function (Client $client) {\n $client->users()->sync([$userId = User::inRandomOrder()->first()->id]);\n });\n }", "title": "" }, { "docid": "ab8ca16cf5c61a370055a7ac6045e4f6", "score": "0.4560324", "text": "public function run()\n {\n \t$users = UserEntity::all();\n $users->each(function($user)\n {\n \tfactory(\n\t \tPaymentHistoryEntity::class,\n\t \t10\n\t )\n\t ->create()\n\t ->each(function($payment) use($user)\n \t{\n \t\t$payment->owner_id = $user->id;\n \t\t$payment->save();\n \t});\n });\n }", "title": "" }, { "docid": "727e93b7d4b26dd9226ce5453b4290c8", "score": "0.45547265", "text": "public function testUpdateEntityWithUnsetCollection(): void\n {\n $e = new User();\n $e->email = 'test@email.com';\n $e->balance = 300;\n\n $this->captureWriteQueries();\n $this->save($e);\n $this->assertNumWrites(1);\n $this->assertIsIterable($e->comments);\n\n $e->comments = null;\n\n $this->captureWriteQueries();\n $this->save($e);\n $this->assertNumWrites(0);\n }", "title": "" }, { "docid": "8a1a89a5d6e15b4869ebd1b3373190bf", "score": "0.45531404", "text": "private function batchSaveAddPersons()\n {\n if ($this->id) {\n $field = 'updated_by';\n } else {\n $field = 'created_by';\n }\n\n if ($this->hasField($field) and !isset($this->data_being_saved[$field])) {\n $this->data_being_saved[$field] = user()->id;\n }\n }", "title": "" }, { "docid": "3ca7c6a8d29e9e1c9d1f298cc2080445", "score": "0.45514178", "text": "public function run() {\n $communities = \\App\\Community::all();\n\n foreach ($communities as $community) {\n for ($i = 0; $i < 5; $i++) {\n $community->members()->save(factory(\\App\\User::class)->create());\n }\n }\n }", "title": "" }, { "docid": "f46ae7f5267137d23fc21da0f2bc09d0", "score": "0.45504814", "text": "public function run()\n {\n foreach (\\App\\User::all() as $user) {\n for ($i = 0; $i < rand(1, 5); $i++) {\n $model = $user->userModels()->create(['name' => 'test-' . $user->id . '-' . $i]);\n for ($j = 0; $j < rand(2, 7); $j++) {\n $model->userRelatedModels()->create(['name' => 'test-' . $model->id . '-' . $j]);\n }\n }\n\n }\n }", "title": "" }, { "docid": "51dcc758fbd74967239a1016b55a08da", "score": "0.45458537", "text": "public function users(): BelongsToMany\n {\n return $this->morphedByMany(\n config('permission.models.user'),\n 'model',\n config('permission.table_names.model_has_permissions'),\n 'permission_id',\n config('permission.column_names.model_morph_key')\n );\n }", "title": "" }, { "docid": "e93b8af13b1d40ef25f951035f191470", "score": "0.45434147", "text": "public function updateUsersAll() {\n\t\t//pastikan data user yg di import sudah ada di table tempuser secara keseluruhan\n\t\t$query = \" CALL sp_update_users_all() \";\n\t\t$this->connection->execute($query);\n\t}", "title": "" }, { "docid": "65f9615a3d46c478d464cdfd6e75f7df", "score": "0.45407027", "text": "public function GetManyUsers(SerializerInterface $serializer, PersistentCollection $users)\n {\n\n $formatted = array();\n if ($users == null){\n return null;\n }\n else {\n foreach ($users as $user) {\n $birthday = $user->getBirthday();\n if ($birthday) {\n $birthday_date = date(\"m-d-Y\", $birthday->sec);\n } else {\n $birthday_date = null;\n }\n $formatted[] = [\n 'id' => $user->getId(),\n 'firstname' => $user->getfirstname(),\n 'email' => $user->getEmail(),\n 'lastname' => $user->getlastname(),\n 'address' => $user->getaddress(),\n 'tel' => $user->gettel(),\n 'gender' => $user->getgender(),\n 'postalcode' => $user->getpostalcode(),\n 'city' => $user->getcity(),\n 'country' => $user->getcountry(),\n 'level' => $user->getlevel(),\n 'birthday' => $birthday_date,\n 'username' => $user->getUsername(),\n 'created_date' => $user->getCreatedDate(),\n 'lastLogin' => $user->getlastLogin(),\n 'role' => $user->getRoles(),\n 'image' => $user->getPhotoName()\n ];\n }\n }\n\n\n\n\n $allusers= $serializer->serialize(\n $formatted,\n 'json',[\n 'circular_reference_handler' => function ($object) {\n return $object->getId();\n }\n ]\n );\n\n\n\n\n return $allusers ;\n\n }", "title": "" }, { "docid": "4e19f321ec145772f6105f44753c62ef", "score": "0.45406523", "text": "public function setPubRelationships(PropelCollection $pubRelationships, PropelPDO $con = null)\n {\n $pubRelationshipsToDelete = $this->getPubRelationships(new Criteria(), $con)->diff($pubRelationships);\n\n $this->pubRelationshipsScheduledForDeletion = unserialize(serialize($pubRelationshipsToDelete));\n\n foreach ($pubRelationshipsToDelete as $pubRelationshipRemoved) {\n $pubRelationshipRemoved->setCvterm(null);\n }\n\n $this->collPubRelationships = null;\n foreach ($pubRelationships as $pubRelationship) {\n $this->addPubRelationship($pubRelationship);\n }\n\n $this->collPubRelationships = $pubRelationships;\n $this->collPubRelationshipsPartial = false;\n\n return $this;\n }", "title": "" } ]