Questions tagged [modifier]

347 questions
1
vote
1 answer

Show total price for modifier in Expresso Store

Is there a way to show the total price for products with modifiers in dropdowns instead of how much extra they are? For instance, in the shop I'm developing, a bouquet of flowers costs £30 for a regular size. You can also get a large for an…
1
vote
2 answers

Unknown modifier in my code

//output Error: Unknown modifier 'p' in
fhonics
  • 113
  • 9
1
vote
2 answers

How can I assign a new variable inside of a Smarty modifier function?

I wrote a basic Smarty modifier that emulates JavaScript's push. function smarty_modifier_push($array, $push){ if(!isset($array)){ $array = array($push); }elseif(is_array($array)){ $array[] = $push; } return…
Aust
  • 11,552
  • 13
  • 44
  • 74
1
vote
1 answer

alternative for function preg_replace e/ modifier

Anybody knows how to change this function with preg_replace and the e/ modifier The e/ modifier will be depreciated. function charset_decode_utf_8 ($string) { /* Only do the slow convert if there are 8-bit characters */ /* avoid using 0xA0…
ceasar
  • 1,512
  • 3
  • 17
  • 25
1
vote
1 answer

preg_match() giving Unknown modifier '$'

I've got the following code function redireectIfNeeded(){ $url = $_SERVER["REQUEST_URI"]; if(preg_match("/\.php/$", $url)) header("Location: ".preg_replace("/\.php/",$url)); } Which is giving me the following error. [24-Jul-2012 19:14:18] PHP…
dpDesignz
  • 1,909
  • 10
  • 34
  • 70
1
vote
3 answers

C# class/methods modifiers

I'm trying to make spreadsheet with class/method modifiers. The spreadsheet itself can be located here, although I have some questions: 1) As I read, methods also can be sealed, but what's the purpose of this? Protecting method against…
Darj
  • 1,403
  • 1
  • 17
  • 47
1
vote
1 answer

Only one item returned despite global modifier use in Regex

I'm using the javascript code below trying to extract the number after gallery-entry_ in the html markup below but instead of giving all matches it only returns the first one despite my use of the g modifier in the regex. Any idea why ?
Stephane
  • 4,978
  • 9
  • 51
  • 86
1
vote
3 answers

Practical usage of new (modifier) functions?

What's the Practical usage of new (modifier) functions?
odiseh
  • 25,407
  • 33
  • 108
  • 151
1
vote
2 answers

“public” or “protected” methods does not make any difference for a private nested class which does not implement any interface ..?

“public” or “protected” methods does not make any difference for a private nested class which does not implement any interface ..? If a private nested class does not implement any interface or inherit from any class, for the modifiers of its…
Don Li
  • 1,095
  • 2
  • 12
  • 17
0
votes
3 answers

Decreasing the visibility of base class properties

I had created a base class that has many public properties and were been used perfectly. Now i want to use this class to derive other class , but i do'nt want some of its properties to be exposed outside the derived class that inherits it. Is there…
yo chauhan
  • 12,079
  • 4
  • 39
  • 58
0
votes
1 answer

On eclipse C++ code style single line format

I have a problem with eclipse's code style, here is the problem: when I write an accessor or a modifier in C++ code, for example: string GetName() { return name; } then I press ctrl+shift+f and this line becomes: string GetName() { return…
0
votes
1 answer

what does echo modifiers "f|" do in bat file

What does "f|" do in this bat command echo f|xcopy /Y /v "foo.exe" "%TargetFile1%"
ruggb
  • 93
  • 1
0
votes
1 answer

Modifier in @Compose functions in Android Studio Kotlin Programming Language

What is difference between modifier (small m) and Modifier (capital M) when it is used in the @Compose Functions in Android Studio? I am receiving the following output enter image description here by using the following code `@Composable fun…
0
votes
1 answer

How to 'click' on multiple elements with one drag gesture in Jetpack Compose?

I have a composable called SequencerGrid which contains a row of composables called ToggleStep. Each ToggleStep is effectively a custom button; a Box with a .clickable modifier. When each ToggleStep is clicked on, it gets 'highlighted', changing…
0
votes
3 answers

How to modify the event object before the DOM event callback function is executed