original_string: function Create($data) {
  		if (!$this->allowBlankCreate && !$data)
  			return;
  		$this->LoadSchema();
  
  		if ($this->enforceTypes)
  			foreach ($this->schema as $key => $props)
  				if (isset($data[$key]) || $props['type'] == 'json-import')
  					$data[$key] = $this->UnCastType($props['type'], isset($data[$key]) ? $data[$key] : null, $data);
  
  		$this->ResetQuery(array(
  			'method' => 'create',
  			'table' => $this->table,
  			'data' => $data,
  		));
  
  		$this->Trigger('access', $data);
  		if (!$this->continue)
  			return FALSE;
  
  		$this->Trigger('push', $data);
  		if (!$this->continue)
  			return FALSE;
  
  		$this->Trigger('create', $data);
  		if (! $data = $this->FilterFields($data, 'set')) // Nothing to save
  			return FALSE;
  		if (!$this->continue)
  			return FALSE;
  
  		$this->db->insert($this->table, $data);
  		$id = $this->db->insert_id();
  
  		$this->Trigger('created', $id, $data);
  		return $this->returnRow ? $this->Get($id) : $id;
  	}
code: function Create($data) {
  		if (!$this->allowBlankCreate && !$data)
  			return;
  		$this->LoadSchema();
  
  		if ($this->enforceTypes)
  			foreach ($this->schema as $key => $props)
  				if (isset($data[$key]) || $props['type'] == 'json-import')
  					$data[$key] = $this->UnCastType($props['type'], isset($data[$key]) ? $data[$key] : null, $data);
  
  		$this->ResetQuery(array(
  			'method' => 'create',
  			'table' => $this->table,
  			'data' => $data,
  		));
  
  		$this->Trigger('access', $data);
  		if (!$this->continue)
  			return FALSE;
  
  		$this->Trigger('push', $data);
  		if (!$this->continue)
  			return FALSE;
  
  		$this->Trigger('create', $data);
  		if (! $data = $this->FilterFields($data, 'set')) // Nothing to save
  			return FALSE;
  		if (!$this->continue)
  			return FALSE;
  
  		$this->db->insert($this->table, $data);
  		$id = $this->db->insert_id();
  
  		$this->Trigger('created', $id, $data);
  		return $this->returnRow ? $this->Get($id) : $id;
  	}
code_tokens: function Create ( $ data ) { if ( ! $ this -> allowBlankCreate && ! $ data ) return ; $ this -> LoadSchema ( ) ; if ( $ this -> enforceTypes ) foreach ( $ this -> schema as $ key => $ props ) if ( isset ( $ data [ $ key ] ) || $ props [ 'type' ] == 'json-import' ) $ data [ $ key ] = $ this -> UnCastType ( $ props [ 'type' ] , isset ( $ data [ $ key ] ) ? $ data [ $ key ] : null , $ data ) ; $ this -> ResetQuery ( array ( 'method' => 'create' , 'table' => $ this -> table , 'data' => $ data , ) ) ; $ this -> Trigger ( 'access' , $ data ) ; if ( ! $ this -> continue ) return FALSE ; $ this -> Trigger ( 'push' , $ data ) ; if ( ! $ this -> continue ) return FALSE ; $ this -> Trigger ( 'create' , $ data ) ; if ( ! $ data = $ this -> FilterFields ( $ data , 'set' ) ) // Nothing to save return FALSE ; if ( ! $ this -> continue ) return FALSE ; $ this -> db -> insert ( $ this -> table , $ data ) ; $ id = $ this -> db -> insert_id ( ) ; $ this -> Trigger ( 'created' , $ id , $ data ) ; return $ this -> returnRow ? $ this -> Get ( $ id ) : $ id ; }
docstring: Attempt to create a database record using the provided data
  Calls the 'create' trigger on the data before it is saved
  @param array $data A hash of data to attempt to store
  @return null|array If $returnRow is true this function will return the newly created object, if FALSE the ID of the newly created object
docstring_tokens: Attempt to create a database record using the provided data Calls the create trigger on the data before it is saved