public function create(array $data)
  {
    $Period = new Period();
    $Period->setConnection($this->databaseConnectionName);
    $Period->fill($data)->save();

    return $Period;
  }
public function create(array $data)
  {
    $Period = new Period();
    $Period->setConnection($this->databaseConnectionName);
    $Period->fill($data)->save();

    return $Period;
  }
public function create ( array $ data ) { $ Period = new Period ( ) ; $ Period -> setConnection ( $ this -> databaseConnectionName ) ; $ Period -> fill ( $ data ) -> save ( ) ; return $ Period ; }
Create a new period

@param array $data
An array as follows: array('month'=>$month, 'start_date'=>$startDate, 'end_date'=>$endDate,
'is_closed'=>$isClosed, 'fiscal_year_id' => $fiscalYearId, 'organization_id'=>$organizationId
);

@return boolean
Create a new period