PHP Classes

File: fwphp/glomodul/z_examples/todo_csv_js/todolist/detail.php

Recommend this page to a friend!
  Classes of Slavko Srakocic   B12 PHP FW   fwphp/glomodul/z_examples/todo_csv_js/todolist/detail.php   Download  
File: fwphp/glomodul/z_examples/todo_csv_js/todolist/detail.php
Role: Example script
Content type: text/plain
Description: Example script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change: Update of fwphp/glomodul/z_examples/todo_csv_js/todolist/detail.php
Date: 1 year ago
Size: 262 bytes
 

Contents

Class file image Download
<?php
/*
 *
 */

namespace TodoList;

use \
DateTime;
use \
TodoList\Model\Todo;
use \
TodoList\Util\Utils;

// data for template
$todo = Utils::getTodoByGetId();
$tooLate = $todo->getStatus() == Todo::STATUS_PENDING
       
&& $todo->getDueOn() < new DateTime();