You are here

class QueueItem in Little helpers 7

Same name and namespace in other branches
  1. 7.2 src/System/QueueItem.php \Drupal\little_helpers\System\QueueItem

Hierarchy

  • class \Drupal\little_helpers\DB\Model
    • class \Drupal\little_helpers\System\QueueItem

Expanded class hierarchy of QueueItem

File

src/System/QueueItem.php, line 7

Namespace

Drupal\little_helpers\System
View source
class QueueItem extends Model {
  protected static $table = 'queue';
  protected static $key = array(
    'item_id',
  );
  protected static $values = array(
    'name',
    'data',
    'expire',
    'created',
  );
  protected static $serial = TRUE;
  protected static $serialize = array(
    'data' => TRUE,
  );
  public static function load($id) {
    if ($item = db_query('SELECT * FROM {queue} WHERE item_id=:id', array(
      ':id' => $id,
    ))
      ->fetch()) {
      return new static($item);
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Model::$new protected property
Model::delete public function
Model::insert protected function
Model::isNew public function
Model::save public function
Model::update protected function
Model::values protected function 1
Model::__construct public function
QueueItem::$key protected static property Overrides Model::$key
QueueItem::$serial protected static property Overrides Model::$serial
QueueItem::$serialize protected static property Overrides Model::$serialize
QueueItem::$table protected static property Overrides Model::$table
QueueItem::$values protected static property Overrides Model::$values
QueueItem::load public static function