本文整理匯總了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;
}