本文整理汇总了PHP中Process::getIdFromProcessId方法的典型用法代码示例。如果您正苦于以下问题:PHP Process::getIdFromProcessId方法的具体用法?PHP Process::getIdFromProcessId怎么用?PHP Process::getIdFromProcessId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Process
的用法示例。
在下文中一共展示了Process::getIdFromProcessId方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getInsertData
/**
* converts an object to insert/update data
*
* @return a comma separated string e.g. "a=1,b=2"
*/
public function getInsertData($doubleEscaped = false)
{
$values = '';
if ($this->id != null) {
$this->addInsertData($values, 'A_id', DBJson::mysql_real_escape_string($this->id));
}
if ($this->exerciseId != null) {
$this->addInsertData($values, 'E_id', DBJson::mysql_real_escape_string($this->exerciseId));
}
if ($this->file != null && $this->file->getFileId() != null) {
$this->addInsertData($values, 'F_id', DBJson::mysql_real_escape_string($this->file->getFileId()));
}
if ($this->processId != null) {
$this->addInsertData($values, 'PRO_id', DBJson::mysql_real_escape_string(Process::getIdFromProcessId($this->processId)));
}
if ($values != '') {
$values = substr($values, 1);
}
return $doubleEscaped ? DBJson::mysql_real_escape_string($values) : $values;
}
示例2: getInsertData
/**
* converts an object to insert/update data
*
* @return a comma separated string e.g. "a=1,b=2"
*/
public function getInsertData($doubleEscaped = false)
{
$values = '';
if ($this->processId != null) {
$this->addInsertData($values, 'PRO_id', DBJson::mysql_real_escape_string(Process::getIdFromProcessId($this->processId)));
}
if ($this->exercise !== null && $this->exercise->getId() !== null) {
$this->addInsertData($values, 'E_id', DBJson::mysql_real_escape_string($this->exercise->getId()));
}
if ($this->target != null) {
$this->addInsertData($values, 'CO_id_target', DBJson::mysql_real_escape_string($this->target->getId()));
}
if ($this->parameter != null) {
$this->addInsertData($values, 'PRO_parameter', DBJson::mysql_real_escape_string($this->parameter));
}
if ($values != '') {
$values = substr($values, 1);
}
return $doubleEscaped ? DBJson::mysql_real_escape_string($values) : $values;
}