if ($this->addresses == null) {
$this->setAddresses($this->getProfileField('ProfileAddresses'));
}
+
+ if ($this->addresses == null) {
+ return PlIteratorUtils::emptyIterator();
+ }
return $this->addresses->get($flags, $limit);
}
if ($this->educations == null) {
$this->setEducations($this->getProfileField('ProfileEducation'));
}
+
+ if ($this->educations == null) {
+ return PlIteratorUtils::emptyIterator();
+ }
return $this->educations->get($flags, $limit);
}
if ($this->networks == null) {
$this->setNetworking($this->getProfileField('ProfileNetworking'));
}
+ if ($this->networks == null) {
+ return PlIteratorUtils::emptyIterator();
+ }
return $this->networks->get($flags, $limit);
}
$this->setJobs($this->getProfileField('ProfileJobs'));
}
+ if ($this->jobs == null) {
+ return PlIteratorUtils::emptyIterator();
+ }
return $this->jobs->get($flags, $limit);
}
public function __construct(PlIterator $jobs)
{
while ($job = $jobs->next()) {
- $this->jobs[$job['id']] = Jobs::buildFromData($job);
+ $this->jobs[$job['id']] = new Job($job);
}
}
public static function fetchData(array $pids, $visibility)
{
$data = XDB::iterator('SELECT id, pid, description, url,
- jobid, sectorid, subsctorid, subsubsectorid,
+ jobid, sectorid, subsectorid, subsubsectorid,
IF(email_pub IN {?}, email, NULL) AS email
FROM profile_job
WHERE pid IN {?} AND pub IN {?}