array(4) {
  ["hasError"]=>
  bool(false)
  ["ResponseObj"]=>
  array(1) {
    ["Items"]=>
    array(2) {
      [0]=>
      array(41) {
        ["row_num"]=>
        string(1) "1"
        ["uid"]=>
        string(4) "5986"
        ["master_id"]=>
        string(2) "65"
        ["locale"]=>
        string(2) "en"
        ["ranking"]=>
        string(1) "1"
        ["display_date"]=>
        string(19) "2017-01-17 00:00:00"
        ["store"]=>
        string(3) "tst"
        ["title"]=>
        string(16) "SOGO Weekly News"
        ["event_period"]=>
        string(12) "18/1-24/1/17"
        ["template"]=>
        string(1) "1"
        ["description"]=>
        string(0) ""
        ["pdf"]=>
        string(0) ""
        ["url_name"]=>
        string(0) ""
        ["happening"]=>
        string(1) "1"
        ["highlight"]=>
        string(1) "1"
        ["show_at_index"]=>
        string(1) "1"
        ["thumbnail"]=>
        string(83) "/uploads/images/mainsite/event%26promotion/original_image/2017118/sogonewstst_s.jpg"
        ["thumb_alt"]=>
        string(16) "SOGO Weekly News"
        ["index_image"]=>
        string(56) "/uploads/images/mainsite/event%26promotion/eventImg1.jpg"
        ["index_alt"]=>
        string(16) "SOGO Weekly News"
        ["link"]=>
        string(0) ""
        ["popup_type"]=>
        string(1) "1"
        ["happening_end_date"]=>
        string(19) "2017-01-25 00:00:00"
        ["extracted_pdf"]=>
        string(1) "0"
        ["version"]=>
        string(3) "114"
        ["created_by"]=>
        string(1) "1"
        ["created_date"]=>
        string(19) "2014-12-16 17:26:26"
        ["created_ip"]=>
        string(9) "127.0.0.1"
        ["modified_by"]=>
        string(1) "1"
        ["modified_date"]=>
        string(19) "2017-01-17 15:20:45"
        ["modified_ip"]=>
        string(9) "127.0.0.1"
        ["approved_by"]=>
        NULL
        ["approved_date"]=>
        NULL
        ["approved_ip"]=>
        NULL
        ["submitted_by"]=>
        string(1) "1"
        ["submitted_date"]=>
        string(19) "2017-01-17 17:24:06"
        ["submitted_ip"]=>
        string(9) "127.0.0.1"
        ["commited"]=>
        string(1) "1"
        ["approval_status"]=>
        string(1) "3"
        ["active"]=>
        string(1) "1"
        ["deleted"]=>
        string(1) "0"
      }
      [1]=>
      array(41) {
        ["row_num"]=>
        string(1) "2"
        ["uid"]=>
        string(4) "5929"
        ["master_id"]=>
        string(3) "145"
        ["locale"]=>
        string(2) "en"
        ["ranking"]=>
        string(1) "4"
        ["display_date"]=>
        string(19) "2017-01-03 00:00:00"
        ["store"]=>
        string(3) "tst"
        ["title"]=>
        string(38) "B1/F & LG/F Chinese New Year Food Fair"
        ["event_period"]=>
        string(13) "4/1-31/1/2017"
        ["template"]=>
        string(1) "1"
        ["description"]=>
        string(0) ""
        ["pdf"]=>
        string(0) ""
        ["url_name"]=>
        string(0) ""
        ["happening"]=>
        string(1) "1"
        ["highlight"]=>
        string(1) "1"
        ["show_at_index"]=>
        string(1) "1"
        ["thumbnail"]=>
        string(75) "/uploads/images/mainsite/event%26promotion/thumbnail_image/tst_b2_s(14).jpg"
        ["thumb_alt"]=>
        string(21) "B1/F & LG/F Food Fair"
        ["index_image"]=>
        string(56) "/uploads/images/mainsite/event%26promotion/eventImg3.jpg"
        ["index_alt"]=>
        string(21) "B1/F & LG/F Food Fair"
        ["link"]=>
        string(0) ""
        ["popup_type"]=>
        string(1) "1"
        ["happening_end_date"]=>
        string(19) "2017-02-01 00:00:00"
        ["extracted_pdf"]=>
        string(1) "0"
        ["version"]=>
        string(2) "28"
        ["created_by"]=>
        string(1) "1"
        ["created_date"]=>
        string(19) "2015-10-14 16:25:50"
        ["created_ip"]=>
        string(9) "127.0.0.1"
        ["modified_by"]=>
        string(1) "1"
        ["modified_date"]=>
        string(19) "2017-01-04 10:21:49"
        ["modified_ip"]=>
        string(9) "127.0.0.1"
        ["approved_by"]=>
        NULL
        ["approved_date"]=>
        NULL
        ["approved_ip"]=>
        NULL
        ["submitted_by"]=>
        string(1) "1"
        ["submitted_date"]=>
        string(19) "2017-01-04 10:22:06"
        ["submitted_ip"]=>
        string(9) "127.0.0.1"
        ["commited"]=>
        string(1) "1"
        ["approval_status"]=>
        string(1) "3"
        ["active"]=>
        string(1) "1"
        ["deleted"]=>
        string(1) "0"
      }
    }
  }
  ["sql"]=>
  string(846) "
				SELECT * FROM (
					
				SELECT
					@row:=@row+1 as row_num, promotion.*
				FROM ms_promotion_master promotion
				INNER JOIN (
					SELECT master_id, max(version) currentVersion, commited FROM ms_promotion_master
					WHERE commited = 1
					GROUP BY master_id
				) versioning ON
					versioning.master_id = promotion.master_id
					AND versioning.currentVersion = promotion.version
				INNER JOIN (select @row:=0)r 
				WHERE 
					promotion.locale = :LOCALE AND 
					promotion.active = 1 AND 
					promotion.deleted = 0 
					AND promotion.store = :store AND 
					promotion.display_date <= NOW() AND 
					highlight = :HIGHLIGHT AND 
					template <> :TEMPLATE
				 ORDER BY ranking ASC, display_date DESC
			
				) RS
				WHERE row_num BETWEEN :START_RECORD AND :END_RECORD 
				ORDER BY row_num ASC 
			"
  ["dbParam"]=>
  array(6) {
    [0]=>
    array(2) {
      ["name"]=>
      string(7) ":LOCALE"
      ["value"]=>
      string(2) "en"
    }
    [1]=>
    array(2) {
      ["name"]=>
      string(6) ":store"
      ["value"]=>
      string(3) "tst"
    }
    [2]=>
    array(2) {
      ["name"]=>
      string(10) ":HIGHLIGHT"
      ["value"]=>
      int(1)
    }
    [3]=>
    array(2) {
      ["name"]=>
      string(9) ":TEMPLATE"
      ["value"]=>
      int(4)
    }
    [4]=>
    array(2) {
      ["name"]=>
      string(13) ":START_RECORD"
      ["value"]=>
      int(1)
    }
    [5]=>
    array(2) {
      ["name"]=>
      string(11) ":END_RECORD"
      ["value"]=>
      int(4)
    }
  }
}
SOGO
| Home

MENU
| Home