/**
  * Overrides the parent function so that templateids will be used instead of hostids for the template API.
  */
 public function pkOption($tableName = null)
 {
     if ($tableName && $tableName != $this->tableName()) {
         return parent::pkOption($tableName);
     } else {
         return 'templateids';
     }
 }