Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:service:scheduledpostservice

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
scriptlog:lib:service:scheduledpostservice [2026/09/26 09:09] – admin adminscriptlog:lib:service:scheduledpostservice [2026/09/26 09:34] (current) – admin admin
Line 13: Line 13:
 ======= Docblock Metadata ======= ======= Docblock Metadata =======
  
-  ^ Tag ^ Value ^ +^ Tag ^ Value ^ 
-  | ''@category'' | Service Class | +| ''@category'' | Service Class | 
-  | ''@author'' | Scriptlog | +| ''@author'' | Scriptlog | 
-  | ''@license'' | MIT | +| ''@license'' | MIT | 
-  | ''@version'' | 1.0 | +| ''@version'' | 1.0 | 
-  | ''@since'' | Since Release 1.0 |+| ''@since'' | Since Release 1.0 |
  
 ======= Inheritance ======= ======= Inheritance =======
Line 26: Line 26:
 ======= Constants (2) ======= ======= Constants (2) =======
  
-  ^ Visibility ^ Name ^ Value ^ Line ^ +^ Visibility ^ Name ^ Value ^ Line ^ 
-  | ''private'' | ''ENABLED_SETTING'' | '''writing_scheduled_post_enabled';'' | 32 | +| ''private'' | ''ENABLED_SETTING'' | '''writing_scheduled_post_enabled';'' | 32 | 
-  | ''private'' | ''NEXT_RUN_SETTING'' | '''writing_scheduled_next_run';'' | 39 |+| ''private'' | ''NEXT_RUN_SETTING'' | '''writing_scheduled_next_run';'' | 39 |
  
-======= Properties (0) =======+======= Properties (3) =======
  
-//None declared.//+^ Visibility ^ Type ^ Name ^ Default ^ Line ^ 
 +| ''private'' | ''(untyped)'' | ''$postDao'' |  | 46 | 
 +| ''private'' | ''(untyped)'' | ''$configDao'' |  | 53 | 
 +| ''private'' | ''(untyped)'' | ''$sanitize'' |  | 60 |
  
 ======= Methods (5) ======= ======= Methods (5) =======
  
-  ^ Visibility ^ Method ^ Summary ^ Line ^ +^ Visibility ^ Method ^ Summary ^ Line ^ 
-  | public | ''__construct()'' | Constructor. | 69 | +| public | ''__construct()'' | Constructor. | 69 | 
-  | public | ''isEnabled()'' | Check whether scheduled posting is enabled globally. | 84 | +| public | ''isEnabled()'' | Check whether scheduled posting is enabled globally. | 84 | 
-  | public | ''getNextRun()'' | Get the earliest scheduled post_date (next-run shortcut). | 100 | +| public | ''getNextRun()'' | Get the earliest scheduled post_date (next-run shortcut). | 100 | 
-  | public | ''setNextRun()'' | Persist the next-run shortcut. | 115 | +| public | ''setNextRun()'' | Persist the next-run shortcut. | 115 | 
-  | public | ''publishDuePosts()'' | Publish every scheduled post whose post_date has passed. | 138 |+| public | ''publishDuePosts()'' | Publish every scheduled post whose post_date has passed. | 138 |
  
  
Line 54: Line 57:
 Constructor. Constructor.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$postDao'' | [[scriptlog:lib:dao:postdao|''PostDao'']] | //required// | //none// | +|  ''$postDao'' |  [[scriptlog:lib:dao:postdao|''PostDao'']] |  //required// |  //none// | 
-  | ''$configDao'' | [[scriptlog:lib:dao:configurationdao|''ConfigurationDao'']] | //required// | //none// | +|  ''$configDao'' |  [[scriptlog:lib:dao:configurationdao|''ConfigurationDao'']] |  //required// |  //none// | 
-  | ''$sanitize'' | [[scriptlog:lib:core:sanitize|''Sanitize'']] | //required// | //none// |+|  ''$sanitize'' |  [[scriptlog:lib:core:sanitize|''Sanitize'']] |  //required// |  //none// |
  
  
Line 103: Line 106:
 Persist the next-run shortcut. Persist the next-run shortcut.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$when'' | ''?string'' | //required// | Next scheduled datetime, or null to clear it |+|  ''$when'' |  ''?string'' |  //required// |  Next scheduled datetime, or null to clear it |
  
 **Returns:** ''void'' — void **Returns:** ''void'' — void
Line 129: Line 132:
 ======= Imports ======= ======= Imports =======
  
-  ^ Alias ^ Fully-qualified name ^ +^ Alias ^ Fully-qualified name ^ 
-  | ''Sanitize'' | [[scriptlog:lib:core:sanitize|''Scriptlog\Core\Sanitize'']] | +| ''Sanitize'' | [[scriptlog:lib:core:sanitize|''Scriptlog\Core\Sanitize'']] | 
-  | ''ConfigurationDao'' | [[scriptlog:lib:dao:configurationdao|''Scriptlog\Dao\ConfigurationDao'']] | +| ''ConfigurationDao'' | [[scriptlog:lib:dao:configurationdao|''Scriptlog\Dao\ConfigurationDao'']] | 
-  | ''PostDao'' | [[scriptlog:lib:dao:postdao|''Scriptlog\Dao\PostDao'']] |+| ''PostDao'' | [[scriptlog:lib:dao:postdao|''Scriptlog\Dao\PostDao'']] |
  
  
scriptlog/lib/service/scheduledpostservice.1790413760.txt.gz · Last modified: by admin