/**
  *   Función responsable de listar los tipos de identificación 
  *   disponibles para el país actual.
  *
  *   @return array, lista de tipos de identificación encontrados.
  */
 public function getIdentificationTypeList($countryId = '')
 {
     if (empty($countryId)) {
         $countryId = Config::get('constants.APP.COUNTRY_CODES.CO');
     }
     $identificationTypeList = IdentificationType::where('countryId', $countryId)->orderBy(Config::get('constants.IDENTIFICATION_TYPE.ATTRS.IDENTIFICATION_TYPE_ID'))->get();
     return $identificationTypeList;
 }
 public function run()
 {
     DB::table('identification_type')->truncate();
     /**
      *	Topos de identificaciòn para Colombia ("countryId" => 53)
      */
     $identificationTypeList = [["countryId" => 53, "countryKey" => '', "name" => 'Cédula ciudadanía', "abbeviation" => 'CC'], ["countryId" => 53, "countryKey" => '', "name" => 'Cédula de extranjería', "abbeviation" => 'CE'], ["countryId" => 53, "countryKey" => '', "name" => 'Pasaporte', "abbeviation" => 'PA'], ["countryId" => 53, "countryKey" => '', "name" => 'Registro civil', "abbeviation" => 'RC'], ["countryId" => 53, "countryKey" => '', "name" => 'Tarjeta de identidad', "abbeviation" => 'TI'], ["countryId" => 53, "countryKey" => '', "name" => 'Adulto sin identificación', "abbeviation" => 'AS'], ["countryId" => 53, "countryKey" => '', "name" => 'Menor sin identificación', "abbeviation" => 'MS']];
     foreach ($identificationTypeList as $identificationType) {
         IdentificationType::create($identificationType);
     }
 }
Example #3
0
 *
 * Kimkëlen is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License v2.0 as published by
 * the Free Software Foundation.
 *
 * Kimkëlen is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Kimkëlen.  If not, see <http://www.gnu.org/licenses/gpl-2.0.html>.
 */
?>
<div class="sf_admin_form_row sf_admin_text sf_admin_form_field_identification">
  <div>
    <label for="teacher_postal_address"> <?php 
echo __("Documento");
?>
 </label>
    <?php 
$identification_type = new IdentificationType();
?>
    <?php 
echo '(' . $identification_type->getStringFor($teacher->getIdentificationType()) . ') ' . $teacher->getIdentificationNumber();
?>
  </div>
  <div style="margin-top: 1px; clear: both;">
  </div>
</div>