public function automaticCreatedBy($data)
	{
		return (isset($data['created_by']) && $data['created_by'] ? (int)$data['created_by'] : (int)\User::get('id'));
	}
public function automaticCreatedBy($data)
	{
		return (isset($data['created_by']) && $data['created_by'] ? (int)$data['created_by'] : (int)\User::get('id'));
	}
public function automaticCreatedBy ( $ data ) { return ( isset ( $ data [ 'created_by' ] ) && $ data [ 'created_by' ] ? ( int ) $ data [ 'created_by' ] : ( int ) \ User :: get ( 'id' ) ) ; }
Generates automatic created by field value

@param   array  $data  The data being saved
@return  int
@since   2.0.0
Generates automatic created by field value