예제 #1
0
    /**
     * @return string The task results for already complete tasks
     */
    public function get_results()
    {
        $intDlePostsCount = $this->get_process_objects_count();
        $intWpPostsCount = WpPosts::CountAll();
        $strResults = <<<RESULT
\t\t<li><strong>{$this->intPostsCount}</strong> posts from <strong>{$intDlePostsCount}</strong> converted. The wordpress database already has <strong>{$intWpPostsCount}</strong> posts.</li>
RESULT;
        return $strResults;
    }
 /**
  * @return int The number of object in the DLE database to process.
  */
 protected function get_process_objects_count()
 {
     return WpPosts::CountAll();
 }