Dotclear 2.24
Loading...
Searching...
No Matches
dcMaintenanceSynchpostsmeta Class Reference
Inheritance diagram for dcMaintenanceSynchpostsmeta:
dcMaintenanceTask

Public Member Functions

 execute ()
 
 task ()
 
 step ()
 
 success ()
 
- Public Member Functions inherited from dcMaintenanceTask
 __construct (dcMaintenance $maintenance)
 
 perm ()
 
 blog ()
 
 code ($code)
 
 ts ()
 
 expired ()
 
 id ()
 
 name ()
 
 description ()
 
 tab ()
 
 group ()
 
 ajax ()
 
 task ()
 
 step ()
 
 success ()
 
 error ()
 
 header ()
 
 content ()
 
 execute ()
 
 help ()
 

Protected Member Functions

 init ()
 
 synchronizeAllPostsmeta (?int $start=null, ?int $limit=null)
 
- Protected Member Functions inherited from dcMaintenanceTask
 init ()
 
 log ()
 

Protected Attributes

 $ajax = true
 
 $group = 'index'
 
 $limit = 100
 
 $step_task
 
- Protected Attributes inherited from dcMaintenanceTask
 $maintenance
 
 $code
 
 $ts = 0
 
 $expired = 0
 
 $ajax = false
 
 $blog = false
 
 $perm = null
 
 $id
 
 $name
 
 $description
 
 $tab = 'maintenance'
 
 $group = 'other'
 
 $task
 
 $step
 
 $error
 
 $success
 

Member Function Documentation

◆ init()

init ( )
protected

◆ execute()

execute ( )

Execute task.

Returns
bool|int
  • FALSE on error,
  • TRUE if task is finished
  • INT if task required a next step

Reimplemented from dcMaintenanceTask.

References dcMaintenanceTask\code(), and synchronizeAllPostsmeta().

◆ task()

task ( )

Get task message.

This message is used on form button.

Returns
string Message

Reimplemented from dcMaintenanceTask.

References dcMaintenanceTask\$task, and dcMaintenanceTask\code().

Referenced by init().

◆ step()

step ( )

Get step message.

This message is displayed during task step execution.

Returns
mixed Message or null

Reimplemented from dcMaintenanceTask.

References dcMaintenanceTask\code(), and step().

Referenced by init(), step(), and success().

◆ success()

success ( )

Get success message.

This message is displayed when task is accomplished.

Returns
string Message or null

Reimplemented from dcMaintenanceTask.

References dcMaintenanceTask\$success, dcMaintenanceTask\code(), and step().

Referenced by init().

◆ synchronizeAllPostsmeta()

synchronizeAllPostsmeta ( ?int  $start = null,
?int  $limit = null 
)
protected

Synchronize posts meta

Parameters
int | null$startThe start
int | null$limitThe limit
Returns
int|null Next offset if any

References $limit, dcCore\app(), dcMeta\META_TABLE_NAME, and dcBlog\POST_TABLE_NAME.

Referenced by execute().

Field Documentation

◆ $ajax

$ajax = true
protected

◆ $group

$group = 'index'
protected

◆ $limit

$limit = 100
protected

Referenced by synchronizeAllPostsmeta().

◆ $step_task

$step_task
protected

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