PHP Classes

JSON Schedule creator: Manage event time schedules stored in JSON files

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 322 This week: 1All time: 7,215 This week: 560Up
Version License PHP version Categories
json-schedule 1.8GNU General Publi...5.4HTML, PHP 5, Time and Date, Databases, F...
Description 

Author

This class can manage event time schedules stored in JSON files.

It can store the start, end and description of events in JSON files.

The class can also retrieve the details of all event files and display them in a HTML table.

Picture of Daniel Alan Guerrero Matamoros
  Performance   Level  
Name: Daniel Alan Guerrero ... is available for providing paid consulting. Contact Daniel Alan Guerrero ... .
Classes: 7 packages by
Country: Mexico Mexico
Age: 28
All time rank: 197021 in Mexico Mexico
Week rank: 416 Up8 in Mexico Mexico Up
Innovation award
Innovation award
Nominee: 1x

Example

<?php

require_once("Schedule.php");

if(isset(
$_POST["action"])){
   
   
$Y = $_POST["Y"];
   
$n = $_POST["n"];
   
$j = $_POST["j"];
   
   
$inicio = $_POST["Start"];
   
$desc = $_POST["Desc"];
   
$fin = $_POST["Fin"];
   
    switch(
$_POST["action"]){
       
        case
"Create":
           
$c = new Schedule($Y, $n, $j);
           
$c->create($Y, $n, $j);
            echo
"New schedule created";
        break;
       
        case
"Add":
           
$c = new Schedule($Y, $n, $j);
            if(
$c->getData($Y, $n, $j)){
               
$c->add($inicio, $desc, $fin);
                echo
"New entry added";
            }
        break;
       
        case
"See":
           
$c = new Schedule($Y, $n, $j);
            if(
$c->getData($Y, $n, $j)){
               
$c->see();
            } else {
                echo
"Date does not exist";
            }
        break;
       
        default:
            echo
"Command error";
       
    }
   
}

?>











  Files folder image Files  
File Role Description
Files folder imageexample (4 files)

  Files folder image Files  /  example  
File Role Description
  Accessible without login Plain text file controller.php Example Controller for send and receive data
  Accessible without login Plain text file index.html Data Index of the example to display a possible way to receive data
  Plain text file Schedule.php Class Example class formated for JQueryM
  Accessible without login Plain text file sys.js Data JS for send and receive data from the controller.php

 Version Control Unique User Downloads Download Rankings  
 0%
Total:322
This week:1
All time:7,215
This week:560Up