Lines Matching refs:control
44 * Check if a specific control exists by either the OID string or the Control object (strict check).
46 * @param string|Control $control
49 public function has($control): bool
51 if (is_string($control)) {
53 if ($ctrl->getTypeOid() === $control) {
61 return array_search($control, $this->controls, true) !== false;
65 * Get a control object by the string OID type. If none is found it will return null. Can check first with has.
72 foreach ($this->controls as $control) {
73 if ($oid === $control->getTypeOid()) {
74 return $control;
89 foreach ($controls as $control) {
90 $this->controls[] = $control;
117 /** @var Control|string $control */
118 foreach ($controls as $control) {
119 if (is_string($control)) {
121 if ($ctrl->getTypeOid() === $control) {
126 if (($i = array_search($control, $this->controls, true)) !== false) {