PHPで標準カレンダーを作成します

Aspose.Tasks -標準カレンダーを作成

Aspose.Tasks asops.tasks java for phpを使用して標準カレンダーを作成するには、createstandardcalendarモジュールを呼び出します。ここでは、サンプルコードを見ることができます。

 1$ project = new Project( 'test_tasks.mpp');
 2
 3$ cal1 = $ project-> getCalendars() - > add( "my cal");
 4
 5$ calendar = new Calendar();
 6
 7$ calendar-> makestandardcalendar($ cal1);
 8
 9$ savefileformat = new SaveFileFormat();
10
11$ project-> save( "CreateStandardCalendar.xml"$ savefileformat-> xml);
12
13「作成された標準カレンダー、出力ファイルを確認してください。」;

実行中のコードをダウンロード

ダウンロード**下記のソーシャルコーディングサイトのいずれかから標準カレンダー(Aspose.Tasks)を作成します。

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.