for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace fieldwork\components;
class Textarea extends Field
{
public function getAttributes ()
return array_merge(parent::getAttributes(), array(
'placeholder' => $this->label
));
}
public function getClasses ()
return array_merge(
parent::getClasses(), array('textarea', 'fieldwork-inputfield')
);
public function getHTML ($showLabel = true)
return "<textarea " . $this->getAttributesString() . ">" . $this->value . "</textarea>";