protected function extractHeaders($data)
	{
		$headers = array_keys($data[0]);

		// Remove hidden fields from headers if supplied
		foreach ($this->options['hiddenFields'] as $hiddenField) {
			if (in_array($hiddenField, $headers)) {
				array_splice($headers, array_search($hiddenField, $headers), 1);
			}
		}

		if (!empty($this->options['actions'])) {
			$headers[] = 'Actions';
		}

		return $headers;
	}
protected function extractHeaders($data)
	{
		$headers = array_keys($data[0]);

		// Remove hidden fields from headers if supplied
		foreach ($this->options['hiddenFields'] as $hiddenField) {
			if (in_array($hiddenField, $headers)) {
				array_splice($headers, array_search($hiddenField, $headers), 1);
			}
		}

		if (!empty($this->options['actions'])) {
			$headers[] = 'Actions';
		}

		return $headers;
	}
protected function extractHeaders ( $ data ) { $ headers = array_keys ( $ data [ 0 ] ) ; // Remove hidden fields from headers if supplied foreach ( $ this -> options [ 'hiddenFields' ] as $ hiddenField ) { if ( in_array ( $ hiddenField , $ headers ) ) { array_splice ( $ headers , array_search ( $ hiddenField , $ headers ) , 1 ) ; } } if ( ! empty ( $ this -> options [ 'actions' ] ) ) { $ headers [ ] = 'Actions' ; } return $ headers ; }
Get Table headers from data
Get Table headers from data