added new process user interface

This commit is contained in:
Erik Amaru Ortiz
2011-02-10 17:01:21 +00:00
parent 9524b82892
commit b03e8cd2af
6 changed files with 315 additions and 23 deletions

View File

@@ -458,6 +458,21 @@ class Process extends BaseProcess {
$oPro = ProcessPeer::retrieveByPk( $ProUid );
return (is_object ($oPro) && get_class ($oPro) == 'Process' );
}
public function existsByProTitle($PRO_TITLE)
{
$oCriteria = new Criteria('workflow');
$oCriteria->addSelectColumn('COUNT(*) AS PROCESS');
$oCriteria->add(ContentPeer::CON_CATEGORY, 'PRO_TITLE');
$oCriteria->add(ContentPeer::CON_LANG, SYS_LANG);
$oCriteria->add(ContentPeer::CON_VALUE, $PRO_TITLE);
$oDataset = ContentPeer::doSelectRS($oCriteria);
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
$oDataset->next();
$aRow = $oDataset->getRow();
return $aRow['PROCESS'] ? true : false;
}
//new functions
function getAllProcessesCount(){
@@ -651,4 +666,4 @@ function ordProcessByProTitle($a, $b){
return 0;
}
}
}