Class Model

Model

extends Kohana_Model

Model base class. All models should extend this class.

package
Kohana
category
Models
author
Kohana Team
copyright
(c) Kohana Team
license
https://koseven.ga/LICENSE.md


Information

This class is a transparent base class for Kohana_Model

Constants

  • None

Properties

  • None

Methods

Methods

public static factory(string $name ) (defined in Kohana_Model)

Create a new model instance.

$model = Model::factory($name);

Parameters

  • string $name required - Model name

Return Values

  • Model

Source Code

public static function factory($name)
{
	// Add the model prefix
	$class = 'Model_'.$name;

	return new $class;
}

Do you want to contribute to Koseven?

We need YOUR help!

This project is open source. What does this mean? YOU can help:
  • Found a bug? Report it on Github
  • Need a feature? Add it Here
  • Want to help? Join the Forum
Go to Github