public function findSettingItem($owner, $code)
    {
        if ($this->items === null) {
            $this->loadItems();
        }

        $owner = strtolower($owner);
        $code = strtolower($code);

        foreach ($this->items as $item) {
            if (strtolower($item->owner) == $owner && strtolower($item->code) == $code) {
                return $item;
            }
        }

        return false;
    }
public function findSettingItem($owner, $code)
    {
        if ($this->items === null) {
            $this->loadItems();
        }

        $owner = strtolower($owner);
        $code = strtolower($code);

        foreach ($this->items as $item) {
            if (strtolower($item->owner) == $owner && strtolower($item->code) == $code) {
                return $item;
            }
        }

        return false;
    }
public function findSettingItem ( $ owner , $ code ) { if ( $ this -> items === null ) { $ this -> loadItems ( ) ; } $ owner = strtolower ( $ owner ) ; $ code = strtolower ( $ code ) ; foreach ( $ this -> items as $ item ) { if ( strtolower ( $ item -> owner ) == $ owner && strtolower ( $ item -> code ) == $ code ) { return $ item ; } } return false ; }
Locates a setting item object by it's owner and code
@param string $owner
@param string $code
@return mixed The item object or FALSE if nothing is found
Locates a setting item object by it s owner and code