Lines Matching refs:def
845 foreach ( $this->meta as $name => $def )
846 if ( $def['isColumn'] && ( $def['format'] == 'acl' ) )
1034 foreach ( $this->meta as $column => $def )
1035 if ( $def['isColumn'] && ( $column != $idColumn ) )
1038 …$mayEdit = !$def['options']['mayedit'] || $this->isAuthorizedMulti( $rowACL, $def['options'], 'may…
1043 …$mayView = !$def['options']['mayview'] || $this->isAuthorizedMulti( $rowACL, $def['options'], 'may…
1052 $error = $this->checkValue( $rowid, $column, $input['data'.$column], $store[$column], $def );
1190 foreach ( $this->meta as $column => $def )
1191 if ( $def['isColumn'] && ( $column != $idColumn ) )
1192 $store[$column] = $this->getInitialValue( $column, $def );
1234 $record[$name] = $this->getInitialValue( $column, $def );
1483 foreach ( $meta as $colName => $def )
1484 if ( $def['isColumn'] )
1487 if ( $def['options']['visible'] === 1 )
1490 $use = $def['options']['print'] ||
1491 ( $def['options']['visible'] &&
1492 !$def['options']['noprint'] );
1494 $use = $def['options']['visible'];
1502 foreach ( $meta as $colName => $def )
1503 if ( $def['isColumn'] )
1802 foreach ( $meta as $colName => $def )
1803 if ( $def['isColumn'] )
1806 if ( is_null( $visibleIDCol ) && $def['options']['visible'] )
1809 $visibleIDCol = ( $def['options']['visible'] != false );
1863 $def = $meta[$column];
1865 $headers[$column] = $def['label'] ? $def['label'] : $column;
1866 $class = $def['format'] ? $def['format'] : 'na';
1869 $value = $this->valueFromDB( $rowid, $column, $value, $def );
1871 $cell = $this->renderValue( $rowid, $column, $value, $def,
1874 switch ( $clickAction = $def['options']['onclick'] )
1946 unset( $def );
1949 $def = $meta[$column];
1965 $def = $meta[$temp];
1973 $headers[$column] = $def['label'] ? $def['label'] : $column;
2520 foreach ( $globalCmds as $name => $def )
2524 if ( is_string( $def[2] ) )
2527 $href = $this->attachmentLink( $def[2], $authz, !$def[3] );
2528 $globalCmds[$name] = '<a href="' . $href . '" class="icon-cmd" target="' . $def[4] .
2530 DOKU_BASE . DB2_PATH . 'icons/' . $def[0] .
2531 '.gif" title="' . $def[1] . '" alt="' .
2532 $def[1] . '" /></a>';
2538 '" title="' . $def[1] . '" src="' .
2539 DOKU_BASE . DB2_PATH . 'icons/' . $def[0] .
2540 …'.gif" onclick="' . ( $def[2] ? "return confirm('" . $this->getLang( 'confirmdrop' ) . "');" : '' …
2592 foreach ( $recordCmds as $name => $def )
2602 $idName . '" title="' . $def[1] . '" src="' .
2603 DOKU_BASE . DB2_PATH . 'icons/' . $def[0] .
2604 …'.gif" onclick="' . ( $def[2] ? "return confirm('" . $this->getLang( 'confirmdelete' ) . "');" : '…
2995 foreach ( $meta as $column => $def )
2996 if ( !is_null( $def['options']['visible'] ) ||
2997 !is_null( $def['options']['filter'] ) )
3003 foreach ( $meta as $column => $def )
3004 …if ( $def['isColumn'] && ( $allVisible || $def['options']['visible'] || $def['options']['filter'] …
3007 if ( $def['format'] == 'acl' )
3010 $class = $mapType[$def['type']];
3014 $label = $def['label'] ? $def['label'] : $column;
3048 foreach ( $operators as $op => $def )
3051 $label = array_shift( $def );
3052 $class = implode( ' ', $def );
3919 foreach ( $out as &$def )
3920 $def['options']['visible'] = ( $def['format'] == 'acl' ) ? 1 : true;
4956 * @param array $def definition of column
4960 protected function getInitialValue( $column, $def ) argument
4963 if ( $def['type'] == 'data' )
4966 if ( $def['options']['nodefault'] )
4970 $default = $this->replaceMarkup( trim( $def['options']['default'] ) );
4972 switch ( $def['format'] )
4980 $value = array_search( $default, $def['options']['selectables'] );
4991 if ( ( $default > 0 ) && ( $default <= count( $def['options']['selectables'] ) ) )
4994 if ( $def['format'] == 'enum' )
5008 return $this->inputToInternal( $default, $def );
5025 * @param array $def definition of column
5029 protected function valueFromDB( $rowid, $column, $value, $def ) argument
5032 switch ( $def['format'] )
5071 if ( $def['options']['unixts'] )
5083 if ( $def['options']['unixts'] )
5096 switch ( $def['options']['booltype'] )
5113 $value = array_search( $value, $def['options']['selectables'] );
5153 * @param array $def definition of column
5158 protected function valueToDB( $rowid, &$column, $value, $def ) argument
5161 if ( $def['options']['readonly'] )
5166 if ( is_null( $value ) && !$def['options']['notnull'] &&
5167 ( $def['format'] != 'bool' ) )
5172 switch ( $def['format'] )
5195 if ( $def['options']['unixts'] )
5198 return $def['options']['notnull'] ? '0000-00-00' : null;
5202 return $def['options']['unixts'] ? $value : date( 'Y-m-d',intval( $value ) );
5212 if ( $def['options']['unixts'] )
5215 return $def['options']['notnull'] ? '0000-00-00T00:00:00' : null;
5219 return $def['options']['unixts'] ? $value : date( 'Y-m-d\TH:i:s', intval( $value ) );
5222 switch ( $def['options']['booltype'] )
5238 $value = $def['options']['selectables'][$value];
5283 * @param array $def definition of column
5287 protected function checkValue( $rowid, &$column, $value, &$inStore, $def ) argument
5291 switch ( $def['format'] )
5337 if ( $def['options']['accept'] )
5340 if ( !preg_match( $def['options']['accept'], $in['type'] ) )
5344 else if ( $def['format'] == 'image' )
5371 if ( !$value && $def['options']['required'] )
5393 $new = array_search( $value, $def['options']['selectables'] );
5407 if ( $def['format'] == 'related' )
5411 if ( !array_key_exists( $value, $def['options']['selectables'] ) )
5419 if ( intval( $value ) > count( $def['options']['selectables'] ) )
5443 $value = $this->inputToInternal( $value, $def );
5447 if ( $def['options']['required'] )
5463 public function inputToInternal( $value, $def ) argument
5466 switch ( $def['format'] )
5710 * @param array $def definition of column
5716 protected function renderField( $rowid, $column, $value, $def, $error, $readOnly, &$rowACL ) argument
5798 else if ( $def['options']['readonly'] || $readOnly )
5801 $code = $this->renderValue( $rowid, $column, $value, $def, true, true, $rowACL );
5802 if ( is_null( $code ) && ( !$def['options']['alwaysshow'] ||
5803 ( $def['format'] == 'acl' ) ) )
5806 $label = $def['label'] ? $def['label'] : $column;
5820 $mayView = $this->isAuthorizedMulti( $rowACL, $def['options'], 'mayview', null, true );
5822 if ( $rowACL['mayedit'] || $def['options']['mayedit'] )
5823 if ( !$this->isAuthorizedMulti( $rowACL, $def['options'], 'mayedit' ) )
5824 return $this->renderField( $rowid, $column, $value, $def, '', true, $rowACL );
5852 switch ( $def['format'] )
5862 $current = $this->renderValue( $rowid, $column, $value, $def, true, true, $rowACL );
5876 if ( !isset( $def['options']['length'] ) ||
5877 ( $def['options']['length'] > 255 ) )
5891 $options = $def['options']['selectables'];
5900 if ( $def['format'] == 'enum' )
5909 if ( !$def['options']['required'] || !$selectedAny )
5964 if ( $def['options']['length'] )
5965 $maxlen = $def['options']['length'];
5966 else if ( $defaultSizes[$def['format']] )
5967 $maxlen = $defaultSizes[$def['format']];
5972 …text\" value=\"$value\" size=\"$size\" maxlength=\"$maxlen\" class=\"text $def[format]\" />$select…
5977 $label = $def['label'] ? $def['label'] : $column;
6007 protected function renderValue( $rowid, $column, $value, $def, argument
6011 if ( !$this->isAuthorizedMulti( $rowACL, $def['options'], 'mayview', null, true ) )
6014 if ( is_null( $value ) && ( $def['type'] != 'data' ) )
6018 switch( $def['format'] )
6025 if ( $this->options['wikimarkup'] || $def['options']['wikimarkup'] )
6056 $url = $this->editorSessionMediaLink( $column, ( $def['format'] != 'image' ) );
6058 $url = $this->mediaLink( $rowid, $column, ( $def['format'] != 'image' ) );
6063 if ( $def['format'] === 'image' )
6131 $value = $def['options']['selectables'][$value];