Rename class calendar to Calendar
This commit is contained in:
davidcallizaya
2017-08-04 10:13:09 -04:00
parent ddfb4eea63
commit 7e8ad3431d
14 changed files with 1112 additions and 1113 deletions

View File

@@ -745,7 +745,7 @@ function executeCaseSelfService()
setExecutionMessage("Unassigned case");
saveLog("unassignedCase", "action", "Unassigned case", "c");
$calendar = new calendar();
$calendar = new Calendar();
while ($rsCriteria->next()) {

View File

@@ -28,7 +28,6 @@
* @name calendar
* created 2010-03-22
*
* @author Hugo Loza <hugo@colosa.com> 2010-03-22 *
*/
require_once ("classes/model/CalendarDefinition.php");
@@ -43,7 +42,7 @@ require_once ("classes/model/CalendarDefinition.php");
* @package workflow.engine.classes
*
*/
class calendar extends CalendarDefinition
class Calendar extends CalendarDefinition
{
public $pmCalendarUid = '';
public $pmCalendarData = array();
@@ -316,7 +315,7 @@ class calendar extends CalendarDefinition
* @param string(32) $proUid
* @param string(32) $tasUid
*/
function calendar ($userUid = NULL, $proUid = NULL, $tasUid = NULL)
function Calendar ($userUid = NULL, $proUid = NULL, $tasUid = NULL)
{
$this->userUid = $userUid;
$this->proUid = $proUid;

View File

@@ -74,7 +74,7 @@ class dates
{
//$oldDate=$this->calculateDate_noCalendar( $sInitDate, $iDuration, $sTimeUnit, $iTypeDay, $UsrUid, $ProUid, $TasUid);
//Set Calendar when the object is instanced in this order/priority (Task, User, Process, Default)
$calendarObj = new calendar($UsrUid, $ProUid, $TasUid);
$calendarObj = new Calendar($UsrUid, $ProUid, $TasUid);
//Get next Business Hours/Range based on :
switch (strtoupper($sTimeUnit)) {
case 'DAYS':

View File

@@ -467,7 +467,7 @@ class AppDelegation extends BaseAppDelegation
}
//Calendar - Use the dates class to calculate dates
$calendar = new calendar();
$calendar = new Calendar();
$arrayCalendarData = $calendar->getCalendarData($aCalendarUID);
@@ -503,7 +503,7 @@ class AppDelegation extends BaseAppDelegation
$riskTime = $data['TAS_DURATION'] - ($data['TAS_DURATION'] * $risk);
//Calendar - Use the dates class to calculate dates
$calendar = new calendar();
$calendar = new Calendar();
$arrayCalendarData = array();
@@ -537,11 +537,11 @@ class AppDelegation extends BaseAppDelegation
$rs->next();
$row = $rs->getRow();
$i = 0;
$calendar = new calendar();
$calendar = new Calendar();
$now = new DateTime();
while (is_array ($row)) {
$oAppDel = AppDelegationPeer::retrieveByPk( $row['APP_UID'], $row['DEL_INDEX'] );
$calendar = new calendar();
$calendar = new Calendar();
$calendar->getCalendar($row['USR_UID'], $row['PRO_UID'], $row['TAS_UID']);
$calData = $calendar->getCalendarData();
$calculatedValues = $this->getValuesToStoreForCalculateDuration($row, $calendar, $calData, $now);

View File

@@ -447,7 +447,7 @@ class Application extends BaseApplication
@file_put_contents( PATH_DATA . "cron", serialize( $arrayCron ) );
}
$calendar = new calendar();
$calendar = new Calendar();
$c = new Criteria( 'workflow' );
$c->clearSelectColumns();

View File

@@ -425,7 +425,7 @@ class Event extends BaseEvent
try {
$rowsCreated = 0;
$rowsRejected = 0;
$oCalendar = new calendar();
$oCalendar = new Calendar();
//SELECT
// EVENT.PRO_UID,
@@ -550,7 +550,7 @@ class Event extends BaseEvent
try {
$rowsCreated = 0;
$rowsRejected = 0;
$oCalendar = new calendar();
$oCalendar = new Calendar();
// SELECT TASK2.* ,
// EVENT.EVN_UID, EVENT.PRO_UID, EVENT.EVN_TAS_UID_FROM,
// EVENT.EVN_TAS_ESTIMATED_DURATION, EVENT.EVN_WHEN,
@@ -872,7 +872,7 @@ class Event extends BaseEvent
public function toCalculateTime ($aData, $iDate = null)
{
$oCalendar = new calendar();
$oCalendar = new Calendar();
$iDate = isset( $iDate ) ? $iDate : date( 'Y-m-d H:i:s' );

View File

@@ -171,7 +171,7 @@ class UsersProperties extends BaseUsersProperties
}
}
if (PPP_EXPIRATION_IN > 0) {
$oCalendar = new calendar();
$oCalendar = new Calendar();
if ($oCalendar->pmCalendarUid == '') {
$oCalendar->pmCalendarUid = '00000000000000000000000000000001';

View File

@@ -84,7 +84,7 @@ class Admin extends Controller
//$RBAC->requirePermissions('PM_SETUP_ADVANCE');
$CalendarUid = str_replace( '"', '', isset( $_GET['id'] ) ? $_GET['id'] : G::GenerateUniqueID() );
$calendarObj = new calendar();
$calendarObj = new Calendar();
if ((isset( $_GET['id'] )) && ($_GET['id'] != "")) {
$fields = $calendarObj->getCalendarInfoE( $CalendarUid );

View File

@@ -293,7 +293,7 @@ class adminProxy extends HttpProxyController
//]
$form = $_POST;
$calendarObj=new calendar();
$calendarObj=new Calendar();
$calendarObj->saveCalendarInfo($form);
echo "{success: true}";
}

View File

@@ -3,7 +3,7 @@ try {
$CalendarUid = $_GET['id'];
$calendarObj = new calendar();
$calendarObj = new Calendar();
$calendarObj->deleteCalendar( $CalendarUid );
G::Header( 'location: calendarList' );

View File

@@ -34,7 +34,7 @@ $G_ID_SUB_MENU_SELECTED = 'CALENDAR';
$CalendarUid = str_replace( '"', '', isset( $_GET['id'] ) ? $_GET['id'] : G::GenerateUniqueID() );
//TODO: Add validation before save for all fields
$calendarObj = new calendar();
$calendarObj = new Calendar();
if ((isset( $_GET['id'] )) && ($_GET['id'] != "")) {
$fields = $calendarObj->getCalendarInfoE( $CalendarUid );
$fields['OLD_NAME'] = $fields['CALENDAR_NAME'];

View File

@@ -37,7 +37,7 @@ switch ($RBAC->userCanAccess( 'PM_SETUP_ADVANCE' )) {
try {
$form = $_POST['form'];
$calendarObj = new calendar();
$calendarObj = new Calendar();
$calendarObj->saveCalendarInfo( $form );
G::Header( 'location: calendarList' );

View File

@@ -39,7 +39,7 @@ switch ($_POST['action']) {
$limit = isset( $_REQUEST['limit'] ) ? $_REQUEST['limit'] : $limit_size;
$filter = isset( $_REQUEST['textFilter'] ) ? $_REQUEST['textFilter'] : '';
$calendar = new calendar();
$calendar = new Calendar();
$CRI = $calendar->getCalendarCriterias( $filter, $start, $limit );
$aUsers = $calendar->getAllCounterByCalendar( 'USER' );
@@ -73,7 +73,7 @@ switch ($_POST['action']) {
break;
case 'canDeleteCalendar':
$cal_uid = $_POST['CAL_UID'];
$cal = new calendar();
$cal = new Calendar();
$total = 0;
$u = $cal->getAllCounterByCalendar( 'USER' );
$t_u = isset( $u[$cal_uid] ) ? $u[$cal_uid] : 0;
@@ -87,7 +87,7 @@ switch ($_POST['action']) {
break;
case 'deleteCalendar':
$CalendarUid = $_POST['CAL_UID'];
$calendarObj = new calendar();
$calendarObj = new Calendar();
$calendarObj->deleteCalendar( $CalendarUid );
echo '{success: true}';
break;