Lines Matching refs:options

67   private $options;  variable in BibtexConverter
95 * @param array $options Options array. May contain the following pairs:
107 function __construct($options=array(), $sanitise=null, $authors=null) { argument
109 $this->options = array(
128 foreach ( $this->options as $key => $value ) {
129 if ( !empty($options[$key]) ) {
130 $this->options[$key] = $options[$key];
137 if ( is_readable(dirname(__FILE__).'/lang/'.$this->options['lang'].'.php') ) {
138 require('lang/'.$this->options['lang'].'.php');
143 $this->options['lang'] = $translations;
145 $this->helper = new Helper($this->options);
201 $groupingDisabled = $this->options['group'];
202 $this->options['group'] = 'none';
206 if ( $this->options['group'] === 'none' ) {
226 $this->options['group'] = $groupingDisabled;
252 if ( empty($this->options['lang']['entrytypes'][$entry['entrytype']]) ) {
253 $entry['entrytype'] = $this->options['lang']['entrytypes']['unknown'];
258 foreach ( $this->options['only'] as $field => $regexp ) {
296 if ( $this->options['group'] !== 'none' ) {
298 … if ( !empty($entry[$this->options['group']]) || $this->options['group'] === 'firstauthor' ) {
299 if ( $this->options['group'] === 'firstauthor' ) {
302 elseif ( $this->options['group'] === 'author' ) {
306 $target = $entry[$this->options['group']];
310 $target = $this->options['lang']['rest'];
321 $result[$this->options['lang']['all']] = $data;
337 if ( $this->options['group'] !== 'none' ) {
363 array(Helper::lcount($data, 2), count($data), $this->options['key']),
366 if ( $this->options['group'] !== 'none' ) {
411 if ( $this->options['group'] === 'entrytype' ) {
412 $key = $this->options['lang']['entrytypes'][$key];