anchor stringlengths 10 14.3k | positive stringlengths 10 14.9k |
|---|---|
Return all employees as array so it is easier to display | public function findAllEmployeesAsArray()
{
return $this->createQueryBuilder('e')
->getQuery()
->getArrayResult();
} |
Finish sale and redirect customer to payment result page | public function finish_sale($order_id, array $callback_data)
{
$order = $this->get_order($order_id, $callback_data);
try
{
$response = $this
->get_payment_aggregate()
->finish_sale($order, $callback_data);
;
}
catch (Ex... |
adds the settings to the Payment Gateways section | function pn_edd_add_settings( $settings ) {
$paynow_gateway_settings = array(
array(
'id' => 'paynow_gateway_settings',
'name' => '<strong>' . __( 'Paynow Gateway Settings', 'pw_edd' ) . '</strong>',
'desc' => __( 'Configure the gateway settings', 'pw_edd' ),
'type' => 'header'
),
array(
'id' => ... |
Returns a duplicate of the node. | final public function copy(array $params = null) {
return clone $this;
} |
Get latest currency exchange rates. | public function latest($base = 'USD', $targets = [])
{
return $this->query('latest', $base, $targets);
} |
Set the value of title | public function setTitle($title)
{
$this->title = $title;
return $this;
} |
get the total new orders | public function add_category_template($filename, $data = array())
{
//$data["there_is_new_order"] = $this->Admin_model->return_total_rows('order', 'status', 'open');
$this->admin_header();
$data['header'] = $this->load->view('templates/admin_header', $data, TRUE);
$data['footer'] = $this->load->view('templa... |
Search for the translated version of a Cat URL Indicator segment. Takes a segment, and sees if it exists in the languages array. If it does, return the translated version of it from the requested language | private function _get_translated_cat_url_indicator($str, $lang_id_from = NULL, $lang_id_to = NULL)
{
$from_language = ee()->publisher_model->languages[$lang_id_from];
$to_language = ee()->publisher_model->languages[$lang_id_to];
if ($from_language['cat_url_indicator'] == $str)
{
... |
Checks if a disease is editable | function is_disease_editable($obj, $diseasestamp)
{
$disease = $obj->Query_reader->get_row_as_array('get_diagnosis_by_stamp', array('stamp'=>$diseasestamp));
if((!empty($disease['isfrozen']) && $disease['isfrozen'] == 'N') || ($obj->session->userdata('isadmin') && $obj->session->userdata('isadmin') == 'Y'))
{
retu... |
Return the users count for each value associated with the metadata provided | function statistics_extended_users_metadata_count($metadata,$group=null){
$sector_metadata = get_metastring_id($metadata);
$dbprefix = elgg_get_config('dbprefix');
$query = "SELECT mv.string AS data, count(*) as total ";
$query .= "FROM {$dbprefix}users_entity ue ";
$query .= "JOIN " . $dbprefix . "ent... |
Viet phuong thuc lay ra 3 san pham noi bat | function getFeatureProducts(){
$itemonpage = !empty($_GET['per_page'])?$_GET['per_page']:3;
$page = !empty($_GET['page'])?$_GET['page']:1;
$offset= ($page-1)*$itemonpage;
$numberPage = ceil(30/$itemonpage);
$sql = self::$connection->prepare("SELECT * FROM produc... |
TODO: Implement delete() method. | public function delete($id)
{
} |
parse a url as a log dsn | public static function parse($url, $options = [])
{
$inst = new LogDsn($url, $options);
return $inst->toArray();
} |
Get the associated ChildTblShippingCategories object | public function getTblShippingCategories(ConnectionInterface $con = null)
{
if ($this->aTblShippingCategories === null && ($this->prod_category_shipping !== null)) {
$this->aTblShippingCategories = ChildTblShippingCategoriesQuery::create()->findPk($this->prod_category_shipping, $con);
... |
Sets an optional classpath | public function setClasspath(Path $classpath)
{
if ($this->_classpath === null) {
$this->_classpath = $classpath;
} else {
$this->_classpath->append($classpath);
}
} |
Normalize rules if needed. | public function normalizeRules($rules): array
{
if (\is_string($rules)) {
$rules = $this->parseRules($rules);
}
if (!\is_array($rules)) {
throw new \UnexpectedValueException('The rules should be an array or string');
}
return $this->cancelOnFail($rul... |
Extract the timeslot from a DateTime object | private function dateTime2timeslot($date)
{
return (intval($date->format('G'))*2 + (($date->format('i') == '00') ? 0 : 1));
} |
Exclude object from result | public function prune($lp = null)
{
if ($lp) {
$this->addUsingAlias(LpPeer::ID, $lp->getId(), Criteria::NOT_EQUAL);
}
return $this;
} |
Show the form for creating a new resource. | public function create()
{
$categories=$this->model->getCategories();
$colors=$this->model->getColours();
return view("admin.pages.insertProduct",['categories'=>$categories,'colors'=>$colors]);
} |
Tests the setCodeCollaborateurDest() method. | public function testSetCodeCollaborateurDest() {
$obj = new AppelsEnCours();
$obj->setCodeCollaborateurDest("codeCollaborateurDest");
$this->assertEquals("codeCollaborateurDest", $obj->getCodeCollaborateurDest());
} |
make sure our child object has this method | public function __call($name, $arguments) {
if(method_exists($this->excel, $name)) {
// forward the call to our child object
return call_user_func_array(array($this->excel, $name), $arguments);
}
return null;
} |
Save Methods / Function to insert a project in to the database, should check the project code first. Function returns the created project ID | function saveQuestionArray($questions, $project_id) {
// Loop through questions array, do Insert query for each
$questions_ids = array();
$i = 0;
foreach($questions as $question) {
$i++;
DB::insert('question', array(
'question_project_id' => $project_id,
'question_title' => $question,
'question_numb... |
After installation migrate all existing data to the Publisher tables | public function migrate_data($entry_ids = array(), $where = array(), $delete_old = FALSE)
{
// Delete old rows. delete() resets the where(), so reset them.
if ($delete_old && !empty($where) && !empty($entry_ids))
{
ee()->db->where_in('entry_id', $entry_ids)
->dele... |
Remove the specified resource from storage. | public function destroy( $abate)
{
$abates = Abate::find($abate);
//$Abate->deleted_at = new DateTime();
$abates->delete();
//$deleted= $Abate->delete();
session()->flash('flash_message','Abate was removed with success');
if (Request::wantsJson()){
return... |
Set the value of email | public static function setEmail($email)
{
self::$email = $email;
} |
Execute the console command. | public function handle()
{
Log::info('CHECKING TRIALS');
CourseStudent::where('status', 'active')
->where('is_in_trial', true)
->get()->each(function ($student) {
$now = Carbon::now();
$trial_start_date = $student->trial_started;
... |
Test login real user Try to validate real user | public function testLogin() : void
{
$res = self::$dataService->login( "login", null, $this->userA["user"], $this->userA["pass"], [ "user_agent" => $this->userA["getBrowserName"], "time" => $this->userA["getCurrentDateTime"], "ip" => $this->userA["getReqIp"] ] );
$this->assertIsArray( $res, 'testLo... |
Update the specified resource in storage. | public function update(UpdateRequest $request, Event $event): EventResource
{
return new EventResource(
tap($event)->update(array_filter($request->only(self::ALLOWED_FIELDS)))
);
} |
Operation deleteunit Remove a unit. | public function unitdelete($unit_id)
{
$unit = Unit::destroy($unit_id);
if($unit){
return response()->json(['msg' => 'Saftly deleted the unit'],200);
}else{
return response()->json(['msg' => 'Could not delete record'], 400);
}
} |
replace non letter or digits by | private function getRewrite($text, $limit = 75) {
$text = preg_replace('/~[^\\pL\d]+~u/i', '-', $text);
// trim
$text = trim($text, '-');
// lowercase
$text = strtolower($text);
// remove unwanted characters
$text = preg_replace('~[^-\w]+~', '', $text);
... |
Atualiza os dados de sess?o do usu?rio logado | public function _atualiza_usuario_sessao($row) {
$session_key = $this->config['prefixo_sessao'] . '.' . $this->config['hashkey'] . '.' . $this->config['model_usuario'];
$ses = $this->Session->read($session_key);
$row = $row["{$this->config['model_usuario']}"];
$ses = arra... |
setAdditionalProperties If the subattribute has additional option values add them to the object public properties | public function setAdditionalProperties(Array $values)
{
unset($values['key']);
unset($values['value']);
unset($values['dependencies']);
if ($values) {
foreach ($values as $key => $value) {
$this->$key = $value;
}
}
return $... |
VISE EN RUTE WHERE ruteId = ? | public function getRute($ruteId, $logg)
{
include (realpath(dirname(__FILE__)).'/db.php');;
$sql = "SELECT ruteId, fraDestId, tilDestId, sesongId, navn FROM rute WHERE ruteId=?;";
$queryRute = $db_connection->prepare($sql);
$... |
Append item to the channel | public function appendTo(ChannelInterface $channel); |
Display a listing of the resource. | public function joinedclass()
{
//thaem herre
$value= session('id');
$username = DB::select('select * from users where idUser=?',[$value]);
$yourjoinedclass= DB::select('select * from class_students where idUser=?',[$value]);
$class=DB::select('select * from classrooms order ... |
Show a postcode resource. | public function show(string $postcode, string $houseNumber, string $houseNumberAddition = null): JsonResponse
{
try {
$address = $this->addressService->search(str_replace(' ', '', $postcode), (int)$houseNumber, $houseNumberAddition);
return response()->json($address);
} catch... |
get AccountID Returns:The Service account associated with the security event notification. | public function getAccountID()
{
return $this->getKey('AccountID');
} |
multiple queries from database to admin | public function update() {
$this->connect();
mysqli_multi_query($this->con, $this->sql);
$this->sql = "";
mysqli_close($this->con);
$this->getStories();
} |
Store a newly created resource in storage. | public function store(Request $request)
{
$request->validate([
'nama'=>'required|max:255',
'nipd'=>'required|unique:dosens|max:255'
]);
$dosens = new dosens;
$dosens->nama = $request->nama;
$dosens->nipd = $request->nipd;
$dosens->save();
... |
Store a newly created resource in storage. | public function store(Request $request)
{
$title = $request->input('title');
$recurrence = $request->input('recurrence');
$price = $request->input('price');
$button = $request->input('button');
$link = $request->input('link');
$back_color = $request->input('back_color');
... |
Remove the specified resource from storage. | public function destroy($id)
{
User::destroy($id);
} |
Return the file height | public function height($manipulation_name = '')
{
return $this->row_field('height');
} |
Get Leave Name by Id | public function getLeaveNameById($absid){
$sql = <<<eof
select absence_name
from hr_absence_type
where seg_segment_no = :companyid
and absence_type_id = :absid
eof;
//$this->DBConn->debug = 1;
return $this->DBConn->CacheGetOne(self::DATA_CACHE_SECONDS,$sql,array('companyid' =... |
/////////////////////// Counties // ////////////////////// Operation listsCountiesGet Fetch Regimen Counties (for select options). | public function listsCountiesget()
{
$response = County::all();
return response()->json($response, 200);
} |
Get status by transaction_id | public function get(string $transactionID, WithdrawService $withdrawService)
{
$disburse = $withdrawService->getWithdrawStatus($transactionID);
return response()->json(['success'=> true, 'disburse' => $disburse]);
} |
Execute the loginflow to get the keywords | public function getKeywords($keywords = false)
{
$this->time_restrict = 5; // In Minutes;
$accounts = json_decode(file_get_contents(__DIR__ . "/../../../accounts.json"));
foreach ($accounts as $key => $value) {
$gv = new \GoogleLoginCurl($value->email, $value->password, $value... |
Generate a documentation link for a given key | public function buildDocLinkToKey($key) {
return $this->getDocBaseUrl() . '/server/15/go.php?to=' . $key;
} |
Store a newly created resource in storage. | public function create(Request $request)
{
$data = [
'title' => $request->title,
'sku' => $request->sku,
'warehouses_id' => $request->warehouse_id,
'description' => $request->description
];
Products::create($data);
return;
} |
Bring variables into scope | function whois_check(&$irc, &$data)
{
global $pickupchannel;
global $pickup;
global $queue;
global $users;
//Check for commands on queue
if($data->rawmessageex[1] == "330")
{
if($queue[$data->rawmessageex[3]][0]["nick"] == $data->rawmessageex[3])
{
//Get qauth and nick
$nick = $data->rawme... |
Set the value of DOCUMENT_PRODUCT_PIS_ALIQUOTA | public function setDocumentProductPisAliquota(float $document_product_pis_aliquota)
{
$this->collection->put('document_product_pis_aliquota', (string) $document_product_pis_aliquota);
} |
works with session facade, does session get or set process | function session($get = null, $set = null)
{
if ($get !== null && $set === null) {
return Session::get($get);
} elseif ($get !== null && $set !== null) {
return Session::set($get, $set);
} else {
return App::make('session');
}
} |
Seed the application's database. | public function run()
{
User::factory(100)->create();
Income::factory(100)->create();
Cost::factory(100)->create();
Region::factory(20)->create();
District::factory(50)->create();
UserAddress::factory(100)->create();
Law::factory(100)->create();
Prison... |
presmerovani na pozadovanou stranku | public static function redirect_initial($url = '', $code = 302)
{
self::initial()->redirect($url, $code);
} |
Constructor de la clase Metodo que carga los atributos de la clase CI_model | public function __construct()
{
parent::__construct();
} |
Gets the cached textures from the database (if any available) for this file | public function getCache() {
$db = \Helper::getDB();
$db->join('cached_assets c', 'dc.cacheId = c.id', 'LEFT');
$db->where('dc.fileId', $db->escape($this->getId()));
$results = $db->get('document_files_cache dc');
return $results;
} |
Returns TRUE if the route matches the filter and FALSE if not. | protected function routeMatches(string $filter, Route $route): bool
{
if(str_contains($route->getRoute(), $filter))
{
return true;
}
if(str_contains($this->getNormalizedActionName($route), $filter))
{
return true;
}
if(str_contains((string) $route->getName(), $filter))
{
return true;
}
... |
Search count only routine. | public function searchCount(\Doctrine\ORM\QueryBuilder $qb)
{
$qb->select('COUNT(DISTINCT t.transaction_id)');
return intval($qb->getSingleScalarResult());
} |
Gets the allowInsertRows property value. Represents the worksheet protection option of allowing inserting rows. | public function getAllowInsertRows(): ?bool {
$val = $this->getBackingStore()->get('allowInsertRows');
if (is_null($val) || is_bool($val)) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'allowInsertRows'");
} |
nacita sluzby podle obyvatele | private function selectServicesObyvatele($scheduler, $id){
$result = $scheduler->adminLoadServiceObyvatel($id);
return $this->transformToJSON($result);
} |
Implements theme_links() targeting the main menu specifically Outputs Foundation Nav bar | function zurpal_js_alter(&$javascript)
{
// Swap out jQuery to use an updated version of the library.
$javascript['misc/jquery.js']['data'] = drupal_get_path('theme', 'zurpal') . '/javascripts/foundation/jquery.js';
$javascript['misc/jquery.js']['version'] = '1.9.0';
//drupal_static_reset('drupal_add_js');
... |
show timeline if user is authenticated | public function index() {
if (Auth::check()) {
// get the statuses (own and from friends)
// (but filter out the replies - see Status model!)
$statuses =
Status::notReply()
->where(
function($query) {
return $query->where('user_id', Auth::user()->id)
->orWhereIn('user_id', A... |
Remove registros da tabela | protected function _remover($nomeTabela, $where)
{
$sql = "DELETE FROM $nomeTabela WHERE $where";
try
{
return Statement::getInstance()->execute($sql);
}
catch(Exception $e)
{
throw new Exception($e->getMessage(), $e->getCode());
}
... |
Get body class this is sat via page>header | function getClass() {
return $this->classname ? $this->classname : "theme"."1";//rand(1, 6);
} |
Adds a questionblock to the database | function _addQuestionblock($title = "", $owner = 0, $show_questiontext = true, $show_blocktitle = false)
{
global $ilDB;
$next_id = $ilDB->nextId('svy_qblk');
$ilDB->manipulateF("INSERT INTO svy_qblk (questionblock_id, title, show_questiontext,".
" show_blocktitle, owner_fi, tstamp) " .
"VALUES (%s, %s,... |
/ Plugin Name: Dark Mode Plugin URI: Description: An amazing plugin. Author: Matthieu Mota Author URI: Version: 1.0.0 | function darkmode() {
?>
<script src="https://cdn.jsdelivr.net/npm/darkmode-js@1.5.7/lib/darkmode-js.min.js"></script>
<script>
function addDarkmodeWidget() {
new Darkmode({
label: '🌓',
}).showWidget();
}
window.addEventListener('load', addDa... |
/ get item list by ajax | function get_item_list_json()
{
$output = $this->invm->get_item_list_search(strtolower($this->uri->segment(4)));
echo json_encode($output);
} |
Returns whether this plugin is running on a test system or the production system. | public function is_test_environment() {
if(empty($this->production_site_url))
return true;
else
return get_site_url() === $this->production_site_url ? false : true;
} |
Check if implementation supported | public function isSupported() {
return class_exists('Salt');
} |
endregion region: Support methods | private function parseCommand(string $subject) : Mailcode_Commands_Command_ShowEncoded
{
$command = $this->parseCommandStringValid($subject);
$this->assertInstanceOf(Mailcode_Commands_Command_ShowEncoded::class, $command);
return $command;
} |
Denormalizes data back into an object of the given class. | public function denormalize($data, $class, $format = null, array $context = [])
{
$object = $this->extractObjectToPopulate($class, $context) ?? new $class();
isset($data['name']) && $object->setName($data['name']);
isset($data['description']) && $object->setDescription($data['description'])... |
Operation listsIndicationsPost create an Indication. | public function listsIndicationspost()
{
$input = Request::all();
$new_indication = Indication::create($input);
if($new_indication){
return response()->json(['msg' => 'Added a new indication', 'data' => $new_indication]);
}else{
return response('Oops, i... |
Update the specified resource in storage. | public function update(Request $request, Appointment $appointment, $id)
{
$this->validate(request(), [
'name' => 'required|string|max:255',
'sns' => 'required|integer',
'especialidade' => 'required',
'data' => 'required|date|after_or_equal:tomorrow',
... |
Add field labels to the existing labels. | public function setLabels(array $labels): void
{
foreach ($labels as $field_name => $label) {
if (isset($this->display_fields[$field_name])) {
$this->labels[$field_name] = $label;
} else {
throw new InvalidFieldException('"'.$field_name.'" not set as a... |
returns one part of the postcode. Most commonly first part of postcode may be used independently. Also may be used to retrieve a second part. | public function getPostcodePart($part = IAddress::POSTCODE_PART_ONE); |
Menampilkan seluruh halaman website beserta head dan layoutnya Merupakan method utama yang berhubungan langsung dengan view jika $file diisi dengan nama folder dan nama file akan otomatis ditacari lokasi folder dan viewnya berdasarkan root = system/view $var harus berbentuk array, key dari var nanti akan menjadi variab... | protected function view($var_and_file = array("content"=>"index.php"),$var = array()){
foreach($var_and_file as $variabel => $file){
if(is_object($file)||is_array($file)||strpos($file,".php")==0)
$$variabel = $file;
else
$$variabel = $this->viewPartial($f... |
Process reference transaction response used when creating payment for scheduled subscription. | protected function _process_reference_transaction_response( $order, $response ) {
$client = wc_gateway_ppec()->client;
try {
if ( ! $client->response_has_success_status( $response ) ) {
throw new Exception( __( 'PayPal API error', 'woocommerce-gateway-paypal-express-checkout' ) );
}
$status = ! empty... |
Display the specified resource. | public function show()
{
if (empty(auth()->user()->driver)) {
Toastr::warning("Please Complete Your Profile", "Warning");
return redirect()->route("driver.my-profile.show");
}
$truck = auth()->user()->driver->truck;
if (empty($truck)) {
return view... |
Get the cache manager instance. | public static function getCacheManager()
{
return static::$cache;
} |
Setup before running any test cases | public static function setUpBeforeClass()
{
} |
$status = Post::where('id', $post_id)>pbpgs()>where('id', $pbpg_id)>pivot('status'); | public static function check($post_id, $pbpg_id) {
$post = Post::where('id', $post_id)->first();
$status = $post->pbpgs->where('id', $pbpg_id)->first()->pivot->status;
return $status;
} |
Get the services provided by the provider. | public function provides()
{
return array(
'unionpay'
);
} |
Show the form for editing the specified resource. | public function edit($id)
{
$driver = Drivers::findOrFail($id);
$this->data['driver'] = $driver;
return view('drivers.drivers_edit',$this->data);
} |
Sets value of 'port' property | public function setPort($value)
{
return $this->set(self::port, $value);
} |
Set the array of column widths | function SetWidths($w)
{
$this->widths=$w;
} |
Display the specified resource. | public function show(Product $product)
{
$data = DB::table('products')
->where('products.id',$product->id)
->join('categories','products.category_id','categories.id')
->join('suppliers','products.supplier_id','suppliers.id')
->select('categories.category_name'... |
Get the min value from the stream. If two elements have the same value, the first one found is returned. This method consumes the stream. | public function min(callable $compare_function = null) {
return $this->reduce(null, function ($acc, $value) use ($compare_function) {
if (is_null($acc)) {
return $value;
}
$to_apply_function = $compare_function ?? function ($a, $b) {
return $b <=> $a;
};
$result = $to_apply_function($acc, $val... |
Make a form builder. | protected function form()
{
return Form::make(new Prodind(), function (Form $form) {
$form->display('id');
$form->text('inid');
$form->text('prodid');
$form->text('tstock');
$form->text('qty');
$form->text('fstock');
... |
/ db_add_group Create a new group. Return its database entry. Default parent is 1, the root group. | function db_add_group($name, $parent = -1)
{
$dbh = db_connect();
// Create the group
$query = "INSERT INTO `groups` (parent, name) VALUES (?,?)";
$stmt = $dbh->prepare($query);
$result = $stmt->bind_param("is", $parent, $name);
$result = $stmt->execute();
$stmt->close();
if (!$result)
{
global $db_errno;
... |
Show anime list belong to user | public function action_index()
{
$view = View::forge('tracker/watchable');
$data = array(
'page_title' => '動漫清單',
'loggedin' => true,
'user' => $this->getUserInfo(),
);
$view->set_global($data);
return $view;
} |
Returns the solr client instance. We don't reuse SolrClient if we are on libcurl 7.35.0, due to a bug in that version of curl. | protected function get_search_client($triggerexception = true) {
global $CFG;
// Type comparison as it is set to false if not available.
if ($this->client !== null) {
return $this->client;
}
$options = array(
'hostname' => $this->config->server_hostname,... |
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/ | public function __construct()
{
parent::__construct();
$this->load->model("M_mahasiswa");
$this->load->library('form_validation');
} |
/ Gives search suggestions based on what is being searched for | public function suggest()
{
$suggestions = $this->Role->get_search_suggestions($this->input->post('q'),$this->input->post('limit'));
echo implode("\n",$suggestions);
} |
Run the database seeds. | public function run()
{
$product1['name'] = [
'ar' => 'product1 ar',
'en' => 'product1 en'
];
$product1['description'] = [
'ar' => 'desc product1 ar',
'en' => 'desc product1 en'
];
$product1['purchase_price'] = 100.89;
$... |
Display a single summary | function cbDisplaySummary($number) {
global $EDIT_SUMMARY_URL;
cbTrace("DISPLAYING " . $number);
$heftRow = cbFindHeftRow($number) or cbTrace(mysql_error());
$numRows = mysql_numrows($heftRow);
$title = mysql_result($heftRow, 0, "title");
$author = mysql_result($heftRow, 0, "author");
$summaryRow = cbFi... |
end public function build_admin_menu_listacf_load_capabilities_field | public function load_text_domain() {
load_plugin_textdomain($this->text_domain, false, dirname(plugin_basename(__FILE__)).'/lang/');
do_action('acf_options_page/load_text_domain');
} |
Sanitize and validate input. Accepts an array, return a sanitized array. | function ajb_options_validate( $input ) {
for ( $j=1; $j<=5; $j++) {
// home page CSS must be safe text with the allowed tags for posts
$input['button_' . $j . '_link'] = wp_filter_post_kses( $input['button_' . $j . '_link'] );
}
return $input;
} |
Add a new element to | public function addStatuses(\google\rpc\Status $value){
return $this->_add(1, $value);
} |
Run the database seeds. | public function run()
{
$classification = new \App\Models\Classification();
$classification->description = 'Camara';
$classification->save();
$classification = new \App\Models\Classification();
$classification->description = 'Portero';
$classification->save();
... |
Dsiplay information about the author | function hc_the_author($gravatarSize = ''){
$info = hc_get_the_author($gravatarSize);
foreach ($info as $index => $author) {
if(file_exists(get_bloginfo('stylesheet_directory').'plugins/hypercontact/templates/author.php')){
include(get_bloginfo('stylesheet_directory').'plugins/hypercontact/templates/author.p... |
validate if the given file is empty | public function file_required(): static
{
if (empty($this->is_file['name'])) $this->message("is required");
return $this;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.