Skip to content

Commit 9e39afd

Browse files
[TASKSCLOUD-966] - Deployed new 25.11 version
1 parent 6314a78 commit 9e39afd

File tree

4 files changed

+230
-6
lines changed

4 files changed

+230
-6
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/t
3434
XER, XLSX, HTML, XML, TXT, TIF, SVG, PNG, JPEG
3535

3636

37+
## Enhancements in Version 25.11
38+
- Enhanced reading data from Primavera-specific task's properties.
39+
3740
## Enhancements in Version 25.8
3841
- Added new ability to level tasks for the resources.
3942
- Provided the ability to clear leveling delay that was previously added to the tasks during resource leveling.

src/Aspose/Tasks/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class Configuration
135135
* Version of Aspose.Tasks Cloud API
136136
*
137137
*/
138-
protected $clientVersion = '25.8';
138+
protected $clientVersion = '25.11';
139139

140140
/*
141141
* Constructor
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<?php
2+
/**
3+
* --------------------------------------------------------------------------------------------------------------------
4+
* <copyright company="Aspose" file="PrimaveraConstraintType.php">
5+
* Copyright (c) 2021 Aspose.Tasks Cloud
6+
* </copyright>
7+
* <summary>
8+
* Permission is hereby granted, free of charge, to any person obtaining a copy
9+
* of this software and associated documentation files (the "Software"), to deal
10+
* in the Software without restriction, including without limitation the rights
11+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
* copies of the Software, and to permit persons to whom the Software is
13+
* furnished to do so, subject to the following conditions:
14+
*
15+
* The above copyright notice and this permission notice shall be included in all
16+
* copies or substantial portions of the Software.
17+
*
18+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24+
* SOFTWARE.
25+
* </summary>
26+
* --------------------------------------------------------------------------------------------------------------------
27+
*/
28+
/*
29+
* PrimaveraConstraintType
30+
*/
31+
32+
namespace Aspose\Tasks\Model;
33+
use \Aspose\Tasks\ObjectSerializer;
34+
35+
/*
36+
* PrimaveraConstraintType
37+
*
38+
* @description Specifies a type of activity&#39;s constraint.
39+
*/
40+
class PrimaveraConstraintType
41+
{
42+
/*
43+
* Possible values of this enum
44+
*/
45+
const NONE = 'None';
46+
const FINISH_ON = 'FinishOn';
47+
const FINISH_ON_OR_AFTER = 'FinishOnOrAfter';
48+
const FINISH_ON_OR_BEFORE = 'FinishOnOrBefore';
49+
const MANDATORY_FINISH = 'MandatoryFinish';
50+
const MANDATORY_START = 'MandatoryStart';
51+
const START_ON = 'StartOn';
52+
const START_ON_OR_AFTER = 'StartOnOrAfter';
53+
const START_ON_OR_BEFORE = 'StartOnOrBefore';
54+
const AS_LATE_AS_POSSIBLE = 'AsLateAsPossible';
55+
56+
/*
57+
* Gets allowable values of the enum
58+
* @return string[]
59+
*/
60+
public static function getAllowableEnumValues()
61+
{
62+
return [
63+
self::NONE,
64+
self::FINISH_ON,
65+
self::FINISH_ON_OR_AFTER,
66+
self::FINISH_ON_OR_BEFORE,
67+
self::MANDATORY_FINISH,
68+
self::MANDATORY_START,
69+
self::START_ON,
70+
self::START_ON_OR_AFTER,
71+
self::START_ON_OR_BEFORE,
72+
self::AS_LATE_AS_POSSIBLE,
73+
];
74+
}
75+
}
76+
77+

src/Aspose/Tasks/Model/PrimaveraTaskProperties.php

Lines changed: 149 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,11 @@ class PrimaveraTaskProperties implements ArrayAccess
8686
'budgeted_labor_cost' => 'float',
8787
'budgeted_nonlabor_cost' => 'float',
8888
'budgeted_material_cost' => 'float',
89-
'budgeted_expense_cost' => 'float'
89+
'budgeted_expense_cost' => 'float',
90+
'primary_constraint_type' => '\Aspose\Tasks\Model\PrimaveraConstraintType',
91+
'primary_constraint_date' => '\DateTime',
92+
'secondary_constraint_type' => '\Aspose\Tasks\Model\PrimaveraConstraintType',
93+
'secondary_constraint_date' => '\DateTime'
9094
];
9195

9296
/*
@@ -125,7 +129,11 @@ class PrimaveraTaskProperties implements ArrayAccess
125129
'budgeted_labor_cost' => 'decimal',
126130
'budgeted_nonlabor_cost' => 'decimal',
127131
'budgeted_material_cost' => 'decimal',
128-
'budgeted_expense_cost' => 'decimal'
132+
'budgeted_expense_cost' => 'decimal',
133+
'primary_constraint_type' => null,
134+
'primary_constraint_date' => 'date-time',
135+
'secondary_constraint_type' => null,
136+
'secondary_constraint_date' => 'date-time'
129137
];
130138

131139
/*
@@ -185,7 +193,11 @@ public static function swaggerFormats()
185193
'budgeted_labor_cost' => 'budgetedLaborCost',
186194
'budgeted_nonlabor_cost' => 'budgetedNonlaborCost',
187195
'budgeted_material_cost' => 'budgetedMaterialCost',
188-
'budgeted_expense_cost' => 'budgetedExpenseCost'
196+
'budgeted_expense_cost' => 'budgetedExpenseCost',
197+
'primary_constraint_type' => 'primaryConstraintType',
198+
'primary_constraint_date' => 'primaryConstraintDate',
199+
'secondary_constraint_type' => 'secondaryConstraintType',
200+
'secondary_constraint_date' => 'secondaryConstraintDate'
189201
];
190202

191203
/*
@@ -224,7 +236,11 @@ public static function swaggerFormats()
224236
'budgeted_labor_cost' => 'setBudgetedLaborCost',
225237
'budgeted_nonlabor_cost' => 'setBudgetedNonlaborCost',
226238
'budgeted_material_cost' => 'setBudgetedMaterialCost',
227-
'budgeted_expense_cost' => 'setBudgetedExpenseCost'
239+
'budgeted_expense_cost' => 'setBudgetedExpenseCost',
240+
'primary_constraint_type' => 'setPrimaryConstraintType',
241+
'primary_constraint_date' => 'setPrimaryConstraintDate',
242+
'secondary_constraint_type' => 'setSecondaryConstraintType',
243+
'secondary_constraint_date' => 'setSecondaryConstraintDate'
228244
];
229245

230246
/*
@@ -263,7 +279,11 @@ public static function swaggerFormats()
263279
'budgeted_labor_cost' => 'getBudgetedLaborCost',
264280
'budgeted_nonlabor_cost' => 'getBudgetedNonlaborCost',
265281
'budgeted_material_cost' => 'getBudgetedMaterialCost',
266-
'budgeted_expense_cost' => 'getBudgetedExpenseCost'
282+
'budgeted_expense_cost' => 'getBudgetedExpenseCost',
283+
'primary_constraint_type' => 'getPrimaryConstraintType',
284+
'primary_constraint_date' => 'getPrimaryConstraintDate',
285+
'secondary_constraint_type' => 'getSecondaryConstraintType',
286+
'secondary_constraint_date' => 'getSecondaryConstraintDate'
267287
];
268288

269289
/*
@@ -357,6 +377,10 @@ public function __construct(array $data = null)
357377
$this->container['budgeted_nonlabor_cost'] = isset($data['budgeted_nonlabor_cost']) ? $data['budgeted_nonlabor_cost'] : null;
358378
$this->container['budgeted_material_cost'] = isset($data['budgeted_material_cost']) ? $data['budgeted_material_cost'] : null;
359379
$this->container['budgeted_expense_cost'] = isset($data['budgeted_expense_cost']) ? $data['budgeted_expense_cost'] : null;
380+
$this->container['primary_constraint_type'] = isset($data['primary_constraint_type']) ? $data['primary_constraint_type'] : null;
381+
$this->container['primary_constraint_date'] = isset($data['primary_constraint_date']) ? $data['primary_constraint_date'] : null;
382+
$this->container['secondary_constraint_type'] = isset($data['secondary_constraint_type']) ? $data['secondary_constraint_type'] : null;
383+
$this->container['secondary_constraint_date'] = isset($data['secondary_constraint_date']) ? $data['secondary_constraint_date'] : null;
360384
}
361385

362386
/*
@@ -446,6 +470,18 @@ public function listInvalidProperties()
446470
if ($this->container['budgeted_expense_cost'] === null) {
447471
$invalidProperties[] = "'budgeted_expense_cost' can't be null";
448472
}
473+
if ($this->container['primary_constraint_type'] === null) {
474+
$invalidProperties[] = "'primary_constraint_type' can't be null";
475+
}
476+
if ($this->container['primary_constraint_date'] === null) {
477+
$invalidProperties[] = "'primary_constraint_date' can't be null";
478+
}
479+
if ($this->container['secondary_constraint_type'] === null) {
480+
$invalidProperties[] = "'secondary_constraint_type' can't be null";
481+
}
482+
if ($this->container['secondary_constraint_date'] === null) {
483+
$invalidProperties[] = "'secondary_constraint_date' can't be null";
484+
}
449485
return $invalidProperties;
450486
}
451487

@@ -536,6 +572,18 @@ public function valid()
536572
if ($this->container['budgeted_expense_cost'] === null) {
537573
return false;
538574
}
575+
if ($this->container['primary_constraint_type'] === null) {
576+
return false;
577+
}
578+
if ($this->container['primary_constraint_date'] === null) {
579+
return false;
580+
}
581+
if ($this->container['secondary_constraint_type'] === null) {
582+
return false;
583+
}
584+
if ($this->container['secondary_constraint_date'] === null) {
585+
return false;
586+
}
539587
return true;
540588
}
541589

@@ -1283,6 +1331,102 @@ public function setBudgetedExpenseCost($budgeted_expense_cost)
12831331

12841332
return $this;
12851333
}
1334+
1335+
/*
1336+
* Gets primary_constraint_type
1337+
*
1338+
* @return \Aspose\Tasks\Model\PrimaveraConstraintType
1339+
*/
1340+
public function getPrimaryConstraintType()
1341+
{
1342+
return $this->container['primary_constraint_type'];
1343+
}
1344+
1345+
/*
1346+
* Sets primary_constraint_type
1347+
*
1348+
* @param \Aspose\Tasks\Model\PrimaveraConstraintType $primary_constraint_type Gets a type of primary constraint.
1349+
*
1350+
* @return $this
1351+
*/
1352+
public function setPrimaryConstraintType($primary_constraint_type)
1353+
{
1354+
$this->container['primary_constraint_type'] = $primary_constraint_type;
1355+
1356+
return $this;
1357+
}
1358+
1359+
/*
1360+
* Gets primary_constraint_date
1361+
*
1362+
* @return \DateTime
1363+
*/
1364+
public function getPrimaryConstraintDate()
1365+
{
1366+
return $this->container['primary_constraint_date'];
1367+
}
1368+
1369+
/*
1370+
* Sets primary_constraint_date
1371+
*
1372+
* @param \DateTime $primary_constraint_date Gets the date of primary constraint.
1373+
*
1374+
* @return $this
1375+
*/
1376+
public function setPrimaryConstraintDate($primary_constraint_date)
1377+
{
1378+
$this->container['primary_constraint_date'] = $primary_constraint_date;
1379+
1380+
return $this;
1381+
}
1382+
1383+
/*
1384+
* Gets secondary_constraint_type
1385+
*
1386+
* @return \Aspose\Tasks\Model\PrimaveraConstraintType
1387+
*/
1388+
public function getSecondaryConstraintType()
1389+
{
1390+
return $this->container['secondary_constraint_type'];
1391+
}
1392+
1393+
/*
1394+
* Sets secondary_constraint_type
1395+
*
1396+
* @param \Aspose\Tasks\Model\PrimaveraConstraintType $secondary_constraint_type Gets a type of secondary constraint.
1397+
*
1398+
* @return $this
1399+
*/
1400+
public function setSecondaryConstraintType($secondary_constraint_type)
1401+
{
1402+
$this->container['secondary_constraint_type'] = $secondary_constraint_type;
1403+
1404+
return $this;
1405+
}
1406+
1407+
/*
1408+
* Gets secondary_constraint_date
1409+
*
1410+
* @return \DateTime
1411+
*/
1412+
public function getSecondaryConstraintDate()
1413+
{
1414+
return $this->container['secondary_constraint_date'];
1415+
}
1416+
1417+
/*
1418+
* Sets secondary_constraint_date
1419+
*
1420+
* @param \DateTime $secondary_constraint_date Gets the date of secondary constraint.
1421+
*
1422+
* @return $this
1423+
*/
1424+
public function setSecondaryConstraintDate($secondary_constraint_date)
1425+
{
1426+
$this->container['secondary_constraint_date'] = $secondary_constraint_date;
1427+
1428+
return $this;
1429+
}
12861430
/*
12871431
* Returns true if offset exists. False otherwise.
12881432
*

0 commit comments

Comments
 (0)