Permalink
Browse files

#10 make postSchedule public

  • Loading branch information...
1 parent dc91282 commit c2c84a8d7e6d6f18a82fcc6af57ced246047cda3 @thousandsofthem thousandsofthem committed Jan 4, 2013
Showing with 6 additions and 4 deletions.
  1. +6 −4 IronWorker.class.php
  2. BIN iron_worker.phar
View
@@ -6,7 +6,7 @@
* @link https://github.com/iron-io/iron_worker_php
* @link http://www.iron.io/
* @link http://dev.iron.io/
- * @version 1.3.4
+ * @version 1.3.5
* @package IronWorkerPHP
* @copyright Feel free to copy, steal, take credit for, or whatever you feel like doing with this code. ;)
*/
@@ -23,7 +23,7 @@ class IronWorker_Exception extends Exception{
*/
class IronWorker extends IronCore{
- protected $client_version = '1.3.4';
+ protected $client_version = '1.3.5';
protected $client_name = 'iron_worker_php';
protected $product_name = 'iron_worker';
protected $default_values = array(
@@ -465,9 +465,9 @@ public function waitFor($task_id, $sleep = 5, $max_wait_time = 0){
return false;
}
- /* PRIVATE FUNCTIONS */
/**
+ * Schedule a task
*
* @param string $name
* @param array $options options contain:
@@ -479,7 +479,7 @@ public function waitFor($task_id, $sleep = 5, $max_wait_time = 0){
* @param array $payload
* @return mixed
*/
- private function postSchedule($name, $options, $payload = array()){
+ public function postSchedule($name, $options, $payload = array()){
$url = "projects/{$this->project_id}/schedules";
$shedule = array(
'name' => $name,
@@ -498,6 +498,8 @@ private function postSchedule($name, $options, $payload = array()){
return $shedules->schedules[0]->id;
}
+ /* PRIVATE FUNCTIONS */
+
private function runtimeFileType($name) {
if(empty($name)){
return false;
View
Binary file not shown.

0 comments on commit c2c84a8

Please sign in to comment.