MODPATH/database/classes/kohana/database/mssql.php [ 79 ]
74 {
75 // No connection exists
76 $this->_connection = NULL;
77
78 // Unable to connect to the database
79 throw new Database_Exception(':error',
80 array(':error' => $e->getMessage()));
81 }
82
83 if ( ! mssql_select_db($database, $this->_connection))
84 {
-
MODPATH/database/classes/kohana/database/mssql.php [ 256 ] » Kohana_Database_MSSQL->connect()
251 } 252 253 public function escape($value) 254 { 255 // Make sure the database is connected 256 $this->_connection or $this->connect(); 257 258 $value = str_replace('\'', '\'\'', $value); 259 // SQL standard is to use single-quotes for all values 260 return "'$value'"; 261 } -
MODPATH/database/classes/kohana/database.php [ 241 ] » Kohana_Database_MSSQL->escape(arguments)
valuestring(16) "ledvinac@mac.com"236 elseif (is_int($value)) 237 { 238 return (int) $value; 239 } 240 241 return $this->escape($value); 242 } 243 244 /** 245 * Quote a database table name and adds the table prefix if needed 246 * -
MODPATH/database/classes/kohana/database/query/builder.php [ 76 ] » Kohana_Database->quote(arguments)
valuestring(16) "ledvinac@mac.com"71 72 // Split the condition 73 list($column, $op, $value) = $condition; 74 75 // Append the statement to the query 76 $sql .= $db->quote_identifier($column).' '.strtoupper($op).' '.$db->quote($value); 77 } 78 79 $last_condition = $condition; 80 } 81 } -
MODPATH/database/classes/kohana/database/query/builder/select.php [ 357 ] » Kohana_Database_Query_Builder::compile_conditions(arguments)
dbobject Database_MSSQL(7)
{ protected _identifier_open => string(1) "[" protected _identifier_close => string(1) "]" public last_query => NULL protected _identifier => string(1) """ protected _instance => string(14) "beewellforlife" protected _connection => NULL protected _config => array(4) ( "type" => string(5) "mssql" "table_prefix" => string(0) "" "caching" => bool TRUE "profiling" => bool TRUE ) }conditionsarray(1) ( 0 => array(1) ( "AND" => array(3) ( 0 => string(12) "EmailAddress" 1 => string(1) "=" 2 => string(16) "ledvinac@mac.com" ) ) )
352 } 353 354 if ( ! empty($this->_where)) 355 { 356 // Add selection conditions 357 $query .= ' WHERE '.Database_Query_Builder::compile_conditions($db, $this->_where); 358 } 359 360 if ( ! empty($this->_group_by)) 361 { 362 // Add sorting -
MODPATH/database/classes/kohana/database/query.php [ 191 ] » Kohana_Database_Query_Builder_Select->compile(arguments)
dbobject Database_MSSQL(7)
{ protected _identifier_open => string(1) "[" protected _identifier_close => string(1) "]" public last_query => NULL protected _identifier => string(1) """ protected _instance => string(14) "beewellforlife" protected _connection => NULL protected _config => array(4) ( "type" => string(5) "mssql" "table_prefix" => string(0) "" "caching" => bool TRUE "profiling" => bool TRUE ) }186 // Get the database instance 187 $db = Database::instance($db); 188 } 189 190 // Compile the SQL query 191 $sql = $this->compile($db); 192 193 if ( ! empty($this->_lifetime) AND $this->_type === Database::SELECT) 194 { 195 // Set the cache key based on the database instance name and SQL 196 $cache_key = 'Database::query("'.$db.'", "'.$sql.'")'; -
APPPATH/classes/model/user.php [ 90 ] » Kohana_Database_Query->execute(arguments)
dbstring(14) "beewellforlife"85 86 $is_member = DB::select('Member_ID') 87 ->from('Members') 88 ->where('EmailAddress', '=', $email) 89 ->limit(1) 90 ->execute('beewellforlife') 91 ->as_array(); 92 93 if(sizeof($is_member)) 94 { 95 return $is_member[0]['Member_ID']; -
APPPATH/views/article.php [ 93 ] » Model_User->is_beewellforlife_member()
88 </div><!--shareModulePad--> 89 </div><!--pad--> 90 91 <div class="subPageTitle"> 92 <h2><?php echo $story->story_title; ?></h2> 93 <?php if($story->user->is_beewellforlife_member()) { ?> 94 <a href="http://www.beewellforlife.com" target="_blank"><img src="/assets/images/badge.gif" /></a> 95 <br /><br /> 96 <?php } ?> 97 <p> 98 by <?php echo $author; ?> from <?php echo Locator::get_location($story->user->zip_code); ?> -
SYSPATH/classes/kohana/view.php [ 49 ] » include(arguments)
0string(73) "/home/working/beewalk/tags/current/httpdocs/application/views/article.php"44 ob_start(); 45 46 try 47 { 48 // Load the view within the current scope 49 include $kohana_view_filename; 50 } 51 catch (Exception $e) 52 { 53 // Delete the output buffer 54 ob_end_clean(); -
SYSPATH/classes/kohana/view.php [ 303 ] » Kohana_View::capture(arguments)
kohana_view_filenamestring(73) "/home/working/beewalk/tags/current/httpdocs/application/views/article.php"kohana_view_dataarray(13) ( "story" => object Model_Story(36)
{ protected youtube_key => NULL protected _belongs_to => array(1) ( "user" => array(2) ( "model" => string(4) "user" "foreign_key" => string(7) "user_id" ) ) protected _has_many => array(1) ( "votes" => array(4) ( "model" => string(4) "vote" "foreign_key" => string(8) "story_id" "through" => NULL "far_key" => string(7) "vote_id" ) ) protected _rules => array(5) ( "story_url" => array(4) ( "not_empty" => array(0) "min_length" => array(1) ( 0 => integer 1 ) "max_length" => array(1) ( 0 => integer 20 ) "alpha_numeric" => array(0) ) "story_title" => array(3) ( "not_empty" => array(0) "min_words" => array(1) ( 0 => integer 1 ) "max_length" => array(1) ( 0 => integer 120 ) ) "story_body" => array(4) ( "not_empty" => array(0) "min_words" => array(1) ( 0 => integer 20 ) "max_words" => array(1) ( 0 => integer 1000 ) "allow_html" => array(1) ( 0 => string(28) "<b><p><i><em><u><blockquote>" ) ) "photo_uploaded" => array(3) ( "not_empty" => array(0) "exact_length" => array(1) ( 0 => integer 1 ) "numeric" => array(1) ( 0 => integer 1 ) ) "youtube_url" => array(2) ( "optional" => array(0) "url" => array(0) ) ) protected _callbacks => array(4) ( "story_url" => array(1) ( 0 => string(22) "is_duplicate_story_url" ) "city_id" => array(1) ( 0 => string(7) "is_city" ) "image_url" => array(1) ( 0 => string(14) "is_gallery_img" ) "youtube_url" => array(1) ( 0 => string(16) "is_youtube_video" ) ) protected _has_one => array(0) protected _load_with => array(0) protected _validate => NULL protected _filters => array(0) protected _labels => array(0) protected _object => array(15) ( "id" => string(2) "39" "user_id" => string(2) "39" "story_title" => string(35) "I walk so someday we won't have to!" "story_body" => string(627) "<p> I found out that I had breast cancer the same day that my mom passed away. We lived in two different cities. Th …" "story_url" => string(6) "redled" "youtube_url" => string(0) "" "photo_uploaded" => string(1) "0" "image_url" => string(9) "med_3.jpg" "nat_a" => string(1) "1" "loc_a" => string(1) "1" "city_id" => string(1) "5" "telephone" => NULL "visitors" => string(1) "0" "inactive" => string(1) "0" "date_created" => string(19) "2010-04-01 20:07:37" ) protected _changed => array(0) protected _related => array(1) ( "user" => object Model_User(35)"previous_story" => string(10) "SassyAnnie" "next_story" => string(8) "robbie62" "story_img" => string(46) "/assets/images/choose_gallery/medium/med_3.jpg" "story_thumb" => string(46) "/assets/images/choose_gallery/thumbs/med_3.jpg" "page_title" => string(33) "Bee at the Walk | Bee at the Walk" "meta_keywords" => string(64) "share,story,breast cancer,cancer,bumblebee,tuna,healthy,wellness" "meta_description" => string(222) "Share your story for a chance to walk with us in Chicago this Mother's Day at Breast Cancer Network of Strength's Walk to Empowe …" "render_scripts" => string(493) "<link rel="stylesheet" href="/assets/css/styles.css" type="text/css" /> <script type="text/javascript" src="/assets/js/jquery.1. …" "content" => string(0) "" "callout1" => object View(2){ protected _rules => array(6) ( "email" => array(4) ( ... ) "first_name" => array(4) ( ... ) "last_name" => array(4) ( ... ) "newsletter_optin" => array(3) ( ... ) "zip_code" => array(3) ( ... ) "beewellforlife_id" => array(2) ( ... ) ) protected _filters => array(1) ( 1 => array(2) ( ... ) ) protected _has_one => array(1) ( "story" => array(2) ( ... ) ) protected _callbacks => array(2) ( "email" => array(1) ( ... ) "zip_code" => array(1) ( ... ) ) protected _belongs_to => array(0) protected _has_many => array(0) protected _load_with => array(0) protected _validate => NULL protected _labels => array(0) protected _object => array(7) ( "id" => string(2) "39" "beewellforlife_id" => string(5) "28338" "email" => string(16) "ledvinac@mac.com" "first_name" => string(5) "cathy" "last_name" => string(7) "ledvina" "zip_code" => string(5) "53151" "newsletter_optin" => string(1) "1" ) protected _changed => array(0) protected _related => array(0) protected _loaded => bool TRUE protected _saved => bool TRUE protected _sorting => array(1) ( "id" => string(3) "ASC" ) protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(4) "user" protected _object_plural => string(5) "users" protected _table_name => string(5) "users" protected _table_columns => array(7) ( "id" => string(2) "id" "beewellforlife_id" => string(17) "beewellforlife_id" "email" => string(5) "email" "first_name" => string(10) "first_name" "last_name" => string(9) "last_name" "zip_code" => string(8) "zip_code" "newsletter_optin" => string(16) "newsletter_optin" ) protected _ignored_columns => array(0) protected _updated_column => NULL protected _created_column => NULL protected _primary_key => string(2) "id" protected _primary_val => string(4) "name" protected _foreign_key => array(0) protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(5)) protected _loaded => bool TRUE protected _saved => bool TRUE protected _sorting => array(1) ( "id" => string(3) "ASC" ) protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(5) "story" protected _object_plural => string(7) "stories" protected _table_name => string(7) "stories" protected _table_columns => array(15) ( "id" => string(2) "id" "user_id" => string(7) "user_id" "story_title" => string(11) "story_title" "story_body" => string(10) "story_body" "story_url" => string(9) "story_url" "youtube_url" => string(11) "youtube_url" "photo_uploaded" => string(14) "photo_uploaded" "image_url" => string(9) "image_url" "nat_a" => string(5) "nat_a" "loc_a" => string(5) "loc_a" "city_id" => string(7) "city_id" "telephone" => string(9) "telephone" "visitors" => string(8) "visitors" "inactive" => string(8) "inactive" "date_created" => string(12) "date_created" ) protected _ignored_columns => array(0) protected _updated_column => NULL protected _created_column => NULL protected _primary_key => string(2) "id" protected _primary_val => string(4) "name" protected _foreign_key => array(0) protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(5){ protected _identifier => string(1) "`" public last_query => string(157) "SELECT `votes`.* FROM `votes` WHERE `story_id` = '39' AND `created_date` = '2012-05-19' AND `ip_address` = '38.107.179.232' ORDE …" protected _instance => string(7) "default" protected _connection => resource(mysql link persistent) protected _config => array(5) ( ... ) }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 _preload_data => array(0) }{ protected _identifier => string(1) "`" public last_query => string(157) "SELECT `votes`.* FROM `votes` WHERE `story_id` = '39' AND `created_date` = '2012-05-19' AND `ip_address` = '38.107.179.232' ORDE …" protected _instance => string(7) "default" protected _connection => resource(mysql link persistent) protected _config => array(5) ( "type" => string(5) "mysql" "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool TRUE "profiling" => bool TRUE ) }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 _preload_data => array(0) }{ protected _file => string(83) "/home/working/beewalk/tags/current/httpdocs/application/views/includes/callout1.php" protected _data => array(0) }"callout2" => object View(2){ protected _file => string(83) "/home/working/beewalk/tags/current/httpdocs/application/views/includes/callout2.php" protected _data => array(0) }"callout3" => object View(2){ protected _file => string(83) "/home/working/beewalk/tags/current/httpdocs/application/views/includes/callout3.php" protected _data => array(0) })298 { 299 throw new Kohana_View_Exception('You must set the file to use within your view before rendering'); 300 } 301 302 // Combine local and global data and capture the output 303 return View::capture($this->_file, $this->_data + View::$_global_data); 304 } 305 306 } // End View -
SYSPATH/classes/kohana/view.php [ 193 ] » Kohana_View->render()
188 */ 189 public function __toString() 190 { 191 try 192 { 193 return $this->render(); 194 } 195 catch (Exception $e) 196 { 197 // Display the exception message 198 Kohana::exception_handler($e); -
APPPATH/bootstrap.php [ 236 ] » Kohana_View->__toString()
231 $total = array( 232 '{memory_usage}' => number_format((memory_get_peak_usage() - KOHANA_START_MEMORY) / 1024, 2).'KB', 233 '{execution_time}' => number_format(microtime(TRUE) - KOHANA_START_TIME, 5).' seconds'); 234 235 // Insert the totals into the response 236 $request->response = strtr((string) $request->response, $total); 237 } 238 239 240 /** 241 * Display the request response. -
DOCROOT/index.php [ 144 ] » require(arguments)
0string(69) "/home/working/beewalk/tags/current/httpdocs/application/bootstrap.php"139 // Load empty core extension 140 require SYSPATH.'classes/kohana'.EXT; 141 } 142 143 // Bootstrap the application 144 require APPPATH.'bootstrap'.EXT;