/** * Set core properties * * @since version 1.0.0 * * @param string $targetFragment * @param object $searchFields * * @return void **/ public function __construct($targetFragment = 'before', $searchFields = null) { $this->targetFragment = $targetFragment; $this->searchFields = (array) $searchFields; parent::__construct(); }
/** * Sets the number of items to limit to * @param {string} $targetFragment Fragment to place the component in * @param {array} $searchFields Which fields on the object in the list should be searched * @param {int} $limit Number of items to limit the gridfield's relationship to * @return {LRGridFieldAddExistingAutocompleter} Returns self */ public function __construct($targetFragment = 'before', $searchFields = null, $itemLimit = null) { $this->_item_limit = $itemLimit; parent::__construct($targetFragment, $searchFields); }