2017 © Pedro Peláez
 

library efq-wrapper

image

atdrupal/efq-wrapper

  • Monday, November 2, 2015
  • by andytruong
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

EFQ Wrapper License Build Status

A simple wrapper for Drupal's EntityFieldQuery class., (*1)

Base on atdrupal\efq_wrapper\EntityHintEFQ, we can generate classes those support autocomplete:, (*2)

<?php

/**
 * @method where__property__pid()
 * @method where__property__type()
 * @method where__property__label()
 * @method where__property__created()
 * @method where__property__changed()
 * @method where__property__url()
 * @method where__property__user()
 * @method sort__property__pid($direction = "ASC")
 * @method sort__property__type($direction = "ASC")
 * @method sort__property__label($direction = "ASC")
 * @method sort__property__created($direction = "ASC")
 * @method sort__property__changed($direction = "ASC")
 * @method sort__property__url($direction = "ASC")
 * @method sort__property__user($direction = "ASC")
 */
abstract class Profile2EntityHintEFQ extends \atdrupal\efq_wrapper\EntityHintEFQ {
    protected $type = 'profile2';
}

/**
 * @method Profile2OrganisationEntityHintEFQ where__field__field_organisation_name__value($value, $op = NULL)
 * @method Profile2OrganisationEntityHintEFQ where__field__field_organisation_name__format($value, $op = NULL)
 * @method Profile2OrganisationEntityHintEFQ sort__field__field_organisation_name__value($direction = "ASC")
 * @method Profile2OrganisationEntityHintEFQ sort__field__field_organisation_name__format($direction = "ASC")
 */
class Profile2OrganisationEntityHintEFQ extends Profile2EntityHintEFQ
{
    protected $bundle = 'organisation';

    public function __construct() {
        parent::__construct($this->type, $this->bundle);
    }
}

The Versions

02/11 2015

1.0.x-dev

1.0.9999999.9999999-dev

  Sources   Download

MIT

02/11 2015

v1.0

1.0.0.0

  Sources   Download

MIT