ultimix
schedule_algorithms_1_0_0 Class Reference

Public Member Functions

 __construct ()
 get_tasks ($Count)

Data Fields

 $ScheduleAccess = false
 $Security = false

Detailed Description

Class provides routine for ad banners.

Author
Dodonov A.A.

Definition at line 26 of file schedule_algorithms.php.

Constructor & Destructor Documentation

__construct ( )

Constructor.

Author
Dodonov A.A.

Definition at line 51 of file schedule_algorithms.php.

{
try
{
$this->ScheduleAccess = get_package( 'schedule::schedule_access' , 'last' , __FILE__ );
$this->Security = get_package( 'security' , 'last' , __FILE__ );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

Member Function Documentation

get_tasks (   $Count)

Function returns a list of tasks to process.

Parameters
$Count- maximum count of tasks to process.
Returns
A list of tasks to process.
Author
Dodonov A.A.

Definition at line 82 of file schedule_algorithms.php.

{
try
{
$Count = $this->Security->get( $Count , 'integer' );
return(
$this->ScheduleAccess->unsafe_select(
"processing = 0 AND archived = 0 AND next_processing_time < NOW() ".
"ORDER BY next_processing_time ASC LIMIT 0 , $Count"
)
);
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

Field Documentation

$ScheduleAccess = false

Cached objects.

Author
Dodonov A.A.

Definition at line 38 of file schedule_algorithms.php.

$Security = false

Definition at line 39 of file schedule_algorithms.php.


The documentation for this class was generated from the following file: