本文整理汇总了PHP中fallback函数的典型用法代码示例。如果您正苦于以下问题:PHP fallback函数的具体用法?PHP fallback怎么用?PHP fallback使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了fallback函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: title
public function title($post)
{
$return = $post->name;
fallback($return, $post->title_from_excerpt());
fallback($return, $post->source);
return $return;
}
开发者ID:relisher,项目名称:chyrp,代码行数:7,代码来源:link.php
示例2: submit
public function submit()
{
if (empty($_POST['video'])) {
error(__("Error"), __("Video can't be blank."));
}
fallback($_POST['slug'], sanitize($_POST['title']));
return Post::add(array("title" => $_POST['title'], "embed" => $this->embed_tag($_POST['video']), "video" => $_POST['video'], "caption" => $_POST['caption']), $_POST['slug'], Post::check_url($_POST['slug']));
}
开发者ID:betsyzhang,项目名称:chyrp,代码行数:8,代码来源:video.php
示例3: updateCategory
static function updateCategory($post = array())
{
$show_on_home = isset($post['show_on_home']) ? 1 : 0;
$clean = sanitize(fallback($_POST['clean'], $_POST['name']));
$name = $post['name'];
$id = $post['id'];
SQL::current()->update("categorize", "`id` = :id", array("name" => ":name", "clean" => ":clean", "show_on_home" => ":show_on_home"), array(":id" => $id, ":name" => $name, ":clean" => $clean, ":show_on_home" => $show_on_home));
}
开发者ID:betsyzhang,项目名称:chyrp,代码行数:8,代码来源:model.category.php
示例4: submit
public function submit()
{
if (empty($_POST['body'])) {
error(__("Error"), __("Body can't be blank."));
}
fallback($_POST['slug'], sanitize($_POST['title']));
return Post::add(array("title" => $_POST['title'], "body" => $_POST['body']), $_POST['slug'], Post::check_url($_POST['slug']));
}
开发者ID:betsyzhang,项目名称:chyrp,代码行数:8,代码来源:text.php
示例5: setAttributesToFallback
function setAttributesToFallback($default)
{
global $langColumns;
for ($i = 0; $i < count($langColumns); $i++) {
$id = $langColumns[$i];
$this->m[$id] = fallback($this->m[$id], $default->m[$id]);
}
}
开发者ID:rakvat,项目名称:black_colorful_pages,代码行数:8,代码来源:commonstuff.php
示例6: delete_link
public function delete_link($text = null, $before = null, $after = null, $classes = "")
{
if (!$this->deletable()) {
return false;
}
fallback($text, __("Delete"));
$name = strtolower(get_class($this));
echo $before . '<a href="' . url("delete_attachment/" . $this->id, MainController::current()) . '" title="Delete" class="' . ($classes ? $classes . " " : '') . $name . '_delete_link delete_link" id="' . $name . '_delete_' . $this->id . '">' . $text . '</a>' . $after;
}
开发者ID:vito,项目名称:chyrp-site,代码行数:9,代码来源:model.Attachment.php
示例7: dj_info_box
function dj_info_box($id = "0", $info = "Keine Infos", $feld_id, $name = "")
{
global $sp_settings, $userdata, $locale;
$ausgabe = "";
if (!isnum($id)) {
fallback("index.php");
}
if ($id > 0) {
$info_result = dbquery("SELECT * FROM " . DB_USERS . " WHERE user_id='" . $id . "'");
if (dbrows($info_result) != 0) {
$user_info = dbarray($info_result);
if (sp_check($sp_settings['grss_sgroup'], $user_info['user_groups'])) {
$mod = "<b>" . $locale['grsp124'] . "</b><br />" . $locale['grsp125'] . "<br /><br />";
} elseif (sp_check($sp_settings['grss_ggroup'], $user_info['user_groups'])) {
$mod = "<b>" . $locale['grsp124'] . "</b><br />" . $locale['grsp126'] . "<br /><br />";
} else {
$mod = "";
}
if ($user_info['user_avatar'] != "") {
$avatar = IMAGES . "avatars/" . $user_info['user_avatar'];
} else {
$avatar = IMAGES . "avatars/nopic.gif";
}
$infos = "<div align=\\'center\\'><img src=\\'" . $avatar . "\\' /><br /><br /></div><b>" . $locale['grsp122'] . "</b><br /><span class=\\'info2\\'>" . $user_info['user_name'] . "</span><br /><br />" . $mod . "<b>" . $locale['grsp123'] . "</b><br />" . $info . "<br /><br />";
$ausgabe .= '<a onmouseover="return overlib(\'' . $infos . '\', STICKY, FGCLASS, \'sp1\', BGCLASS, \'sp2\', CAPTIONFONTCLASS, \'a\', CLOSEFONTCLASS, \'a\', CAPTION, \'' . $locale['grsp139'] . '\', RIGHT, CLOSETEXT, \' \');" onmouseout="return nd(\'true\');" href="' . BASEDIR . 'profile.php?lookup=' . $user_info['user_id'] . '">' . ($sp_settings['grss_djpic'] == 1 ? "<img src=\"" . $avatar . "\" height=\"40\" border=\"0\" /><br />" : "") . $user_info['user_name'] . '</a>';
if ((sp_group($sp_settings['grss_sgroup']) || sp_group($sp_settings['grss_ggroup'])) && $userdata['user_id'] == $user_info['user_id'] || sp_group($sp_settings['grss_agroup']) || iSUPERADMIN) {
if ($sp_settings['grss_djedit'] == 1 || sp_group($sp_settings['grss_agroup']) || iSUPERADMIN) {
$ausgabe .= "<br /><input type='submit' value='" . $locale['grsp130'] . "' class='button' style='width:80px;' onclick='popup=window.open(\"" . INFUSIONS . "gr_sendeplan/gr_sendeplan_popup.php?status=edit&id=" . $feld_id . "\",\"DJ_Admin\",\"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=500,height=220,left=250,top=250\"); return false;' />";
}
if ($sp_settings['grss_djoff'] == 1 || sp_group($sp_settings['grss_agroup']) || iSUPERADMIN) {
$ausgabe .= '<br /><form method="post" action="' . FUSION_SELF . '?id=' . $feld_id . '"><input type="submit" name="sp_delete" value="' . $locale['grsp131'] . '" class="button" style="width:80px;" /></form>';
}
}
}
} elseif ($id == 0 && $name != "") {
$infos = "<div align=\\'center\\'><img src=\\'" . IMAGES . "avatars/nopic.gif\\' /><br /><br /></div><b>" . $locale['grsp122'] . "</b><br /><span class=\\'info2\\'>" . $name . "</span><br /><br /><b>" . $locale['grsp123'] . "</b><br />" . $info . "<br /><br />";
$ausgabe .= '<a onmouseover="return overlib(\'' . $infos . '\', STICKY, FGCLASS, \'sp1\', BGCLASS, \'sp2\', CAPTIONFONTCLASS, \'a\', CLOSEFONTCLASS, \'a\', CAPTION, \'' . $locale['grsp139'] . '\', RIGHT, CLOSETEXT, \' \');" onmouseout="return nd(\'true\');">' . ($sp_settings['grss_djpic'] == 1 ? "<img src=\"" . IMAGES . "avatars/nopic.gif\" height=\"40\" border=\"0\" /><br />" : "") . $name . '</a>';
if (sp_group($sp_settings['grss_agroup']) || iSUPERADMIN) {
$ausgabe .= "<br /><input type='submit' value='" . $locale['grsp130'] . "' class='button' style='width:80px;' onclick='popup=window.open(\"" . INFUSIONS . "gr_sendeplan/gr_sendeplan_popup.php?status=edit&id=" . $feld_id . "\",\"DJ_Admin\",\"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=500,height=220,left=250,top=250\"); return false;' />";
$ausgabe .= '<br /><form method="post" action="' . FUSION_SELF . '?id=' . $feld_id . '"><input type="submit" name="sp_delete" value="' . $locale['grsp131'] . '" class="button" style="width:80px;" /></form>';
}
}
if ($ausgabe == "") {
if ($sp_settings['grss_djon'] == 1 && !($sp_settings['grss_week'] == 1 && $feld_id < 169) && (sp_group($sp_settings['grss_sgroup']) || sp_group($sp_settings['grss_ggroup'])) || sp_group($sp_settings['grss_agroup']) || iSUPERADMIN) {
$ausgabe .= "<a href='javascript:;' onclick='popup=window.open(\"" . INFUSIONS . "gr_sendeplan/gr_sendeplan_popup.php?status=add&id=" . $feld_id . "\",\"DJ_Admin\",\"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=500,height=220,left=250,top=250\"); return false;'>" . $locale['grsp121'] . "</a>";
} else {
$ausgabe .= ($sp_settings['grss_djpic'] == 1 && $sp_settings['grss_autodjpic'] == 1 ? "<img src=\"" . INFUSIONS . "gr_sendeplan/autodj.gif\" height=\"40\" border=\"0\" /><br />" : "") . $locale['grsp120'];
}
}
if ($sp_settings['grss_replay'] == 1 && $feld_id > 168 && (sp_group($sp_settings['grss_agroup']) || iSUPERADMIN)) {
$info_result = dbquery("SELECT * FROM " . DB_GR_SENDEPLAN_REPLAY . " WHERE grsr_re_id='" . $feld_id . "'");
if (dbrows($info_result) != 0) {
$ausgabe .= '<form method="post" action="' . FUSION_SELF . '?id=' . $feld_id . '"><input type="submit" name="sp_re_delete" value="' . $locale['grsp140'] . '" class="button" style="width:80px;" /></form>';
}
}
return $ausgabe;
}
开发者ID:MichaelFichtner,项目名称:RadioLaFamilia,代码行数:57,代码来源:gr_sendeplan_inc.php
示例8: __construct
/**
* Function: __construct
* Loads the configuration YAML file.
*/
private function __construct()
{
if (!file_exists(INCLUDES_DIR . "/config.yaml.php")) {
return false;
}
$contents = str_replace("<?php header(\"Status: 403\"); exit(\"Access denied.\"); ?>\n", "", file_get_contents(INCLUDES_DIR . "/config.yaml.php"));
$this->yaml = YAML::load($contents);
$arrays = array("enabled_modules", "enabled_feathers", "routes");
foreach ($this->yaml as $setting => $value) {
if (in_array($setting, $arrays) and empty($value)) {
$this->{$setting} = array();
} elseif (!is_int($setting)) {
$this->{$setting} = is_string($value) ? stripslashes($value) : $value;
}
}
fallback($this->url, $this->chyrp_url);
}
开发者ID:betsyzhang,项目名称:chyrp,代码行数:21,代码来源:Config.php
示例9: submit
public function submit()
{
if (!isset($_POST['filename'])) {
if (isset($_FILES['photo']) and $_FILES['photo']['error'] == 0) {
$filename = upload($_FILES['photo'], array("jpg", "jpeg", "png", "gif", "bmp"));
} elseif (!empty($_POST['from_url'])) {
$filename = upload_from_url($_POST['from_url'], array("jpg", "jpeg", "png", "gif", "bmp"));
} else {
error(__("Error"), __("Couldn't upload photo."));
}
} else {
$filename = $_POST['filename'];
}
// Prepend scheme if a URL is detected
if (preg_match('~^((([a-z]|[0-9]|\\-)+)\\.)+([a-z]){2,6}/~', @$_POST['option']['source'])) {
$_POST['option']['source'] = "http://" . $_POST['option']['source'];
}
fallback($_POST['slug'], sanitize($_POST['title']));
return Post::add(array("title" => $_POST['title'], "filename" => $filename, "caption" => $_POST['caption']), $_POST['slug'], Post::check_url($_POST['slug']));
}
开发者ID:betsyzhang,项目名称:chyrp,代码行数:20,代码来源:photo.php
示例10: fallback
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
***************************************************************************/
require_once '../include/admin.php';
if (!iPDP_ADMIN) {
fallback('../index.php');
}
/****************************************************************************
* ACTION
*/
if (isset($_GET['reset_visitors'])) {
$ok = dbquery("UPDATE " . DB_PDP_DOWNLOADS . "\n\t\tSET\n\t\tcount_visitors='0'");
if ($ok) {
fallback(FUSION_SELF . '?done');
}
}
/****************************************************************************
* GUI
*/
opentable($locale['PDP016']);
pdp_admin_menu();
if (isset($_GET['done'])) {
show_info($locale['pdp_done']);
}
/*
* IMPORT
*/
echo '
<p>
开发者ID:petemadsen,项目名称:Professional-Download-System,代码行数:31,代码来源:misc.php
示例11: dbquery
if ($entry_count > 0) {
$entry_error = $locale["PR08"];
} else {
$entry_insert = dbquery("INSERT INTO {$db_prefix}secsys_proxy_whitelist (proxy_ip, proxy_datestamp) VALUES('{$newproxy}','" . time() . "')");
if ($entry_insert) {
$entry_ok = $locale["PR07"];
} else {
$entry_error = $locale["PR06"];
}
}
} else {
$entry_error = $locale["PR05"];
}
}
}
opentable($locale["PR01"]);
echo "<center><a href='" . FUSION_SELF . "?lng=de'><img src='" . SEC_INFDIR . "images/flag-deu.png' border='0' alt='Deutsch' title='Deutsch'></a> <a href='" . FUSION_SELF . "?lng=en'><img src='" . SEC_INFDIR . "images/flag-eng.png' border='0' alt='English' title='English'></a></center><br>";
if (!empty($_POST) && $entry_error != "") {
echo "<div class='quote'>" . $entry_error . "</div><br>";
}
if (!isset($_POST['pentry'])) {
echo $locale["PR02"];
echo "<form action='" . FUSION_SELF . (FUSION_QUERY != "" ? "?" . rawurldecode(FUSION_QUERY) : "") . "' method='post'>\n<input type='hidden' name='newproxy' value='" . USER_IP . "'>" . $locale['PR09'] . ": " . USER_IP . "<br>\n<input type='checkbox' name='reaccept' value='1'>" . $locale['PR03'] . "<br>\n <input type='submit' value='" . $locale['PR04'] . "' name='pentry' class='button'></form>";
} elseif (empty($entry_error)) {
echo $entry_ok;
}
closetable();
} else {
fallback(BASEDIR . "index.php");
}
require_once THEMES . "templates/footer.php";
开发者ID:simplyianm,项目名称:clububer,代码行数:31,代码来源:proxy.php
示例12: fallback_download
function fallback_download()
{
fallback(INFUSIONS . 'pro_download_panel/download.php?did=' . $this->id);
}
开发者ID:simplyianm,项目名称:clububer,代码行数:4,代码来源:class.download.php
示例13: prp_count_cats
if ($data['parentcat'] != $catid) {
continue;
}
if (!checkgroup($data['access']) && $prp->settings['hide_cats']) {
continue;
}
$cnt_cats = prp_count_cats($id);
$cnt_downs = prp_count_dl($all_cats, $id);
$cats[$id] = array("name" => $data['name'], "cnt_downs" => $cnt_downs, "cnt_cats" => $cnt_cats, "desc" => parseubb($data['desc']));
}
}
prp_render_cats($catid, $review->id, $path, $cats);
unset($path, $cats);
if (!is_null($access_group)) {
if ($prp->settings['hide_cats']) {
fallback("error.php?type=access");
}
show_info('<img src="icons/lock.png" alt="' . $locale['prp_locked'] . '" /> ' . str_replace('%s', getgroupname($access_group), $locale['PRP215']));
}
}
/***************************************************************************
* DOWNLOADS *
***************************************************************************/
if (is_null($access_group) && !$review->id && (!isset($catid) || $catid != 0)) {
$rowstart = 0;
if (isset($_GET['rowstart']) && isNum($_GET['rowstart'])) {
$rowstart = $_GET['rowstart'];
}
$downs = array();
if (isset($catid)) {
$get = array('type' => 'cat', 'data' => $catid);
开发者ID:simplyianm,项目名称:clububer,代码行数:31,代码来源:review.php
示例14: relative_time
/**
* Function: relative_time
* Returns the difference between the given timestamps or now.
*
* Parameters:
* $time - Timestamp to compare to.
* $from - Timestamp to compare from. If not specified, defaults to now.
*
* Returns:
* A string formatted like "3 days ago" or "3 days from now".
*/
function relative_time($when, $from = null)
{
fallback($from, time());
$time = is_numeric($when) ? $when : strtotime($when);
$difference = $from - $time;
if ($difference < 0) {
$word = "from now";
$difference = -$difference;
} elseif ($difference > 0) {
$word = "ago";
} else {
return "just now";
}
$units = array("second" => 1, "minute" => 60, "hour" => 60 * 60, "day" => 60 * 60 * 24, "week" => 60 * 60 * 24 * 7, "month" => 60 * 60 * 24 * 30, "year" => 60 * 60 * 24 * 365, "decade" => 60 * 60 * 24 * 365 * 10, "century" => 60 * 60 * 24 * 365 * 100, "millennium" => 60 * 60 * 24 * 365 * 1000);
$possible_units = array();
foreach ($units as $name => $val) {
if ($name == "week" and $difference >= $val * 2 or $name != "week" and $difference >= $val) {
$unit = $possible_units[] = $name;
}
}
$precision = (int) in_array("year", $possible_units);
$amount = round($difference / $units[$unit], $precision);
return $amount . " " . pluralize($unit, $amount) . " " . $word;
}
开发者ID:homebru,项目名称:bandb,代码行数:35,代码来源:helpers.php
示例15: selected
<select name="adapter" id="adapter">
<?php
if (class_exists("PDO") and in_array("mysql", PDO::getAvailableDrivers()) or class_exists("MySQLi") or function_exists("mysql_query")) {
?>
<option value="mysql"<?php
selected("mysql", fallback($_POST['adapter'], "mysql"));
?>
>MySQL</option>
<?php
}
?>
<?php
if (class_exists("PDO") and in_array("sqlite", PDO::getAvailableDrivers())) {
?>
<option value="sqlite"<?php
selected("sqlite", fallback($_POST['adapter'], "mysql"));
?>
>SQLite 3</option>
<?php
}
?>
<?php
if (class_exists("PDO") and in_array("pgsql", PDO::getAvailableDrivers())) {
?>
<option value="pgsql"<?php
selected("pgsql", oneof(@$_POST['adapter'], "mysql"));
?>
>PostgreSQL</option>
<?php
}
?>
开发者ID:betsyzhang,项目名称:chyrp,代码行数:31,代码来源:install.php
示例16: fallback
<?php
/***************************************************************************
* awEventCalendar *
* *
* Copyright (C) 2006-2008 Artur Wiebe *
* [email protected] *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
***************************************************************************/
require_once 'include/common.php';
if (!iAWEC_ADMIN) {
fallback('index.php');
}
/*
* GUI
*/
opentable($locale['EC500']);
awec_menu();
$query_id = dbquery("SELECT ev.*, fu.user_name,\n\tDATE_FORMAT(ev_start, '" . $awec_settings['date_fmt'] . "') AS date,\n\tDATE_FORMAT(ev_start_time, '" . $awec_settings['time_fmt'] . "') AS start_time,\n\tDATE_FORMAT(ev_end_time, '" . $awec_settings['time_fmt'] . "') AS end_time\n\tFROM " . AWEC_DB_EVENTS . " AS ev\n\tLEFT JOIN " . DB_USERS . " AS fu ON ev.user_id=fu.user_id\n\tWHERE ev_status=" . AWEC_PENDING);
if (!dbrows($query_id)) {
echo "<p>" . $locale['EC501'];
}
while ($data = dbarray($query_id)) {
awec_render_event($data, "&time=" . $data['ctime'] . "&back_to=new");
}
closetable();
require_once 'include/die.php';
开发者ID:simplyianm,项目名称:clububer,代码行数:31,代码来源:new_events.php
示例17: edit_link
/**
* Function: edit_link
* Outputs an edit link for the model, if the visitor's <Group.can> edit_[model].
*
* Parameters:
* $text - The text to show for the link.
* $before - If the link can be shown, show this before it.
* $after - If the link can be shown, show this after it.
* $classes - Extra CSS classes for the link, space-delimited.
*/
public function edit_link($text = null, $before = null, $after = null, $classes = "")
{
if (!$this->editable()) {
return false;
}
fallback($text, __("Edit"));
$name = strtolower(get_class($this));
if (@Feathers::$instances[$this->feather]->disable_ajax_edit) {
$classes = empty($classes) ? "no_ajax" : $classes . " no_ajax";
}
echo $before . '<a href="' . Config::current()->chyrp_url . '/admin/?action=edit_' . $name . '&id=' . $this->id . '" title="Edit" class="' . ($classes ? $classes . " " : '') . $name . '_edit_link edit_link" id="' . $name . '_edit_' . $this->id . '">' . $text . '</a>' . $after;
}
开发者ID:relisher,项目名称:chyrp,代码行数:22,代码来源:Post.php
示例18: pdpDownload
break;
case 7:
require_once THEMES . 'templates/header.php';
break;
case 'FF':
break;
default:
die;
}
/*
* get download
*/
require_once INFUSIONS . 'pro_download_panel/include/class.download.php';
$download = new pdpDownload(isset($_GET['did']) && isNum($_GET['did']) ? $_GET['did'] : 0);
if ($download->id && $download->status != PDP_PRO_ON && !$download->can_edit) {
fallback('download.php?catid=' . $download->data['cat_id']);
}
/*
* FUNCS
*/
// bb-buttons and smileys
function pdp_get_bb_smileys($input, $val, $is_enabled, $show_smileys = true)
{
global $locale;
return '
<input type="button" value="b" class="button" style="font-weight:bold;"
onclick="addText(\'' . $input . '\', \'[b]\', \'[/b]\');" />
<input type="button" value="i" class="button" style="font-style:italic;"
onclick="addText(\'' . $input . '\', \'[i]\', \'[/i]\');" />
<input type="button" value="u" class="button" style="text-decoration:underline;"
onclick="addText(\'' . $input . '\', \'[u]\', \'[/u]\');" />
开发者ID:simplyianm,项目名称:clububer,代码行数:31,代码来源:common.php
示例19: pathinfo
$extension = pathinfo($filename, PATHINFO_EXTENSION);
if (!file_exists($filename)) {
display_error("Image Not Found");
}
function display_error($string)
{
$thumbnail = imagecreatetruecolor(oneof(@$_GET['max_width'], 100), 18);
imagestring($thumbnail, 1, 5, 5, $string, imagecolorallocate($thumbnail, 255, 255, 255));
header("Content-type: image/png");
header("Content-Disposition: inline; filename=error.png");
imagepng($thumbnail);
exit;
}
list($original_width, $original_height, $type, $attr) = getimagesize($filename);
$new_width = (int) fallback($_GET["max_width"], 0);
$new_height = (int) fallback($_GET["max_height"], 0);
$crop_x = 0;
$crop_y = 0;
function resize(&$crop_x, &$crop_y, &$new_width, &$new_height, $original_width, $original_height)
{
$xscale = $new_width / $original_width;
$yscale = $new_height / $original_height;
if ($new_width <= $original_width and $new_height <= $original_height and $xscale == $yscale) {
return;
}
if (isset($_GET['square'])) {
if ($new_width === 0) {
$new_width = $new_height;
}
if ($new_height === 0) {
$new_height = $new_width;
开发者ID:betsyzhang,项目名称:chyrp,代码行数:31,代码来源:thumb.php
示例20: delete_link
/**
* Function: delete_link
* Outputs a delete link for the post, if the <User.can> delete_[model].
*
* Parameters:
* $text - The text to show for the link.
* $before - If the link can be shown, show this before it.
* $after - If the link can be shown, show this after it.
* $classes - Extra CSS classes for the link, space-delimited.
*/
public function delete_link($text = null, $before = null, $after = null, $classes = "")
{
if (!$this->deletable()) {
return false;
}
fallback($text, __("Delete"));
$name = strtolower(get_class($this));
echo $before . '<a href="' . Config::current()->chyrp_url . '/admin/?action=delete_' . $name . '&id=' . $this->id . '" title="Delete" class="' . ($classes ? $classes . " " : '') . $name . '_delete_link delete_link" id="' . $name . '_delete_' . $this->id . '">' . $text . '</a>' . $after;
}
开发者ID:homebru,项目名称:bandb,代码行数:19,代码来源:Model.php
注:本文中的fallback函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论