#Skills .Programming {
Language: PHP, HTML, CSS, jQuery, SQL, Visual-C#-WinForms;
Software: PHP-Storm, Visual-Studio;
}
#Skills .OtherMedia {
Software: MS-Office, LibreOffice;
}
#Education {
From-2010-To-2014: SPSEIT-Brno InformationTechnology Programming-and-Database;
}
#WorkExperience {
From-2009-To-Current: itnetwork-cz CMS-programming technical-articles-writing;
}
#ContactInfo {
Name: David-Jancik;
Email: [email protected];
Portfolio: davidjancik.cz;
}
<?php
class DavidJancik extends Human implements Programmer, WebDeveloper
{
public $programmingSkills = array('PHP', 'HTML', 'CSS', 'jQuery', 'SQL', 'Visual C# WinForms');
public $softwareSkills = array('PHP Storm', 'Visual Studio', 'MS Office', 'LibreOffice');
public $education = array(
'2010-2014' => array(
'school' => 'SPŠEIT Brno Purkyňova',
'specialization' => 'InformationTechnology - Programming and Database',
),
);
public $workExperience = array(
'2009-current' => array(
'project-name' => 'itnetwork.cz',
'responsibilities' => array('CMS programming', 'technical articles writing'),
),
);
public $contactInfo = array(
'name' => 'David Jančík',
'e-mail' => '[email protected]',
'portfolio' => 'davidjancik.cz',
);
public function generateCV()
{
return'
<p><strong>Programming skills:</strong> ' . implode(', ', $this->programmingSkills) . '</p>
<p><strong>Software skills:</strong> ' . implode(', ', $this->softwareSkills) . '</p>
<p><strong>Education:</strong> ' . $this->implodeArrays($this->education) . '</p>
<p><strong>Work experience:</strong> ' . $this->implodeArrays($this->workExperience) . '</p>
<p><strong>Contact:</strong> <ul><li>' . implode('</li><li>', $this->contactInfo) . '</li></ul></p>
';
}
private function implodeArrays($arr)
{
$f = function($el) use(&$f) {
$elInfo = '<ul>';
foreach ($el as $k => $v)
$elInfo .= is_array($v) ? $f($v) : '<li><strong>' . ucfirst(str_replace('-', ' ', $k)) . ':</strong> ' . $v . '</li>';
$elInfo .= '</ul>';
return $elInfo;
};
return implode(',', array_map($f, $arr));
}
}
Poslední komentáře