コード例 #1
0
 /**
  * Creates a troubleshooterstep item.
  * WARNING: Data is not sent to Kayako unless you explicitly call create() on this method's result.
  *
  * @param string $category Category of troubleshooterstep item.
  * @param string $subject Subject of troubleshooterstep item.
  * @param string $contents Contents of troubleshooterstep item.
  * @param kyStaff $staff Author (staff) of troubleshooterstep item.
  *
  *@return kyTroubleshooterStep
  */
 public static function createNew($category, $subject, $contents, kyStaff $staff)
 {
     $new_troubleshooterstep_item = new kyTroubleshooterStep();
     $new_troubleshooterstep_item->setCategory($category);
     $new_troubleshooterstep_item->setSubject($subject);
     $new_troubleshooterstep_item->setContents($contents);
     $new_troubleshooterstep_item->setStaff($staff);
     return $new_troubleshooterstep_item;
 }