getSpecificities() static public method

..
static public getSpecificities ( $specif = '' ) : array
$specif string specificity to display Should be overloaded by Item_Device*
return array of the specificities: index is the field name and the values are the attributs of the specificity (long name, short name, size)
Example #1
0
 /**
  * @since version 0.85
  **/
 static function getSpecificities($specif = '')
 {
     return array('capacity' => array('long name' => sprintf(__('%1$s (%2$s)'), __('Capacity'), __('Mio')), 'short name' => __('Capacity'), 'size' => 10, 'id' => 20), 'serial' => parent::getSpecificities('serial'), 'busID' => parent::getSpecificities('busID'));
 }
 /**
  * @since version 0.85
  **/
 static function getSpecificities($specif = '')
 {
     return array('mac' => array('long name' => __('MAC address'), 'short name' => __('MAC address'), 'size' => 18, 'id' => 20, 'datatype' => 'mac'), 'serial' => parent::getSpecificities('serial'), 'busID' => parent::getSpecificities('busID'));
 }
 /**
  * @since version 0.85
  **/
 static function getSpecificities($specif = '')
 {
     return array('serial' => parent::getSpecificities('serial'));
 }
 /**
  * @since version 0.85
  **/
 static function getSpecificities($specif = '')
 {
     return array('frequency' => array('long name' => sprintf(__('%1$s (%2$s)'), __('Frequency'), __('MHz')), 'short name' => __('Frequency'), 'size' => 10, 'id' => 20), 'serial' => parent::getSpecificities('serial'), 'nbcores' => array('long name' => __('Number of cores'), 'short name' => __('Cores'), 'size' => 2, 'id' => 21), 'nbthreads' => array('long name' => __('Number of threads'), 'short name' => __('Threads'), 'size' => 2, 'id' => 22), 'busID' => parent::getSpecificities('busID'));
 }