%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/pn/utils/classes/
Upload File :
Create Path :
Current File : /var/www/pn/utils/classes/WorldbankProject.php

<?php
namespace WebPappers\WorldbankProject;
use WebPappers\Project\Project;

class WorldbankProject extends Project
{
    public function getName()
    {
        if(empty($this->dom->project_name)){
            return '';
        }
        $name = $this->dom->project_name;
        
        return $name;
    }

    public function getType()
    {
        return WORLDBANK_NAME;
    }

    public function getStatus()
    {
        if(empty($this->dom->status)){
            return '';
        }
        $status = $this->dom->status;        
        
        return $status; 
    }

    public function getBeneficiarySAI()    
    {
        if(empty($this->dom->countryname)){
            return '';
        }        
        $beneficiarySAI = implode(',', $this->dom->countryname);

        return $beneficiarySAI; 
    }

    public function getDescription()
    {
        if(empty($this->dom->project_abstract->cdata)){
            return '';
        }  
        $description = $this->dom->project_abstract->cdata;
        
        return $description;
    }

    public function getImplementingAgency()
    {
        return 'The world bank';
    }

    public function getBeneficiaryLevel()
    {        
        if(empty($this->dom->countryname)){
            return '';
        }

        $countries = $this->dom->countryname;
        if(count($countries) > 1){
            return '';
        }else{
            return 'Regional';             
        }    
    }

}

Zerion Mini Shell 1.0