Example #1
0
 /**
  * Get client details by client id
  * 
  * @param   string  $client_id  Load client details via client id.
  * @return  void
  */
 public function getClientDetails($clientId)
 {
     // create model
     $application = \Components\Developer\Models\Application::oneByClientid($clientId);
     // load application by client id
     if (!$application->get('id')) {
         return false;
     }
     // make sure its published
     if (!$application->isPublished()) {
         return false;
     }
     // return as array
     return $application->toArray();
 }