Jump to content

timothyneill

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

timothyneill's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I agree - I have just upgraded eclipse to juno. There could be a problem there. I am very sorry to have consumed a bunch of your time on a problem that isn't a language issue. I may go back to indigo and check it out. Thanks again
  2. Here is the code: 18795_.php 18796_.php 18797_.php
  3. The code from the first post does include $i & $j - however it is in the ClientUpdates php code block. The more I play with this - I have it working using var dumps - however my step through debugger (XDebug) was not showing the vars being assigned values. This could be an issue with my config of PDT & Xdebug.
  4. I could be wasting your time - I just did a var_dump and the results were as they should be. I may have a problem with XDebug with PDT in eclipse. Strangely in the debugger the var_dump is working - however assignment to $i & $j do not. I'm so sorry to be such a noob
  5. This end: PHP Version 5.3.2-1ubuntu4.17 Could be a bug with this particular version - thanks for all the help
  6. HttpKeys::PRODUCT_CATEGORIES_UPDATED returns null where marked //-- this does not work
  7. I am returning to PHP after a period of absence. I am having problems with using class constants within another class's constructor: The class HttpKeys contains all the keys the site uses for the $_POST array. final class HttpKeys { const EMPLOYEE_HTTP = 'employeeHttpKey'; const EMPLOYEE_LOG_OUT = 'employeeLogOutKey'; const EMPLOYEES_UPDATED = "employeesUpdated"; const LOCKS_UPDATED = "locksUpdated"; const MENU_ITEM_COUNTS_UPDATED = "menuItemCountsUpdated"; const MENU_ITEMS_UPDATED = "menuItemsUpdated"; const MODIFIERS_UPDATED = "modifiersUpdated"; const ORDERS_UPDATED = "ordersUpdated"; const PAYLOAD = "payload"; const PRODUCT_CATEGORIES_UPDATED = "productCategoriesUpdated"; const STATUS = "status"; const TERMINAL_HTTP = 'terminalHttpKey'; const TERMINAL_LOG_OUT = 'terminalLogOutKey'; const TERMINAL_REGISTRATION = 'terminalRegistrationKey'; const TIMESTAMP = "now"; } However, These class constants are not always available in the following code. Is this by design or a bug? require('HttpKeys.php'); class ClientUpdates { function __construct() { //-- this does not work $i = HttpKeys::PRODUCT_CATEGORIES_UPDATED; $this->getProductCategories(); } private function getProductCategories() { //-- this does not work $j = HttpKeys::PRODUCT_CATEGORIES_UPDATED; } } //-- this works $k = HttpKeys::PRODUCT_CATEGORIES_UPDATED; $clientUpdates = new ClientUpdates(); $clientUpdates = null; unset($clientUpdates); Thanks everyone for all the help - apologies for being a newbie once again.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.