HOR-197
This commit is contained in:
@@ -2933,6 +2933,34 @@ function PMFTasksListByProcessId($processId)
|
|||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @method
|
||||||
|
* The requested text in the specified language | If not found returns false
|
||||||
|
* @name PMFGeti18nText
|
||||||
|
* @label PMF Get i18n Text
|
||||||
|
* @param string | $id | ID Text | Is the identifier of text, that must be the same to the column: "CON_ID" of the CONTENT table
|
||||||
|
* @param string | $category | Category | Is the category of the text, that must be the same to the column: "CON_CATEGORY" of the CONTENT table
|
||||||
|
* @param string | $lang | Language | Is the language of the text, that must be the same to the column: "CON_LANG" of the CONTENT table
|
||||||
|
* @return string | $text | Translated text | the translated text of a string in Content
|
||||||
|
*/
|
||||||
|
function PMFGeti18nText($id, $category, $lang = "en")
|
||||||
|
{
|
||||||
|
$text = false;
|
||||||
|
$criteria = new Criteria("workflow");
|
||||||
|
$criteria->addSelectColumn(ContentPeer::CON_VALUE);
|
||||||
|
$criteria->add(ContentPeer::CON_ID, $id, Criteria::EQUAL);
|
||||||
|
$criteria->add(ContentPeer::CON_CATEGORY, $category, Criteria::EQUAL);
|
||||||
|
$criteria->add(ContentPeer::CON_LANG, $lang, Criteria::EQUAL);
|
||||||
|
$ds = ContentPeer::doSelectRS($criteria);
|
||||||
|
$ds->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||||
|
$ds->next();
|
||||||
|
$row = $ds->getRow();
|
||||||
|
if (isset($row["CON_VALUE"])) {
|
||||||
|
$text = $row["CON_VALUE"];
|
||||||
|
}
|
||||||
|
return $text;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @method
|
* @method
|
||||||
* This function determines if the domain of the passed email addres is hosted in
|
* This function determines if the domain of the passed email addres is hosted in
|
||||||
|
|||||||
Reference in New Issue
Block a user