cvs: php4 /pear/Schedule At.php

From: Date: Tue, 09 Jan 2001 20:53:10 +0000
Subject: cvs: php4 /pear/Schedule At.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3522@lists.php.net to get a copy of this message
cmv Tue Jan 9 12:53:10 2001 EDT Modified files: /php4/pear/Schedule At.php Log: more docs, remove debugging line Index: php4/pear/Schedule/At.php diff -u php4/pear/Schedule/At.php:1.1 php4/pear/Schedule/At.php:1.2 --- php4/pear/Schedule/At.php:1.1 Tue Jan 9 11:29:39 2001 +++ php4/pear/Schedule/At.php Tue Jan 9 12:53:10 2001 @@ -16,7 +16,7 @@ // | Authors: Colin Viebrock <colin@easydns.com> | // +----------------------------------------------------------------------+ // -// $Id: At.php,v 1.1 2001/01/09 19:29:39 cmv Exp $ +// $Id: At.php,v 1.2 2001/01/09 20:53:10 cmv Exp $ // // Interface to the UNIX "at" program @@ -41,6 +41,8 @@ /** * Constructor: instantiates the class. * + * @access public + * */ function Schedule_At() { @@ -68,13 +70,16 @@ * to when the job will run. * * @param $cmd shell command - * @param $timespec time when command should run, formatted accoring to the spec for at - * @param $queue optional at queue specifier - * @param $mail optional flag to specify whether to send email + * @param $timespec time when command should run, formatted accoring to the spec for at + * @param $queue optional at queue specifier + * @param $mail optional flag to specify whether to send email + * + * @access public + * */ function add($cmd, $timespec, $queue = false, $mail = false ) { -echo "***"; + $this->_reset(); if ($queue && !preg_match('/^[a-zA-Z]{1,1}$/', $queue) ) { @@ -122,6 +127,9 @@ * in that queue. * * @param $queue optional queue specifier + * + * @access public + * */ function show($queue = false) { @@ -165,6 +173,9 @@ * exist or on failure, or true on success. * * @param $job job to remove + * + * @access public + * */ function remove($job = false) { @@ -200,6 +211,9 @@ /** * PRIVATE: Reset class * + * + * @access private + * */ function _reset() { @@ -214,6 +228,9 @@ * PRIVATE: Parse date string returned from shell command * * @param $str date string to parse + * + * @access private + * */ function _parsedate($str) { @@ -229,6 +246,9 @@ * PRIVATE: Run a shell command * * @param $cmd command to run + * + * @access private + * */ function _doexec($cmd) {

« previous php.cvs (#3522) next »