Lines Matching refs:column

1034 				foreach ( $this->meta as $column => $def )
1035 if ( $def['isColumn'] && ( $column != $idColumn ) )
1052 $error = $this->checkValue( $rowid, $column, $input['data'.$column], $store[$column], $def );
1053 if ( $error && $column )
1059 $store[$column] = $input['data'.$column];
1060 $errors[$column] = $error;
1081 foreach ( $store as $column => $value )
1082 if ( $column !== $idColumn )
1083 if ( $this->meta[$column]['isColumn'] &&
1084 !is_string( $this->meta[$column]['options']['aliasing'] ) )
1087 $value = $this->valueToDB( $rowid, $column, $value, $this->meta[$column] );
1090 $record[$column] = $value;
1114 foreach ( array_keys( $record ) as $column )
1115 $assignments[] = $column . '=?';
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 );
1244 foreach ( $store as $column => $value )
1245 $store[$column] = $this->valueFromDB( $rowid, $column, $value, $this->meta[$column] );
1294 foreach ( $store as $column => $value )
1295 $elements[] = $this->renderField( $rowid, $column, $value,
1296 $this->meta[$column],
1297 $errors[$column], $readOnly, $rowACL );
1336 foreach ( $in as $column => $value )
1339 $tabindex = $this->meta[$column]['options']['tabindex'];
1342 $index[$column] = intval( $tabindex );
1343 unset( $in[$column] );
1347 foreach ( $in as $column => $value )
1348 $index[$column] = empty( $index ) ? 1 : ( max( $index ) + 1 );
1357 foreach ( $index as $column => $dummy )
1358 if ( $this->meta[$column]['isColumn'] )
1359 $out[$column] = $record[$column];
1851 foreach ( $row as $column => $value )
1854 if ( !is_array( $meta[$column] ) )
1855 $meta[$column] = array(
1859 'label' => $column,
1863 $def = $meta[$column];
1865 $headers[$column] = $def['label'] ? $def['label'] : $column;
1869 $value = $this->valueFromDB( $rowid, $column, $value, $def );
1871 $cell = $this->renderValue( $rowid, $column, $value, $def,
1900 $row[$column] = "<td class=\"$class\">" . $cell . "</td>\n";
1943 foreach ( $cols as $column )
1948 if ( is_array( $meta[$column] ) )
1949 $def = $meta[$column];
1956 $pos = strripos( $column, ' AS ' );
1960 $temp = substr( $column, $pos + 4 );
1966 $column = $temp;
1973 $headers[$column] = $def['label'] ? $def['label'] : $column;
1987 foreach ( $headers as $column => $label )
1990 if ( $meta[$column]['options']['headerlabel'] )
1991 $label = trim( $meta[$column]['options']['headerlabel'] );
1993 if ( ( $href = trim( $meta[$column]['options']['headerlink'] ) ) !== '' )
1997 if ( ( $sort == $column ) && $sortDescendingly )
1999 $name = $column;
2003 else if ( $sort == $column )
2005 $name = '!' . $column;
2011 $name = $column;
2024 $headers[$column] = "<th class=\"label\">$label$sorter</th>\n";
2916 $column = $meta[$filter['col']];
2917 if ( $column && $column['isColumn'] )
2921 if ( $column['type'] == 'bool' )
2929 switch ( $column['options']['booltype'] )
2995 foreach ( $meta as $column => $def )
3003 foreach ( $meta as $column => $def )
3014 $label = $def['label'] ? $def['label'] : $column;
3017 $head = "<option value=\"$column\" class=\"$class\"";
3020 $columns[$column] = strtr( $head, array( '%' => '%%' ) ) . '%s'.
3103 foreach ( $optColumns as $column => $code )
3104 …$optColumns[$column] = sprintf( $code, ( $column == $filter['col'] ) ? ' selected="selected"' : ''…
4080 $column = array_shift( $primaries );
4082 if ( isset( $this->meta[$column]['type'] ) )
4083 if ( $this->meta[$column]['type'] != 'integer' )
4087 return $column;
4096 * @param string $column optional name of single column in table to test
4100 protected function exists( $table, $column = null ) argument
4103 if ( is_null( $column ) )
4106 $sql = 'SELECT COUNT(' . $column . ') FROM ' . $table;
4128 if ( !is_null( $column ) )
4540 * @param string $column name of column in record containing media to retrieve
4545 final protected function mediaLink( $rowid, $column, $forDownload = false, argument
4551 $column = trim( $column );
4553 if ( !$rowid || ( $this->meta[$column]['type'] != 'data' ) )
4554 throw new Exception( sprintf( $this->getLang( 'medianomedia' ), $column ) );
4572 $column, $idColumn, $rowid, $this->getPageID(),
4675 public function editorSessionMediaLink( $column, $forDownload = false ) argument
4680 if ( !is_array( $session[$column] ) )
4685 $selector = array( $this->getPageID(), $this->getIndex(), $column );
4955 * @param string $column name of column
4960 protected function getInitialValue( $column, $def ) argument
5023 * @param string $column name of column
5029 protected function valueFromDB( $rowid, $column, $value, $def ) argument
5151 * @param string $column name of column
5158 protected function valueToDB( $rowid, &$column, $value, $def ) argument
5280 * @param string $column name of column
5287 protected function checkValue( $rowid, &$column, $value, &$inStore, $def ) argument
5311 $upload = $_FILES['db2dodata'.$column];
5708 * @param string $column name of column
5716 protected function renderField( $rowid, $column, $value, $def, $error, $readOnly, &$rowACL ) argument
5748 if ( is_array( $column ) && count( $column ) && !$this->options['simplenav'] )
5751 foreach ( $column as $k => $option )
5752 $column[$k] = '<option value="' . $option[0] . '"' .
5757 '">' . implode( "\n", $column ) . '</select>';
5801 $code = $this->renderValue( $rowid, $column, $value, $def, true, true, $rowACL );
5806 $label = $def['label'] ? $def['label'] : $column;
5824 return $this->renderField( $rowid, $column, $value, $def, '', true, $rowACL );
5837 $name = $this->varname( 'data' . $column );
5862 $current = $this->renderValue( $rowid, $column, $value, $def, true, true, $rowACL );
5977 $label = $def['label'] ? $def['label'] : $column;
5996 * @param string $column name of column
6007 protected function renderValue( $rowid, $column, $value, $def, argument
6056 $url = $this->editorSessionMediaLink( $column, ( $def['format'] != 'image' ) );
6058 $url = $this->mediaLink( $rowid, $column, ( $def['format'] != 'image' ) );
6064 …return "<img src=\"$url\" alt=\"" . sprintf( $this->getLang( 'fileimagealt' ), $column, $value['mi…