li3

NewsDocumentationVersionsPresentationsCommunityDevelopment
  • Documentation
  • Framework API (1.2.x)
  • lithium
  • data
  • Collection
  • __construct()

Contents

  • ../

lithium\data\Collection::__construct()

Overrides lithium\core\ObjectDeprecated::__construct()
public method

Constructor.

Parameters

  • array $config

    Available configuration options are:

    • 'data' array
    • 'model' string|null

Returns

void

Related

  • lithium\data\Collection::$_data
  • lithium\data\Collection::$_model

Source

	public function __construct(array $config = []) {
		$defaults = ['data' => [], 'model' => null];
		parent::__construct($config + $defaults);
	}
GitHub / Twitter / Reddit / Stack Overflow
Testimonial Image

– no comment –

Pretty much everything is (c) 2009-2025 and beyond, the Union of RAD.