本文整理汇总了PHP中Ibos::t方法的典型用法代码示例。如果您正苦于以下问题:PHP Ibos::t方法的具体用法?PHP Ibos::t怎么用?PHP Ibos::t使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ibos
的用法示例。
在下文中一共展示了Ibos::t方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __get
public function __get($name)
{
if (isset($this->_setting[strtolower($name)])) {
return $this->_setting[$name];
}
throw new CException(Ibos::t("yii", "Property \"{class}.{property}\" is not defined.", array("{class}" => get_class($this), "{property}" => $name)));
}
示例2: __set
public function __set($name, $value)
{
$setter = "set" . $name;
if (method_exists($this, $setter)) {
return $this->{$setter}($value);
} elseif (isset($this->_attributes[$name])) {
return $this->_attributes[$name] = $value;
}
if (method_exists($this, "get" . $name)) {
throw new CException(Ibos::t("yii", "Property \"{class}.{property}\" is read only.", array("{class}" => get_class($this), "{property}" => $name)));
} else {
throw new CException(Ibos::t("yii", "Property \"{class}.{property}\" is not defined.", array("{class}" => get_class($this), "{property}" => $name)));
}
}
示例3: create
public function create($data = "")
{
if (empty($data)) {
$data = $_POST;
} elseif (is_object($data)) {
$data = get_object_vars($data);
}
if (empty($data) || !is_array($data)) {
throw new DataException(Ibos::t("Data type invalid", "error"));
}
$fields = $this->getAttributes();
if (isset($fields)) {
foreach ($data as $key => $val) {
if (!array_key_exists($key, $fields)) {
unset($data[$key]);
}
}
}
return $data;
}
示例4: init
public function init()
{
if (!ModuleUtil::getIsEnabled("statistics")) {
$this->error(Ibos::t("Module \"{module}\" is illegal.", "error", array("{module}" => Ibos::lang("Statistics"))), $this->createUrl("default/index"));
}
}
示例5: chkInstance
private function chkInstance($adapter)
{
if (!$adapter instanceof ICIM) {
throw new CException(Ibos::t("error", "Class \"{class}\" is illegal.", array("{class}" => get_class($adapter))));
}
}
示例6: chkInstance
private function chkInstance($chart)
{
if (!$chart instanceof ICChart) {
throw new CException(Ibos::t("error", "Class \"{class}\" is illegal.", array("{class}" => get_class($chart))));
}
}