PHPでカレンダーの例外を削除します
Contents
[
Hide
Show
]Aspose.Tasks -カレンダーの例外を削除
Aspose.Tasks java for phpを使用してカレンダーの例外を削除するには、removecalendarexceptionモジュールを呼び出します。ここでは、サンプルコードを見ることができます。
1$ project = new Project( 'test_tasks.mpp');
2
3$ cal = $ project-> getCalendars() - > tolist() - > get(0);
4
5if((int)(string)($ cal-> getExceptions() - > getCount())> 1){
6
7 $exception = $cal -> getExceptions() -> toList() -> get(0);
8
9 $cal -> getExceptions() -> remove($exception);
10
11 print "Removed calendar exception.";
12
13}
実行中のコードをダウンロード
ダウンロード**カレンダーの例外を削除(Aspose.Tasks)**以下のソーシャルコーディングサイトのいずれかから: