src/php/lib/class.ext_truecrypt.php
// Get result. Essentially take results and make it usable by the LinfoCommon::createTable function
Get result. Essentially take results and make it usable by the LinfoCommon::createTable function
Get result . Essentially take results and make it usable by the LinfoCommon :: createTable function
public function result() {
		if ($this->_res == false)
			return false;
		else {
			$rows = array();
			$rows[] = array (
				'type' => 'header',
				'columns' => array(
					'Slot',
					'Volume',
					'Virtual Device',
					'Mount Point',
					'Size',
					'Read Only',
				)
			);
			if (count($this->_res) == 0)
				$rows[] = array('type' => 'none', 'columns' => array(array(6, 'None found')));
			else {
				foreach ((array)$this->_res as $vol)
					$rows[] = array(
						'type' => 'values',
						'columns' => array(
							$vol['slot'],
							$vol['volume'],
							$vol['virtual_device'],
							$vol['mount_directory'],
							$vol['size'],
							$vol['read_only'],
						)
					);
			}
			return array(
				'root_title' => 'Truecrypt Volumes',
				'rows' => $rows
			);
		}
	}
public function result ( ) { if ( $ this -> _res == false ) return false ; else { $ rows = array ( ) ; $ rows [ ] = array ( 'type' => 'header' , 'columns' => array ( 'Slot' , 'Volume' , 'Virtual Device' , 'Mount Point' , 'Size' , 'Read Only' , ) ) ; if ( count ( $ this -> _res ) == 0 ) $ rows [ ] = array ( 'type' => 'none' , 'columns' => array ( array ( 6 , 'None found' ) ) ) ; else { foreach ( ( array ) $ this -> _res as $ vol ) $ rows [ ] = array ( 'type' => 'values' , 'columns' => array ( $ vol [ 'slot' ] , $ vol [ 'volume' ] , $ vol [ 'virtual_device' ] , $ vol [ 'mount_directory' ] , $ vol [ 'size' ] , $ vol [ 'read_only' ] , ) ) ; } return array ( 'root_title' => 'Truecrypt Volumes' , 'rows' => $ rows ) ; } }
Get result.
Get result .
// Don't bother if it didn't go well // it did; continue // Store rows here // start off volume list // show volumes if we have them // Give info