本文整理汇总了PHP中_hx_string_or_null函数的典型用法代码示例。如果您正苦于以下问题:PHP _hx_string_or_null函数的具体用法?PHP _hx_string_or_null怎么用?PHP _hx_string_or_null使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_hx_string_or_null函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: execute
public function execute()
{
$uriParts = $this->context->actionContext->get_uriParts();
$this->setBaseUri($uriParts);
$params = $this->context->request->get_params();
$method = $this->context->request->get_httpMethod();
$this->context->actionContext->controller = $this;
$this->context->actionContext->action = "execute";
try {
$this->context->actionContext->action = "showMessage";
$this->context->actionContext->args = new _hx_array(array());
$this->context->actionContext->get_uriParts()->splice(0, 0);
$wrappingRequired = null;
$i = haxe_rtti_Meta::getFields(_hx_qtype("ufront.app.DefaultUfrontController"))->showMessage->wrapResult[0];
$wrappingRequired = $i;
$result = $this->wrapResult($this->showMessage(), $wrappingRequired);
$this->setContextActionResultWhenFinished($result);
return $result;
throw new HException(ufront_web_HttpError::pageNotFound(_hx_anonymous(array("fileName" => "ControllerMacros.hx", "lineNumber" => 442, "className" => "ufront.app.DefaultUfrontController", "methodName" => "execute"))));
} catch (Exception $__hx__e) {
$_ex_ = $__hx__e instanceof HException ? $__hx__e->e : $__hx__e;
$e = $_ex_;
return ufront_core_SurpriseTools::asSurpriseError($e, "Uncaught error while executing " . Std::string($this->context->actionContext->controller) . "." . _hx_string_or_null($this->context->actionContext->action) . "()", _hx_anonymous(array("fileName" => "ControllerMacros.hx", "lineNumber" => 445, "className" => "ufront.app.DefaultUfrontController", "methodName" => "execute")));
}
}
示例2: call
public function call($path, $params)
{
if ($path->length < 2) {
throw new HException("Invalid path '" . _hx_string_or_null($path->join(".")) . "'");
}
$inf = $this->objects->get($path[0]);
if ($inf === null) {
throw new HException("No such object " . _hx_string_or_null($path[0]));
}
$o = $inf->obj;
$m = Reflect::field($o, $path[1]);
if ($path->length > 2) {
if (!$inf->rec) {
throw new HException("Can't access " . _hx_string_or_null($path->join(".")));
}
$_g1 = 2;
$_g = $path->length;
while ($_g1 < $_g) {
$i = $_g1++;
$o = $m;
$m = Reflect::field($o, $path[$i]);
unset($i);
}
}
if (!Reflect::isFunction($m)) {
throw new HException("No such method " . _hx_string_or_null($path->join(".")));
}
return Reflect::callMethod($o, $m, $params);
}
示例3: toString
public function toString()
{
if ($this->prefix === "") {
return $this->name;
}
return _hx_string_or_null($this->prefix) . "." . _hx_string_or_null($this->name);
}
示例4: __construct
public function __construct($e)
{
if (!php_Boot::$skip_constructor) {
parent::__construct(null, _hx_anonymous(array("fileName" => "Error.hx", "lineNumber" => 69, "className" => "system.base.NoSuchDbexception", "methodName" => "new")));
system_base_Error::wipe(_hx_string_or_null($e) . ": " . "The database type you have requested is not available.");
}
}
示例5: toString
static function toString($this1)
{
$years = $this1->getYears();
$months = $this1->getMonths();
$days = $this1->getDays();
$hours = $this1->getHours();
$minutes = $this1->getMinutes();
$seconds = $this1->getSeconds();
$parts = new _hx_array(array());
if ($years !== 0) {
$parts->push("" . _hx_string_rec($years, "") . "y");
}
if ($months !== 0) {
$parts->push("" . _hx_string_rec($months, "") . "m");
}
if ($days !== 0) {
$parts->push("" . _hx_string_rec($days, "") . "d");
}
if ($hours !== 0) {
$parts->push("" . _hx_string_rec($hours, "") . "hrs");
}
if ($minutes !== 0) {
$parts->push("" . _hx_string_rec($minutes, "") . "min");
}
if ($seconds !== 0) {
$parts->push("" . _hx_string_rec($seconds, "") . "sec");
}
return _hx_string_or_null($this1->negative ? "-" : "") . "(" . _hx_string_or_null($parts->length === 0 ? "0sec" : $parts->join(", ")) . ")";
}
示例6: formatMessage
static function formatMessage($m)
{
$type = null;
$_g = $m->type;
switch ($_g->index) {
case 0:
$type = "log";
break;
case 1:
$type = "info";
break;
case 2:
$type = "warn";
break;
case 3:
$type = "error";
break;
}
$extras = null;
if (_hx_field($m, "pos") !== null && $m->pos->customParams !== null) {
$extras = ", " . _hx_string_or_null($m->pos->customParams->join(", "));
} else {
$extras = "";
}
$msg = "" . _hx_string_or_null($m->pos->className) . "." . _hx_string_or_null($m->pos->methodName) . "(" . _hx_string_rec($m->pos->lineNumber, "") . "): " . Std::string($m->msg) . _hx_string_or_null($extras);
return "console." . _hx_string_or_null($type) . "(decodeURIComponent(\"" . _hx_string_or_null(rawurlencode($msg)) . "\"))";
}
示例7: toString
public function toString()
{
$html = "\n" . "<body>";
$html .= _hx_string_or_null($this->content);
$html .= "\n" . "</body>";
return $html;
}
示例8: toString
public function toString()
{
$html = "<!DOCTYPE html>";
$html .= "\n" . "<html lang=\"" . "en" . "\">";
$html .= _hx_string_or_null($this->head->toString());
$_g = 0;
$_g1 = $this->scripts;
while ($_g < $_g1->length) {
$script = $_g1[$_g];
++$_g;
if ($script->path !== null) {
$this->body->add("<script type=\"text/javascript\" src=\"" . _hx_string_or_null($script->path) . "\"></script>");
} else {
$this->body->add("<script type=\"text/javascript\">" . _hx_string_or_null($script->code) . "</script>");
}
unset($script);
}
if ($this->swfobjects->length > 0) {
$this->body->add("<script type=\"text/javascript\" src=\"" . "/js" . "swfobject.js\"></script>");
$this->body->add("<script type=\"text/javascript\">");
$_g2 = 0;
$_g11 = $this->swfobjects;
while ($_g2 < $_g11->length) {
$swfobject = $_g11[$_g2];
++$_g2;
$this->body->add("\t" . "swfobject.embedSWF(\"" . _hx_string_or_null($swfobject->path) . "\", \"" . _hx_string_or_null($swfobject->id) . "\", \"" . _hx_string_or_null($swfobject->width) . "\", \"" . _hx_string_or_null($swfobject->height) . "\", \"" . "9" . "\", \"" . "/swf" . "expressInstall.swf\", " . _hx_string_or_null(haxe_Json::phpJsonEncode($swfobject->flashvars, null, null)) . " );");
unset($swfobject);
}
$this->body->add("</script>");
}
$html .= _hx_string_or_null($this->body->toString());
$html .= "\n" . "</html>";
return $html;
}
示例9: init
public function init()
{
$this->completed = true;
$params = zcale_core_path_targets_ServerPath::get_PARAMS();
if ($params->exists("remoteData") === true) {
$this->printHtml = false;
$this->remoteCall($params->get("remoteData"));
} else {
if ($params->exists("run") === true) {
$_g = $params->get("run");
switch ($_g) {
case "js":
$this->index->target = 1;
$this->index->mainFilePath = "/js" . _hx_string_or_null($this->index->mainFilePath) . ".js";
break;
case "fl":
$this->index->target = 2;
$this->index->mainFilePath = "/swf" . _hx_string_or_null($this->index->mainFilePath) . ".swf";
break;
case "tt":
$this->index->target = 3;
break;
default:
$this->event->dispatch($this->eventKeys->complete);
break;
}
} else {
$this->event->dispatch($this->eventKeys->complete);
}
}
if ($this->printHtml === true) {
Sys::hprint($this->index->toString());
}
}
示例10: readAll
public function readAll($bufsize = null)
{
if ($bufsize === null) {
$bufsize = 8192;
}
$buf = haxe_io_Bytes::alloc($bufsize);
$total = new haxe_io_BytesBuffer();
try {
while (true) {
$len = $this->readBytes($buf, 0, $bufsize);
if ($len === 0) {
throw new HException(haxe_io_Error::$Blocked);
}
if ($len < 0 || $len > $buf->length) {
throw new HException(haxe_io_Error::$OutsideBounds);
}
$total->b .= _hx_string_or_null(substr($buf->b, 0, $len));
unset($len);
}
} catch (Exception $__hx__e) {
$_ex_ = $__hx__e instanceof HException ? $__hx__e->e : $__hx__e;
if (($e = $_ex_) instanceof haxe_io_Eof) {
} else {
throw $__hx__e;
}
}
return $total->getBytes();
}
示例11: get_description
public function get_description()
{
$buf = new StringBuf();
$buf->add($this->value);
if ($this->expires !== null) {
if (ufront_web_HttpCookie::$tzOffset === null) {
ufront_web_HttpCookie::$tzOffset = intval(date('Z', $this->expires->__t));
}
$gmtExpires = Date::fromTime($this->expires->getTime() + ufront_web_HttpCookie::$tzOffset);
$zeroPad = array(new _hx_lambda(array(&$buf, &$gmtExpires), "ufront_web_HttpCookie_0"), 'execute');
$day = ufront_web_HttpCookie::$dayNames[$gmtExpires->getDay()];
$date = call_user_func_array($zeroPad, array($gmtExpires->getDate()));
$month = ufront_web_HttpCookie::$monthNames[$gmtExpires->getMonth()];
$year = $gmtExpires->getFullYear();
$hour = call_user_func_array($zeroPad, array($gmtExpires->getHours()));
$minute = call_user_func_array($zeroPad, array($gmtExpires->getMinutes()));
$second = call_user_func_array($zeroPad, array($gmtExpires->getSeconds()));
$dateStr = "" . _hx_string_or_null($day) . ", " . _hx_string_or_null($date) . "-" . _hx_string_or_null($month) . "-" . _hx_string_rec($year, "") . " " . _hx_string_or_null($hour) . ":" . _hx_string_or_null($minute) . ":" . _hx_string_or_null($second) . " GMT";
ufront_web_HttpCookie::addPair($buf, "expires", $dateStr, null);
}
ufront_web_HttpCookie::addPair($buf, "domain", $this->domain, null);
ufront_web_HttpCookie::addPair($buf, "path", $this->path, null);
if ($this->secure) {
ufront_web_HttpCookie::addPair($buf, "secure", null, true);
}
return $buf->b;
}
示例12: update_fields_x
public function update_fields_x($param)
{
$state = $param->get("state");
$lead_id = Std::parseInt($param->get("lead_id"));
$agcResponse = S::$my->query("UPDATE vicidial_list SET state=\"" . _hx_string_or_null($state) . "\" WHERE lead_id=" . Std::string($lead_id), null);
return $this->json_response(model_AgcApi_0($this, $agcResponse, $lead_id, $param, $state));
}
示例13: toString
public function toString()
{
$str = _hx_string_or_null($this->table->toString()) . "." . _hx_string_or_null($this->name);
if ($this->alias !== null) {
$str .= " AS " . _hx_string_or_null($this->alias);
}
return $str;
}
示例14: external_status
public function external_status($param)
{
$status = $param->get("dispo");
$url = "http://xpress.mein-dialer.com/agc/api.php?source=flyCRM&user=" . _hx_string_or_null($this->vicidialUser) . "&pass=" . _hx_string_or_null($this->vicidialPass) . "&function=external_status&value=" . _hx_string_or_null($status) . "&agent_user=" . _hx_string_or_null($param->get("agent_user"));
haxe_Log::trace($url, _hx_anonymous(array("fileName" => "AgcApi.hx", "lineNumber" => 71, "className" => "model.AgcApi", "methodName" => "external_status")));
$agcResponse = haxe_Http::requestUrl($url);
return $this->json_response(_hx_index_of($agcResponse, "SUCCESS", null) === 0 ? "OK" : $agcResponse);
}
示例15: logFirePHP
static function logFirePHP($message) {
if(!property_exists("GLOBALS", "firephp")) {
ob_start();
require_once '/libFirePHPCore/FirePHP.class.php';
$GLOBALS['firephp'] = FirePHP::getInstance(true);
}
$GLOBALS["firephp"]->log("[PHP] " . _hx_string_or_null($message));
}