Writes a debug warning if the condition $conditionName is enabled.

@param string $conditionName Name of the condition
@param string $string Text to write
@param string $label Optional label
186361
static function writeWarning( $conditionName, $string, $label = "" )
    {
        if ( !eZDebugSetting::isConditionTrue( $conditionName, eZDebug::LEVEL_WARNING ) )
            return false;
        eZDebug::writeWarning( $string, eZDebugSetting::changeLabel( $conditionName, $label ) );
    }
3472
private function scalar($scalar, string $label = ''): void
    {
        if (is_bool($scalar)) {
            $scalar = $scalar ? 'true' : 'false';
        } elseif (is_string($scalar)) {
            $scalar = "'{$this->escape($scalar)}'";
        }

        if ($label !== '') {
            $label = $this->escape($label);

            echo "console.log('%c{$label}','font-weight:bold',{$scalar});";
        } else {
            echo "console.log({$scalar});";
        }
    }
8683
protected function validatePrompt($field, $label, $validator, $default = null)
    {
        $input = $this->prompt($label, $default);

        if (!$this->isValidInput($input, $field, $validator)) {
            $this->errors();
            $this->validatePrompt($field, $label, $validator, $default);
        }
    }
1297487
public function addLabel(Label $label)
    {
        if (!$this->labels->contains($label)) {
            $this->labels->add($label);
            $label->setInteractionMatching($this);
        }
    }
508124
public final void j(CONDITION cc, Label label, int hint)
  {
    _emitJcc(conditionToJCC(cc), label, hint);
  }
611650
public function setLabel($label)
        {
            if (null !== $label && !is_string($label)) {
                throw new Exception(
                        'Invalid argument: $label must be a string or null');
            }

            $this->_label = $label;
            return $this;
        }
918170
private boolean checkHostPart(final String label, final Problems problems, final String compName) {
		boolean result = true;
		if (label.length() > 63) {
			problems.add(ValidationBundle.getMessage(HostNameValidator.class, "LABEL_TOO_LONG", label)); // NOI18N
			result = false;
		}
		if (label.length() == 0) {
			problems.add(ValidationBundle.getMessage(HostNameValidator.class, "LABEL_EMPTY", compName, label)); // NOI18N
		}
		if (result) {
			try {
				Integer.parseInt(label);
				problems.add(ValidationBundle.getMessage(HostNameValidator.class, "NUMBER_PART_IN_HOSTNAME", label)); // NOI18N
				result = false;
			} catch (final NumberFormatException e) {
				// do nothing
			}
			if (result) {
				if (result) {
					result = new EncodableInCharsetValidator().validate(problems, compName, label);
					if (result) {
						for (final char c : label.toLowerCase().toCharArray()) {
							if (c >= 'a' && c <= 'z' || c >= '0' && c <= '9' || c == '-') { // NOI18N
								continue;
							}
							problems.add(ValidationBundle.getMessage(HostNameValidator.class, "BAD_CHAR_IN_HOSTNAME", new String(new char[] { c }))); // NOI18N
							result = false;
						}
					}
				}
			}
		}
		return result;
	}
945883
protected String processLabel(String label, String name) {
    if (null != label) {
      if (Strings.isEmpty(label)) return null;
      else return getText(label);
    } else return getText(name);
  }
1131189
public static function writeCondition($content, $condition = null, $global = false)
    {
        if (empty($condition)) {
            return $content;
        }
        return '<!--[' . $condition . ']>'
            . ($global ? '<!-->' : '')
            . ' ' . $content . ' '
            . ($global ? '<!--' : '')
            . '<![endif]-->';
    }
274097
private function assertElement($condition, $message, Element $element)
    {
        if ($condition) {
            return;
        }

        throw new ElementHtmlException($message, $this->session->getDriver(), $element);
    }
434042
public static void log(String label, String data)
   {
      if (LOG != null)
      {
         LOG.write(label);
         LOG.write(": ");
         LOG.println(data);
         LOG.flush();
      }
   }
99231
public function isCheckedOption( $label )
    {
        trigger_error(
            "isCheckedOption is deprecated since v6.3.0, use PlatformUI Context isCheckedOption instead",
            E_USER_DEPRECATED
        );
        $isChecked = $this->getCheckboxChecked( $label );
        Assertion::assertTrue( $isChecked, "Checkbox $label is not checked" );
    }
1266234
public function formControlStaticFunction($label, $value)
    {
        return  sprintf(
            '<div class="form-group"><label class="col-sm-%s control-label">%s</label><div class="col-sm-%s"><p class="form-control-static">%s</p></div></div>',
            $this->getLabelCol(), $label, $this->getWidgetCol(), $value
        );
    }
594183
public static function addMessageIfEmpty($message,$condition,$label='INFO'){
		if ( empty($condition)===true ) {
			self::debugbar()->addMessage($message,$label);
		}
	}
367832
public function getCondition($conditionName)
    {
        if (false === $this->hasCondition($conditionName)) {
            throw EntryNotFoundException::conditionNotFound($conditionName, $this->conditions);
        }

        return $this->conditions[$conditionName];
    }
344185
public function skipIf($condition, $message = '')
    {
        $message = (strlen($message)) ? $message : 'Unknown Reason';

        if (true === $condition) {
            throw new SkipException($message);
        }
    }
493120
public static function setConnection(string $label=null)
    {
        if ($label === null && static::$currentConnection === null) {
            static::$currentConnection = static::getDefaultLabel();
            return;
        }

        $config = static::config();
        if (isset($config[$label])) {
            static::$currentConnection = $label;
        } else {
            throw new Exception('The provided label does not exist in the config.');
        }
    }