You are here

public static function DbHandler::selectExpiredNonFlagged in Node expire 7.2

Returns expired node_expire records where expired flag is not set.

1 call to DbHandler::selectExpiredNonFlagged()
CommonHookHandler::hookCron in src/Module/Hook/CommonHookHandler.php
Implements hook_cron().

File

src/Module/Db/DbHandler.php, line 93
DbHandler class.

Class

DbHandler
DbHandler class.

Namespace

Drupal\node_expire\Module\Db

Code

public static function selectExpiredNonFlagged() {
  $result = db_query('SELECT n.nid, n.type FROM {node} n
      JOIN {node_expire} ne ON n.nid = ne.nid
      WHERE ne.expire <= :ne_expire AND ne.expired = 0', array(
    ':ne_expire' => REQUEST_TIME,
  ));
  return $result;
}