APPPATH/classes/Model/Application/Location/Document.php [ 61 ]
56
57 public function file_size()
58 {
59 $filename = Content::path('application_location_document/' . $this->pk());
60
61 return filesize($filename);
62 }
63
64 public function file_crc()
65 {
66 $filename = Content::path('application_location_document/' . $this->pk());
-
{PHP internal call} » Kohana_Core::error_handler(arguments)
0integer 2
1string(93) "filesize(): stat failed for /var/www/websites/resa/v1/content/application_location_document/1"2string(97) "/data/ssd/websites/resa/v1/src/kohana/apps/client/classes/Model/Application/Location/Document.php"3integer 61
4array(1) ( "filename" => string(65) "/var/www/websites/resa/v1/content/application_location_document/1" )
-
APPPATH/classes/Model/Application/Location/Document.php [ 61 ] » filesize(arguments)
filenamestring(65) "/var/www/websites/resa/v1/content/application_location_document/1"56 57 public function file_size() 58 { 59 $filename = Content::path('application_location_document/' . $this->pk()); 60 61 return filesize($filename); 62 } 63 64 public function file_crc() 65 { 66 $filename = Content::path('application_location_document/' . $this->pk()); -
APPPATH/views/application_location/read.php [ 106 ] » Model_Application_Location_Document->file_size()
101 <tr> 102 <td><?php echo HTML::anchor(Route::get('default')->uri(array('controller'=>'application_location_document','action'=>'download','id'=>$document->pk())), $document->filename_original, array('target'=>'_blank')); ?></td> 103 <td><?php echo HTML::chars($document->uploaded_by); ?></td> 104 <td><?php echo HTML::chars($document->uploaded_date_string()); ?></td> 105 <td><?php echo nl2br(HTML::chars($document->notes)); ?></td> 106 <td><?php echo HTML::chars($document->file_size()); ?></td> 107 <td><?php echo HTML::chars($document->file_crc()); ?></td> 108 </tr> 109 <?php endforeach; ?> 110 </tbody> 111 </table> -
SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)
0string(85) "/data/ssd/websites/resa/v1/src/kohana/apps/client/views/application_location/read.php"56 ob_start(); 57 58 try 59 { 60 // Load the view within the current scope 61 include $kohana_view_filename; 62 } 63 catch (Exception $e) 64 { 65 // Delete the output buffer 66 ob_end_clean(); -
SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)
0string(85) "/data/ssd/websites/resa/v1/src/kohana/apps/client/views/application_location/read.php"1array(10) ( "application_location" => object Model_Application_Location(34)
{ protected _belongs_to => array(3) ( "application" => array(2) ( "foreign_key" => string(14) "application_id" "model" => string(11) "Application" ) "type" => array(2) ( "foreign_key" => string(7) "type_id" "model" => string(25) "Application_Location_Type" ) "calculation_method" => array(2) ( "foreign_key" => string(21) "calculation_method_id" "model" => string(18) "Calculation_Method" ) ) protected _has_many => array(2) ( "activities" => array(4) ( "foreign_key" => string(11) "location_id" "through" => NULL "far_key" => string(11) "activity_id" "model" => string(29) "Application_Location_Activity" ) "documents" => array(4) ( "foreign_key" => string(11) "location_id" "through" => NULL "far_key" => string(11) "document_id" "model" => string(29) "Application_Location_Document" ) ) protected _has_one => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(8) ( "id" => string(1) "1" "application_id" => string(1) "1" "type_id" => string(1) "1" "calculation_method_id" => string(1) "7" "address_street_1" => string(16) "9 Hannabus Place" "address_street_2" => string(0) "" "address_locality" => string(13) "McGraths Hill" "address_postcode" => string(4) "2756" ) protected _changed => array(0) protected _original_values => array(8) ( "id" => string(1) "1" "application_id" => string(1) "1" "type_id" => string(1) "1" "calculation_method_id" => string(1) "7" "address_street_1" => string(16) "9 Hannabus Place" "address_street_2" => string(0) "" "address_locality" => string(13) "McGraths Hill" "address_postcode" => string(4) "2756" ) protected _related => array(3) ( "application" => object Model_Application(34)"uri_index" => string(26) "application_location/index" "uri_update" => string(29) "application_location/update/1" "uri_read_application" => string(18) "application/read/1" "uri_upload_document" => string(38) "application_location/upload_document/1" "documents_proof_of_installation" => object Database_MySQL_Result(7){ protected _has_many => array(2) ( "entities" => array(4) ( "foreign_key" => string(14) "application_id" "through" => NULL "far_key" => string(9) "entity_id" "model" => string(18) "Application_Entity" ) "locations" => array(4) ( "foreign_key" => string(14) "application_id" "through" => NULL "far_key" => string(11) "location_id" "model" => string(20) "Application_Location" ) ) protected _belongs_to => array(4) ( "status" => array(2) ( "foreign_key" => string(9) "status_id" "model" => string(18) "Application_Status" ) "type" => array(2) ( "foreign_key" => string(7) "type_id" "model" => string(16) "Application_Type" ) "responsible_contact" => array(2) ( "foreign_key" => string(22) "responsible_contact_id" "model" => string(7) "Contact" ) "technical_contact" => array(2) ( "foreign_key" => string(20) "technical_contact_id" "model" => string(7) "Contact" ) ) protected _has_one => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(6) ( "id" => string(1) "1" "status_id" => string(1) "1" "type_id" => string(1) "1" "responsible_contact_id" => string(1) "1" "technical_contact_id" => string(1) "2" "name" => string(35) "Cornick Pty Ltd - Internal Lighting" ) protected _changed => array(0) protected _original_values => array(6) ( "id" => string(1) "1" "status_id" => string(1) "1" "type_id" => string(1) "1" "responsible_contact_id" => string(1) "1" "technical_contact_id" => string(1) "2" "name" => string(35) "Cornick Pty Ltd - Internal Lighting" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(11) "application" protected _object_plural => string(12) "applications" protected _table_name => string(12) "applications" protected _table_columns => array(6) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "status_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(9) "status_id" "column_default" => string(1) "1" "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "type_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(7) "type_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "responsible_contact_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(22) "responsible_contact_id" "column_default" => string(1) "0" "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "technical_contact_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(20) "technical_contact_id" "column_default" => string(1) "0" "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "name" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 6 "character_maximum_length" => string(2) "50" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "UNI" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "1" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)"type" => object Model_Application_Location_Type(34){ protected _connection_id => string(40) "ae20799f23fb9768ec27d64804b45ba75cd600ed" protected _identifier => string(1) "`" public last_query => string(176) "SELECT `calculation_method`.`id` AS `id`, `calculation_method`.`name` AS `name` FROM `calculation_methods` AS `calculation_metho …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(4) "resa" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(11) "application" }{ protected _has_many => array(1) ( "locations" => array(4) ( "foreign_key" => string(7) "type_id" "through" => NULL "far_key" => string(11) "location_id" "model" => string(20) "Application_Location" ) ) protected _has_one => array(0) protected _belongs_to => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(2) ( "id" => string(1) "1" "name" => string(10) "Commercial" ) protected _changed => array(0) protected _original_values => array(2) ( "id" => string(1) "1" "name" => string(10) "Commercial" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(25) "application_location_type" protected _object_plural => string(26) "application_location_types" protected _table_name => string(26) "application_location_types" protected _table_columns => array(2) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "name" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "UNI" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "1" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)"calculation_method" => object Model_Calculation_Method(34){ protected _connection_id => string(40) "ae20799f23fb9768ec27d64804b45ba75cd600ed" protected _identifier => string(1) "`" public last_query => string(176) "SELECT `calculation_method`.`id` AS `id`, `calculation_method`.`name` AS `name` FROM `calculation_methods` AS `calculation_metho …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(4) "resa" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(25) "application_location_type" }{ protected _has_many => array(1) ( "locations" => array(4) ( "foreign_key" => string(21) "calculation_method_id" "through" => NULL "far_key" => string(11) "location_id" "model" => string(20) "Application_Location" ) ) protected _has_one => array(0) protected _belongs_to => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(2) ( "id" => string(1) "7" "name" => string(73) "Deemed Energy Savings Method - Commercial Lighting Energy Savings Formula" ) protected _changed => array(0) protected _original_values => array(2) ( "id" => string(1) "7" "name" => string(73) "Deemed Energy Savings Method - Commercial Lighting Energy Savings Formula" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(18) "calculation_method" protected _object_plural => string(19) "calculation_methods" protected _table_name => string(19) "calculation_methods" protected _table_columns => array(2) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "name" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "UNI" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "7" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(20) "application_location" protected _object_plural => string(21) "application_locations" protected _table_name => string(21) "application_locations" protected _table_columns => array(8) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "application_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(14) "application_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "type_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(7) "type_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "calculation_method_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(21) "calculation_method_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "address_street_1" => array(12) ( "type" => string(6) "string" "column_name" => string(16) "address_street_1" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "address_street_2" => array(12) ( "type" => string(6) "string" "column_name" => string(16) "address_street_2" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 6 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "address_locality" => array(12) ( "type" => string(6) "string" "column_name" => string(16) "address_locality" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 7 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "address_postcode" => array(12) ( "type" => string(6) "string" "column_name" => string(16) "address_postcode" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 8 "character_maximum_length" => string(2) "12" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "1" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6){ protected _connection_id => string(40) "ae20799f23fb9768ec27d64804b45ba75cd600ed" protected _identifier => string(1) "`" public last_query => string(176) "SELECT `calculation_method`.`id` AS `id`, `calculation_method`.`name` AS `name` FROM `calculation_methods` AS `calculation_metho …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(4) "resa" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(18) "calculation_method" }{ protected _connection_id => string(40) "ae20799f23fb9768ec27d64804b45ba75cd600ed" protected _identifier => string(1) "`" public last_query => string(176) "SELECT `calculation_method`.`id` AS `id`, `calculation_method`.`name` AS `name` FROM `calculation_methods` AS `calculation_metho …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(4) "resa" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(20) "application_location" }{ protected _internal_row => integer 1 protected _query => string(680) "SELECT `application_location_document`.`id` AS `id`, `application_location_document`.`document_type_id` AS `document_type_id`, ` …" protected _result => resource(mysql result) protected _total_rows => integer 1 protected _current_row => integer 0 protected _as_object => string(35) "Model_Application_Location_Document" protected _object_params => NULL }"documents_proof_of_specifications" => object Database_MySQL_Result(7){ protected _internal_row => integer 0 protected _query => string(680) "SELECT `application_location_document`.`id` AS `id`, `application_location_document`.`document_type_id` AS `document_type_id`, ` …" protected _result => resource(mysql result) protected _total_rows => integer 0 protected _current_row => integer 0 protected _as_object => string(35) "Model_Application_Location_Document" protected _object_params => NULL }"documents_esc_calculation" => object Database_MySQL_Result(7){ protected _internal_row => integer 0 protected _query => string(680) "SELECT `application_location_document`.`id` AS `id`, `application_location_document`.`document_type_id` AS `document_type_id`, ` …" protected _result => resource(mysql result) protected _total_rows => integer 0 protected _current_row => integer 0 protected _as_object => string(35) "Model_Application_Location_Document" protected _object_params => NULL }"documents_additional_documentation" => object Database_MySQL_Result(7){ protected _internal_row => integer 0 protected _query => string(680) "SELECT `application_location_document`.`id` AS `id`, `application_location_document`.`document_type_id` AS `document_type_id`, ` …" protected _result => resource(mysql result) protected _total_rows => integer 1 protected _current_row => integer 0 protected _as_object => string(35) "Model_Application_Location_Document" protected _object_params => NULL }"documents_nomination_forms" => object Database_MySQL_Result(7){ protected _internal_row => integer 0 protected _query => string(680) "SELECT `application_location_document`.`id` AS `id`, `application_location_document`.`document_type_id` AS `document_type_id`, ` …" protected _result => resource(mysql result) protected _total_rows => integer 0 protected _current_row => integer 0 protected _as_object => string(35) "Model_Application_Location_Document" protected _object_params => NULL })343 { 344 throw new View_Exception('You must set the file to use within your view before rendering'); 345 } 346 347 // Combine local and global data and capture the output 348 return View::capture($this->_file, $this->_data); 349 } 350 351 } // End View -
SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render()
223 */ 224 public function __toString() 225 { 226 try 227 { 228 return $this->render(); 229 } 230 catch (Exception $e) 231 { 232 /** 233 * Display the exception message. -
APPPATH/views/template.php [ 54 ] » Kohana_View->__toString()
49 50 <div class="container-content"> 51 <div class="container"> 52 <?php echo View::factory('template/notifications'); ?> 53 54 <?php echo $content; ?> 55 </div> 56 </div> 57 </body> 58 </html> -
SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)
0string(68) "/data/ssd/websites/resa/v1/src/kohana/apps/client/views/template.php"56 ob_start(); 57 58 try 59 { 60 // Load the view within the current scope 61 include $kohana_view_filename; 62 } 63 catch (Exception $e) 64 { 65 // Delete the output buffer 66 ob_end_clean(); -
SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)
0string(68) "/data/ssd/websites/resa/v1/src/kohana/apps/client/views/template.php"1array(6) ( "title" => string(23) "Cornick RESA Management" "content" => object View(2)
{ protected _file => string(85) "/data/ssd/websites/resa/v1/src/kohana/apps/client/views/application_location/read.php" protected _data => array(10) ( "application_location" => object Model_Application_Location(34)"logged_in" => bool FALSE "uri_logout" => string(6) "logout" "uri_application_index" => string(11) "application" "uri_static_index" => string(6) "static" ){ protected _belongs_to => array(3) ( "application" => array(2) ( "foreign_key" => string(14) "application_id" "model" => string(11) "Application" ) "type" => array(2) ( "foreign_key" => string(7) "type_id" "model" => string(25) "Application_Location_Type" ) "calculation_method" => array(2) ( "foreign_key" => string(21) "calculation_method_id" "model" => string(18) "Calculation_Method" ) ) protected _has_many => array(2) ( "activities" => array(4) ( "foreign_key" => string(11) "location_id" "through" => NULL "far_key" => string(11) "activity_id" "model" => string(29) "Application_Location_Activity" ) "documents" => array(4) ( "foreign_key" => string(11) "location_id" "through" => NULL "far_key" => string(11) "document_id" "model" => string(29) "Application_Location_Document" ) ) protected _has_one => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(8) ( "id" => string(1) "1" "application_id" => string(1) "1" "type_id" => string(1) "1" "calculation_method_id" => string(1) "7" "address_street_1" => string(16) "9 Hannabus Place" "address_street_2" => string(0) "" "address_locality" => string(13) "McGraths Hill" "address_postcode" => string(4) "2756" ) protected _changed => array(0) protected _original_values => array(8) ( "id" => string(1) "1" "application_id" => string(1) "1" "type_id" => string(1) "1" "calculation_method_id" => string(1) "7" "address_street_1" => string(16) "9 Hannabus Place" "address_street_2" => string(0) "" "address_locality" => string(13) "McGraths Hill" "address_postcode" => string(4) "2756" ) protected _related => array(3) ( "application" => object Model_Application(34)"uri_index" => string(26) "application_location/index" "uri_update" => string(29) "application_location/update/1" "uri_read_application" => string(18) "application/read/1" "uri_upload_document" => string(38) "application_location/upload_document/1" "documents_proof_of_installation" => object Database_MySQL_Result(7){ protected _has_many => array(2) ( "entities" => array(4) ( "foreign_key" => string(14) "application_id" "through" => NULL "far_key" => string(9) "entity_id" "model" => string(18) "Application_Entity" ) "locations" => array(4) ( "foreign_key" => string(14) "application_id" "through" => NULL "far_key" => string(11) "location_id" "model" => string(20) "Application_Location" ) ) protected _belongs_to => array(4) ( "status" => array(2) ( "foreign_key" => string(9) "status_id" "model" => string(18) "Application_Status" ) "type" => array(2) ( "foreign_key" => string(7) "type_id" "model" => string(16) "Application_Type" ) "responsible_contact" => array(2) ( "foreign_key" => string(22) "responsible_contact_id" "model" => string(7) "Contact" ) "technical_contact" => array(2) ( "foreign_key" => string(20) "technical_contact_id" "model" => string(7) "Contact" ) ) protected _has_one => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(6) ( "id" => string(1) "1" "status_id" => string(1) "1" "type_id" => string(1) "1" "responsible_contact_id" => string(1) "1" "technical_contact_id" => string(1) "2" "name" => string(35) "Cornick Pty Ltd - Internal Lighting" ) protected _changed => array(0) protected _original_values => array(6) ( "id" => string(1) "1" "status_id" => string(1) "1" "type_id" => string(1) "1" "responsible_contact_id" => string(1) "1" "technical_contact_id" => string(1) "2" "name" => string(35) "Cornick Pty Ltd - Internal Lighting" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(11) "application" protected _object_plural => string(12) "applications" protected _table_name => string(12) "applications" protected _table_columns => array(6) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "status_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(9) "status_id" "column_default" => string(1) "1" "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "type_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(7) "type_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "responsible_contact_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(22) "responsible_contact_id" "column_default" => string(1) "0" "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "technical_contact_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(20) "technical_contact_id" "column_default" => string(1) "0" "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "name" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 6 "character_maximum_length" => string(2) "50" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "UNI" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "1" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)"type" => object Model_Application_Location_Type(34){ protected _connection_id => string(40) "ae20799f23fb9768ec27d64804b45ba75cd600ed" protected _identifier => string(1) "`" public last_query => string(176) "SELECT `calculation_method`.`id` AS `id`, `calculation_method`.`name` AS `name` FROM `calculation_methods` AS `calculation_metho …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(4) "resa" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(11) "application" }{ protected _has_many => array(1) ( "locations" => array(4) ( "foreign_key" => string(7) "type_id" "through" => NULL "far_key" => string(11) "location_id" "model" => string(20) "Application_Location" ) ) protected _has_one => array(0) protected _belongs_to => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(2) ( "id" => string(1) "1" "name" => string(10) "Commercial" ) protected _changed => array(0) protected _original_values => array(2) ( "id" => string(1) "1" "name" => string(10) "Commercial" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(25) "application_location_type" protected _object_plural => string(26) "application_location_types" protected _table_name => string(26) "application_location_types" protected _table_columns => array(2) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "name" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "UNI" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "1" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)"calculation_method" => object Model_Calculation_Method(34){ protected _connection_id => string(40) "ae20799f23fb9768ec27d64804b45ba75cd600ed" protected _identifier => string(1) "`" public last_query => string(176) "SELECT `calculation_method`.`id` AS `id`, `calculation_method`.`name` AS `name` FROM `calculation_methods` AS `calculation_metho …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(4) "resa" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(25) "application_location_type" }{ protected _has_many => array(1) ( "locations" => array(4) ( "foreign_key" => string(21) "calculation_method_id" "through" => NULL "far_key" => string(11) "location_id" "model" => string(20) "Application_Location" ) ) protected _has_one => array(0) protected _belongs_to => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(2) ( "id" => string(1) "7" "name" => string(73) "Deemed Energy Savings Method - Commercial Lighting Energy Savings Formula" ) protected _changed => array(0) protected _original_values => array(2) ( "id" => string(1) "7" "name" => string(73) "Deemed Energy Savings Method - Commercial Lighting Energy Savings Formula" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(18) "calculation_method" protected _object_plural => string(19) "calculation_methods" protected _table_name => string(19) "calculation_methods" protected _table_columns => array(2) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "name" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "UNI" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "7" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(20) "application_location" protected _object_plural => string(21) "application_locations" protected _table_name => string(21) "application_locations" protected _table_columns => array(8) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "application_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(14) "application_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "type_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(7) "type_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "calculation_method_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(21) "calculation_method_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "address_street_1" => array(12) ( "type" => string(6) "string" "column_name" => string(16) "address_street_1" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "address_street_2" => array(12) ( "type" => string(6) "string" "column_name" => string(16) "address_street_2" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 6 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "address_locality" => array(12) ( "type" => string(6) "string" "column_name" => string(16) "address_locality" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 7 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "address_postcode" => array(12) ( "type" => string(6) "string" "column_name" => string(16) "address_postcode" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 8 "character_maximum_length" => string(2) "12" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "1" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6){ protected _connection_id => string(40) "ae20799f23fb9768ec27d64804b45ba75cd600ed" protected _identifier => string(1) "`" public last_query => string(176) "SELECT `calculation_method`.`id` AS `id`, `calculation_method`.`name` AS `name` FROM `calculation_methods` AS `calculation_metho …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(4) "resa" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(18) "calculation_method" }{ protected _connection_id => string(40) "ae20799f23fb9768ec27d64804b45ba75cd600ed" protected _identifier => string(1) "`" public last_query => string(176) "SELECT `calculation_method`.`id` AS `id`, `calculation_method`.`name` AS `name` FROM `calculation_methods` AS `calculation_metho …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(4) "resa" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(20) "application_location" }{ protected _internal_row => integer 1 protected _query => string(680) "SELECT `application_location_document`.`id` AS `id`, `application_location_document`.`document_type_id` AS `document_type_id`, ` …" protected _result => resource(mysql result) protected _total_rows => integer 1 protected _current_row => integer 0 protected _as_object => string(35) "Model_Application_Location_Document" protected _object_params => NULL }"documents_proof_of_specifications" => object Database_MySQL_Result(7){ protected _internal_row => integer 0 protected _query => string(680) "SELECT `application_location_document`.`id` AS `id`, `application_location_document`.`document_type_id` AS `document_type_id`, ` …" protected _result => resource(mysql result) protected _total_rows => integer 0 protected _current_row => integer 0 protected _as_object => string(35) "Model_Application_Location_Document" protected _object_params => NULL }"documents_esc_calculation" => object Database_MySQL_Result(7){ protected _internal_row => integer 0 protected _query => string(680) "SELECT `application_location_document`.`id` AS `id`, `application_location_document`.`document_type_id` AS `document_type_id`, ` …" protected _result => resource(mysql result) protected _total_rows => integer 0 protected _current_row => integer 0 protected _as_object => string(35) "Model_Application_Location_Document" protected _object_params => NULL }"documents_additional_documentation" => object Database_MySQL_Result(7){ protected _internal_row => integer 0 protected _query => string(680) "SELECT `application_location_document`.`id` AS `id`, `application_location_document`.`document_type_id` AS `document_type_id`, ` …" protected _result => resource(mysql result) protected _total_rows => integer 1 protected _current_row => integer 0 protected _as_object => string(35) "Model_Application_Location_Document" protected _object_params => NULL }"documents_nomination_forms" => object Database_MySQL_Result(7){ protected _internal_row => integer 0 protected _query => string(680) "SELECT `application_location_document`.`id` AS `id`, `application_location_document`.`document_type_id` AS `document_type_id`, ` …" protected _result => resource(mysql result) protected _total_rows => integer 0 protected _current_row => integer 0 protected _as_object => string(35) "Model_Application_Location_Document" protected _object_params => NULL }) }343 { 344 throw new View_Exception('You must set the file to use within your view before rendering'); 345 } 346 347 // Combine local and global data and capture the output 348 return View::capture($this->_file, $this->_data); 349 } 350 351 } // End View -
APPPATH/classes/Controller/Template.php [ 59 ] » Kohana_View->render()
54 /** 55 * Assigns the template [View] as the request response. 56 */ 57 public function after() 58 { 59 $this->response->body($this->template->render()); 60 61 parent::after(); 62 } 63 } -
SYSPATH/classes/Kohana/Controller.php [ 87 ] » Controller_Template->after()
82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response 90 return $this->response; 91 } 92 -
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0object Controller_Application_Location(12)
{ protected model_name => string(20) "Application_Location" protected object_name_singular => string(20) "application_location" protected object_name_plural => string(21) "application_locations" protected collection => NULL protected object => object Model_Application_Location(34){ protected _belongs_to => array(3) ( "application" => array(2) ( "foreign_key" => string(14) "application_id" "model" => string(11) "Application" ) "type" => array(2) ( "foreign_key" => string(7) "type_id" "model" => string(25) "Application_Location_Type" ) "calculation_method" => array(2) ( "foreign_key" => string(21) "calculation_method_id" "model" => string(18) "Calculation_Method" ) ) protected _has_many => array(2) ( "activities" => array(4) ( "foreign_key" => string(11) "location_id" "through" => NULL "far_key" => string(11) "activity_id" "model" => string(29) "Application_Location_Activity" ) "documents" => array(4) ( "foreign_key" => string(11) "location_id" "through" => NULL "far_key" => string(11) "document_id" "model" => string(29) "Application_Location_Document" ) ) protected _has_one => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(8) ( "id" => string(1) "1" "application_id" => string(1) "1" "type_id" => string(1) "1" "calculation_method_id" => string(1) "7" "address_street_1" => string(16) "9 Hannabus Place" "address_street_2" => string(0) "" "address_locality" => string(13) "McGraths Hill" "address_postcode" => string(4) "2756" ) protected _changed => array(0) protected _original_values => array(8) ( "id" => string(1) "1" "application_id" => string(1) "1" "type_id" => string(1) "1" "calculation_method_id" => string(1) "7" "address_street_1" => string(16) "9 Hannabus Place" "address_street_2" => string(0) "" "address_locality" => string(13) "McGraths Hill" "address_postcode" => string(4) "2756" ) protected _related => array(3) ( "application" => object Model_Application(34)public logged_in => bool FALSE public template => object View(2){ protected _has_many => array(2) ( "entities" => array(4) ( "foreign_key" => string(14) "application_id" "through" => NULL "far_key" => string(9) "entity_id" "model" => string(18) "Application_Entity" ) "locations" => array(4) ( "foreign_key" => string(14) "application_id" "through" => NULL "far_key" => string(11) "location_id" "model" => string(20) "Application_Location" ) ) protected _belongs_to => array(4) ( "status" => array(2) ( "foreign_key" => string(9) "status_id" "model" => string(18) "Application_Status" ) "type" => array(2) ( "foreign_key" => string(7) "type_id" "model" => string(16) "Application_Type" ) "responsible_contact" => array(2) ( "foreign_key" => string(22) "responsible_contact_id" "model" => string(7) "Contact" ) "technical_contact" => array(2) ( "foreign_key" => string(20) "technical_contact_id" "model" => string(7) "Contact" ) ) protected _has_one => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(6) ( "id" => string(1) "1" "status_id" => string(1) "1" "type_id" => string(1) "1" "responsible_contact_id" => string(1) "1" "technical_contact_id" => string(1) "2" "name" => string(35) "Cornick Pty Ltd - Internal Lighting" ) protected _changed => array(0) protected _original_values => array(6) ( "id" => string(1) "1" "status_id" => string(1) "1" "type_id" => string(1) "1" "responsible_contact_id" => string(1) "1" "technical_contact_id" => string(1) "2" "name" => string(35) "Cornick Pty Ltd - Internal Lighting" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(11) "application" protected _object_plural => string(12) "applications" protected _table_name => string(12) "applications" protected _table_columns => array(6) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "status_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(9) "status_id" "column_default" => string(1) "1" "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "type_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(7) "type_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "responsible_contact_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(22) "responsible_contact_id" "column_default" => string(1) "0" "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "technical_contact_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(20) "technical_contact_id" "column_default" => string(1) "0" "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "name" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 6 "character_maximum_length" => string(2) "50" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "UNI" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "1" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)"type" => object Model_Application_Location_Type(34){ protected _connection_id => string(40) "ae20799f23fb9768ec27d64804b45ba75cd600ed" protected _identifier => string(1) "`" public last_query => string(176) "SELECT `calculation_method`.`id` AS `id`, `calculation_method`.`name` AS `name` FROM `calculation_methods` AS `calculation_metho …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(4) "resa" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(11) "application" }{ protected _has_many => array(1) ( "locations" => array(4) ( "foreign_key" => string(7) "type_id" "through" => NULL "far_key" => string(11) "location_id" "model" => string(20) "Application_Location" ) ) protected _has_one => array(0) protected _belongs_to => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(2) ( "id" => string(1) "1" "name" => string(10) "Commercial" ) protected _changed => array(0) protected _original_values => array(2) ( "id" => string(1) "1" "name" => string(10) "Commercial" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(25) "application_location_type" protected _object_plural => string(26) "application_location_types" protected _table_name => string(26) "application_location_types" protected _table_columns => array(2) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "name" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "UNI" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "1" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)"calculation_method" => object Model_Calculation_Method(34){ protected _connection_id => string(40) "ae20799f23fb9768ec27d64804b45ba75cd600ed" protected _identifier => string(1) "`" public last_query => string(176) "SELECT `calculation_method`.`id` AS `id`, `calculation_method`.`name` AS `name` FROM `calculation_methods` AS `calculation_metho …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(4) "resa" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(25) "application_location_type" }{ protected _has_many => array(1) ( "locations" => array(4) ( "foreign_key" => string(21) "calculation_method_id" "through" => NULL "far_key" => string(11) "location_id" "model" => string(20) "Application_Location" ) ) protected _has_one => array(0) protected _belongs_to => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(2) ( "id" => string(1) "7" "name" => string(73) "Deemed Energy Savings Method - Commercial Lighting Energy Savings Formula" ) protected _changed => array(0) protected _original_values => array(2) ( "id" => string(1) "7" "name" => string(73) "Deemed Energy Savings Method - Commercial Lighting Energy Savings Formula" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(18) "calculation_method" protected _object_plural => string(19) "calculation_methods" protected _table_name => string(19) "calculation_methods" protected _table_columns => array(2) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "name" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "UNI" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "7" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(20) "application_location" protected _object_plural => string(21) "application_locations" protected _table_name => string(21) "application_locations" protected _table_columns => array(8) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "application_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(14) "application_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "type_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(7) "type_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "calculation_method_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(21) "calculation_method_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "address_street_1" => array(12) ( "type" => string(6) "string" "column_name" => string(16) "address_street_1" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "address_street_2" => array(12) ( "type" => string(6) "string" "column_name" => string(16) "address_street_2" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 6 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "address_locality" => array(12) ( "type" => string(6) "string" "column_name" => string(16) "address_locality" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 7 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "address_postcode" => array(12) ( "type" => string(6) "string" "column_name" => string(16) "address_postcode" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 8 "character_maximum_length" => string(2) "12" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "1" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6){ protected _connection_id => string(40) "ae20799f23fb9768ec27d64804b45ba75cd600ed" protected _identifier => string(1) "`" public last_query => string(176) "SELECT `calculation_method`.`id` AS `id`, `calculation_method`.`name` AS `name` FROM `calculation_methods` AS `calculation_metho …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(4) "resa" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(18) "calculation_method" }{ protected _connection_id => string(40) "ae20799f23fb9768ec27d64804b45ba75cd600ed" protected _identifier => string(1) "`" public last_query => string(176) "SELECT `calculation_method`.`id` AS `id`, `calculation_method`.`name` AS `name` FROM `calculation_methods` AS `calculation_metho …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(4) "resa" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(20) "application_location" }{ protected _file => string(68) "/data/ssd/websites/resa/v1/src/kohana/apps/client/views/template.php" protected _data => array(6) ( "title" => string(23) "Cornick RESA Management" "content" => object View(2)public content => object View(2){ protected _file => string(85) "/data/ssd/websites/resa/v1/src/kohana/apps/client/views/application_location/read.php" protected _data => array(10) ( "application_location" => object Model_Application_Location(34)"logged_in" => bool FALSE "uri_logout" => string(6) "logout" "uri_application_index" => string(11) "application" "uri_static_index" => string(6) "static" ) }{ protected _belongs_to => array(3) ( "application" => array(2) ( "foreign_key" => string(14) "application_id" "model" => string(11) "Application" ) "type" => array(2) ( "foreign_key" => string(7) "type_id" "model" => string(25) "Application_Location_Type" ) "calculation_method" => array(2) ( "foreign_key" => string(21) "calculation_method_id" "model" => string(18) "Calculation_Method" ) ) protected _has_many => array(2) ( "activities" => array(4) ( "foreign_key" => string(11) "location_id" "through" => NULL "far_key" => string(11) "activity_id" "model" => string(29) "Application_Location_Activity" ) "documents" => array(4) ( "foreign_key" => string(11) "location_id" "through" => NULL "far_key" => string(11) "document_id" "model" => string(29) "Application_Location_Document" ) ) protected _has_one => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(8) ( "id" => string(1) "1" "application_id" => string(1) "1" "type_id" => string(1) "1" "calculation_method_id" => string(1) "7" "address_street_1" => string(16) "9 Hannabus Place" "address_street_2" => string(0) "" "address_locality" => string(13) "McGraths Hill" "address_postcode" => string(4) "2756" ) protected _changed => array(0) protected _original_values => array(8) ( "id" => string(1) "1" "application_id" => string(1) "1" "type_id" => string(1) "1" "calculation_method_id" => string(1) "7" "address_street_1" => string(16) "9 Hannabus Place" "address_street_2" => string(0) "" "address_locality" => string(13) "McGraths Hill" "address_postcode" => string(4) "2756" ) protected _related => array(3) ( "application" => object Model_Application(34)"uri_index" => string(26) "application_location/index" "uri_update" => string(29) "application_location/update/1" "uri_read_application" => string(18) "application/read/1" "uri_upload_document" => string(38) "application_location/upload_document/1" "documents_proof_of_installation" => object Database_MySQL_Result(7){ protected _has_many => array(2) ( "entities" => array(4) ( "foreign_key" => string(14) "application_id" "through" => NULL "far_key" => string(9) "entity_id" "model" => string(18) "Application_Entity" ) "locations" => array(4) ( "foreign_key" => string(14) "application_id" "through" => NULL "far_key" => string(11) "location_id" "model" => string(20) "Application_Location" ) ) protected _belongs_to => array(4) ( "status" => array(2) ( "foreign_key" => string(9) "status_id" "model" => string(18) "Application_Status" ) "type" => array(2) ( "foreign_key" => string(7) "type_id" "model" => string(16) "Application_Type" ) "responsible_contact" => array(2) ( "foreign_key" => string(22) "responsible_contact_id" "model" => string(7) "Contact" ) "technical_contact" => array(2) ( "foreign_key" => string(20) "technical_contact_id" "model" => string(7) "Contact" ) ) protected _has_one => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(6) ( "id" => string(1) "1" "status_id" => string(1) "1" "type_id" => string(1) "1" "responsible_contact_id" => string(1) "1" "technical_contact_id" => string(1) "2" "name" => string(35) "Cornick Pty Ltd - Internal Lighting" ) protected _changed => array(0) protected _original_values => array(6) ( "id" => string(1) "1" "status_id" => string(1) "1" "type_id" => string(1) "1" "responsible_contact_id" => string(1) "1" "technical_contact_id" => string(1) "2" "name" => string(35) "Cornick Pty Ltd - Internal Lighting" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(11) "application" protected _object_plural => string(12) "applications" protected _table_name => string(12) "applications" protected _table_columns => array(6) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "status_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(9) "status_id" "column_default" => string(1) "1" "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "type_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(7) "type_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "responsible_contact_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(22) "responsible_contact_id" "column_default" => string(1) "0" "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "technical_contact_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(20) "technical_contact_id" "column_default" => string(1) "0" "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "name" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 6 "character_maximum_length" => string(2) "50" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "UNI" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "1" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)"type" => object Model_Application_Location_Type(34){ protected _connection_id => string(40) "ae20799f23fb9768ec27d64804b45ba75cd600ed" protected _identifier => string(1) "`" public last_query => string(176) "SELECT `calculation_method`.`id` AS `id`, `calculation_method`.`name` AS `name` FROM `calculation_methods` AS `calculation_metho …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( ... ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(11) "application" }{ protected _has_many => array(1) ( "locations" => array(4) ( "foreign_key" => string(7) "type_id" "through" => NULL "far_key" => string(11) "location_id" "model" => string(20) "Application_Location" ) ) protected _has_one => array(0) protected _belongs_to => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(2) ( "id" => string(1) "1" "name" => string(10) "Commercial" ) protected _changed => array(0) protected _original_values => array(2) ( "id" => string(1) "1" "name" => string(10) "Commercial" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(25) "application_location_type" protected _object_plural => string(26) "application_location_types" protected _table_name => string(26) "application_location_types" protected _table_columns => array(2) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "name" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "UNI" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "1" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)"calculation_method" => object Model_Calculation_Method(34){ protected _connection_id => string(40) "ae20799f23fb9768ec27d64804b45ba75cd600ed" protected _identifier => string(1) "`" public last_query => string(176) "SELECT `calculation_method`.`id` AS `id`, `calculation_method`.`name` AS `name` FROM `calculation_methods` AS `calculation_metho …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( ... ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(25) "application_location_type" }{ protected _has_many => array(1) ( "locations" => array(4) ( "foreign_key" => string(21) "calculation_method_id" "through" => NULL "far_key" => string(11) "location_id" "model" => string(20) "Application_Location" ) ) protected _has_one => array(0) protected _belongs_to => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(2) ( "id" => string(1) "7" "name" => string(73) "Deemed Energy Savings Method - Commercial Lighting Energy Savings Formula" ) protected _changed => array(0) protected _original_values => array(2) ( "id" => string(1) "7" "name" => string(73) "Deemed Energy Savings Method - Commercial Lighting Energy Savings Formula" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(18) "calculation_method" protected _object_plural => string(19) "calculation_methods" protected _table_name => string(19) "calculation_methods" protected _table_columns => array(2) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "name" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "UNI" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "7" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(20) "application_location" protected _object_plural => string(21) "application_locations" protected _table_name => string(21) "application_locations" protected _table_columns => array(8) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "application_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(14) "application_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "type_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(7) "type_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "calculation_method_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(21) "calculation_method_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "address_street_1" => array(12) ( "type" => string(6) "string" "column_name" => string(16) "address_street_1" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "address_street_2" => array(12) ( "type" => string(6) "string" "column_name" => string(16) "address_street_2" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 6 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "address_locality" => array(12) ( "type" => string(6) "string" "column_name" => string(16) "address_locality" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 7 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "address_postcode" => array(12) ( "type" => string(6) "string" "column_name" => string(16) "address_postcode" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 8 "character_maximum_length" => string(2) "12" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "1" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6){ protected _connection_id => string(40) "ae20799f23fb9768ec27d64804b45ba75cd600ed" protected _identifier => string(1) "`" public last_query => string(176) "SELECT `calculation_method`.`id` AS `id`, `calculation_method`.`name` AS `name` FROM `calculation_methods` AS `calculation_metho …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( ... ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(18) "calculation_method" }{ protected _connection_id => string(40) "ae20799f23fb9768ec27d64804b45ba75cd600ed" protected _identifier => string(1) "`" public last_query => string(176) "SELECT `calculation_method`.`id` AS `id`, `calculation_method`.`name` AS `name` FROM `calculation_methods` AS `calculation_metho …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(4) "resa" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(20) "application_location" }{ protected _internal_row => integer 1 protected _query => string(680) "SELECT `application_location_document`.`id` AS `id`, `application_location_document`.`document_type_id` AS `document_type_id`, ` …" protected _result => resource(mysql result) protected _total_rows => integer 1 protected _current_row => integer 0 protected _as_object => string(35) "Model_Application_Location_Document" protected _object_params => NULL }"documents_proof_of_specifications" => object Database_MySQL_Result(7){ protected _internal_row => integer 0 protected _query => string(680) "SELECT `application_location_document`.`id` AS `id`, `application_location_document`.`document_type_id` AS `document_type_id`, ` …" protected _result => resource(mysql result) protected _total_rows => integer 0 protected _current_row => integer 0 protected _as_object => string(35) "Model_Application_Location_Document" protected _object_params => NULL }"documents_esc_calculation" => object Database_MySQL_Result(7){ protected _internal_row => integer 0 protected _query => string(680) "SELECT `application_location_document`.`id` AS `id`, `application_location_document`.`document_type_id` AS `document_type_id`, ` …" protected _result => resource(mysql result) protected _total_rows => integer 0 protected _current_row => integer 0 protected _as_object => string(35) "Model_Application_Location_Document" protected _object_params => NULL }"documents_additional_documentation" => object Database_MySQL_Result(7){ protected _internal_row => integer 0 protected _query => string(680) "SELECT `application_location_document`.`id` AS `id`, `application_location_document`.`document_type_id` AS `document_type_id`, ` …" protected _result => resource(mysql result) protected _total_rows => integer 1 protected _current_row => integer 0 protected _as_object => string(35) "Model_Application_Location_Document" protected _object_params => NULL }"documents_nomination_forms" => object Database_MySQL_Result(7){ protected _internal_row => integer 0 protected _query => string(680) "SELECT `application_location_document`.`id` AS `id`, `application_location_document`.`document_type_id` AS `document_type_id`, ` …" protected _result => resource(mysql result) protected _total_rows => integer 0 protected _current_row => integer 0 protected _as_object => string(35) "Model_Application_Location_Document" protected _object_params => NULL }) }{ protected _file => string(85) "/data/ssd/websites/resa/v1/src/kohana/apps/client/views/application_location/read.php" protected _data => array(10) ( "application_location" => object Model_Application_Location(34)public title => string(23) "Cornick RESA Management" public request => object Request(19){ protected _belongs_to => array(3) ( "application" => array(2) ( "foreign_key" => string(14) "application_id" "model" => string(11) "Application" ) "type" => array(2) ( "foreign_key" => string(7) "type_id" "model" => string(25) "Application_Location_Type" ) "calculation_method" => array(2) ( "foreign_key" => string(21) "calculation_method_id" "model" => string(18) "Calculation_Method" ) ) protected _has_many => array(2) ( "activities" => array(4) ( "foreign_key" => string(11) "location_id" "through" => NULL "far_key" => string(11) "activity_id" "model" => string(29) "Application_Location_Activity" ) "documents" => array(4) ( "foreign_key" => string(11) "location_id" "through" => NULL "far_key" => string(11) "document_id" "model" => string(29) "Application_Location_Document" ) ) protected _has_one => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(8) ( "id" => string(1) "1" "application_id" => string(1) "1" "type_id" => string(1) "1" "calculation_method_id" => string(1) "7" "address_street_1" => string(16) "9 Hannabus Place" "address_street_2" => string(0) "" "address_locality" => string(13) "McGraths Hill" "address_postcode" => string(4) "2756" ) protected _changed => array(0) protected _original_values => array(8) ( "id" => string(1) "1" "application_id" => string(1) "1" "type_id" => string(1) "1" "calculation_method_id" => string(1) "7" "address_street_1" => string(16) "9 Hannabus Place" "address_street_2" => string(0) "" "address_locality" => string(13) "McGraths Hill" "address_postcode" => string(4) "2756" ) protected _related => array(3) ( "application" => object Model_Application(34)"uri_index" => string(26) "application_location/index" "uri_update" => string(29) "application_location/update/1" "uri_read_application" => string(18) "application/read/1" "uri_upload_document" => string(38) "application_location/upload_document/1" "documents_proof_of_installation" => object Database_MySQL_Result(7){ protected _has_many => array(2) ( "entities" => array(4) ( "foreign_key" => string(14) "application_id" "through" => NULL "far_key" => string(9) "entity_id" "model" => string(18) "Application_Entity" ) "locations" => array(4) ( "foreign_key" => string(14) "application_id" "through" => NULL "far_key" => string(11) "location_id" "model" => string(20) "Application_Location" ) ) protected _belongs_to => array(4) ( "status" => array(2) ( "foreign_key" => string(9) "status_id" "model" => string(18) "Application_Status" ) "type" => array(2) ( "foreign_key" => string(7) "type_id" "model" => string(16) "Application_Type" ) "responsible_contact" => array(2) ( "foreign_key" => string(22) "responsible_contact_id" "model" => string(7) "Contact" ) "technical_contact" => array(2) ( "foreign_key" => string(20) "technical_contact_id" "model" => string(7) "Contact" ) ) protected _has_one => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(6) ( "id" => string(1) "1" "status_id" => string(1) "1" "type_id" => string(1) "1" "responsible_contact_id" => string(1) "1" "technical_contact_id" => string(1) "2" "name" => string(35) "Cornick Pty Ltd - Internal Lighting" ) protected _changed => array(0) protected _original_values => array(6) ( "id" => string(1) "1" "status_id" => string(1) "1" "type_id" => string(1) "1" "responsible_contact_id" => string(1) "1" "technical_contact_id" => string(1) "2" "name" => string(35) "Cornick Pty Ltd - Internal Lighting" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(11) "application" protected _object_plural => string(12) "applications" protected _table_name => string(12) "applications" protected _table_columns => array(6) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "status_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(9) "status_id" "column_default" => string(1) "1" "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "type_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(7) "type_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "responsible_contact_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(22) "responsible_contact_id" "column_default" => string(1) "0" "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "technical_contact_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(20) "technical_contact_id" "column_default" => string(1) "0" "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "name" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 6 "character_maximum_length" => string(2) "50" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "UNI" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "1" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)"type" => object Model_Application_Location_Type(34){ protected _connection_id => string(40) "ae20799f23fb9768ec27d64804b45ba75cd600ed" protected _identifier => string(1) "`" public last_query => string(176) "SELECT `calculation_method`.`id` AS `id`, `calculation_method`.`name` AS `name` FROM `calculation_methods` AS `calculation_metho …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(4) "resa" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(11) "application" }{ protected _has_many => array(1) ( "locations" => array(4) ( "foreign_key" => string(7) "type_id" "through" => NULL "far_key" => string(11) "location_id" "model" => string(20) "Application_Location" ) ) protected _has_one => array(0) protected _belongs_to => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(2) ( "id" => string(1) "1" "name" => string(10) "Commercial" ) protected _changed => array(0) protected _original_values => array(2) ( "id" => string(1) "1" "name" => string(10) "Commercial" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(25) "application_location_type" protected _object_plural => string(26) "application_location_types" protected _table_name => string(26) "application_location_types" protected _table_columns => array(2) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "name" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "UNI" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "1" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)"calculation_method" => object Model_Calculation_Method(34){ protected _connection_id => string(40) "ae20799f23fb9768ec27d64804b45ba75cd600ed" protected _identifier => string(1) "`" public last_query => string(176) "SELECT `calculation_method`.`id` AS `id`, `calculation_method`.`name` AS `name` FROM `calculation_methods` AS `calculation_metho …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(4) "resa" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(25) "application_location_type" }{ protected _has_many => array(1) ( "locations" => array(4) ( "foreign_key" => string(21) "calculation_method_id" "through" => NULL "far_key" => string(11) "location_id" "model" => string(20) "Application_Location" ) ) protected _has_one => array(0) protected _belongs_to => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(2) ( "id" => string(1) "7" "name" => string(73) "Deemed Energy Savings Method - Commercial Lighting Energy Savings Formula" ) protected _changed => array(0) protected _original_values => array(2) ( "id" => string(1) "7" "name" => string(73) "Deemed Energy Savings Method - Commercial Lighting Energy Savings Formula" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(18) "calculation_method" protected _object_plural => string(19) "calculation_methods" protected _table_name => string(19) "calculation_methods" protected _table_columns => array(2) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "name" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "UNI" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "7" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(20) "application_location" protected _object_plural => string(21) "application_locations" protected _table_name => string(21) "application_locations" protected _table_columns => array(8) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "application_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(14) "application_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "type_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(7) "type_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "calculation_method_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(21) "calculation_method_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "address_street_1" => array(12) ( "type" => string(6) "string" "column_name" => string(16) "address_street_1" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "address_street_2" => array(12) ( "type" => string(6) "string" "column_name" => string(16) "address_street_2" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 6 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "address_locality" => array(12) ( "type" => string(6) "string" "column_name" => string(16) "address_locality" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 7 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "address_postcode" => array(12) ( "type" => string(6) "string" "column_name" => string(16) "address_postcode" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 8 "character_maximum_length" => string(2) "12" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "1" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6){ protected _connection_id => string(40) "ae20799f23fb9768ec27d64804b45ba75cd600ed" protected _identifier => string(1) "`" public last_query => string(176) "SELECT `calculation_method`.`id` AS `id`, `calculation_method`.`name` AS `name` FROM `calculation_methods` AS `calculation_metho …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(4) "resa" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(18) "calculation_method" }{ protected _connection_id => string(40) "ae20799f23fb9768ec27d64804b45ba75cd600ed" protected _identifier => string(1) "`" public last_query => string(176) "SELECT `calculation_method`.`id` AS `id`, `calculation_method`.`name` AS `name` FROM `calculation_methods` AS `calculation_metho …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(4) "resa" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(20) "application_location" }{ protected _internal_row => integer 1 protected _query => string(680) "SELECT `application_location_document`.`id` AS `id`, `application_location_document`.`document_type_id` AS `document_type_id`, ` …" protected _result => resource(mysql result) protected _total_rows => integer 1 protected _current_row => integer 0 protected _as_object => string(35) "Model_Application_Location_Document" protected _object_params => NULL }"documents_proof_of_specifications" => object Database_MySQL_Result(7){ protected _internal_row => integer 0 protected _query => string(680) "SELECT `application_location_document`.`id` AS `id`, `application_location_document`.`document_type_id` AS `document_type_id`, ` …" protected _result => resource(mysql result) protected _total_rows => integer 0 protected _current_row => integer 0 protected _as_object => string(35) "Model_Application_Location_Document" protected _object_params => NULL }"documents_esc_calculation" => object Database_MySQL_Result(7){ protected _internal_row => integer 0 protected _query => string(680) "SELECT `application_location_document`.`id` AS `id`, `application_location_document`.`document_type_id` AS `document_type_id`, ` …" protected _result => resource(mysql result) protected _total_rows => integer 0 protected _current_row => integer 0 protected _as_object => string(35) "Model_Application_Location_Document" protected _object_params => NULL }"documents_additional_documentation" => object Database_MySQL_Result(7){ protected _internal_row => integer 0 protected _query => string(680) "SELECT `application_location_document`.`id` AS `id`, `application_location_document`.`document_type_id` AS `document_type_id`, ` …" protected _result => resource(mysql result) protected _total_rows => integer 1 protected _current_row => integer 0 protected _as_object => string(35) "Model_Application_Location_Document" protected _object_params => NULL }"documents_nomination_forms" => object Database_MySQL_Result(7){ protected _internal_row => integer 0 protected _query => string(680) "SELECT `application_location_document`.`id` AS `id`, `application_location_document`.`document_type_id` AS `document_type_id`, ` …" protected _result => resource(mysql result) protected _total_rows => integer 0 protected _current_row => integer 0 protected _as_object => string(35) "Model_Application_Location_Document" protected _object_params => NULL }) }{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)public response => object Response(5){ protected _filters => array(0) protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(11) "Application" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }protected _routes => array(0) protected _header => object HTTP_Header(0){ }protected _body => NULL protected _directory => string(0) "" protected _controller => string(20) "Application_Location" protected _action => string(4) "read" protected _uri => string(27) "application_location/read/1" protected _external => bool FALSE protected _params => array(1) ( "id" => string(1) "1" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "Authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }}{ protected _status => integer 200 protected _header => object HTTP_Header(0)public logged_id => integer 0 }{ }protected _body => string(0) "" protected _cookies => array(0) protected _protocol => NULL }92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 throw new Kohana_Exception('Controller failed to return a Response'); -
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5){ protected _filters => array(0) protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(11) "Application" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }protected _routes => array(0) protected _header => object HTTP_Header(0){ }protected _body => NULL protected _directory => string(0) "" protected _controller => string(20) "Application_Location" protected _action => string(4) "read" protected _uri => string(27) "application_location/read/1" protected _external => bool FALSE protected _params => array(1) ( "id" => string(1) "1" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "Authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }}1object Response(5)
{ protected _status => integer 200 protected _header => object HTTP_Header(0){ }protected _body => string(0) "" protected _cookies => array(0) protected _protocol => NULL }109 $orig_response = $response = Response::factory(); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header)) -
SYSPATH/classes/Kohana/Request.php [ 989 ] » Kohana_Request_Client->execute(arguments)
0object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5){ protected _filters => array(0) protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(11) "Application" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }protected _routes => array(0) protected _header => object HTTP_Header(0){ }protected _body => NULL protected _directory => string(0) "" protected _controller => string(20) "Application_Location" protected _action => string(4) "read" protected _uri => string(27) "application_location/read/1" protected _external => bool FALSE protected _params => array(1) ( "id" => string(1) "1" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "Authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }}984 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 985 ':uri' => $this->_uri, 986 )); 987 } 988 989 return $this->_client->execute($this); 990 } 991 992 /** 993 * Returns whether this request is the initial request Kohana received. 994 * Can be used to test for sub requests. -
DOCROOT/index.php [ 112 ] » Kohana_Request->execute()
107 /** 108 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 109 * If no source is specified, the URI will be automatically detected. 110 */ 111 echo Request::factory(TRUE, array(), FALSE) 112 ->execute() 113 ->send_headers(TRUE) 114 ->body(); 115 }