/** * Full string * * Complete string for the weather conditions with icon, name and temperature. * @return string */ public function fullString($isNight = false) { $icon = $this->Condition->icon(); if ($isNight == true) { $icon->setAsNight(); } return $icon->code() . ' ' . $this->Condition->string() . ' ' . __('at') . ' ' . $this->Temperature->asString(); }
/** * Construct new input field for: weather * @param string $name * @param string $label * @param string $value optional, default: loading from $_POST */ public function __construct($name, $label, $value = '') { parent::__construct($name, $label, $value); $Condition = new Condition(0); foreach (Condition::completeList() as $id) { $Condition->set($id); $this->addOption($id, $Condition->string()); } }
/** * Full string * * Complete string for the weather conditions with icon, name and temperature. * @return string */ public function fullString() { return $this->Condition->icon()->code() . ' ' . $this->Condition->string() . ' ' . __('at') . ' ' . $this->Temperature->asString(); }