public function view::__construct in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 includes/view.inc \view::__construct()
Standard PHP constructor.
File
- includes/
view.inc, line 299 - views_objects Objects that represent a View or part of a view
Class
- view
- An object to contain all of the data to generate a view.
Code
public function __construct() {
parent::init();
// Make sure all of the sub objects are arrays.
foreach ($this
->db_objects() as $object) {
$this->{$object} = array();
}
}