public function __construct(Row $subject, Table $valueTable, ManyToManyField $field, array $originalValue = null) { $this->subject = $subject; $this->field = $field; $this->originalValue = $originalValue; $this->valueShortcodeName = $valueTable->getActivityLogHandler()->getName(); $this->changes = new Changes($originalValue, $this->field->getValue()); }
/** * Use a ManyToMany field to render the checkbox list. * * @param Field $field * @param array $options * @return string */ protected function directField(Field $field, array $options = array()) { $fieldDefaults = array('name' => $field->getControlName(), 'id' => $field->getHtmlId(), 'value' => $field->getValue(), 'options' => $field->getOptionPairs()->fetch()); return $this->directArray($fieldDefaults + $options); }