本文整理汇总了PHP中language::get方法的典型用法代码示例。如果您正苦于以下问题:PHP language::get方法的具体用法?PHP language::get怎么用?PHP language::get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类language
的用法示例。
在下文中一共展示了language::get方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: language
$language = new language();
$language->get_languages();
$language->check_default();
$database = new Database();
if ($language->error) {
$errors[] = $language->error;
}
$language->load(isset($_POST['language']) ? $_POST['language'] : ($language->detect() ? $language->detect() : 'en'));
$languages = $language->langs;
$step = isset($_REQUEST['step']) ? $_REQUEST['step'] : 1;
$files = array('config.php');
//,'admin'.DIRECTORY_SEPARATOR.'config.php' Not Required
foreach ($files as $file) {
$file = DIR_BASE . $file;
if (!file_exists($file)) {
$errors[] = $language->get('error_not_found', $file);
} elseif (!is_writable($file)) {
@chmod($file, 0666);
if (!is_writable($file)) {
$errors[] = $language->get('error_not_666', $file);
}
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php
echo $language->get('heading_title');
?>
示例2: ucwords
//
$o = new language($data->data->id);
$o->details();
?>
<div class="title"><?php
echo ucwords(LANGUAGE_EDIT_LANGUAGE);
?>
</div>
<div class="form">
<div class="column">
<div class="row name">
<div class="caption"><?php
echo ucwords(LANGUAGE_NAME);
?>
<input type="hidden" id="id" value="<?php
echo $o->get('id');
?>
" /></div>
<div class="value"><input class="input-text" type="text" value="<?php
echo $o->get('name');
?>
" placeholder="<?php
echo ucwords(LANGUAGE_NAME);
?>
" id="name"/></div>
</div>
<div class="row short">
<div class="caption"><?php
echo ucwords(LANGUAGE_SHORT);
?>
</div>
示例3: start
function start()
{
$this->page = new Page(language::get('page_about'));
}
示例4: isset
if ($language->error) {
$errors[] = $language->error;
}
$language->load(isset($_POST['language']) ? $_POST['language'] : ($language->detect() ? $language->detect() : 'en'));
$languages = $language->langs;
$step = isset($_REQUEST['step']) ? $_REQUEST['step'] : 1;
if (filesize('../config.php') > 0) {
$step = 3;
}
if (file_exists(DIR_BASE . UPLOADC)) {
$lines = array();
$lines = file(DIR_BASE . UPLOADC);
foreach ($lines as $line) {
$line = DIR_BASE . substr(trim($line), 2);
if (!file_exists($line)) {
$errors[] = $language->get('error_not_found', $line);
}
}
} else {
$errors[] = DIR_BASE . UPLOADC . $language->get('error_not_found');
}
$files0755 = array('image' . D_S, 'image' . D_S . 'cache' . D_S, 'image' . D_S . 'flash' . D_S, 'image' . D_S . 'mask' . D_S, 'image' . D_S . 'barcode' . D_S, 'image' . D_S . 'watermark' . D_S, 'download' . D_S, 'catalog' . D_S . 'javascript' . D_S . 'render' . D_S, 'catalog' . D_S . 'styles' . D_S . 'default' . D_S . 'render' . D_S);
foreach ($files0755 as $file) {
$file = DIR_BASE . $file;
if (!is_writable($file)) {
@chmod($file, 0755);
if (!is_writable($file)) {
$errors[] = $language->get('error_not_777', $file);
}
}
}