uawdijnntqw1x1x1
IP : 216.73.216.207
Hostname : xhost1.intravision.ru
Kernel : Linux xhost1.intravision.ru 3.16.0-7-amd64 #1 SMP Debian 3.16.59-1 (2018-10-03) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
files
/
.
/
need-2-delete
/
mini-borishof.ru1
/
.
/
bitrix
/
.
/
modules
/
perfmon
/
lib
/
sql
/
base_object.php
/
/
<?php namespace Bitrix\Perfmon\Sql; /** * Class BaseObject * Base class for all schema objects such as tables, columns, indexes, etc. * @package Bitrix\Perfmon\Sql */ abstract class BaseObject { /** @var BaseObject|null */ public $parent = null; public $name = ''; public $body = ''; protected $ciName = ''; /** * @param string $name Name of the table. */ function __construct($name = '') { $this->name = (string)$name; $this->ciName = $this->getCompareName($this->name); } /** * Sets source code for object. * * @param string $body The body. * * @return BaseObject */ public function setBody($body) { $this->body = trim($body); return $this; } /** * Sets parent for object. * <p> * For example Table for Column. * * @param BaseObject $parent Parent object. * * @return BaseObject */ public function setParent(BaseObject $parent = null) { $this->parent = $parent; return $this; } /** * Returns "lowercased" name of the object. * <p> * If name is not quoted then it made lowercase. * * @return string */ final public function getLowercasedName() { if ($this->name[0] == '`') return $this->name; elseif ($this->name[0] == '"') return $this->name; elseif ($this->name[0] == '[') return $this->name; else return strtolower($this->name); } /** * Returns "normalized" name of the table. * <p> * If name is not quoted then it made uppercase. * * @param string $name Table name. * @return string */ final public static function getCompareName($name) { if ($name[0] == '`') return $name; elseif ($name[0] == '"') return $name; elseif ($name[0] == '[') return $name; else return strtoupper($name); } /** * Compares name of the table with given. * <p> * If name has no quotes when comparison is case insensitive. * * @param string $name Table name to compare. * @return int * @see strcmp */ final public function compareName($name) { return strcmp($this->ciName, $this->getCompareName($name)); } /** * Return DDL or commentary for object creation. * * @param string $dbType Database type. * * @return array|string */ public function getCreateDdl($dbType = '') { return "// ".get_class($this).":getCreateDdl not implemented"; } /** * Return DDL or commentary for object destruction. * * @param string $dbType Database type. * * @return array|string */ public function getDropDdl($dbType = '') { return "// ".get_class($this).":getDropDdl not implemented"; } /** * Return DDL or commentary for object modification. * * @param BaseObject $target Target object. * @param string $dbType Database type. * * @return array|string */ public function getModifyDdl(BaseObject $target, $dbType = '') { return "// ".get_class($this).":getModifyDdl not implemented"; } }
/var/files/./need-2-delete/mini-borishof.ru1/./bitrix/./modules/perfmon/lib/sql/base_object.php